@synnaxlabs/client 0.54.2 → 0.56.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 (222) hide show
  1. package/.turbo/turbo-build.log +10 -13
  2. package/dist/client.cjs +60 -42
  3. package/dist/client.js +8037 -6265
  4. package/dist/src/access/policy/client.d.ts +70 -80
  5. package/dist/src/access/policy/client.d.ts.map +1 -1
  6. package/dist/src/access/policy/types.gen.d.ts +18 -20
  7. package/dist/src/access/policy/types.gen.d.ts.map +1 -1
  8. package/dist/src/access/role/client.d.ts.map +1 -1
  9. package/dist/src/access/role/types.gen.d.ts +2 -2
  10. package/dist/src/actions/actions.d.ts +68 -0
  11. package/dist/src/actions/actions.d.ts.map +1 -0
  12. package/dist/src/actions/actions.spec.d.ts +2 -0
  13. package/dist/src/actions/actions.spec.d.ts.map +1 -0
  14. package/dist/src/actions/external.d.ts +2 -0
  15. package/dist/src/actions/external.d.ts.map +1 -0
  16. package/dist/src/actions/index.d.ts +2 -0
  17. package/dist/src/actions/index.d.ts.map +1 -0
  18. package/dist/src/arc/arc.spec.d.ts +2 -0
  19. package/dist/src/arc/arc.spec.d.ts.map +1 -0
  20. package/dist/src/arc/client.d.ts.map +1 -1
  21. package/dist/src/arc/compiler/types.gen.d.ts +1 -1
  22. package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
  23. package/dist/src/arc/graph/types.gen.d.ts +40 -40
  24. package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
  25. package/dist/src/arc/ir/types.gen.d.ts +202 -233
  26. package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
  27. package/dist/src/arc/module/types.gen.d.ts +63 -82
  28. package/dist/src/arc/module/types.gen.d.ts.map +1 -1
  29. package/dist/src/arc/program/types.gen.d.ts +63 -82
  30. package/dist/src/arc/program/types.gen.d.ts.map +1 -1
  31. package/dist/src/arc/types/types.gen.d.ts +11 -11
  32. package/dist/src/arc/types/types.gen.d.ts.map +1 -1
  33. package/dist/src/arc/types.gen.d.ts +139 -158
  34. package/dist/src/arc/types.gen.d.ts.map +1 -1
  35. package/dist/src/auth/auth.d.ts +3 -3
  36. package/dist/src/auth/auth.d.ts.map +1 -1
  37. package/dist/src/channel/client.d.ts +2 -2
  38. package/dist/src/channel/client.d.ts.map +1 -1
  39. package/dist/src/channel/retriever.d.ts +5 -8
  40. package/dist/src/channel/retriever.d.ts.map +1 -1
  41. package/dist/src/channel/types.gen.d.ts +3 -3
  42. package/dist/src/channel/types.gen.d.ts.map +1 -1
  43. package/dist/src/channel/writer.d.ts.map +1 -1
  44. package/dist/src/client.d.ts +5 -0
  45. package/dist/src/client.d.ts.map +1 -1
  46. package/dist/src/connection/checker.d.ts +17 -2
  47. package/dist/src/connection/checker.d.ts.map +1 -1
  48. package/dist/src/control/state.d.ts.map +1 -1
  49. package/dist/src/device/client.d.ts.map +1 -1
  50. package/dist/src/device/types.gen.d.ts +6 -8
  51. package/dist/src/device/types.gen.d.ts.map +1 -1
  52. package/dist/src/errors.d.ts +2 -0
  53. package/dist/src/errors.d.ts.map +1 -1
  54. package/dist/src/framer/adapter.d.ts.map +1 -1
  55. package/dist/src/framer/client.d.ts +2 -2
  56. package/dist/src/framer/client.d.ts.map +1 -1
  57. package/dist/src/framer/codec.d.ts +9 -1
  58. package/dist/src/framer/codec.d.ts.map +1 -1
  59. package/dist/src/framer/deleter.d.ts.map +1 -1
  60. package/dist/src/framer/frame.d.ts +1 -1
  61. package/dist/src/framer/iterator.d.ts +84 -3
  62. package/dist/src/framer/iterator.d.ts.map +1 -1
  63. package/dist/src/framer/streamProxy.d.ts.map +1 -1
  64. package/dist/src/framer/streamer.d.ts +1 -3
  65. package/dist/src/framer/streamer.d.ts.map +1 -1
  66. package/dist/src/framer/types.gen.d.ts +18 -0
  67. package/dist/src/framer/types.gen.d.ts.map +1 -1
  68. package/dist/src/framer/writer.d.ts +8 -8
  69. package/dist/src/framer/writer.d.ts.map +1 -1
  70. package/dist/src/group/client.d.ts +1 -2
  71. package/dist/src/group/client.d.ts.map +1 -1
  72. package/dist/src/group/types.gen.d.ts +2 -2
  73. package/dist/src/index.d.ts +2 -1
  74. package/dist/src/index.d.ts.map +1 -1
  75. package/dist/src/label/client.d.ts +5 -8
  76. package/dist/src/label/client.d.ts.map +1 -1
  77. package/dist/src/lineplot/client.d.ts.map +1 -1
  78. package/dist/src/lineplot/types.gen.d.ts +2 -2
  79. package/dist/src/log/client.d.ts.map +1 -1
  80. package/dist/src/log/types.gen.d.ts +2 -2
  81. package/dist/src/ontology/client.d.ts +1 -3
  82. package/dist/src/ontology/client.d.ts.map +1 -1
  83. package/dist/src/ontology/payload.d.ts +12 -16
  84. package/dist/src/ontology/payload.d.ts.map +1 -1
  85. package/dist/src/ontology/types.gen.d.ts +1 -2
  86. package/dist/src/ontology/types.gen.d.ts.map +1 -1
  87. package/dist/src/ontology/writer.d.ts +5 -10
  88. package/dist/src/ontology/writer.d.ts.map +1 -1
  89. package/dist/src/rack/client.d.ts.map +1 -1
  90. package/dist/src/rack/types.gen.d.ts +3 -3
  91. package/dist/src/ranger/alias/client.d.ts.map +1 -1
  92. package/dist/src/ranger/client.d.ts.map +1 -1
  93. package/dist/src/ranger/kv/client.d.ts.map +1 -1
  94. package/dist/src/ranger/types.gen.d.ts +6 -6
  95. package/dist/src/ranger/types.gen.d.ts.map +1 -1
  96. package/dist/src/ranger/writer.d.ts +2 -3
  97. package/dist/src/ranger/writer.d.ts.map +1 -1
  98. package/dist/src/schematic/actions.d.ts +147 -0
  99. package/dist/src/schematic/actions.d.ts.map +1 -0
  100. package/dist/src/schematic/actions.gen.d.ts +484 -0
  101. package/dist/src/schematic/actions.gen.d.ts.map +1 -0
  102. package/dist/src/schematic/actions.spec.d.ts +2 -0
  103. package/dist/src/schematic/actions.spec.d.ts.map +1 -0
  104. package/dist/src/schematic/client.d.ts +53 -2
  105. package/dist/src/schematic/client.d.ts.map +1 -1
  106. package/dist/src/schematic/external.d.ts +2 -0
  107. package/dist/src/schematic/external.d.ts.map +1 -1
  108. package/dist/src/schematic/symbol/client.d.ts.map +1 -1
  109. package/dist/src/schematic/symbol/types.gen.d.ts +48 -58
  110. package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
  111. package/dist/src/schematic/types.gen.d.ts +131 -5
  112. package/dist/src/schematic/types.gen.d.ts.map +1 -1
  113. package/dist/src/status/client.d.ts.map +1 -1
  114. package/dist/src/status/payload.d.ts +3 -3
  115. package/dist/src/table/actions.d.ts +156 -0
  116. package/dist/src/table/actions.d.ts.map +1 -0
  117. package/dist/src/table/actions.gen.d.ts +587 -0
  118. package/dist/src/table/actions.gen.d.ts.map +1 -0
  119. package/dist/src/table/client.d.ts +28 -2
  120. package/dist/src/table/client.d.ts.map +1 -1
  121. package/dist/src/table/external.d.ts +2 -0
  122. package/dist/src/table/external.d.ts.map +1 -1
  123. package/dist/src/table/types.gen.d.ts +71 -4
  124. package/dist/src/table/types.gen.d.ts.map +1 -1
  125. package/dist/src/task/client.d.ts.map +1 -1
  126. package/dist/src/task/types.gen.d.ts +7 -7
  127. package/dist/src/task/types.gen.d.ts.map +1 -1
  128. package/dist/src/user/client.d.ts +2 -2
  129. package/dist/src/user/client.d.ts.map +1 -1
  130. package/dist/src/user/types.gen.d.ts +2 -2
  131. package/dist/src/view/client.d.ts.map +1 -1
  132. package/dist/src/view/types.gen.d.ts +2 -2
  133. package/dist/src/workspace/client.d.ts.map +1 -1
  134. package/dist/src/workspace/types.gen.d.ts +3 -3
  135. package/dist/src/workspace/types.gen.d.ts.map +1 -1
  136. package/package.json +12 -11
  137. package/src/access/policy/client.ts +4 -7
  138. package/src/access/role/client.ts +6 -26
  139. package/src/actions/actions.spec.ts +229 -0
  140. package/src/actions/actions.ts +104 -0
  141. package/src/actions/external.ts +10 -0
  142. package/src/actions/index.ts +10 -0
  143. package/src/arc/arc.spec.ts +44 -0
  144. package/src/arc/client.ts +3 -7
  145. package/src/arc/compiler/types.gen.ts +2 -1
  146. package/src/arc/ir/types.gen.ts +102 -48
  147. package/src/arc/lsp.spec.ts +3 -7
  148. package/src/arc/types/types.gen.ts +3 -3
  149. package/src/auth/auth.spec.ts +12 -13
  150. package/src/auth/auth.ts +48 -34
  151. package/src/channel/batchRetriever.spec.ts +13 -4
  152. package/src/channel/channel.spec.ts +13 -0
  153. package/src/channel/client.ts +8 -6
  154. package/src/channel/retriever.ts +7 -16
  155. package/src/channel/types.gen.ts +1 -2
  156. package/src/channel/writer.ts +4 -20
  157. package/src/client.ts +3 -0
  158. package/src/connection/checker.ts +48 -10
  159. package/src/connection/connection.spec.ts +64 -2
  160. package/src/control/state.ts +5 -4
  161. package/src/device/client.ts +5 -8
  162. package/src/device/device.spec.ts +7 -5
  163. package/src/device/types.gen.ts +4 -4
  164. package/src/errors.ts +8 -9
  165. package/src/framer/adapter.ts +2 -4
  166. package/src/framer/client.ts +12 -0
  167. package/src/framer/codec.spec.ts +53 -3
  168. package/src/framer/codec.ts +58 -25
  169. package/src/framer/deleter.ts +2 -8
  170. package/src/framer/iterator.ts +42 -39
  171. package/src/framer/streamProxy.ts +11 -12
  172. package/src/framer/streamer.spec.ts +1 -1
  173. package/src/framer/streamer.ts +2 -7
  174. package/src/framer/types.gen.ts +20 -0
  175. package/src/framer/writer.spec.ts +221 -1
  176. package/src/framer/writer.ts +53 -28
  177. package/src/group/client.ts +4 -7
  178. package/src/index.ts +3 -2
  179. package/src/label/client.ts +6 -16
  180. package/src/label/label.spec.ts +12 -0
  181. package/src/lineplot/client.ts +6 -21
  182. package/src/log/client.ts +6 -21
  183. package/src/ontology/client.ts +2 -3
  184. package/src/ontology/ontology.spec.ts +10 -0
  185. package/src/ontology/types.gen.ts +0 -1
  186. package/src/ontology/writer.ts +4 -7
  187. package/src/rack/client.ts +4 -7
  188. package/src/rack/rack.spec.ts +12 -1
  189. package/src/ranger/alias/client.ts +6 -11
  190. package/src/ranger/client.ts +2 -3
  191. package/src/ranger/kv/client.ts +4 -7
  192. package/src/ranger/ranger.spec.ts +12 -0
  193. package/src/ranger/writer.ts +4 -17
  194. package/src/schematic/access.spec.ts +6 -6
  195. package/src/schematic/actions.gen.ts +200 -0
  196. package/src/schematic/actions.spec.ts +699 -0
  197. package/src/schematic/actions.ts +168 -0
  198. package/src/schematic/client.ts +34 -30
  199. package/src/schematic/external.ts +2 -0
  200. package/src/schematic/schematic.spec.ts +233 -69
  201. package/src/schematic/symbol/client.spec.ts +33 -9
  202. package/src/schematic/symbol/client.ts +6 -11
  203. package/src/schematic/symbol/types.gen.ts +1 -10
  204. package/src/schematic/types.gen.ts +55 -6
  205. package/src/status/client.ts +4 -10
  206. package/src/status/status.spec.ts +7 -6
  207. package/src/table/access.spec.ts +0 -6
  208. package/src/table/actions.gen.ts +243 -0
  209. package/src/table/actions.ts +255 -0
  210. package/src/table/client.ts +21 -25
  211. package/src/table/external.ts +2 -0
  212. package/src/table/table.spec.ts +588 -43
  213. package/src/table/types.gen.ts +58 -5
  214. package/src/task/client.ts +14 -20
  215. package/src/task/task.spec.ts +15 -1
  216. package/src/task/types.gen.ts +8 -6
  217. package/src/user/client.ts +6 -11
  218. package/src/view/client.ts +4 -7
  219. package/src/view/view.spec.ts +9 -5
  220. package/src/workspace/client.ts +6 -16
  221. package/src/workspace/types.gen.ts +2 -1
  222. package/src/workspace/workspace.spec.ts +14 -1
