@synnaxlabs/client 0.56.2 → 0.57.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 (741) hide show
  1. package/dist/client-B08VDLSA.js +14463 -0
  2. package/dist/client-B08VDLSA.js.map +1 -0
  3. package/dist/client.js +1128 -14876
  4. package/dist/client.js.map +1 -0
  5. package/dist/src/access/client.d.ts +10 -1
  6. package/dist/src/access/client.d.ts.map +1 -1
  7. package/dist/src/access/enforce.d.ts.map +1 -1
  8. package/dist/src/access/external.d.ts +1 -0
  9. package/dist/src/access/external.d.ts.map +1 -1
  10. package/dist/src/access/granted.d.ts +39 -0
  11. package/dist/src/access/granted.d.ts.map +1 -0
  12. package/dist/src/access/policy/client.d.ts +136 -147
  13. package/dist/src/access/policy/client.d.ts.map +1 -1
  14. package/dist/src/access/policy/types.gen.d.ts +15 -68
  15. package/dist/src/access/policy/types.gen.d.ts.map +1 -1
  16. package/dist/src/access/role/client.d.ts +77 -58
  17. package/dist/src/access/role/client.d.ts.map +1 -1
  18. package/dist/src/access/role/types.gen.d.ts +8 -14
  19. package/dist/src/access/role/types.gen.d.ts.map +1 -1
  20. package/dist/src/actions/actions.d.ts +5 -6
  21. package/dist/src/actions/actions.d.ts.map +1 -1
  22. package/dist/src/actions/controller.d.ts +194 -0
  23. package/dist/src/actions/controller.d.ts.map +1 -0
  24. package/dist/src/actions/external.d.ts +1 -0
  25. package/dist/src/actions/external.d.ts.map +1 -1
  26. package/dist/src/arc/actions.d.ts +575 -0
  27. package/dist/src/arc/actions.d.ts.map +1 -0
  28. package/dist/src/arc/actions.gen.d.ts +1439 -0
  29. package/dist/src/arc/actions.gen.d.ts.map +1 -0
  30. package/dist/src/arc/client.d.ts +97 -13
  31. package/dist/src/arc/client.d.ts.map +1 -1
  32. package/dist/src/arc/compiler/types.gen.d.ts +3 -3
  33. package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
  34. package/dist/src/arc/external.d.ts +2 -0
  35. package/dist/src/arc/external.d.ts.map +1 -1
  36. package/dist/src/arc/graph/types.gen.d.ts +45 -597
  37. package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
  38. package/dist/src/arc/ir/index.d.ts +1 -1
  39. package/dist/src/arc/ir/index.d.ts.map +1 -1
  40. package/dist/src/arc/ir/ir.d.ts +2 -0
  41. package/dist/src/arc/ir/ir.d.ts.map +1 -0
  42. package/dist/src/arc/ir/types.gen.d.ts +58 -2807
  43. package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
  44. package/dist/src/arc/module/types.gen.d.ts +18 -1090
  45. package/dist/src/arc/module/types.gen.d.ts.map +1 -1
  46. package/dist/src/arc/program/types.gen.d.ts +18 -1090
  47. package/dist/src/arc/program/types.gen.d.ts.map +1 -1
  48. package/dist/src/arc/text/types.gen.d.ts +54 -1
  49. package/dist/src/arc/text/types.gen.d.ts.map +1 -1
  50. package/dist/src/arc/types/types.gen.d.ts +35 -153
  51. package/dist/src/arc/types/types.gen.d.ts.map +1 -1
  52. package/dist/src/arc/types.gen.d.ts +98 -2278
  53. package/dist/src/arc/types.gen.d.ts.map +1 -1
  54. package/dist/src/auth/auth.d.ts +14 -2
  55. package/dist/src/auth/auth.d.ts.map +1 -1
  56. package/dist/src/channel/client.d.ts +113 -75
  57. package/dist/src/channel/client.d.ts.map +1 -1
  58. package/dist/src/channel/external.d.ts +0 -1
  59. package/dist/src/channel/external.d.ts.map +1 -1
  60. package/dist/src/channel/payload.d.ts +65 -56
  61. package/dist/src/channel/payload.d.ts.map +1 -1
  62. package/dist/src/channel/types.gen.d.ts +26 -73
  63. package/dist/src/channel/types.gen.d.ts.map +1 -1
  64. package/dist/src/channel/writer.d.ts +1 -3
  65. package/dist/src/channel/writer.d.ts.map +1 -1
  66. package/dist/src/client.d.ts +55 -27
  67. package/dist/src/client.d.ts.map +1 -1
  68. package/dist/src/connection/client.d.ts +146 -0
  69. package/dist/src/connection/client.d.ts.map +1 -0
  70. package/dist/src/connection/external.d.ts +3 -0
  71. package/dist/src/connection/external.d.ts.map +1 -0
  72. package/dist/src/connection/index.d.ts +1 -1
  73. package/dist/src/connection/index.d.ts.map +1 -1
  74. package/dist/src/connection/status.d.ts +252 -0
  75. package/dist/src/connection/status.d.ts.map +1 -0
  76. package/dist/src/control/client.d.ts +31 -7
  77. package/dist/src/control/client.d.ts.map +1 -1
  78. package/dist/src/control/state.d.ts +47 -16
  79. package/dist/src/control/state.d.ts.map +1 -1
  80. package/dist/src/device/client.d.ts +59 -17
  81. package/dist/src/device/client.d.ts.map +1 -1
  82. package/dist/src/device/types.gen.d.ts +17 -67
  83. package/dist/src/device/types.gen.d.ts.map +1 -1
  84. package/dist/src/errors.d.ts +17 -20
  85. package/dist/src/errors.d.ts.map +1 -1
  86. package/dist/src/ethercat/external.d.ts +2 -0
  87. package/dist/src/ethercat/external.d.ts.map +1 -0
  88. package/dist/src/ethercat/index.d.ts +2 -0
  89. package/dist/src/ethercat/index.d.ts.map +1 -0
  90. package/dist/src/ethercat/types.gen.d.ts +243 -0
  91. package/dist/src/ethercat/types.gen.d.ts.map +1 -0
  92. package/dist/src/framer/adapter.d.ts +8 -5
  93. package/dist/src/framer/adapter.d.ts.map +1 -1
  94. package/dist/src/framer/benchutil.d.ts +19 -0
  95. package/dist/src/framer/benchutil.d.ts.map +1 -0
  96. package/dist/src/framer/cache/cache.d.ts +38 -0
  97. package/dist/src/framer/cache/cache.d.ts.map +1 -0
  98. package/dist/src/framer/cache/dynamic.d.ts +71 -0
  99. package/dist/src/framer/cache/dynamic.d.ts.map +1 -0
  100. package/dist/src/framer/cache/reader.d.ts +43 -0
  101. package/dist/src/framer/cache/reader.d.ts.map +1 -0
  102. package/dist/src/framer/cache/static.d.ts +66 -0
  103. package/dist/src/framer/cache/static.d.ts.map +1 -0
  104. package/dist/src/framer/cache/streamer.d.ts +86 -0
  105. package/dist/src/framer/cache/streamer.d.ts.map +1 -0
  106. package/dist/src/framer/cache/transform.d.ts +18 -0
  107. package/dist/src/framer/cache/transform.d.ts.map +1 -0
  108. package/dist/src/framer/cache/unary.d.ts +37 -0
  109. package/dist/src/framer/cache/unary.d.ts.map +1 -0
  110. package/dist/src/framer/client.d.ts +35 -14
  111. package/dist/src/framer/client.d.ts.map +1 -1
  112. package/dist/src/framer/codec.d.ts.map +1 -1
  113. package/dist/src/framer/deleter.d.ts +3 -2
  114. package/dist/src/framer/deleter.d.ts.map +1 -1
  115. package/dist/src/framer/external.d.ts +6 -0
  116. package/dist/src/framer/external.d.ts.map +1 -1
  117. package/dist/src/framer/feed.d.ts +40 -0
  118. package/dist/src/framer/feed.d.ts.map +1 -0
  119. package/dist/src/framer/frame.d.ts +16 -20
  120. package/dist/src/framer/frame.d.ts.map +1 -1
  121. package/dist/src/framer/hardened.d.ts +70 -0
  122. package/dist/src/framer/hardened.d.ts.map +1 -0
  123. package/dist/src/framer/iterator.d.ts +36 -43
  124. package/dist/src/framer/iterator.d.ts.map +1 -1
  125. package/dist/src/framer/reader.d.ts +3 -2
  126. package/dist/src/framer/reader.d.ts.map +1 -1
  127. package/dist/src/framer/streamer.d.ts +132 -205
  128. package/dist/src/framer/streamer.d.ts.map +1 -1
  129. package/dist/src/framer/writer.d.ts +130 -161
  130. package/dist/src/framer/writer.d.ts.map +1 -1
  131. package/dist/src/group/client.d.ts +66 -9
  132. package/dist/src/group/client.d.ts.map +1 -1
  133. package/dist/src/group/types.gen.d.ts +2 -2
  134. package/dist/src/http/external.d.ts +2 -0
  135. package/dist/src/http/external.d.ts.map +1 -0
  136. package/dist/src/http/index.d.ts +2 -0
  137. package/dist/src/http/index.d.ts.map +1 -0
  138. package/dist/src/http/types.gen.d.ts +451 -0
  139. package/dist/src/http/types.gen.d.ts.map +1 -0
  140. package/dist/src/imex/client.d.ts +88 -0
  141. package/dist/src/imex/client.d.ts.map +1 -0
  142. package/dist/src/imex/index.d.ts +2 -0
  143. package/dist/src/imex/index.d.ts.map +1 -0
  144. package/dist/src/index.d.ts +18 -5
  145. package/dist/src/index.d.ts.map +1 -1
  146. package/dist/src/label/client.d.ts +55 -36
  147. package/dist/src/label/client.d.ts.map +1 -1
  148. package/dist/src/label/external.d.ts +2 -0
  149. package/dist/src/label/external.d.ts.map +1 -1
  150. package/dist/src/label/payload.d.ts +4 -46
  151. package/dist/src/label/payload.d.ts.map +1 -1
  152. package/dist/src/label/store.d.ts +8 -0
  153. package/dist/src/label/store.d.ts.map +1 -0
  154. package/dist/src/label/types.gen.d.ts +45 -0
  155. package/dist/src/label/types.gen.d.ts.map +1 -0
  156. package/dist/src/labjack/external.d.ts +2 -0
  157. package/dist/src/labjack/external.d.ts.map +1 -0
  158. package/dist/src/labjack/index.d.ts +2 -0
  159. package/dist/src/labjack/index.d.ts.map +1 -0
  160. package/dist/src/labjack/types.gen.d.ts +442 -0
  161. package/dist/src/labjack/types.gen.d.ts.map +1 -0
  162. package/dist/src/lineplot/actions.d.ts +914 -0
  163. package/dist/src/lineplot/actions.d.ts.map +1 -0
  164. package/dist/src/lineplot/actions.gen.d.ts +4208 -0
  165. package/dist/src/lineplot/actions.gen.d.ts.map +1 -0
  166. package/dist/src/lineplot/client.d.ts +66 -16
  167. package/dist/src/lineplot/client.d.ts.map +1 -1
  168. package/dist/src/lineplot/external.d.ts +3 -0
  169. package/dist/src/lineplot/external.d.ts.map +1 -1
  170. package/dist/src/lineplot/line.d.ts +16 -0
  171. package/dist/src/lineplot/line.d.ts.map +1 -0
  172. package/dist/src/lineplot/types.gen.d.ts +837 -14
  173. package/dist/src/lineplot/types.gen.d.ts.map +1 -1
  174. package/dist/src/log/actions.d.ts +271 -0
  175. package/dist/src/log/actions.d.ts.map +1 -0
  176. package/dist/src/log/actions.gen.d.ts +1529 -0
  177. package/dist/src/log/actions.gen.d.ts.map +1 -0
  178. package/dist/src/log/client.d.ts +66 -16
  179. package/dist/src/log/client.d.ts.map +1 -1
  180. package/dist/src/log/external.d.ts +2 -0
  181. package/dist/src/log/external.d.ts.map +1 -1
  182. package/dist/src/log/types.gen.d.ts +139 -14
  183. package/dist/src/log/types.gen.d.ts.map +1 -1
  184. package/dist/src/modbus/external.d.ts +2 -0
  185. package/dist/src/modbus/external.d.ts.map +1 -0
  186. package/dist/src/modbus/index.d.ts +2 -0
  187. package/dist/src/modbus/index.d.ts.map +1 -0
  188. package/dist/src/modbus/types.gen.d.ts +280 -0
  189. package/dist/src/modbus/types.gen.d.ts.map +1 -0
  190. package/dist/src/ni/external.d.ts +2 -0
  191. package/dist/src/ni/external.d.ts.map +1 -0
  192. package/dist/src/ni/index.d.ts +2 -0
  193. package/dist/src/ni/index.d.ts.map +1 -0
  194. package/dist/src/ni/types.gen.d.ts +21029 -0
  195. package/dist/src/ni/types.gen.d.ts.map +1 -0
  196. package/dist/src/node/index.d.ts +2 -0
  197. package/dist/src/node/index.d.ts.map +1 -0
  198. package/dist/src/node/types.gen.d.ts +4 -0
  199. package/dist/src/node/types.gen.d.ts.map +1 -0
  200. package/dist/src/ontology/client.d.ts +314 -67
  201. package/dist/src/ontology/client.d.ts.map +1 -1
  202. package/dist/src/ontology/external.d.ts +1 -0
  203. package/dist/src/ontology/external.d.ts.map +1 -1
  204. package/dist/src/ontology/payload.d.ts +60 -18
  205. package/dist/src/ontology/payload.d.ts.map +1 -1
  206. package/dist/src/ontology/store.d.ts +32 -0
  207. package/dist/src/ontology/store.d.ts.map +1 -0
  208. package/dist/src/ontology/types.gen.d.ts +3 -2
  209. package/dist/src/ontology/types.gen.d.ts.map +1 -1
  210. package/dist/src/ontology/writer.d.ts +16 -10
  211. package/dist/src/ontology/writer.d.ts.map +1 -1
  212. package/dist/src/opcua/external.d.ts +2 -0
  213. package/dist/src/opcua/external.d.ts.map +1 -0
  214. package/dist/src/opcua/index.d.ts +2 -0
  215. package/dist/src/opcua/index.d.ts.map +1 -0
  216. package/dist/src/opcua/types.gen.d.ts +82 -0
  217. package/dist/src/opcua/types.gen.d.ts.map +1 -0
  218. package/dist/src/pagerduty/external.d.ts +2 -0
  219. package/dist/src/pagerduty/external.d.ts.map +1 -0
  220. package/dist/src/pagerduty/index.d.ts +2 -0
  221. package/dist/src/pagerduty/index.d.ts.map +1 -0
  222. package/dist/src/pagerduty/types.gen.d.ts +30 -0
  223. package/dist/src/pagerduty/types.gen.d.ts.map +1 -0
  224. package/dist/src/panel/actions.d.ts +273 -0
  225. package/dist/src/panel/actions.d.ts.map +1 -0
  226. package/dist/src/panel/actions.gen.d.ts +1255 -0
  227. package/dist/src/panel/actions.gen.d.ts.map +1 -0
  228. package/dist/src/panel/client.d.ts +148 -0
  229. package/dist/src/panel/client.d.ts.map +1 -0
  230. package/dist/src/panel/external.d.ts +6 -0
  231. package/dist/src/panel/external.d.ts.map +1 -0
  232. package/dist/src/panel/index.d.ts +2 -0
  233. package/dist/src/panel/index.d.ts.map +1 -0
  234. package/dist/src/panel/tree.d.ts +50 -0
  235. package/dist/src/panel/tree.d.ts.map +1 -0
  236. package/dist/src/panel/types.gen.d.ts +370 -0
  237. package/dist/src/panel/types.gen.d.ts.map +1 -0
  238. package/dist/src/project/client.d.ts +89 -0
  239. package/dist/src/project/client.d.ts.map +1 -0
  240. package/dist/src/project/external.d.ts.map +1 -0
  241. package/dist/src/project/index.d.ts +2 -0
  242. package/dist/src/project/index.d.ts.map +1 -0
  243. package/dist/src/project/types.gen.d.ts +27 -0
  244. package/dist/src/project/types.gen.d.ts.map +1 -0
  245. package/dist/src/query/cache.d.ts +132 -0
  246. package/dist/src/query/cache.d.ts.map +1 -0
  247. package/dist/src/query/deleted.d.ts +20 -0
  248. package/dist/src/query/deleted.d.ts.map +1 -0
  249. package/dist/src/query/derived.d.ts +33 -0
  250. package/dist/src/query/derived.d.ts.map +1 -0
  251. package/dist/src/query/external.d.ts +10 -0
  252. package/dist/src/query/external.d.ts.map +1 -0
  253. package/dist/src/query/index.d.ts +2 -0
  254. package/dist/src/query/index.d.ts.map +1 -0
  255. package/dist/src/query/query.d.ts +235 -0
  256. package/dist/src/query/query.d.ts.map +1 -0
  257. package/dist/src/query/retriever.d.ts +135 -0
  258. package/dist/src/query/retriever.d.ts.map +1 -0
  259. package/dist/src/query/streamer.d.ts +67 -0
  260. package/dist/src/query/streamer.d.ts.map +1 -0
  261. package/dist/src/query/table.d.ts +219 -0
  262. package/dist/src/query/table.d.ts.map +1 -0
  263. package/dist/src/query/types.d.ts +35 -0
  264. package/dist/src/query/types.d.ts.map +1 -0
  265. package/dist/src/query/write.d.ts +21 -0
  266. package/dist/src/query/write.d.ts.map +1 -0
  267. package/dist/src/rack/client.d.ts +58 -20
  268. package/dist/src/rack/client.d.ts.map +1 -1
  269. package/dist/src/rack/types.gen.d.ts +11 -12
  270. package/dist/src/rack/types.gen.d.ts.map +1 -1
  271. package/dist/src/range/alias/types.gen.d.ts +2 -3
  272. package/dist/src/range/alias/types.gen.d.ts.map +1 -1
  273. package/dist/src/ranger/client.d.ts +138 -27
  274. package/dist/src/ranger/client.d.ts.map +1 -1
  275. package/dist/src/ranger/kv/client.d.ts +7 -4
  276. package/dist/src/ranger/kv/client.d.ts.map +1 -1
  277. package/dist/src/ranger/payload.d.ts +3 -0
  278. package/dist/src/ranger/payload.d.ts.map +1 -1
  279. package/dist/src/ranger/types.gen.d.ts +45 -101
  280. package/dist/src/ranger/types.gen.d.ts.map +1 -1
  281. package/dist/src/ranger/writer.d.ts +2 -74
  282. package/dist/src/ranger/writer.d.ts.map +1 -1
  283. package/dist/src/schematic/actions.d.ts +90 -33
  284. package/dist/src/schematic/actions.d.ts.map +1 -1
  285. package/dist/src/schematic/actions.gen.d.ts +207 -114
  286. package/dist/src/schematic/actions.gen.d.ts.map +1 -1
  287. package/dist/src/schematic/client.d.ts +70 -68
  288. package/dist/src/schematic/client.d.ts.map +1 -1
  289. package/dist/src/schematic/symbol/client.d.ts +133 -27
  290. package/dist/src/schematic/symbol/client.d.ts.map +1 -1
  291. package/dist/src/schematic/symbol/types.gen.d.ts +258 -153
  292. package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
  293. package/dist/src/schematic/types.gen.d.ts +17 -96
  294. package/dist/src/schematic/types.gen.d.ts.map +1 -1
  295. package/dist/src/status/client.d.ts +69 -14
  296. package/dist/src/status/client.d.ts.map +1 -1
  297. package/dist/src/status/external.d.ts +2 -0
  298. package/dist/src/status/external.d.ts.map +1 -1
  299. package/dist/src/status/payload.d.ts +2 -36
  300. package/dist/src/status/payload.d.ts.map +1 -1
  301. package/dist/src/status/status.d.ts +65 -0
  302. package/dist/src/status/status.d.ts.map +1 -0
  303. package/dist/src/status/types.gen.d.ts +58 -0
  304. package/dist/src/status/types.gen.d.ts.map +1 -0
  305. package/dist/src/table/actions.d.ts +72 -13
  306. package/dist/src/table/actions.d.ts.map +1 -1
  307. package/dist/src/table/actions.gen.d.ts +221 -137
  308. package/dist/src/table/actions.gen.d.ts.map +1 -1
  309. package/dist/src/table/client.d.ts +64 -40
  310. package/dist/src/table/client.d.ts.map +1 -1
  311. package/dist/src/table/types.gen.d.ts +20 -55
  312. package/dist/src/table/types.gen.d.ts.map +1 -1
  313. package/dist/src/task/client.d.ts +149 -28
  314. package/dist/src/task/client.d.ts.map +1 -1
  315. package/dist/src/task/types.gen.d.ts +71 -89
  316. package/dist/src/task/types.gen.d.ts.map +1 -1
  317. package/dist/src/testutil/access.d.ts +27 -1
  318. package/dist/src/testutil/access.d.ts.map +1 -1
  319. package/dist/src/testutil/channels.d.ts +2 -0
  320. package/dist/src/testutil/channels.d.ts.map +1 -1
  321. package/dist/src/testutil/client.d.ts +5 -0
  322. package/dist/src/testutil/client.d.ts.map +1 -1
  323. package/dist/src/testutil/connection.d.ts +10 -0
  324. package/dist/src/testutil/connection.d.ts.map +1 -0
  325. package/dist/src/testutil/index.d.ts +9 -0
  326. package/dist/src/testutil/index.d.ts.map +1 -0
  327. package/dist/src/testutil/panels.d.ts +8 -0
  328. package/dist/src/testutil/panels.d.ts.map +1 -0
  329. package/dist/src/testutil/proxy.d.ts +29 -0
  330. package/dist/src/testutil/proxy.d.ts.map +1 -0
  331. package/dist/src/testutil/query.d.ts +7 -0
  332. package/dist/src/testutil/query.d.ts.map +1 -0
  333. package/dist/src/testutil/telem.d.ts +4 -0
  334. package/dist/src/testutil/telem.d.ts.map +1 -1
  335. package/dist/src/transport.d.ts +10 -4
  336. package/dist/src/transport.d.ts.map +1 -1
  337. package/dist/src/user/client.d.ts +29 -28
  338. package/dist/src/user/client.d.ts.map +1 -1
  339. package/dist/src/user/external.d.ts +1 -1
  340. package/dist/src/user/external.d.ts.map +1 -1
  341. package/dist/src/user/types.gen.d.ts +4 -4
  342. package/dist/src/util/retrieve.d.ts +2 -2
  343. package/dist/src/util/retrieve.d.ts.map +1 -1
  344. package/dist/src/util/telem.d.ts.map +1 -1
  345. package/dist/src/view/client.d.ts +30 -14
  346. package/dist/src/view/client.d.ts.map +1 -1
  347. package/dist/src/view/types.gen.d.ts +7 -15
  348. package/dist/src/view/types.gen.d.ts.map +1 -1
  349. package/dist/testutil.js +189 -0
  350. package/dist/testutil.js.map +1 -0
  351. package/package.json +40 -17
  352. package/src/access/client.ts +14 -3
  353. package/src/access/enforce.ts +0 -3
  354. package/src/access/external.ts +1 -0
  355. package/src/access/granted.ts +114 -0
  356. package/src/access/policy/client.ts +135 -43
  357. package/src/access/policy/types.gen.ts +9 -11
  358. package/src/access/role/client.ts +160 -38
  359. package/src/access/role/types.gen.ts +8 -12
  360. package/src/actions/actions.ts +5 -6
  361. package/src/actions/controller.ts +626 -0
  362. package/src/actions/external.ts +11 -0
  363. package/src/arc/actions.gen.ts +313 -0
  364. package/src/arc/actions.ts +192 -0
  365. package/src/arc/client.ts +424 -41
  366. package/src/arc/compiler/types.gen.ts +5 -6
  367. package/src/arc/external.ts +2 -0
  368. package/src/arc/graph/types.gen.ts +24 -22
  369. package/src/arc/ir/index.ts +1 -1
  370. package/{eslint.config.ts → src/arc/ir/ir.ts} +1 -4
  371. package/src/arc/ir/types.gen.ts +42 -41
  372. package/src/arc/text/types.gen.ts +21 -2
  373. package/src/arc/types/types.gen.ts +40 -32
  374. package/src/arc/types.gen.ts +31 -29
  375. package/src/auth/auth.ts +40 -8
  376. package/src/channel/client.ts +529 -132
  377. package/src/channel/external.ts +0 -1
  378. package/src/channel/payload.ts +30 -3
  379. package/src/channel/types.gen.ts +37 -48
  380. package/src/channel/writer.ts +2 -11
  381. package/src/client.ts +215 -91
  382. package/src/connection/client.ts +495 -0
  383. package/src/connection/external.ts +34 -0
  384. package/src/connection/index.ts +1 -1
  385. package/src/connection/status.ts +442 -0
  386. package/src/control/client.ts +84 -12
  387. package/src/control/state.ts +17 -36
  388. package/src/device/client.ts +293 -41
  389. package/src/device/types.gen.ts +15 -26
  390. package/src/errors.ts +45 -22
  391. package/src/{workspace → ethercat}/external.ts +1 -2
  392. package/src/{workspace → ethercat}/index.ts +1 -1
  393. package/src/ethercat/types.gen.ts +151 -0
  394. package/src/framer/adapter.ts +60 -37
  395. package/src/framer/benchutil.ts +67 -0
  396. package/src/framer/cache/cache.ts +115 -0
  397. package/src/framer/cache/dynamic.ts +279 -0
  398. package/src/framer/cache/reader.ts +160 -0
  399. package/src/framer/cache/static.ts +215 -0
  400. package/src/framer/cache/streamer.ts +391 -0
  401. package/src/framer/cache/transform.ts +31 -0
  402. package/src/framer/cache/unary.ts +104 -0
  403. package/src/framer/client.ts +71 -43
  404. package/src/framer/codec.ts +55 -18
  405. package/src/framer/deleter.ts +4 -6
  406. package/src/framer/external.ts +10 -0
  407. package/src/framer/feed.ts +108 -0
  408. package/src/framer/frame.ts +13 -23
  409. package/src/framer/hardened.ts +283 -0
  410. package/src/framer/iterator.ts +31 -42
  411. package/src/framer/reader.ts +11 -11
  412. package/src/framer/streamer.ts +18 -178
  413. package/src/framer/writer.ts +39 -59
  414. package/src/group/client.ts +158 -23
  415. package/src/http/external.ts +10 -0
  416. package/src/{cluster → http}/index.ts +1 -1
  417. package/src/http/types.gen.ts +245 -0
  418. package/src/imex/client.ts +125 -0
  419. package/src/imex/index.ts +10 -0
  420. package/src/index.ts +18 -6
  421. package/src/label/client.ts +193 -54
  422. package/src/label/external.ts +2 -0
  423. package/src/label/payload.ts +4 -9
  424. package/src/label/store.ts +28 -0
  425. package/src/label/types.gen.ts +31 -0
  426. package/src/labjack/external.ts +10 -0
  427. package/src/labjack/index.ts +10 -0
  428. package/src/labjack/types.gen.ts +251 -0
  429. package/src/lineplot/actions.gen.ts +880 -0
  430. package/src/lineplot/actions.ts +535 -0
  431. package/src/lineplot/client.ts +224 -52
  432. package/src/lineplot/external.ts +3 -0
  433. package/src/lineplot/line.ts +80 -0
  434. package/src/lineplot/types.gen.ts +225 -12
  435. package/src/log/actions.gen.ts +474 -0
  436. package/src/log/actions.ts +242 -0
  437. package/src/log/client.ts +223 -52
  438. package/src/log/external.ts +2 -0
  439. package/src/log/types.gen.ts +45 -14
  440. package/src/modbus/external.ts +10 -0
  441. package/src/modbus/index.ts +10 -0
  442. package/src/modbus/types.gen.ts +185 -0
  443. package/src/ni/external.ts +10 -0
  444. package/src/ni/index.ts +10 -0
  445. package/src/ni/types.gen.ts +1632 -0
  446. package/src/node/index.ts +10 -0
  447. package/src/{cluster → node}/types.gen.ts +2 -2
  448. package/src/ontology/client.ts +408 -99
  449. package/src/ontology/external.ts +7 -0
  450. package/src/ontology/payload.ts +48 -7
  451. package/src/ontology/store.ts +83 -0
  452. package/src/ontology/types.gen.ts +2 -1
  453. package/src/ontology/writer.ts +1 -0
  454. package/src/opcua/external.ts +10 -0
  455. package/src/opcua/index.ts +10 -0
  456. package/src/opcua/types.gen.ts +65 -0
  457. package/src/pagerduty/external.ts +10 -0
  458. package/src/pagerduty/index.ts +10 -0
  459. package/src/pagerduty/types.gen.ts +41 -0
  460. package/src/panel/actions.gen.ts +267 -0
  461. package/src/panel/actions.ts +357 -0
  462. package/src/panel/client.ts +327 -0
  463. package/src/panel/external.ts +14 -0
  464. package/src/panel/index.ts +10 -0
  465. package/src/panel/tree.ts +163 -0
  466. package/src/panel/types.gen.ts +164 -0
  467. package/src/project/client.ts +273 -0
  468. package/src/project/external.ts +11 -0
  469. package/src/project/index.ts +10 -0
  470. package/src/project/types.gen.ts +40 -0
  471. package/src/query/cache.ts +326 -0
  472. package/src/query/deleted.ts +38 -0
  473. package/src/query/derived.ts +101 -0
  474. package/src/query/external.ts +51 -0
  475. package/src/query/index.ts +10 -0
  476. package/src/query/query.ts +865 -0
  477. package/src/query/retriever.ts +308 -0
  478. package/src/query/streamer.ts +207 -0
  479. package/src/query/table.ts +625 -0
  480. package/src/query/types.ts +54 -0
  481. package/src/query/write.ts +42 -0
  482. package/src/rack/client.ts +233 -45
  483. package/src/rack/types.gen.ts +15 -16
  484. package/src/range/alias/types.gen.ts +2 -3
  485. package/src/ranger/client.ts +581 -70
  486. package/src/ranger/kv/client.ts +52 -21
  487. package/src/ranger/payload.ts +3 -0
  488. package/src/ranger/types.gen.ts +21 -23
  489. package/src/ranger/writer.ts +4 -8
  490. package/src/schematic/actions.gen.ts +62 -53
  491. package/src/schematic/actions.ts +44 -42
  492. package/src/schematic/client.ts +226 -70
  493. package/src/schematic/symbol/client.ts +277 -48
  494. package/src/schematic/symbol/types.gen.ts +22 -34
  495. package/src/schematic/types.gen.ts +22 -29
  496. package/src/status/client.ts +321 -44
  497. package/src/status/external.ts +2 -0
  498. package/src/status/payload.ts +1 -23
  499. package/src/status/status.ts +241 -0
  500. package/src/status/types.gen.ts +108 -0
  501. package/src/table/actions.gen.ts +96 -63
  502. package/src/table/actions.ts +44 -19
  503. package/src/table/client.ts +220 -56
  504. package/src/table/types.gen.ts +24 -31
  505. package/src/task/client.ts +580 -101
  506. package/src/task/types.gen.ts +68 -75
  507. package/src/testutil/access.ts +102 -6
  508. package/src/testutil/channels.ts +29 -0
  509. package/src/testutil/client.ts +27 -2
  510. package/src/testutil/connection.ts +47 -0
  511. package/src/testutil/index.ts +17 -0
  512. package/src/testutil/panels.ts +26 -0
  513. package/src/testutil/proxy.ts +106 -0
  514. package/src/testutil/query.ts +28 -0
  515. package/src/testutil/telem.ts +17 -1
  516. package/src/transport.ts +18 -7
  517. package/src/user/client.ts +165 -64
  518. package/src/user/external.ts +1 -1
  519. package/src/user/types.gen.ts +5 -5
  520. package/src/util/retrieve.ts +4 -4
  521. package/src/util/telem.ts +0 -1
  522. package/src/view/client.ts +120 -37
  523. package/src/view/types.gen.ts +8 -11
  524. package/.turbo/turbo-build.log +0 -20
  525. package/.vscode/settings.json +0 -3
  526. package/CONTRIBUTING.md +0 -47
  527. package/dist/client.cjs +0 -118
  528. package/dist/eslint.config.d.ts +0 -4
  529. package/dist/eslint.config.d.ts.map +0 -1
  530. package/dist/src/access/enforce.spec.d.ts +0 -2
  531. package/dist/src/access/enforce.spec.d.ts.map +0 -1
  532. package/dist/src/access/policy/access.spec.d.ts +0 -2
  533. package/dist/src/access/policy/access.spec.d.ts.map +0 -1
  534. package/dist/src/access/role/role.spec.d.ts +0 -2
  535. package/dist/src/access/role/role.spec.d.ts.map +0 -1
  536. package/dist/src/actions/actions.spec.d.ts +0 -2
  537. package/dist/src/actions/actions.spec.d.ts.map +0 -1
  538. package/dist/src/arc/access.spec.d.ts +0 -2
  539. package/dist/src/arc/access.spec.d.ts.map +0 -1
  540. package/dist/src/arc/arc.spec.d.ts +0 -2
  541. package/dist/src/arc/arc.spec.d.ts.map +0 -1
  542. package/dist/src/arc/lsp.spec.d.ts +0 -2
  543. package/dist/src/arc/lsp.spec.d.ts.map +0 -1
  544. package/dist/src/auth/auth.spec.d.ts +0 -2
  545. package/dist/src/auth/auth.spec.d.ts.map +0 -1
  546. package/dist/src/channel/access.spec.d.ts +0 -2
  547. package/dist/src/channel/access.spec.d.ts.map +0 -1
  548. package/dist/src/channel/batchRetriever.spec.d.ts +0 -2
  549. package/dist/src/channel/batchRetriever.spec.d.ts.map +0 -1
  550. package/dist/src/channel/channel.spec.d.ts +0 -2
  551. package/dist/src/channel/channel.spec.d.ts.map +0 -1
  552. package/dist/src/channel/payload.spec.d.ts +0 -2
  553. package/dist/src/channel/payload.spec.d.ts.map +0 -1
  554. package/dist/src/channel/retriever.d.ts +0 -64
  555. package/dist/src/channel/retriever.d.ts.map +0 -1
  556. package/dist/src/cluster/index.d.ts +0 -2
  557. package/dist/src/cluster/index.d.ts.map +0 -1
  558. package/dist/src/cluster/types.gen.d.ts +0 -4
  559. package/dist/src/cluster/types.gen.d.ts.map +0 -1
  560. package/dist/src/connection/checker.d.ts +0 -86
  561. package/dist/src/connection/checker.d.ts.map +0 -1
  562. package/dist/src/connection/connection.spec.d.ts +0 -2
  563. package/dist/src/connection/connection.spec.d.ts.map +0 -1
  564. package/dist/src/connection.spec.d.ts +0 -2
  565. package/dist/src/connection.spec.d.ts.map +0 -1
  566. package/dist/src/control/state.spec.d.ts +0 -2
  567. package/dist/src/control/state.spec.d.ts.map +0 -1
  568. package/dist/src/device/access.spec.d.ts +0 -2
  569. package/dist/src/device/access.spec.d.ts.map +0 -1
  570. package/dist/src/device/device.spec.d.ts +0 -2
  571. package/dist/src/device/device.spec.d.ts.map +0 -1
  572. package/dist/src/device/payload.spec.d.ts +0 -2
  573. package/dist/src/device/payload.spec.d.ts.map +0 -1
  574. package/dist/src/errors.spec.d.ts +0 -2
  575. package/dist/src/errors.spec.d.ts.map +0 -1
  576. package/dist/src/framer/adapter.spec.d.ts +0 -2
  577. package/dist/src/framer/adapter.spec.d.ts.map +0 -1
  578. package/dist/src/framer/client.spec.d.ts +0 -2
  579. package/dist/src/framer/client.spec.d.ts.map +0 -1
  580. package/dist/src/framer/codec.spec.d.ts +0 -2
  581. package/dist/src/framer/codec.spec.d.ts.map +0 -1
  582. package/dist/src/framer/deleter.spec.d.ts +0 -2
  583. package/dist/src/framer/deleter.spec.d.ts.map +0 -1
  584. package/dist/src/framer/frame.spec.d.ts +0 -2
  585. package/dist/src/framer/frame.spec.d.ts.map +0 -1
  586. package/dist/src/framer/iterator.spec.d.ts +0 -2
  587. package/dist/src/framer/iterator.spec.d.ts.map +0 -1
  588. package/dist/src/framer/reader.spec.d.ts +0 -2
  589. package/dist/src/framer/reader.spec.d.ts.map +0 -1
  590. package/dist/src/framer/streamer.spec.d.ts +0 -2
  591. package/dist/src/framer/streamer.spec.d.ts.map +0 -1
  592. package/dist/src/framer/writer.spec.d.ts +0 -2
  593. package/dist/src/framer/writer.spec.d.ts.map +0 -1
  594. package/dist/src/group/access.spec.d.ts +0 -2
  595. package/dist/src/group/access.spec.d.ts.map +0 -1
  596. package/dist/src/group/group.spec.d.ts +0 -2
  597. package/dist/src/group/group.spec.d.ts.map +0 -1
  598. package/dist/src/label/access.spec.d.ts +0 -2
  599. package/dist/src/label/access.spec.d.ts.map +0 -1
  600. package/dist/src/label/label.spec.d.ts +0 -2
  601. package/dist/src/label/label.spec.d.ts.map +0 -1
  602. package/dist/src/lineplot/access.spec.d.ts +0 -2
  603. package/dist/src/lineplot/access.spec.d.ts.map +0 -1
  604. package/dist/src/lineplot/lineplot.spec.d.ts +0 -2
  605. package/dist/src/lineplot/lineplot.spec.d.ts.map +0 -1
  606. package/dist/src/log/access.spec.d.ts +0 -2
  607. package/dist/src/log/access.spec.d.ts.map +0 -1
  608. package/dist/src/log/log.spec.d.ts +0 -2
  609. package/dist/src/log/log.spec.d.ts.map +0 -1
  610. package/dist/src/ontology/ontology.spec.d.ts +0 -2
  611. package/dist/src/ontology/ontology.spec.d.ts.map +0 -1
  612. package/dist/src/rack/access.spec.d.ts +0 -2
  613. package/dist/src/rack/access.spec.d.ts.map +0 -1
  614. package/dist/src/rack/rack.spec.d.ts +0 -2
  615. package/dist/src/rack/rack.spec.d.ts.map +0 -1
  616. package/dist/src/ranger/access.spec.d.ts +0 -2
  617. package/dist/src/ranger/access.spec.d.ts.map +0 -1
  618. package/dist/src/ranger/alias/payload.spec.d.ts +0 -2
  619. package/dist/src/ranger/alias/payload.spec.d.ts.map +0 -1
  620. package/dist/src/ranger/ranger.spec.d.ts +0 -2
  621. package/dist/src/ranger/ranger.spec.d.ts.map +0 -1
  622. package/dist/src/schematic/access.spec.d.ts +0 -2
  623. package/dist/src/schematic/access.spec.d.ts.map +0 -1
  624. package/dist/src/schematic/actions.spec.d.ts +0 -2
  625. package/dist/src/schematic/actions.spec.d.ts.map +0 -1
  626. package/dist/src/schematic/schematic.spec.d.ts +0 -2
  627. package/dist/src/schematic/schematic.spec.d.ts.map +0 -1
  628. package/dist/src/schematic/symbol/access.spec.d.ts +0 -2
  629. package/dist/src/schematic/symbol/access.spec.d.ts.map +0 -1
  630. package/dist/src/schematic/symbol/client.spec.d.ts +0 -2
  631. package/dist/src/schematic/symbol/client.spec.d.ts.map +0 -1
  632. package/dist/src/status/access.spec.d.ts +0 -2
  633. package/dist/src/status/access.spec.d.ts.map +0 -1
  634. package/dist/src/status/status.spec.d.ts +0 -2
  635. package/dist/src/status/status.spec.d.ts.map +0 -1
  636. package/dist/src/table/access.spec.d.ts +0 -2
  637. package/dist/src/table/access.spec.d.ts.map +0 -1
  638. package/dist/src/table/table.spec.d.ts +0 -2
  639. package/dist/src/table/table.spec.d.ts.map +0 -1
  640. package/dist/src/task/access.spec.d.ts +0 -2
  641. package/dist/src/task/access.spec.d.ts.map +0 -1
  642. package/dist/src/task/payload.spec.d.ts +0 -2
  643. package/dist/src/task/payload.spec.d.ts.map +0 -1
  644. package/dist/src/task/task.spec.d.ts +0 -2
  645. package/dist/src/task/task.spec.d.ts.map +0 -1
  646. package/dist/src/user/access.spec.d.ts +0 -2
  647. package/dist/src/user/access.spec.d.ts.map +0 -1
  648. package/dist/src/user/user.spec.d.ts +0 -2
  649. package/dist/src/user/user.spec.d.ts.map +0 -1
  650. package/dist/src/util/retrieve.spec.d.ts +0 -2
  651. package/dist/src/util/retrieve.spec.d.ts.map +0 -1
  652. package/dist/src/view/view.spec.d.ts +0 -2
  653. package/dist/src/view/view.spec.d.ts.map +0 -1
  654. package/dist/src/workspace/access.spec.d.ts +0 -2
  655. package/dist/src/workspace/access.spec.d.ts.map +0 -1
  656. package/dist/src/workspace/client.d.ts +0 -36
  657. package/dist/src/workspace/client.d.ts.map +0 -1
  658. package/dist/src/workspace/external.d.ts.map +0 -1
  659. package/dist/src/workspace/index.d.ts +0 -2
  660. package/dist/src/workspace/index.d.ts.map +0 -1
  661. package/dist/src/workspace/types.gen.d.ts +0 -34
  662. package/dist/src/workspace/types.gen.d.ts.map +0 -1
  663. package/dist/src/workspace/workspace.spec.d.ts +0 -2
  664. package/dist/src/workspace/workspace.spec.d.ts.map +0 -1
  665. package/examples/node/basicReadWrite.js +0 -86
  666. package/examples/node/createChannels.js +0 -50
  667. package/examples/node/createRange.js +0 -67
  668. package/examples/node/package-lock.json +0 -133
  669. package/examples/node/package.json +0 -17
  670. package/examples/node/readLatest.js +0 -76
  671. package/examples/node/seriesAndFrames.js +0 -173
  672. package/examples/node/streamRead.js +0 -50
  673. package/examples/node/streamWrite.js +0 -87
  674. package/src/access/enforce.spec.ts +0 -188
  675. package/src/access/policy/access.spec.ts +0 -147
  676. package/src/access/role/role.spec.ts +0 -95
  677. package/src/actions/actions.spec.ts +0 -229
  678. package/src/arc/access.spec.ts +0 -149
  679. package/src/arc/arc.spec.ts +0 -44
  680. package/src/arc/lsp.spec.ts +0 -717
  681. package/src/auth/auth.spec.ts +0 -101
  682. package/src/channel/access.spec.ts +0 -116
  683. package/src/channel/batchRetriever.spec.ts +0 -115
  684. package/src/channel/channel.spec.ts +0 -352
  685. package/src/channel/payload.spec.ts +0 -117
  686. package/src/channel/retriever.ts +0 -252
  687. package/src/connection/checker.ts +0 -203
  688. package/src/connection/connection.spec.ts +0 -152
  689. package/src/connection.spec.ts +0 -145
  690. package/src/control/state.spec.ts +0 -22
  691. package/src/device/access.spec.ts +0 -159
  692. package/src/device/device.spec.ts +0 -461
  693. package/src/device/payload.spec.ts +0 -142
  694. package/src/errors.spec.ts +0 -71
  695. package/src/framer/adapter.spec.ts +0 -620
  696. package/src/framer/client.spec.ts +0 -180
  697. package/src/framer/codec.spec.ts +0 -383
  698. package/src/framer/deleter.spec.ts +0 -103
  699. package/src/framer/frame.spec.ts +0 -973
  700. package/src/framer/iterator.spec.ts +0 -169
  701. package/src/framer/reader.spec.ts +0 -865
  702. package/src/framer/streamer.spec.ts +0 -871
  703. package/src/framer/writer.spec.ts +0 -486
  704. package/src/group/access.spec.ts +0 -77
  705. package/src/group/group.spec.ts +0 -65
  706. package/src/label/access.spec.ts +0 -109
  707. package/src/label/label.spec.ts +0 -83
  708. package/src/lineplot/access.spec.ts +0 -134
  709. package/src/lineplot/lineplot.spec.ts +0 -120
  710. package/src/log/access.spec.ts +0 -132
  711. package/src/log/log.spec.ts +0 -106
  712. package/src/ontology/ontology.spec.ts +0 -521
  713. package/src/rack/access.spec.ts +0 -102
  714. package/src/rack/rack.spec.ts +0 -171
  715. package/src/ranger/access.spec.ts +0 -115
  716. package/src/ranger/alias/payload.spec.ts +0 -52
  717. package/src/ranger/ranger.spec.ts +0 -343
  718. package/src/schematic/access.spec.ts +0 -134
  719. package/src/schematic/actions.spec.ts +0 -699
  720. package/src/schematic/schematic.spec.ts +0 -340
  721. package/src/schematic/symbol/access.spec.ts +0 -172
  722. package/src/schematic/symbol/client.spec.ts +0 -160
  723. package/src/status/access.spec.ts +0 -129
  724. package/src/status/status.spec.ts +0 -448
  725. package/src/table/access.spec.ts +0 -128
  726. package/src/table/table.spec.ts +0 -651
  727. package/src/task/access.spec.ts +0 -131
  728. package/src/task/payload.spec.ts +0 -113
  729. package/src/task/task.spec.ts +0 -657
  730. package/src/user/access.spec.ts +0 -107
  731. package/src/user/user.spec.ts +0 -290
  732. package/src/util/retrieve.spec.ts +0 -49
  733. package/src/view/view.spec.ts +0 -165
  734. package/src/workspace/access.spec.ts +0 -108
  735. package/src/workspace/client.ts +0 -112
  736. package/src/workspace/types.gen.ts +0 -46
  737. package/src/workspace/workspace.spec.ts +0 -111
  738. package/tsconfig.json +0 -5
  739. package/tsconfig.vite.json +0 -4
  740. package/vite.config.ts +0 -29
  741. /package/dist/src/{workspace → project}/external.d.ts +0 -0
