@synnaxlabs/client 0.21.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 (258) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/.vscode/settings.json +3 -0
  3. package/dist/auth/auth.d.ts +7 -6
  4. package/dist/auth/auth.d.ts.map +1 -1
  5. package/dist/channel/client.d.ts +14 -11
  6. package/dist/channel/client.d.ts.map +1 -1
  7. package/dist/channel/creator.d.ts +10 -0
  8. package/dist/channel/creator.d.ts.map +1 -0
  9. package/dist/channel/payload.d.ts +6 -2
  10. package/dist/channel/payload.d.ts.map +1 -1
  11. package/dist/channel/retriever.d.ts +65 -35
  12. package/dist/channel/retriever.d.ts.map +1 -1
  13. package/dist/channel/writer.d.ts +4 -3
  14. package/dist/client.cjs +18 -21
  15. package/dist/client.cjs.map +1 -1
  16. package/dist/client.d.ts +12 -10
  17. package/dist/client.d.ts.map +1 -1
  18. package/dist/client.js +6546 -6457
  19. package/dist/client.js.map +1 -1
  20. package/dist/connection/checker.d.ts +4 -3
  21. package/dist/connection/checker.d.ts.map +1 -1
  22. package/dist/control/authority.d.ts +2 -1
  23. package/dist/control/state.d.ts +6 -4
  24. package/dist/control/state.d.ts.map +1 -1
  25. package/dist/errors.d.ts +24 -20
  26. package/dist/errors.d.ts.map +1 -1
  27. package/dist/framer/adapter.d.ts +5 -4
  28. package/dist/framer/adapter.d.ts.map +1 -1
  29. package/dist/framer/client.d.ts +10 -9
  30. package/dist/framer/client.d.ts.map +1 -1
  31. package/dist/framer/frame.d.ts +13 -12
  32. package/dist/framer/frame.d.ts.map +1 -1
  33. package/dist/framer/iterator.d.ts +5 -4
  34. package/dist/framer/iterator.d.ts.map +1 -1
  35. package/dist/framer/streamProxy.d.ts +3 -2
  36. package/dist/framer/streamProxy.d.ts.map +1 -1
  37. package/dist/framer/streamer.d.ts +13 -4
  38. package/dist/framer/streamer.d.ts.map +1 -1
  39. package/dist/framer/writer.d.ts +42 -33
  40. package/dist/framer/writer.d.ts.map +1 -1
  41. package/dist/hardware/client.d.ts +4 -3
  42. package/dist/hardware/device/client.d.ts +107 -14
  43. package/dist/hardware/device/client.d.ts.map +1 -1
  44. package/dist/hardware/device/external.d.ts +0 -2
  45. package/dist/hardware/device/external.d.ts.map +1 -1
  46. package/dist/hardware/device/index.d.ts +1 -1
  47. package/dist/hardware/device/index.d.ts.map +1 -1
  48. package/dist/hardware/rack/client.d.ts +43 -20
  49. package/dist/hardware/rack/client.d.ts.map +1 -1
  50. package/dist/hardware/rack/external.d.ts +0 -2
  51. package/dist/hardware/rack/external.d.ts.map +1 -1
  52. package/dist/hardware/task/client.d.ts +197 -14
  53. package/dist/hardware/task/client.d.ts.map +1 -1
  54. package/dist/hardware/task/index.d.ts +1 -1
  55. package/dist/hardware/task/index.d.ts.map +1 -1
  56. package/dist/index.d.ts +4 -3
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/label/client.d.ts +8 -6
  59. package/dist/label/client.d.ts.map +1 -1
  60. package/dist/label/payload.d.ts +2 -1
  61. package/dist/label/retriever.d.ts +3 -2
  62. package/dist/label/writer.d.ts +4 -3
  63. package/dist/ontology/client.d.ts +82 -14
  64. package/dist/ontology/client.d.ts.map +1 -1
  65. package/dist/ontology/external.d.ts +0 -1
  66. package/dist/ontology/external.d.ts.map +1 -1
  67. package/dist/ontology/group/client.d.ts +3 -2
  68. package/dist/ontology/group/client.d.ts.map +1 -1
  69. package/dist/ontology/group/group.d.ts +1 -0
  70. package/dist/ontology/group/payload.d.ts +2 -1
  71. package/dist/ontology/group/writer.d.ts +4 -3
  72. package/dist/ontology/payload.d.ts +71 -60
  73. package/dist/ontology/payload.d.ts.map +1 -1
  74. package/dist/ontology/writer.d.ts +3 -2
  75. package/dist/ranger/active.d.ts +3 -2
  76. package/dist/ranger/alias.d.ts +7 -6
  77. package/dist/ranger/alias.d.ts.map +1 -1
  78. package/dist/ranger/client.d.ts +162 -11
  79. package/dist/ranger/client.d.ts.map +1 -1
  80. package/dist/ranger/external.d.ts +0 -1
  81. package/dist/ranger/external.d.ts.map +1 -1
  82. package/dist/ranger/kv.d.ts +5 -3
  83. package/dist/ranger/kv.d.ts.map +1 -1
  84. package/dist/ranger/payload.d.ts +57 -50
  85. package/dist/ranger/payload.d.ts.map +1 -1
  86. package/dist/ranger/range.d.ts +12 -10
  87. package/dist/ranger/range.d.ts.map +1 -1
  88. package/dist/ranger/writer.d.ts +3 -2
  89. package/dist/setupspecs.d.ts +2 -1
  90. package/dist/signals/observable.d.ts +8 -15
  91. package/dist/signals/observable.d.ts.map +1 -1
  92. package/dist/transport.d.ts +3 -2
  93. package/dist/transport.d.ts.map +1 -1
  94. package/dist/user/payload.d.ts +2 -1
  95. package/dist/util/retrieve.d.ts +24 -0
  96. package/dist/util/retrieve.d.ts.map +1 -0
  97. package/dist/util/retrieve.spec.d.ts +2 -0
  98. package/dist/util/retrieve.spec.d.ts.map +1 -0
  99. package/dist/util/telem.d.ts +2 -1
  100. package/dist/util/telem.d.ts.map +1 -1
  101. package/dist/util/zod.d.ts +4 -0
  102. package/dist/util/zod.d.ts.map +1 -0
  103. package/dist/workspace/client.d.ts +9 -6
  104. package/dist/workspace/client.d.ts.map +1 -1
  105. package/dist/workspace/lineplot/client.d.ts +6 -5
  106. package/dist/workspace/lineplot/client.d.ts.map +1 -1
  107. package/dist/workspace/lineplot/payload.d.ts +3 -2
  108. package/dist/workspace/lineplot/payload.d.ts.map +1 -1
  109. package/dist/workspace/lineplot/retriever.d.ts +3 -2
  110. package/dist/workspace/lineplot/retriever.d.ts.map +1 -1
  111. package/dist/workspace/lineplot/writer.d.ts +7 -6
  112. package/dist/workspace/lineplot/writer.d.ts.map +1 -1
  113. package/dist/workspace/payload.d.ts +3 -2
  114. package/dist/workspace/payload.d.ts.map +1 -1
  115. package/dist/workspace/retriever.d.ts +3 -2
  116. package/dist/workspace/schematic/client.d.ts +18 -0
  117. package/dist/workspace/schematic/client.d.ts.map +1 -0
  118. package/dist/workspace/schematic/external.d.ts.map +1 -0
  119. package/dist/workspace/schematic/index.d.ts +2 -0
  120. package/dist/workspace/schematic/index.d.ts.map +1 -0
  121. package/dist/workspace/{pid → schematic}/payload.d.ts +6 -5
  122. package/dist/workspace/schematic/payload.d.ts.map +1 -0
  123. package/dist/workspace/schematic/retriever.d.ts +10 -0
  124. package/dist/workspace/schematic/retriever.d.ts.map +1 -0
  125. package/dist/workspace/schematic/schematic.spec.d.ts +2 -0
  126. package/dist/workspace/schematic/schematic.spec.d.ts.map +1 -0
  127. package/dist/workspace/{pid → schematic}/writer.d.ts +11 -10
  128. package/dist/workspace/schematic/writer.d.ts.map +1 -0
  129. package/dist/workspace/writer.d.ts +5 -4
  130. package/dist/workspace/writer.d.ts.map +1 -1
  131. package/package.json +9 -8
  132. package/src/auth/auth.spec.ts +55 -15
  133. package/src/auth/auth.ts +41 -42
  134. package/src/channel/batchRetriever.spec.ts +37 -40
  135. package/src/channel/channel.spec.ts +4 -4
  136. package/src/channel/client.ts +42 -49
  137. package/src/channel/creator.ts +37 -0
  138. package/src/channel/payload.ts +2 -1
  139. package/src/channel/retriever.ts +55 -71
  140. package/src/client.ts +23 -20
  141. package/src/connection/checker.ts +1 -1
  142. package/src/connection/connection.spec.ts +1 -6
  143. package/src/control/state.ts +3 -1
  144. package/src/errors.ts +71 -67
  145. package/src/framer/adapter.spec.ts +33 -1
  146. package/src/framer/adapter.ts +10 -6
  147. package/src/framer/client.ts +11 -9
  148. package/src/framer/frame.spec.ts +1 -1
  149. package/src/framer/frame.ts +9 -6
  150. package/src/framer/iterator.spec.ts +1 -1
  151. package/src/framer/iterator.ts +1 -1
  152. package/src/framer/streamProxy.ts +12 -13
  153. package/src/framer/streamer.spec.ts +1 -1
  154. package/src/framer/streamer.ts +25 -1
  155. package/src/framer/writer.spec.ts +23 -11
  156. package/src/framer/writer.ts +6 -6
  157. package/src/hardware/device/client.ts +155 -28
  158. package/src/hardware/device/device.spec.ts +2 -2
  159. package/src/hardware/device/external.ts +0 -2
  160. package/src/hardware/device/index.ts +2 -2
  161. package/src/hardware/rack/client.ts +139 -56
  162. package/src/hardware/rack/external.ts +0 -2
  163. package/src/hardware/rack/rack.spec.ts +20 -1
  164. package/src/hardware/task/client.ts +324 -31
  165. package/src/hardware/task/index.ts +1 -1
  166. package/src/hardware/task/task.spec.ts +41 -0
  167. package/src/index.ts +3 -4
  168. package/src/label/client.ts +3 -2
  169. package/src/label/retriever.ts +1 -1
  170. package/src/label/writer.ts +1 -1
  171. package/src/ontology/client.ts +195 -41
  172. package/src/ontology/external.ts +0 -1
  173. package/src/ontology/group/client.ts +1 -2
  174. package/src/ontology/group/payload.ts +1 -1
  175. package/src/ontology/ontology.spec.ts +16 -0
  176. package/src/ontology/payload.ts +22 -13
  177. package/src/ranger/active.ts +5 -5
  178. package/src/ranger/alias.ts +2 -2
  179. package/src/ranger/client.ts +68 -17
  180. package/src/ranger/external.ts +0 -1
  181. package/src/ranger/kv.ts +6 -1
  182. package/src/ranger/payload.ts +6 -4
  183. package/src/ranger/range.ts +4 -1
  184. package/src/ranger/ranger.spec.ts +24 -2
  185. package/src/signals/observable.ts +24 -63
  186. package/src/transport.ts +2 -1
  187. package/src/util/retrieve.spec.ts +56 -0
  188. package/src/util/retrieve.ts +103 -0
  189. package/src/util/telem.ts +1 -1
  190. package/src/util/zod.ts +4 -0
  191. package/src/workspace/client.ts +6 -4
  192. package/src/workspace/lineplot/client.ts +3 -3
  193. package/src/workspace/lineplot/linePlot.spec.ts +11 -11
  194. package/src/workspace/lineplot/payload.ts +1 -1
  195. package/src/workspace/lineplot/retriever.ts +5 -13
  196. package/src/workspace/lineplot/writer.ts +8 -7
  197. package/src/workspace/payload.ts +6 -3
  198. package/src/workspace/retriever.ts +1 -1
  199. package/src/workspace/{pid → schematic}/client.ts +10 -10
  200. package/src/workspace/{pid → schematic}/external.ts +2 -2
  201. package/src/workspace/{pid → schematic}/index.ts +1 -1
  202. package/src/workspace/{pid → schematic}/payload.ts +4 -4
  203. package/src/workspace/{pid → schematic}/retriever.ts +10 -10
  204. package/src/workspace/{pid/pid.spec.ts → schematic/schematic.spec.ts} +35 -35
  205. package/src/workspace/{pid → schematic}/writer.ts +26 -25
  206. package/src/workspace/workspace.spec.ts +7 -7
  207. package/src/workspace/writer.ts +8 -2
  208. package/dist/hardware/device/payload.d.ts +0 -30
  209. package/dist/hardware/device/payload.d.ts.map +0 -1
  210. package/dist/hardware/device/retriever.d.ts +0 -10
  211. package/dist/hardware/device/retriever.d.ts.map +0 -1
  212. package/dist/hardware/device/writer.d.ts +0 -9
  213. package/dist/hardware/device/writer.d.ts.map +0 -1
  214. package/dist/hardware/rack/payload.d.ts +0 -26
  215. package/dist/hardware/rack/payload.d.ts.map +0 -1
  216. package/dist/hardware/rack/retriever.d.ts +0 -10
  217. package/dist/hardware/rack/retriever.d.ts.map +0 -1
  218. package/dist/hardware/rack/writer.d.ts +0 -9
  219. package/dist/hardware/rack/writer.d.ts.map +0 -1
  220. package/dist/hardware/task/external.d.ts +0 -4
  221. package/dist/hardware/task/external.d.ts.map +0 -1
  222. package/dist/hardware/task/payload.d.ts +0 -42
  223. package/dist/hardware/task/payload.d.ts.map +0 -1
  224. package/dist/hardware/task/retriever.d.ts +0 -29
  225. package/dist/hardware/task/retriever.d.ts.map +0 -1
  226. package/dist/hardware/task/writer.d.ts +0 -9
  227. package/dist/hardware/task/writer.d.ts.map +0 -1
  228. package/dist/ontology/retriever.d.ts +0 -13
  229. package/dist/ontology/retriever.d.ts.map +0 -1
  230. package/dist/ontology/signals.d.ts +0 -30
  231. package/dist/ontology/signals.d.ts.map +0 -1
  232. package/dist/ranger/retriever.d.ts +0 -11
  233. package/dist/ranger/retriever.d.ts.map +0 -1
  234. package/dist/workspace/pid/client.d.ts +0 -17
  235. package/dist/workspace/pid/client.d.ts.map +0 -1
  236. package/dist/workspace/pid/external.d.ts.map +0 -1
  237. package/dist/workspace/pid/index.d.ts +0 -2
  238. package/dist/workspace/pid/index.d.ts.map +0 -1
  239. package/dist/workspace/pid/payload.d.ts.map +0 -1
  240. package/dist/workspace/pid/pid.spec.d.ts +0 -2
  241. package/dist/workspace/pid/pid.spec.d.ts.map +0 -1
  242. package/dist/workspace/pid/retriever.d.ts +0 -9
  243. package/dist/workspace/pid/retriever.d.ts.map +0 -1
  244. package/dist/workspace/pid/writer.d.ts.map +0 -1
  245. package/src/hardware/device/payload.ts +0 -27
  246. package/src/hardware/device/retriever.ts +0 -71
  247. package/src/hardware/device/writer.ts +0 -59
  248. package/src/hardware/rack/payload.ts +0 -26
  249. package/src/hardware/rack/retriever.ts +0 -68
  250. package/src/hardware/rack/writer.ts +0 -59
  251. package/src/hardware/task/external.ts +0 -12
  252. package/src/hardware/task/payload.ts +0 -40
  253. package/src/hardware/task/retriever.ts +0 -70
  254. package/src/hardware/task/writer.ts +0 -65
  255. package/src/ontology/retriever.ts +0 -91
  256. package/src/ontology/signals.ts +0 -136
  257. package/src/ranger/retriever.ts +0 -50
  258. /package/dist/workspace/{pid → schematic}/external.d.ts +0 -0