@@ -7,7 +7,7 @@ import { ontology } from '../../ontology';
7
7
  export declare const regionZ: z.ZodObject<{
8
8
  key: z.ZodString;
9
9
  name: z.ZodString;
10
- selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
10
+ selectors: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<string[], null>>, z.ZodArray<z.ZodString>]>>;
11
11
  strokeColor: z.ZodOptional<z.ZodString>;
12
12
  fillColor: z.ZodOptional<z.ZodString>;
13
13
  }, z.core.$strip>;
@@ -21,43 +21,33 @@ export declare const handleZ: z.ZodObject<{
21
21
  y: z.ZodNumber;
22
22
  }, z.core.$strip>;
23
23
  orientation: z.ZodEnum<{
24
- top: "top";
24
+ left: "left";
25
25
  right: "right";
26
+ top: "top";
26
27
  bottom: "bottom";
27
- left: "left";
28
28
  }>;
29
29
  }, z.core.$strip>;
30
30
  export interface Handle extends z.infer<typeof handleZ> {
31
31
  }
32
- /** Viewport is the camera state for viewing or previewing a symbol. */
33
- export declare const viewportZ: z.ZodObject<{
34
- zoom: z.ZodDefault<z.ZodNumber>;
35
- position: z.ZodObject<{
36
- x: z.ZodNumber;
37
- y: z.ZodNumber;
38
- }, z.core.$strip>;
39
- }, z.core.$strip>;
40
- export interface Viewport extends z.infer<typeof viewportZ> {
41
- }
42
32
  export declare const keyZ: z.ZodUUID;
