@unovis/mcp 1.7.0-mcp.1 → 1.7.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 (130) hide show
  1. package/README.md +3 -2
  2. package/dist/cli.js +7 -0
  3. package/dist/cli.js.map +1 -1
  4. package/dist/codegen/index.js +23 -8
  5. package/dist/codegen/index.js.map +1 -1
  6. package/dist/html/document.d.ts +16 -3
  7. package/dist/html/document.js +50 -20
  8. package/dist/html/document.js.map +1 -1
  9. package/dist/index.d.ts +7 -6
  10. package/dist/index.js +6 -3
  11. package/dist/index.js.map +1 -1
  12. package/dist/recipes/area.d.ts +3 -2
  13. package/dist/recipes/bar.d.ts +4 -3
  14. package/dist/recipes/bar.js +4 -1
  15. package/dist/recipes/bar.js.map +1 -1
  16. package/dist/recipes/boxplot.d.ts +3 -2
  17. package/dist/recipes/chord.d.ts +1 -0
  18. package/dist/recipes/choropleth.d.ts +1 -0
  19. package/dist/recipes/donut.d.ts +1 -0
  20. package/dist/recipes/graph.d.ts +1 -0
  21. package/dist/recipes/heatmap.d.ts +1 -0
  22. package/dist/recipes/index.d.ts +2 -0
  23. package/dist/recipes/index.js +3 -0
  24. package/dist/recipes/index.js.map +1 -1
  25. package/dist/recipes/line.d.ts +3 -2
  26. package/dist/recipes/nested-donut.d.ts +1 -0
  27. package/dist/recipes/radial-bar.d.ts +1 -0
  28. package/dist/recipes/sankey.d.ts +1 -0
  29. package/dist/recipes/scatter.d.ts +3 -2
  30. package/dist/recipes/shared.d.ts +6 -10
  31. package/dist/recipes/shared.js +7 -53
  32. package/dist/recipes/shared.js.map +1 -1
  33. package/dist/recipes/timeline.d.ts +1 -0
  34. package/dist/recipes/treemap.d.ts +1 -0
  35. package/dist/render/materialize.d.ts +9 -3
  36. package/dist/render/materialize.js +66 -27
  37. package/dist/render/materialize.js.map +1 -1
  38. package/dist/render/renderer.d.ts +2 -7
  39. package/dist/render/renderer.js +1 -1
  40. package/dist/render/renderer.js.map +1 -1
  41. package/dist/render/spec-schema.d.ts +1180 -0
  42. package/dist/render/spec-schema.js +71 -0
  43. package/dist/render/spec-schema.js.map +1 -0
  44. package/dist/render/spec.d.ts +15 -7
  45. package/dist/render/spec.js +9 -8
  46. package/dist/render/spec.js.map +1 -1
  47. package/dist/render/time-ticks.d.ts +10 -0
  48. package/dist/render/time-ticks.js +56 -0
  49. package/dist/render/time-ticks.js.map +1 -0
  50. package/dist/server.js +12 -3
  51. package/dist/server.js.map +1 -1
  52. package/dist/tools/register.d.ts +20 -1
  53. package/dist/tools/register.js +98 -15
  54. package/dist/tools/register.js.map +1 -1
  55. package/dist/widget/bundle.js +470 -465
  56. package/dist/widget/bundle.meta.json +2 -1
  57. package/dist/widget/bundle.standard.js +799 -0
  58. package/dist/widget/entry.d.ts +4 -0
  59. package/dist/widget/entry.js +149 -13
  60. package/dist/widget/entry.js.map +1 -1
  61. package/dist/widget/events.d.ts +25 -0
  62. package/dist/widget/events.js +97 -0
  63. package/dist/widget/events.js.map +1 -0
  64. package/dist/widget/interactions.js +22 -12
  65. package/dist/widget/interactions.js.map +1 -1
  66. package/dist/widget/unpack.d.ts +1 -0
  67. package/dist/widget/unpack.js +1 -0
  68. package/dist/widget/unpack.js.map +1 -0
  69. package/dist/widget/variants.d.ts +14 -0
  70. package/dist/widget/variants.js +22 -0
  71. package/dist/widget/variants.js.map +1 -0
  72. package/docs/README.md +2 -1
  73. package/docs/architecture.md +29 -76
  74. package/docs/chart-spec.md +41 -0
  75. package/docs/getting-started.md +5 -0
  76. package/docs/interactive.md +72 -14
  77. package/docs/output-types.md +9 -9
  78. package/docs/programmatic.md +24 -0
  79. package/docs/tools.md +7 -7
  80. package/docs/troubleshooting.md +14 -44
  81. package/docs/webview.md +83 -0
  82. package/package.json +35 -13
  83. package/schema/chart-spec.v0.1.baseline.json +309 -0
  84. package/schema/chart-spec.v0.1.json +309 -0
  85. package/dist/env/bbox.d.ts +0 -13
  86. package/dist/env/bbox.js +0 -335
  87. package/dist/env/bbox.js.map +0 -1
  88. package/dist/env/canvas.d.ts +0 -9
  89. package/dist/env/canvas.js +0 -55
  90. package/dist/env/canvas.js.map +0 -1
  91. package/dist/env/computed-style.d.ts +0 -38
  92. package/dist/env/computed-style.js +0 -186
  93. package/dist/env/computed-style.js.map +0 -1
  94. package/dist/env/fonts.d.ts +0 -3
  95. package/dist/env/fonts.js +0 -103
  96. package/dist/env/fonts.js.map +0 -1
  97. package/dist/env/index.d.ts +0 -13
  98. package/dist/env/index.js +0 -121
  99. package/dist/env/index.js.map +0 -1
  100. package/dist/env/raf-queue.d.ts +0 -23
  101. package/dist/env/raf-queue.js +0 -51
  102. package/dist/env/raf-queue.js.map +0 -1
  103. package/dist/env/size.d.ts +0 -9
  104. package/dist/env/size.js +0 -30
  105. package/dist/env/size.js.map +0 -1
  106. package/dist/render/headless.d.ts +0 -62
  107. package/dist/render/headless.js +0 -158
  108. package/dist/render/headless.js.map +0 -1
  109. package/dist/render/mutex.d.ts +0 -9
  110. package/dist/render/mutex.js +0 -14
  111. package/dist/render/mutex.js.map +0 -1
  112. package/dist/render/rasterize.d.ts +0 -10
  113. package/dist/render/rasterize.js +0 -29
  114. package/dist/render/rasterize.js.map +0 -1
  115. package/dist/svg/collect-css.d.ts +0 -14
  116. package/dist/svg/collect-css.js +0 -53
  117. package/dist/svg/collect-css.js.map +0 -1
  118. package/dist/svg/css-vars.d.ts +0 -17
  119. package/dist/svg/css-vars.js +0 -64
  120. package/dist/svg/css-vars.js.map +0 -1
  121. package/dist/svg/header.d.ts +0 -8
  122. package/dist/svg/header.js +0 -81
  123. package/dist/svg/header.js.map +0 -1
  124. package/dist/svg/ids.d.ts +0 -12
  125. package/dist/svg/ids.js +0 -94
  126. package/dist/svg/ids.js.map +0 -1
  127. package/dist/svg/postprocess.d.ts +0 -41
  128. package/dist/svg/postprocess.js +0 -135
  129. package/dist/svg/postprocess.js.map +0 -1
  130. package/fonts/README.md +0 -19