@@ -1,26 +1,94 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type AsyncTermSearcher } from "@synnaxlabs/x";
3
- import { type Client as FrameClient } from '../framer/client';
1
+ import { observe } from '@synnaxlabs/x';
2
+ import { z } from 'zod';
3
+ import { ID, RelationshipChange, ResourceChange, Resource } from './payload';
4
4
  import { group } from './group';
5
- import { type ID, type Resource } from './payload';
6
- import { Retriever } from './retriever';
7
- import { ChangeTracker } from './signals';
5
+ import { framer } from '../framer';
6
+ import { AsyncTermSearcher } from '@synnaxlabs/x/search';
7
+ import { UnaryClient } from '@synnaxlabs/freighter';
8
+
9
+ declare const retrieveReqZ: z.ZodObject<{
10
+ ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ 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">]>;
12
+ key: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ key: string;
15
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
16
+ }, {
17
+ key: string;
18
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
19
+ }>, "many">>;
20
+ children: z.ZodOptional<z.ZodBoolean>;
21
+ parents: z.ZodOptional<z.ZodBoolean>;
22
+ includeSchema: z.ZodOptional<z.ZodBoolean>;
23
+ excludeFieldData: z.ZodOptional<z.ZodBoolean>;
24
+ term: z.ZodOptional<z.ZodString>;
25
+ limit: z.ZodOptional<z.ZodNumber>;
26
+ offset: z.ZodOptional<z.ZodNumber>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ ids?: {
29
+ key: string;
30
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
31
+ }[] | undefined;
32
+ children?: boolean | undefined;
33
+ parents?: boolean | undefined;
34
+ includeSchema?: boolean | undefined;
35
+ excludeFieldData?: boolean | undefined;
36
+ term?: string | undefined;
37
+ limit?: number | undefined;
38
+ offset?: number | undefined;
39
+ }, {
40
+ ids?: {
41
+ key: string;
42
+ type: "channel" | "user" | "cluster" | "task" | "rack" | "device" | "label" | "builtin" | "node" | "group" | "range" | "range-alias" | "workspace" | "schematic" | "lineplot";
43
+ }[] | undefined;
44
+ children?: boolean | undefined;
45
+ parents?: boolean | undefined;
46
+ includeSchema?: boolean | undefined;
47
+ excludeFieldData?: boolean | undefined;
48
+ term?: string | undefined;
49
+ limit?: number | undefined;
50
+ offset?: number | undefined;
51
+ }>;
52
+ type RetrieveRequest = z.infer<typeof retrieveReqZ>;
53
+ export type RetrieveOptions = Pick<RetrieveRequest, "includeSchema" | "excludeFieldData">;
8
54
  /** The core client class for executing queries against a Synnax cluster ontology */
