@synnaxlabs/client 0.55.0 → 0.56.1

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 (197) hide show
  1. package/.turbo/turbo-build.log +10 -13
  2. package/dist/client.cjs +60 -36
  3. package/dist/client.js +6435 -4786
  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/client.d.ts.map +1 -1
  19. package/dist/src/arc/compiler/types.gen.d.ts +1 -1
  20. package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
  21. package/dist/src/arc/graph/types.gen.d.ts +29 -29
  22. package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
  23. package/dist/src/arc/ir/types.gen.d.ts +123 -123
  24. package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
  25. package/dist/src/arc/module/types.gen.d.ts +45 -45
  26. package/dist/src/arc/program/types.gen.d.ts +45 -45
  27. package/dist/src/arc/types/types.gen.d.ts +11 -11
  28. package/dist/src/arc/types/types.gen.d.ts.map +1 -1
  29. package/dist/src/arc/types.gen.d.ts +99 -99
  30. package/dist/src/auth/auth.d.ts +3 -3
  31. package/dist/src/auth/auth.d.ts.map +1 -1
  32. package/dist/src/channel/client.d.ts +2 -2
  33. package/dist/src/channel/client.d.ts.map +1 -1
  34. package/dist/src/channel/retriever.d.ts +5 -8
  35. package/dist/src/channel/retriever.d.ts.map +1 -1
  36. package/dist/src/channel/types.gen.d.ts +3 -3
  37. package/dist/src/channel/writer.d.ts.map +1 -1
  38. package/dist/src/connection/checker.d.ts +1 -1
  39. package/dist/src/connection/checker.d.ts.map +1 -1
  40. package/dist/src/device/client.d.ts.map +1 -1
  41. package/dist/src/device/types.gen.d.ts +6 -8
  42. package/dist/src/device/types.gen.d.ts.map +1 -1
  43. package/dist/src/errors.d.ts +2 -0
  44. package/dist/src/errors.d.ts.map +1 -1
  45. package/dist/src/framer/adapter.d.ts.map +1 -1
  46. package/dist/src/framer/client.d.ts +2 -2
  47. package/dist/src/framer/codec.d.ts +9 -1
  48. package/dist/src/framer/codec.d.ts.map +1 -1
  49. package/dist/src/framer/deleter.d.ts.map +1 -1
  50. package/dist/src/framer/frame.d.ts +1 -1
  51. package/dist/src/framer/iterator.d.ts +84 -3
  52. package/dist/src/framer/iterator.d.ts.map +1 -1
  53. package/dist/src/framer/streamProxy.d.ts.map +1 -1
  54. package/dist/src/framer/streamer.d.ts +1 -3
  55. package/dist/src/framer/streamer.d.ts.map +1 -1
  56. package/dist/src/framer/types.gen.d.ts +18 -0
  57. package/dist/src/framer/types.gen.d.ts.map +1 -1
  58. package/dist/src/framer/writer.d.ts +8 -8
  59. package/dist/src/framer/writer.d.ts.map +1 -1
  60. package/dist/src/group/client.d.ts +1 -2
  61. package/dist/src/group/client.d.ts.map +1 -1
  62. package/dist/src/group/types.gen.d.ts +2 -2
  63. package/dist/src/index.d.ts +2 -1
  64. package/dist/src/index.d.ts.map +1 -1
  65. package/dist/src/label/client.d.ts +5 -8
  66. package/dist/src/label/client.d.ts.map +1 -1
  67. package/dist/src/lineplot/client.d.ts.map +1 -1
  68. package/dist/src/lineplot/types.gen.d.ts +2 -2
  69. package/dist/src/log/client.d.ts.map +1 -1
  70. package/dist/src/log/types.gen.d.ts +2 -2
  71. package/dist/src/ontology/client.d.ts +1 -3
  72. package/dist/src/ontology/client.d.ts.map +1 -1
  73. package/dist/src/ontology/payload.d.ts +12 -16
  74. package/dist/src/ontology/payload.d.ts.map +1 -1
  75. package/dist/src/ontology/types.gen.d.ts +1 -2
  76. package/dist/src/ontology/types.gen.d.ts.map +1 -1
  77. package/dist/src/ontology/writer.d.ts +5 -10
  78. package/dist/src/ontology/writer.d.ts.map +1 -1
  79. package/dist/src/rack/client.d.ts.map +1 -1
  80. package/dist/src/rack/types.gen.d.ts +3 -3
  81. package/dist/src/ranger/alias/client.d.ts.map +1 -1
  82. package/dist/src/ranger/client.d.ts.map +1 -1
  83. package/dist/src/ranger/kv/client.d.ts.map +1 -1
  84. package/dist/src/ranger/types.gen.d.ts +6 -6
  85. package/dist/src/ranger/types.gen.d.ts.map +1 -1
  86. package/dist/src/ranger/writer.d.ts +2 -3
  87. package/dist/src/ranger/writer.d.ts.map +1 -1
  88. package/dist/src/schematic/actions.d.ts +147 -0
  89. package/dist/src/schematic/actions.d.ts.map +1 -0
  90. package/dist/src/schematic/actions.gen.d.ts +484 -0
  91. package/dist/src/schematic/actions.gen.d.ts.map +1 -0
  92. package/dist/src/schematic/actions.spec.d.ts +2 -0
  93. package/dist/src/schematic/actions.spec.d.ts.map +1 -0
  94. package/dist/src/schematic/client.d.ts +53 -2
  95. package/dist/src/schematic/client.d.ts.map +1 -1
  96. package/dist/src/schematic/external.d.ts +2 -0
  97. package/dist/src/schematic/external.d.ts.map +1 -1
  98. package/dist/src/schematic/symbol/client.d.ts.map +1 -1
  99. package/dist/src/schematic/symbol/types.gen.d.ts +48 -58
  100. package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
  101. package/dist/src/schematic/types.gen.d.ts +131 -5
  102. package/dist/src/schematic/types.gen.d.ts.map +1 -1
  103. package/dist/src/status/client.d.ts.map +1 -1
  104. package/dist/src/status/payload.d.ts +3 -3
  105. package/dist/src/table/actions.d.ts +156 -0
  106. package/dist/src/table/actions.d.ts.map +1 -0
  107. package/dist/src/table/actions.gen.d.ts +587 -0
  108. package/dist/src/table/actions.gen.d.ts.map +1 -0
  109. package/dist/src/table/client.d.ts +28 -2
  110. package/dist/src/table/client.d.ts.map +1 -1
  111. package/dist/src/table/external.d.ts +2 -0
  112. package/dist/src/table/external.d.ts.map +1 -1
  113. package/dist/src/table/types.gen.d.ts +71 -4
  114. package/dist/src/table/types.gen.d.ts.map +1 -1
  115. package/dist/src/task/client.d.ts.map +1 -1
  116. package/dist/src/task/types.gen.d.ts +7 -7
  117. package/dist/src/task/types.gen.d.ts.map +1 -1
  118. package/dist/src/user/client.d.ts +2 -2
  119. package/dist/src/user/client.d.ts.map +1 -1
  120. package/dist/src/user/types.gen.d.ts +2 -2
  121. package/dist/src/view/client.d.ts.map +1 -1
  122. package/dist/src/view/types.gen.d.ts +2 -2
  123. package/dist/src/workspace/client.d.ts.map +1 -1
  124. package/dist/src/workspace/types.gen.d.ts +3 -3
  125. package/dist/src/workspace/types.gen.d.ts.map +1 -1
  126. package/package.json +12 -11
  127. package/src/access/policy/client.ts +4 -7
  128. package/src/access/role/client.ts +6 -26
  129. package/src/actions/actions.spec.ts +229 -0
  130. package/src/actions/actions.ts +104 -0
  131. package/src/actions/external.ts +10 -0
  132. package/src/actions/index.ts +10 -0
  133. package/src/arc/client.ts +3 -7
  134. package/src/arc/compiler/types.gen.ts +2 -1
  135. package/src/arc/ir/types.gen.ts +2 -2
  136. package/src/arc/lsp.spec.ts +3 -7
  137. package/src/arc/types/types.gen.ts +3 -3
  138. package/src/auth/auth.spec.ts +12 -13
  139. package/src/auth/auth.ts +36 -34
  140. package/src/channel/batchRetriever.spec.ts +13 -4
  141. package/src/channel/client.ts +8 -6
  142. package/src/channel/retriever.ts +7 -16
  143. package/src/channel/writer.ts +4 -20
  144. package/src/connection/checker.ts +6 -6
  145. package/src/connection/connection.spec.ts +5 -8
  146. package/src/device/client.ts +5 -8
  147. package/src/device/types.gen.ts +4 -4
  148. package/src/errors.ts +9 -9
  149. package/src/framer/adapter.ts +2 -4
  150. package/src/framer/client.ts +1 -1
  151. package/src/framer/codec.spec.ts +53 -3
  152. package/src/framer/codec.ts +58 -25
  153. package/src/framer/deleter.ts +2 -8
  154. package/src/framer/iterator.ts +43 -40
  155. package/src/framer/streamProxy.ts +13 -13
  156. package/src/framer/streamer.spec.ts +12 -3
  157. package/src/framer/streamer.ts +7 -12
  158. package/src/framer/types.gen.ts +20 -0
  159. package/src/framer/writer.spec.ts +77 -0
  160. package/src/framer/writer.ts +51 -28
  161. package/src/group/client.ts +4 -7
  162. package/src/index.ts +3 -2
  163. package/src/label/client.ts +6 -16
  164. package/src/lineplot/client.ts +6 -21
  165. package/src/log/client.ts +6 -21
  166. package/src/ontology/client.ts +3 -4
  167. package/src/ontology/types.gen.ts +0 -1
  168. package/src/ontology/writer.ts +4 -7
  169. package/src/rack/client.ts +4 -7
  170. package/src/ranger/alias/client.ts +6 -11
  171. package/src/ranger/client.ts +3 -4
  172. package/src/ranger/kv/client.ts +5 -8
  173. package/src/ranger/writer.ts +4 -17
  174. package/src/schematic/access.spec.ts +6 -6
  175. package/src/schematic/actions.gen.ts +200 -0
  176. package/src/schematic/actions.spec.ts +699 -0
  177. package/src/schematic/actions.ts +168 -0
  178. package/src/schematic/client.ts +34 -30
  179. package/src/schematic/external.ts +2 -0
  180. package/src/schematic/schematic.spec.ts +233 -69
  181. package/src/schematic/symbol/client.ts +6 -11
  182. package/src/schematic/symbol/types.gen.ts +1 -10
  183. package/src/schematic/types.gen.ts +55 -6
  184. package/src/status/client.ts +4 -10
  185. package/src/table/access.spec.ts +0 -6
  186. package/src/table/actions.gen.ts +243 -0
  187. package/src/table/actions.ts +255 -0
  188. package/src/table/client.ts +21 -25
  189. package/src/table/external.ts +2 -0
  190. package/src/table/table.spec.ts +588 -43
  191. package/src/table/types.gen.ts +58 -5
  192. package/src/task/client.ts +7 -11
  193. package/src/task/types.gen.ts +8 -6
  194. package/src/user/client.ts +6 -11
  195. package/src/view/client.ts +4 -7
  196. package/src/workspace/client.ts +6 -16
  197. package/src/workspace/types.gen.ts +2 -1