@@ -0,0 +1,4208 @@
1
+ import { Draft } from 'immer';
2
+ import { z } from 'zod';
3
+ import { actions } from '../actions';
4
+ import { LinePlot } from './types.gen';
5
+ /**
6
+ * Create replaces the document with the given created state. Emitted by the Core on
7
+ * create so remote caches ingest new documents; clients never dispatch it.
8
+ */
9
+ export declare const createPayloadZ: z.ZodObject<{
10
+ linePlot: z.ZodObject<{
11
+ key: z.ZodDefault<z.ZodUUID>;
12
+ name: z.ZodString;
13
+ title: z.ZodPrefault<z.ZodObject<{
14
+ level: z.ZodDefault<z.ZodEnum<{
15
+ small: "small";
16
+ h1: "h1";
17
+ h2: "h2";
18
+ h3: "h3";
19
+ h4: "h4";
20
+ h5: "h5";
21
+ p: "p";
22
+ }>>;
23
+ visible: z.ZodDefault<z.ZodBoolean>;
24
+ }, z.core.$strip>>;
25
+ legend: z.ZodPrefault<z.ZodObject<{
26
+ hidden: z.ZodDefault<z.ZodBoolean>;
27
+ position: z.ZodPrefault<z.ZodObject<{
28
+ x: z.ZodNumber;
29
+ y: z.ZodNumber;
30
+ root: z.ZodPrefault<z.ZodObject<{
31
+ x: z.ZodEnum<{
32
+ left: "left";
33
+ right: "right";
34
+ }>;
35
+ y: z.ZodEnum<{
36
+ top: "top";
37
+ bottom: "bottom";
38
+ }>;
39
+ }, z.core.$strip>>;
40
+ units: z.ZodPrefault<z.ZodObject<{
41
+ x: z.ZodEnum<{
42
+ px: "px";
43
+ decimal: "decimal";
44
+ }>;
45
+ y: z.ZodEnum<{
46
+ px: "px";
47
+ decimal: "decimal";
48
+ }>;
49
+ }, z.core.$strip>>;
50
+ }, z.core.$strip>>;
51
+ }, z.core.$strip>>;
52
+ channels: z.ZodPrefault<z.ZodObject<{
53
+ x1: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
54
+ x2: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
55
+ y1: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
56
+ y2: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
57
+ y3: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
58
+ y4: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
59
+ }, z.core.$strip>>;
60
+ ranges: z.ZodPrefault<z.ZodObject<{
61
+ x1: z.ZodDefault<z.ZodArray<z.ZodString>>;
62
+ x2: z.ZodDefault<z.ZodArray<z.ZodString>>;
63
+ }, z.core.$strip>>;
64
+ axes: z.ZodPrefault<z.ZodObject<{
65
+ x1: z.ZodPrefault<z.ZodObject<{
66
+ key: z.ZodEnum<{
67
+ x1: "x1";
68
+ x2: "x2";
69
+ y1: "y1";
70
+ y2: "y2";
71
+ y3: "y3";
72
+ y4: "y4";
73
+ }>;
74
+ label: z.ZodDefault<z.ZodString>;
75
+ labelDirection: z.ZodDefault<z.ZodEnum<{
76
+ x: "x";
77
+ y: "y";
78
+ }>>;
79
+ labelLevel: z.ZodDefault<z.ZodEnum<{
80
+ small: "small";
81
+ h1: "h1";
82
+ h2: "h2";
83
+ h3: "h3";
84
+ h4: "h4";
85
+ h5: "h5";
86
+ p: "p";
87
+ }>>;
88
+ bounds: z.ZodPrefault<z.ZodObject<{
89
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
90
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
91
+ }, z.core.$strip>>;
92
+ manualBounds: z.ZodPrefault<z.ZodObject<{
93
+ lower: z.ZodDefault<z.ZodBoolean>;
94
+ upper: z.ZodDefault<z.ZodBoolean>;
95
+ }, z.core.$strip>>;
96
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
97
+ type: z.ZodOptional<z.ZodEnum<{
98
+ time: "time";
99
+ linear: "linear";
100
+ }>>;
101
+ }, z.core.$strip>>;
102
+ x2: z.ZodPrefault<z.ZodObject<{
103
+ key: z.ZodEnum<{
104
+ x1: "x1";
105
+ x2: "x2";
106
+ y1: "y1";
107
+ y2: "y2";
108
+ y3: "y3";
109
+ y4: "y4";
110
+ }>;
111
+ label: z.ZodDefault<z.ZodString>;
112
+ labelDirection: z.ZodDefault<z.ZodEnum<{
113
+ x: "x";
114
+ y: "y";
115
+ }>>;
116
+ labelLevel: z.ZodDefault<z.ZodEnum<{
117
+ small: "small";
118
+ h1: "h1";
119
+ h2: "h2";
120
+ h3: "h3";
121
+ h4: "h4";
122
+ h5: "h5";
123
+ p: "p";
124
+ }>>;
125
+ bounds: z.ZodPrefault<z.ZodObject<{
126
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
127
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
128
+ }, z.core.$strip>>;
129
+ manualBounds: z.ZodPrefault<z.ZodObject<{
130
+ lower: z.ZodDefault<z.ZodBoolean>;
131
+ upper: z.ZodDefault<z.ZodBoolean>;
132
+ }, z.core.$strip>>;
133
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
134
+ type: z.ZodOptional<z.ZodEnum<{
135
+ time: "time";
136
+ linear: "linear";
137
+ }>>;
138
+ }, z.core.$strip>>;
139
+ y1: z.ZodPrefault<z.ZodObject<{
140
+ key: z.ZodEnum<{
141
+ x1: "x1";
142
+ x2: "x2";
143
+ y1: "y1";
144
+ y2: "y2";
145
+ y3: "y3";
146
+ y4: "y4";
147
+ }>;
148
+ label: z.ZodDefault<z.ZodString>;
149
+ labelDirection: z.ZodDefault<z.ZodEnum<{
150
+ x: "x";
151
+ y: "y";
152
+ }>>;
153
+ labelLevel: z.ZodDefault<z.ZodEnum<{
154
+ small: "small";
155
+ h1: "h1";
156
+ h2: "h2";
157
+ h3: "h3";
158
+ h4: "h4";
159
+ h5: "h5";
160
+ p: "p";
161
+ }>>;
162
+ bounds: z.ZodPrefault<z.ZodObject<{
163
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
164
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
165
+ }, z.core.$strip>>;
166
+ manualBounds: z.ZodPrefault<z.ZodObject<{
167
+ lower: z.ZodDefault<z.ZodBoolean>;
168
+ upper: z.ZodDefault<z.ZodBoolean>;
169
+ }, z.core.$strip>>;
170
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
171
+ type: z.ZodOptional<z.ZodEnum<{
172
+ time: "time";
173
+ linear: "linear";
174
+ }>>;
175
+ }, z.core.$strip>>;
176
+ y2: z.ZodPrefault<z.ZodObject<{
177
+ key: z.ZodEnum<{
178
+ x1: "x1";
179
+ x2: "x2";
180
+ y1: "y1";
181
+ y2: "y2";
182
+ y3: "y3";
183
+ y4: "y4";
184
+ }>;
185
+ label: z.ZodDefault<z.ZodString>;
186
+ labelDirection: z.ZodDefault<z.ZodEnum<{
187
+ x: "x";
188
+ y: "y";
189
+ }>>;
190
+ labelLevel: z.ZodDefault<z.ZodEnum<{
191
+ small: "small";
192
+ h1: "h1";
193
+ h2: "h2";
194
+ h3: "h3";
195
+ h4: "h4";
196
+ h5: "h5";
197
+ p: "p";
198
+ }>>;
199
+ bounds: z.ZodPrefault<z.ZodObject<{
200
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
201
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
202
+ }, z.core.$strip>>;
203
+ manualBounds: z.ZodPrefault<z.ZodObject<{
204
+ lower: z.ZodDefault<z.ZodBoolean>;
205
+ upper: z.ZodDefault<z.ZodBoolean>;
206
+ }, z.core.$strip>>;
207
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
208
+ type: z.ZodOptional<z.ZodEnum<{
209
+ time: "time";
210
+ linear: "linear";
211
+ }>>;
212
+ }, z.core.$strip>>;
213
+ y3: z.ZodPrefault<z.ZodObject<{
214
+ key: z.ZodEnum<{
215
+ x1: "x1";
216
+ x2: "x2";
217
+ y1: "y1";
218
+ y2: "y2";
219
+ y3: "y3";
220
+ y4: "y4";
221
+ }>;
222
+ label: z.ZodDefault<z.ZodString>;
223
+ labelDirection: z.ZodDefault<z.ZodEnum<{
224
+ x: "x";
225
+ y: "y";
226
+ }>>;
227
+ labelLevel: z.ZodDefault<z.ZodEnum<{
228
+ small: "small";
229
+ h1: "h1";
230
+ h2: "h2";
231
+ h3: "h3";
232
+ h4: "h4";
233
+ h5: "h5";
234
+ p: "p";
235
+ }>>;
236
+ bounds: z.ZodPrefault<z.ZodObject<{
237
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
238
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
239
+ }, z.core.$strip>>;
240
+ manualBounds: z.ZodPrefault<z.ZodObject<{
241
+ lower: z.ZodDefault<z.ZodBoolean>;
242
+ upper: z.ZodDefault<z.ZodBoolean>;
243
+ }, z.core.$strip>>;
244
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
245
+ type: z.ZodOptional<z.ZodEnum<{
246
+ time: "time";
247
+ linear: "linear";
248
+ }>>;
249
+ }, z.core.$strip>>;
250
+ y4: z.ZodPrefault<z.ZodObject<{
251
+ key: z.ZodEnum<{
252
+ x1: "x1";
253
+ x2: "x2";
254
+ y1: "y1";
255
+ y2: "y2";
256
+ y3: "y3";
257
+ y4: "y4";
258
+ }>;
259
+ label: z.ZodDefault<z.ZodString>;
260
+ labelDirection: z.ZodDefault<z.ZodEnum<{
261
+ x: "x";
262
+ y: "y";
263
+ }>>;
264
+ labelLevel: z.ZodDefault<z.ZodEnum<{
265
+ small: "small";
266
+ h1: "h1";
267
+ h2: "h2";
268
+ h3: "h3";
269
+ h4: "h4";
270
+ h5: "h5";
271
+ p: "p";
272
+ }>>;
273
+ bounds: z.ZodPrefault<z.ZodObject<{
274
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
275
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
276
+ }, z.core.$strip>>;
277
+ manualBounds: z.ZodPrefault<z.ZodObject<{
278
+ lower: z.ZodDefault<z.ZodBoolean>;
279
+ upper: z.ZodDefault<z.ZodBoolean>;
280
+ }, z.core.$strip>>;
281
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
282
+ type: z.ZodOptional<z.ZodEnum<{
283
+ time: "time";
284
+ linear: "linear";
285
+ }>>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>>;
288
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
289
+ key: z.ZodString;
290
+ label: z.ZodOptional<z.ZodString>;
291
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
292
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ r: z.ZodInt;
295
+ g: z.ZodInt;
296
+ b: z.ZodInt;
297
+ a: z.ZodNumber;
298
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
299
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ r: z.ZodInt;
302
+ g: z.ZodInt;
303
+ b: z.ZodInt;
304
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
305
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
306
+ rgba255: [number, number, number, number];
307
+ } | {
308
+ r: number;
309
+ g: number;
310
+ b: number;
311
+ a: number;
312
+ } | {
313
+ rgba255: [number, number, number, number];
314
+ } | {
315
+ r: number;
316
+ g: number;
317
+ b: number;
318
+ a: number;
319
+ }>>>;
320
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
321
+ downsample: z.ZodDefault<z.ZodUInt32>;
322
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
323
+ average: "average";
324
+ decimate: "decimate";
325
+ }>>;
326
+ }, z.core.$strip>>>;
327
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
328
+ key: z.ZodString;
329
+ label: z.ZodString;
330
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
331
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
332
+ }, z.core.$strip>, z.ZodObject<{
333
+ r: z.ZodInt;
334
+ g: z.ZodInt;
335
+ b: z.ZodInt;
336
+ a: z.ZodNumber;
337
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
338
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ r: z.ZodInt;
341
+ g: z.ZodInt;
342
+ b: z.ZodInt;
343
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
344
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
345
+ rgba255: [number, number, number, number];
346
+ } | {
347
+ r: number;
348
+ g: number;
349
+ b: number;
350
+ a: number;
351
+ } | {
352
+ rgba255: [number, number, number, number];
353
+ } | {
354
+ r: number;
355
+ g: number;
356
+ b: number;
357
+ a: number;
358
+ }>>>;
359
+ axis: z.ZodEnum<{
360
+ x1: "x1";
361
+ x2: "x2";
362
+ y1: "y1";
363
+ y2: "y2";
364
+ y3: "y3";
365
+ y4: "y4";
366
+ }>;
367
+ lineWidth: z.ZodDefault<z.ZodNumber>;
368
+ lineDash: z.ZodDefault<z.ZodNumber>;
369
+ units: z.ZodDefault<z.ZodString>;
370
+ position: z.ZodNumber;
371
+ }, z.core.$strip>>>;
372
+ }, z.core.$strip>;
373
+ }, z.core.$strip>;
374
+ export type CreatePayload = z.infer<typeof createPayloadZ>;
375
+ /** Rename renames the line plot. */
376
+ export declare const renamePayloadZ: z.ZodObject<{
377
+ name: z.ZodString;
378
+ }, z.core.$strip>;
379
+ export type RenamePayload = z.infer<typeof renamePayloadZ>;
380
+ /** SetTitleVisible sets whether the plot title is shown above the plot. */
381
+ export declare const setTitleVisiblePayloadZ: z.ZodObject<{
382
+ visible: z.ZodBoolean;
383
+ }, z.core.$strip>;
384
+ export type SetTitleVisiblePayload = z.infer<typeof setTitleVisiblePayloadZ>;
385
+ /** SetTitleLevel sets the typography level of the plot title. */
386
+ export declare const setTitleLevelPayloadZ: z.ZodObject<{
387
+ level: z.ZodEnum<{
388
+ small: "small";
389
+ h1: "h1";
390
+ h2: "h2";
391
+ h3: "h3";
392
+ h4: "h4";
393
+ h5: "h5";
394
+ p: "p";
395
+ }>;
396
+ }, z.core.$strip>;
397
+ export type SetTitleLevelPayload = z.infer<typeof setTitleLevelPayloadZ>;
398
+ /** SetLegendHidden sets whether the plot legend is hidden. */
399
+ export declare const setLegendHiddenPayloadZ: z.ZodObject<{
400
+ hidden: z.ZodBoolean;
401
+ }, z.core.$strip>;
402
+ export type SetLegendHiddenPayload = z.infer<typeof setLegendHiddenPayloadZ>;
403
+ /**
404
+ * SetLegendPosition sets the anchor position of the plot legend within the container.
405
+ */
406
+ export declare const setLegendPositionPayloadZ: z.ZodObject<{
407
+ position: z.ZodObject<{
408
+ x: z.ZodNumber;
409
+ y: z.ZodNumber;
410
+ root: z.ZodPrefault<z.ZodObject<{
411
+ x: z.ZodEnum<{
412
+ left: "left";
413
+ right: "right";
414
+ }>;
415
+ y: z.ZodEnum<{
416
+ top: "top";
417
+ bottom: "bottom";
418
+ }>;
419
+ }, z.core.$strip>>;
420
+ units: z.ZodPrefault<z.ZodObject<{
421
+ x: z.ZodEnum<{
422
+ px: "px";
423
+ decimal: "decimal";
424
+ }>;
425
+ y: z.ZodEnum<{
426
+ px: "px";
427
+ decimal: "decimal";
428
+ }>;
429
+ }, z.core.$strip>>;
430
+ }, z.core.$strip>;
431
+ }, z.core.$strip>;
432
+ export type SetLegendPositionPayload = z.infer<typeof setLegendPositionPayloadZ>;
433
+ /**
434
+ * AddChannel appends the channel to the channels array bound to the y-axis named by
435
+ * axis_key. No-op when the channel is already present.
436
+ */
437
+ export declare const addChannelPayloadZ: z.ZodObject<{
438
+ axisKey: z.ZodEnum<{
439
+ y1: "y1";
440
+ y2: "y2";
441
+ y3: "y3";
442
+ y4: "y4";
443
+ }>;
444
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
445
+ }, z.core.$strip>;
446
+ export type AddChannelPayload = z.infer<typeof addChannelPayloadZ>;
447
+ /**
448
+ * RemoveChannel removes the channel from the y-axis named by axis_key. No-op when the
449
+ * channel is not present.
450
+ */
451
+ export declare const removeChannelPayloadZ: z.ZodObject<{
452
+ axisKey: z.ZodEnum<{
453
+ y1: "y1";
454
+ y2: "y2";
455
+ y3: "y3";
456
+ y4: "y4";
457
+ }>;
458
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
459
+ }, z.core.$strip>;
460
+ export type RemoveChannelPayload = z.infer<typeof removeChannelPayloadZ>;
461
+ /**
462
+ * SetChannels replaces the entire set of channels bound to the y-axis named by axis_key
463
+ * with channels. Channels absent from the new set are removed and their lines dropped;
464
+ * channels not previously present are added. Existing channels keep their line styling.
465
+ */
466
+ export declare const setChannelsPayloadZ: z.ZodObject<{
467
+ axisKey: z.ZodEnum<{
468
+ y1: "y1";
469
+ y2: "y2";
470
+ y3: "y3";
471
+ y4: "y4";
472
+ }>;
473
+ channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
474
+ }, z.core.$strip>;
475
+ export type SetChannelsPayload = z.infer<typeof setChannelsPayloadZ>;
476
+ /** SetXChannel replaces the single channel bound to the x-axis named by axis_key. */
477
+ export declare const setXChannelPayloadZ: z.ZodObject<{
478
+ axisKey: z.ZodEnum<{
479
+ x1: "x1";
480
+ x2: "x2";
481
+ }>;
482
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
483
+ }, z.core.$strip>;
484
+ export type SetXChannelPayload = z.infer<typeof setXChannelPayloadZ>;
485
+ /**
486
+ * AddRange appends the range key to the ranges array bound to the x-axis named by
487
+ * axis_key. No-op when the range is already present.
488
+ */
489
+ export declare const addRangePayloadZ: z.ZodObject<{
490
+ axisKey: z.ZodEnum<{
491
+ x1: "x1";
492
+ x2: "x2";
493
+ }>;
494
+ range: z.ZodString;
495
+ }, z.core.$strip>;
496
+ export type AddRangePayload = z.infer<typeof addRangePayloadZ>;
497
+ /**
498
+ * RemoveRange removes the range key from the x-axis named by axis_key. No-op when the
499
+ * range is not present.
500
+ */
501
+ export declare const removeRangePayloadZ: z.ZodObject<{
502
+ axisKey: z.ZodEnum<{
503
+ x1: "x1";
504
+ x2: "x2";
505
+ }>;
506
+ range: z.ZodString;
507
+ }, z.core.$strip>;
508
+ export type RemoveRangePayload = z.infer<typeof removeRangePayloadZ>;
509
+ /**
510
+ * SetRanges replaces the entire set of range keys bound to the x-axis named by axis_key
511
+ * with ranges. Ranges absent from the new set are removed and their lines dropped;
512
+ * ranges not previously present are added. Existing ranges keep their line styling.
513
+ */
514
+ export declare const setRangesPayloadZ: z.ZodObject<{
515
+ axisKey: z.ZodEnum<{
516
+ x1: "x1";
517
+ x2: "x2";
518
+ }>;
519
+ ranges: z.ZodDefault<z.ZodArray<z.ZodString>>;
520
+ }, z.core.$strip>;
521
+ export type SetRangesPayload = z.infer<typeof setRangesPayloadZ>;
522
+ /** SetAxisLabel sets the label rendered along the axis identified by key. */
523
+ export declare const setAxisLabelPayloadZ: z.ZodObject<{
524
+ key: z.ZodEnum<{
525
+ x1: "x1";
526
+ x2: "x2";
527
+ y1: "y1";
528
+ y2: "y2";
529
+ y3: "y3";
530
+ y4: "y4";
531
+ }>;
532
+ label: z.ZodString;
533
+ }, z.core.$strip>;
534
+ export type SetAxisLabelPayload = z.infer<typeof setAxisLabelPayloadZ>;
535
+ /** SetAxisLabelDirection sets the orientation in which the axis label is laid out. */
536
+ export declare const setAxisLabelDirectionPayloadZ: z.ZodObject<{
537
+ key: z.ZodEnum<{
538
+ x1: "x1";
539
+ x2: "x2";
540
+ y1: "y1";
541
+ y2: "y2";
542
+ y3: "y3";
543
+ y4: "y4";
544
+ }>;
545
+ labelDirection: z.ZodEnum<{
546
+ x: "x";
547
+ y: "y";
548
+ }>;
549
+ }, z.core.$strip>;
550
+ export type SetAxisLabelDirectionPayload = z.infer<typeof setAxisLabelDirectionPayloadZ>;
551
+ /** SetAxisLabelLevel sets the typography level of the axis label. */
552
+ export declare const setAxisLabelLevelPayloadZ: z.ZodObject<{
553
+ key: z.ZodEnum<{
554
+ x1: "x1";
555
+ x2: "x2";
556
+ y1: "y1";
557
+ y2: "y2";
558
+ y3: "y3";
559
+ y4: "y4";
560
+ }>;
561
+ labelLevel: z.ZodEnum<{
562
+ small: "small";
563
+ h1: "h1";
564
+ h2: "h2";
565
+ h3: "h3";
566
+ h4: "h4";
567
+ h5: "h5";
568
+ p: "p";
569
+ }>;
570
+ }, z.core.$strip>;
571
+ export type SetAxisLabelLevelPayload = z.infer<typeof setAxisLabelLevelPayloadZ>;
572
+ /**
573
+ * SetAxisBounds sets the axis value-space window together with its per-edge manual
574
+ * override flags. The two travel together: fixing a bound enables the manual override
575
+ * for that edge, so callers set both at once.
576
+ */
577
+ export declare const setAxisBoundsPayloadZ: z.ZodObject<{
578
+ key: z.ZodEnum<{
579
+ x1: "x1";
580
+ x2: "x2";
581
+ y1: "y1";
582
+ y2: "y2";
583
+ y3: "y3";
584
+ y4: "y4";
585
+ }>;
586
+ bounds: z.ZodObject<{
587
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
588
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
589
+ }, z.core.$strip>;
590
+ manualBounds: z.ZodObject<{
591
+ lower: z.ZodDefault<z.ZodBoolean>;
592
+ upper: z.ZodDefault<z.ZodBoolean>;
593
+ }, z.core.$strip>;
594
+ }, z.core.$strip>;
595
+ export type SetAxisBoundsPayload = z.infer<typeof setAxisBoundsPayloadZ>;
596
+ /** SetAxisTickSpacing sets the target pixel distance between adjacent tick marks. */
597
+ export declare const setAxisTickSpacingPayloadZ: z.ZodObject<{
598
+ key: z.ZodEnum<{
599
+ x1: "x1";
600
+ x2: "x2";
601
+ y1: "y1";
602
+ y2: "y2";
603
+ y3: "y3";
604
+ y4: "y4";
605
+ }>;
606
+ tickSpacing: z.ZodNumber;
607
+ }, z.core.$strip>;
608
+ export type SetAxisTickSpacingPayload = z.infer<typeof setAxisTickSpacingPayloadZ>;
609
+ /**
610
+ * SetAxisType sets the axis tick label style. Null resets it to the default, which the
611
+ * Console derives (linear, or time for a timestamp-bound x-axis) at render time.
612
+ */
613
+ export declare const setAxisTypePayloadZ: z.ZodObject<{
614
+ key: z.ZodEnum<{
615
+ x1: "x1";
616
+ x2: "x2";
617
+ y1: "y1";
618
+ y2: "y2";
619
+ y3: "y3";
620
+ y4: "y4";
621
+ }>;
622
+ type: z.ZodOptional<z.ZodEnum<{
623
+ time: "time";
624
+ linear: "linear";
625
+ }>>;
626
+ }, z.core.$strip>;
627
+ export type SetAxisTypePayload = z.infer<typeof setAxisTypePayloadZ>;
628
+ /**
629
+ * SetLineLabel sets the label of the line identified by key. Null resets it to derive
630
+ * from the channel name at render time.
631
+ */
632
+ export declare const setLineLabelPayloadZ: z.ZodObject<{
633
+ key: z.ZodString;
634
+ label: z.ZodOptional<z.ZodString>;
635
+ }, z.core.$strip>;
636
+ export type SetLineLabelPayload = z.infer<typeof setLineLabelPayloadZ>;
637
+ /**
638
+ * SetLineColor sets the color of the line identified by key. Null resets it to a
639
+ * palette color assigned at render time.
640
+ */
641
+ export declare const setLineColorPayloadZ: z.ZodObject<{
642
+ key: z.ZodString;
643
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
644
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
645
+ }, z.core.$strip>, z.ZodObject<{
646
+ r: z.ZodInt;
647
+ g: z.ZodInt;
648
+ b: z.ZodInt;
649
+ a: z.ZodNumber;
650
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
651
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ r: z.ZodInt;
654
+ g: z.ZodInt;
655
+ b: z.ZodInt;
656
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
657
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
658
+ rgba255: [number, number, number, number];
659
+ } | {
660
+ r: number;
661
+ g: number;
662
+ b: number;
663
+ a: number;
664
+ } | {
665
+ rgba255: [number, number, number, number];
666
+ } | {
667
+ r: number;
668
+ g: number;
669
+ b: number;
670
+ a: number;
671
+ }>>>;
672
+ }, z.core.$strip>;
673
+ export type SetLineColorPayload = z.infer<typeof setLineColorPayloadZ>;
674
+ /**
675
+ * SetLineStrokeWidth sets the stroke width, in pixels, of the line identified by key.
676
+ */
677
+ export declare const setLineStrokeWidthPayloadZ: z.ZodObject<{
678
+ key: z.ZodString;
679
+ strokeWidth: z.ZodNumber;
680
+ }, z.core.$strip>;
681
+ export type SetLineStrokeWidthPayload = z.infer<typeof setLineStrokeWidthPayloadZ>;
682
+ /** SetLineDownsample sets the downsample factor of the line identified by key. */
683
+ export declare const setLineDownsamplePayloadZ: z.ZodObject<{
684
+ key: z.ZodString;
685
+ downsample: z.ZodUInt32;
686
+ }, z.core.$strip>;
687
+ export type SetLineDownsamplePayload = z.infer<typeof setLineDownsamplePayloadZ>;
688
+ /**
689
+ * SetLineDownsampleMode sets how the downsample factor is applied for the line
690
+ * identified by key.
691
+ */
692
+ export declare const setLineDownsampleModePayloadZ: z.ZodObject<{
693
+ key: z.ZodString;
694
+ downsampleMode: z.ZodEnum<{
695
+ average: "average";
696
+ decimate: "decimate";
697
+ }>;
698
+ }, z.core.$strip>;
699
+ export type SetLineDownsampleModePayload = z.infer<typeof setLineDownsampleModePayloadZ>;
700
+ /**
701
+ * SetLine replaces the line with line.key in place, inserting it when no such line
702
+ * exists. The fine-grained setLine* actions cover per-field edits; this full-object
703
+ * form restores a line dropped by reconciliation.
704
+ */
705
+ export declare const setLinePayloadZ: z.ZodObject<{
706
+ line: z.ZodObject<{
707
+ key: z.ZodString;
708
+ label: z.ZodOptional<z.ZodString>;
709
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
710
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
711
+ }, z.core.$strip>, z.ZodObject<{
712
+ r: z.ZodInt;
713
+ g: z.ZodInt;
714
+ b: z.ZodInt;
715
+ a: z.ZodNumber;
716
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
717
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
718
+ }, z.core.$strip>, z.ZodObject<{
719
+ r: z.ZodInt;
720
+ g: z.ZodInt;
721
+ b: z.ZodInt;
722
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
723
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
724
+ rgba255: [number, number, number, number];
725
+ } | {
726
+ r: number;
727
+ g: number;
728
+ b: number;
729
+ a: number;
730
+ } | {
731
+ rgba255: [number, number, number, number];
732
+ } | {
733
+ r: number;
734
+ g: number;
735
+ b: number;
736
+ a: number;
737
+ }>>>;
738
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
739
+ downsample: z.ZodDefault<z.ZodUInt32>;
740
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
741
+ average: "average";
742
+ decimate: "decimate";
743
+ }>>;
744
+ }, z.core.$strip>;
745
+ }, z.core.$strip>;
746
+ export type SetLinePayload = z.infer<typeof setLinePayloadZ>;
747
+ /**
748
+ * SetRule inserts the rule if no rule with rule.key exists, otherwise replaces the
749
+ * existing entry in place. The fine-grained setRule* actions cover per-field edits;
750
+ * this full-object form creates a rule or restores one removed by another action's
751
+ * inverse.
752
+ */
753
+ export declare const setRulePayloadZ: z.ZodObject<{
754
+ rule: z.ZodObject<{
755
+ key: z.ZodString;
756
+ label: z.ZodString;
757
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
758
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
759
+ }, z.core.$strip>, z.ZodObject<{
760
+ r: z.ZodInt;
761
+ g: z.ZodInt;
762
+ b: z.ZodInt;
763
+ a: z.ZodNumber;
764
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
765
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
766
+ }, z.core.$strip>, z.ZodObject<{
767
+ r: z.ZodInt;
768
+ g: z.ZodInt;
769
+ b: z.ZodInt;
770
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
771
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
772
+ rgba255: [number, number, number, number];
773
+ } | {
774
+ r: number;
775
+ g: number;
776
+ b: number;
777
+ a: number;
778
+ } | {
779
+ rgba255: [number, number, number, number];
780
+ } | {
781
+ r: number;
782
+ g: number;
783
+ b: number;
784
+ a: number;
785
+ }>>>;
786
+ axis: z.ZodEnum<{
787
+ x1: "x1";
788
+ x2: "x2";
789
+ y1: "y1";
790
+ y2: "y2";
791
+ y3: "y3";
792
+ y4: "y4";
793
+ }>;
794
+ lineWidth: z.ZodDefault<z.ZodNumber>;
795
+ lineDash: z.ZodDefault<z.ZodNumber>;
796
+ units: z.ZodDefault<z.ZodString>;
797
+ position: z.ZodNumber;
798
+ }, z.core.$strip>;
799
+ }, z.core.$strip>;
800
+ export type SetRulePayload = z.infer<typeof setRulePayloadZ>;
801
+ /** SetRuleLabel sets the label of the rule identified by key. */
802
+ export declare const setRuleLabelPayloadZ: z.ZodObject<{
803
+ key: z.ZodString;
804
+ label: z.ZodString;
805
+ }, z.core.$strip>;
806
+ export type SetRuleLabelPayload = z.infer<typeof setRuleLabelPayloadZ>;
807
+ /**
808
+ * SetRuleColor sets the color of the rule identified by key. Null resets it to a
809
+ * default color assigned at render time.
810
+ */
811
+ export declare const setRuleColorPayloadZ: z.ZodObject<{
812
+ key: z.ZodString;
813
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
814
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
815
+ }, z.core.$strip>, z.ZodObject<{
816
+ r: z.ZodInt;
817
+ g: z.ZodInt;
818
+ b: z.ZodInt;
819
+ a: z.ZodNumber;
820
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
821
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
822
+ }, z.core.$strip>, z.ZodObject<{
823
+ r: z.ZodInt;
824
+ g: z.ZodInt;
825
+ b: z.ZodInt;
826
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
827
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
828
+ rgba255: [number, number, number, number];
829
+ } | {
830
+ r: number;
831
+ g: number;
832
+ b: number;
833
+ a: number;
834
+ } | {
835
+ rgba255: [number, number, number, number];
836
+ } | {
837
+ r: number;
838
+ g: number;
839
+ b: number;
840
+ a: number;
841
+ }>>>;
842
+ }, z.core.$strip>;
843
+ export type SetRuleColorPayload = z.infer<typeof setRuleColorPayloadZ>;
844
+ /** SetRuleAxis sets the axis the rule identified by key is anchored to. */
845
+ export declare const setRuleAxisPayloadZ: z.ZodObject<{
846
+ key: z.ZodString;
847
+ axis: z.ZodEnum<{
848
+ x1: "x1";
849
+ x2: "x2";
850
+ y1: "y1";
851
+ y2: "y2";
852
+ y3: "y3";
853
+ y4: "y4";
854
+ }>;
855
+ }, z.core.$strip>;
856
+ export type SetRuleAxisPayload = z.infer<typeof setRuleAxisPayloadZ>;
857
+ /** SetRuleLineWidth sets the line width, in pixels, of the rule identified by key. */
858
+ export declare const setRuleLineWidthPayloadZ: z.ZodObject<{
859
+ key: z.ZodString;
860
+ lineWidth: z.ZodNumber;
861
+ }, z.core.$strip>;
862
+ export type SetRuleLineWidthPayload = z.infer<typeof setRuleLineWidthPayloadZ>;
863
+ /** SetRuleLineDash sets the dash length, in pixels, of the rule identified by key. */
864
+ export declare const setRuleLineDashPayloadZ: z.ZodObject<{
865
+ key: z.ZodString;
866
+ lineDash: z.ZodNumber;
867
+ }, z.core.$strip>;
868
+ export type SetRuleLineDashPayload = z.infer<typeof setRuleLineDashPayloadZ>;
869
+ /** SetRuleUnits sets the unit label of the rule identified by key. */
870
+ export declare const setRuleUnitsPayloadZ: z.ZodObject<{
871
+ key: z.ZodString;
872
+ units: z.ZodString;
873
+ }, z.core.$strip>;
874
+ export type SetRuleUnitsPayload = z.infer<typeof setRuleUnitsPayloadZ>;
875
+ /** SetRulePosition sets the value-space position of the rule identified by key. */
876
+ export declare const setRulePositionPayloadZ: z.ZodObject<{
877
+ key: z.ZodString;
878
+ position: z.ZodNumber;
879
+ }, z.core.$strip>;
880
+ export type SetRulePositionPayload = z.infer<typeof setRulePositionPayloadZ>;
881
+ /** RemoveRule removes the rule with the given key, if present. */
882
+ export declare const removeRulePayloadZ: z.ZodObject<{
883
+ key: z.ZodString;
884
+ }, z.core.$strip>;
885
+ export type RemoveRulePayload = z.infer<typeof removeRulePayloadZ>;
886
+ export declare const actionZ: z.ZodDiscriminatedUnion<[z.ZodObject<{
887
+ type: z.ZodLiteral<"create">;
888
+ create: z.ZodObject<{
889
+ linePlot: z.ZodObject<{
890
+ key: z.ZodDefault<z.ZodUUID>;
891
+ name: z.ZodString;
892
+ title: z.ZodPrefault<z.ZodObject<{
893
+ level: z.ZodDefault<z.ZodEnum<{
894
+ small: "small";
895
+ h1: "h1";
896
+ h2: "h2";
897
+ h3: "h3";
898
+ h4: "h4";
899
+ h5: "h5";
900
+ p: "p";
901
+ }>>;
902
+ visible: z.ZodDefault<z.ZodBoolean>;
903
+ }, z.core.$strip>>;
904
+ legend: z.ZodPrefault<z.ZodObject<{
905
+ hidden: z.ZodDefault<z.ZodBoolean>;
906
+ position: z.ZodPrefault<z.ZodObject<{
907
+ x: z.ZodNumber;
908
+ y: z.ZodNumber;
909
+ root: z.ZodPrefault<z.ZodObject<{
910
+ x: z.ZodEnum<{
911
+ left: "left";
912
+ right: "right";
913
+ }>;
914
+ y: z.ZodEnum<{
915
+ top: "top";
916
+ bottom: "bottom";
917
+ }>;
918
+ }, z.core.$strip>>;
919
+ units: z.ZodPrefault<z.ZodObject<{
920
+ x: z.ZodEnum<{
921
+ px: "px";
922
+ decimal: "decimal";
923
+ }>;
924
+ y: z.ZodEnum<{
925
+ px: "px";
926
+ decimal: "decimal";
927
+ }>;
928
+ }, z.core.$strip>>;
929
+ }, z.core.$strip>>;
930
+ }, z.core.$strip>>;
931
+ channels: z.ZodPrefault<z.ZodObject<{
932
+ x1: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
933
+ x2: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
934
+ y1: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
935
+ y2: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
936
+ y3: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
937
+ y4: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
938
+ }, z.core.$strip>>;
939
+ ranges: z.ZodPrefault<z.ZodObject<{
940
+ x1: z.ZodDefault<z.ZodArray<z.ZodString>>;
941
+ x2: z.ZodDefault<z.ZodArray<z.ZodString>>;
942
+ }, z.core.$strip>>;
943
+ axes: z.ZodPrefault<z.ZodObject<{
944
+ x1: z.ZodPrefault<z.ZodObject<{
945
+ key: z.ZodEnum<{
946
+ x1: "x1";
947
+ x2: "x2";
948
+ y1: "y1";
949
+ y2: "y2";
950
+ y3: "y3";
951
+ y4: "y4";
952
+ }>;
953
+ label: z.ZodDefault<z.ZodString>;
954
+ labelDirection: z.ZodDefault<z.ZodEnum<{
955
+ x: "x";
956
+ y: "y";
957
+ }>>;
958
+ labelLevel: z.ZodDefault<z.ZodEnum<{
959
+ small: "small";
960
+ h1: "h1";
961
+ h2: "h2";
962
+ h3: "h3";
963
+ h4: "h4";
964
+ h5: "h5";
965
+ p: "p";
966
+ }>>;
967
+ bounds: z.ZodPrefault<z.ZodObject<{
968
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
969
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
970
+ }, z.core.$strip>>;
971
+ manualBounds: z.ZodPrefault<z.ZodObject<{
972
+ lower: z.ZodDefault<z.ZodBoolean>;
973
+ upper: z.ZodDefault<z.ZodBoolean>;
974
+ }, z.core.$strip>>;
975
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
976
+ type: z.ZodOptional<z.ZodEnum<{
977
+ time: "time";
978
+ linear: "linear";
979
+ }>>;
980
+ }, z.core.$strip>>;
981
+ x2: z.ZodPrefault<z.ZodObject<{
982
+ key: z.ZodEnum<{
983
+ x1: "x1";
984
+ x2: "x2";
985
+ y1: "y1";
986
+ y2: "y2";
987
+ y3: "y3";
988
+ y4: "y4";
989
+ }>;
990
+ label: z.ZodDefault<z.ZodString>;
991
+ labelDirection: z.ZodDefault<z.ZodEnum<{
992
+ x: "x";
993
+ y: "y";
994
+ }>>;
995
+ labelLevel: z.ZodDefault<z.ZodEnum<{
996
+ small: "small";
997
+ h1: "h1";
998
+ h2: "h2";
999
+ h3: "h3";
1000
+ h4: "h4";
1001
+ h5: "h5";
1002
+ p: "p";
1003
+ }>>;
1004
+ bounds: z.ZodPrefault<z.ZodObject<{
1005
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1006
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1007
+ }, z.core.$strip>>;
1008
+ manualBounds: z.ZodPrefault<z.ZodObject<{
1009
+ lower: z.ZodDefault<z.ZodBoolean>;
1010
+ upper: z.ZodDefault<z.ZodBoolean>;
1011
+ }, z.core.$strip>>;
1012
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
1013
+ type: z.ZodOptional<z.ZodEnum<{
1014
+ time: "time";
1015
+ linear: "linear";
1016
+ }>>;
1017
+ }, z.core.$strip>>;
1018
+ y1: z.ZodPrefault<z.ZodObject<{
1019
+ key: z.ZodEnum<{
1020
+ x1: "x1";
1021
+ x2: "x2";
1022
+ y1: "y1";
1023
+ y2: "y2";
1024
+ y3: "y3";
1025
+ y4: "y4";
1026
+ }>;
1027
+ label: z.ZodDefault<z.ZodString>;
1028
+ labelDirection: z.ZodDefault<z.ZodEnum<{
1029
+ x: "x";
1030
+ y: "y";
1031
+ }>>;
1032
+ labelLevel: z.ZodDefault<z.ZodEnum<{
1033
+ small: "small";
1034
+ h1: "h1";
1035
+ h2: "h2";
1036
+ h3: "h3";
1037
+ h4: "h4";
1038
+ h5: "h5";
1039
+ p: "p";
1040
+ }>>;
1041
+ bounds: z.ZodPrefault<z.ZodObject<{
1042
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1043
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1044
+ }, z.core.$strip>>;
1045
+ manualBounds: z.ZodPrefault<z.ZodObject<{
1046
+ lower: z.ZodDefault<z.ZodBoolean>;
1047
+ upper: z.ZodDefault<z.ZodBoolean>;
1048
+ }, z.core.$strip>>;
1049
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
1050
+ type: z.ZodOptional<z.ZodEnum<{
1051
+ time: "time";
1052
+ linear: "linear";
1053
+ }>>;
1054
+ }, z.core.$strip>>;
1055
+ y2: z.ZodPrefault<z.ZodObject<{
1056
+ key: z.ZodEnum<{
1057
+ x1: "x1";
1058
+ x2: "x2";
1059
+ y1: "y1";
1060
+ y2: "y2";
1061
+ y3: "y3";
1062
+ y4: "y4";
1063
+ }>;
1064
+ label: z.ZodDefault<z.ZodString>;
1065
+ labelDirection: z.ZodDefault<z.ZodEnum<{
1066
+ x: "x";
1067
+ y: "y";
1068
+ }>>;
1069
+ labelLevel: z.ZodDefault<z.ZodEnum<{
1070
+ small: "small";
1071
+ h1: "h1";
1072
+ h2: "h2";
1073
+ h3: "h3";
1074
+ h4: "h4";
1075
+ h5: "h5";
1076
+ p: "p";
1077
+ }>>;
1078
+ bounds: z.ZodPrefault<z.ZodObject<{
1079
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1080
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1081
+ }, z.core.$strip>>;
1082
+ manualBounds: z.ZodPrefault<z.ZodObject<{
1083
+ lower: z.ZodDefault<z.ZodBoolean>;
1084
+ upper: z.ZodDefault<z.ZodBoolean>;
1085
+ }, z.core.$strip>>;
1086
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
1087
+ type: z.ZodOptional<z.ZodEnum<{
1088
+ time: "time";
1089
+ linear: "linear";
1090
+ }>>;
1091
+ }, z.core.$strip>>;
1092
+ y3: z.ZodPrefault<z.ZodObject<{
1093
+ key: z.ZodEnum<{
1094
+ x1: "x1";
1095
+ x2: "x2";
1096
+ y1: "y1";
1097
+ y2: "y2";
1098
+ y3: "y3";
1099
+ y4: "y4";
1100
+ }>;
1101
+ label: z.ZodDefault<z.ZodString>;
1102
+ labelDirection: z.ZodDefault<z.ZodEnum<{
1103
+ x: "x";
1104
+ y: "y";
1105
+ }>>;
1106
+ labelLevel: z.ZodDefault<z.ZodEnum<{
1107
+ small: "small";
1108
+ h1: "h1";
1109
+ h2: "h2";
1110
+ h3: "h3";
1111
+ h4: "h4";
1112
+ h5: "h5";
1113
+ p: "p";
1114
+ }>>;
1115
+ bounds: z.ZodPrefault<z.ZodObject<{
1116
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1117
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1118
+ }, z.core.$strip>>;
1119
+ manualBounds: z.ZodPrefault<z.ZodObject<{
1120
+ lower: z.ZodDefault<z.ZodBoolean>;
1121
+ upper: z.ZodDefault<z.ZodBoolean>;
1122
+ }, z.core.$strip>>;
1123
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
1124
+ type: z.ZodOptional<z.ZodEnum<{
1125
+ time: "time";
1126
+ linear: "linear";
1127
+ }>>;
1128
+ }, z.core.$strip>>;
1129
+ y4: z.ZodPrefault<z.ZodObject<{
1130
+ key: z.ZodEnum<{
1131
+ x1: "x1";
1132
+ x2: "x2";
1133
+ y1: "y1";
1134
+ y2: "y2";
1135
+ y3: "y3";
1136
+ y4: "y4";
1137
+ }>;
1138
+ label: z.ZodDefault<z.ZodString>;
1139
+ labelDirection: z.ZodDefault<z.ZodEnum<{
1140
+ x: "x";
1141
+ y: "y";
1142
+ }>>;
1143
+ labelLevel: z.ZodDefault<z.ZodEnum<{
1144
+ small: "small";
1145
+ h1: "h1";
1146
+ h2: "h2";
1147
+ h3: "h3";
1148
+ h4: "h4";
1149
+ h5: "h5";
1150
+ p: "p";
1151
+ }>>;
1152
+ bounds: z.ZodPrefault<z.ZodObject<{
1153
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1154
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1155
+ }, z.core.$strip>>;
1156
+ manualBounds: z.ZodPrefault<z.ZodObject<{
1157
+ lower: z.ZodDefault<z.ZodBoolean>;
1158
+ upper: z.ZodDefault<z.ZodBoolean>;
1159
+ }, z.core.$strip>>;
1160
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
1161
+ type: z.ZodOptional<z.ZodEnum<{
1162
+ time: "time";
1163
+ linear: "linear";
1164
+ }>>;
1165
+ }, z.core.$strip>>;
1166
+ }, z.core.$strip>>;
1167
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
1168
+ key: z.ZodString;
1169
+ label: z.ZodOptional<z.ZodString>;
1170
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1171
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1172
+ }, z.core.$strip>, z.ZodObject<{
1173
+ r: z.ZodInt;
1174
+ g: z.ZodInt;
1175
+ b: z.ZodInt;
1176
+ a: z.ZodNumber;
1177
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1178
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1179
+ }, z.core.$strip>, z.ZodObject<{
1180
+ r: z.ZodInt;
1181
+ g: z.ZodInt;
1182
+ b: z.ZodInt;
1183
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1184
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1185
+ rgba255: [number, number, number, number];
1186
+ } | {
1187
+ r: number;
1188
+ g: number;
1189
+ b: number;
1190
+ a: number;
1191
+ } | {
1192
+ rgba255: [number, number, number, number];
1193
+ } | {
1194
+ r: number;
1195
+ g: number;
1196
+ b: number;
1197
+ a: number;
1198
+ }>>>;
1199
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
1200
+ downsample: z.ZodDefault<z.ZodUInt32>;
1201
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
1202
+ average: "average";
1203
+ decimate: "decimate";
1204
+ }>>;
1205
+ }, z.core.$strip>>>;
1206
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
1207
+ key: z.ZodString;
1208
+ label: z.ZodString;
1209
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1210
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1211
+ }, z.core.$strip>, z.ZodObject<{
1212
+ r: z.ZodInt;
1213
+ g: z.ZodInt;
1214
+ b: z.ZodInt;
1215
+ a: z.ZodNumber;
1216
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1217
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1218
+ }, z.core.$strip>, z.ZodObject<{
1219
+ r: z.ZodInt;
1220
+ g: z.ZodInt;
1221
+ b: z.ZodInt;
1222
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1223
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1224
+ rgba255: [number, number, number, number];
1225
+ } | {
1226
+ r: number;
1227
+ g: number;
1228
+ b: number;
1229
+ a: number;
1230
+ } | {
1231
+ rgba255: [number, number, number, number];
1232
+ } | {
1233
+ r: number;
1234
+ g: number;
1235
+ b: number;
1236
+ a: number;
1237
+ }>>>;
1238
+ axis: z.ZodEnum<{
1239
+ x1: "x1";
1240
+ x2: "x2";
1241
+ y1: "y1";
1242
+ y2: "y2";
1243
+ y3: "y3";
1244
+ y4: "y4";
1245
+ }>;
1246
+ lineWidth: z.ZodDefault<z.ZodNumber>;
1247
+ lineDash: z.ZodDefault<z.ZodNumber>;
1248
+ units: z.ZodDefault<z.ZodString>;
1249
+ position: z.ZodNumber;
1250
+ }, z.core.$strip>>>;
1251
+ }, z.core.$strip>;
1252
+ }, z.core.$strip>;
1253
+ }, z.core.$strip>, z.ZodObject<{
1254
+ type: z.ZodLiteral<"rename">;
1255
+ rename: z.ZodObject<{
1256
+ name: z.ZodString;
1257
+ }, z.core.$strip>;
1258
+ }, z.core.$strip>, z.ZodObject<{
1259
+ type: z.ZodLiteral<"set_title_visible">;
1260
+ setTitleVisible: z.ZodObject<{
1261
+ visible: z.ZodBoolean;
1262
+ }, z.core.$strip>;
1263
+ }, z.core.$strip>, z.ZodObject<{
1264
+ type: z.ZodLiteral<"set_title_level">;
1265
+ setTitleLevel: z.ZodObject<{
1266
+ level: z.ZodEnum<{
1267
+ small: "small";
1268
+ h1: "h1";
1269
+ h2: "h2";
1270
+ h3: "h3";
1271
+ h4: "h4";
1272
+ h5: "h5";
1273
+ p: "p";
1274
+ }>;
1275
+ }, z.core.$strip>;
1276
+ }, z.core.$strip>, z.ZodObject<{
1277
+ type: z.ZodLiteral<"set_legend_hidden">;
1278
+ setLegendHidden: z.ZodObject<{
1279
+ hidden: z.ZodBoolean;
1280
+ }, z.core.$strip>;
1281
+ }, z.core.$strip>, z.ZodObject<{
1282
+ type: z.ZodLiteral<"set_legend_position">;
1283
+ setLegendPosition: z.ZodObject<{
1284
+ position: z.ZodObject<{
1285
+ x: z.ZodNumber;
1286
+ y: z.ZodNumber;
1287
+ root: z.ZodPrefault<z.ZodObject<{
1288
+ x: z.ZodEnum<{
1289
+ left: "left";
1290
+ right: "right";
1291
+ }>;
1292
+ y: z.ZodEnum<{
1293
+ top: "top";
1294
+ bottom: "bottom";
1295
+ }>;
1296
+ }, z.core.$strip>>;
1297
+ units: z.ZodPrefault<z.ZodObject<{
1298
+ x: z.ZodEnum<{
1299
+ px: "px";
1300
+ decimal: "decimal";
1301
+ }>;
1302
+ y: z.ZodEnum<{
1303
+ px: "px";
1304
+ decimal: "decimal";
1305
+ }>;
1306
+ }, z.core.$strip>>;
1307
+ }, z.core.$strip>;
1308
+ }, z.core.$strip>;
1309
+ }, z.core.$strip>, z.ZodObject<{
1310
+ type: z.ZodLiteral<"add_channel">;
1311
+ addChannel: z.ZodObject<{
1312
+ axisKey: z.ZodEnum<{
1313
+ y1: "y1";
1314
+ y2: "y2";
1315
+ y3: "y3";
1316
+ y4: "y4";
1317
+ }>;
1318
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1319
+ }, z.core.$strip>;
1320
+ }, z.core.$strip>, z.ZodObject<{
1321
+ type: z.ZodLiteral<"remove_channel">;
1322
+ removeChannel: z.ZodObject<{
1323
+ axisKey: z.ZodEnum<{
1324
+ y1: "y1";
1325
+ y2: "y2";
1326
+ y3: "y3";
1327
+ y4: "y4";
1328
+ }>;
1329
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1330
+ }, z.core.$strip>;
1331
+ }, z.core.$strip>, z.ZodObject<{
1332
+ type: z.ZodLiteral<"set_channels">;
1333
+ setChannels: z.ZodObject<{
1334
+ axisKey: z.ZodEnum<{
1335
+ y1: "y1";
1336
+ y2: "y2";
1337
+ y3: "y3";
1338
+ y4: "y4";
1339
+ }>;
1340
+ channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
1341
+ }, z.core.$strip>;
1342
+ }, z.core.$strip>, z.ZodObject<{
1343
+ type: z.ZodLiteral<"set_x_channel">;
1344
+ setXChannel: z.ZodObject<{
1345
+ axisKey: z.ZodEnum<{
1346
+ x1: "x1";
1347
+ x2: "x2";
1348
+ }>;
1349
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
1350
+ }, z.core.$strip>;
1351
+ }, z.core.$strip>, z.ZodObject<{
1352
+ type: z.ZodLiteral<"add_range">;
1353
+ addRange: z.ZodObject<{
1354
+ axisKey: z.ZodEnum<{
1355
+ x1: "x1";
1356
+ x2: "x2";
1357
+ }>;
1358
+ range: z.ZodString;
1359
+ }, z.core.$strip>;
1360
+ }, z.core.$strip>, z.ZodObject<{
1361
+ type: z.ZodLiteral<"remove_range">;
1362
+ removeRange: z.ZodObject<{
1363
+ axisKey: z.ZodEnum<{
1364
+ x1: "x1";
1365
+ x2: "x2";
1366
+ }>;
1367
+ range: z.ZodString;
1368
+ }, z.core.$strip>;
1369
+ }, z.core.$strip>, z.ZodObject<{
1370
+ type: z.ZodLiteral<"set_ranges">;
1371
+ setRanges: z.ZodObject<{
1372
+ axisKey: z.ZodEnum<{
1373
+ x1: "x1";
1374
+ x2: "x2";
1375
+ }>;
1376
+ ranges: z.ZodDefault<z.ZodArray<z.ZodString>>;
1377
+ }, z.core.$strip>;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ type: z.ZodLiteral<"set_axis_label">;
1380
+ setAxisLabel: z.ZodObject<{
1381
+ key: z.ZodEnum<{
1382
+ x1: "x1";
1383
+ x2: "x2";
1384
+ y1: "y1";
1385
+ y2: "y2";
1386
+ y3: "y3";
1387
+ y4: "y4";
1388
+ }>;
1389
+ label: z.ZodString;
1390
+ }, z.core.$strip>;
1391
+ }, z.core.$strip>, z.ZodObject<{
1392
+ type: z.ZodLiteral<"set_axis_label_direction">;
1393
+ setAxisLabelDirection: z.ZodObject<{
1394
+ key: z.ZodEnum<{
1395
+ x1: "x1";
1396
+ x2: "x2";
1397
+ y1: "y1";
1398
+ y2: "y2";
1399
+ y3: "y3";
1400
+ y4: "y4";
1401
+ }>;
1402
+ labelDirection: z.ZodEnum<{
1403
+ x: "x";
1404
+ y: "y";
1405
+ }>;
1406
+ }, z.core.$strip>;
1407
+ }, z.core.$strip>, z.ZodObject<{
1408
+ type: z.ZodLiteral<"set_axis_label_level">;
1409
+ setAxisLabelLevel: z.ZodObject<{
1410
+ key: z.ZodEnum<{
1411
+ x1: "x1";
1412
+ x2: "x2";
1413
+ y1: "y1";
1414
+ y2: "y2";
1415
+ y3: "y3";
1416
+ y4: "y4";
1417
+ }>;
1418
+ labelLevel: z.ZodEnum<{
1419
+ small: "small";
1420
+ h1: "h1";
1421
+ h2: "h2";
1422
+ h3: "h3";
1423
+ h4: "h4";
1424
+ h5: "h5";
1425
+ p: "p";
1426
+ }>;
1427
+ }, z.core.$strip>;
1428
+ }, z.core.$strip>, z.ZodObject<{
1429
+ type: z.ZodLiteral<"set_axis_bounds">;
1430
+ setAxisBounds: z.ZodObject<{
1431
+ key: z.ZodEnum<{
1432
+ x1: "x1";
1433
+ x2: "x2";
1434
+ y1: "y1";
1435
+ y2: "y2";
1436
+ y3: "y3";
1437
+ y4: "y4";
1438
+ }>;
1439
+ bounds: z.ZodObject<{
1440
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1441
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
1442
+ }, z.core.$strip>;
1443
+ manualBounds: z.ZodObject<{
1444
+ lower: z.ZodDefault<z.ZodBoolean>;
1445
+ upper: z.ZodDefault<z.ZodBoolean>;
1446
+ }, z.core.$strip>;
1447
+ }, z.core.$strip>;
1448
+ }, z.core.$strip>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"set_axis_tick_spacing">;
1450
+ setAxisTickSpacing: z.ZodObject<{
1451
+ key: z.ZodEnum<{
1452
+ x1: "x1";
1453
+ x2: "x2";
1454
+ y1: "y1";
1455
+ y2: "y2";
1456
+ y3: "y3";
1457
+ y4: "y4";
1458
+ }>;
1459
+ tickSpacing: z.ZodNumber;
1460
+ }, z.core.$strip>;
1461
+ }, z.core.$strip>, z.ZodObject<{
1462
+ type: z.ZodLiteral<"set_axis_type">;
1463
+ setAxisType: z.ZodObject<{
1464
+ key: z.ZodEnum<{
1465
+ x1: "x1";
1466
+ x2: "x2";
1467
+ y1: "y1";
1468
+ y2: "y2";
1469
+ y3: "y3";
1470
+ y4: "y4";
1471
+ }>;
1472
+ type: z.ZodOptional<z.ZodEnum<{
1473
+ time: "time";
1474
+ linear: "linear";
1475
+ }>>;
1476
+ }, z.core.$strip>;
1477
+ }, z.core.$strip>, z.ZodObject<{
1478
+ type: z.ZodLiteral<"set_line_label">;
1479
+ setLineLabel: z.ZodObject<{
1480
+ key: z.ZodString;
1481
+ label: z.ZodOptional<z.ZodString>;
1482
+ }, z.core.$strip>;
1483
+ }, z.core.$strip>, z.ZodObject<{
1484
+ type: z.ZodLiteral<"set_line_color">;
1485
+ setLineColor: z.ZodObject<{
1486
+ key: z.ZodString;
1487
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1488
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1489
+ }, z.core.$strip>, z.ZodObject<{
1490
+ r: z.ZodInt;
1491
+ g: z.ZodInt;
1492
+ b: z.ZodInt;
1493
+ a: z.ZodNumber;
1494
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1495
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ r: z.ZodInt;
1498
+ g: z.ZodInt;
1499
+ b: z.ZodInt;
1500
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1501
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1502
+ rgba255: [number, number, number, number];
1503
+ } | {
1504
+ r: number;
1505
+ g: number;
1506
+ b: number;
1507
+ a: number;
1508
+ } | {
1509
+ rgba255: [number, number, number, number];
1510
+ } | {
1511
+ r: number;
1512
+ g: number;
1513
+ b: number;
1514
+ a: number;
1515
+ }>>>;
1516
+ }, z.core.$strip>;
1517
+ }, z.core.$strip>, z.ZodObject<{
1518
+ type: z.ZodLiteral<"set_line_stroke_width">;
1519
+ setLineStrokeWidth: z.ZodObject<{
1520
+ key: z.ZodString;
1521
+ strokeWidth: z.ZodNumber;
1522
+ }, z.core.$strip>;
1523
+ }, z.core.$strip>, z.ZodObject<{
1524
+ type: z.ZodLiteral<"set_line_downsample">;
1525
+ setLineDownsample: z.ZodObject<{
1526
+ key: z.ZodString;
1527
+ downsample: z.ZodUInt32;
1528
+ }, z.core.$strip>;
1529
+ }, z.core.$strip>, z.ZodObject<{
1530
+ type: z.ZodLiteral<"set_line_downsample_mode">;
1531
+ setLineDownsampleMode: z.ZodObject<{
1532
+ key: z.ZodString;
1533
+ downsampleMode: z.ZodEnum<{
1534
+ average: "average";
1535
+ decimate: "decimate";
1536
+ }>;
1537
+ }, z.core.$strip>;
1538
+ }, z.core.$strip>, z.ZodObject<{
1539
+ type: z.ZodLiteral<"set_line">;
1540
+ setLine: z.ZodObject<{
1541
+ line: z.ZodObject<{
1542
+ key: z.ZodString;
1543
+ label: z.ZodOptional<z.ZodString>;
1544
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1545
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1546
+ }, z.core.$strip>, z.ZodObject<{
1547
+ r: z.ZodInt;
1548
+ g: z.ZodInt;
1549
+ b: z.ZodInt;
1550
+ a: z.ZodNumber;
1551
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1552
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1553
+ }, z.core.$strip>, z.ZodObject<{
1554
+ r: z.ZodInt;
1555
+ g: z.ZodInt;
1556
+ b: z.ZodInt;
1557
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1558
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1559
+ rgba255: [number, number, number, number];
1560
+ } | {
1561
+ r: number;
1562
+ g: number;
1563
+ b: number;
1564
+ a: number;
1565
+ } | {
1566
+ rgba255: [number, number, number, number];
1567
+ } | {
1568
+ r: number;
1569
+ g: number;
1570
+ b: number;
1571
+ a: number;
1572
+ }>>>;
1573
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
1574
+ downsample: z.ZodDefault<z.ZodUInt32>;
1575
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
1576
+ average: "average";
1577
+ decimate: "decimate";
1578
+ }>>;
1579
+ }, z.core.$strip>;
1580
+ }, z.core.$strip>;
1581
+ }, z.core.$strip>, z.ZodObject<{
1582
+ type: z.ZodLiteral<"set_rule">;
1583
+ setRule: z.ZodObject<{
1584
+ rule: z.ZodObject<{
1585
+ key: z.ZodString;
1586
+ label: z.ZodString;
1587
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1588
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1589
+ }, z.core.$strip>, z.ZodObject<{
1590
+ r: z.ZodInt;
1591
+ g: z.ZodInt;
1592
+ b: z.ZodInt;
1593
+ a: z.ZodNumber;
1594
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1595
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1596
+ }, z.core.$strip>, z.ZodObject<{
1597
+ r: z.ZodInt;
1598
+ g: z.ZodInt;
1599
+ b: z.ZodInt;
1600
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1601
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1602
+ rgba255: [number, number, number, number];
1603
+ } | {
1604
+ r: number;
1605
+ g: number;
1606
+ b: number;
1607
+ a: number;
1608
+ } | {
1609
+ rgba255: [number, number, number, number];
1610
+ } | {
1611
+ r: number;
1612
+ g: number;
1613
+ b: number;
1614
+ a: number;
1615
+ }>>>;
1616
+ axis: z.ZodEnum<{
1617
+ x1: "x1";
1618
+ x2: "x2";
1619
+ y1: "y1";
1620
+ y2: "y2";
1621
+ y3: "y3";
1622
+ y4: "y4";
1623
+ }>;
1624
+ lineWidth: z.ZodDefault<z.ZodNumber>;
1625
+ lineDash: z.ZodDefault<z.ZodNumber>;
1626
+ units: z.ZodDefault<z.ZodString>;
1627
+ position: z.ZodNumber;
1628
+ }, z.core.$strip>;
1629
+ }, z.core.$strip>;
1630
+ }, z.core.$strip>, z.ZodObject<{
1631
+ type: z.ZodLiteral<"set_rule_label">;
1632
+ setRuleLabel: z.ZodObject<{
1633
+ key: z.ZodString;
1634
+ label: z.ZodString;
1635
+ }, z.core.$strip>;
1636
+ }, z.core.$strip>, z.ZodObject<{
1637
+ type: z.ZodLiteral<"set_rule_color">;
1638
+ setRuleColor: z.ZodObject<{
1639
+ key: z.ZodString;
1640
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
1641
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
1642
+ }, z.core.$strip>, z.ZodObject<{
1643
+ r: z.ZodInt;
1644
+ g: z.ZodInt;
1645
+ b: z.ZodInt;
1646
+ a: z.ZodNumber;
1647
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
1648
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
1649
+ }, z.core.$strip>, z.ZodObject<{
1650
+ r: z.ZodInt;
1651
+ g: z.ZodInt;
1652
+ b: z.ZodInt;
1653
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
1654
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
1655
+ rgba255: [number, number, number, number];
1656
+ } | {
1657
+ r: number;
1658
+ g: number;
1659
+ b: number;
1660
+ a: number;
1661
+ } | {
1662
+ rgba255: [number, number, number, number];
1663
+ } | {
1664
+ r: number;
1665
+ g: number;
1666
+ b: number;
1667
+ a: number;
1668
+ }>>>;
1669
+ }, z.core.$strip>;
1670
+ }, z.core.$strip>, z.ZodObject<{
1671
+ type: z.ZodLiteral<"set_rule_axis">;
1672
+ setRuleAxis: z.ZodObject<{
1673
+ key: z.ZodString;
1674
+ axis: z.ZodEnum<{
1675
+ x1: "x1";
1676
+ x2: "x2";
1677
+ y1: "y1";
1678
+ y2: "y2";
1679
+ y3: "y3";
1680
+ y4: "y4";
1681
+ }>;
1682
+ }, z.core.$strip>;
1683
+ }, z.core.$strip>, z.ZodObject<{
1684
+ type: z.ZodLiteral<"set_rule_line_width">;
1685
+ setRuleLineWidth: z.ZodObject<{
1686
+ key: z.ZodString;
1687
+ lineWidth: z.ZodNumber;
1688
+ }, z.core.$strip>;
1689
+ }, z.core.$strip>, z.ZodObject<{
1690
+ type: z.ZodLiteral<"set_rule_line_dash">;
1691
+ setRuleLineDash: z.ZodObject<{
1692
+ key: z.ZodString;
1693
+ lineDash: z.ZodNumber;
1694
+ }, z.core.$strip>;
1695
+ }, z.core.$strip>, z.ZodObject<{
1696
+ type: z.ZodLiteral<"set_rule_units">;
1697
+ setRuleUnits: z.ZodObject<{
1698
+ key: z.ZodString;
1699
+ units: z.ZodString;
1700
+ }, z.core.$strip>;
1701
+ }, z.core.$strip>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"set_rule_position">;
1703
+ setRulePosition: z.ZodObject<{
1704
+ key: z.ZodString;
1705
+ position: z.ZodNumber;
1706
+ }, z.core.$strip>;
1707
+ }, z.core.$strip>, z.ZodObject<{
1708
+ type: z.ZodLiteral<"remove_rule">;
1709
+ removeRule: z.ZodObject<{
1710
+ key: z.ZodString;
1711
+ }, z.core.$strip>;
1712
+ }, z.core.$strip>], "type">;
1713
+ export type Action = z.infer<typeof actionZ>;
1714
+ export declare const create: (payload: z.input<typeof createPayloadZ>) => Action;
1715
+ export declare const rename: (payload: z.input<typeof renamePayloadZ>) => Action;
1716
+ export declare const setTitleVisible: (payload: z.input<typeof setTitleVisiblePayloadZ>) => Action;
1717
+ export declare const setTitleLevel: (payload: z.input<typeof setTitleLevelPayloadZ>) => Action;
1718
+ export declare const setLegendHidden: (payload: z.input<typeof setLegendHiddenPayloadZ>) => Action;
1719
+ export declare const setLegendPosition: (payload: z.input<typeof setLegendPositionPayloadZ>) => Action;
1720
+ export declare const addChannel: (payload: z.input<typeof addChannelPayloadZ>) => Action;
1721
+ export declare const removeChannel: (payload: z.input<typeof removeChannelPayloadZ>) => Action;
1722
+ export declare const setChannels: (payload: z.input<typeof setChannelsPayloadZ>) => Action;
1723
+ export declare const setXChannel: (payload: z.input<typeof setXChannelPayloadZ>) => Action;
1724
+ export declare const addRange: (payload: z.input<typeof addRangePayloadZ>) => Action;
1725
+ export declare const removeRange: (payload: z.input<typeof removeRangePayloadZ>) => Action;
1726
+ export declare const setRanges: (payload: z.input<typeof setRangesPayloadZ>) => Action;
1727
+ export declare const setAxisLabel: (payload: z.input<typeof setAxisLabelPayloadZ>) => Action;
1728
+ export declare const setAxisLabelDirection: (payload: z.input<typeof setAxisLabelDirectionPayloadZ>) => Action;
1729
+ export declare const setAxisLabelLevel: (payload: z.input<typeof setAxisLabelLevelPayloadZ>) => Action;
1730
+ export declare const setAxisBounds: (payload: z.input<typeof setAxisBoundsPayloadZ>) => Action;
1731
+ export declare const setAxisTickSpacing: (payload: z.input<typeof setAxisTickSpacingPayloadZ>) => Action;
1732
+ export declare const setAxisType: (payload: z.input<typeof setAxisTypePayloadZ>) => Action;
1733
+ export declare const setLineLabel: (payload: z.input<typeof setLineLabelPayloadZ>) => Action;
1734
+ export declare const setLineColor: (payload: z.input<typeof setLineColorPayloadZ>) => Action;
1735
+ export declare const setLineStrokeWidth: (payload: z.input<typeof setLineStrokeWidthPayloadZ>) => Action;
1736
+ export declare const setLineDownsample: (payload: z.input<typeof setLineDownsamplePayloadZ>) => Action;
1737
+ export declare const setLineDownsampleMode: (payload: z.input<typeof setLineDownsampleModePayloadZ>) => Action;
1738
+ export declare const setLine: (payload: z.input<typeof setLinePayloadZ>) => Action;
1739
+ export declare const setRule: (payload: z.input<typeof setRulePayloadZ>) => Action;
1740
+ export declare const setRuleLabel: (payload: z.input<typeof setRuleLabelPayloadZ>) => Action;
1741
+ export declare const setRuleColor: (payload: z.input<typeof setRuleColorPayloadZ>) => Action;
1742
+ export declare const setRuleAxis: (payload: z.input<typeof setRuleAxisPayloadZ>) => Action;
1743
+ export declare const setRuleLineWidth: (payload: z.input<typeof setRuleLineWidthPayloadZ>) => Action;
1744
+ export declare const setRuleLineDash: (payload: z.input<typeof setRuleLineDashPayloadZ>) => Action;
1745
+ export declare const setRuleUnits: (payload: z.input<typeof setRuleUnitsPayloadZ>) => Action;
1746
+ export declare const setRulePosition: (payload: z.input<typeof setRulePositionPayloadZ>) => Action;
1747
+ export declare const removeRule: (payload: z.input<typeof removeRulePayloadZ>) => Action;
1748
+ export type HandlerResult = actions.HandlerResult<Action>;
1749
+ export type ReduceAllResult = actions.ReduceAllResult<LinePlot, Action>;
1750
+ export interface Handlers {
1751
+ create: (state: Draft<LinePlot>, payload: CreatePayload) => HandlerResult;
1752
+ rename: (state: Draft<LinePlot>, payload: RenamePayload) => HandlerResult;
1753
+ setTitleVisible: (state: Draft<LinePlot>, payload: SetTitleVisiblePayload) => HandlerResult;
1754
+ setTitleLevel: (state: Draft<LinePlot>, payload: SetTitleLevelPayload) => HandlerResult;
1755
+ setLegendHidden: (state: Draft<LinePlot>, payload: SetLegendHiddenPayload) => HandlerResult;
1756
+ setLegendPosition: (state: Draft<LinePlot>, payload: SetLegendPositionPayload) => HandlerResult;
1757
+ addChannel: (state: Draft<LinePlot>, payload: AddChannelPayload) => HandlerResult;
1758
+ removeChannel: (state: Draft<LinePlot>, payload: RemoveChannelPayload) => HandlerResult;
1759
+ setChannels: (state: Draft<LinePlot>, payload: SetChannelsPayload) => HandlerResult;
1760
+ setXChannel: (state: Draft<LinePlot>, payload: SetXChannelPayload) => HandlerResult;
1761
+ addRange: (state: Draft<LinePlot>, payload: AddRangePayload) => HandlerResult;
1762
+ removeRange: (state: Draft<LinePlot>, payload: RemoveRangePayload) => HandlerResult;
1763
+ setRanges: (state: Draft<LinePlot>, payload: SetRangesPayload) => HandlerResult;
1764
+ setAxisLabel: (state: Draft<LinePlot>, payload: SetAxisLabelPayload) => HandlerResult;
1765
+ setAxisLabelDirection: (state: Draft<LinePlot>, payload: SetAxisLabelDirectionPayload) => HandlerResult;
1766
+ setAxisLabelLevel: (state: Draft<LinePlot>, payload: SetAxisLabelLevelPayload) => HandlerResult;
1767
+ setAxisBounds: (state: Draft<LinePlot>, payload: SetAxisBoundsPayload) => HandlerResult;
1768
+ setAxisTickSpacing: (state: Draft<LinePlot>, payload: SetAxisTickSpacingPayload) => HandlerResult;
1769
+ setAxisType: (state: Draft<LinePlot>, payload: SetAxisTypePayload) => HandlerResult;
1770
+ setLineLabel: (state: Draft<LinePlot>, payload: SetLineLabelPayload) => HandlerResult;
1771
+ setLineColor: (state: Draft<LinePlot>, payload: SetLineColorPayload) => HandlerResult;
1772
+ setLineStrokeWidth: (state: Draft<LinePlot>, payload: SetLineStrokeWidthPayload) => HandlerResult;
1773
+ setLineDownsample: (state: Draft<LinePlot>, payload: SetLineDownsamplePayload) => HandlerResult;
1774
+ setLineDownsampleMode: (state: Draft<LinePlot>, payload: SetLineDownsampleModePayload) => HandlerResult;
1775
+ setLine: (state: Draft<LinePlot>, payload: SetLinePayload) => HandlerResult;
1776
+ setRule: (state: Draft<LinePlot>, payload: SetRulePayload) => HandlerResult;
1777
+ setRuleLabel: (state: Draft<LinePlot>, payload: SetRuleLabelPayload) => HandlerResult;
1778
+ setRuleColor: (state: Draft<LinePlot>, payload: SetRuleColorPayload) => HandlerResult;
1779
+ setRuleAxis: (state: Draft<LinePlot>, payload: SetRuleAxisPayload) => HandlerResult;
1780
+ setRuleLineWidth: (state: Draft<LinePlot>, payload: SetRuleLineWidthPayload) => HandlerResult;
1781
+ setRuleLineDash: (state: Draft<LinePlot>, payload: SetRuleLineDashPayload) => HandlerResult;
1782
+ setRuleUnits: (state: Draft<LinePlot>, payload: SetRuleUnitsPayload) => HandlerResult;
1783
+ setRulePosition: (state: Draft<LinePlot>, payload: SetRulePositionPayload) => HandlerResult;
1784
+ removeRule: (state: Draft<LinePlot>, payload: RemoveRulePayload) => HandlerResult;
1785
+ }
1786
+ export declare const createReduceAll: (handlers: Handlers) => (state: LinePlot, actions: ({
1787
+ type: "create";
1788
+ create: {
1789
+ linePlot: {
1790
+ key: string;
1791
+ name: string;
1792
+ title: {
1793
+ level: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1794
+ visible: boolean;
1795
+ };
1796
+ legend: {
1797
+ hidden: boolean;
1798
+ position: {
1799
+ x: number;
1800
+ y: number;
1801
+ root: {
1802
+ x: "left" | "right";
1803
+ y: "top" | "bottom";
1804
+ };
1805
+ units: {
1806
+ x: "px" | "decimal";
1807
+ y: "px" | "decimal";
1808
+ };
1809
+ };
1810
+ };
1811
+ channels: {
1812
+ x1: number;
1813
+ x2: number;
1814
+ y1: number[];
1815
+ y2: number[];
1816
+ y3: number[];
1817
+ y4: number[];
1818
+ };
1819
+ ranges: {
1820
+ x1: string[];
1821
+ x2: string[];
1822
+ };
1823
+ axes: {
1824
+ x1: {
1825
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1826
+ label: string;
1827
+ labelDirection: "x" | "y";
1828
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1829
+ bounds: {
1830
+ lower: number;
1831
+ upper: number;
1832
+ };
1833
+ manualBounds: {
1834
+ lower: boolean;
1835
+ upper: boolean;
1836
+ };
1837
+ tickSpacing: number;
1838
+ type?: "time" | "linear" | undefined;
1839
+ };
1840
+ x2: {
1841
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1842
+ label: string;
1843
+ labelDirection: "x" | "y";
1844
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1845
+ bounds: {
1846
+ lower: number;
1847
+ upper: number;
1848
+ };
1849
+ manualBounds: {
1850
+ lower: boolean;
1851
+ upper: boolean;
1852
+ };
1853
+ tickSpacing: number;
1854
+ type?: "time" | "linear" | undefined;
1855
+ };
1856
+ y1: {
1857
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1858
+ label: string;
1859
+ labelDirection: "x" | "y";
1860
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1861
+ bounds: {
1862
+ lower: number;
1863
+ upper: number;
1864
+ };
1865
+ manualBounds: {
1866
+ lower: boolean;
1867
+ upper: boolean;
1868
+ };
1869
+ tickSpacing: number;
1870
+ type?: "time" | "linear" | undefined;
1871
+ };
1872
+ y2: {
1873
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1874
+ label: string;
1875
+ labelDirection: "x" | "y";
1876
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1877
+ bounds: {
1878
+ lower: number;
1879
+ upper: number;
1880
+ };
1881
+ manualBounds: {
1882
+ lower: boolean;
1883
+ upper: boolean;
1884
+ };
1885
+ tickSpacing: number;
1886
+ type?: "time" | "linear" | undefined;
1887
+ };
1888
+ y3: {
1889
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1890
+ label: string;
1891
+ labelDirection: "x" | "y";
1892
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1893
+ bounds: {
1894
+ lower: number;
1895
+ upper: number;
1896
+ };
1897
+ manualBounds: {
1898
+ lower: boolean;
1899
+ upper: boolean;
1900
+ };
1901
+ tickSpacing: number;
1902
+ type?: "time" | "linear" | undefined;
1903
+ };
1904
+ y4: {
1905
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1906
+ label: string;
1907
+ labelDirection: "x" | "y";
1908
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1909
+ bounds: {
1910
+ lower: number;
1911
+ upper: number;
1912
+ };
1913
+ manualBounds: {
1914
+ lower: boolean;
1915
+ upper: boolean;
1916
+ };
1917
+ tickSpacing: number;
1918
+ type?: "time" | "linear" | undefined;
1919
+ };
1920
+ };
1921
+ lines: {
1922
+ key: string;
1923
+ strokeWidth: number;
1924
+ downsample: number;
1925
+ downsampleMode: "average" | "decimate";
1926
+ label?: string | undefined;
1927
+ color?: [number, number, number, number] | undefined;
1928
+ }[];
1929
+ rules: {
1930
+ key: string;
1931
+ label: string;
1932
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
1933
+ lineWidth: number;
1934
+ lineDash: number;
1935
+ units: string;
1936
+ position: number;
1937
+ color?: [number, number, number, number] | undefined;
1938
+ }[];
1939
+ };
1940
+ };
1941
+ } | {
1942
+ type: "rename";
1943
+ rename: {
1944
+ name: string;
1945
+ };
1946
+ } | {
1947
+ type: "set_title_visible";
1948
+ setTitleVisible: {
1949
+ visible: boolean;
1950
+ };
1951
+ } | {
1952
+ type: "set_title_level";
1953
+ setTitleLevel: {
1954
+ level: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
1955
+ };
1956
+ } | {
1957
+ type: "set_legend_hidden";
1958
+ setLegendHidden: {
1959
+ hidden: boolean;
1960
+ };
1961
+ } | {
1962
+ type: "set_legend_position";
1963
+ setLegendPosition: {
1964
+ position: {
1965
+ x: number;
1966
+ y: number;
1967
+ root: {
1968
+ x: "left" | "right";
1969
+ y: "top" | "bottom";
1970
+ };
1971
+ units: {
1972
+ x: "px" | "decimal";
1973
+ y: "px" | "decimal";
1974
+ };
1975
+ };
1976
+ };
1977
+ } | {
1978
+ type: "add_channel";
1979
+ addChannel: {
1980
+ axisKey: "y1" | "y2" | "y3" | "y4";
1981
+ channel: number;
1982
+ };
1983
+ } | {
1984
+ type: "remove_channel";
1985
+ removeChannel: {
1986
+ axisKey: "y1" | "y2" | "y3" | "y4";
1987
+ channel: number;
1988
+ };
1989
+ } | {
1990
+ type: "set_channels";
1991
+ setChannels: {
1992
+ axisKey: "y1" | "y2" | "y3" | "y4";
1993
+ channels: number[];
1994
+ };
1995
+ } | {
1996
+ type: "set_x_channel";
1997
+ setXChannel: {
1998
+ axisKey: "x1" | "x2";
1999
+ channel: number;
2000
+ };
2001
+ } | {
2002
+ type: "add_range";
2003
+ addRange: {
2004
+ axisKey: "x1" | "x2";
2005
+ range: string;
2006
+ };
2007
+ } | {
2008
+ type: "remove_range";
2009
+ removeRange: {
2010
+ axisKey: "x1" | "x2";
2011
+ range: string;
2012
+ };
2013
+ } | {
2014
+ type: "set_ranges";
2015
+ setRanges: {
2016
+ axisKey: "x1" | "x2";
2017
+ ranges: string[];
2018
+ };
2019
+ } | {
2020
+ type: "set_axis_label";
2021
+ setAxisLabel: {
2022
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2023
+ label: string;
2024
+ };
2025
+ } | {
2026
+ type: "set_axis_label_direction";
2027
+ setAxisLabelDirection: {
2028
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2029
+ labelDirection: "x" | "y";
2030
+ };
2031
+ } | {
2032
+ type: "set_axis_label_level";
2033
+ setAxisLabelLevel: {
2034
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2035
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2036
+ };
2037
+ } | {
2038
+ type: "set_axis_bounds";
2039
+ setAxisBounds: {
2040
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2041
+ bounds: {
2042
+ lower: number;
2043
+ upper: number;
2044
+ };
2045
+ manualBounds: {
2046
+ lower: boolean;
2047
+ upper: boolean;
2048
+ };
2049
+ };
2050
+ } | {
2051
+ type: "set_axis_tick_spacing";
2052
+ setAxisTickSpacing: {
2053
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2054
+ tickSpacing: number;
2055
+ };
2056
+ } | {
2057
+ type: "set_axis_type";
2058
+ setAxisType: {
2059
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2060
+ type?: "time" | "linear" | undefined;
2061
+ };
2062
+ } | {
2063
+ type: "set_line_label";
2064
+ setLineLabel: {
2065
+ key: string;
2066
+ label?: string | undefined;
2067
+ };
2068
+ } | {
2069
+ type: "set_line_color";
2070
+ setLineColor: {
2071
+ key: string;
2072
+ color?: [number, number, number, number] | undefined;
2073
+ };
2074
+ } | {
2075
+ type: "set_line_stroke_width";
2076
+ setLineStrokeWidth: {
2077
+ key: string;
2078
+ strokeWidth: number;
2079
+ };
2080
+ } | {
2081
+ type: "set_line_downsample";
2082
+ setLineDownsample: {
2083
+ key: string;
2084
+ downsample: number;
2085
+ };
2086
+ } | {
2087
+ type: "set_line_downsample_mode";
2088
+ setLineDownsampleMode: {
2089
+ key: string;
2090
+ downsampleMode: "average" | "decimate";
2091
+ };
2092
+ } | {
2093
+ type: "set_line";
2094
+ setLine: {
2095
+ line: {
2096
+ key: string;
2097
+ strokeWidth: number;
2098
+ downsample: number;
2099
+ downsampleMode: "average" | "decimate";
2100
+ label?: string | undefined;
2101
+ color?: [number, number, number, number] | undefined;
2102
+ };
2103
+ };
2104
+ } | {
2105
+ type: "set_rule";
2106
+ setRule: {
2107
+ rule: {
2108
+ key: string;
2109
+ label: string;
2110
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2111
+ lineWidth: number;
2112
+ lineDash: number;
2113
+ units: string;
2114
+ position: number;
2115
+ color?: [number, number, number, number] | undefined;
2116
+ };
2117
+ };
2118
+ } | {
2119
+ type: "set_rule_label";
2120
+ setRuleLabel: {
2121
+ key: string;
2122
+ label: string;
2123
+ };
2124
+ } | {
2125
+ type: "set_rule_color";
2126
+ setRuleColor: {
2127
+ key: string;
2128
+ color?: [number, number, number, number] | undefined;
2129
+ };
2130
+ } | {
2131
+ type: "set_rule_axis";
2132
+ setRuleAxis: {
2133
+ key: string;
2134
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2135
+ };
2136
+ } | {
2137
+ type: "set_rule_line_width";
2138
+ setRuleLineWidth: {
2139
+ key: string;
2140
+ lineWidth: number;
2141
+ };
2142
+ } | {
2143
+ type: "set_rule_line_dash";
2144
+ setRuleLineDash: {
2145
+ key: string;
2146
+ lineDash: number;
2147
+ };
2148
+ } | {
2149
+ type: "set_rule_units";
2150
+ setRuleUnits: {
2151
+ key: string;
2152
+ units: string;
2153
+ };
2154
+ } | {
2155
+ type: "set_rule_position";
2156
+ setRulePosition: {
2157
+ key: string;
2158
+ position: number;
2159
+ };
2160
+ } | {
2161
+ type: "remove_rule";
2162
+ removeRule: {
2163
+ key: string;
2164
+ };
2165
+ })[]) => actions.ReduceAllResult<LinePlot, {
2166
+ type: "create";
2167
+ create: {
2168
+ linePlot: {
2169
+ key: string;
2170
+ name: string;
2171
+ title: {
2172
+ level: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2173
+ visible: boolean;
2174
+ };
2175
+ legend: {
2176
+ hidden: boolean;
2177
+ position: {
2178
+ x: number;
2179
+ y: number;
2180
+ root: {
2181
+ x: "left" | "right";
2182
+ y: "top" | "bottom";
2183
+ };
2184
+ units: {
2185
+ x: "px" | "decimal";
2186
+ y: "px" | "decimal";
2187
+ };
2188
+ };
2189
+ };
2190
+ channels: {
2191
+ x1: number;
2192
+ x2: number;
2193
+ y1: number[];
2194
+ y2: number[];
2195
+ y3: number[];
2196
+ y4: number[];
2197
+ };
2198
+ ranges: {
2199
+ x1: string[];
2200
+ x2: string[];
2201
+ };
2202
+ axes: {
2203
+ x1: {
2204
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2205
+ label: string;
2206
+ labelDirection: "x" | "y";
2207
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2208
+ bounds: {
2209
+ lower: number;
2210
+ upper: number;
2211
+ };
2212
+ manualBounds: {
2213
+ lower: boolean;
2214
+ upper: boolean;
2215
+ };
2216
+ tickSpacing: number;
2217
+ type?: "time" | "linear" | undefined;
2218
+ };
2219
+ x2: {
2220
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2221
+ label: string;
2222
+ labelDirection: "x" | "y";
2223
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2224
+ bounds: {
2225
+ lower: number;
2226
+ upper: number;
2227
+ };
2228
+ manualBounds: {
2229
+ lower: boolean;
2230
+ upper: boolean;
2231
+ };
2232
+ tickSpacing: number;
2233
+ type?: "time" | "linear" | undefined;
2234
+ };
2235
+ y1: {
2236
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2237
+ label: string;
2238
+ labelDirection: "x" | "y";
2239
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2240
+ bounds: {
2241
+ lower: number;
2242
+ upper: number;
2243
+ };
2244
+ manualBounds: {
2245
+ lower: boolean;
2246
+ upper: boolean;
2247
+ };
2248
+ tickSpacing: number;
2249
+ type?: "time" | "linear" | undefined;
2250
+ };
2251
+ y2: {
2252
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2253
+ label: string;
2254
+ labelDirection: "x" | "y";
2255
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2256
+ bounds: {
2257
+ lower: number;
2258
+ upper: number;
2259
+ };
2260
+ manualBounds: {
2261
+ lower: boolean;
2262
+ upper: boolean;
2263
+ };
2264
+ tickSpacing: number;
2265
+ type?: "time" | "linear" | undefined;
2266
+ };
2267
+ y3: {
2268
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2269
+ label: string;
2270
+ labelDirection: "x" | "y";
2271
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2272
+ bounds: {
2273
+ lower: number;
2274
+ upper: number;
2275
+ };
2276
+ manualBounds: {
2277
+ lower: boolean;
2278
+ upper: boolean;
2279
+ };
2280
+ tickSpacing: number;
2281
+ type?: "time" | "linear" | undefined;
2282
+ };
2283
+ y4: {
2284
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2285
+ label: string;
2286
+ labelDirection: "x" | "y";
2287
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2288
+ bounds: {
2289
+ lower: number;
2290
+ upper: number;
2291
+ };
2292
+ manualBounds: {
2293
+ lower: boolean;
2294
+ upper: boolean;
2295
+ };
2296
+ tickSpacing: number;
2297
+ type?: "time" | "linear" | undefined;
2298
+ };
2299
+ };
2300
+ lines: {
2301
+ key: string;
2302
+ strokeWidth: number;
2303
+ downsample: number;
2304
+ downsampleMode: "average" | "decimate";
2305
+ label?: string | undefined;
2306
+ color?: [number, number, number, number] | undefined;
2307
+ }[];
2308
+ rules: {
2309
+ key: string;
2310
+ label: string;
2311
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2312
+ lineWidth: number;
2313
+ lineDash: number;
2314
+ units: string;
2315
+ position: number;
2316
+ color?: [number, number, number, number] | undefined;
2317
+ }[];
2318
+ };
2319
+ };
2320
+ } | {
2321
+ type: "rename";
2322
+ rename: {
2323
+ name: string;
2324
+ };
2325
+ } | {
2326
+ type: "set_title_visible";
2327
+ setTitleVisible: {
2328
+ visible: boolean;
2329
+ };
2330
+ } | {
2331
+ type: "set_title_level";
2332
+ setTitleLevel: {
2333
+ level: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2334
+ };
2335
+ } | {
2336
+ type: "set_legend_hidden";
2337
+ setLegendHidden: {
2338
+ hidden: boolean;
2339
+ };
2340
+ } | {
2341
+ type: "set_legend_position";
2342
+ setLegendPosition: {
2343
+ position: {
2344
+ x: number;
2345
+ y: number;
2346
+ root: {
2347
+ x: "left" | "right";
2348
+ y: "top" | "bottom";
2349
+ };
2350
+ units: {
2351
+ x: "px" | "decimal";
2352
+ y: "px" | "decimal";
2353
+ };
2354
+ };
2355
+ };
2356
+ } | {
2357
+ type: "add_channel";
2358
+ addChannel: {
2359
+ axisKey: "y1" | "y2" | "y3" | "y4";
2360
+ channel: number;
2361
+ };
2362
+ } | {
2363
+ type: "remove_channel";
2364
+ removeChannel: {
2365
+ axisKey: "y1" | "y2" | "y3" | "y4";
2366
+ channel: number;
2367
+ };
2368
+ } | {
2369
+ type: "set_channels";
2370
+ setChannels: {
2371
+ axisKey: "y1" | "y2" | "y3" | "y4";
2372
+ channels: number[];
2373
+ };
2374
+ } | {
2375
+ type: "set_x_channel";
2376
+ setXChannel: {
2377
+ axisKey: "x1" | "x2";
2378
+ channel: number;
2379
+ };
2380
+ } | {
2381
+ type: "add_range";
2382
+ addRange: {
2383
+ axisKey: "x1" | "x2";
2384
+ range: string;
2385
+ };
2386
+ } | {
2387
+ type: "remove_range";
2388
+ removeRange: {
2389
+ axisKey: "x1" | "x2";
2390
+ range: string;
2391
+ };
2392
+ } | {
2393
+ type: "set_ranges";
2394
+ setRanges: {
2395
+ axisKey: "x1" | "x2";
2396
+ ranges: string[];
2397
+ };
2398
+ } | {
2399
+ type: "set_axis_label";
2400
+ setAxisLabel: {
2401
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2402
+ label: string;
2403
+ };
2404
+ } | {
2405
+ type: "set_axis_label_direction";
2406
+ setAxisLabelDirection: {
2407
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2408
+ labelDirection: "x" | "y";
2409
+ };
2410
+ } | {
2411
+ type: "set_axis_label_level";
2412
+ setAxisLabelLevel: {
2413
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2414
+ labelLevel: "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "p";
2415
+ };
2416
+ } | {
2417
+ type: "set_axis_bounds";
2418
+ setAxisBounds: {
2419
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2420
+ bounds: {
2421
+ lower: number;
2422
+ upper: number;
2423
+ };
2424
+ manualBounds: {
2425
+ lower: boolean;
2426
+ upper: boolean;
2427
+ };
2428
+ };
2429
+ } | {
2430
+ type: "set_axis_tick_spacing";
2431
+ setAxisTickSpacing: {
2432
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2433
+ tickSpacing: number;
2434
+ };
2435
+ } | {
2436
+ type: "set_axis_type";
2437
+ setAxisType: {
2438
+ key: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2439
+ type?: "time" | "linear" | undefined;
2440
+ };
2441
+ } | {
2442
+ type: "set_line_label";
2443
+ setLineLabel: {
2444
+ key: string;
2445
+ label?: string | undefined;
2446
+ };
2447
+ } | {
2448
+ type: "set_line_color";
2449
+ setLineColor: {
2450
+ key: string;
2451
+ color?: [number, number, number, number] | undefined;
2452
+ };
2453
+ } | {
2454
+ type: "set_line_stroke_width";
2455
+ setLineStrokeWidth: {
2456
+ key: string;
2457
+ strokeWidth: number;
2458
+ };
2459
+ } | {
2460
+ type: "set_line_downsample";
2461
+ setLineDownsample: {
2462
+ key: string;
2463
+ downsample: number;
2464
+ };
2465
+ } | {
2466
+ type: "set_line_downsample_mode";
2467
+ setLineDownsampleMode: {
2468
+ key: string;
2469
+ downsampleMode: "average" | "decimate";
2470
+ };
2471
+ } | {
2472
+ type: "set_line";
2473
+ setLine: {
2474
+ line: {
2475
+ key: string;
2476
+ strokeWidth: number;
2477
+ downsample: number;
2478
+ downsampleMode: "average" | "decimate";
2479
+ label?: string | undefined;
2480
+ color?: [number, number, number, number] | undefined;
2481
+ };
2482
+ };
2483
+ } | {
2484
+ type: "set_rule";
2485
+ setRule: {
2486
+ rule: {
2487
+ key: string;
2488
+ label: string;
2489
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2490
+ lineWidth: number;
2491
+ lineDash: number;
2492
+ units: string;
2493
+ position: number;
2494
+ color?: [number, number, number, number] | undefined;
2495
+ };
2496
+ };
2497
+ } | {
2498
+ type: "set_rule_label";
2499
+ setRuleLabel: {
2500
+ key: string;
2501
+ label: string;
2502
+ };
2503
+ } | {
2504
+ type: "set_rule_color";
2505
+ setRuleColor: {
2506
+ key: string;
2507
+ color?: [number, number, number, number] | undefined;
2508
+ };
2509
+ } | {
2510
+ type: "set_rule_axis";
2511
+ setRuleAxis: {
2512
+ key: string;
2513
+ axis: "x1" | "x2" | "y1" | "y2" | "y3" | "y4";
2514
+ };
2515
+ } | {
2516
+ type: "set_rule_line_width";
2517
+ setRuleLineWidth: {
2518
+ key: string;
2519
+ lineWidth: number;
2520
+ };
2521
+ } | {
2522
+ type: "set_rule_line_dash";
2523
+ setRuleLineDash: {
2524
+ key: string;
2525
+ lineDash: number;
2526
+ };
2527
+ } | {
2528
+ type: "set_rule_units";
2529
+ setRuleUnits: {
2530
+ key: string;
2531
+ units: string;
2532
+ };
2533
+ } | {
2534
+ type: "set_rule_position";
2535
+ setRulePosition: {
2536
+ key: string;
2537
+ position: number;
2538
+ };
2539
+ } | {
2540
+ type: "remove_rule";
2541
+ removeRule: {
2542
+ key: string;
2543
+ };
2544
+ }>;
2545
+ export declare const scopedActionZ: z.ZodObject<{
2546
+ key: z.ZodUUID;
2547
+ dispatchKey: z.ZodString;
2548
+ seq: z.ZodDefault<z.ZodNumber>;
2549
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2550
+ type: z.ZodLiteral<"create">;
2551
+ create: z.ZodObject<{
2552
+ linePlot: z.ZodObject<{
2553
+ key: z.ZodDefault<z.ZodUUID>;
2554
+ name: z.ZodString;
2555
+ title: z.ZodPrefault<z.ZodObject<{
2556
+ level: z.ZodDefault<z.ZodEnum<{
2557
+ small: "small";
2558
+ h1: "h1";
2559
+ h2: "h2";
2560
+ h3: "h3";
2561
+ h4: "h4";
2562
+ h5: "h5";
2563
+ p: "p";
2564
+ }>>;
2565
+ visible: z.ZodDefault<z.ZodBoolean>;
2566
+ }, z.core.$strip>>;
2567
+ legend: z.ZodPrefault<z.ZodObject<{
2568
+ hidden: z.ZodDefault<z.ZodBoolean>;
2569
+ position: z.ZodPrefault<z.ZodObject<{
2570
+ x: z.ZodNumber;
2571
+ y: z.ZodNumber;
2572
+ root: z.ZodPrefault<z.ZodObject<{
2573
+ x: z.ZodEnum<{
2574
+ left: "left";
2575
+ right: "right";
2576
+ }>;
2577
+ y: z.ZodEnum<{
2578
+ top: "top";
2579
+ bottom: "bottom";
2580
+ }>;
2581
+ }, z.core.$strip>>;
2582
+ units: z.ZodPrefault<z.ZodObject<{
2583
+ x: z.ZodEnum<{
2584
+ px: "px";
2585
+ decimal: "decimal";
2586
+ }>;
2587
+ y: z.ZodEnum<{
2588
+ px: "px";
2589
+ decimal: "decimal";
2590
+ }>;
2591
+ }, z.core.$strip>>;
2592
+ }, z.core.$strip>>;
2593
+ }, z.core.$strip>>;
2594
+ channels: z.ZodPrefault<z.ZodObject<{
2595
+ x1: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2596
+ x2: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
2597
+ y1: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
2598
+ y2: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
2599
+ y3: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
2600
+ y4: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
2601
+ }, z.core.$strip>>;
2602
+ ranges: z.ZodPrefault<z.ZodObject<{
2603
+ x1: z.ZodDefault<z.ZodArray<z.ZodString>>;
2604
+ x2: z.ZodDefault<z.ZodArray<z.ZodString>>;
2605
+ }, z.core.$strip>>;
2606
+ axes: z.ZodPrefault<z.ZodObject<{
2607
+ x1: z.ZodPrefault<z.ZodObject<{
2608
+ key: z.ZodEnum<{
2609
+ x1: "x1";
2610
+ x2: "x2";
2611
+ y1: "y1";
2612
+ y2: "y2";
2613
+ y3: "y3";
2614
+ y4: "y4";
2615
+ }>;
2616
+ label: z.ZodDefault<z.ZodString>;
2617
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2618
+ x: "x";
2619
+ y: "y";
2620
+ }>>;
2621
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2622
+ small: "small";
2623
+ h1: "h1";
2624
+ h2: "h2";
2625
+ h3: "h3";
2626
+ h4: "h4";
2627
+ h5: "h5";
2628
+ p: "p";
2629
+ }>>;
2630
+ bounds: z.ZodPrefault<z.ZodObject<{
2631
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2632
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2633
+ }, z.core.$strip>>;
2634
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2635
+ lower: z.ZodDefault<z.ZodBoolean>;
2636
+ upper: z.ZodDefault<z.ZodBoolean>;
2637
+ }, z.core.$strip>>;
2638
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2639
+ type: z.ZodOptional<z.ZodEnum<{
2640
+ time: "time";
2641
+ linear: "linear";
2642
+ }>>;
2643
+ }, z.core.$strip>>;
2644
+ x2: z.ZodPrefault<z.ZodObject<{
2645
+ key: z.ZodEnum<{
2646
+ x1: "x1";
2647
+ x2: "x2";
2648
+ y1: "y1";
2649
+ y2: "y2";
2650
+ y3: "y3";
2651
+ y4: "y4";
2652
+ }>;
2653
+ label: z.ZodDefault<z.ZodString>;
2654
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2655
+ x: "x";
2656
+ y: "y";
2657
+ }>>;
2658
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2659
+ small: "small";
2660
+ h1: "h1";
2661
+ h2: "h2";
2662
+ h3: "h3";
2663
+ h4: "h4";
2664
+ h5: "h5";
2665
+ p: "p";
2666
+ }>>;
2667
+ bounds: z.ZodPrefault<z.ZodObject<{
2668
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2669
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2670
+ }, z.core.$strip>>;
2671
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2672
+ lower: z.ZodDefault<z.ZodBoolean>;
2673
+ upper: z.ZodDefault<z.ZodBoolean>;
2674
+ }, z.core.$strip>>;
2675
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2676
+ type: z.ZodOptional<z.ZodEnum<{
2677
+ time: "time";
2678
+ linear: "linear";
2679
+ }>>;
2680
+ }, z.core.$strip>>;
2681
+ y1: z.ZodPrefault<z.ZodObject<{
2682
+ key: z.ZodEnum<{
2683
+ x1: "x1";
2684
+ x2: "x2";
2685
+ y1: "y1";
2686
+ y2: "y2";
2687
+ y3: "y3";
2688
+ y4: "y4";
2689
+ }>;
2690
+ label: z.ZodDefault<z.ZodString>;
2691
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2692
+ x: "x";
2693
+ y: "y";
2694
+ }>>;
2695
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2696
+ small: "small";
2697
+ h1: "h1";
2698
+ h2: "h2";
2699
+ h3: "h3";
2700
+ h4: "h4";
2701
+ h5: "h5";
2702
+ p: "p";
2703
+ }>>;
2704
+ bounds: z.ZodPrefault<z.ZodObject<{
2705
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2706
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2707
+ }, z.core.$strip>>;
2708
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2709
+ lower: z.ZodDefault<z.ZodBoolean>;
2710
+ upper: z.ZodDefault<z.ZodBoolean>;
2711
+ }, z.core.$strip>>;
2712
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2713
+ type: z.ZodOptional<z.ZodEnum<{
2714
+ time: "time";
2715
+ linear: "linear";
2716
+ }>>;
2717
+ }, z.core.$strip>>;
2718
+ y2: z.ZodPrefault<z.ZodObject<{
2719
+ key: z.ZodEnum<{
2720
+ x1: "x1";
2721
+ x2: "x2";
2722
+ y1: "y1";
2723
+ y2: "y2";
2724
+ y3: "y3";
2725
+ y4: "y4";
2726
+ }>;
2727
+ label: z.ZodDefault<z.ZodString>;
2728
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2729
+ x: "x";
2730
+ y: "y";
2731
+ }>>;
2732
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2733
+ small: "small";
2734
+ h1: "h1";
2735
+ h2: "h2";
2736
+ h3: "h3";
2737
+ h4: "h4";
2738
+ h5: "h5";
2739
+ p: "p";
2740
+ }>>;
2741
+ bounds: z.ZodPrefault<z.ZodObject<{
2742
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2743
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2744
+ }, z.core.$strip>>;
2745
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2746
+ lower: z.ZodDefault<z.ZodBoolean>;
2747
+ upper: z.ZodDefault<z.ZodBoolean>;
2748
+ }, z.core.$strip>>;
2749
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2750
+ type: z.ZodOptional<z.ZodEnum<{
2751
+ time: "time";
2752
+ linear: "linear";
2753
+ }>>;
2754
+ }, z.core.$strip>>;
2755
+ y3: z.ZodPrefault<z.ZodObject<{
2756
+ key: z.ZodEnum<{
2757
+ x1: "x1";
2758
+ x2: "x2";
2759
+ y1: "y1";
2760
+ y2: "y2";
2761
+ y3: "y3";
2762
+ y4: "y4";
2763
+ }>;
2764
+ label: z.ZodDefault<z.ZodString>;
2765
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2766
+ x: "x";
2767
+ y: "y";
2768
+ }>>;
2769
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2770
+ small: "small";
2771
+ h1: "h1";
2772
+ h2: "h2";
2773
+ h3: "h3";
2774
+ h4: "h4";
2775
+ h5: "h5";
2776
+ p: "p";
2777
+ }>>;
2778
+ bounds: z.ZodPrefault<z.ZodObject<{
2779
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2780
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2781
+ }, z.core.$strip>>;
2782
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2783
+ lower: z.ZodDefault<z.ZodBoolean>;
2784
+ upper: z.ZodDefault<z.ZodBoolean>;
2785
+ }, z.core.$strip>>;
2786
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2787
+ type: z.ZodOptional<z.ZodEnum<{
2788
+ time: "time";
2789
+ linear: "linear";
2790
+ }>>;
2791
+ }, z.core.$strip>>;
2792
+ y4: z.ZodPrefault<z.ZodObject<{
2793
+ key: z.ZodEnum<{
2794
+ x1: "x1";
2795
+ x2: "x2";
2796
+ y1: "y1";
2797
+ y2: "y2";
2798
+ y3: "y3";
2799
+ y4: "y4";
2800
+ }>;
2801
+ label: z.ZodDefault<z.ZodString>;
2802
+ labelDirection: z.ZodDefault<z.ZodEnum<{
2803
+ x: "x";
2804
+ y: "y";
2805
+ }>>;
2806
+ labelLevel: z.ZodDefault<z.ZodEnum<{
2807
+ small: "small";
2808
+ h1: "h1";
2809
+ h2: "h2";
2810
+ h3: "h3";
2811
+ h4: "h4";
2812
+ h5: "h5";
2813
+ p: "p";
2814
+ }>>;
2815
+ bounds: z.ZodPrefault<z.ZodObject<{
2816
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2817
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
2818
+ }, z.core.$strip>>;
2819
+ manualBounds: z.ZodPrefault<z.ZodObject<{
2820
+ lower: z.ZodDefault<z.ZodBoolean>;
2821
+ upper: z.ZodDefault<z.ZodBoolean>;
2822
+ }, z.core.$strip>>;
2823
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
2824
+ type: z.ZodOptional<z.ZodEnum<{
2825
+ time: "time";
2826
+ linear: "linear";
2827
+ }>>;
2828
+ }, z.core.$strip>>;
2829
+ }, z.core.$strip>>;
2830
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
2831
+ key: z.ZodString;
2832
+ label: z.ZodOptional<z.ZodString>;
2833
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2834
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
2835
+ }, z.core.$strip>, z.ZodObject<{
2836
+ r: z.ZodInt;
2837
+ g: z.ZodInt;
2838
+ b: z.ZodInt;
2839
+ a: z.ZodNumber;
2840
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
2841
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
2842
+ }, z.core.$strip>, z.ZodObject<{
2843
+ r: z.ZodInt;
2844
+ g: z.ZodInt;
2845
+ b: z.ZodInt;
2846
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
2847
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
2848
+ rgba255: [number, number, number, number];
2849
+ } | {
2850
+ r: number;
2851
+ g: number;
2852
+ b: number;
2853
+ a: number;
2854
+ } | {
2855
+ rgba255: [number, number, number, number];
2856
+ } | {
2857
+ r: number;
2858
+ g: number;
2859
+ b: number;
2860
+ a: number;
2861
+ }>>>;
2862
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
2863
+ downsample: z.ZodDefault<z.ZodUInt32>;
2864
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
2865
+ average: "average";
2866
+ decimate: "decimate";
2867
+ }>>;
2868
+ }, z.core.$strip>>>;
2869
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
2870
+ key: z.ZodString;
2871
+ label: z.ZodString;
2872
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
2873
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
2874
+ }, z.core.$strip>, z.ZodObject<{
2875
+ r: z.ZodInt;
2876
+ g: z.ZodInt;
2877
+ b: z.ZodInt;
2878
+ a: z.ZodNumber;
2879
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
2880
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
2881
+ }, z.core.$strip>, z.ZodObject<{
2882
+ r: z.ZodInt;
2883
+ g: z.ZodInt;
2884
+ b: z.ZodInt;
2885
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
2886
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
2887
+ rgba255: [number, number, number, number];
2888
+ } | {
2889
+ r: number;
2890
+ g: number;
2891
+ b: number;
2892
+ a: number;
2893
+ } | {
2894
+ rgba255: [number, number, number, number];
2895
+ } | {
2896
+ r: number;
2897
+ g: number;
2898
+ b: number;
2899
+ a: number;
2900
+ }>>>;
2901
+ axis: z.ZodEnum<{
2902
+ x1: "x1";
2903
+ x2: "x2";
2904
+ y1: "y1";
2905
+ y2: "y2";
2906
+ y3: "y3";
2907
+ y4: "y4";
2908
+ }>;
2909
+ lineWidth: z.ZodDefault<z.ZodNumber>;
2910
+ lineDash: z.ZodDefault<z.ZodNumber>;
2911
+ units: z.ZodDefault<z.ZodString>;
2912
+ position: z.ZodNumber;
2913
+ }, z.core.$strip>>>;
2914
+ }, z.core.$strip>;
2915
+ }, z.core.$strip>;
2916
+ }, z.core.$strip>, z.ZodObject<{
2917
+ type: z.ZodLiteral<"rename">;
2918
+ rename: z.ZodObject<{
2919
+ name: z.ZodString;
2920
+ }, z.core.$strip>;
2921
+ }, z.core.$strip>, z.ZodObject<{
2922
+ type: z.ZodLiteral<"set_title_visible">;
2923
+ setTitleVisible: z.ZodObject<{
2924
+ visible: z.ZodBoolean;
2925
+ }, z.core.$strip>;
2926
+ }, z.core.$strip>, z.ZodObject<{
2927
+ type: z.ZodLiteral<"set_title_level">;
2928
+ setTitleLevel: z.ZodObject<{
2929
+ level: z.ZodEnum<{
2930
+ small: "small";
2931
+ h1: "h1";
2932
+ h2: "h2";
2933
+ h3: "h3";
2934
+ h4: "h4";
2935
+ h5: "h5";
2936
+ p: "p";
2937
+ }>;
2938
+ }, z.core.$strip>;
2939
+ }, z.core.$strip>, z.ZodObject<{
2940
+ type: z.ZodLiteral<"set_legend_hidden">;
2941
+ setLegendHidden: z.ZodObject<{
2942
+ hidden: z.ZodBoolean;
2943
+ }, z.core.$strip>;
2944
+ }, z.core.$strip>, z.ZodObject<{
2945
+ type: z.ZodLiteral<"set_legend_position">;
2946
+ setLegendPosition: z.ZodObject<{
2947
+ position: z.ZodObject<{
2948
+ x: z.ZodNumber;
2949
+ y: z.ZodNumber;
2950
+ root: z.ZodPrefault<z.ZodObject<{
2951
+ x: z.ZodEnum<{
2952
+ left: "left";
2953
+ right: "right";
2954
+ }>;
2955
+ y: z.ZodEnum<{
2956
+ top: "top";
2957
+ bottom: "bottom";
2958
+ }>;
2959
+ }, z.core.$strip>>;
2960
+ units: z.ZodPrefault<z.ZodObject<{
2961
+ x: z.ZodEnum<{
2962
+ px: "px";
2963
+ decimal: "decimal";
2964
+ }>;
2965
+ y: z.ZodEnum<{
2966
+ px: "px";
2967
+ decimal: "decimal";
2968
+ }>;
2969
+ }, z.core.$strip>>;
2970
+ }, z.core.$strip>;
2971
+ }, z.core.$strip>;
2972
+ }, z.core.$strip>, z.ZodObject<{
2973
+ type: z.ZodLiteral<"add_channel">;
2974
+ addChannel: z.ZodObject<{
2975
+ axisKey: z.ZodEnum<{
2976
+ y1: "y1";
2977
+ y2: "y2";
2978
+ y3: "y3";
2979
+ y4: "y4";
2980
+ }>;
2981
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
2982
+ }, z.core.$strip>;
2983
+ }, z.core.$strip>, z.ZodObject<{
2984
+ type: z.ZodLiteral<"remove_channel">;
2985
+ removeChannel: z.ZodObject<{
2986
+ axisKey: z.ZodEnum<{
2987
+ y1: "y1";
2988
+ y2: "y2";
2989
+ y3: "y3";
2990
+ y4: "y4";
2991
+ }>;
2992
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
2993
+ }, z.core.$strip>;
2994
+ }, z.core.$strip>, z.ZodObject<{
2995
+ type: z.ZodLiteral<"set_channels">;
2996
+ setChannels: z.ZodObject<{
2997
+ axisKey: z.ZodEnum<{
2998
+ y1: "y1";
2999
+ y2: "y2";
3000
+ y3: "y3";
3001
+ y4: "y4";
3002
+ }>;
3003
+ channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3004
+ }, z.core.$strip>;
3005
+ }, z.core.$strip>, z.ZodObject<{
3006
+ type: z.ZodLiteral<"set_x_channel">;
3007
+ setXChannel: z.ZodObject<{
3008
+ axisKey: z.ZodEnum<{
3009
+ x1: "x1";
3010
+ x2: "x2";
3011
+ }>;
3012
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
3013
+ }, z.core.$strip>;
3014
+ }, z.core.$strip>, z.ZodObject<{
3015
+ type: z.ZodLiteral<"add_range">;
3016
+ addRange: z.ZodObject<{
3017
+ axisKey: z.ZodEnum<{
3018
+ x1: "x1";
3019
+ x2: "x2";
3020
+ }>;
3021
+ range: z.ZodString;
3022
+ }, z.core.$strip>;
3023
+ }, z.core.$strip>, z.ZodObject<{
3024
+ type: z.ZodLiteral<"remove_range">;
3025
+ removeRange: z.ZodObject<{
3026
+ axisKey: z.ZodEnum<{
3027
+ x1: "x1";
3028
+ x2: "x2";
3029
+ }>;
3030
+ range: z.ZodString;
3031
+ }, z.core.$strip>;
3032
+ }, z.core.$strip>, z.ZodObject<{
3033
+ type: z.ZodLiteral<"set_ranges">;
3034
+ setRanges: z.ZodObject<{
3035
+ axisKey: z.ZodEnum<{
3036
+ x1: "x1";
3037
+ x2: "x2";
3038
+ }>;
3039
+ ranges: z.ZodDefault<z.ZodArray<z.ZodString>>;
3040
+ }, z.core.$strip>;
3041
+ }, z.core.$strip>, z.ZodObject<{
3042
+ type: z.ZodLiteral<"set_axis_label">;
3043
+ setAxisLabel: z.ZodObject<{
3044
+ key: z.ZodEnum<{
3045
+ x1: "x1";
3046
+ x2: "x2";
3047
+ y1: "y1";
3048
+ y2: "y2";
3049
+ y3: "y3";
3050
+ y4: "y4";
3051
+ }>;
3052
+ label: z.ZodString;
3053
+ }, z.core.$strip>;
3054
+ }, z.core.$strip>, z.ZodObject<{
3055
+ type: z.ZodLiteral<"set_axis_label_direction">;
3056
+ setAxisLabelDirection: z.ZodObject<{
3057
+ key: z.ZodEnum<{
3058
+ x1: "x1";
3059
+ x2: "x2";
3060
+ y1: "y1";
3061
+ y2: "y2";
3062
+ y3: "y3";
3063
+ y4: "y4";
3064
+ }>;
3065
+ labelDirection: z.ZodEnum<{
3066
+ x: "x";
3067
+ y: "y";
3068
+ }>;
3069
+ }, z.core.$strip>;
3070
+ }, z.core.$strip>, z.ZodObject<{
3071
+ type: z.ZodLiteral<"set_axis_label_level">;
3072
+ setAxisLabelLevel: z.ZodObject<{
3073
+ key: z.ZodEnum<{
3074
+ x1: "x1";
3075
+ x2: "x2";
3076
+ y1: "y1";
3077
+ y2: "y2";
3078
+ y3: "y3";
3079
+ y4: "y4";
3080
+ }>;
3081
+ labelLevel: z.ZodEnum<{
3082
+ small: "small";
3083
+ h1: "h1";
3084
+ h2: "h2";
3085
+ h3: "h3";
3086
+ h4: "h4";
3087
+ h5: "h5";
3088
+ p: "p";
3089
+ }>;
3090
+ }, z.core.$strip>;
3091
+ }, z.core.$strip>, z.ZodObject<{
3092
+ type: z.ZodLiteral<"set_axis_bounds">;
3093
+ setAxisBounds: z.ZodObject<{
3094
+ key: z.ZodEnum<{
3095
+ x1: "x1";
3096
+ x2: "x2";
3097
+ y1: "y1";
3098
+ y2: "y2";
3099
+ y3: "y3";
3100
+ y4: "y4";
3101
+ }>;
3102
+ bounds: z.ZodObject<{
3103
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3104
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3105
+ }, z.core.$strip>;
3106
+ manualBounds: z.ZodObject<{
3107
+ lower: z.ZodDefault<z.ZodBoolean>;
3108
+ upper: z.ZodDefault<z.ZodBoolean>;
3109
+ }, z.core.$strip>;
3110
+ }, z.core.$strip>;
3111
+ }, z.core.$strip>, z.ZodObject<{
3112
+ type: z.ZodLiteral<"set_axis_tick_spacing">;
3113
+ setAxisTickSpacing: z.ZodObject<{
3114
+ key: z.ZodEnum<{
3115
+ x1: "x1";
3116
+ x2: "x2";
3117
+ y1: "y1";
3118
+ y2: "y2";
3119
+ y3: "y3";
3120
+ y4: "y4";
3121
+ }>;
3122
+ tickSpacing: z.ZodNumber;
3123
+ }, z.core.$strip>;
3124
+ }, z.core.$strip>, z.ZodObject<{
3125
+ type: z.ZodLiteral<"set_axis_type">;
3126
+ setAxisType: z.ZodObject<{
3127
+ key: z.ZodEnum<{
3128
+ x1: "x1";
3129
+ x2: "x2";
3130
+ y1: "y1";
3131
+ y2: "y2";
3132
+ y3: "y3";
3133
+ y4: "y4";
3134
+ }>;
3135
+ type: z.ZodOptional<z.ZodEnum<{
3136
+ time: "time";
3137
+ linear: "linear";
3138
+ }>>;
3139
+ }, z.core.$strip>;
3140
+ }, z.core.$strip>, z.ZodObject<{
3141
+ type: z.ZodLiteral<"set_line_label">;
3142
+ setLineLabel: z.ZodObject<{
3143
+ key: z.ZodString;
3144
+ label: z.ZodOptional<z.ZodString>;
3145
+ }, z.core.$strip>;
3146
+ }, z.core.$strip>, z.ZodObject<{
3147
+ type: z.ZodLiteral<"set_line_color">;
3148
+ setLineColor: z.ZodObject<{
3149
+ key: z.ZodString;
3150
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3151
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3152
+ }, z.core.$strip>, z.ZodObject<{
3153
+ r: z.ZodInt;
3154
+ g: z.ZodInt;
3155
+ b: z.ZodInt;
3156
+ a: z.ZodNumber;
3157
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3158
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3159
+ }, z.core.$strip>, z.ZodObject<{
3160
+ r: z.ZodInt;
3161
+ g: z.ZodInt;
3162
+ b: z.ZodInt;
3163
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3164
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3165
+ rgba255: [number, number, number, number];
3166
+ } | {
3167
+ r: number;
3168
+ g: number;
3169
+ b: number;
3170
+ a: number;
3171
+ } | {
3172
+ rgba255: [number, number, number, number];
3173
+ } | {
3174
+ r: number;
3175
+ g: number;
3176
+ b: number;
3177
+ a: number;
3178
+ }>>>;
3179
+ }, z.core.$strip>;
3180
+ }, z.core.$strip>, z.ZodObject<{
3181
+ type: z.ZodLiteral<"set_line_stroke_width">;
3182
+ setLineStrokeWidth: z.ZodObject<{
3183
+ key: z.ZodString;
3184
+ strokeWidth: z.ZodNumber;
3185
+ }, z.core.$strip>;
3186
+ }, z.core.$strip>, z.ZodObject<{
3187
+ type: z.ZodLiteral<"set_line_downsample">;
3188
+ setLineDownsample: z.ZodObject<{
3189
+ key: z.ZodString;
3190
+ downsample: z.ZodUInt32;
3191
+ }, z.core.$strip>;
3192
+ }, z.core.$strip>, z.ZodObject<{
3193
+ type: z.ZodLiteral<"set_line_downsample_mode">;
3194
+ setLineDownsampleMode: z.ZodObject<{
3195
+ key: z.ZodString;
3196
+ downsampleMode: z.ZodEnum<{
3197
+ average: "average";
3198
+ decimate: "decimate";
3199
+ }>;
3200
+ }, z.core.$strip>;
3201
+ }, z.core.$strip>, z.ZodObject<{
3202
+ type: z.ZodLiteral<"set_line">;
3203
+ setLine: z.ZodObject<{
3204
+ line: z.ZodObject<{
3205
+ key: z.ZodString;
3206
+ label: z.ZodOptional<z.ZodString>;
3207
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3208
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3209
+ }, z.core.$strip>, z.ZodObject<{
3210
+ r: z.ZodInt;
3211
+ g: z.ZodInt;
3212
+ b: z.ZodInt;
3213
+ a: z.ZodNumber;
3214
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3215
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3216
+ }, z.core.$strip>, z.ZodObject<{
3217
+ r: z.ZodInt;
3218
+ g: z.ZodInt;
3219
+ b: z.ZodInt;
3220
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3221
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3222
+ rgba255: [number, number, number, number];
3223
+ } | {
3224
+ r: number;
3225
+ g: number;
3226
+ b: number;
3227
+ a: number;
3228
+ } | {
3229
+ rgba255: [number, number, number, number];
3230
+ } | {
3231
+ r: number;
3232
+ g: number;
3233
+ b: number;
3234
+ a: number;
3235
+ }>>>;
3236
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
3237
+ downsample: z.ZodDefault<z.ZodUInt32>;
3238
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
3239
+ average: "average";
3240
+ decimate: "decimate";
3241
+ }>>;
3242
+ }, z.core.$strip>;
3243
+ }, z.core.$strip>;
3244
+ }, z.core.$strip>, z.ZodObject<{
3245
+ type: z.ZodLiteral<"set_rule">;
3246
+ setRule: z.ZodObject<{
3247
+ rule: z.ZodObject<{
3248
+ key: z.ZodString;
3249
+ label: z.ZodString;
3250
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3251
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3252
+ }, z.core.$strip>, z.ZodObject<{
3253
+ r: z.ZodInt;
3254
+ g: z.ZodInt;
3255
+ b: z.ZodInt;
3256
+ a: z.ZodNumber;
3257
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3258
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3259
+ }, z.core.$strip>, z.ZodObject<{
3260
+ r: z.ZodInt;
3261
+ g: z.ZodInt;
3262
+ b: z.ZodInt;
3263
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3264
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3265
+ rgba255: [number, number, number, number];
3266
+ } | {
3267
+ r: number;
3268
+ g: number;
3269
+ b: number;
3270
+ a: number;
3271
+ } | {
3272
+ rgba255: [number, number, number, number];
3273
+ } | {
3274
+ r: number;
3275
+ g: number;
3276
+ b: number;
3277
+ a: number;
3278
+ }>>>;
3279
+ axis: z.ZodEnum<{
3280
+ x1: "x1";
3281
+ x2: "x2";
3282
+ y1: "y1";
3283
+ y2: "y2";
3284
+ y3: "y3";
3285
+ y4: "y4";
3286
+ }>;
3287
+ lineWidth: z.ZodDefault<z.ZodNumber>;
3288
+ lineDash: z.ZodDefault<z.ZodNumber>;
3289
+ units: z.ZodDefault<z.ZodString>;
3290
+ position: z.ZodNumber;
3291
+ }, z.core.$strip>;
3292
+ }, z.core.$strip>;
3293
+ }, z.core.$strip>, z.ZodObject<{
3294
+ type: z.ZodLiteral<"set_rule_label">;
3295
+ setRuleLabel: z.ZodObject<{
3296
+ key: z.ZodString;
3297
+ label: z.ZodString;
3298
+ }, z.core.$strip>;
3299
+ }, z.core.$strip>, z.ZodObject<{
3300
+ type: z.ZodLiteral<"set_rule_color">;
3301
+ setRuleColor: z.ZodObject<{
3302
+ key: z.ZodString;
3303
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3304
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3305
+ }, z.core.$strip>, z.ZodObject<{
3306
+ r: z.ZodInt;
3307
+ g: z.ZodInt;
3308
+ b: z.ZodInt;
3309
+ a: z.ZodNumber;
3310
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3311
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3312
+ }, z.core.$strip>, z.ZodObject<{
3313
+ r: z.ZodInt;
3314
+ g: z.ZodInt;
3315
+ b: z.ZodInt;
3316
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3317
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3318
+ rgba255: [number, number, number, number];
3319
+ } | {
3320
+ r: number;
3321
+ g: number;
3322
+ b: number;
3323
+ a: number;
3324
+ } | {
3325
+ rgba255: [number, number, number, number];
3326
+ } | {
3327
+ r: number;
3328
+ g: number;
3329
+ b: number;
3330
+ a: number;
3331
+ }>>>;
3332
+ }, z.core.$strip>;
3333
+ }, z.core.$strip>, z.ZodObject<{
3334
+ type: z.ZodLiteral<"set_rule_axis">;
3335
+ setRuleAxis: z.ZodObject<{
3336
+ key: z.ZodString;
3337
+ axis: z.ZodEnum<{
3338
+ x1: "x1";
3339
+ x2: "x2";
3340
+ y1: "y1";
3341
+ y2: "y2";
3342
+ y3: "y3";
3343
+ y4: "y4";
3344
+ }>;
3345
+ }, z.core.$strip>;
3346
+ }, z.core.$strip>, z.ZodObject<{
3347
+ type: z.ZodLiteral<"set_rule_line_width">;
3348
+ setRuleLineWidth: z.ZodObject<{
3349
+ key: z.ZodString;
3350
+ lineWidth: z.ZodNumber;
3351
+ }, z.core.$strip>;
3352
+ }, z.core.$strip>, z.ZodObject<{
3353
+ type: z.ZodLiteral<"set_rule_line_dash">;
3354
+ setRuleLineDash: z.ZodObject<{
3355
+ key: z.ZodString;
3356
+ lineDash: z.ZodNumber;
3357
+ }, z.core.$strip>;
3358
+ }, z.core.$strip>, z.ZodObject<{
3359
+ type: z.ZodLiteral<"set_rule_units">;
3360
+ setRuleUnits: z.ZodObject<{
3361
+ key: z.ZodString;
3362
+ units: z.ZodString;
3363
+ }, z.core.$strip>;
3364
+ }, z.core.$strip>, z.ZodObject<{
3365
+ type: z.ZodLiteral<"set_rule_position">;
3366
+ setRulePosition: z.ZodObject<{
3367
+ key: z.ZodString;
3368
+ position: z.ZodNumber;
3369
+ }, z.core.$strip>;
3370
+ }, z.core.$strip>, z.ZodObject<{
3371
+ type: z.ZodLiteral<"remove_rule">;
3372
+ removeRule: z.ZodObject<{
3373
+ key: z.ZodString;
3374
+ }, z.core.$strip>;
3375
+ }, z.core.$strip>], "type">>;
3376
+ }, z.core.$strip>;
3377
+ export declare const dispatchReqZ: z.ZodObject<{
3378
+ key: z.ZodUUID;
3379
+ dispatchKey: z.ZodString;
3380
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3381
+ type: z.ZodLiteral<"create">;
3382
+ create: z.ZodObject<{
3383
+ linePlot: z.ZodObject<{
3384
+ key: z.ZodDefault<z.ZodUUID>;
3385
+ name: z.ZodString;
3386
+ title: z.ZodPrefault<z.ZodObject<{
3387
+ level: z.ZodDefault<z.ZodEnum<{
3388
+ small: "small";
3389
+ h1: "h1";
3390
+ h2: "h2";
3391
+ h3: "h3";
3392
+ h4: "h4";
3393
+ h5: "h5";
3394
+ p: "p";
3395
+ }>>;
3396
+ visible: z.ZodDefault<z.ZodBoolean>;
3397
+ }, z.core.$strip>>;
3398
+ legend: z.ZodPrefault<z.ZodObject<{
3399
+ hidden: z.ZodDefault<z.ZodBoolean>;
3400
+ position: z.ZodPrefault<z.ZodObject<{
3401
+ x: z.ZodNumber;
3402
+ y: z.ZodNumber;
3403
+ root: z.ZodPrefault<z.ZodObject<{
3404
+ x: z.ZodEnum<{
3405
+ left: "left";
3406
+ right: "right";
3407
+ }>;
3408
+ y: z.ZodEnum<{
3409
+ top: "top";
3410
+ bottom: "bottom";
3411
+ }>;
3412
+ }, z.core.$strip>>;
3413
+ units: z.ZodPrefault<z.ZodObject<{
3414
+ x: z.ZodEnum<{
3415
+ px: "px";
3416
+ decimal: "decimal";
3417
+ }>;
3418
+ y: z.ZodEnum<{
3419
+ px: "px";
3420
+ decimal: "decimal";
3421
+ }>;
3422
+ }, z.core.$strip>>;
3423
+ }, z.core.$strip>>;
3424
+ }, z.core.$strip>>;
3425
+ channels: z.ZodPrefault<z.ZodObject<{
3426
+ x1: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3427
+ x2: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
3428
+ y1: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3429
+ y2: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3430
+ y3: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3431
+ y4: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3432
+ }, z.core.$strip>>;
3433
+ ranges: z.ZodPrefault<z.ZodObject<{
3434
+ x1: z.ZodDefault<z.ZodArray<z.ZodString>>;
3435
+ x2: z.ZodDefault<z.ZodArray<z.ZodString>>;
3436
+ }, z.core.$strip>>;
3437
+ axes: z.ZodPrefault<z.ZodObject<{
3438
+ x1: z.ZodPrefault<z.ZodObject<{
3439
+ key: z.ZodEnum<{
3440
+ x1: "x1";
3441
+ x2: "x2";
3442
+ y1: "y1";
3443
+ y2: "y2";
3444
+ y3: "y3";
3445
+ y4: "y4";
3446
+ }>;
3447
+ label: z.ZodDefault<z.ZodString>;
3448
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3449
+ x: "x";
3450
+ y: "y";
3451
+ }>>;
3452
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3453
+ small: "small";
3454
+ h1: "h1";
3455
+ h2: "h2";
3456
+ h3: "h3";
3457
+ h4: "h4";
3458
+ h5: "h5";
3459
+ p: "p";
3460
+ }>>;
3461
+ bounds: z.ZodPrefault<z.ZodObject<{
3462
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3463
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3464
+ }, z.core.$strip>>;
3465
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3466
+ lower: z.ZodDefault<z.ZodBoolean>;
3467
+ upper: z.ZodDefault<z.ZodBoolean>;
3468
+ }, z.core.$strip>>;
3469
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3470
+ type: z.ZodOptional<z.ZodEnum<{
3471
+ time: "time";
3472
+ linear: "linear";
3473
+ }>>;
3474
+ }, z.core.$strip>>;
3475
+ x2: z.ZodPrefault<z.ZodObject<{
3476
+ key: z.ZodEnum<{
3477
+ x1: "x1";
3478
+ x2: "x2";
3479
+ y1: "y1";
3480
+ y2: "y2";
3481
+ y3: "y3";
3482
+ y4: "y4";
3483
+ }>;
3484
+ label: z.ZodDefault<z.ZodString>;
3485
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3486
+ x: "x";
3487
+ y: "y";
3488
+ }>>;
3489
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3490
+ small: "small";
3491
+ h1: "h1";
3492
+ h2: "h2";
3493
+ h3: "h3";
3494
+ h4: "h4";
3495
+ h5: "h5";
3496
+ p: "p";
3497
+ }>>;
3498
+ bounds: z.ZodPrefault<z.ZodObject<{
3499
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3500
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3501
+ }, z.core.$strip>>;
3502
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3503
+ lower: z.ZodDefault<z.ZodBoolean>;
3504
+ upper: z.ZodDefault<z.ZodBoolean>;
3505
+ }, z.core.$strip>>;
3506
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3507
+ type: z.ZodOptional<z.ZodEnum<{
3508
+ time: "time";
3509
+ linear: "linear";
3510
+ }>>;
3511
+ }, z.core.$strip>>;
3512
+ y1: z.ZodPrefault<z.ZodObject<{
3513
+ key: z.ZodEnum<{
3514
+ x1: "x1";
3515
+ x2: "x2";
3516
+ y1: "y1";
3517
+ y2: "y2";
3518
+ y3: "y3";
3519
+ y4: "y4";
3520
+ }>;
3521
+ label: z.ZodDefault<z.ZodString>;
3522
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3523
+ x: "x";
3524
+ y: "y";
3525
+ }>>;
3526
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3527
+ small: "small";
3528
+ h1: "h1";
3529
+ h2: "h2";
3530
+ h3: "h3";
3531
+ h4: "h4";
3532
+ h5: "h5";
3533
+ p: "p";
3534
+ }>>;
3535
+ bounds: z.ZodPrefault<z.ZodObject<{
3536
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3537
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3538
+ }, z.core.$strip>>;
3539
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3540
+ lower: z.ZodDefault<z.ZodBoolean>;
3541
+ upper: z.ZodDefault<z.ZodBoolean>;
3542
+ }, z.core.$strip>>;
3543
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3544
+ type: z.ZodOptional<z.ZodEnum<{
3545
+ time: "time";
3546
+ linear: "linear";
3547
+ }>>;
3548
+ }, z.core.$strip>>;
3549
+ y2: z.ZodPrefault<z.ZodObject<{
3550
+ key: z.ZodEnum<{
3551
+ x1: "x1";
3552
+ x2: "x2";
3553
+ y1: "y1";
3554
+ y2: "y2";
3555
+ y3: "y3";
3556
+ y4: "y4";
3557
+ }>;
3558
+ label: z.ZodDefault<z.ZodString>;
3559
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3560
+ x: "x";
3561
+ y: "y";
3562
+ }>>;
3563
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3564
+ small: "small";
3565
+ h1: "h1";
3566
+ h2: "h2";
3567
+ h3: "h3";
3568
+ h4: "h4";
3569
+ h5: "h5";
3570
+ p: "p";
3571
+ }>>;
3572
+ bounds: z.ZodPrefault<z.ZodObject<{
3573
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3574
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3575
+ }, z.core.$strip>>;
3576
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3577
+ lower: z.ZodDefault<z.ZodBoolean>;
3578
+ upper: z.ZodDefault<z.ZodBoolean>;
3579
+ }, z.core.$strip>>;
3580
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3581
+ type: z.ZodOptional<z.ZodEnum<{
3582
+ time: "time";
3583
+ linear: "linear";
3584
+ }>>;
3585
+ }, z.core.$strip>>;
3586
+ y3: z.ZodPrefault<z.ZodObject<{
3587
+ key: z.ZodEnum<{
3588
+ x1: "x1";
3589
+ x2: "x2";
3590
+ y1: "y1";
3591
+ y2: "y2";
3592
+ y3: "y3";
3593
+ y4: "y4";
3594
+ }>;
3595
+ label: z.ZodDefault<z.ZodString>;
3596
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3597
+ x: "x";
3598
+ y: "y";
3599
+ }>>;
3600
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3601
+ small: "small";
3602
+ h1: "h1";
3603
+ h2: "h2";
3604
+ h3: "h3";
3605
+ h4: "h4";
3606
+ h5: "h5";
3607
+ p: "p";
3608
+ }>>;
3609
+ bounds: z.ZodPrefault<z.ZodObject<{
3610
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3611
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3612
+ }, z.core.$strip>>;
3613
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3614
+ lower: z.ZodDefault<z.ZodBoolean>;
3615
+ upper: z.ZodDefault<z.ZodBoolean>;
3616
+ }, z.core.$strip>>;
3617
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3618
+ type: z.ZodOptional<z.ZodEnum<{
3619
+ time: "time";
3620
+ linear: "linear";
3621
+ }>>;
3622
+ }, z.core.$strip>>;
3623
+ y4: z.ZodPrefault<z.ZodObject<{
3624
+ key: z.ZodEnum<{
3625
+ x1: "x1";
3626
+ x2: "x2";
3627
+ y1: "y1";
3628
+ y2: "y2";
3629
+ y3: "y3";
3630
+ y4: "y4";
3631
+ }>;
3632
+ label: z.ZodDefault<z.ZodString>;
3633
+ labelDirection: z.ZodDefault<z.ZodEnum<{
3634
+ x: "x";
3635
+ y: "y";
3636
+ }>>;
3637
+ labelLevel: z.ZodDefault<z.ZodEnum<{
3638
+ small: "small";
3639
+ h1: "h1";
3640
+ h2: "h2";
3641
+ h3: "h3";
3642
+ h4: "h4";
3643
+ h5: "h5";
3644
+ p: "p";
3645
+ }>>;
3646
+ bounds: z.ZodPrefault<z.ZodObject<{
3647
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3648
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3649
+ }, z.core.$strip>>;
3650
+ manualBounds: z.ZodPrefault<z.ZodObject<{
3651
+ lower: z.ZodDefault<z.ZodBoolean>;
3652
+ upper: z.ZodDefault<z.ZodBoolean>;
3653
+ }, z.core.$strip>>;
3654
+ tickSpacing: z.ZodDefault<z.ZodNumber>;
3655
+ type: z.ZodOptional<z.ZodEnum<{
3656
+ time: "time";
3657
+ linear: "linear";
3658
+ }>>;
3659
+ }, z.core.$strip>>;
3660
+ }, z.core.$strip>>;
3661
+ lines: z.ZodDefault<z.ZodArray<z.ZodObject<{
3662
+ key: z.ZodString;
3663
+ label: z.ZodOptional<z.ZodString>;
3664
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3665
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3666
+ }, z.core.$strip>, z.ZodObject<{
3667
+ r: z.ZodInt;
3668
+ g: z.ZodInt;
3669
+ b: z.ZodInt;
3670
+ a: z.ZodNumber;
3671
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3672
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3673
+ }, z.core.$strip>, z.ZodObject<{
3674
+ r: z.ZodInt;
3675
+ g: z.ZodInt;
3676
+ b: z.ZodInt;
3677
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3678
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3679
+ rgba255: [number, number, number, number];
3680
+ } | {
3681
+ r: number;
3682
+ g: number;
3683
+ b: number;
3684
+ a: number;
3685
+ } | {
3686
+ rgba255: [number, number, number, number];
3687
+ } | {
3688
+ r: number;
3689
+ g: number;
3690
+ b: number;
3691
+ a: number;
3692
+ }>>>;
3693
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
3694
+ downsample: z.ZodDefault<z.ZodUInt32>;
3695
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
3696
+ average: "average";
3697
+ decimate: "decimate";
3698
+ }>>;
3699
+ }, z.core.$strip>>>;
3700
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
3701
+ key: z.ZodString;
3702
+ label: z.ZodString;
3703
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3704
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3705
+ }, z.core.$strip>, z.ZodObject<{
3706
+ r: z.ZodInt;
3707
+ g: z.ZodInt;
3708
+ b: z.ZodInt;
3709
+ a: z.ZodNumber;
3710
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3711
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3712
+ }, z.core.$strip>, z.ZodObject<{
3713
+ r: z.ZodInt;
3714
+ g: z.ZodInt;
3715
+ b: z.ZodInt;
3716
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3717
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3718
+ rgba255: [number, number, number, number];
3719
+ } | {
3720
+ r: number;
3721
+ g: number;
3722
+ b: number;
3723
+ a: number;
3724
+ } | {
3725
+ rgba255: [number, number, number, number];
3726
+ } | {
3727
+ r: number;
3728
+ g: number;
3729
+ b: number;
3730
+ a: number;
3731
+ }>>>;
3732
+ axis: z.ZodEnum<{
3733
+ x1: "x1";
3734
+ x2: "x2";
3735
+ y1: "y1";
3736
+ y2: "y2";
3737
+ y3: "y3";
3738
+ y4: "y4";
3739
+ }>;
3740
+ lineWidth: z.ZodDefault<z.ZodNumber>;
3741
+ lineDash: z.ZodDefault<z.ZodNumber>;
3742
+ units: z.ZodDefault<z.ZodString>;
3743
+ position: z.ZodNumber;
3744
+ }, z.core.$strip>>>;
3745
+ }, z.core.$strip>;
3746
+ }, z.core.$strip>;
3747
+ }, z.core.$strip>, z.ZodObject<{
3748
+ type: z.ZodLiteral<"rename">;
3749
+ rename: z.ZodObject<{
3750
+ name: z.ZodString;
3751
+ }, z.core.$strip>;
3752
+ }, z.core.$strip>, z.ZodObject<{
3753
+ type: z.ZodLiteral<"set_title_visible">;
3754
+ setTitleVisible: z.ZodObject<{
3755
+ visible: z.ZodBoolean;
3756
+ }, z.core.$strip>;
3757
+ }, z.core.$strip>, z.ZodObject<{
3758
+ type: z.ZodLiteral<"set_title_level">;
3759
+ setTitleLevel: z.ZodObject<{
3760
+ level: z.ZodEnum<{
3761
+ small: "small";
3762
+ h1: "h1";
3763
+ h2: "h2";
3764
+ h3: "h3";
3765
+ h4: "h4";
3766
+ h5: "h5";
3767
+ p: "p";
3768
+ }>;
3769
+ }, z.core.$strip>;
3770
+ }, z.core.$strip>, z.ZodObject<{
3771
+ type: z.ZodLiteral<"set_legend_hidden">;
3772
+ setLegendHidden: z.ZodObject<{
3773
+ hidden: z.ZodBoolean;
3774
+ }, z.core.$strip>;
3775
+ }, z.core.$strip>, z.ZodObject<{
3776
+ type: z.ZodLiteral<"set_legend_position">;
3777
+ setLegendPosition: z.ZodObject<{
3778
+ position: z.ZodObject<{
3779
+ x: z.ZodNumber;
3780
+ y: z.ZodNumber;
3781
+ root: z.ZodPrefault<z.ZodObject<{
3782
+ x: z.ZodEnum<{
3783
+ left: "left";
3784
+ right: "right";
3785
+ }>;
3786
+ y: z.ZodEnum<{
3787
+ top: "top";
3788
+ bottom: "bottom";
3789
+ }>;
3790
+ }, z.core.$strip>>;
3791
+ units: z.ZodPrefault<z.ZodObject<{
3792
+ x: z.ZodEnum<{
3793
+ px: "px";
3794
+ decimal: "decimal";
3795
+ }>;
3796
+ y: z.ZodEnum<{
3797
+ px: "px";
3798
+ decimal: "decimal";
3799
+ }>;
3800
+ }, z.core.$strip>>;
3801
+ }, z.core.$strip>;
3802
+ }, z.core.$strip>;
3803
+ }, z.core.$strip>, z.ZodObject<{
3804
+ type: z.ZodLiteral<"add_channel">;
3805
+ addChannel: z.ZodObject<{
3806
+ axisKey: z.ZodEnum<{
3807
+ y1: "y1";
3808
+ y2: "y2";
3809
+ y3: "y3";
3810
+ y4: "y4";
3811
+ }>;
3812
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
3813
+ }, z.core.$strip>;
3814
+ }, z.core.$strip>, z.ZodObject<{
3815
+ type: z.ZodLiteral<"remove_channel">;
3816
+ removeChannel: z.ZodObject<{
3817
+ axisKey: z.ZodEnum<{
3818
+ y1: "y1";
3819
+ y2: "y2";
3820
+ y3: "y3";
3821
+ y4: "y4";
3822
+ }>;
3823
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
3824
+ }, z.core.$strip>;
3825
+ }, z.core.$strip>, z.ZodObject<{
3826
+ type: z.ZodLiteral<"set_channels">;
3827
+ setChannels: z.ZodObject<{
3828
+ axisKey: z.ZodEnum<{
3829
+ y1: "y1";
3830
+ y2: "y2";
3831
+ y3: "y3";
3832
+ y4: "y4";
3833
+ }>;
3834
+ channels: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
3835
+ }, z.core.$strip>;
3836
+ }, z.core.$strip>, z.ZodObject<{
3837
+ type: z.ZodLiteral<"set_x_channel">;
3838
+ setXChannel: z.ZodObject<{
3839
+ axisKey: z.ZodEnum<{
3840
+ x1: "x1";
3841
+ x2: "x2";
3842
+ }>;
3843
+ channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
3844
+ }, z.core.$strip>;
3845
+ }, z.core.$strip>, z.ZodObject<{
3846
+ type: z.ZodLiteral<"add_range">;
3847
+ addRange: z.ZodObject<{
3848
+ axisKey: z.ZodEnum<{
3849
+ x1: "x1";
3850
+ x2: "x2";
3851
+ }>;
3852
+ range: z.ZodString;
3853
+ }, z.core.$strip>;
3854
+ }, z.core.$strip>, z.ZodObject<{
3855
+ type: z.ZodLiteral<"remove_range">;
3856
+ removeRange: z.ZodObject<{
3857
+ axisKey: z.ZodEnum<{
3858
+ x1: "x1";
3859
+ x2: "x2";
3860
+ }>;
3861
+ range: z.ZodString;
3862
+ }, z.core.$strip>;
3863
+ }, z.core.$strip>, z.ZodObject<{
3864
+ type: z.ZodLiteral<"set_ranges">;
3865
+ setRanges: z.ZodObject<{
3866
+ axisKey: z.ZodEnum<{
3867
+ x1: "x1";
3868
+ x2: "x2";
3869
+ }>;
3870
+ ranges: z.ZodDefault<z.ZodArray<z.ZodString>>;
3871
+ }, z.core.$strip>;
3872
+ }, z.core.$strip>, z.ZodObject<{
3873
+ type: z.ZodLiteral<"set_axis_label">;
3874
+ setAxisLabel: z.ZodObject<{
3875
+ key: z.ZodEnum<{
3876
+ x1: "x1";
3877
+ x2: "x2";
3878
+ y1: "y1";
3879
+ y2: "y2";
3880
+ y3: "y3";
3881
+ y4: "y4";
3882
+ }>;
3883
+ label: z.ZodString;
3884
+ }, z.core.$strip>;
3885
+ }, z.core.$strip>, z.ZodObject<{
3886
+ type: z.ZodLiteral<"set_axis_label_direction">;
3887
+ setAxisLabelDirection: z.ZodObject<{
3888
+ key: z.ZodEnum<{
3889
+ x1: "x1";
3890
+ x2: "x2";
3891
+ y1: "y1";
3892
+ y2: "y2";
3893
+ y3: "y3";
3894
+ y4: "y4";
3895
+ }>;
3896
+ labelDirection: z.ZodEnum<{
3897
+ x: "x";
3898
+ y: "y";
3899
+ }>;
3900
+ }, z.core.$strip>;
3901
+ }, z.core.$strip>, z.ZodObject<{
3902
+ type: z.ZodLiteral<"set_axis_label_level">;
3903
+ setAxisLabelLevel: z.ZodObject<{
3904
+ key: z.ZodEnum<{
3905
+ x1: "x1";
3906
+ x2: "x2";
3907
+ y1: "y1";
3908
+ y2: "y2";
3909
+ y3: "y3";
3910
+ y4: "y4";
3911
+ }>;
3912
+ labelLevel: z.ZodEnum<{
3913
+ small: "small";
3914
+ h1: "h1";
3915
+ h2: "h2";
3916
+ h3: "h3";
3917
+ h4: "h4";
3918
+ h5: "h5";
3919
+ p: "p";
3920
+ }>;
3921
+ }, z.core.$strip>;
3922
+ }, z.core.$strip>, z.ZodObject<{
3923
+ type: z.ZodLiteral<"set_axis_bounds">;
3924
+ setAxisBounds: z.ZodObject<{
3925
+ key: z.ZodEnum<{
3926
+ x1: "x1";
3927
+ x2: "x2";
3928
+ y1: "y1";
3929
+ y2: "y2";
3930
+ y3: "y3";
3931
+ y4: "y4";
3932
+ }>;
3933
+ bounds: z.ZodObject<{
3934
+ lower: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3935
+ upper: z.ZodNumber | z.ZodType<number, unknown, z.core.$ZodTypeInternals<number, unknown>>;
3936
+ }, z.core.$strip>;
3937
+ manualBounds: z.ZodObject<{
3938
+ lower: z.ZodDefault<z.ZodBoolean>;
3939
+ upper: z.ZodDefault<z.ZodBoolean>;
3940
+ }, z.core.$strip>;
3941
+ }, z.core.$strip>;
3942
+ }, z.core.$strip>, z.ZodObject<{
3943
+ type: z.ZodLiteral<"set_axis_tick_spacing">;
3944
+ setAxisTickSpacing: z.ZodObject<{
3945
+ key: z.ZodEnum<{
3946
+ x1: "x1";
3947
+ x2: "x2";
3948
+ y1: "y1";
3949
+ y2: "y2";
3950
+ y3: "y3";
3951
+ y4: "y4";
3952
+ }>;
3953
+ tickSpacing: z.ZodNumber;
3954
+ }, z.core.$strip>;
3955
+ }, z.core.$strip>, z.ZodObject<{
3956
+ type: z.ZodLiteral<"set_axis_type">;
3957
+ setAxisType: z.ZodObject<{
3958
+ key: z.ZodEnum<{
3959
+ x1: "x1";
3960
+ x2: "x2";
3961
+ y1: "y1";
3962
+ y2: "y2";
3963
+ y3: "y3";
3964
+ y4: "y4";
3965
+ }>;
3966
+ type: z.ZodOptional<z.ZodEnum<{
3967
+ time: "time";
3968
+ linear: "linear";
3969
+ }>>;
3970
+ }, z.core.$strip>;
3971
+ }, z.core.$strip>, z.ZodObject<{
3972
+ type: z.ZodLiteral<"set_line_label">;
3973
+ setLineLabel: z.ZodObject<{
3974
+ key: z.ZodString;
3975
+ label: z.ZodOptional<z.ZodString>;
3976
+ }, z.core.$strip>;
3977
+ }, z.core.$strip>, z.ZodObject<{
3978
+ type: z.ZodLiteral<"set_line_color">;
3979
+ setLineColor: z.ZodObject<{
3980
+ key: z.ZodString;
3981
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
3982
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
3983
+ }, z.core.$strip>, z.ZodObject<{
3984
+ r: z.ZodInt;
3985
+ g: z.ZodInt;
3986
+ b: z.ZodInt;
3987
+ a: z.ZodNumber;
3988
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
3989
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
3990
+ }, z.core.$strip>, z.ZodObject<{
3991
+ r: z.ZodInt;
3992
+ g: z.ZodInt;
3993
+ b: z.ZodInt;
3994
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
3995
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
3996
+ rgba255: [number, number, number, number];
3997
+ } | {
3998
+ r: number;
3999
+ g: number;
4000
+ b: number;
4001
+ a: number;
4002
+ } | {
4003
+ rgba255: [number, number, number, number];
4004
+ } | {
4005
+ r: number;
4006
+ g: number;
4007
+ b: number;
4008
+ a: number;
4009
+ }>>>;
4010
+ }, z.core.$strip>;
4011
+ }, z.core.$strip>, z.ZodObject<{
4012
+ type: z.ZodLiteral<"set_line_stroke_width">;
4013
+ setLineStrokeWidth: z.ZodObject<{
4014
+ key: z.ZodString;
4015
+ strokeWidth: z.ZodNumber;
4016
+ }, z.core.$strip>;
4017
+ }, z.core.$strip>, z.ZodObject<{
4018
+ type: z.ZodLiteral<"set_line_downsample">;
4019
+ setLineDownsample: z.ZodObject<{
4020
+ key: z.ZodString;
4021
+ downsample: z.ZodUInt32;
4022
+ }, z.core.$strip>;
4023
+ }, z.core.$strip>, z.ZodObject<{
4024
+ type: z.ZodLiteral<"set_line_downsample_mode">;
4025
+ setLineDownsampleMode: z.ZodObject<{
4026
+ key: z.ZodString;
4027
+ downsampleMode: z.ZodEnum<{
4028
+ average: "average";
4029
+ decimate: "decimate";
4030
+ }>;
4031
+ }, z.core.$strip>;
4032
+ }, z.core.$strip>, z.ZodObject<{
4033
+ type: z.ZodLiteral<"set_line">;
4034
+ setLine: z.ZodObject<{
4035
+ line: z.ZodObject<{
4036
+ key: z.ZodString;
4037
+ label: z.ZodOptional<z.ZodString>;
4038
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
4039
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
4040
+ }, z.core.$strip>, z.ZodObject<{
4041
+ r: z.ZodInt;
4042
+ g: z.ZodInt;
4043
+ b: z.ZodInt;
4044
+ a: z.ZodNumber;
4045
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
4046
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
4047
+ }, z.core.$strip>, z.ZodObject<{
4048
+ r: z.ZodInt;
4049
+ g: z.ZodInt;
4050
+ b: z.ZodInt;
4051
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
4052
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
4053
+ rgba255: [number, number, number, number];
4054
+ } | {
4055
+ r: number;
4056
+ g: number;
4057
+ b: number;
4058
+ a: number;
4059
+ } | {
4060
+ rgba255: [number, number, number, number];
4061
+ } | {
4062
+ r: number;
4063
+ g: number;
4064
+ b: number;
4065
+ a: number;
4066
+ }>>>;
4067
+ strokeWidth: z.ZodDefault<z.ZodNumber>;
4068
+ downsample: z.ZodDefault<z.ZodUInt32>;
4069
+ downsampleMode: z.ZodDefault<z.ZodEnum<{
4070
+ average: "average";
4071
+ decimate: "decimate";
4072
+ }>>;
4073
+ }, z.core.$strip>;
4074
+ }, z.core.$strip>;
4075
+ }, z.core.$strip>, z.ZodObject<{
4076
+ type: z.ZodLiteral<"set_rule">;
4077
+ setRule: z.ZodObject<{
4078
+ rule: z.ZodObject<{
4079
+ key: z.ZodString;
4080
+ label: z.ZodString;
4081
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
4082
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
4083
+ }, z.core.$strip>, z.ZodObject<{
4084
+ r: z.ZodInt;
4085
+ g: z.ZodInt;
4086
+ b: z.ZodInt;
4087
+ a: z.ZodNumber;
4088
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
4089
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
4090
+ }, z.core.$strip>, z.ZodObject<{
4091
+ r: z.ZodInt;
4092
+ g: z.ZodInt;
4093
+ b: z.ZodInt;
4094
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
4095
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
4096
+ rgba255: [number, number, number, number];
4097
+ } | {
4098
+ r: number;
4099
+ g: number;
4100
+ b: number;
4101
+ a: number;
4102
+ } | {
4103
+ rgba255: [number, number, number, number];
4104
+ } | {
4105
+ r: number;
4106
+ g: number;
4107
+ b: number;
4108
+ a: number;
4109
+ }>>>;
4110
+ axis: z.ZodEnum<{
4111
+ x1: "x1";
4112
+ x2: "x2";
4113
+ y1: "y1";
4114
+ y2: "y2";
4115
+ y3: "y3";
4116
+ y4: "y4";
4117
+ }>;
4118
+ lineWidth: z.ZodDefault<z.ZodNumber>;
4119
+ lineDash: z.ZodDefault<z.ZodNumber>;
4120
+ units: z.ZodDefault<z.ZodString>;
4121
+ position: z.ZodNumber;
4122
+ }, z.core.$strip>;
4123
+ }, z.core.$strip>;
4124
+ }, z.core.$strip>, z.ZodObject<{
4125
+ type: z.ZodLiteral<"set_rule_label">;
4126
+ setRuleLabel: z.ZodObject<{
4127
+ key: z.ZodString;
4128
+ label: z.ZodString;
4129
+ }, z.core.$strip>;
4130
+ }, z.core.$strip>, z.ZodObject<{
4131
+ type: z.ZodLiteral<"set_rule_color">;
4132
+ setRuleColor: z.ZodObject<{
4133
+ key: z.ZodString;
4134
+ color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
4135
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodNumber], null>;
4136
+ }, z.core.$strip>, z.ZodObject<{
4137
+ r: z.ZodInt;
4138
+ g: z.ZodInt;
4139
+ b: z.ZodInt;
4140
+ a: z.ZodNumber;
4141
+ }, z.core.$strip>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>, z.ZodObject<{
4142
+ rgba255: z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt, z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>], null>;
4143
+ }, z.core.$strip>, z.ZodObject<{
4144
+ r: z.ZodInt;
4145
+ g: z.ZodInt;
4146
+ b: z.ZodInt;
4147
+ a: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
4148
+ }, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
4149
+ rgba255: [number, number, number, number];
4150
+ } | {
4151
+ r: number;
4152
+ g: number;
4153
+ b: number;
4154
+ a: number;
4155
+ } | {
4156
+ rgba255: [number, number, number, number];
4157
+ } | {
4158
+ r: number;
4159
+ g: number;
4160
+ b: number;
4161
+ a: number;
4162
+ }>>>;
4163
+ }, z.core.$strip>;
4164
+ }, z.core.$strip>, z.ZodObject<{
4165
+ type: z.ZodLiteral<"set_rule_axis">;
4166
+ setRuleAxis: z.ZodObject<{
4167
+ key: z.ZodString;
4168
+ axis: z.ZodEnum<{
4169
+ x1: "x1";
4170
+ x2: "x2";
4171
+ y1: "y1";
4172
+ y2: "y2";
4173
+ y3: "y3";
4174
+ y4: "y4";
4175
+ }>;
4176
+ }, z.core.$strip>;
4177
+ }, z.core.$strip>, z.ZodObject<{
4178
+ type: z.ZodLiteral<"set_rule_line_width">;
4179
+ setRuleLineWidth: z.ZodObject<{
4180
+ key: z.ZodString;
4181
+ lineWidth: z.ZodNumber;
4182
+ }, z.core.$strip>;
4183
+ }, z.core.$strip>, z.ZodObject<{
4184
+ type: z.ZodLiteral<"set_rule_line_dash">;
4185
+ setRuleLineDash: z.ZodObject<{
4186
+ key: z.ZodString;
4187
+ lineDash: z.ZodNumber;
4188
+ }, z.core.$strip>;
4189
+ }, z.core.$strip>, z.ZodObject<{
4190
+ type: z.ZodLiteral<"set_rule_units">;
4191
+ setRuleUnits: z.ZodObject<{
4192
+ key: z.ZodString;
4193
+ units: z.ZodString;
4194
+ }, z.core.$strip>;
4195
+ }, z.core.$strip>, z.ZodObject<{
4196
+ type: z.ZodLiteral<"set_rule_position">;
4197
+ setRulePosition: z.ZodObject<{
4198
+ key: z.ZodString;
4199
+ position: z.ZodNumber;
4200
+ }, z.core.$strip>;
4201
+ }, z.core.$strip>, z.ZodObject<{
4202
+ type: z.ZodLiteral<"remove_rule">;
4203
+ removeRule: z.ZodObject<{
4204
+ key: z.ZodString;
4205
+ }, z.core.$strip>;
4206
+ }, z.core.$strip>], "type">>;
4207
+ }, z.core.$strip>;
4208
+ //# sourceMappingURL=actions.gen.d.ts.map