43
33
  export type Key = z.infer<typeof keyZ>;
44
34
  /** State is a named visual state of a symbol with regional styling configurations. */
45
35
  export declare const stateZ: z.ZodObject<{
46
36
  key: z.ZodString;
47
37
  name: z.ZodString;
48
- regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
38
+ regions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
49
39
  key: string;
50
40
  name: string;
51
41
  selectors: string[];
52
42
  strokeColor?: string | undefined;
53
43
  fillColor?: string | undefined;
54
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
44
+ }[], null>>, z.ZodArray<z.ZodObject<{
55
45
  key: z.ZodString;
56
46
  name: z.ZodString;
57
- selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
47
+ selectors: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<string[], null>>, z.ZodArray<z.ZodString>]>>;
58
48
  strokeColor: z.ZodOptional<z.ZodString>;
59
49
  fillColor: z.ZodOptional<z.ZodString>;
60
- }, z.core.$strip>>]>;
50
+ }, z.core.$strip>>]>>;
61
51
  }, z.core.$strip>;
62
52
  export interface State extends z.infer<typeof stateZ> {
63
53
  }
@@ -67,7 +57,7 @@ export interface State extends z.infer<typeof stateZ> {
67
57
  */
68
58
  export declare const specZ: z.ZodObject<{
69
59
  svg: z.ZodString;
70
- states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
60
+ states: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
71
61
  key: string;
72
62
  name: string;
73
63
  regions: {
@@ -77,44 +67,44 @@ export declare const specZ: z.ZodObject<{
77
67
  strokeColor?: string | undefined;
78
68
  fillColor?: string | undefined;
79
69
  }[];
80
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
70
+ }[], null>>, z.ZodArray<z.ZodObject<{
81
71
  key: z.ZodString;
82
72
  name: z.ZodString;
83
- regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
73
+ regions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
84
74
  key: string;
85
75
  name: string;
86
76
  selectors: string[];
87
77
  strokeColor?: string | undefined;
88
78
  fillColor?: string | undefined;
89
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
79
+ }[], null>>, z.ZodArray<z.ZodObject<{
90
80
  key: z.ZodString;
91
81
  name: z.ZodString;
92
- selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
82
+ selectors: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<string[], null>>, z.ZodArray<z.ZodString>]>>;
93
83
  strokeColor: z.ZodOptional<z.ZodString>;
94
84
  fillColor: z.ZodOptional<z.ZodString>;
95
- }, z.core.$strip>>]>;
96
- }, z.core.$strip>>]>;
85
+ }, z.core.$strip>>]>>;
86
+ }, z.core.$strip>>]>>;
97
87
  variant: z.ZodString;