@@ -10,18 +10,17 @@ export type Key = z.infer<typeof keyZ>;
10
10
  export declare const policyZ: z.ZodObject<{
11
11
  key: z.ZodUUID;
12
12
  name: z.ZodString;
13
- objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
14
- 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";
13
+ objects: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<({
14
+ 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";
15
15
  key: string;
16
16
  } | {
17
- 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";
17
+ 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";
18
18
  key: string;
19
- })[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
19
+ })[], null>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
20
20
  type: z.ZodEnum<{
21
21
  arc: "arc";
22
22
  builtin: "builtin";
23
23
  channel: "channel";
24
- cluster: "cluster";
25
24
  device: "device";
26
25
  framer: "framer";
27
26
  group: "group";
@@ -45,15 +44,15 @@ export declare const policyZ: z.ZodObject<{
45
44
  }>;
46
45
  key: z.ZodString;
47
46
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
48
- 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";
47
+ 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";
49
48
  key: string;
50
- }, string>>]>>]>;
51
- actions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], null | undefined>>, z.ZodArray<z.ZodEnum<{
49
+ }, string>>]>>]>>;
50
+ actions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], null>>, z.ZodArray<z.ZodEnum<{
52
51
  create: "create";
53
52
  delete: "delete";
54
53
  retrieve: "retrieve";
55
54
  update: "update";
56
- }>>]>;
55
+ }>>]>>;
57
56
  internal: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
