@synnaxlabs/client 0.53.0 → 0.54.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 (390) hide show
  1. package/.turbo/turbo-build.log +14 -8
  2. package/dist/client.cjs +48 -54
  3. package/dist/client.js +12360 -15511
  4. package/dist/src/access/action/index.d.ts +2 -0
  5. package/dist/src/access/action/index.d.ts.map +1 -0
  6. package/dist/src/access/{payload.d.ts → action/types.gen.d.ts} +2 -1
  7. package/dist/src/access/action/types.gen.d.ts.map +1 -0
  8. package/dist/src/access/enforce.d.ts +2 -2
  9. package/dist/src/access/enforce.d.ts.map +1 -1
  10. package/dist/src/access/external.d.ts +1 -1
  11. package/dist/src/access/external.d.ts.map +1 -1
  12. package/dist/src/access/policy/client.d.ts +233 -389
  13. package/dist/src/access/policy/client.d.ts.map +1 -1
  14. package/dist/src/access/policy/external.d.ts +1 -1
  15. package/dist/src/access/policy/external.d.ts.map +1 -1
  16. package/dist/src/access/policy/types.gen.d.ts +120 -0
  17. package/dist/src/access/policy/types.gen.d.ts.map +1 -0
  18. package/dist/src/access/role/client.d.ts +1 -1
  19. package/dist/src/access/role/client.d.ts.map +1 -1
  20. package/dist/src/access/role/external.d.ts +1 -1
  21. package/dist/src/access/role/external.d.ts.map +1 -1
  22. package/dist/src/access/role/types.gen.d.ts +34 -0
  23. package/dist/src/access/role/types.gen.d.ts.map +1 -0
  24. package/dist/src/arc/client.d.ts +2 -2
  25. package/dist/src/arc/client.d.ts.map +1 -1
  26. package/dist/src/arc/compiler/index.d.ts +2 -0
  27. package/dist/src/arc/compiler/index.d.ts.map +1 -0
  28. package/dist/src/arc/compiler/types.gen.d.ts +12 -0
  29. package/dist/src/arc/compiler/types.gen.d.ts.map +1 -0
  30. package/dist/src/arc/external.d.ts +6 -1
  31. package/dist/src/arc/external.d.ts.map +1 -1
  32. package/dist/src/arc/graph/index.d.ts +2 -0
  33. package/dist/src/arc/graph/index.d.ts.map +1 -0
  34. package/dist/src/arc/graph/types.gen.d.ts +644 -0
  35. package/dist/src/arc/graph/types.gen.d.ts.map +1 -0
  36. package/dist/src/arc/ir/index.d.ts +2 -0
  37. package/dist/src/arc/ir/index.d.ts.map +1 -0
  38. package/dist/src/arc/ir/types.gen.d.ts +2988 -0
  39. package/dist/src/arc/ir/types.gen.d.ts.map +1 -0
  40. package/dist/src/arc/module/index.d.ts +2 -0
  41. package/dist/src/arc/module/index.d.ts.map +1 -0
  42. package/dist/src/arc/module/types.gen.d.ts +1138 -0
  43. package/dist/src/arc/module/types.gen.d.ts.map +1 -0
  44. package/dist/src/arc/program/index.d.ts +2 -0
  45. package/dist/src/arc/program/index.d.ts.map +1 -0
  46. package/dist/src/arc/program/types.gen.d.ts +1138 -0
  47. package/dist/src/arc/program/types.gen.d.ts.map +1 -0
  48. package/dist/src/arc/text/index.d.ts +2 -0
  49. package/dist/src/arc/text/index.d.ts.map +1 -0
  50. package/dist/src/arc/text/types.gen.d.ts +8 -0
  51. package/dist/src/arc/text/types.gen.d.ts.map +1 -0
  52. package/dist/src/arc/types/index.d.ts +2 -0
  53. package/dist/src/arc/types/index.d.ts.map +1 -0
  54. package/dist/src/arc/types/types.gen.d.ts +237 -0
  55. package/dist/src/arc/types/types.gen.d.ts.map +1 -0
  56. package/dist/src/arc/types.gen.d.ts +2394 -0
  57. package/dist/src/arc/types.gen.d.ts.map +1 -0
  58. package/dist/src/channel/client.d.ts +5 -4
  59. package/dist/src/channel/client.d.ts.map +1 -1
  60. package/dist/src/channel/external.d.ts +1 -0
  61. package/dist/src/channel/external.d.ts.map +1 -1
  62. package/dist/src/channel/payload.d.ts +93 -178
  63. package/dist/src/channel/payload.d.ts.map +1 -1
  64. package/dist/src/channel/retriever.d.ts +3 -2
  65. package/dist/src/channel/retriever.d.ts.map +1 -1
  66. package/dist/src/channel/types.gen.d.ts +151 -0
  67. package/dist/src/channel/types.gen.d.ts.map +1 -0
  68. package/dist/src/channel/writer.d.ts +1 -1
  69. package/dist/src/channel/writer.d.ts.map +1 -1
  70. package/dist/src/client.d.ts.map +1 -1
  71. package/dist/src/cluster/index.d.ts +2 -0
  72. package/dist/src/cluster/index.d.ts.map +1 -0
  73. package/dist/src/cluster/types.gen.d.ts +4 -0
  74. package/dist/src/cluster/types.gen.d.ts.map +1 -0
  75. package/dist/src/control/state.d.ts +14 -9
  76. package/dist/src/control/state.d.ts.map +1 -1
  77. package/dist/src/device/client.d.ts +7 -12
  78. package/dist/src/device/client.d.ts.map +1 -1
  79. package/dist/src/device/external.d.ts +1 -1
  80. package/dist/src/device/external.d.ts.map +1 -1
  81. package/dist/src/device/types.gen.d.ts +163 -0
  82. package/dist/src/device/types.gen.d.ts.map +1 -0
  83. package/dist/src/framer/adapter.d.ts +2 -2
  84. package/dist/src/framer/adapter.d.ts.map +1 -1
  85. package/dist/src/framer/client.d.ts +7 -7
  86. package/dist/src/framer/client.d.ts.map +1 -1
  87. package/dist/src/framer/codec.d.ts +5 -5
  88. package/dist/src/framer/codec.d.ts.map +1 -1
  89. package/dist/src/framer/external.d.ts +1 -1
  90. package/dist/src/framer/external.d.ts.map +1 -1
  91. package/dist/src/framer/frame.d.ts +18 -18
  92. package/dist/src/framer/frame.d.ts.map +1 -1
  93. package/dist/src/framer/reader.d.ts +1 -1
  94. package/dist/src/framer/reader.d.ts.map +1 -1
  95. package/dist/src/framer/streamer.d.ts +177 -114
  96. package/dist/src/framer/streamer.d.ts.map +1 -1
  97. package/dist/src/framer/types.gen.d.ts +9 -0
  98. package/dist/src/framer/types.gen.d.ts.map +1 -0
  99. package/dist/src/framer/writer.d.ts +192 -128
  100. package/dist/src/framer/writer.d.ts.map +1 -1
  101. package/dist/src/group/client.d.ts +17 -17
  102. package/dist/src/group/client.d.ts.map +1 -1
  103. package/dist/src/group/external.d.ts +1 -1
  104. package/dist/src/group/external.d.ts.map +1 -1
  105. package/dist/src/group/types.gen.d.ts +23 -0
  106. package/dist/src/group/types.gen.d.ts.map +1 -0
  107. package/dist/src/label/client.d.ts +51 -72
  108. package/dist/src/label/client.d.ts.map +1 -1
  109. package/dist/src/label/payload.d.ts +30 -8
  110. package/dist/src/label/payload.d.ts.map +1 -1
  111. package/dist/src/lineplot/client.d.ts +2 -11
  112. package/dist/src/lineplot/client.d.ts.map +1 -1
  113. package/dist/src/lineplot/external.d.ts +1 -1
  114. package/dist/src/lineplot/external.d.ts.map +1 -1
  115. package/dist/src/lineplot/types.gen.d.ts +33 -0
  116. package/dist/src/lineplot/types.gen.d.ts.map +1 -0
  117. package/dist/src/log/client.d.ts +2 -11
  118. package/dist/src/log/client.d.ts.map +1 -1
  119. package/dist/src/log/external.d.ts +1 -1
  120. package/dist/src/log/external.d.ts.map +1 -1
  121. package/dist/src/log/types.gen.d.ts +33 -0
  122. package/dist/src/log/types.gen.d.ts.map +1 -0
  123. package/dist/src/ontology/client.d.ts +31 -31
  124. package/dist/src/ontology/payload.d.ts +74 -99
  125. package/dist/src/ontology/payload.d.ts.map +1 -1
  126. package/dist/src/ontology/types.gen.d.ts +30 -0
  127. package/dist/src/ontology/types.gen.d.ts.map +1 -0
  128. package/dist/src/ontology/writer.d.ts +80 -80
  129. package/dist/src/rack/client.d.ts +22 -11
  130. package/dist/src/rack/client.d.ts.map +1 -1
  131. package/dist/src/rack/external.d.ts +1 -1
  132. package/dist/src/rack/external.d.ts.map +1 -1
  133. package/dist/src/rack/types.gen.d.ts +72 -0
  134. package/dist/src/rack/types.gen.d.ts.map +1 -0
  135. package/dist/src/range/alias/types.gen.d.ts +14 -0
  136. package/dist/src/range/alias/types.gen.d.ts.map +1 -0
  137. package/dist/src/range/kv/types.gen.d.ts +13 -0
  138. package/dist/src/range/kv/types.gen.d.ts.map +1 -0
  139. package/dist/src/ranger/alias/client.d.ts +1 -1
  140. package/dist/src/ranger/alias/client.d.ts.map +1 -1
  141. package/dist/src/ranger/alias/external.d.ts +3 -1
  142. package/dist/src/ranger/alias/external.d.ts.map +1 -1
  143. package/dist/src/ranger/alias/payload.d.ts +5 -9
  144. package/dist/src/ranger/alias/payload.d.ts.map +1 -1
  145. package/dist/src/ranger/alias/payload.spec.d.ts +2 -0
  146. package/dist/src/ranger/alias/payload.spec.d.ts.map +1 -0
  147. package/dist/src/ranger/alias/types.gen.d.ts +14 -0
  148. package/dist/src/ranger/alias/types.gen.d.ts.map +1 -0
  149. package/dist/src/ranger/client.d.ts +10 -15
  150. package/dist/src/ranger/client.d.ts.map +1 -1
  151. package/dist/src/ranger/external.d.ts +4 -4
  152. package/dist/src/ranger/external.d.ts.map +1 -1
  153. package/dist/src/ranger/kv/client.d.ts +1 -1
  154. package/dist/src/ranger/kv/client.d.ts.map +1 -1
  155. package/dist/src/ranger/kv/external.d.ts +3 -1
  156. package/dist/src/ranger/kv/external.d.ts.map +1 -1
  157. package/dist/src/ranger/kv/payload.d.ts +6 -13
  158. package/dist/src/ranger/kv/payload.d.ts.map +1 -1
  159. package/dist/src/ranger/kv/types.gen.d.ts +13 -0
  160. package/dist/src/ranger/kv/types.gen.d.ts.map +1 -0
  161. package/dist/src/ranger/payload.d.ts +2 -97
  162. package/dist/src/ranger/payload.d.ts.map +1 -1
  163. package/dist/src/ranger/types.gen.d.ts +219 -0
  164. package/dist/src/ranger/types.gen.d.ts.map +1 -0
  165. package/dist/src/ranger/writer.d.ts +25 -25
  166. package/dist/src/ranger/writer.d.ts.map +1 -1
  167. package/dist/src/schematic/client.d.ts +2 -11
  168. package/dist/src/schematic/client.d.ts.map +1 -1
  169. package/dist/src/schematic/external.d.ts +1 -1
  170. package/dist/src/schematic/external.d.ts.map +1 -1
  171. package/dist/src/schematic/symbol/client.d.ts +1 -2
  172. package/dist/src/schematic/symbol/client.d.ts.map +1 -1
  173. package/dist/src/schematic/symbol/external.d.ts +1 -1
  174. package/dist/src/schematic/symbol/external.d.ts.map +1 -1
  175. package/dist/src/schematic/symbol/types.gen.d.ts +277 -0
  176. package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -0
  177. package/dist/src/schematic/types.gen.d.ts +35 -0
  178. package/dist/src/schematic/types.gen.d.ts.map +1 -0
  179. package/dist/src/status/client.d.ts +2 -0
  180. package/dist/src/status/client.d.ts.map +1 -1
  181. package/dist/src/status/payload.d.ts +25 -54
  182. package/dist/src/status/payload.d.ts.map +1 -1
  183. package/dist/src/table/client.d.ts +2 -11
  184. package/dist/src/table/client.d.ts.map +1 -1
  185. package/dist/src/table/external.d.ts +1 -1
  186. package/dist/src/table/external.d.ts.map +1 -1
  187. package/dist/src/table/types.gen.d.ts +33 -0
  188. package/dist/src/table/types.gen.d.ts.map +1 -0
  189. package/dist/src/task/client.d.ts +15 -20
  190. package/dist/src/task/client.d.ts.map +1 -1
  191. package/dist/src/task/external.d.ts +1 -1
  192. package/dist/src/task/external.d.ts.map +1 -1
  193. package/dist/src/task/types.gen.d.ts +155 -0
  194. package/dist/src/task/types.gen.d.ts.map +1 -0
  195. package/dist/src/user/client.d.ts +3 -3
  196. package/dist/src/user/client.d.ts.map +1 -1
  197. package/dist/src/user/external.d.ts +1 -1
  198. package/dist/src/user/external.d.ts.map +1 -1
  199. package/dist/src/user/types.gen.d.ts +35 -0
  200. package/dist/src/user/types.gen.d.ts.map +1 -0
  201. package/dist/src/util/decodeJSONString.d.ts.map +1 -1
  202. package/dist/src/view/client.d.ts +1 -10
  203. package/dist/src/view/client.d.ts.map +1 -1
  204. package/dist/src/view/external.d.ts +1 -1
  205. package/dist/src/view/external.d.ts.map +1 -1
  206. package/dist/src/view/types.gen.d.ts +35 -0
  207. package/dist/src/view/types.gen.d.ts.map +1 -0
  208. package/dist/src/workspace/client.d.ts +2 -11
  209. package/dist/src/workspace/client.d.ts.map +1 -1
  210. package/dist/src/workspace/external.d.ts +1 -1
  211. package/dist/src/workspace/external.d.ts.map +1 -1
  212. package/dist/src/workspace/types.gen.d.ts +34 -0
  213. package/dist/src/workspace/types.gen.d.ts.map +1 -0
  214. package/package.json +11 -11
  215. package/src/access/action/index.ts +11 -0
  216. package/src/access/{payload.ts → action/types.gen.ts} +4 -1
  217. package/src/access/enforce.spec.ts +1 -2
  218. package/src/access/enforce.ts +2 -2
  219. package/src/access/external.ts +1 -1
  220. package/src/access/policy/client.ts +2 -2
  221. package/src/access/policy/external.ts +1 -1
  222. package/src/access/policy/types.gen.ts +44 -0
  223. package/src/access/role/client.ts +2 -2
  224. package/src/access/role/external.ts +1 -1
  225. package/src/access/role/types.gen.ts +46 -0
  226. package/src/arc/access.spec.ts +18 -6
  227. package/src/arc/client.ts +3 -3
  228. package/src/{framer/payload.ts → arc/compiler/index.ts} +1 -6
  229. package/src/arc/compiler/types.gen.ts +27 -0
  230. package/src/arc/external.ts +6 -1
  231. package/src/arc/graph/index.ts +10 -0
  232. package/src/arc/graph/types.gen.ts +59 -0
  233. package/src/arc/ir/index.ts +10 -0
  234. package/src/arc/ir/types.gen.ts +166 -0
  235. package/src/arc/module/index.ts +10 -0
  236. package/src/arc/module/types.gen.ts +18 -0
  237. package/src/arc/program/index.ts +10 -0
  238. package/src/arc/program/types.gen.ts +18 -0
  239. package/src/arc/text/index.ts +10 -0
  240. package/src/arc/text/types.gen.ts +19 -0
  241. package/src/arc/types/index.ts +10 -0
  242. package/src/arc/types/types.gen.ts +132 -0
  243. package/src/arc/types.gen.ts +85 -0
  244. package/src/channel/client.ts +14 -15
  245. package/src/channel/external.ts +1 -0
  246. package/src/channel/payload.spec.ts +19 -16
  247. package/src/channel/payload.ts +14 -82
  248. package/src/channel/retriever.ts +9 -18
  249. package/src/channel/types.gen.ts +137 -0
  250. package/src/channel/writer.ts +2 -2
  251. package/src/client.ts +4 -0
  252. package/src/cluster/index.ts +10 -0
  253. package/src/cluster/types.gen.ts +16 -0
  254. package/src/control/state.ts +8 -6
  255. package/src/device/client.ts +14 -11
  256. package/src/device/device.spec.ts +95 -1
  257. package/src/device/external.ts +1 -1
  258. package/src/device/payload.spec.ts +26 -2
  259. package/src/device/types.gen.ts +100 -0
  260. package/src/framer/adapter.ts +7 -4
  261. package/src/framer/client.ts +15 -9
  262. package/src/framer/codec.spec.ts +25 -5
  263. package/src/framer/codec.ts +11 -9
  264. package/src/framer/deleter.spec.ts +0 -15
  265. package/src/framer/external.ts +1 -1
  266. package/src/framer/frame.ts +44 -36
  267. package/src/framer/reader.spec.ts +2 -2
  268. package/src/framer/reader.ts +6 -6
  269. package/src/framer/streamer.spec.ts +98 -0
  270. package/src/framer/streamer.ts +10 -0
  271. package/src/framer/types.gen.ts +20 -0
  272. package/src/framer/writer.ts +14 -8
  273. package/src/group/client.ts +1 -1
  274. package/src/group/external.ts +1 -1
  275. package/src/group/group.spec.ts +1 -1
  276. package/src/{access/role/payload.ts → group/types.gen.ts} +11 -11
  277. package/src/label/client.ts +2 -5
  278. package/src/label/label.spec.ts +12 -3
  279. package/src/label/payload.ts +3 -1
  280. package/src/lineplot/client.ts +9 -11
  281. package/src/lineplot/external.ts +1 -1
  282. package/src/lineplot/lineplot.spec.ts +40 -0
  283. package/src/lineplot/types.gen.ts +42 -0
  284. package/src/log/client.ts +9 -18
  285. package/src/log/external.ts +1 -1
  286. package/src/log/log.spec.ts +38 -0
  287. package/src/log/types.gen.ts +42 -0
  288. package/src/ontology/payload.ts +5 -29
  289. package/src/ontology/types.gen.ts +41 -0
  290. package/src/rack/client.ts +26 -10
  291. package/src/rack/external.ts +1 -1
  292. package/src/rack/rack.spec.ts +37 -0
  293. package/src/rack/types.gen.ts +62 -0
  294. package/src/range/alias/types.gen.ts +30 -0
  295. package/src/range/kv/types.gen.ts +28 -0
  296. package/src/ranger/alias/client.ts +1 -1
  297. package/src/ranger/alias/external.ts +3 -10
  298. package/src/ranger/alias/payload.spec.ts +52 -0
  299. package/src/ranger/alias/payload.ts +11 -10
  300. package/src/ranger/alias/types.gen.ts +30 -0
  301. package/src/ranger/client.ts +34 -45
  302. package/src/ranger/external.ts +3 -3
  303. package/src/ranger/kv/client.ts +3 -3
  304. package/src/ranger/kv/external.ts +3 -7
  305. package/src/ranger/kv/payload.ts +1 -6
  306. package/src/ranger/kv/types.gen.ts +28 -0
  307. package/src/ranger/payload.ts +2 -46
  308. package/src/ranger/ranger.spec.ts +2 -4
  309. package/src/ranger/types.gen.ts +66 -0
  310. package/src/ranger/writer.ts +2 -1
  311. package/src/schematic/client.ts +11 -14
  312. package/src/schematic/external.ts +1 -1
  313. package/src/schematic/schematic.spec.ts +54 -2
  314. package/src/schematic/symbol/client.ts +2 -4
  315. package/src/schematic/symbol/external.ts +1 -1
  316. package/src/schematic/symbol/types.gen.ts +124 -0
  317. package/src/schematic/types.gen.ts +44 -0
  318. package/src/status/client.ts +4 -3
  319. package/src/status/payload.ts +5 -4
  320. package/src/status/status.spec.ts +106 -11
  321. package/src/table/client.ts +10 -19
  322. package/src/table/external.ts +1 -1
  323. package/src/table/table.spec.ts +38 -0
  324. package/src/table/types.gen.ts +42 -0
  325. package/src/task/client.ts +30 -28
  326. package/src/task/external.ts +1 -1
  327. package/src/task/payload.spec.ts +19 -19
  328. package/src/task/task.spec.ts +127 -9
  329. package/src/task/types.gen.ts +169 -0
  330. package/src/user/client.ts +2 -2
  331. package/src/user/external.ts +1 -1
  332. package/src/user/types.gen.ts +49 -0
  333. package/src/util/decodeJSONString.ts +1 -1
  334. package/src/util/retrieve.ts +2 -2
  335. package/src/view/client.ts +2 -7
  336. package/src/view/external.ts +1 -1
  337. package/src/view/types.gen.ts +44 -0
  338. package/src/workspace/client.ts +10 -14
  339. package/src/workspace/external.ts +1 -1
  340. package/src/workspace/types.gen.ts +45 -0
  341. package/src/workspace/workspace.spec.ts +37 -0
  342. package/tsconfig.json +1 -3
  343. package/vite.config.ts +9 -2
  344. package/dist/src/access/payload.d.ts.map +0 -1
  345. package/dist/src/access/policy/payload.d.ts +0 -156
  346. package/dist/src/access/policy/payload.d.ts.map +0 -1
  347. package/dist/src/access/role/payload.d.ts +0 -27
  348. package/dist/src/access/role/payload.d.ts.map +0 -1
  349. package/dist/src/arc/payload.d.ts +0 -167
  350. package/dist/src/arc/payload.d.ts.map +0 -1
  351. package/dist/src/device/payload.d.ts +0 -281
  352. package/dist/src/device/payload.d.ts.map +0 -1
  353. package/dist/src/framer/payload.d.ts +0 -7
  354. package/dist/src/framer/payload.d.ts.map +0 -1
  355. package/dist/src/group/payload.d.ts +0 -16
  356. package/dist/src/group/payload.d.ts.map +0 -1
  357. package/dist/src/lineplot/payload.d.ts +0 -28
  358. package/dist/src/lineplot/payload.d.ts.map +0 -1
  359. package/dist/src/log/payload.d.ts +0 -28
  360. package/dist/src/log/payload.d.ts.map +0 -1
  361. package/dist/src/rack/payload.d.ts +0 -243
  362. package/dist/src/rack/payload.d.ts.map +0 -1
  363. package/dist/src/schematic/payload.d.ts +0 -38
  364. package/dist/src/schematic/payload.d.ts.map +0 -1
  365. package/dist/src/schematic/symbol/payload.d.ts +0 -169
  366. package/dist/src/schematic/symbol/payload.d.ts.map +0 -1
  367. package/dist/src/table/payload.d.ts +0 -33
  368. package/dist/src/table/payload.d.ts.map +0 -1
  369. package/dist/src/task/payload.d.ts +0 -123
  370. package/dist/src/task/payload.d.ts.map +0 -1
  371. package/dist/src/user/payload.d.ts +0 -22
  372. package/dist/src/user/payload.d.ts.map +0 -1
  373. package/dist/src/view/payload.d.ts +0 -20
  374. package/dist/src/view/payload.d.ts.map +0 -1
  375. package/dist/src/workspace/payload.d.ts +0 -33
  376. package/dist/src/workspace/payload.d.ts.map +0 -1
  377. package/src/access/policy/payload.ts +0 -37
  378. package/src/arc/payload.ts +0 -73
  379. package/src/device/payload.ts +0 -83
  380. package/src/group/payload.ts +0 -24
  381. package/src/lineplot/payload.ts +0 -29
  382. package/src/log/payload.ts +0 -29
  383. package/src/rack/payload.ts +0 -30
  384. package/src/schematic/payload.ts +0 -34
  385. package/src/schematic/symbol/payload.ts +0 -70
  386. package/src/table/payload.ts +0 -33
  387. package/src/task/payload.ts +0 -127
  388. package/src/user/payload.ts +0 -29
  389. package/src/view/payload.ts +0 -25
  390. package/src/workspace/payload.ts +0 -33