98
- handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
88
+ handles: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
99
89
  key: string;
100
90
  position: {
101
91
  x: number;
102
92
  y: number;
103
93
  };
104
- orientation: "top" | "right" | "bottom" | "left";
105
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
94
+ orientation: "left" | "right" | "top" | "bottom";
95
+ }[], null>>, z.ZodArray<z.ZodObject<{
106
96
  key: z.ZodString;
107
97
  position: z.ZodObject<{
108
98
  x: z.ZodNumber;
109
99
  y: z.ZodNumber;
110
100
  }, z.core.$strip>;
111
101
  orientation: z.ZodEnum<{
112
- top: "top";
102
+ left: "left";
113
103
  right: "right";
104
+ top: "top";
114
105
  bottom: "bottom";
115
- left: "left";
116
106
  }>;
117
- }, z.core.$strip>>]>;
107
+ }, z.core.$strip>>]>>;
118
108
  scale: z.ZodDefault<z.ZodNumber>;
119
109
  scaleStroke: z.ZodDefault<z.ZodBoolean>;
120
110
  previewViewport: z.ZodOptional<z.ZodObject<{
@@ -137,7 +127,7 @@ export declare const symbolZ: z.ZodObject<{
137
127
  name: z.ZodString;
138
128
  data: z.ZodObject<{
139
129
  svg: z.ZodString;
140
- states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
130
+ states: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
141
131
  key: string;
142
132
  name: string;
143
133
  regions: {
@@ -147,44 +137,44 @@ export declare const symbolZ: z.ZodObject<{
147
137
  strokeColor?: string | undefined;
148
138
  fillColor?: string | undefined;
149
139
  }[];
150
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
140
+ }[], null>>, z.ZodArray<z.ZodObject<{
151
141
  key: z.ZodString;
152
142
  name: z.ZodString;
153
- regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
143
+ regions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
154
144
  key: string;
155
145
  name: string;
156
146
  selectors: string[];
157
147
  strokeColor?: string | undefined;
158
148
  fillColor?: string | undefined;
159
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
149
+ }[], null>>, z.ZodArray<z.ZodObject<{
160
150
  key: z.ZodString;
161
151
  name: z.ZodString;
162
- selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
152
+ selectors: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<string[], null>>, z.ZodArray<z.ZodString>]>>;
163
153
  strokeColor: z.ZodOptional<z.ZodString>;
164
154
  fillColor: z.ZodOptional<z.ZodString>;
165
- }, z.core.$strip>>]>;
166
- }, z.core.$strip>>]>;
155
+ }, z.core.$strip>>]>>;
156
+ }, z.core.$strip>>]>>;
167
157
  variant: z.ZodString;