58
57
  }, z.core.$strip>;
59
58
  export interface Policy extends z.infer<typeof policyZ> {
@@ -61,18 +60,17 @@ export interface Policy extends z.infer<typeof policyZ> {
61
60
  export declare const newZ: z.ZodObject<{
62
61
  key: z.ZodOptional<z.ZodUUID>;
63
62
  name: z.ZodString;
64
- objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
65
- 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";
63
+ objects: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<({
64
+ 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";
66
65
  key: string;
67
66
  } | {
68
- 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
+ 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";
69
68
  key: string;
70
- })[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
69
+ })[], null>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
71
70
  type: z.ZodEnum<{
72
71
  arc: "arc";
73
72
  builtin: "builtin";
74
73
  channel: "channel";
75
- cluster: "cluster";
76
74
  device: "device";
77
75
  framer: "framer";
78
76
  group: "group";
@@ -96,25 +94,25 @@ export declare const newZ: z.ZodObject<{
96
94
  }>;
97
95
  key: z.ZodString;
98
96
  }, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
99
- 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";
97
+ 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";
100
98
  key: string;
101
- }, string>>]>>]>;
102
- actions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], null | undefined>>, z.ZodArray<z.ZodEnum<{
99
+ }, string>>]>>]>>;
100
+ actions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], null>>, z.ZodArray<z.ZodEnum<{
103
101
  create: "create";
104
102
  delete: "delete";
105
103
  retrieve: "retrieve";
106
104
  update: "update";
107
- }>>]>;
105
+ }>>]>>;
108
106
  internal: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