9
55
  export declare class Client implements AsyncTermSearcher<string, string, Resource> {
56
+ readonly type: string;
10
57
  groups: group.Client;
11
- retriever: Retriever;
58
+ private readonly client;
12
59
  private readonly writer;
13
60
  private readonly framer;
14
- constructor(unary: UnaryClient, framer: FrameClient);
15
- search(term: string): Promise<Resource[]>;
16
- retrieve(id: ID | string, includeSchema?: boolean, includeFieldData?: boolean): Promise<Resource>;
17
- retrieve(ids: ID[] | string[], includeSchema?: boolean, includeFieldData?: boolean): Promise<Resource[]>;
18
- page(offset: number, limit: number): Promise<Resource[]>;
19
- retrieveChildren(IDs: ID | ID[], includeSchema?: boolean, includeFieldData?: boolean): Promise<Resource[]>;
20
- retrieveParents(IDs: ID | ID[], includeSchema?: boolean, includeFieldData?: boolean): Promise<Resource[]>;
61
+ constructor(unary: UnaryClient, framer: framer.Client);
62
+ search(term: string, options?: RetrieveOptions): Promise<Resource[]>;
63
+ retrieve(id: ID | string, options?: RetrieveOptions): Promise<Resource>;
64
+ retrieve(ids: ID[] | string[], options?: RetrieveOptions): Promise<Resource[]>;
65
+ page(offset: number, limit: number, options?: RetrieveOptions): Promise<Resource[]>;
66
+ retrieveChildren(ids: ID | ID[], options?: RetrieveOptions): Promise<Resource[]>;
67
+ retrieveParents(ids: ID | ID[], options?: RetrieveOptions): Promise<Resource[]>;
21
68
  addChildren(id: ID, ...children: ID[]): Promise<void>;
22
69
  removeChildren(id: ID, ...children: ID[]): Promise<void>;
23
70
  moveChildren(from: ID, to: ID, ...children: ID[]): Promise<void>;
24
71
  openChangeTracker(): Promise<ChangeTracker>;
72
+ newSearcherWithOptions(options: RetrieveOptions): AsyncTermSearcher<string, string, Resource>;
73
+ private execRetrieve;
25
74
  }
