@synnaxlabs/client 0.50.0 → 0.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/dist/client.cjs +58 -34
  3. package/dist/client.js +5059 -4398
  4. package/dist/eslint.config.d.ts +2 -2
  5. package/dist/eslint.config.d.ts.map +1 -1
  6. package/dist/src/access/policy/client.d.ts +90 -90
  7. package/dist/src/access/policy/payload.d.ts +17 -17
  8. package/dist/src/access/role/payload.d.ts +2 -2
  9. package/dist/src/arc/payload.d.ts +2 -2
  10. package/dist/src/channel/client.d.ts +4 -5
  11. package/dist/src/channel/client.d.ts.map +1 -1
  12. package/dist/src/channel/payload.d.ts +9 -11
  13. package/dist/src/channel/payload.d.ts.map +1 -1
  14. package/dist/src/channel/retriever.d.ts.map +1 -1
  15. package/dist/src/client.d.ts +10 -0
  16. package/dist/src/client.d.ts.map +1 -1
  17. package/dist/src/device/client.d.ts +14 -7
  18. package/dist/src/device/client.d.ts.map +1 -1
  19. package/dist/src/device/payload.d.ts +65 -32
  20. package/dist/src/device/payload.d.ts.map +1 -1
  21. package/dist/src/device/payload.spec.d.ts +2 -0
  22. package/dist/src/device/payload.spec.d.ts.map +1 -0
  23. package/dist/src/framer/adapter.d.ts.map +1 -1
  24. package/dist/src/framer/client.d.ts +2 -2
  25. package/dist/src/framer/frame.d.ts +5 -5
  26. package/dist/src/framer/frame.d.ts.map +1 -1
  27. package/dist/src/framer/streamer.d.ts +6 -6
  28. package/dist/src/framer/writer.d.ts +9 -9
  29. package/dist/src/group/access.spec.d.ts.map +1 -0
  30. package/dist/src/{ontology/group → group}/client.d.ts +3 -3
  31. package/dist/src/group/client.d.ts.map +1 -0
  32. package/dist/src/group/external.d.ts.map +1 -0
  33. package/dist/src/group/group.spec.d.ts.map +1 -0
  34. package/dist/src/group/index.d.ts.map +1 -0
  35. package/dist/src/{ontology/group → group}/payload.d.ts +1 -1
  36. package/dist/src/group/payload.d.ts.map +1 -0
  37. package/dist/src/index.d.ts +5 -5
  38. package/dist/src/index.d.ts.map +1 -1
  39. package/dist/src/label/client.d.ts +27 -13
  40. package/dist/src/label/client.d.ts.map +1 -1
  41. package/dist/src/label/payload.d.ts +15 -1
  42. package/dist/src/label/payload.d.ts.map +1 -1
  43. package/dist/src/lineplot/access.spec.d.ts.map +1 -0
  44. package/dist/src/{workspace/lineplot → lineplot}/client.d.ts +6 -6
  45. package/dist/src/lineplot/client.d.ts.map +1 -0
  46. package/dist/src/lineplot/external.d.ts.map +1 -0
  47. package/dist/src/lineplot/index.d.ts.map +1 -0
  48. package/dist/src/lineplot/lineplot.spec.d.ts.map +1 -0
  49. package/dist/src/lineplot/payload.d.ts.map +1 -0
  50. package/dist/src/log/access.spec.d.ts.map +1 -0
  51. package/dist/src/{workspace/log → log}/client.d.ts +6 -6
  52. package/dist/src/log/client.d.ts.map +1 -0
  53. package/dist/src/log/external.d.ts.map +1 -0
  54. package/dist/src/log/index.d.ts.map +1 -0
  55. package/dist/src/log/log.spec.d.ts.map +1 -0
  56. package/dist/src/log/payload.d.ts.map +1 -0
  57. package/dist/src/ontology/client.d.ts +6 -10
  58. package/dist/src/ontology/client.d.ts.map +1 -1
  59. package/dist/src/ontology/payload.d.ts +22 -22
  60. package/dist/src/ontology/writer.d.ts +15 -15
  61. package/dist/src/rack/client.d.ts +2 -2
  62. package/dist/src/rack/payload.d.ts +44 -16
  63. package/dist/src/rack/payload.d.ts.map +1 -1
  64. package/dist/src/ranger/alias/client.d.ts +17 -0
  65. package/dist/src/ranger/alias/client.d.ts.map +1 -0
  66. package/dist/src/ranger/alias/external.d.ts +2 -0
  67. package/dist/src/ranger/alias/external.d.ts.map +1 -0
  68. package/dist/src/ranger/alias/index.d.ts +2 -0
  69. package/dist/src/ranger/alias/index.d.ts.map +1 -0
  70. package/dist/src/ranger/{alias.d.ts → alias/payload.d.ts} +14 -20
  71. package/dist/src/ranger/alias/payload.d.ts.map +1 -0
  72. package/dist/src/ranger/client.d.ts +10 -10
  73. package/dist/src/ranger/client.d.ts.map +1 -1
  74. package/dist/src/ranger/external.d.ts +20 -0
  75. package/dist/src/ranger/external.d.ts.map +1 -1
  76. package/dist/src/ranger/kv/client.d.ts +14 -0
  77. package/dist/src/ranger/kv/client.d.ts.map +1 -0
  78. package/dist/src/ranger/kv/external.d.ts +2 -0
  79. package/dist/src/ranger/kv/external.d.ts.map +1 -0
  80. package/dist/src/ranger/kv/index.d.ts +2 -0
  81. package/dist/src/ranger/kv/index.d.ts.map +1 -0
  82. package/dist/src/ranger/kv/payload.d.ts +26 -0
  83. package/dist/src/ranger/kv/payload.d.ts.map +1 -0
  84. package/dist/src/ranger/payload.d.ts +45 -3
  85. package/dist/src/ranger/payload.d.ts.map +1 -1
  86. package/dist/src/ranger/writer.d.ts +18 -4
  87. package/dist/src/ranger/writer.d.ts.map +1 -1
  88. package/dist/src/schematic/access.spec.d.ts.map +1 -0
  89. package/dist/src/{workspace/schematic → schematic}/client.d.ts +6 -6
  90. package/dist/src/schematic/client.d.ts.map +1 -0
  91. package/dist/src/schematic/external.d.ts.map +1 -0
  92. package/dist/src/schematic/index.d.ts.map +1 -0
  93. package/dist/src/schematic/payload.d.ts.map +1 -0
  94. package/dist/src/schematic/schematic.spec.d.ts.map +1 -0
  95. package/dist/src/schematic/symbol/access.spec.d.ts.map +1 -0
  96. package/dist/src/{workspace/schematic → schematic}/symbol/client.d.ts +2 -2
  97. package/dist/src/schematic/symbol/client.d.ts.map +1 -0
  98. package/dist/src/schematic/symbol/client.spec.d.ts.map +1 -0
  99. package/dist/src/schematic/symbol/external.d.ts.map +1 -0
  100. package/dist/src/schematic/symbol/index.d.ts.map +1 -0
  101. package/dist/src/schematic/symbol/payload.d.ts.map +1 -0
  102. package/dist/src/status/payload.d.ts +43 -7
  103. package/dist/src/status/payload.d.ts.map +1 -1
  104. package/dist/src/table/access.spec.d.ts.map +1 -0
  105. package/dist/src/{workspace/table → table}/client.d.ts +6 -6
  106. package/dist/src/table/client.d.ts.map +1 -0
  107. package/dist/src/table/external.d.ts.map +1 -0
  108. package/dist/src/table/index.d.ts.map +1 -0
  109. package/dist/src/table/payload.d.ts.map +1 -0
  110. package/dist/src/table/table.spec.d.ts.map +1 -0
  111. package/dist/src/task/client.d.ts +2 -2
  112. package/dist/src/task/payload.d.ts +4 -4
  113. package/dist/src/task/payload.d.ts.map +1 -1
  114. package/dist/src/user/client.d.ts +2 -2
  115. package/dist/src/view/client.d.ts +2 -2
  116. package/dist/src/workspace/client.d.ts +2 -10
  117. package/dist/src/workspace/client.d.ts.map +1 -1
  118. package/eslint.config.ts +2 -3
  119. package/package.json +10 -9
  120. package/src/arc/lsp.spec.ts +155 -283
  121. package/src/channel/client.ts +3 -5
  122. package/src/channel/payload.spec.ts +0 -57
  123. package/src/channel/payload.ts +7 -14
  124. package/src/channel/retriever.ts +2 -3
  125. package/src/client.ts +16 -1
  126. package/src/device/client.ts +89 -43
  127. package/src/device/payload.spec.ts +118 -0
  128. package/src/device/payload.ts +55 -30
  129. package/src/errors.spec.ts +1 -1
  130. package/src/framer/adapter.ts +5 -7
  131. package/src/framer/frame.ts +8 -8
  132. package/src/{ontology/group → group}/access.spec.ts +7 -7
  133. package/src/{ontology/group → group}/client.ts +1 -1
  134. package/src/group/external.ts +11 -0
  135. package/src/{ontology/group → group}/group.spec.ts +9 -9
  136. package/src/{workspace/log → group}/index.ts +1 -1
  137. package/src/index.ts +5 -5
  138. package/src/label/access.spec.ts +1 -1
  139. package/src/label/client.ts +1 -1
  140. package/src/label/label.spec.ts +4 -4
  141. package/src/{workspace/lineplot → lineplot}/access.spec.ts +14 -14
  142. package/src/{workspace/lineplot → lineplot}/client.ts +13 -13
  143. package/src/lineplot/external.ts +11 -0
  144. package/src/{ontology/group → lineplot}/index.ts +1 -1
  145. package/src/{workspace/lineplot → lineplot}/lineplot.spec.ts +12 -12
  146. package/src/{workspace/log → log}/access.spec.ts +16 -18
  147. package/src/{workspace/log → log}/client.ts +13 -13
  148. package/src/{workspace/schematic/index.ts → log/external.ts} +2 -1
  149. package/src/{workspace/table → log}/index.ts +1 -1
  150. package/src/{workspace/log → log}/log.spec.ts +10 -10
  151. package/src/ontology/client.ts +1 -7
  152. package/src/ontology/ontology.spec.ts +12 -12
  153. package/src/ranger/{alias.ts → alias/client.ts} +6 -37
  154. package/src/{workspace/lineplot → ranger/alias}/external.ts +10 -2
  155. package/src/{workspace/lineplot → ranger/alias}/index.ts +1 -1
  156. package/src/ranger/alias/payload.ts +50 -0
  157. package/src/ranger/client.ts +26 -19
  158. package/src/ranger/external.ts +22 -0
  159. package/src/ranger/{kv.ts → kv/client.ts} +5 -19
  160. package/src/{workspace/schematic → ranger/kv}/external.ts +7 -3
  161. package/src/ranger/kv/index.ts +10 -0
  162. package/src/ranger/kv/payload.ts +32 -0
  163. package/src/ranger/payload.ts +2 -2
  164. package/src/ranger/ranger.spec.ts +1 -1
  165. package/src/{workspace/schematic → schematic}/access.spec.ts +14 -14
  166. package/src/{workspace/schematic → schematic}/client.ts +14 -14
  167. package/src/{workspace/log → schematic}/external.ts +3 -2
  168. package/src/schematic/index.ts +10 -0
  169. package/src/{workspace/schematic → schematic}/schematic.spec.ts +17 -17
  170. package/src/{workspace/schematic → schematic}/symbol/access.spec.ts +19 -19
  171. package/src/{workspace/schematic → schematic}/symbol/client.spec.ts +16 -16
  172. package/src/{workspace/schematic → schematic}/symbol/client.ts +8 -8
  173. package/src/{ontology/group → schematic/symbol}/external.ts +2 -2
  174. package/src/schematic/symbol/index.ts +10 -0
  175. package/src/status/payload.ts +1 -1
  176. package/src/status/status.spec.ts +2 -2
  177. package/src/{workspace/table → table}/access.spec.ts +14 -14
  178. package/src/{workspace/table → table}/client.ts +15 -12
  179. package/src/table/external.ts +11 -0
  180. package/src/table/index.ts +10 -0
  181. package/src/{workspace/table → table}/table.spec.ts +12 -12
  182. package/src/task/payload.ts +4 -5
  183. package/src/workspace/client.ts +0 -12
  184. package/dist/src/ontology/group/access.spec.d.ts.map +0 -1
  185. package/dist/src/ontology/group/client.d.ts.map +0 -1
  186. package/dist/src/ontology/group/external.d.ts.map +0 -1
  187. package/dist/src/ontology/group/group.spec.d.ts.map +0 -1
  188. package/dist/src/ontology/group/index.d.ts.map +0 -1
  189. package/dist/src/ontology/group/payload.d.ts.map +0 -1
  190. package/dist/src/ranger/alias.d.ts.map +0 -1
  191. package/dist/src/ranger/kv.d.ts +0 -48
  192. package/dist/src/ranger/kv.d.ts.map +0 -1
  193. package/dist/src/workspace/lineplot/access.spec.d.ts.map +0 -1
  194. package/dist/src/workspace/lineplot/client.d.ts.map +0 -1
  195. package/dist/src/workspace/lineplot/external.d.ts.map +0 -1
  196. package/dist/src/workspace/lineplot/index.d.ts.map +0 -1
  197. package/dist/src/workspace/lineplot/lineplot.spec.d.ts.map +0 -1
  198. package/dist/src/workspace/lineplot/payload.d.ts.map +0 -1
  199. package/dist/src/workspace/log/access.spec.d.ts.map +0 -1
  200. package/dist/src/workspace/log/client.d.ts.map +0 -1
  201. package/dist/src/workspace/log/external.d.ts.map +0 -1
  202. package/dist/src/workspace/log/index.d.ts.map +0 -1
  203. package/dist/src/workspace/log/log.spec.d.ts.map +0 -1
  204. package/dist/src/workspace/log/payload.d.ts.map +0 -1
  205. package/dist/src/workspace/schematic/access.spec.d.ts.map +0 -1
  206. package/dist/src/workspace/schematic/client.d.ts.map +0 -1
  207. package/dist/src/workspace/schematic/external.d.ts.map +0 -1
  208. package/dist/src/workspace/schematic/index.d.ts.map +0 -1
  209. package/dist/src/workspace/schematic/payload.d.ts.map +0 -1
  210. package/dist/src/workspace/schematic/schematic.spec.d.ts.map +0 -1
  211. package/dist/src/workspace/schematic/symbol/access.spec.d.ts.map +0 -1
  212. package/dist/src/workspace/schematic/symbol/client.d.ts.map +0 -1
  213. package/dist/src/workspace/schematic/symbol/client.spec.d.ts.map +0 -1
  214. package/dist/src/workspace/schematic/symbol/external.d.ts.map +0 -1
  215. package/dist/src/workspace/schematic/symbol/index.d.ts.map +0 -1
  216. package/dist/src/workspace/schematic/symbol/payload.d.ts.map +0 -1
  217. package/dist/src/workspace/table/access.spec.d.ts.map +0 -1
  218. package/dist/src/workspace/table/client.d.ts.map +0 -1
  219. package/dist/src/workspace/table/external.d.ts.map +0 -1
  220. package/dist/src/workspace/table/index.d.ts.map +0 -1
  221. package/dist/src/workspace/table/payload.d.ts.map +0 -1
  222. package/dist/src/workspace/table/table.spec.d.ts.map +0 -1
  223. package/src/workspace/schematic/symbol/external.ts +0 -11
  224. package/src/workspace/schematic/symbol/index.ts +0 -10
  225. package/src/workspace/table/external.ts +0 -11
  226. /package/dist/src/{ontology/group → group}/access.spec.d.ts +0 -0
  227. /package/dist/src/{ontology/group → group}/external.d.ts +0 -0
  228. /package/dist/src/{ontology/group → group}/group.spec.d.ts +0 -0
  229. /package/dist/src/{ontology/group → group}/index.d.ts +0 -0
  230. /package/dist/src/{workspace/lineplot → lineplot}/access.spec.d.ts +0 -0
  231. /package/dist/src/{workspace/lineplot → lineplot}/external.d.ts +0 -0
  232. /package/dist/src/{workspace/lineplot → lineplot}/index.d.ts +0 -0
  233. /package/dist/src/{workspace/lineplot → lineplot}/lineplot.spec.d.ts +0 -0
  234. /package/dist/src/{workspace/lineplot → lineplot}/payload.d.ts +0 -0
  235. /package/dist/src/{workspace/log → log}/access.spec.d.ts +0 -0
  236. /package/dist/src/{workspace/log → log}/external.d.ts +0 -0
  237. /package/dist/src/{workspace/log → log}/index.d.ts +0 -0
  238. /package/dist/src/{workspace/log → log}/log.spec.d.ts +0 -0
  239. /package/dist/src/{workspace/log → log}/payload.d.ts +0 -0
  240. /package/dist/src/{workspace/schematic → schematic}/access.spec.d.ts +0 -0
  241. /package/dist/src/{workspace/schematic → schematic}/external.d.ts +0 -0
  242. /package/dist/src/{workspace/schematic → schematic}/index.d.ts +0 -0
  243. /package/dist/src/{workspace/schematic → schematic}/payload.d.ts +0 -0
  244. /package/dist/src/{workspace/schematic → schematic}/schematic.spec.d.ts +0 -0
  245. /package/dist/src/{workspace/schematic → schematic}/symbol/access.spec.d.ts +0 -0
  246. /package/dist/src/{workspace/schematic → schematic}/symbol/client.spec.d.ts +0 -0
  247. /package/dist/src/{workspace/schematic → schematic}/symbol/external.d.ts +0 -0
  248. /package/dist/src/{workspace/schematic → schematic}/symbol/index.d.ts +0 -0
  249. /package/dist/src/{workspace/schematic → schematic}/symbol/payload.d.ts +0 -0
  250. /package/dist/src/{workspace/table → table}/access.spec.d.ts +0 -0
  251. /package/dist/src/{workspace/table → table}/external.d.ts +0 -0
  252. /package/dist/src/{workspace/table → table}/index.d.ts +0 -0
  253. /package/dist/src/{workspace/table → table}/payload.d.ts +0 -0
  254. /package/dist/src/{workspace/table → table}/table.spec.d.ts +0 -0
  255. /package/src/{ontology/group → group}/payload.ts +0 -0
  256. /package/src/{workspace/lineplot → lineplot}/payload.ts +0 -0
  257. /package/src/{workspace/log → log}/payload.ts +0 -0
  258. /package/src/{workspace/schematic → schematic}/payload.ts +0 -0
  259. /package/src/{workspace/schematic → schematic}/symbol/payload.ts +0 -0
  260. /package/src/{workspace/table → table}/payload.ts +0 -0