109
107
  }, z.core.$strip>;
110
108
  export interface New extends z.input<typeof newZ> {
111
109
  }
112
110
  export declare const ontologyID: ontology.CreateID<string>;
113
111
  export declare const TYPE_ONTOLOGY_ID: {
114
- 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";
112
+ 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";
115
113
  key: string;
116
114
  } | {
117
- 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";
115
+ 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";
118
116
  key: string;
119
117
  };
120
118
  //# sourceMappingURL=types.gen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/access/policy/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,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,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiC,CAAC;AACnD,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAA0C,CAAC;AAClE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
1
+ {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/access/policy/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,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,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,M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B,CAAC;AAC9C,eAAO,MAAM,mBAAmB,mBAAmB,CAAC;AAEpD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAChC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAYrC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;IAYvD,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,MAAM,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlD"}
@@ -25,10 +25,10 @@ export interface New extends z.input<typeof newZ> {
25
25
  }
26
26
  export declare const ontologyID: ontology.CreateID<string>;
27
27
  export declare const TYPE_ONTOLOGY_ID: {
28
- 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";
28
+ 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";
29
29
  key: string;
30
30
  } | {
31
- 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";
31
+ 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";
32
32
  key: string;
33
33
  };
34
34
  //# sourceMappingURL=types.gen.d.ts.map
@@ -0,0 +1,68 @@
1
+ import { Draft } from 'immer';
2
+ import { z } from 'zod';
3
+ /**
4
+ * Result returned by a single per-variant action handler. `inverse` is the
5
+ * action sequence the undo stack should replay to revert the handler's effect.
6
+ * `targets` is the set of document keys the handler touched, used by consumers
7
+ * to invalidate undoables targeting overlapping resources when a remote
8
+ * session emits a competing action.
9
+ */
10
+ export interface HandlerResult<A> {
11
+ inverse: A[];
12
+ targets: readonly string[];
13
+ }
14
+ /**
15
+ * NO_OP_RESULT is the zero-value HandlerResult. Return it from a handler that
16
+ * declined to mutate state (e.g. lookup miss) so it neither contributes to the
17
+ * undo stack nor invalidates undoables targeting the same resource.
18
+ */
19
+ export declare const NO_OP_RESULT: HandlerResult<never>;
20
+ /**
21
+ * Result returned by a reduceAll application: the new state, the inverse
22
+ * sequence that reverts the whole batch, and the union of all targets touched.
23
+ */
24
+ export interface ReduceAllResult<S, A> {
25
+ next: S;
26
+ inverse: A[];
27
+ targets: readonly string[];
28
+ }
29
+ /**
30
+ * Returns a plain-object snapshot of an Immer draft so the result is safe to
31
+ * embed in an action stored on the undo stack. Returns non-draft inputs
32
+ * unchanged. The non-draft passthrough exists because when a reducer applies
33
+ * multiple actions in one produce(), an earlier action's wholesale
34
+ * assignment leaves the slot as a plain object, so the next action would
35
+ * crash if it called `current` unconditionally.
36
+ */
37
+ export declare const snapshotDraft: <T>(v: T) => T;
38
+ /**
39
+ * createReduceAll lifts a per-variant `reduceOne` switch into a batched
40
+ * reducer. The returned function applies each action against an Immer draft of
41
+ * `state` in order, accumulates the inverses in reverse application order so a
42
+ * single undo replays them correctly, and unions the touched targets.
43
+ */
44
+ export declare const createReduceAll: <S, A>(reduceOne: (draft: Draft<S>, action: A) => HandlerResult<A>) => (state: S, actions: A[]) => ReduceAllResult<S, A>;
45
+ /**
46
+ * scopedZ builds the schema for envelopes broadcast on the sy_<service>_set
47
+ * cluster signals channel. The framer's JSON codec runs snakeToCamel before
48
+ * handing the value to the schema, so `dispatchKey` and `seq` are camelCase
49
+ * here even though the server emits them as snake_case. `seq` defaults to 0 so
50
+ * frames from servers that predate the field stay parseable.
51
+ */
52
+ export declare const scopedZ: <K extends z.ZodType, A extends z.ZodType>(keyZ: K, actionZ: A) => z.ZodObject<{
53
+ key: K;
54
+ dispatchKey: z.ZodString;
55
+ seq: z.ZodDefault<z.ZodNumber>;
56
+ actions: z.ZodArray<A>;
57
+ }, z.core.$strip>;
58
+ /**
59
+ * dispatchReqZ builds the request body schema for the per-service dispatch
60
+ * endpoint. Stays camelCase; the JSON codec runs camelToSnake on encode so the
61
+ * wire ends up snake_case without per-field conversion here.
62
+ */
63
+ export declare const dispatchReqZ: <K extends z.ZodType, A extends z.ZodType>(keyZ: K, actionZ: A) => z.ZodObject<{
64
+ key: K;
65
+ dispatchKey: z.ZodString;
66
+ actions: z.ZodArray<A>;
67
+ }, z.core.$strip>;
68
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/actions/actions.ts"],"names":[],"mappings":"AASA,OAAO,EAAW,KAAK,KAAK,EAAoB,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,aAAa,CAAC,KAAK,CAAgC,CAAC;AAE/E;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC;IACR,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,GAAG,CAAC,KAAG,CAA8C,CAAC;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GACzB,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,aAAa,CAAC,CAAC,CAAC,MACjE,OAAO,CAAC,EAAE,SAAS,CAAC,EAAE,KAAG,eAAe,CAAC,CAAC,EAAE,CAAC,CAW7C,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EAC9D,MAAM,CAAC,EACP,SAAS,CAAC;;;;;iBAOR,CAAC;AAEL;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,OAAO,EACnE,MAAM,CAAC,EACP,SAAS,CAAC;;;;iBAMR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=actions.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.spec.d.ts","sourceRoot":"","sources":["../../../src/actions/actions.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './actions';
2
+ //# sourceMappingURL=external.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/actions/external.ts"],"names":[],"mappings":"AASA,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * as actions from './external';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/arc/client.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,EAAE,KAAK,GAAG,EAAQ,KAAK,GAAG,EAAQ,KAAK,GAAG,EAAQ,MAAM,iBAAiB,CAAC;AAGjF,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD,QAAA,MAAM,YAAY;;;;;;;iBAOhB,CAAC;AAQH,eAAO,MAAM,WAAW;;iBAAoC,CAAC;AAC7D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAgB3D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;KAAuD,CAAC;AAExF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAErE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+C,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEhC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;IAKrD,MAAM,C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AC;AAErE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;mBAA+C,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEhC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY;IAKrD,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAC9B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAYnC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC;IAChD,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAa5C,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IASxC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;CAGzE"}
@@ -5,7 +5,7 @@ import { z } from 'zod';
5
5
  */
6
6
  export declare const outputZ: z.ZodObject<{
7
7
  wasm: z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>;
8
- outputMemoryBases: z.ZodRecord<z.ZodString, z.ZodUInt32>;
8
+ outputMemoryBases: z.ZodType<Record<string, number>, unknown, z.core.$ZodTypeInternals<Record<string, number>, unknown>>;
9
9
  }, z.core.$strip>;
10
10
  export interface Output extends z.infer<typeof outputZ> {
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/arc/compiler/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,OAAO;;;iBAQlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG"}
1
+ {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/arc/compiler/types.gen.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,OAAO;;;iBAQlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG"}
@@ -26,7 +26,7 @@ export declare const viewportZ: z.ZodObject<{
26
26
  }, z.core.$strip>;
27
27
  export interface Viewport extends z.infer<typeof viewportZ> {
28
28
  }
29
- export declare const nodesZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
29
+ export declare const nodesZ: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
30
30
  key: string;
31
31
  type: string;
32
32
  config: record.Unknown;
@@ -34,7 +34,7 @@ export declare const nodesZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly
34
34
  x: number;
35
35
  y: number;
36
36
  };
37
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
37
+ }[], null>>, z.ZodArray<z.ZodObject<{
38
38
  key: z.ZodString;
39
39
  type: z.ZodString;
40
40
  config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
@@ -42,7 +42,7 @@ export declare const nodesZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly
42
42
  x: z.ZodNumber;
43
43
  y: z.ZodNumber;
44
44
  }, z.core.$strip>;
45
- }, z.core.$strip>>]>;
45
+ }, z.core.$strip>>]>>;
46
46
  export type Nodes = z.infer<typeof nodesZ>;