75
+ export declare class ChangeTracker {
76
+ private readonly resourceObs;
77
+ private readonly relationshipObs;
78
+ readonly relationships: observe.Observable<RelationshipChange[]>;
79
+ readonly resources: observe.Observable<ResourceChange[]>;
80
+ private readonly streamer;
81
+ private readonly client;
82
+ private readonly closePromise;
83
+ constructor(streamer: framer.Streamer, client: Client);
84
+ close(): Promise<void>;
85
+ private start;
86
+ private update;
87
+ private parseRelationshipSets;
88
+ private parseRelationshipDeletes;
89
+ private parseResourceSets;
90
+ private parseResourceDeletes;
91
+ static open(client: framer.Client, retriever: Client): Promise<ChangeTracker>;
92
+ }
93
+ export {};
26
94
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ontology/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,KAAK,MAAM,IAAI,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,oFAAoF;AACpF,qBAAa,MAAO,YAAW,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;IACxE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE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QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAC,CAAC;IAEzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkB;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAgB;gBAEjC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM;IAU/C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAKd,KAAK;YAML,MAAM;IAYpB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;YASlB,iBAAiB;IAkB/B,OAAO,CAAC,oBAAoB;WAUf,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CASpF"}
@@ -1,4 +1,3 @@
1
1
  export * from './client';