168
- handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
158
+ handles: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
169
159
  key: string;
170
160
  position: {
171
161
  x: number;
172
162
  y: number;
173
163
  };
174
- orientation: "top" | "right" | "bottom" | "left";
175
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
164
+ orientation: "left" | "right" | "top" | "bottom";
165
+ }[], null>>, z.ZodArray<z.ZodObject<{
176
166
  key: z.ZodString;
177
167
  position: z.ZodObject<{
178
168
  x: z.ZodNumber;
179
169
  y: z.ZodNumber;
180
170
  }, z.core.$strip>;
181
171
  orientation: z.ZodEnum<{
182
- top: "top";
172
+ left: "left";
183
173
  right: "right";
174
+ top: "top";
184
175
  bottom: "bottom";
185
- left: "left";
186
176
  }>;
187
- }, z.core.$strip>>]>;
177
+ }, z.core.$strip>>]>>;
188
178
  scale: z.ZodDefault<z.ZodNumber>;
189
179
  scaleStroke: z.ZodDefault<z.ZodBoolean>;
190
180
  previewViewport: z.ZodOptional<z.ZodObject<{
@@ -205,7 +195,7 @@ export declare const newZ: z.ZodObject<{
205
195
  name: z.ZodString;
206
196
  data: z.ZodObject<{
207
197
  svg: z.ZodString;
208
- states: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
198
+ states: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
209
199
  key: string;
210
200
  name: string;
211
201
  regions: {
@@ -215,44 +205,44 @@ export declare const newZ: z.ZodObject<{
215
205
  strokeColor?: string | undefined;
216
206
  fillColor?: string | undefined;
217
207
  }[];
218
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
208
+ }[], null>>, z.ZodArray<z.ZodObject<{
219
209
  key: z.ZodString;
220
210
  name: z.ZodString;
221
- regions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
211
+ regions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
222
212
  key: string;
223
213
  name: string;
224
214
  selectors: string[];
225
215
  strokeColor?: string | undefined;
226
216
  fillColor?: string | undefined;
227
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
217
+ }[], null>>, z.ZodArray<z.ZodObject<{
228
218
  key: z.ZodString;
229
219
  name: z.ZodString;
230
- selectors: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string[], null | undefined>>, z.ZodArray<z.ZodString>]>;
220
+ selectors: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<string[], null>>, z.ZodArray<z.ZodString>]>>;
231
221
  strokeColor: z.ZodOptional<z.ZodString>;
232
222
  fillColor: z.ZodOptional<z.ZodString>;
233
- }, z.core.$strip>>]>;
234
- }, z.core.$strip>>]>;
223
+ }, z.core.$strip>>]>>;
224
+ }, z.core.$strip>>]>>;
235
225
  variant: z.ZodString;