47
47
  /**
48
48
  * Graph is a visual dataflow graph representation combining IR elements with
@@ -56,7 +56,7 @@ export declare const graphZ: z.ZodObject<{
56
56
  }, z.core.$strip>;
57
57
  zoom: z.ZodNumber;
58
58
  }, z.core.$strip>;
59
- functions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
59
+ functions: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
60
60
  key: string;
61
61
  config: {
62
62
  name: string;
@@ -287,12 +287,12 @@ export declare const graphZ: z.ZodObject<{
287
287
  body?: {
288
288
  raw: string;
289
289
  } | undefined;
290
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
290
+ }[], null>>, z.ZodArray<z.ZodObject<{
291
291
  key: z.ZodString;
292
292
  body: z.ZodOptional<z.ZodObject<{
293
293
  raw: z.ZodString;
294
294
  }, z.core.$strip>>;
295
- config: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
295
+ config: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
296
296
  name: string;
297
297
  type: {
298
298
  kind: import('../types/types.gen').Kind;
@@ -365,7 +365,7 @@ export declare const graphZ: z.ZodObject<{
365
365
  chanDirection?: import('../types/types.gen').ChanDirection | undefined;
366
366
  };
367
367
  value?: unknown;
368
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
368
+ }[], null>>, z.ZodArray<z.ZodObject<{
369
369
  name: z.ZodString;
370
370
  type: z.ZodObject<{
371
371
  inputs: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
@@ -373,7 +373,7 @@ export declare const graphZ: z.ZodObject<{
373
373
  config: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
374
374
  kind: z.ZodEnum<typeof import('../types/types.gen').Kind>;
375
375
  name: z.ZodString;
376
- readonly elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
376
+ elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
377
377
  unit: z.ZodOptional<z.ZodObject<{
378
378
  dimensions: z.ZodObject<{
379
379
  length: z.ZodInt;
@@ -388,12 +388,12 @@ export declare const graphZ: z.ZodObject<{
388
388
  scale: z.ZodNumber;
389
389
  name: z.ZodString;
390
390
  }, z.core.$strip>>;
391
- readonly constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
391
+ constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
392
392
  chanDirection: z.ZodOptional<z.ZodEnum<typeof import('../types/types.gen').ChanDirection>>;
393
393
  }, z.core.$strip>;
394
394
  value: z.ZodOptional<z.ZodUnknown>;
395
- }, z.core.$strip>>]>;
396
- inputs: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
395
+ }, z.core.$strip>>]>>;
396
+ inputs: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
397
397
  name: string;
398
398
  type: {
399
399
  kind: import('../types/types.gen').Kind;
@@ -466,7 +466,7 @@ export declare const graphZ: z.ZodObject<{
466
466
  chanDirection?: import('../types/types.gen').ChanDirection | undefined;
467
467
  };
468
468
  value?: unknown;
469
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
469
+ }[], null>>, z.ZodArray<z.ZodObject<{
470
470
  name: z.ZodString;
471
471
  type: z.ZodObject<{
472
472
  inputs: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
@@ -474,7 +474,7 @@ export declare const graphZ: z.ZodObject<{
474
474
  config: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
475
475
  kind: z.ZodEnum<typeof import('../types/types.gen').Kind>;
476
476
  name: z.ZodString;
477
- readonly elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
477
+ elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
478
478
  unit: z.ZodOptional<z.ZodObject<{
479
479
  dimensions: z.ZodObject<{
480
480
  length: z.ZodInt;
@@ -489,12 +489,12 @@ export declare const graphZ: z.ZodObject<{
489
489
  scale: z.ZodNumber;
490
490
  name: z.ZodString;
491
491
  }, z.core.$strip>>;
492
- readonly constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
492
+ constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
493
493
  chanDirection: z.ZodOptional<z.ZodEnum<typeof import('../types/types.gen').ChanDirection>>;
494
494
  }, z.core.$strip>;
495
495
  value: z.ZodOptional<z.ZodUnknown>;
496
- }, z.core.$strip>>]>;
497
- outputs: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
496
+ }, z.core.$strip>>]>>;
497
+ outputs: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
498
498
  name: string;
499
499
  type: {
500
500
  kind: import('../types/types.gen').Kind;
@@ -567,7 +567,7 @@ export declare const graphZ: z.ZodObject<{
567
567
  chanDirection?: import('../types/types.gen').ChanDirection | undefined;
568
568
  };
569
569
  value?: unknown;
570
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
570
+ }[], null>>, z.ZodArray<z.ZodObject<{
571
571
  name: z.ZodString;
572
572
  type: z.ZodObject<{
573
573
  inputs: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
@@ -575,7 +575,7 @@ export declare const graphZ: z.ZodObject<{
575
575
  config: z.ZodOptional<typeof import('../types/types.gen').paramsZ>;
576
576
  kind: z.ZodEnum<typeof import('../types/types.gen').Kind>;
577
577
  name: z.ZodString;
578
- readonly elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
578
+ elem: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
579
579
  unit: z.ZodOptional<z.ZodObject<{
580
580
  dimensions: z.ZodObject<{
581
581
  length: z.ZodInt;
@@ -590,17 +590,17 @@ export declare const graphZ: z.ZodObject<{
590
590
  scale: z.ZodNumber;
591
591
  name: z.ZodString;
592
592
  }, z.core.$strip>>;
593
- readonly constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
593
+ constraint: z.ZodOptional<typeof import('../types/types.gen').typeZ>;
594
594
  chanDirection: z.ZodOptional<z.ZodEnum<typeof import('../types/types.gen').ChanDirection>>;
595
595
  }, z.core.$strip>;
596
596
  value: z.ZodOptional<z.ZodUnknown>;
597
- }, z.core.$strip>>]>;
597
+ }, z.core.$strip>>]>>;
598
598
  channels: z.ZodObject<{
599
- read: z.ZodRecord<z.ZodUInt32, z.ZodString>;
600
- write: z.ZodRecord<z.ZodUInt32, z.ZodString>;
599
+ read: z.ZodType<Record<number, string>, unknown, z.core.$ZodTypeInternals<Record<number, string>, unknown>>;
600
+ write: z.ZodType<Record<number, string>, unknown, z.core.$ZodTypeInternals<Record<number, string>, unknown>>;
601
601
  }, z.core.$strip>;
602
- }, z.core.$strip>>]>;
603
- edges: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
602
+ }, z.core.$strip>>]>>;
603
+ edges: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
604
604
  source: {
605
605
  node: string;
606
606
  param: string;
@@ -610,7 +610,7 @@ export declare const graphZ: z.ZodObject<{
610
610
  param: string;
611
611
  };
612
612
  kind: ir.EdgeKind;
613
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
613
+ }[], null>>, z.ZodArray<z.ZodObject<{
614
614
  source: z.ZodObject<{
615
615
  node: z.ZodString;
616
616
  param: z.ZodString;
@@ -620,8 +620,8 @@ export declare const graphZ: z.ZodObject<{
620
620
  param: z.ZodString;
621
621
  }, z.core.$strip>;
622
622
  kind: z.ZodEnum<typeof ir.EdgeKind>;
623
- }, z.core.$strip>>]>;
624
- nodes: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
623
+ }, z.core.$strip>>]>>;
624
+ nodes: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<{
625
625
  key: string;
626
626
  type: string;
627
627
  config: record.Unknown;
@@ -629,7 +629,7 @@ export declare const graphZ: z.ZodObject<{
629
629
  x: number;
630
630
  y: number;
631
631
  };
632
- }[], null | undefined>>, z.ZodArray<z.ZodObject<{
632
+ }[], null>>, z.ZodArray<z.ZodObject<{
633
633
  key: z.ZodString;
634
634
  type: z.ZodString;
635
635
  config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>>;
@@ -637,7 +637,7 @@ export declare const graphZ: z.ZodObject<{
637
637
  x: z.ZodNumber;
638
638
  y: z.ZodNumber;
639
639
  }, z.core.$strip>;
640
- }, z.core.$strip>>]>;
640
+ }, z.core.$strip>>]>>;
641
641
  }, z.core.$strip>;
642
642
  export interface Graph extends z.infer<typeof graphZ> {
643
643
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../../src/arc/graph/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAS,MAAM,EAAW,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;iBAShB,CAAC;AACH,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC;CAAG;AAEtD,4EAA4E;AAC5E,eAAO,MAAM,SAAS;;;;;;iBAKpB,CAAC;AACH,MAAM,WAAW,QAAS,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC;CAAG;AAE9D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;oBAA8B,CAAC;AAClD,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,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