2
2
  export * from './payload';
3
- export * from './signals';
4
3
  //# sourceMappingURL=external.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/ontology/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/ontology/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
@@ -1,6 +1,7 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type ID } from '../payload';
1
+ import { ID } from '../payload';
3
2
  import { Group } from './group';
3
+ import { UnaryClient } from '@synnaxlabs/freighter';
4
+
4
5
  export declare class Client {
5
6
  private readonly creator;
6
7
  constructor(unary: UnaryClient);
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAI/C,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAErB,KAAK,EAAE,WAAW;IAIxB,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAIhD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,OAAO,CAAC,KAAK;CAGd"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAG/C,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAE7C,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAErB,KAAK,EAAE,WAAW;IAIxB,MAAM,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAIhD,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIhD,MAAM,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,OAAO,CAAC,KAAK;CAGd"}
@@ -1,4 +1,5 @@
1
1
  import { ontology } from '..';
2
+
2
3
  export declare class Group {
3
4
  key: string;
4
5
  name: string;
@@ -1,4 +1,5 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
+
2
3
  export declare const keyZ: z.ZodString;
3
4
  export type Key = z.infer<typeof keyZ>;
4
5
  export type Name = string;
@@ -1,6 +1,7 @@
1
- import { type UnaryClient } from "@synnaxlabs/freighter";
2
- import { type Payload } from './payload';
3
- import { type ID } from '../payload';
1
+ import { ID } from '../payload';
2
+ import { Payload } from './payload';
3
+ import { UnaryClient } from '@synnaxlabs/freighter';
4
+
4
5
  export declare class Writer {
5
6
  private static readonly ENDPOINT;
6
7
  private static readonly ENDPOINT_RENAME;
@@ -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,aAAa,uUAcjB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,GAAG;;;;;;;;;EAGd,CAAC;AAEH,eAAO,MAAM,SAAS;;;UAMpB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;IAA4B,CAAC;AAElD,qBAAa,EAAE;IACb,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;gBAEA,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,O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AC;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,MAAM,cAAc,uBAAuB,CAAC;AACnD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAiCzD,qBAAa,OAAO;IAClB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAsB;IAC1D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAA0B;IAClE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAuB;IAC5D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAyB;IAChE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA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