@@ -9,8 +9,8 @@
9
9
 
10
10
  import { beforeAll, describe, expect, it } from "vitest";
11
11
 
12
+ import { group } from "@/group";
12
13
  import { ontology } from "@/ontology";
13
- import { group } from "@/ontology/group";
14
14
  import { createTestClient } from "@/testutil/client";
15
15
 
16
16
  const client = createTestClient();
@@ -18,14 +18,14 @@ const client = createTestClient();
18
18
  describe("Symbol Client", () => {
19
19
  let symbolGroup: group.Group;
20
20
  beforeAll(async () => {
21
- symbolGroup = await client.ontology.groups.create({
21
+ symbolGroup = await client.groups.create({
22
22
  parent: ontology.ROOT_ID,
23
23
  name: "Test Symbols",
24
24
  });
25
25
  });
26
26
  describe("create", () => {
27
27
  it("should create a single symbol", async () => {
28
- const symbol = await client.workspaces.schematics.symbols.create({
28
+ const symbol = await client.schematics.symbols.create({
29
29
  name: "Test Symbol",
30
30
  data: {
31
31
  svg: "<svg></svg>",
@@ -40,7 +40,7 @@ describe("Symbol Client", () => {
40
40
  });
41
41
 
42
42
  it("should create multiple symbols", async () => {
43
- const symbols = await client.workspaces.schematics.symbols.create({
43
+ const symbols = await client.schematics.symbols.create({
44
44
  symbols: [
45
45
  {
46
46
  name: "Symbol 1",
@@ -61,13 +61,13 @@ describe("Symbol Client", () => {
61
61
 
62
62
  describe("retrieve", () => {
63
63
  it("should retrieve a single symbol by key", async () => {
64
- const created = await client.workspaces.schematics.symbols.create({
64
+ const created = await client.schematics.symbols.create({
65
65
  name: "Retrieve Test",
66
66
  data: { svg: "<svg></svg>", states: [], handles: [], variant: "sensor" },
67
67
  parent: group.ontologyID(symbolGroup.key),
68
68
  });
69
69
 
70
- const retrieved = await client.workspaces.schematics.symbols.retrieve({
70
+ const retrieved = await client.schematics.symbols.retrieve({
71
71
  key: created.key,
72
72
  });
73
73
  expect(retrieved.key).toBe(created.key);
@@ -75,18 +75,18 @@ describe("Symbol Client", () => {
75
75
  });
76
76
 
77
77
  it("should retrieve multiple symbols by keys", async () => {
78
- const created1 = await client.workspaces.schematics.symbols.create({
78
+ const created1 = await client.schematics.symbols.create({
79
79
  name: "Multi Test 1",
80
80
  data: { svg: "<svg></svg>", states: [], handles: [], variant: "sensor" },
81
81
  parent: group.ontologyID(symbolGroup.key),
82
82
  });
83
- const created2 = await client.workspaces.schematics.symbols.create({
83
+ const created2 = await client.schematics.symbols.create({
84
84
  name: "Multi Test 2",
85
85
  data: { svg: "<svg></svg>", states: [], handles: [], variant: "sensor" },
86
86
  parent: group.ontologyID(symbolGroup.key),
87
87
  });
88
88
 
89
- const retrieved = await client.workspaces.schematics.symbols.retrieve({
89
+ const retrieved = await client.schematics.symbols.retrieve({
90
90
  keys: [created1.key, created2.key],
91
91
  });
92
92
  expect(retrieved).toHaveLength(2);
@@ -95,15 +95,15 @@ describe("Symbol Client", () => {
95
95
 
96
96
  describe("rename", () => {
97
97
  it("should rename a symbol", async () => {
98
- const symbol = await client.workspaces.schematics.symbols.create({
98
+ const symbol = await client.schematics.symbols.create({
99
99
  name: "Original Name",
100
100
  data: { svg: "<svg></svg>", states: [], handles: [], variant: "sensor" },
101
101
  parent: group.ontologyID(symbolGroup.key),
102
102
  });
103
103
 
104
- await client.workspaces.schematics.symbols.rename(symbol.key, "New Name");
104
+ await client.schematics.symbols.rename(symbol.key, "New Name");
105
105
 
106
- const retrieved = await client.workspaces.schematics.symbols.retrieve({
106
+ const retrieved = await client.schematics.symbols.retrieve({
107
107
  key: symbol.key,
108
108
  });
109
109
  expect(retrieved.name).toBe("New Name");
@@ -112,23 +112,23 @@ describe("Symbol Client", () => {
112
112
 
113
113
  describe("delete", () => {
114
114
  it("should delete a single symbol", async () => {
115
- const symbol = await client.workspaces.schematics.symbols.create({
115
+ const symbol = await client.schematics.symbols.create({
116
116
  name: "Delete Test",
117
117
  data: { svg: "<svg></svg>", states: [], handles: [], variant: "sensor" },
118
118
  parent: group.ontologyID(symbolGroup.key),
119
119
  });
120
120
 
121
- await client.workspaces.schematics.symbols.delete(symbol.key);
121
+ await client.schematics.symbols.delete(symbol.key);
122
122
 
123
123
  await expect(
124
- client.workspaces.schematics.symbols.retrieve({ key: symbol.key }),
124
+ client.schematics.symbols.retrieve({ key: symbol.key }),
125
125
  ).rejects.toThrow();
126
126
  });
127
127
  });
128
128
 
129
129
  describe("retrieveGroup", () => {
130
130
  it("should retrieve the symbol group", async () => {
131
- const group = await client.workspaces.schematics.symbols.retrieveGroup();
131
+ const group = await client.schematics.symbols.retrieveGroup();
132
132
  expect(group.key).toBeDefined();
133
133
  expect(group.name).toBe("Schematic Symbols");
134
134
  });
@@ -11,9 +11,8 @@ import { sendRequired, type UnaryClient } from "@synnaxlabs/freighter";
11
11
  import { array } from "@synnaxlabs/x";
12
12
  import { z } from "zod";
13
13
 
14
+ import { group } from "@/group";
14
15
  import { ontology } from "@/ontology";
15
- import { group } from "@/ontology/group";
16
- import { checkForMultipleOrNoResults } from "@/util/retrieve";
17
16
  import {
18
17
  type Key,
19
18
  keyZ,
@@ -21,7 +20,8 @@ import {
21
20
  newZ,
22
21
  type Symbol,
23
22
  symbolZ,
24
- } from "@/workspace/schematic/symbol/payload";
23
+ } from "@/schematic/symbol/payload";
24
+ import { checkForMultipleOrNoResults } from "@/util/retrieve";
25
25
 
26
26
  const createReqZ = z.object({ symbols: newZ.array(), parent: ontology.idZ });
27
27
  const renameReqZ = z.object({ key: keyZ, name: z.string() });
@@ -74,7 +74,7 @@ export class Client {
74
74
  const symbols = isMany ? options.symbols : [options];
75
75
  const res = await sendRequired(
76
76
  this.client,
77
- "/workspace/schematic/symbol/create",
77
+ "/schematic/symbol/create",
78
78
  { symbols, parent: options.parent },
79
79
  createReqZ,
80
80
  createResZ,
@@ -85,7 +85,7 @@ export class Client {
85
85
  async rename(key: Key, name: string): Promise<void> {
86
86
  await sendRequired(
87
87
  this.client,
88
- "/workspace/schematic/symbol/rename",
88
+ "/schematic/symbol/rename",
89
89
  { key, name },
90
90
  renameReqZ,
91
91
  emptyResZ,
@@ -98,7 +98,7 @@ export class Client {
98
98
  const isSingle = "key" in args;
99
99
  const res = await sendRequired(
100
100
  this.client,
101
- "/workspace/schematic/symbol/retrieve",
101
+ "/schematic/symbol/retrieve",
102
102
  args,
103
103
  retrieveArgsZ,
104
104
  retrieveResZ,
@@ -110,7 +110,7 @@ export class Client {
110
110
  async delete(keys: Key | Key[]): Promise<void> {
111
111
  await sendRequired(
112
112
  this.client,
113
- "/workspace/schematic/symbol/delete",
113
+ "/schematic/symbol/delete",
114
114
  { keys: array.toArray(keys) },
115
115
  deleteReqZ,
116
116
  emptyResZ,
@@ -120,7 +120,7 @@ export class Client {
120
120
  async retrieveGroup(): Promise<group.Group> {
121
121
  const res = await sendRequired(
122
122
  this.client,
123
- "/workspace/schematic/symbol/retrieve_group",
123
+ "/schematic/symbol/retrieve-group",
124
124
  {},
125
125
  retrieveGroupReqZ,
126
126
  retrieveGroupResZ,
@@ -7,5 +7,5 @@
7
7
  // License, use of this software will be governed by the Apache License, Version 2.0,
8
8
  // included in the file licenses/APL.txt.
9
9
 
10
- export * from "@/ontology/group/client";
11
- export * from "@/ontology/group/payload";
10
+ export * from "@/schematic/symbol/client";
11
+ export * from "@/schematic/symbol/payload";
@@ -0,0 +1,10 @@
1
+ // Copyright 2026 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
10
+ export * as symbol from "@/schematic/symbol/external";
@@ -23,7 +23,7 @@ export const statusZ = <Details extends z.ZodType = z.ZodNever>(
23
23
 
24
24
  export const newZ = <DetailsSchema extends z.ZodType = z.ZodNever>(
25
25
  detailsSchema?: DetailsSchema,
26
- ) => statusZ(detailsSchema).omit({ labels: true }).partial({ key: true });
26
+ ) => statusZ(detailsSchema).omit({ labels: true }).extend({ key: keyZ.optional() });
27
27
 
28
28
  export type New<DetailsSchema extends z.ZodType = z.ZodNever> = z.input<
29
29
  ReturnType<typeof newZ<DetailsSchema>>
@@ -11,8 +11,8 @@ import { TimeStamp, uuid } from "@synnaxlabs/x";
11
11
  import { describe, expect, it } from "vitest";
12
12
  import z from "zod";
13
13
 
14
+ import { group } from "@/group";
14
15
  import { ontology } from "@/ontology";
15
- import { group } from "@/ontology/group";
16
16
  import { status } from "@/status";
17
17
  import { createTestClient } from "@/testutil/client";
18
18
 
@@ -82,7 +82,7 @@ describe("Status", () => {
82
82
  });
83
83
 
84
84
  it("should set a status with a parent", async () => {
85
- const parentGroup = await client.ontology.groups.create({
85
+ const parentGroup = await client.groups.create({
86
86
  parent: ontology.ROOT_ID,
87
87
  name: "Parent Group",
88
88
  });
@@ -10,9 +10,9 @@
10
10
  import { describe, expect, it } from "vitest";
11
11
 
12
12
  import { AuthError, NotFoundError } from "@/errors";
13
+ import { table } from "@/table";
13
14
  import { createTestClientWithPolicy } from "@/testutil/access";
14
15
  import { createTestClient } from "@/testutil/client";
15
- import { table } from "@/workspace/table";
16
16
 
17
17
  const client = createTestClient();
18
18
 
@@ -28,12 +28,12 @@ describe("table", () => {
28
28
  name: "test",
29
29
  layout: {},
30
30
  });
31
- const randomTable = await client.workspaces.tables.create(ws.key, {
31
+ const randomTable = await client.tables.create(ws.key, {
32
32
  name: "test",
33
33
  data: {},
34
34
  });
35
35
  await expect(
36
- userClient.workspaces.tables.retrieve({ key: randomTable.key }),
36
+ userClient.tables.retrieve({ key: randomTable.key }),
37
37
  ).rejects.toThrow(AuthError);
38
38
  });
39
39
 
@@ -47,11 +47,11 @@ describe("table", () => {
47
47
  name: "test",
48
48
  layout: {},
49
49
  });
50
- const randomTable = await client.workspaces.tables.create(ws.key, {
50
+ const randomTable = await client.tables.create(ws.key, {
51
51
  name: "test",
52
52
  data: {},
53
53
  });
54
- const retrieved = await userClient.workspaces.tables.retrieve({
54
+ const retrieved = await userClient.tables.retrieve({
55
55
  key: randomTable.key,
56
56
  });
57
57
  expect(retrieved.key).toBe(randomTable.key);
@@ -68,7 +68,7 @@ describe("table", () => {
68
68
  name: "test",
69
69
  layout: {},
70
70
  });
71
- await userClient.workspaces.tables.create(ws.key, {
71
+ await userClient.tables.create(ws.key, {
72
72
  name: "test",
73
73
  data: {},
74
74
  });
@@ -85,7 +85,7 @@ describe("table", () => {
85
85
  layout: {},
86
86
  });
87
87
  await expect(
88
- userClient.workspaces.tables.create(ws.key, {
88
+ userClient.tables.create(ws.key, {
89
89
  name: "test",
90
90
  data: {},
91
91
  }),
@@ -102,13 +102,13 @@ describe("table", () => {
102
102
  name: "test",
103
103
  layout: {},
104
104
  });
105
- const randomTable = await client.workspaces.tables.create(ws.key, {
105
+ const randomTable = await client.tables.create(ws.key, {
106
106
  name: "test",
107
107
  data: {},
108
108
  });
109
- await userClient.workspaces.tables.delete(randomTable.key);
109
+ await userClient.tables.delete(randomTable.key);
110
110
  await expect(
111
- userClient.workspaces.tables.retrieve({ key: randomTable.key }),
111
+ userClient.tables.retrieve({ key: randomTable.key }),
112
112
  ).rejects.toThrow(NotFoundError);
113
113
  });
114
114
 
@@ -122,13 +122,13 @@ describe("table", () => {
122
122
  name: "test",
123
123
  layout: {},
124
124
  });
125
- const randomTable = await client.workspaces.tables.create(ws.key, {
125
+ const randomTable = await client.tables.create(ws.key, {
126
126
  name: "test",
127
127
  data: {},
128
128
  });
129
- await expect(
130
- userClient.workspaces.tables.delete(randomTable.key),
131
- ).rejects.toThrow(AuthError);
129
+ await expect(userClient.tables.delete(randomTable.key)).rejects.toThrow(
130
+ AuthError,
131
+ );
132
132
  });
133
133
  });
134
134
  });
@@ -12,8 +12,6 @@ import { array, type record } from "@synnaxlabs/x";
12
12
  import { z } from "zod";
13
13
 
14
14
  import { ontology } from "@/ontology";
15
- import { checkForMultipleOrNoResults } from "@/util/retrieve";
16
- import { type Key as WorkspaceKey, keyZ as workspaceKeyZ } from "@/workspace/payload";
17
15
  import {
18
16
  type Key,
19
17
  keyZ,
@@ -22,7 +20,9 @@ import {
22
20
  type Params,
23
21
  remoteZ,
24
22
  type Table,
25
- } from "@/workspace/table/payload";
23
+ } from "@/table/payload";
24
+ import { checkForMultipleOrNoResults } from "@/util/retrieve";
25
+ import { workspace } from "@/workspace";
26
26
 
27
27
  const renameReqZ = z.object({ key: keyZ, name: z.string() });
28
28
 
@@ -41,7 +41,7 @@ export type RetrieveMultipleParams = z.input<typeof retrieveReqZ>;
41
41
 
42
42
  const retrieveResZ = z.object({ tables: array.nullableZ(remoteZ) });
43
43
 
44
- const createReqZ = z.object({ workspace: workspaceKeyZ, tables: newZ.array() });
44
+ const createReqZ = z.object({ workspace: workspace.keyZ, tables: newZ.array() });
45
45
  const createResZ = z.object({ tables: remoteZ.array() });
46
46
 
47
47
  const emptyResZ = z.object({});
@@ -53,13 +53,16 @@ export class Client {
53
53
  this.client = client;
54
54
  }
55
55
 
56
- async create(workspace: WorkspaceKey, table: New): Promise<Table>;
57
- async create(workspace: WorkspaceKey, tables: New[]): Promise<Table[]>;
58
- async create(workspace: WorkspaceKey, tables: New | New[]): Promise<Table | Table[]> {
56
+ async create(workspace: workspace.Key, table: New): Promise<Table>;
57
+ async create(workspace: workspace.Key, tables: New[]): Promise<Table[]>;
58
+ async create(
59
+ workspace: workspace.Key,
60
+ tables: New | New[],
61
+ ): Promise<Table | Table[]> {
59
62
  const isMany = Array.isArray(tables);
60
63
  const res = await sendRequired(
61
64
  this.client,
62
- "/workspace/table/create",
65
+ "/table/create",
63
66
  { workspace, tables: array.toArray(tables) },
64
67
  createReqZ,
65
68
  createResZ,
@@ -70,7 +73,7 @@ export class Client {
70
73
  async rename(key: Key, name: string): Promise<void> {
71
74
  await sendRequired(
72
75
  this.client,
73
- "/workspace/table/rename",
76
+ "/table/rename",
74
77
  { key, name },
75
78
  renameReqZ,
76
79
  emptyResZ,
@@ -80,7 +83,7 @@ export class Client {
80
83
  async setData(key: Key, data: record.Unknown): Promise<void> {
81
84
  await sendRequired(
82
85
  this.client,
83
- "/workspace/table/set-data",
86
+ "/table/set-data",
84
87
  { key, data: JSON.stringify(data) },
85
88
  setDataReqZ,
86
89
  emptyResZ,
@@ -95,7 +98,7 @@ export class Client {
95
98
  const isSingle = singleRetrieveArgsZ.safeParse(args).success;
96
99
  const res = await sendRequired(
97
100
  this.client,
98
- "/workspace/table/retrieve",
101
+ "/table/retrieve",
99
102
  args,
100
103
  retrieveArgsZ,
101
104
  retrieveResZ,
@@ -107,7 +110,7 @@ export class Client {
107
110
  async delete(keys: Params): Promise<void> {
108
111
  await sendRequired(
109
112
  this.client,
110
- "/workspace/table/delete",
113
+ "/table/delete",
111
114
  { keys: array.toArray(keys) },
112
115
  deleteReqZ,
113
116
  emptyResZ,
@@ -0,0 +1,11 @@
1
+ // Copyright 2026 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
10
+ export * from "@/table/client";
11
+ export * from "@/table/payload";
@@ -0,0 +1,10 @@
1
+ // Copyright 2026 Synnax Labs, Inc.
2
+ //
3
+ // Use of this software is governed by the Business Source License included in the file
4
+ // licenses/BSL.txt.
5
+ //
6
+ // As of the Change Date specified in that file, in accordance with the Business Source
7
+ // License, use of this software will be governed by the Apache License, Version 2.0,
8
+ // included in the file licenses/APL.txt.
9
+
10
+ export * as table from "@/table/external";
@@ -19,7 +19,7 @@ describe("Table", () => {
19
19
  describe("create", () => {
20
20
  test("create one", async () => {
21
21
  const ws = await client.workspaces.create({ name: "Table", layout: { one: 1 } });
22
- const table = await client.workspaces.tables.create(ws.key, {
22
+ const table = await client.tables.create(ws.key, {
23
23
  name: "Table",
24
24
  data: { one: 1 },
25
25
  });
@@ -31,38 +31,38 @@ describe("Table", () => {
31
31
  describe("rename", () => {
32
32
  test("rename one", async () => {
33
33
  const ws = await client.workspaces.create({ name: "Table", layout: { one: 1 } });
34
- const table = await client.workspaces.tables.create(ws.key, {
34
+ const table = await client.tables.create(ws.key, {
35
35
  name: "Table",
36
36
  data: { one: 1 },
37
37
  });
38
- await client.workspaces.tables.rename(table.key, "Table2");
39
- const res = await client.workspaces.tables.retrieve({ key: table.key });
38
+ await client.tables.rename(table.key, "Table2");
39
+ const res = await client.tables.retrieve({ key: table.key });
40
40
  expect(res.name).toEqual("Table2");
41
41
  });
42
42
  });
43
43
  describe("setData", () => {
44
44
  test("set data", async () => {
45
45
  const ws = await client.workspaces.create({ name: "Table", layout: { one: 1 } });
46
- const table = await client.workspaces.tables.create(ws.key, {
46
+ const table = await client.tables.create(ws.key, {
47
47
  name: "Table",
48
48
  data: { one: 1 },
49
49
  });
50
- await client.workspaces.tables.setData(table.key, { two: 2 });
51
- const res = await client.workspaces.tables.retrieve({ key: table.key });
50
+ await client.tables.setData(table.key, { two: 2 });
51
+ const res = await client.tables.retrieve({ key: table.key });
52
52
  expect(res.data.two).toEqual(2);
53
53
  });
54
54
  });
55
55
  describe("delete", () => {
56
56
  test("delete one", async () => {
57
57
  const ws = await client.workspaces.create({ name: "Table", layout: { one: 1 } });
58
- const table = await client.workspaces.tables.create(ws.key, {
58
+ const table = await client.tables.create(ws.key, {
59
59
  name: "Table",
60
60
  data: { one: 1 },
61
61
  });
62
- await client.workspaces.tables.delete(table.key);
63
- await expect(
64
- client.workspaces.tables.retrieve({ key: table.key }),
65
- ).rejects.toThrow(NotFoundError);
62
+ await client.tables.delete(table.key);
63
+ await expect(client.tables.retrieve({ key: table.key })).rejects.toThrow(
64
+ NotFoundError,
65
+ );
66
66
  });
67
67
  });
68
68
  });
@@ -7,11 +7,10 @@
7
7
  // License, use of this software will be governed by the Apache License, Version 2.0,
8
8
  // included in the file licenses/APL.txt.
9
9
 
10
- import { binary, type observe, record, status } from "@synnaxlabs/x";
10
+ import { type observe, record, status } from "@synnaxlabs/x";
11
11
  import { z } from "zod";
12
12
 
13
13
  import { type Key as RackKey } from "@/rack/payload";
14
- import { decodeJSONString } from "@/util/decodeJSONString";
15
14
  import { parseWithoutKeyConversion } from "@/util/parseWithoutKeyConversion";
16
15
 
17
16
  export const keyZ = z.union([
@@ -57,7 +56,7 @@ export const taskZ = <
57
56
  >(
58
57
  schemas: Schemas<Type, Config, StatusData> = {
59
58
  typeSchema: z.string() as unknown as Type,
60
- configSchema: z.unknown() as unknown as Config,
59
+ configSchema: record.nullishToEmpty() as unknown as Config,
61
60
  statusDataSchema: z.unknown() as unknown as StatusData,
62
61
  },
63
62
  ) =>
@@ -66,7 +65,7 @@ export const taskZ = <
66
65
  name: z.string(),
67
66
  type: schemas.typeSchema,
68
67
  internal: z.boolean().optional(),
69
- config: z.string().transform(decodeJSONString).or(schemas.configSchema),
68
+ config: schemas.configSchema,
70
69
  status: statusZ(schemas.statusDataSchema).optional().nullable(),
71
70
  snapshot: z.boolean().optional(),
72
71
  });
@@ -106,7 +105,7 @@ export const newZ = <
106
105
  .omit({ key: true, status: true })
107
106
  .extend({
108
107
  key: keyZ.transform((k) => k.toString()).optional(),
109
- config: z.unknown().transform((c) => binary.JSON_CODEC.encodeString(c)),
108
+ config: schemas?.configSchema ?? record.nullishToEmpty(),
110
109
  status: newStatusZ(schemas?.statusDataSchema ?? z.unknown())
111
110
  .optional()
112
111
  .nullable(),
@@ -13,8 +13,6 @@ import { z } from "zod";
13
13
 
14
14
  import { ontology } from "@/ontology";
15
15
  import { keyZ as userKeyZ } from "@/user/payload";
16
- import { lineplot } from "@/workspace/lineplot";
17
- import { log } from "@/workspace/log";
18
16
  import {
19
17
  type Key,
20
18
  keyZ,
@@ -25,8 +23,6 @@ import {
25
23
  type Workspace,
26
24
  workspaceZ,
27
25
  } from "@/workspace/payload";
28
- import { schematic } from "@/workspace/schematic";
29
- import { table } from "@/workspace/table";
30
26
 
31
27
  const retrieveReqZ = z.object({
32
28
  keys: keyZ.array().optional(),
@@ -54,18 +50,10 @@ export const DELETE_CHANNEL_NAME = "sy_workspace_delete";
54
50
  export interface SetLayoutArgs extends z.input<typeof setLayoutReqZ> {}
55
51
 
56
52
  export class Client {
57
- readonly schematics: schematic.Client;
58
- readonly lineplots: lineplot.Client;
59
- readonly logs: log.Client;
60
- readonly tables: table.Client;
61
53
  private readonly client: UnaryClient;
62
54
 
63
55
  constructor(client: UnaryClient) {
64
56
  this.client = client;
65
- this.schematics = new schematic.Client(client);
66
- this.lineplots = new lineplot.Client(client);
67
- this.logs = new log.Client(client);
68
- this.tables = new table.Client(client);
69
57
  }
70
58
 
71
59
  async create(workspace: New): Promise<Workspace>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"access.spec.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/access.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,KAAK,KAAK,EAAU,KAAK,GAAG,EAAQ,MAAM,0BAA0B,CAAC;AAG9E,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAIrD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAId,CAAC;AAMH,MAAM,WAAW,UAAW,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAEjE,qBAAa,MAAM;IACjB,MAAM,EAAE,WAAW,CAAC;gBAER,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;IAWxC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7C,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/external.ts"],"names":[],"mappings":"AASA,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"group.spec.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/group.spec.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/ontology/group/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,E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} from '@synnaxlabs/freighter';
2
- import { z } from 'zod';
3
- import { Key } from './payload';
4
- export declare const KV_SET_CHANNEL = "sy_range_kv_set";
5
- export declare const KV_DELETE_CHANNEL = "sy_range_kv_delete";
6
- export declare const kvPairZ: z.ZodObject<{
7
- range: z.ZodUUID;
8
- key: z.ZodString;
9
- value: z.ZodString;
10
- }, z.core.$strip>;
11
- export interface KVPair extends z.infer<typeof kvPairZ> {
12
- }
13
- export declare const kvPairKey: ({ range, key }: Omit<KVPair, "value">) => string;
14
- declare const getReqZ: z.ZodObject<{
15
- range: z.ZodUUID;
16
- keys: z.ZodArray<z.ZodString>;
17
- }, z.core.$strip>;
18
- export interface GetRequest extends z.infer<typeof getReqZ> {
19
- }
20
- declare const setReqZ: z.ZodObject<{
21
- range: z.ZodUUID;
22
- pairs: z.ZodArray<z.ZodObject<{
23
- range: z.ZodUUID;
24
- key: z.ZodString;
25
- value: z.ZodString;
26
- }, z.core.$strip>>;
27
- }, z.core.$strip>;
28
- export interface SetRequest extends z.infer<typeof setReqZ> {
29
- }
30
- declare const deleteReqZ: z.ZodObject<{
31
- range: z.ZodUUID;
32
- keys: z.ZodArray<z.ZodString>;
33
- }, z.core.$strip>;
34
- export interface DeleteRequest extends z.infer<typeof deleteReqZ> {
35
- }
36
- export declare class KV {
37
- private readonly rangeKey;
38
- private readonly client;
39
- constructor(rng: Key, client: UnaryClient);
40
- get(key: string): Promise<string>;
41
- get(keys: string[]): Promise<Record<string, string>>;
42
- list(): Promise<Record<string, string>>;
43
- set(key: string, value: string): Promise<void>;
44
- set(kv: Record<string, string>): Promise<void>;
45
- delete(key: string | string[]): Promise<void>;
46
- }
47
- export {};
48
- //# sourceMappingURL=kv.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kv.d.ts","sourceRoot":"","sources":["../../../src/ranger/kv.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,CAAC,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