236
- handles: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
226
+ handles: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
237
227
  key: string;
238
228
  position: {
239
229
  x: number;
240
230
  y: number;
241
231
  };
242
- orientation: "top" | "right" | "bottom" | "left";
243
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
232
+ orientation: "left" | "right" | "top" | "bottom";
233
+ }[], null>>, z.ZodArray<z.ZodObject<{
244
234
  key: z.ZodString;
245
235
  position: z.ZodObject<{
246
236
  x: z.ZodNumber;
247
237
  y: z.ZodNumber;
248
238
  }, z.core.$strip>;
249
239
  orientation: z.ZodEnum<{
250
- top: "top";
240
+ left: "left";
251
241
  right: "right";
242
+ top: "top";
252
243
  bottom: "bottom";
253
- left: "left";
254
244
  }>;
255
- }, z.core.$strip>>]>;
245
+ }, z.core.$strip>>]>>;
256
246
  scale: z.ZodDefault<z.ZodNumber>;
257
247
  scaleStroke: z.ZodDefault<z.ZodBoolean>;
258
248
  previewViewport: z.ZodOptional<z.ZodObject<{
@@ -268,10 +258,10 @@ export interface New extends z.input<typeof newZ> {
268
258
  }
269
259
  export declare const ontologyID: ontology.CreateID<string>;
270
260
  export declare const TYPE_ONTOLOGY_ID: {
271
- 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";
261
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
272
262
  key: string;
273
263
  } | {
274
- 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";
264
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
275
265
  key: string;
276
266
  };
277
267
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,OAAO;;;;;;iBAWlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,sFAAsF;AACtF,eAAO,MAAM,OAAO;;;;;;;;;;;;iBAOlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,uEAAuE;AACvE,eAAO,MAAM,SAAS;;;;;;iBAKpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,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from '@synnaxlabs/x';
2
1
  import { z } from 'zod';
3
2
  import { ontology } from '../ontology';
3
+ /** Node is a diagram node representing a symbol in the schematic. */
4
+ export declare const nodeZ: z.ZodObject<{
5
+ key: z.ZodString;
6
+ position: z.ZodObject<{
7
+ x: z.ZodNumber;
8
+ y: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ zIndex: z.ZodOptional<z.ZodInt>;
11
+ measured: z.ZodOptional<z.ZodObject<{
12
+ width: z.ZodNumber;
13
+ height: z.ZodNumber;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ export interface Node extends z.infer<typeof nodeZ> {
17
+ }
18
+ /**
19
+ * Handle is a reference to a specific connection point on a specific node.
20
+ * For schematics, param is the symbol handle key (e.g. inlet, outlet).
21
+ */
22
+ export declare const handleZ: z.ZodObject<{
23
+ node: z.ZodString;
24
+ param: z.ZodString;
25
+ }, z.core.$strip>;
26
+ export interface Handle extends z.infer<typeof handleZ> {
27
+ }
4
28
  export declare const keyZ: z.ZodUUID;
5
29
  export type Key = z.infer<typeof keyZ>;
30
+ /** Edge is a connection between two nodes in the schematic. */
31
+ export declare const edgeZ: z.ZodObject<{
32
+ key: z.ZodString;
33
+ source: z.ZodObject<{
34
+ node: z.ZodString;
35
+ param: z.ZodString;
36
+ }, z.core.$strip>;
37
+ target: z.ZodObject<{
38
+ node: z.ZodString;
39
+ param: z.ZodString;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ export interface Edge extends z.infer<typeof edgeZ> {
43
+ }
6
44
  /**
7
45
  * Schematic is a visual diagram editor component for drawing system schematics,
8
46
  * control flows, and process diagrams. Schematics support interactive
@@ -11,25 +49,113 @@ export type Key = z.infer<typeof keyZ>;
11
49
  export declare const schematicZ: z.ZodObject<{
12
50
  key: z.ZodUUID;
13
51
  name: z.ZodString;
14
- data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
15
52
  snapshot: z.ZodBoolean;
53
+ nodes: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
54
+ key: string;
55
+ position: {
56
+ x: number;
57
+ y: number;
58
+ };
59
+ zIndex?: number | undefined;
60
+ measured?: {
61
+ width: number;
62
+ height: number;
63
+ } | undefined;
64
+ }[], null>>, z.ZodArray<z.ZodObject<{
65
+ key: z.ZodString;
66
+ position: z.ZodObject<{
67
+ x: z.ZodNumber;
68
+ y: z.ZodNumber;
69
+ }, z.core.$strip>;
70
+ zIndex: z.ZodOptional<z.ZodInt>;
71
+ measured: z.ZodOptional<z.ZodObject<{
72
+ width: z.ZodNumber;
73
+ height: z.ZodNumber;
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>>]>>;
76
+ edges: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
77
+ key: string;
78
+ source: {
79
+ node: string;
80
+ param: string;
81
+ };
82
+ target: {
83
+ node: string;
84
+ param: string;
85
+ };
86
+ }[], null>>, z.ZodArray<z.ZodObject<{
87
+ key: z.ZodString;
88
+ source: z.ZodObject<{
89
+ node: z.ZodString;
90
+ param: z.ZodString;
91
+ }, z.core.$strip>;
92
+ target: z.ZodObject<{
93
+ node: z.ZodString;
94
+ param: z.ZodString;
95
+ }, z.core.$strip>;
96
+ }, z.core.$strip>>]>>;
97
+ configs: z.ZodType<Record<string, Record<string | number, unknown>>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string | number, unknown>>, unknown>>;
16
98
  }, z.core.$strip>;
17
99
  export interface Schematic extends z.infer<typeof schematicZ> {
18
100
  }
19
101
  export declare const newZ: z.ZodObject<{
20
102
  key: z.ZodOptional<z.ZodUUID>;
21
103
  name: z.ZodString;
22
- data: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
23
104
  snapshot: z.ZodOptional<z.ZodBoolean>;
105
+ nodes: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
106
+ key: string;
107
+ position: {
108
+ x: number;
109
+ y: number;
110
+ };
111
+ zIndex?: number | undefined;
112
+ measured?: {
113
+ width: number;
114
+ height: number;
115
+ } | undefined;
116
+ }[], null>>, z.ZodArray<z.ZodObject<{
117
+ key: z.ZodString;
118
+ position: z.ZodObject<{
119
+ x: z.ZodNumber;
120
+ y: z.ZodNumber;
121
+ }, z.core.$strip>;
122
+ zIndex: z.ZodOptional<z.ZodInt>;
123
+ measured: z.ZodOptional<z.ZodObject<{
124
+ width: z.ZodNumber;
125
+ height: z.ZodNumber;
126
+ }, z.core.$strip>>;
127
+ }, z.core.$strip>>]>>;
128
+ edges: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
129
+ key: string;
130
+ source: {
131
+ node: string;
132
+ param: string;
133
+ };
134
+ target: {
135
+ node: string;
136
+ param: string;
137
+ };
138
+ }[], null>>, z.ZodArray<z.ZodObject<{
139
+ key: z.ZodString;
140
+ source: z.ZodObject<{
141
+ node: z.ZodString;
142
+ param: z.ZodString;
143
+ }, z.core.$strip>;
144
+ target: z.ZodObject<{
145
+ node: z.ZodString;
146
+ param: z.ZodString;
147
+ }, z.core.$strip>;
148
+ }, z.core.$strip>>]>>;
149
+ configs: z.ZodType<Record<string, Record<string | number, unknown>>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string | number, unknown>>, unknown>>;
24
150
  }, z.core.$strip>;
25
151
  export interface New extends z.input<typeof newZ> {
26
152
  }
27
153
  export declare const ontologyID: ontology.CreateID<string>;
28
154
  export declare const TYPE_ONTOLOGY_ID: {
29
- 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";
155
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
30
156
  key: string;
31
157
  } | {
32
- 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";
158
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
33
159
  key: string;
34
160
  };
35
161
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/schematic/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAY,MAAM,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;iBAYrB,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,eAAO,MAAM,IAAI;;;;;iBAAoD,CAAC;AACtE,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAA6C,CAAC;AACrE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
1
+ {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/schematic/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CA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EAAE,MAAM,CAAY;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,aAAa,SAAS,CAAC,CAAC,OAAO,EAC5C,IAAI,EAAE,kBAAkB,GAAG;QAAE,aAAa,CAAC,EAAE,aAAa,CAAA;KAAE,GAC3D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAgBpD,GAAG,CAAC,aAAa,SAAS,CAAC,CAAC,OAAO,EACvC,MAAM,EAAE,GAAG,CAAC,aAAa,CAAC,EAC1B,IAAI,CAAC,EAAE,UAAU,GAAG;QAAE,aAAa,CAAC,EAAE,aAAa,CAAA;KAAE,GACpD,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IAC3B,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC;IACpD,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB1D,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAQ/C"}
@@ -12,9 +12,9 @@ export declare const statusZ: <Details extends z.ZodType = z.ZodNever>(detailsSc
12
12
  disabled: "disabled";
13
13
  }>>;
14
14
  export declare const newZ: <DetailsSchema extends z.ZodType = z.ZodNever>(detailsSchema?: DetailsSchema) => z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
15
16
  message: z.ZodString;
16
17
  key: z.ZodOptional<z.ZodDefault<z.ZodString>>;
17
- name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
18
18
  description: z.ZodOptional<z.ZodString>;
19
19
  time: z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
20
20
  value: z.ZodBigInt;
@@ -37,10 +37,10 @@ export declare const SET_CHANNEL_NAME = "sy_status_set";
37
37
  export declare const DELETE_CHANNEL_NAME = "sy_status_delete";
38
38
  export declare const ontologyID: ontology.CreateID<string>;
39
39
  export declare const TYPE_ONTOLOGY_ID: {
40
- 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";
40
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
41
41
  key: string;
42
42
  } | {
43
- 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";
43
+ type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
44
44
  key: string;
45
45
  };
46
46
  //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1,156 @@
1
+ export declare const reduceAll: (state: import('./types.gen').Table, actions: ({
2
+ type: "rename";
3
+ rename: {
4
+ name: string;
5
+ };
6
+ } | {
7
+ type: "add_row";
8
+ addRow: {
9
+ index: number;
10
+ size: number;
11
+ cells: {
12
+ key: string;
13
+ variant: string;
14
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
15
+ }[];
16
+ cellTemplate?: {
17
+ key: string;
18
+ variant: string;
19
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
20
+ } | undefined;
21
+ };
22
+ } | {
23
+ type: "remove_row";
24
+ removeRow: {
25
+ index: number;
26
+ };
27
+ } | {
28
+ type: "add_col";
29
+ addCol: {
30
+ index: number;
31
+ size: number;
32
+ cells: {
33
+ key: string;
34
+ variant: string;
35
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
36
+ }[];
37
+ cellTemplate?: {
38
+ key: string;
39
+ variant: string;
40
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
41
+ } | undefined;
42
+ };
43
+ } | {
44
+ type: "remove_col";
45
+ removeCol: {
46
+ index: number;
47
+ };
48
+ } | {
49
+ type: "resize_row";
50
+ resizeRow: {
51
+ index: number;
52
+ size: number;
53
+ };
54
+ } | {
55
+ type: "resize_col";
56
+ resizeCol: {
57
+ index: number;
58
+ size: number;
59
+ };
60
+ } | {
61
+ type: "set_cell";
62
+ setCell: {
63
+ cell: {
64
+ key: string;
65
+ variant: string;
66
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
67
+ };
68
+ };
69
+ } | {
70
+ type: "erase_cells";
71
+ eraseCells: {
72
+ cells: string[];
73
+ template: {
74
+ variant: string;
75
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
76
+ };
77
+ };
78
+ })[]) => import('../actions/actions').ReduceAllResult<import('./types.gen').Table, {
79
+ type: "rename";
80
+ rename: {
81
+ name: string;
82
+ };
83
+ } | {
84
+ type: "add_row";
85
+ addRow: {
86
+ index: number;
87
+ size: number;
88
+ cells: {
89
+ key: string;
90
+ variant: string;
91
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
92
+ }[];
93
+ cellTemplate?: {
94
+ key: string;
95
+ variant: string;
96
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
97
+ } | undefined;
98
+ };
99
+ } | {
100
+ type: "remove_row";
101
+ removeRow: {
102
+ index: number;
103
+ };
104
+ } | {
105
+ type: "add_col";
106
+ addCol: {
107
+ index: number;
108
+ size: number;
109
+ cells: {
110
+ key: string;
111
+ variant: string;
112
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
113
+ }[];
114
+ cellTemplate?: {
115
+ key: string;
116
+ variant: string;
117
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
118
+ } | undefined;
119
+ };
120
+ } | {
121
+ type: "remove_col";
122
+ removeCol: {
123
+ index: number;
124
+ };
125
+ } | {
126
+ type: "resize_row";
127
+ resizeRow: {
128
+ index: number;
129
+ size: number;
130
+ };
131
+ } | {
132
+ type: "resize_col";
133
+ resizeCol: {
134
+ index: number;
135
+ size: number;
136
+ };
137
+ } | {
138
+ type: "set_cell";
139
+ setCell: {
140
+ cell: {
141
+ key: string;
142
+ variant: string;
143
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
144
+ };
145
+ };
146
+ } | {
147
+ type: "erase_cells";
148
+ eraseCells: {
149
+ cells: string[];
150
+ template: {
151
+ variant: string;
152
+ props: import('@synnaxlabs/x/dist/src/record/record').Unknown;
153
+ };
154
+ };
155
+ }>;
156
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/table/actions.ts"],"names":[],"mappings":"AA8PA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA4B,CAAC"}