@@ -0,0 +1,1180 @@
1
+ /** The ChartSpec contract as a zod schema.
2
+ *
3
+ * The TypeScript interface types the IR for this codebase; this schema is the
4
+ * same contract for everyone else — hosts that persist specs, build them by
5
+ * hand, or validate before rendering. `scripts/generate-spec-schema.mjs`
6
+ * emits it as JSON Schema (shipped as `@unovis/mcp/chart-spec.schema.json`),
7
+ * and test/spec-schema.test.ts holds three lines of defense: the emitted file
8
+ * matches this source, every recipe-produced spec validates, and the frozen
9
+ * v1 baseline stays additively compatible.
10
+ */
11
+ import { z } from 'zod';
12
+ /** One schema per accessor form so validation errors name the exact shape */
13
+ export declare const accessorRefSchema: z.ZodUnion<[z.ZodObject<{
14
+ $field: z.ZodString;
15
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ $field: string;
18
+ as?: "string" | "number" | "date" | undefined;
19
+ }, {
20
+ $field: string;
21
+ as?: "string" | "number" | "date" | undefined;
22
+ }>, z.ZodObject<{
23
+ $index: z.ZodLiteral<true>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ $index: true;
26
+ }, {
27
+ $index: true;
28
+ }>, z.ZodObject<{
29
+ $const: z.ZodUnknown;
30
+ }, "strict", z.ZodTypeAny, {
31
+ $const?: unknown;
32
+ }, {
33
+ $const?: unknown;
34
+ }>, z.ZodObject<{
35
+ $dateTickFormat: z.ZodLiteral<true>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ $dateTickFormat: true;
38
+ }, {
39
+ $dateTickFormat: true;
40
+ }>, z.ZodObject<{
41
+ $numTickFormat: z.ZodLiteral<true>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ $numTickFormat: true;
44
+ }, {
45
+ $numTickFormat: true;
46
+ }>, z.ZodObject<{
47
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
48
+ }, "strict", z.ZodTypeAny, {
49
+ $lookup: (string | number)[];
50
+ }, {
51
+ $lookup: (string | number)[];
52
+ }>, z.ZodObject<{
53
+ $format: z.ZodObject<{
54
+ field: z.ZodString;
55
+ prefix: z.ZodOptional<z.ZodString>;
56
+ suffix: z.ZodOptional<z.ZodString>;
57
+ }, "strict", z.ZodTypeAny, {
58
+ field: string;
59
+ prefix?: string | undefined;
60
+ suffix?: string | undefined;
61
+ }, {
62
+ field: string;
63
+ prefix?: string | undefined;
64
+ suffix?: string | undefined;
65
+ }>;
66
+ }, "strict", z.ZodTypeAny, {
67
+ $format: {
68
+ field: string;
69
+ prefix?: string | undefined;
70
+ suffix?: string | undefined;
71
+ };
72
+ }, {
73
+ $format: {
74
+ field: string;
75
+ prefix?: string | undefined;
76
+ suffix?: string | undefined;
77
+ };
78
+ }>, z.ZodObject<{
79
+ $mapField: z.ZodObject<{
80
+ field: z.ZodString;
81
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
82
+ fallback: z.ZodOptional<z.ZodString>;
83
+ }, "strict", z.ZodTypeAny, {
84
+ field: string;
85
+ mapping: Record<string, string>;
86
+ fallback?: string | undefined;
87
+ }, {
88
+ field: string;
89
+ mapping: Record<string, string>;
90
+ fallback?: string | undefined;
91
+ }>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ $mapField: {
94
+ field: string;
95
+ mapping: Record<string, string>;
96
+ fallback?: string | undefined;
97
+ };
98
+ }, {
99
+ $mapField: {
100
+ field: string;
101
+ mapping: Record<string, string>;
102
+ fallback?: string | undefined;
103
+ };
104
+ }>]>;
105
+ export declare const chartSpecSchema: z.ZodObject<{
106
+ specVersion: z.ZodOptional<z.ZodString>;
107
+ container: z.ZodEnum<["xy", "single"]>;
108
+ width: z.ZodNumber;
109
+ height: z.ZodNumber;
110
+ theme: z.ZodEnum<["light", "dark"]>;
111
+ title: z.ZodOptional<z.ZodString>;
112
+ /** Extra container options — deliberately open: the escape hatch to Unovis
113
+ * config the tool schemas don't expose */
114
+ containerConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
+ components: z.ZodArray<z.ZodObject<{
116
+ type: z.ZodEnum<[string, ...string[]]>;
117
+ /** Component config is open for the same reason as containerConfig;
118
+ * accessor descriptors are validated where they appear in typed slots */
119
+ config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ type: string;
122
+ config: Record<string, unknown>;
123
+ }, {
124
+ type: string;
125
+ config: Record<string, unknown>;
126
+ }>, "many">;
127
+ xAxis: z.ZodOptional<z.ZodObject<{
128
+ label: z.ZodOptional<z.ZodString>;
129
+ gridLine: z.ZodOptional<z.ZodBoolean>;
130
+ numTicks: z.ZodOptional<z.ZodNumber>;
131
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
132
+ $field: z.ZodString;
133
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
134
+ }, "strict", z.ZodTypeAny, {
135
+ $field: string;
136
+ as?: "string" | "number" | "date" | undefined;
137
+ }, {
138
+ $field: string;
139
+ as?: "string" | "number" | "date" | undefined;
140
+ }>, z.ZodObject<{
141
+ $index: z.ZodLiteral<true>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ $index: true;
144
+ }, {
145
+ $index: true;
146
+ }>, z.ZodObject<{
147
+ $const: z.ZodUnknown;
148
+ }, "strict", z.ZodTypeAny, {
149
+ $const?: unknown;
150
+ }, {
151
+ $const?: unknown;
152
+ }>, z.ZodObject<{
153
+ $dateTickFormat: z.ZodLiteral<true>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ $dateTickFormat: true;
156
+ }, {
157
+ $dateTickFormat: true;
158
+ }>, z.ZodObject<{
159
+ $numTickFormat: z.ZodLiteral<true>;
160
+ }, "strict", z.ZodTypeAny, {
161
+ $numTickFormat: true;
162
+ }, {
163
+ $numTickFormat: true;
164
+ }>, z.ZodObject<{
165
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
166
+ }, "strict", z.ZodTypeAny, {
167
+ $lookup: (string | number)[];
168
+ }, {
169
+ $lookup: (string | number)[];
170
+ }>, z.ZodObject<{
171
+ $format: z.ZodObject<{
172
+ field: z.ZodString;
173
+ prefix: z.ZodOptional<z.ZodString>;
174
+ suffix: z.ZodOptional<z.ZodString>;
175
+ }, "strict", z.ZodTypeAny, {
176
+ field: string;
177
+ prefix?: string | undefined;
178
+ suffix?: string | undefined;
179
+ }, {
180
+ field: string;
181
+ prefix?: string | undefined;
182
+ suffix?: string | undefined;
183
+ }>;
184
+ }, "strict", z.ZodTypeAny, {
185
+ $format: {
186
+ field: string;
187
+ prefix?: string | undefined;
188
+ suffix?: string | undefined;
189
+ };
190
+ }, {
191
+ $format: {
192
+ field: string;
193
+ prefix?: string | undefined;
194
+ suffix?: string | undefined;
195
+ };
196
+ }>, z.ZodObject<{
197
+ $mapField: z.ZodObject<{
198
+ field: z.ZodString;
199
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
200
+ fallback: z.ZodOptional<z.ZodString>;
201
+ }, "strict", z.ZodTypeAny, {
202
+ field: string;
203
+ mapping: Record<string, string>;
204
+ fallback?: string | undefined;
205
+ }, {
206
+ field: string;
207
+ mapping: Record<string, string>;
208
+ fallback?: string | undefined;
209
+ }>;
210
+ }, "strict", z.ZodTypeAny, {
211
+ $mapField: {
212
+ field: string;
213
+ mapping: Record<string, string>;
214
+ fallback?: string | undefined;
215
+ };
216
+ }, {
217
+ $mapField: {
218
+ field: string;
219
+ mapping: Record<string, string>;
220
+ fallback?: string | undefined;
221
+ };
222
+ }>]>>;
223
+ domainLine: z.ZodOptional<z.ZodBoolean>;
224
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
225
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
226
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
227
+ label: z.ZodOptional<z.ZodString>;
228
+ gridLine: z.ZodOptional<z.ZodBoolean>;
229
+ numTicks: z.ZodOptional<z.ZodNumber>;
230
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
231
+ $field: z.ZodString;
232
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
233
+ }, "strict", z.ZodTypeAny, {
234
+ $field: string;
235
+ as?: "string" | "number" | "date" | undefined;
236
+ }, {
237
+ $field: string;
238
+ as?: "string" | "number" | "date" | undefined;
239
+ }>, z.ZodObject<{
240
+ $index: z.ZodLiteral<true>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ $index: true;
243
+ }, {
244
+ $index: true;
245
+ }>, z.ZodObject<{
246
+ $const: z.ZodUnknown;
247
+ }, "strict", z.ZodTypeAny, {
248
+ $const?: unknown;
249
+ }, {
250
+ $const?: unknown;
251
+ }>, z.ZodObject<{
252
+ $dateTickFormat: z.ZodLiteral<true>;
253
+ }, "strict", z.ZodTypeAny, {
254
+ $dateTickFormat: true;
255
+ }, {
256
+ $dateTickFormat: true;
257
+ }>, z.ZodObject<{
258
+ $numTickFormat: z.ZodLiteral<true>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ $numTickFormat: true;
261
+ }, {
262
+ $numTickFormat: true;
263
+ }>, z.ZodObject<{
264
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
265
+ }, "strict", z.ZodTypeAny, {
266
+ $lookup: (string | number)[];
267
+ }, {
268
+ $lookup: (string | number)[];
269
+ }>, z.ZodObject<{
270
+ $format: z.ZodObject<{
271
+ field: z.ZodString;
272
+ prefix: z.ZodOptional<z.ZodString>;
273
+ suffix: z.ZodOptional<z.ZodString>;
274
+ }, "strict", z.ZodTypeAny, {
275
+ field: string;
276
+ prefix?: string | undefined;
277
+ suffix?: string | undefined;
278
+ }, {
279
+ field: string;
280
+ prefix?: string | undefined;
281
+ suffix?: string | undefined;
282
+ }>;
283
+ }, "strict", z.ZodTypeAny, {
284
+ $format: {
285
+ field: string;
286
+ prefix?: string | undefined;
287
+ suffix?: string | undefined;
288
+ };
289
+ }, {
290
+ $format: {
291
+ field: string;
292
+ prefix?: string | undefined;
293
+ suffix?: string | undefined;
294
+ };
295
+ }>, z.ZodObject<{
296
+ $mapField: z.ZodObject<{
297
+ field: z.ZodString;
298
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
299
+ fallback: z.ZodOptional<z.ZodString>;
300
+ }, "strict", z.ZodTypeAny, {
301
+ field: string;
302
+ mapping: Record<string, string>;
303
+ fallback?: string | undefined;
304
+ }, {
305
+ field: string;
306
+ mapping: Record<string, string>;
307
+ fallback?: string | undefined;
308
+ }>;
309
+ }, "strict", z.ZodTypeAny, {
310
+ $mapField: {
311
+ field: string;
312
+ mapping: Record<string, string>;
313
+ fallback?: string | undefined;
314
+ };
315
+ }, {
316
+ $mapField: {
317
+ field: string;
318
+ mapping: Record<string, string>;
319
+ fallback?: string | undefined;
320
+ };
321
+ }>]>>;
322
+ domainLine: z.ZodOptional<z.ZodBoolean>;
323
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
324
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
325
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
326
+ label: z.ZodOptional<z.ZodString>;
327
+ gridLine: z.ZodOptional<z.ZodBoolean>;
328
+ numTicks: z.ZodOptional<z.ZodNumber>;
329
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
330
+ $field: z.ZodString;
331
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
332
+ }, "strict", z.ZodTypeAny, {
333
+ $field: string;
334
+ as?: "string" | "number" | "date" | undefined;
335
+ }, {
336
+ $field: string;
337
+ as?: "string" | "number" | "date" | undefined;
338
+ }>, z.ZodObject<{
339
+ $index: z.ZodLiteral<true>;
340
+ }, "strict", z.ZodTypeAny, {
341
+ $index: true;
342
+ }, {
343
+ $index: true;
344
+ }>, z.ZodObject<{
345
+ $const: z.ZodUnknown;
346
+ }, "strict", z.ZodTypeAny, {
347
+ $const?: unknown;
348
+ }, {
349
+ $const?: unknown;
350
+ }>, z.ZodObject<{
351
+ $dateTickFormat: z.ZodLiteral<true>;
352
+ }, "strict", z.ZodTypeAny, {
353
+ $dateTickFormat: true;
354
+ }, {
355
+ $dateTickFormat: true;
356
+ }>, z.ZodObject<{
357
+ $numTickFormat: z.ZodLiteral<true>;
358
+ }, "strict", z.ZodTypeAny, {
359
+ $numTickFormat: true;
360
+ }, {
361
+ $numTickFormat: true;
362
+ }>, z.ZodObject<{
363
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
364
+ }, "strict", z.ZodTypeAny, {
365
+ $lookup: (string | number)[];
366
+ }, {
367
+ $lookup: (string | number)[];
368
+ }>, z.ZodObject<{
369
+ $format: z.ZodObject<{
370
+ field: z.ZodString;
371
+ prefix: z.ZodOptional<z.ZodString>;
372
+ suffix: z.ZodOptional<z.ZodString>;
373
+ }, "strict", z.ZodTypeAny, {
374
+ field: string;
375
+ prefix?: string | undefined;
376
+ suffix?: string | undefined;
377
+ }, {
378
+ field: string;
379
+ prefix?: string | undefined;
380
+ suffix?: string | undefined;
381
+ }>;
382
+ }, "strict", z.ZodTypeAny, {
383
+ $format: {
384
+ field: string;
385
+ prefix?: string | undefined;
386
+ suffix?: string | undefined;
387
+ };
388
+ }, {
389
+ $format: {
390
+ field: string;
391
+ prefix?: string | undefined;
392
+ suffix?: string | undefined;
393
+ };
394
+ }>, z.ZodObject<{
395
+ $mapField: z.ZodObject<{
396
+ field: z.ZodString;
397
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
398
+ fallback: z.ZodOptional<z.ZodString>;
399
+ }, "strict", z.ZodTypeAny, {
400
+ field: string;
401
+ mapping: Record<string, string>;
402
+ fallback?: string | undefined;
403
+ }, {
404
+ field: string;
405
+ mapping: Record<string, string>;
406
+ fallback?: string | undefined;
407
+ }>;
408
+ }, "strict", z.ZodTypeAny, {
409
+ $mapField: {
410
+ field: string;
411
+ mapping: Record<string, string>;
412
+ fallback?: string | undefined;
413
+ };
414
+ }, {
415
+ $mapField: {
416
+ field: string;
417
+ mapping: Record<string, string>;
418
+ fallback?: string | undefined;
419
+ };
420
+ }>]>>;
421
+ domainLine: z.ZodOptional<z.ZodBoolean>;
422
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
423
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
424
+ }, z.ZodUnknown, "strip">>>;
425
+ yAxis: z.ZodOptional<z.ZodObject<{
426
+ label: z.ZodOptional<z.ZodString>;
427
+ gridLine: z.ZodOptional<z.ZodBoolean>;
428
+ numTicks: z.ZodOptional<z.ZodNumber>;
429
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
430
+ $field: z.ZodString;
431
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
432
+ }, "strict", z.ZodTypeAny, {
433
+ $field: string;
434
+ as?: "string" | "number" | "date" | undefined;
435
+ }, {
436
+ $field: string;
437
+ as?: "string" | "number" | "date" | undefined;
438
+ }>, z.ZodObject<{
439
+ $index: z.ZodLiteral<true>;
440
+ }, "strict", z.ZodTypeAny, {
441
+ $index: true;
442
+ }, {
443
+ $index: true;
444
+ }>, z.ZodObject<{
445
+ $const: z.ZodUnknown;
446
+ }, "strict", z.ZodTypeAny, {
447
+ $const?: unknown;
448
+ }, {
449
+ $const?: unknown;
450
+ }>, z.ZodObject<{
451
+ $dateTickFormat: z.ZodLiteral<true>;
452
+ }, "strict", z.ZodTypeAny, {
453
+ $dateTickFormat: true;
454
+ }, {
455
+ $dateTickFormat: true;
456
+ }>, z.ZodObject<{
457
+ $numTickFormat: z.ZodLiteral<true>;
458
+ }, "strict", z.ZodTypeAny, {
459
+ $numTickFormat: true;
460
+ }, {
461
+ $numTickFormat: true;
462
+ }>, z.ZodObject<{
463
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
464
+ }, "strict", z.ZodTypeAny, {
465
+ $lookup: (string | number)[];
466
+ }, {
467
+ $lookup: (string | number)[];
468
+ }>, z.ZodObject<{
469
+ $format: z.ZodObject<{
470
+ field: z.ZodString;
471
+ prefix: z.ZodOptional<z.ZodString>;
472
+ suffix: z.ZodOptional<z.ZodString>;
473
+ }, "strict", z.ZodTypeAny, {
474
+ field: string;
475
+ prefix?: string | undefined;
476
+ suffix?: string | undefined;
477
+ }, {
478
+ field: string;
479
+ prefix?: string | undefined;
480
+ suffix?: string | undefined;
481
+ }>;
482
+ }, "strict", z.ZodTypeAny, {
483
+ $format: {
484
+ field: string;
485
+ prefix?: string | undefined;
486
+ suffix?: string | undefined;
487
+ };
488
+ }, {
489
+ $format: {
490
+ field: string;
491
+ prefix?: string | undefined;
492
+ suffix?: string | undefined;
493
+ };
494
+ }>, z.ZodObject<{
495
+ $mapField: z.ZodObject<{
496
+ field: z.ZodString;
497
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
498
+ fallback: z.ZodOptional<z.ZodString>;
499
+ }, "strict", z.ZodTypeAny, {
500
+ field: string;
501
+ mapping: Record<string, string>;
502
+ fallback?: string | undefined;
503
+ }, {
504
+ field: string;
505
+ mapping: Record<string, string>;
506
+ fallback?: string | undefined;
507
+ }>;
508
+ }, "strict", z.ZodTypeAny, {
509
+ $mapField: {
510
+ field: string;
511
+ mapping: Record<string, string>;
512
+ fallback?: string | undefined;
513
+ };
514
+ }, {
515
+ $mapField: {
516
+ field: string;
517
+ mapping: Record<string, string>;
518
+ fallback?: string | undefined;
519
+ };
520
+ }>]>>;
521
+ domainLine: z.ZodOptional<z.ZodBoolean>;
522
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
523
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
524
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
525
+ label: z.ZodOptional<z.ZodString>;
526
+ gridLine: z.ZodOptional<z.ZodBoolean>;
527
+ numTicks: z.ZodOptional<z.ZodNumber>;
528
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
529
+ $field: z.ZodString;
530
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
531
+ }, "strict", z.ZodTypeAny, {
532
+ $field: string;
533
+ as?: "string" | "number" | "date" | undefined;
534
+ }, {
535
+ $field: string;
536
+ as?: "string" | "number" | "date" | undefined;
537
+ }>, z.ZodObject<{
538
+ $index: z.ZodLiteral<true>;
539
+ }, "strict", z.ZodTypeAny, {
540
+ $index: true;
541
+ }, {
542
+ $index: true;
543
+ }>, z.ZodObject<{
544
+ $const: z.ZodUnknown;
545
+ }, "strict", z.ZodTypeAny, {
546
+ $const?: unknown;
547
+ }, {
548
+ $const?: unknown;
549
+ }>, z.ZodObject<{
550
+ $dateTickFormat: z.ZodLiteral<true>;
551
+ }, "strict", z.ZodTypeAny, {
552
+ $dateTickFormat: true;
553
+ }, {
554
+ $dateTickFormat: true;
555
+ }>, z.ZodObject<{
556
+ $numTickFormat: z.ZodLiteral<true>;
557
+ }, "strict", z.ZodTypeAny, {
558
+ $numTickFormat: true;
559
+ }, {
560
+ $numTickFormat: true;
561
+ }>, z.ZodObject<{
562
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
563
+ }, "strict", z.ZodTypeAny, {
564
+ $lookup: (string | number)[];
565
+ }, {
566
+ $lookup: (string | number)[];
567
+ }>, z.ZodObject<{
568
+ $format: z.ZodObject<{
569
+ field: z.ZodString;
570
+ prefix: z.ZodOptional<z.ZodString>;
571
+ suffix: z.ZodOptional<z.ZodString>;
572
+ }, "strict", z.ZodTypeAny, {
573
+ field: string;
574
+ prefix?: string | undefined;
575
+ suffix?: string | undefined;
576
+ }, {
577
+ field: string;
578
+ prefix?: string | undefined;
579
+ suffix?: string | undefined;
580
+ }>;
581
+ }, "strict", z.ZodTypeAny, {
582
+ $format: {
583
+ field: string;
584
+ prefix?: string | undefined;
585
+ suffix?: string | undefined;
586
+ };
587
+ }, {
588
+ $format: {
589
+ field: string;
590
+ prefix?: string | undefined;
591
+ suffix?: string | undefined;
592
+ };
593
+ }>, z.ZodObject<{
594
+ $mapField: z.ZodObject<{
595
+ field: z.ZodString;
596
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
597
+ fallback: z.ZodOptional<z.ZodString>;
598
+ }, "strict", z.ZodTypeAny, {
599
+ field: string;
600
+ mapping: Record<string, string>;
601
+ fallback?: string | undefined;
602
+ }, {
603
+ field: string;
604
+ mapping: Record<string, string>;
605
+ fallback?: string | undefined;
606
+ }>;
607
+ }, "strict", z.ZodTypeAny, {
608
+ $mapField: {
609
+ field: string;
610
+ mapping: Record<string, string>;
611
+ fallback?: string | undefined;
612
+ };
613
+ }, {
614
+ $mapField: {
615
+ field: string;
616
+ mapping: Record<string, string>;
617
+ fallback?: string | undefined;
618
+ };
619
+ }>]>>;
620
+ domainLine: z.ZodOptional<z.ZodBoolean>;
621
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
622
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
623
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
624
+ label: z.ZodOptional<z.ZodString>;
625
+ gridLine: z.ZodOptional<z.ZodBoolean>;
626
+ numTicks: z.ZodOptional<z.ZodNumber>;
627
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
628
+ $field: z.ZodString;
629
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
630
+ }, "strict", z.ZodTypeAny, {
631
+ $field: string;
632
+ as?: "string" | "number" | "date" | undefined;
633
+ }, {
634
+ $field: string;
635
+ as?: "string" | "number" | "date" | undefined;
636
+ }>, z.ZodObject<{
637
+ $index: z.ZodLiteral<true>;
638
+ }, "strict", z.ZodTypeAny, {
639
+ $index: true;
640
+ }, {
641
+ $index: true;
642
+ }>, z.ZodObject<{
643
+ $const: z.ZodUnknown;
644
+ }, "strict", z.ZodTypeAny, {
645
+ $const?: unknown;
646
+ }, {
647
+ $const?: unknown;
648
+ }>, z.ZodObject<{
649
+ $dateTickFormat: z.ZodLiteral<true>;
650
+ }, "strict", z.ZodTypeAny, {
651
+ $dateTickFormat: true;
652
+ }, {
653
+ $dateTickFormat: true;
654
+ }>, z.ZodObject<{
655
+ $numTickFormat: z.ZodLiteral<true>;
656
+ }, "strict", z.ZodTypeAny, {
657
+ $numTickFormat: true;
658
+ }, {
659
+ $numTickFormat: true;
660
+ }>, z.ZodObject<{
661
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
662
+ }, "strict", z.ZodTypeAny, {
663
+ $lookup: (string | number)[];
664
+ }, {
665
+ $lookup: (string | number)[];
666
+ }>, z.ZodObject<{
667
+ $format: z.ZodObject<{
668
+ field: z.ZodString;
669
+ prefix: z.ZodOptional<z.ZodString>;
670
+ suffix: z.ZodOptional<z.ZodString>;
671
+ }, "strict", z.ZodTypeAny, {
672
+ field: string;
673
+ prefix?: string | undefined;
674
+ suffix?: string | undefined;
675
+ }, {
676
+ field: string;
677
+ prefix?: string | undefined;
678
+ suffix?: string | undefined;
679
+ }>;
680
+ }, "strict", z.ZodTypeAny, {
681
+ $format: {
682
+ field: string;
683
+ prefix?: string | undefined;
684
+ suffix?: string | undefined;
685
+ };
686
+ }, {
687
+ $format: {
688
+ field: string;
689
+ prefix?: string | undefined;
690
+ suffix?: string | undefined;
691
+ };
692
+ }>, z.ZodObject<{
693
+ $mapField: z.ZodObject<{
694
+ field: z.ZodString;
695
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
696
+ fallback: z.ZodOptional<z.ZodString>;
697
+ }, "strict", z.ZodTypeAny, {
698
+ field: string;
699
+ mapping: Record<string, string>;
700
+ fallback?: string | undefined;
701
+ }, {
702
+ field: string;
703
+ mapping: Record<string, string>;
704
+ fallback?: string | undefined;
705
+ }>;
706
+ }, "strict", z.ZodTypeAny, {
707
+ $mapField: {
708
+ field: string;
709
+ mapping: Record<string, string>;
710
+ fallback?: string | undefined;
711
+ };
712
+ }, {
713
+ $mapField: {
714
+ field: string;
715
+ mapping: Record<string, string>;
716
+ fallback?: string | undefined;
717
+ };
718
+ }>]>>;
719
+ domainLine: z.ZodOptional<z.ZodBoolean>;
720
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
721
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
722
+ }, z.ZodUnknown, "strip">>>;
723
+ colors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
724
+ locale: z.ZodOptional<z.ZodString>;
725
+ legend: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
+ name: z.ZodString;
727
+ color: z.ZodOptional<z.ZodString>;
728
+ paletteIndex: z.ZodOptional<z.ZodNumber>;
729
+ }, "strict", z.ZodTypeAny, {
730
+ name: string;
731
+ color?: string | undefined;
732
+ paletteIndex?: number | undefined;
733
+ }, {
734
+ name: string;
735
+ color?: string | undefined;
736
+ paletteIndex?: number | undefined;
737
+ }>, "many">>;
738
+ data: z.ZodUnknown;
739
+ }, "strict", z.ZodTypeAny, {
740
+ width: number;
741
+ components: {
742
+ type: string;
743
+ config: Record<string, unknown>;
744
+ }[];
745
+ height: number;
746
+ theme: "light" | "dark";
747
+ container: "xy" | "single";
748
+ xAxis?: z.objectOutputType<{
749
+ label: z.ZodOptional<z.ZodString>;
750
+ gridLine: z.ZodOptional<z.ZodBoolean>;
751
+ numTicks: z.ZodOptional<z.ZodNumber>;
752
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
753
+ $field: z.ZodString;
754
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
755
+ }, "strict", z.ZodTypeAny, {
756
+ $field: string;
757
+ as?: "string" | "number" | "date" | undefined;
758
+ }, {
759
+ $field: string;
760
+ as?: "string" | "number" | "date" | undefined;
761
+ }>, z.ZodObject<{
762
+ $index: z.ZodLiteral<true>;
763
+ }, "strict", z.ZodTypeAny, {
764
+ $index: true;
765
+ }, {
766
+ $index: true;
767
+ }>, z.ZodObject<{
768
+ $const: z.ZodUnknown;
769
+ }, "strict", z.ZodTypeAny, {
770
+ $const?: unknown;
771
+ }, {
772
+ $const?: unknown;
773
+ }>, z.ZodObject<{
774
+ $dateTickFormat: z.ZodLiteral<true>;
775
+ }, "strict", z.ZodTypeAny, {
776
+ $dateTickFormat: true;
777
+ }, {
778
+ $dateTickFormat: true;
779
+ }>, z.ZodObject<{
780
+ $numTickFormat: z.ZodLiteral<true>;
781
+ }, "strict", z.ZodTypeAny, {
782
+ $numTickFormat: true;
783
+ }, {
784
+ $numTickFormat: true;
785
+ }>, z.ZodObject<{
786
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
787
+ }, "strict", z.ZodTypeAny, {
788
+ $lookup: (string | number)[];
789
+ }, {
790
+ $lookup: (string | number)[];
791
+ }>, z.ZodObject<{
792
+ $format: z.ZodObject<{
793
+ field: z.ZodString;
794
+ prefix: z.ZodOptional<z.ZodString>;
795
+ suffix: z.ZodOptional<z.ZodString>;
796
+ }, "strict", z.ZodTypeAny, {
797
+ field: string;
798
+ prefix?: string | undefined;
799
+ suffix?: string | undefined;
800
+ }, {
801
+ field: string;
802
+ prefix?: string | undefined;
803
+ suffix?: string | undefined;
804
+ }>;
805
+ }, "strict", z.ZodTypeAny, {
806
+ $format: {
807
+ field: string;
808
+ prefix?: string | undefined;
809
+ suffix?: string | undefined;
810
+ };
811
+ }, {
812
+ $format: {
813
+ field: string;
814
+ prefix?: string | undefined;
815
+ suffix?: string | undefined;
816
+ };
817
+ }>, z.ZodObject<{
818
+ $mapField: z.ZodObject<{
819
+ field: z.ZodString;
820
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
821
+ fallback: z.ZodOptional<z.ZodString>;
822
+ }, "strict", z.ZodTypeAny, {
823
+ field: string;
824
+ mapping: Record<string, string>;
825
+ fallback?: string | undefined;
826
+ }, {
827
+ field: string;
828
+ mapping: Record<string, string>;
829
+ fallback?: string | undefined;
830
+ }>;
831
+ }, "strict", z.ZodTypeAny, {
832
+ $mapField: {
833
+ field: string;
834
+ mapping: Record<string, string>;
835
+ fallback?: string | undefined;
836
+ };
837
+ }, {
838
+ $mapField: {
839
+ field: string;
840
+ mapping: Record<string, string>;
841
+ fallback?: string | undefined;
842
+ };
843
+ }>]>>;
844
+ domainLine: z.ZodOptional<z.ZodBoolean>;
845
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
846
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
847
+ }, z.ZodUnknown, "strip"> | undefined;
848
+ yAxis?: z.objectOutputType<{
849
+ label: z.ZodOptional<z.ZodString>;
850
+ gridLine: z.ZodOptional<z.ZodBoolean>;
851
+ numTicks: z.ZodOptional<z.ZodNumber>;
852
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
853
+ $field: z.ZodString;
854
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
855
+ }, "strict", z.ZodTypeAny, {
856
+ $field: string;
857
+ as?: "string" | "number" | "date" | undefined;
858
+ }, {
859
+ $field: string;
860
+ as?: "string" | "number" | "date" | undefined;
861
+ }>, z.ZodObject<{
862
+ $index: z.ZodLiteral<true>;
863
+ }, "strict", z.ZodTypeAny, {
864
+ $index: true;
865
+ }, {
866
+ $index: true;
867
+ }>, z.ZodObject<{
868
+ $const: z.ZodUnknown;
869
+ }, "strict", z.ZodTypeAny, {
870
+ $const?: unknown;
871
+ }, {
872
+ $const?: unknown;
873
+ }>, z.ZodObject<{
874
+ $dateTickFormat: z.ZodLiteral<true>;
875
+ }, "strict", z.ZodTypeAny, {
876
+ $dateTickFormat: true;
877
+ }, {
878
+ $dateTickFormat: true;
879
+ }>, z.ZodObject<{
880
+ $numTickFormat: z.ZodLiteral<true>;
881
+ }, "strict", z.ZodTypeAny, {
882
+ $numTickFormat: true;
883
+ }, {
884
+ $numTickFormat: true;
885
+ }>, z.ZodObject<{
886
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
887
+ }, "strict", z.ZodTypeAny, {
888
+ $lookup: (string | number)[];
889
+ }, {
890
+ $lookup: (string | number)[];
891
+ }>, z.ZodObject<{
892
+ $format: z.ZodObject<{
893
+ field: z.ZodString;
894
+ prefix: z.ZodOptional<z.ZodString>;
895
+ suffix: z.ZodOptional<z.ZodString>;
896
+ }, "strict", z.ZodTypeAny, {
897
+ field: string;
898
+ prefix?: string | undefined;
899
+ suffix?: string | undefined;
900
+ }, {
901
+ field: string;
902
+ prefix?: string | undefined;
903
+ suffix?: string | undefined;
904
+ }>;
905
+ }, "strict", z.ZodTypeAny, {
906
+ $format: {
907
+ field: string;
908
+ prefix?: string | undefined;
909
+ suffix?: string | undefined;
910
+ };
911
+ }, {
912
+ $format: {
913
+ field: string;
914
+ prefix?: string | undefined;
915
+ suffix?: string | undefined;
916
+ };
917
+ }>, z.ZodObject<{
918
+ $mapField: z.ZodObject<{
919
+ field: z.ZodString;
920
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
921
+ fallback: z.ZodOptional<z.ZodString>;
922
+ }, "strict", z.ZodTypeAny, {
923
+ field: string;
924
+ mapping: Record<string, string>;
925
+ fallback?: string | undefined;
926
+ }, {
927
+ field: string;
928
+ mapping: Record<string, string>;
929
+ fallback?: string | undefined;
930
+ }>;
931
+ }, "strict", z.ZodTypeAny, {
932
+ $mapField: {
933
+ field: string;
934
+ mapping: Record<string, string>;
935
+ fallback?: string | undefined;
936
+ };
937
+ }, {
938
+ $mapField: {
939
+ field: string;
940
+ mapping: Record<string, string>;
941
+ fallback?: string | undefined;
942
+ };
943
+ }>]>>;
944
+ domainLine: z.ZodOptional<z.ZodBoolean>;
945
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
946
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
947
+ }, z.ZodUnknown, "strip"> | undefined;
948
+ specVersion?: string | undefined;
949
+ title?: string | undefined;
950
+ colors?: string[] | undefined;
951
+ locale?: string | undefined;
952
+ containerConfig?: Record<string, unknown> | undefined;
953
+ legend?: {
954
+ name: string;
955
+ color?: string | undefined;
956
+ paletteIndex?: number | undefined;
957
+ }[] | undefined;
958
+ data?: unknown;
959
+ }, {
960
+ width: number;
961
+ components: {
962
+ type: string;
963
+ config: Record<string, unknown>;
964
+ }[];
965
+ height: number;
966
+ theme: "light" | "dark";
967
+ container: "xy" | "single";
968
+ xAxis?: z.objectInputType<{
969
+ label: z.ZodOptional<z.ZodString>;
970
+ gridLine: z.ZodOptional<z.ZodBoolean>;
971
+ numTicks: z.ZodOptional<z.ZodNumber>;
972
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
973
+ $field: z.ZodString;
974
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
975
+ }, "strict", z.ZodTypeAny, {
976
+ $field: string;
977
+ as?: "string" | "number" | "date" | undefined;
978
+ }, {
979
+ $field: string;
980
+ as?: "string" | "number" | "date" | undefined;
981
+ }>, z.ZodObject<{
982
+ $index: z.ZodLiteral<true>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ $index: true;
985
+ }, {
986
+ $index: true;
987
+ }>, z.ZodObject<{
988
+ $const: z.ZodUnknown;
989
+ }, "strict", z.ZodTypeAny, {
990
+ $const?: unknown;
991
+ }, {
992
+ $const?: unknown;
993
+ }>, z.ZodObject<{
994
+ $dateTickFormat: z.ZodLiteral<true>;
995
+ }, "strict", z.ZodTypeAny, {
996
+ $dateTickFormat: true;
997
+ }, {
998
+ $dateTickFormat: true;
999
+ }>, z.ZodObject<{
1000
+ $numTickFormat: z.ZodLiteral<true>;
1001
+ }, "strict", z.ZodTypeAny, {
1002
+ $numTickFormat: true;
1003
+ }, {
1004
+ $numTickFormat: true;
1005
+ }>, z.ZodObject<{
1006
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1007
+ }, "strict", z.ZodTypeAny, {
1008
+ $lookup: (string | number)[];
1009
+ }, {
1010
+ $lookup: (string | number)[];
1011
+ }>, z.ZodObject<{
1012
+ $format: z.ZodObject<{
1013
+ field: z.ZodString;
1014
+ prefix: z.ZodOptional<z.ZodString>;
1015
+ suffix: z.ZodOptional<z.ZodString>;
1016
+ }, "strict", z.ZodTypeAny, {
1017
+ field: string;
1018
+ prefix?: string | undefined;
1019
+ suffix?: string | undefined;
1020
+ }, {
1021
+ field: string;
1022
+ prefix?: string | undefined;
1023
+ suffix?: string | undefined;
1024
+ }>;
1025
+ }, "strict", z.ZodTypeAny, {
1026
+ $format: {
1027
+ field: string;
1028
+ prefix?: string | undefined;
1029
+ suffix?: string | undefined;
1030
+ };
1031
+ }, {
1032
+ $format: {
1033
+ field: string;
1034
+ prefix?: string | undefined;
1035
+ suffix?: string | undefined;
1036
+ };
1037
+ }>, z.ZodObject<{
1038
+ $mapField: z.ZodObject<{
1039
+ field: z.ZodString;
1040
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
1041
+ fallback: z.ZodOptional<z.ZodString>;
1042
+ }, "strict", z.ZodTypeAny, {
1043
+ field: string;
1044
+ mapping: Record<string, string>;
1045
+ fallback?: string | undefined;
1046
+ }, {
1047
+ field: string;
1048
+ mapping: Record<string, string>;
1049
+ fallback?: string | undefined;
1050
+ }>;
1051
+ }, "strict", z.ZodTypeAny, {
1052
+ $mapField: {
1053
+ field: string;
1054
+ mapping: Record<string, string>;
1055
+ fallback?: string | undefined;
1056
+ };
1057
+ }, {
1058
+ $mapField: {
1059
+ field: string;
1060
+ mapping: Record<string, string>;
1061
+ fallback?: string | undefined;
1062
+ };
1063
+ }>]>>;
1064
+ domainLine: z.ZodOptional<z.ZodBoolean>;
1065
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
1066
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1067
+ }, z.ZodUnknown, "strip"> | undefined;
1068
+ yAxis?: z.objectInputType<{
1069
+ label: z.ZodOptional<z.ZodString>;
1070
+ gridLine: z.ZodOptional<z.ZodBoolean>;
1071
+ numTicks: z.ZodOptional<z.ZodNumber>;
1072
+ tickFormat: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1073
+ $field: z.ZodString;
1074
+ as: z.ZodOptional<z.ZodEnum<["number", "string", "date"]>>;
1075
+ }, "strict", z.ZodTypeAny, {
1076
+ $field: string;
1077
+ as?: "string" | "number" | "date" | undefined;
1078
+ }, {
1079
+ $field: string;
1080
+ as?: "string" | "number" | "date" | undefined;
1081
+ }>, z.ZodObject<{
1082
+ $index: z.ZodLiteral<true>;
1083
+ }, "strict", z.ZodTypeAny, {
1084
+ $index: true;
1085
+ }, {
1086
+ $index: true;
1087
+ }>, z.ZodObject<{
1088
+ $const: z.ZodUnknown;
1089
+ }, "strict", z.ZodTypeAny, {
1090
+ $const?: unknown;
1091
+ }, {
1092
+ $const?: unknown;
1093
+ }>, z.ZodObject<{
1094
+ $dateTickFormat: z.ZodLiteral<true>;
1095
+ }, "strict", z.ZodTypeAny, {
1096
+ $dateTickFormat: true;
1097
+ }, {
1098
+ $dateTickFormat: true;
1099
+ }>, z.ZodObject<{
1100
+ $numTickFormat: z.ZodLiteral<true>;
1101
+ }, "strict", z.ZodTypeAny, {
1102
+ $numTickFormat: true;
1103
+ }, {
1104
+ $numTickFormat: true;
1105
+ }>, z.ZodObject<{
1106
+ $lookup: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1107
+ }, "strict", z.ZodTypeAny, {
1108
+ $lookup: (string | number)[];
1109
+ }, {
1110
+ $lookup: (string | number)[];
1111
+ }>, z.ZodObject<{
1112
+ $format: z.ZodObject<{
1113
+ field: z.ZodString;
1114
+ prefix: z.ZodOptional<z.ZodString>;
1115
+ suffix: z.ZodOptional<z.ZodString>;
1116
+ }, "strict", z.ZodTypeAny, {
1117
+ field: string;
1118
+ prefix?: string | undefined;
1119
+ suffix?: string | undefined;
1120
+ }, {
1121
+ field: string;
1122
+ prefix?: string | undefined;
1123
+ suffix?: string | undefined;
1124
+ }>;
1125
+ }, "strict", z.ZodTypeAny, {
1126
+ $format: {
1127
+ field: string;
1128
+ prefix?: string | undefined;
1129
+ suffix?: string | undefined;
1130
+ };
1131
+ }, {
1132
+ $format: {
1133
+ field: string;
1134
+ prefix?: string | undefined;
1135
+ suffix?: string | undefined;
1136
+ };
1137
+ }>, z.ZodObject<{
1138
+ $mapField: z.ZodObject<{
1139
+ field: z.ZodString;
1140
+ mapping: z.ZodRecord<z.ZodString, z.ZodString>;
1141
+ fallback: z.ZodOptional<z.ZodString>;
1142
+ }, "strict", z.ZodTypeAny, {
1143
+ field: string;
1144
+ mapping: Record<string, string>;
1145
+ fallback?: string | undefined;
1146
+ }, {
1147
+ field: string;
1148
+ mapping: Record<string, string>;
1149
+ fallback?: string | undefined;
1150
+ }>;
1151
+ }, "strict", z.ZodTypeAny, {
1152
+ $mapField: {
1153
+ field: string;
1154
+ mapping: Record<string, string>;
1155
+ fallback?: string | undefined;
1156
+ };
1157
+ }, {
1158
+ $mapField: {
1159
+ field: string;
1160
+ mapping: Record<string, string>;
1161
+ fallback?: string | undefined;
1162
+ };
1163
+ }>]>>;
1164
+ domainLine: z.ZodOptional<z.ZodBoolean>;
1165
+ tickTextAngle: z.ZodOptional<z.ZodNumber>;
1166
+ tickValues: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1167
+ }, z.ZodUnknown, "strip"> | undefined;
1168
+ specVersion?: string | undefined;
1169
+ title?: string | undefined;
1170
+ colors?: string[] | undefined;
1171
+ locale?: string | undefined;
1172
+ containerConfig?: Record<string, unknown> | undefined;
1173
+ legend?: {
1174
+ name: string;
1175
+ color?: string | undefined;
1176
+ paletteIndex?: number | undefined;
1177
+ }[] | undefined;
1178
+ data?: unknown;
1179
+ }>;
1180
+ export type ChartSpecFromSchema = z.infer<typeof chartSpecSchema>;