@@ -1,5 +1,7 @@
1
1
  import { change, record } from '@synnaxlabs/x';
2
2
  import { z } from 'zod';
3
+ import { RESOURCE_TYPES, ResourceType, resourceTypeZ } from './types.gen';
4
+ export { RESOURCE_TYPES, type ResourceType, resourceTypeZ };
3
5
  export type ResourceChange = change.Change<ID, Resource>;
4
6
  export interface ResourceSet extends change.Set<ID, Resource> {
5
7
  }
@@ -12,63 +14,36 @@ export interface RelationshipDelete extends change.Delete<Relationship, undefine
12
14
  }
13
15
  export interface RelationshipDelete extends change.Delete<Relationship, undefined> {
14
16
  }
15
- export declare const resourceTypeZ: z.ZodEnum<{
16
- label: "label";
17
- log: "log";
18
- builtin: "builtin";
19
- cluster: "cluster";
20
- channel: "channel";
21
- node: "node";
22
- group: "group";
23
- range: "range";
24
- framer: "framer";
25
- "range-alias": "range-alias";
26
- user: "user";
27
- workspace: "workspace";
28
- schematic: "schematic";
29
- lineplot: "lineplot";
30
- rack: "rack";
31
- device: "device";
32
- task: "task";
33
- policy: "policy";
34
- role: "role";
35
- table: "table";
36
- arc: "arc";
37
- schematic_symbol: "schematic_symbol";
38
- status: "status";
39
- view: "view";
40
- }>;
41
- export type ResourceType = z.infer<typeof resourceTypeZ>;
42
17
  export declare const idZ: z.ZodUnion<[z.ZodObject<{
43
18
  type: z.ZodEnum<{
44
- label: "label";
45
- log: "log";
19
+ arc: "arc";
46
20
  builtin: "builtin";
47
- cluster: "cluster";
48
21
  channel: "channel";
49
- node: "node";
50
- group: "group";
51
- range: "range";
22
+ cluster: "cluster";
23
+ device: "device";
52
24
  framer: "framer";
53
- "range-alias": "range-alias";
54
- user: "user";
55
- workspace: "workspace";
56
- schematic: "schematic";
25
+ group: "group";
26
+ label: "label";
57
27
  lineplot: "lineplot";
58
- rack: "rack";
59
- device: "device";
60
- task: "task";
28
+ log: "log";
29
+ node: "node";
61
30
  policy: "policy";
31
+ rack: "rack";
32
+ range: "range";
33
+ "range-alias": "range-alias";
62
34
  role: "role";
63
- table: "table";
64
- arc: "arc";
35
+ schematic: "schematic";
65
36
  schematic_symbol: "schematic_symbol";
66
37
  status: "status";
38
+ table: "table";
39
+ task: "task";
40
+ user: "user";
67
41
  view: "view";
42
+ workspace: "workspace";
68
43
  }>;
69
44
  key: z.ZodString;
70
45
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
71
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
46
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
72
47
  key: string;
73
48
  }, string>>]>;
74
49
  export type ID = z.infer<typeof idZ>;
@@ -89,44 +64,44 @@ export declare const parseIDs: (ids: ID | string | Resource | (ID | string | Res
89
64
  export declare const resourceZ: z.ZodPipe<z.ZodObject<{
90
65
  id: z.ZodUnion<[z.ZodObject<{
91
66
  type: z.ZodEnum<{
92
- label: "label";
93
- log: "log";
67
+ arc: "arc";
94
68
  builtin: "builtin";
95
- cluster: "cluster";
96
69
  channel: "channel";
97
- node: "node";
98
- group: "group";
99
- range: "range";
70
+ cluster: "cluster";
71
+ device: "device";
100
72
  framer: "framer";
101
- "range-alias": "range-alias";
102
- user: "user";
103
- workspace: "workspace";
104
- schematic: "schematic";
73
+ group: "group";
74
+ label: "label";
105
75
  lineplot: "lineplot";
106
- rack: "rack";
107
- device: "device";
108
- task: "task";
76
+ log: "log";
77
+ node: "node";
109
78
  policy: "policy";
79
+ rack: "rack";
80
+ range: "range";
81
+ "range-alias": "range-alias";
110
82
  role: "role";
111
- table: "table";
112
- arc: "arc";
83
+ schematic: "schematic";
113
84
  schematic_symbol: "schematic_symbol";
114
85
  status: "status";
86
+ table: "table";
87
+ task: "task";
88
+ user: "user";
115
89
  view: "view";
90
+ workspace: "workspace";
116
91
  }>;
117
92
  key: z.ZodString;
118
93
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
119
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
94
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
120
95
  key: string;
121
96
  }, string>>]>;
122
97
  name: z.ZodString;
123
98
  data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodUnknown>>>;
124
99
  }, z.core.$strip>, z.ZodTransform<{
125
100
  id: {
126
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
101
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
127
102
  key: string;
128
103
  } | {
129
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
104
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
130
105
  key: string;
131
106
  };
132
107
  name: string;
@@ -134,10 +109,10 @@ export declare const resourceZ: z.ZodPipe<z.ZodObject<{
134
109
  key: string;
135
110
  }, {
136
111
  id: {
137
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
112
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
138
113
  key: string;
139
114
  } | {
140
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
115
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
141
116
  key: string;
142
117
  };
143
118
  name: string;
@@ -151,83 +126,83 @@ export declare const oppositeRelationshipDirection: (direction: RelationshipDire
151
126
  export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
152
127
  from: z.ZodUnion<[z.ZodObject<{
153
128
  type: z.ZodEnum<{
154
- label: "label";
155
- log: "log";
129
+ arc: "arc";
156
130
  builtin: "builtin";
157
- cluster: "cluster";
158
131
  channel: "channel";
159
- node: "node";
160
- group: "group";
161
- range: "range";
132
+ cluster: "cluster";
133
+ device: "device";
162
134
  framer: "framer";
163
- "range-alias": "range-alias";
164
- user: "user";
165
- workspace: "workspace";
166
- schematic: "schematic";
135
+ group: "group";
136
+ label: "label";
167
137
  lineplot: "lineplot";
168
- rack: "rack";
169
- device: "device";
170
- task: "task";
138
+ log: "log";
139
+ node: "node";
171
140
  policy: "policy";
141
+ rack: "rack";
142
+ range: "range";
143
+ "range-alias": "range-alias";
172
144
  role: "role";
173
- table: "table";
174
- arc: "arc";
145
+ schematic: "schematic";
175
146
  schematic_symbol: "schematic_symbol";
176
147
  status: "status";
148
+ table: "table";
149
+ task: "task";
150
+ user: "user";
177
151
  view: "view";
152
+ workspace: "workspace";
178
153
  }>;
179
154
  key: z.ZodString;
180
155
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
181
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
156
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
182
157
  key: string;
183
158
  }, string>>]>;
184
159
  type: z.ZodString;
185
160
  to: z.ZodUnion<[z.ZodObject<{
186
161
  type: z.ZodEnum<{
187
- label: "label";
188
- log: "log";
162
+ arc: "arc";
189
163
  builtin: "builtin";
190
- cluster: "cluster";
191
164
  channel: "channel";
192
- node: "node";
193
- group: "group";
194
- range: "range";
165
+ cluster: "cluster";
166
+ device: "device";
195
167
  framer: "framer";
196
- "range-alias": "range-alias";
197
- user: "user";
198
- workspace: "workspace";
199
- schematic: "schematic";
168
+ group: "group";
169
+ label: "label";
200
170
  lineplot: "lineplot";
201
- rack: "rack";
202
- device: "device";
203
- task: "task";
171
+ log: "log";
172
+ node: "node";
204
173
  policy: "policy";
174
+ rack: "rack";
175
+ range: "range";
176
+ "range-alias": "range-alias";
205
177
  role: "role";
206
- table: "table";
207
- arc: "arc";
178
+ schematic: "schematic";
208
179
  schematic_symbol: "schematic_symbol";
209
180
  status: "status";
181
+ table: "table";
182
+ task: "task";
183
+ user: "user";
210
184
  view: "view";
185
+ workspace: "workspace";
211
186
  }>;
212
187
  key: z.ZodString;
213
188
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
214
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
189
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
215
190
  key: string;
216
191
  }, string>>]>;
217
192
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
218
193
  from: {
219
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
194
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
220
195
  key: string;
221
196
  } | {
222
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
197
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
223
198
  key: string;
224
199
  };
225
200
  type: string;
226
201
  to: {
227
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
202
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
228
203
  key: string;
229
204
  } | {
230
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
205
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
231
206
  key: string;
232
207
  };
233
208
  }, string>>]>;
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAS,KAAK,MAAM,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AAChE,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AACtE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACxE,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CA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,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,oBAAoB,GAAI,cAAc,YAAY,WAC2B,CAAC;AAE3F,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAC5B,cAAc,YAAY,EAC1B,OAAO,qBAAqB,YAS7B,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const RESOURCE_TYPES: readonly ["arc", "builtin", "channel", "cluster", "device", "framer", "group", "label", "lineplot", "log", "node", "policy", "rack", "range", "range-alias", "role", "schematic", "schematic_symbol", "status", "table", "task", "user", "view", "workspace"];
3
+ export declare const resourceTypeZ: z.ZodEnum<{
4
+ arc: "arc";
5
+ builtin: "builtin";
6
+ channel: "channel";
7
+ cluster: "cluster";
8
+ device: "device";
9
+ framer: "framer";
10
+ group: "group";
11
+ label: "label";
12
+ lineplot: "lineplot";
13
+ log: "log";
14
+ node: "node";
15
+ policy: "policy";
16
+ rack: "rack";
17
+ range: "range";
18
+ "range-alias": "range-alias";
19
+ role: "role";
20
+ schematic: "schematic";
21
+ schematic_symbol: "schematic_symbol";
22
+ status: "status";
23
+ table: "table";
24
+ task: "task";
25
+ user: "user";
26
+ view: "view";
27
+ workspace: "workspace";
28
+ }>;
29
+ export type ResourceType = z.infer<typeof resourceTypeZ>;
30
+ //# sourceMappingURL=types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/ontology/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,+PAyBjB,CAAC;AACX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAAyB,CAAC;AACpD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -4,164 +4,164 @@ import { ID } from './payload';
4
4
  export declare const addRemoveChildrenReqZ: z.ZodObject<{
5
5
  id: z.ZodUnion<[z.ZodObject<{
6
6
  type: z.ZodEnum<{
7
- label: "label";
8
- log: "log";
7
+ arc: "arc";
9
8
  builtin: "builtin";
10
- cluster: "cluster";
11
9
  channel: "channel";
12
- node: "node";
13
- group: "group";
14
- range: "range";
10
+ cluster: "cluster";
11
+ device: "device";
15
12
  framer: "framer";
16
- "range-alias": "range-alias";
17
- user: "user";
18
- workspace: "workspace";
19
- schematic: "schematic";
13
+ group: "group";
14
+ label: "label";
20
15
  lineplot: "lineplot";
21
- rack: "rack";
22
- device: "device";
23
- task: "task";
16
+ log: "log";
17
+ node: "node";
24
18
  policy: "policy";
19
+ rack: "rack";
20
+ range: "range";
21
+ "range-alias": "range-alias";
25
22
  role: "role";
26
- table: "table";
27
- arc: "arc";
23
+ schematic: "schematic";
28
24
  schematic_symbol: "schematic_symbol";
29
25
  status: "status";
26
+ table: "table";
27
+ task: "task";
28
+ user: "user";
30
29
  view: "view";
30
+ workspace: "workspace";
31
31
  }>;
32
32
  key: z.ZodString;
33
33
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
34
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
34
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
35
35
  key: string;
36
36
  }, string>>]>;
37
37
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
38
38
  type: z.ZodEnum<{
39
- label: "label";
40
- log: "log";
39
+ arc: "arc";
41
40
  builtin: "builtin";
42
- cluster: "cluster";
43
41
  channel: "channel";
44
- node: "node";
45
- group: "group";
46
- range: "range";
42
+ cluster: "cluster";
43
+ device: "device";
47
44
  framer: "framer";
48
- "range-alias": "range-alias";
49
- user: "user";
50
- workspace: "workspace";
51
- schematic: "schematic";
45
+ group: "group";
46
+ label: "label";
52
47
  lineplot: "lineplot";
53
- rack: "rack";
54
- device: "device";
55
- task: "task";
48
+ log: "log";
49
+ node: "node";
56
50
  policy: "policy";
51
+ rack: "rack";
52
+ range: "range";
53
+ "range-alias": "range-alias";
57
54
  role: "role";
58
- table: "table";
59
- arc: "arc";
55
+ schematic: "schematic";
60
56
  schematic_symbol: "schematic_symbol";
61
57
  status: "status";
58
+ table: "table";
59
+ task: "task";
60
+ user: "user";
62
61
  view: "view";
62
+ workspace: "workspace";
63
63
  }>;
64
64
  key: z.ZodString;
65
65
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
66
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
66
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
67
67
  key: string;
68
68
  }, string>>]>>;
69
69
  }, z.core.$strip>;
70
70
  export declare const moveChildrenReqZ: z.ZodObject<{
71
71
  from: z.ZodUnion<[z.ZodObject<{
72
72
  type: z.ZodEnum<{
73
- label: "label";
74
- log: "log";
73
+ arc: "arc";
75
74
  builtin: "builtin";
76
- cluster: "cluster";
77
75
  channel: "channel";
78
- node: "node";
79
- group: "group";
80
- range: "range";
76
+ cluster: "cluster";
77
+ device: "device";
81
78
  framer: "framer";
82
- "range-alias": "range-alias";
83
- user: "user";
84
- workspace: "workspace";
85
- schematic: "schematic";
79
+ group: "group";
80
+ label: "label";
86
81
  lineplot: "lineplot";
87
- rack: "rack";
88
- device: "device";
89
- task: "task";
82
+ log: "log";
83
+ node: "node";
90
84
  policy: "policy";
85
+ rack: "rack";
86
+ range: "range";
87
+ "range-alias": "range-alias";
91
88
  role: "role";
92
- table: "table";
93
- arc: "arc";
89
+ schematic: "schematic";
94
90
  schematic_symbol: "schematic_symbol";
95
91
  status: "status";
92
+ table: "table";
93
+ task: "task";
94
+ user: "user";
96
95
  view: "view";
96
+ workspace: "workspace";
97
97
  }>;
98
98
  key: z.ZodString;
99
99
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
100
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
100
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
101
101
  key: string;
102
102
  }, string>>]>;
103
103
  to: z.ZodUnion<[z.ZodObject<{
104
104
  type: z.ZodEnum<{
105
- label: "label";
106
- log: "log";
105
+ arc: "arc";
107
106
  builtin: "builtin";
108
- cluster: "cluster";
109
107
  channel: "channel";
110
- node: "node";
111
- group: "group";
112
- range: "range";
108
+ cluster: "cluster";
109
+ device: "device";
113
110
  framer: "framer";
114
- "range-alias": "range-alias";
115
- user: "user";
116
- workspace: "workspace";
117
- schematic: "schematic";
111
+ group: "group";
112
+ label: "label";
118
113
  lineplot: "lineplot";
119
- rack: "rack";
120
- device: "device";
121
- task: "task";
114
+ log: "log";
115
+ node: "node";
122
116
  policy: "policy";
117
+ rack: "rack";
118
+ range: "range";
119
+ "range-alias": "range-alias";
123
120
  role: "role";
124
- table: "table";
125
- arc: "arc";
121
+ schematic: "schematic";
126
122
  schematic_symbol: "schematic_symbol";
127
123
  status: "status";
124
+ table: "table";
125
+ task: "task";
126
+ user: "user";
128
127
  view: "view";
128
+ workspace: "workspace";
129
129
  }>;
130
130
  key: z.ZodString;
131
131
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
132
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
132
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
133
133
  key: string;
134
134
  }, string>>]>;
135
135
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
136
136
  type: z.ZodEnum<{
137
- label: "label";
138
- log: "log";
137
+ arc: "arc";
139
138
  builtin: "builtin";
140
- cluster: "cluster";
141
139
  channel: "channel";
142
- node: "node";
143
- group: "group";
144
- range: "range";
140
+ cluster: "cluster";
141
+ device: "device";
145
142
  framer: "framer";
146
- "range-alias": "range-alias";
147
- user: "user";
148
- workspace: "workspace";
149
- schematic: "schematic";
143
+ group: "group";
144
+ label: "label";
150
145
  lineplot: "lineplot";
151
- rack: "rack";
152
- device: "device";
153
- task: "task";
146
+ log: "log";
147
+ node: "node";
154
148
  policy: "policy";
149
+ rack: "rack";
150
+ range: "range";
151
+ "range-alias": "range-alias";
155
152
  role: "role";
156
- table: "table";
157
- arc: "arc";
153
+ schematic: "schematic";
158
154
  schematic_symbol: "schematic_symbol";
159
155
  status: "status";
156
+ table: "table";
157
+ task: "task";
158
+ user: "user";
160
159
  view: "view";
160
+ workspace: "workspace";
161
161
  }>;
162
162
  key: z.ZodString;
163
163
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
164
- type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
164
+ type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
165
165
  key: string;
166
166
  }, string>>]>>;
167
167
  }, z.core.$strip>;