@adminforth/dashboard 1.4.2 → 1.6.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 (60) hide show
  1. package/custom/api/dashboardApi.ts +137 -5
  2. package/custom/model/dashboard.types.ts +32 -22
  3. package/custom/runtime/DashboardRuntime.vue +2 -3
  4. package/custom/skills/adminforth-dashboard/SKILL.md +165 -179
  5. package/custom/widgets/KpiCardWidget.vue +172 -9
  6. package/custom/widgets/chart/ChartWidget.vue +5 -5
  7. package/custom/widgets/registry.ts +4 -4
  8. package/dist/custom/api/dashboardApi.d.ts +46 -2
  9. package/dist/custom/api/dashboardApi.js +90 -5
  10. package/dist/custom/api/dashboardApi.ts +137 -5
  11. package/dist/custom/model/dashboard.types.d.ts +30 -14
  12. package/dist/custom/model/dashboard.types.js +2 -2
  13. package/dist/custom/model/dashboard.types.ts +32 -22
  14. package/dist/custom/queries/useDashboardConfig.d.ts +106 -104
  15. package/dist/custom/queries/useWidgetData.d.ts +106 -104
  16. package/dist/custom/runtime/DashboardRuntime.vue +2 -3
  17. package/dist/custom/skills/adminforth-dashboard/SKILL.md +165 -179
  18. package/dist/custom/widgets/KpiCardWidget.vue +172 -9
  19. package/dist/custom/widgets/chart/ChartWidget.vue +5 -5
  20. package/dist/custom/widgets/registry.js +4 -4
  21. package/dist/custom/widgets/registry.ts +4 -4
  22. package/dist/endpoint/dashboard.d.ts +2 -4
  23. package/dist/endpoint/dashboard.js +1 -21
  24. package/dist/endpoint/groups.d.ts +1 -0
  25. package/dist/endpoint/groups.js +61 -48
  26. package/dist/endpoint/widgets.d.ts +1 -0
  27. package/dist/endpoint/widgets.js +167 -64
  28. package/dist/schema/api.d.ts +11710 -2785
  29. package/dist/schema/api.js +118 -26
  30. package/dist/schema/widget.d.ts +425 -1980
  31. package/dist/schema/widget.js +13 -374
  32. package/dist/schema/widgets/charts.d.ts +1689 -0
  33. package/dist/schema/widgets/charts.js +92 -0
  34. package/dist/schema/widgets/common.d.ts +275 -0
  35. package/dist/schema/widgets/common.js +171 -0
  36. package/dist/schema/widgets/gauge-card.d.ts +172 -0
  37. package/dist/schema/widgets/gauge-card.js +28 -0
  38. package/dist/schema/widgets/kpi-card.d.ts +212 -0
  39. package/dist/schema/widgets/kpi-card.js +43 -0
  40. package/dist/schema/widgets/pivot-table.d.ts +196 -0
  41. package/dist/schema/widgets/pivot-table.js +17 -0
  42. package/dist/schema/widgets/table.d.ts +130 -0
  43. package/dist/schema/widgets/table.js +12 -0
  44. package/dist/services/dashboardConfigService.d.ts +4 -0
  45. package/dist/services/dashboardConfigService.js +46 -0
  46. package/dist/services/widgetDataService.js +96 -2
  47. package/endpoint/dashboard.ts +2 -33
  48. package/endpoint/groups.ts +91 -72
  49. package/endpoint/widgets.ts +260 -87
  50. package/package.json +1 -1
  51. package/schema/api.ts +148 -28
  52. package/schema/widget.ts +43 -425
  53. package/schema/widgets/charts.ts +113 -0
  54. package/schema/widgets/common.ts +194 -0
  55. package/schema/widgets/gauge-card.ts +34 -0
  56. package/schema/widgets/kpi-card.ts +49 -0
  57. package/schema/widgets/pivot-table.ts +24 -0
  58. package/schema/widgets/table.ts +18 -0
  59. package/services/dashboardConfigService.ts +73 -0
  60. package/services/widgetDataService.ts +129 -3
@@ -0,0 +1,1689 @@
1
+ import { z } from 'zod';
2
+ export declare const LineChartSchema: z.ZodObject<{
3
+ title: z.ZodOptional<z.ZodString>;
4
+ type: z.ZodLiteral<"line">;
5
+ x: z.ZodObject<{
6
+ field: z.ZodString;
7
+ label: z.ZodOptional<z.ZodString>;
8
+ format: z.ZodOptional<z.ZodEnum<{
9
+ number: "number";
10
+ integer: "integer";
11
+ compact_number: "compact_number";
12
+ currency: "currency";
13
+ percent: "percent";
14
+ percent_delta: "percent_delta";
15
+ number_delta: "number_delta";
16
+ currency_delta: "currency_delta";
17
+ }>>;
18
+ }, z.core.$strict>;
19
+ y: z.ZodArray<z.ZodObject<{
20
+ field: z.ZodString;
21
+ label: z.ZodOptional<z.ZodString>;
22
+ format: z.ZodOptional<z.ZodEnum<{
23
+ number: "number";
24
+ integer: "integer";
25
+ compact_number: "compact_number";
26
+ currency: "currency";
27
+ percent: "percent";
28
+ percent_delta: "percent_delta";
29
+ number_delta: "number_delta";
30
+ currency_delta: "currency_delta";
31
+ }>>;
32
+ }, z.core.$strict>>;
33
+ series: z.ZodOptional<z.ZodObject<{
34
+ field: z.ZodString;
35
+ label: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strict>>;
37
+ color: z.ZodOptional<z.ZodString>;
38
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ }, z.core.$strict>;
40
+ export declare const BarChartSchema: z.ZodObject<{
41
+ title: z.ZodOptional<z.ZodString>;
42
+ type: z.ZodLiteral<"bar">;
43
+ x: z.ZodObject<{
44
+ field: z.ZodString;
45
+ label: z.ZodOptional<z.ZodString>;
46
+ format: z.ZodOptional<z.ZodEnum<{
47
+ number: "number";
48
+ integer: "integer";
49
+ compact_number: "compact_number";
50
+ currency: "currency";
51
+ percent: "percent";
52
+ percent_delta: "percent_delta";
53
+ number_delta: "number_delta";
54
+ currency_delta: "currency_delta";
55
+ }>>;
56
+ }, z.core.$strict>;
57
+ y: z.ZodObject<{
58
+ field: z.ZodString;
59
+ label: z.ZodOptional<z.ZodString>;
60
+ format: z.ZodOptional<z.ZodEnum<{
61
+ number: "number";
62
+ integer: "integer";
63
+ compact_number: "compact_number";
64
+ currency: "currency";
65
+ percent: "percent";
66
+ percent_delta: "percent_delta";
67
+ number_delta: "number_delta";
68
+ currency_delta: "currency_delta";
69
+ }>>;
70
+ }, z.core.$strict>;
71
+ color: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strict>;
73
+ export declare const StackedBarChartSchema: z.ZodObject<{
74
+ title: z.ZodOptional<z.ZodString>;
75
+ type: z.ZodLiteral<"stacked_bar">;
76
+ x: z.ZodObject<{
77
+ field: z.ZodString;
78
+ label: z.ZodOptional<z.ZodString>;
79
+ format: z.ZodOptional<z.ZodEnum<{
80
+ number: "number";
81
+ integer: "integer";
82
+ compact_number: "compact_number";
83
+ currency: "currency";
84
+ percent: "percent";
85
+ percent_delta: "percent_delta";
86
+ number_delta: "number_delta";
87
+ currency_delta: "currency_delta";
88
+ }>>;
89
+ }, z.core.$strict>;
90
+ y: z.ZodUnion<readonly [z.ZodObject<{
91
+ field: z.ZodString;
92
+ label: z.ZodOptional<z.ZodString>;
93
+ format: z.ZodOptional<z.ZodEnum<{
94
+ number: "number";
95
+ integer: "integer";
96
+ compact_number: "compact_number";
97
+ currency: "currency";
98
+ percent: "percent";
99
+ percent_delta: "percent_delta";
100
+ number_delta: "number_delta";
101
+ currency_delta: "currency_delta";
102
+ }>>;
103
+ }, z.core.$strict>, z.ZodArray<z.ZodObject<{
104
+ field: z.ZodString;
105
+ label: z.ZodOptional<z.ZodString>;
106
+ format: z.ZodOptional<z.ZodEnum<{
107
+ number: "number";
108
+ integer: "integer";
109
+ compact_number: "compact_number";
110
+ currency: "currency";
111
+ percent: "percent";
112
+ percent_delta: "percent_delta";
113
+ number_delta: "number_delta";
114
+ currency_delta: "currency_delta";
115
+ }>>;
116
+ }, z.core.$strict>>]>;
117
+ series: z.ZodOptional<z.ZodObject<{
118
+ field: z.ZodString;
119
+ label: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strict>>;
121
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
122
+ }, z.core.$strict>;
123
+ export declare const PieChartSchema: z.ZodObject<{
124
+ title: z.ZodOptional<z.ZodString>;
125
+ type: z.ZodLiteral<"pie">;
126
+ label: z.ZodObject<{
127
+ field: z.ZodString;
128
+ label: z.ZodOptional<z.ZodString>;
129
+ format: z.ZodOptional<z.ZodEnum<{
130
+ number: "number";
131
+ integer: "integer";
132
+ compact_number: "compact_number";
133
+ currency: "currency";
134
+ percent: "percent";
135
+ percent_delta: "percent_delta";
136
+ number_delta: "number_delta";
137
+ currency_delta: "currency_delta";
138
+ }>>;
139
+ }, z.core.$strict>;
140
+ value: z.ZodObject<{
141
+ field: z.ZodString;
142
+ label: z.ZodOptional<z.ZodString>;
143
+ format: z.ZodOptional<z.ZodEnum<{
144
+ number: "number";
145
+ integer: "integer";
146
+ compact_number: "compact_number";
147
+ currency: "currency";
148
+ percent: "percent";
149
+ percent_delta: "percent_delta";
150
+ number_delta: "number_delta";
151
+ currency_delta: "currency_delta";
152
+ }>>;
153
+ }, z.core.$strict>;
154
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
155
+ }, z.core.$strict>;
156
+ export declare const HistogramChartSchema: z.ZodObject<{
157
+ title: z.ZodOptional<z.ZodString>;
158
+ type: z.ZodLiteral<"histogram">;
159
+ x: z.ZodObject<{
160
+ field: z.ZodString;
161
+ label: z.ZodOptional<z.ZodString>;
162
+ format: z.ZodOptional<z.ZodEnum<{
163
+ number: "number";
164
+ integer: "integer";
165
+ compact_number: "compact_number";
166
+ currency: "currency";
167
+ percent: "percent";
168
+ percent_delta: "percent_delta";
169
+ number_delta: "number_delta";
170
+ currency_delta: "currency_delta";
171
+ }>>;
172
+ }, z.core.$strict>;
173
+ y: z.ZodObject<{
174
+ field: z.ZodString;
175
+ label: z.ZodOptional<z.ZodString>;
176
+ format: z.ZodOptional<z.ZodEnum<{
177
+ number: "number";
178
+ integer: "integer";
179
+ compact_number: "compact_number";
180
+ currency: "currency";
181
+ percent: "percent";
182
+ percent_delta: "percent_delta";
183
+ number_delta: "number_delta";
184
+ currency_delta: "currency_delta";
185
+ }>>;
186
+ }, z.core.$strict>;
187
+ buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
+ label: z.ZodString;
189
+ min: z.ZodOptional<z.ZodNumber>;
190
+ max: z.ZodOptional<z.ZodNumber>;
191
+ }, z.core.$strict>>>;
192
+ color: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strict>;
194
+ export declare const FunnelChartSchema: z.ZodObject<{
195
+ title: z.ZodOptional<z.ZodString>;
196
+ type: z.ZodLiteral<"funnel">;
197
+ label: z.ZodOptional<z.ZodObject<{
198
+ field: z.ZodString;
199
+ label: z.ZodOptional<z.ZodString>;
200
+ format: z.ZodOptional<z.ZodEnum<{
201
+ number: "number";
202
+ integer: "integer";
203
+ compact_number: "compact_number";
204
+ currency: "currency";
205
+ percent: "percent";
206
+ percent_delta: "percent_delta";
207
+ number_delta: "number_delta";
208
+ currency_delta: "currency_delta";
209
+ }>>;
210
+ }, z.core.$strict>>;
211
+ value: z.ZodOptional<z.ZodObject<{
212
+ field: z.ZodString;
213
+ label: z.ZodOptional<z.ZodString>;
214
+ format: z.ZodOptional<z.ZodEnum<{
215
+ number: "number";
216
+ integer: "integer";
217
+ compact_number: "compact_number";
218
+ currency: "currency";
219
+ percent: "percent";
220
+ percent_delta: "percent_delta";
221
+ number_delta: "number_delta";
222
+ currency_delta: "currency_delta";
223
+ }>>;
224
+ }, z.core.$strict>>;
225
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
226
+ }, z.core.$strict>;
227
+ export declare const LineChartWidgetConfigSchema: z.ZodObject<{
228
+ id: z.ZodString;
229
+ group_id: z.ZodString;
230
+ order: z.ZodNumber;
231
+ label: z.ZodOptional<z.ZodString>;
232
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
+ size: z.ZodOptional<z.ZodEnum<{
234
+ small: "small";
235
+ medium: "medium";
236
+ large: "large";
237
+ wide: "wide";
238
+ full: "full";
239
+ }>>;
240
+ width: z.ZodOptional<z.ZodNumber>;
241
+ height: z.ZodOptional<z.ZodNumber>;
242
+ min_width: z.ZodOptional<z.ZodNumber>;
243
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
+ target: z.ZodLiteral<"chart">;
245
+ chart: z.ZodObject<{
246
+ title: z.ZodOptional<z.ZodString>;
247
+ type: z.ZodLiteral<"line">;
248
+ x: z.ZodObject<{
249
+ field: z.ZodString;
250
+ label: z.ZodOptional<z.ZodString>;
251
+ format: z.ZodOptional<z.ZodEnum<{
252
+ number: "number";
253
+ integer: "integer";
254
+ compact_number: "compact_number";
255
+ currency: "currency";
256
+ percent: "percent";
257
+ percent_delta: "percent_delta";
258
+ number_delta: "number_delta";
259
+ currency_delta: "currency_delta";
260
+ }>>;
261
+ }, z.core.$strict>;
262
+ y: z.ZodArray<z.ZodObject<{
263
+ field: z.ZodString;
264
+ label: z.ZodOptional<z.ZodString>;
265
+ format: z.ZodOptional<z.ZodEnum<{
266
+ number: "number";
267
+ integer: "integer";
268
+ compact_number: "compact_number";
269
+ currency: "currency";
270
+ percent: "percent";
271
+ percent_delta: "percent_delta";
272
+ number_delta: "number_delta";
273
+ currency_delta: "currency_delta";
274
+ }>>;
275
+ }, z.core.$strict>>;
276
+ series: z.ZodOptional<z.ZodObject<{
277
+ field: z.ZodString;
278
+ label: z.ZodOptional<z.ZodString>;
279
+ }, z.core.$strict>>;
280
+ color: z.ZodOptional<z.ZodString>;
281
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
282
+ }, z.core.$strict>;
283
+ query: z.ZodObject<{
284
+ resource: z.ZodString;
285
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
286
+ field: z.ZodString;
287
+ as: z.ZodOptional<z.ZodString>;
288
+ grain: z.ZodOptional<z.ZodEnum<{
289
+ day: "day";
290
+ week: "week";
291
+ month: "month";
292
+ year: "year";
293
+ }>>;
294
+ }, z.core.$strict>, z.ZodObject<{
295
+ agg: z.ZodEnum<{
296
+ sum: "sum";
297
+ count: "count";
298
+ count_distinct: "count_distinct";
299
+ avg: "avg";
300
+ min: "min";
301
+ max: "max";
302
+ median: "median";
303
+ }>;
304
+ field: z.ZodOptional<z.ZodString>;
305
+ as: z.ZodString;
306
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
307
+ }, z.core.$strict>, z.ZodObject<{
308
+ calc: z.ZodString;
309
+ as: z.ZodString;
310
+ }, z.core.$strict>]>>>;
311
+ sparkline: z.ZodOptional<z.ZodObject<{
312
+ field: z.ZodString;
313
+ grain: z.ZodEnum<{
314
+ day: "day";
315
+ week: "week";
316
+ month: "month";
317
+ year: "year";
318
+ }>;
319
+ as: z.ZodString;
320
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
321
+ }, z.core.$strict>>;
322
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
323
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
324
+ field: z.ZodString;
325
+ as: z.ZodOptional<z.ZodString>;
326
+ grain: z.ZodOptional<z.ZodEnum<{
327
+ day: "day";
328
+ week: "week";
329
+ month: "month";
330
+ year: "year";
331
+ }>>;
332
+ timezone: z.ZodOptional<z.ZodString>;
333
+ }, z.core.$strict>]>>>;
334
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ field: z.ZodString;
336
+ direction: z.ZodOptional<z.ZodEnum<{
337
+ asc: "asc";
338
+ desc: "desc";
339
+ }>>;
340
+ }, z.core.$strict>>>;
341
+ limit: z.ZodOptional<z.ZodNumber>;
342
+ offset: z.ZodOptional<z.ZodNumber>;
343
+ bucket: z.ZodOptional<z.ZodObject<{
344
+ field: z.ZodString;
345
+ buckets: z.ZodArray<z.ZodObject<{
346
+ label: z.ZodString;
347
+ min: z.ZodOptional<z.ZodNumber>;
348
+ max: z.ZodOptional<z.ZodNumber>;
349
+ }, z.core.$strict>>;
350
+ }, z.core.$strict>>;
351
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ calc: z.ZodString;
353
+ as: z.ZodString;
354
+ }, z.core.$strict>>>;
355
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
356
+ }, z.core.$strict>;
357
+ }, z.core.$strict>;
358
+ export declare const BarChartWidgetConfigSchema: z.ZodObject<{
359
+ id: z.ZodString;
360
+ group_id: z.ZodString;
361
+ order: z.ZodNumber;
362
+ label: z.ZodOptional<z.ZodString>;
363
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
364
+ size: z.ZodOptional<z.ZodEnum<{
365
+ small: "small";
366
+ medium: "medium";
367
+ large: "large";
368
+ wide: "wide";
369
+ full: "full";
370
+ }>>;
371
+ width: z.ZodOptional<z.ZodNumber>;
372
+ height: z.ZodOptional<z.ZodNumber>;
373
+ min_width: z.ZodOptional<z.ZodNumber>;
374
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
375
+ target: z.ZodLiteral<"chart">;
376
+ chart: z.ZodObject<{
377
+ title: z.ZodOptional<z.ZodString>;
378
+ type: z.ZodLiteral<"bar">;
379
+ x: z.ZodObject<{
380
+ field: z.ZodString;
381
+ label: z.ZodOptional<z.ZodString>;
382
+ format: z.ZodOptional<z.ZodEnum<{
383
+ number: "number";
384
+ integer: "integer";
385
+ compact_number: "compact_number";
386
+ currency: "currency";
387
+ percent: "percent";
388
+ percent_delta: "percent_delta";
389
+ number_delta: "number_delta";
390
+ currency_delta: "currency_delta";
391
+ }>>;
392
+ }, z.core.$strict>;
393
+ y: z.ZodObject<{
394
+ field: z.ZodString;
395
+ label: z.ZodOptional<z.ZodString>;
396
+ format: z.ZodOptional<z.ZodEnum<{
397
+ number: "number";
398
+ integer: "integer";
399
+ compact_number: "compact_number";
400
+ currency: "currency";
401
+ percent: "percent";
402
+ percent_delta: "percent_delta";
403
+ number_delta: "number_delta";
404
+ currency_delta: "currency_delta";
405
+ }>>;
406
+ }, z.core.$strict>;
407
+ color: z.ZodOptional<z.ZodString>;
408
+ }, z.core.$strict>;
409
+ query: z.ZodObject<{
410
+ resource: z.ZodString;
411
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
412
+ field: z.ZodString;
413
+ as: z.ZodOptional<z.ZodString>;
414
+ grain: z.ZodOptional<z.ZodEnum<{
415
+ day: "day";
416
+ week: "week";
417
+ month: "month";
418
+ year: "year";
419
+ }>>;
420
+ }, z.core.$strict>, z.ZodObject<{
421
+ agg: z.ZodEnum<{
422
+ sum: "sum";
423
+ count: "count";
424
+ count_distinct: "count_distinct";
425
+ avg: "avg";
426
+ min: "min";
427
+ max: "max";
428
+ median: "median";
429
+ }>;
430
+ field: z.ZodOptional<z.ZodString>;
431
+ as: z.ZodString;
432
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ calc: z.ZodString;
435
+ as: z.ZodString;
436
+ }, z.core.$strict>]>>>;
437
+ sparkline: z.ZodOptional<z.ZodObject<{
438
+ field: z.ZodString;
439
+ grain: z.ZodEnum<{
440
+ day: "day";
441
+ week: "week";
442
+ month: "month";
443
+ year: "year";
444
+ }>;
445
+ as: z.ZodString;
446
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
447
+ }, z.core.$strict>>;
448
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
449
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
450
+ field: z.ZodString;
451
+ as: z.ZodOptional<z.ZodString>;
452
+ grain: z.ZodOptional<z.ZodEnum<{
453
+ day: "day";
454
+ week: "week";
455
+ month: "month";
456
+ year: "year";
457
+ }>>;
458
+ timezone: z.ZodOptional<z.ZodString>;
459
+ }, z.core.$strict>]>>>;
460
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
461
+ field: z.ZodString;
462
+ direction: z.ZodOptional<z.ZodEnum<{
463
+ asc: "asc";
464
+ desc: "desc";
465
+ }>>;
466
+ }, z.core.$strict>>>;
467
+ limit: z.ZodOptional<z.ZodNumber>;
468
+ offset: z.ZodOptional<z.ZodNumber>;
469
+ bucket: z.ZodOptional<z.ZodObject<{
470
+ field: z.ZodString;
471
+ buckets: z.ZodArray<z.ZodObject<{
472
+ label: z.ZodString;
473
+ min: z.ZodOptional<z.ZodNumber>;
474
+ max: z.ZodOptional<z.ZodNumber>;
475
+ }, z.core.$strict>>;
476
+ }, z.core.$strict>>;
477
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
478
+ calc: z.ZodString;
479
+ as: z.ZodString;
480
+ }, z.core.$strict>>>;
481
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
482
+ }, z.core.$strict>;
483
+ }, z.core.$strict>;
484
+ export declare const StackedBarChartWidgetConfigSchema: z.ZodObject<{
485
+ id: z.ZodString;
486
+ group_id: z.ZodString;
487
+ order: z.ZodNumber;
488
+ label: z.ZodOptional<z.ZodString>;
489
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
490
+ size: z.ZodOptional<z.ZodEnum<{
491
+ small: "small";
492
+ medium: "medium";
493
+ large: "large";
494
+ wide: "wide";
495
+ full: "full";
496
+ }>>;
497
+ width: z.ZodOptional<z.ZodNumber>;
498
+ height: z.ZodOptional<z.ZodNumber>;
499
+ min_width: z.ZodOptional<z.ZodNumber>;
500
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
501
+ target: z.ZodLiteral<"chart">;
502
+ chart: z.ZodObject<{
503
+ title: z.ZodOptional<z.ZodString>;
504
+ type: z.ZodLiteral<"stacked_bar">;
505
+ x: z.ZodObject<{
506
+ field: z.ZodString;
507
+ label: z.ZodOptional<z.ZodString>;
508
+ format: z.ZodOptional<z.ZodEnum<{
509
+ number: "number";
510
+ integer: "integer";
511
+ compact_number: "compact_number";
512
+ currency: "currency";
513
+ percent: "percent";
514
+ percent_delta: "percent_delta";
515
+ number_delta: "number_delta";
516
+ currency_delta: "currency_delta";
517
+ }>>;
518
+ }, z.core.$strict>;
519
+ y: z.ZodUnion<readonly [z.ZodObject<{
520
+ field: z.ZodString;
521
+ label: z.ZodOptional<z.ZodString>;
522
+ format: z.ZodOptional<z.ZodEnum<{
523
+ number: "number";
524
+ integer: "integer";
525
+ compact_number: "compact_number";
526
+ currency: "currency";
527
+ percent: "percent";
528
+ percent_delta: "percent_delta";
529
+ number_delta: "number_delta";
530
+ currency_delta: "currency_delta";
531
+ }>>;
532
+ }, z.core.$strict>, z.ZodArray<z.ZodObject<{
533
+ field: z.ZodString;
534
+ label: z.ZodOptional<z.ZodString>;
535
+ format: z.ZodOptional<z.ZodEnum<{
536
+ number: "number";
537
+ integer: "integer";
538
+ compact_number: "compact_number";
539
+ currency: "currency";
540
+ percent: "percent";
541
+ percent_delta: "percent_delta";
542
+ number_delta: "number_delta";
543
+ currency_delta: "currency_delta";
544
+ }>>;
545
+ }, z.core.$strict>>]>;
546
+ series: z.ZodOptional<z.ZodObject<{
547
+ field: z.ZodString;
548
+ label: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strict>>;
550
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
551
+ }, z.core.$strict>;
552
+ query: z.ZodObject<{
553
+ resource: z.ZodString;
554
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
555
+ field: z.ZodString;
556
+ as: z.ZodOptional<z.ZodString>;
557
+ grain: z.ZodOptional<z.ZodEnum<{
558
+ day: "day";
559
+ week: "week";
560
+ month: "month";
561
+ year: "year";
562
+ }>>;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ agg: z.ZodEnum<{
565
+ sum: "sum";
566
+ count: "count";
567
+ count_distinct: "count_distinct";
568
+ avg: "avg";
569
+ min: "min";
570
+ max: "max";
571
+ median: "median";
572
+ }>;
573
+ field: z.ZodOptional<z.ZodString>;
574
+ as: z.ZodString;
575
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
576
+ }, z.core.$strict>, z.ZodObject<{
577
+ calc: z.ZodString;
578
+ as: z.ZodString;
579
+ }, z.core.$strict>]>>>;
580
+ sparkline: z.ZodOptional<z.ZodObject<{
581
+ field: z.ZodString;
582
+ grain: z.ZodEnum<{
583
+ day: "day";
584
+ week: "week";
585
+ month: "month";
586
+ year: "year";
587
+ }>;
588
+ as: z.ZodString;
589
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
590
+ }, z.core.$strict>>;
591
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
592
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
593
+ field: z.ZodString;
594
+ as: z.ZodOptional<z.ZodString>;
595
+ grain: z.ZodOptional<z.ZodEnum<{
596
+ day: "day";
597
+ week: "week";
598
+ month: "month";
599
+ year: "year";
600
+ }>>;
601
+ timezone: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$strict>]>>>;
603
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
604
+ field: z.ZodString;
605
+ direction: z.ZodOptional<z.ZodEnum<{
606
+ asc: "asc";
607
+ desc: "desc";
608
+ }>>;
609
+ }, z.core.$strict>>>;
610
+ limit: z.ZodOptional<z.ZodNumber>;
611
+ offset: z.ZodOptional<z.ZodNumber>;
612
+ bucket: z.ZodOptional<z.ZodObject<{
613
+ field: z.ZodString;
614
+ buckets: z.ZodArray<z.ZodObject<{
615
+ label: z.ZodString;
616
+ min: z.ZodOptional<z.ZodNumber>;
617
+ max: z.ZodOptional<z.ZodNumber>;
618
+ }, z.core.$strict>>;
619
+ }, z.core.$strict>>;
620
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
621
+ calc: z.ZodString;
622
+ as: z.ZodString;
623
+ }, z.core.$strict>>>;
624
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
625
+ }, z.core.$strict>;
626
+ }, z.core.$strict>;
627
+ export declare const PieChartWidgetConfigSchema: z.ZodObject<{
628
+ id: z.ZodString;
629
+ group_id: z.ZodString;
630
+ order: z.ZodNumber;
631
+ label: z.ZodOptional<z.ZodString>;
632
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
633
+ size: z.ZodOptional<z.ZodEnum<{
634
+ small: "small";
635
+ medium: "medium";
636
+ large: "large";
637
+ wide: "wide";
638
+ full: "full";
639
+ }>>;
640
+ width: z.ZodOptional<z.ZodNumber>;
641
+ height: z.ZodOptional<z.ZodNumber>;
642
+ min_width: z.ZodOptional<z.ZodNumber>;
643
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
644
+ target: z.ZodLiteral<"chart">;
645
+ chart: z.ZodObject<{
646
+ title: z.ZodOptional<z.ZodString>;
647
+ type: z.ZodLiteral<"pie">;
648
+ label: z.ZodObject<{
649
+ field: z.ZodString;
650
+ label: z.ZodOptional<z.ZodString>;
651
+ format: z.ZodOptional<z.ZodEnum<{
652
+ number: "number";
653
+ integer: "integer";
654
+ compact_number: "compact_number";
655
+ currency: "currency";
656
+ percent: "percent";
657
+ percent_delta: "percent_delta";
658
+ number_delta: "number_delta";
659
+ currency_delta: "currency_delta";
660
+ }>>;
661
+ }, z.core.$strict>;
662
+ value: z.ZodObject<{
663
+ field: z.ZodString;
664
+ label: z.ZodOptional<z.ZodString>;
665
+ format: z.ZodOptional<z.ZodEnum<{
666
+ number: "number";
667
+ integer: "integer";
668
+ compact_number: "compact_number";
669
+ currency: "currency";
670
+ percent: "percent";
671
+ percent_delta: "percent_delta";
672
+ number_delta: "number_delta";
673
+ currency_delta: "currency_delta";
674
+ }>>;
675
+ }, z.core.$strict>;
676
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
677
+ }, z.core.$strict>;
678
+ query: z.ZodObject<{
679
+ resource: z.ZodString;
680
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
681
+ field: z.ZodString;
682
+ as: z.ZodOptional<z.ZodString>;
683
+ grain: z.ZodOptional<z.ZodEnum<{
684
+ day: "day";
685
+ week: "week";
686
+ month: "month";
687
+ year: "year";
688
+ }>>;
689
+ }, z.core.$strict>, z.ZodObject<{
690
+ agg: z.ZodEnum<{
691
+ sum: "sum";
692
+ count: "count";
693
+ count_distinct: "count_distinct";
694
+ avg: "avg";
695
+ min: "min";
696
+ max: "max";
697
+ median: "median";
698
+ }>;
699
+ field: z.ZodOptional<z.ZodString>;
700
+ as: z.ZodString;
701
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
702
+ }, z.core.$strict>, z.ZodObject<{
703
+ calc: z.ZodString;
704
+ as: z.ZodString;
705
+ }, z.core.$strict>]>>>;
706
+ sparkline: z.ZodOptional<z.ZodObject<{
707
+ field: z.ZodString;
708
+ grain: z.ZodEnum<{
709
+ day: "day";
710
+ week: "week";
711
+ month: "month";
712
+ year: "year";
713
+ }>;
714
+ as: z.ZodString;
715
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
716
+ }, z.core.$strict>>;
717
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
718
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
719
+ field: z.ZodString;
720
+ as: z.ZodOptional<z.ZodString>;
721
+ grain: z.ZodOptional<z.ZodEnum<{
722
+ day: "day";
723
+ week: "week";
724
+ month: "month";
725
+ year: "year";
726
+ }>>;
727
+ timezone: z.ZodOptional<z.ZodString>;
728
+ }, z.core.$strict>]>>>;
729
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
730
+ field: z.ZodString;
731
+ direction: z.ZodOptional<z.ZodEnum<{
732
+ asc: "asc";
733
+ desc: "desc";
734
+ }>>;
735
+ }, z.core.$strict>>>;
736
+ limit: z.ZodOptional<z.ZodNumber>;
737
+ offset: z.ZodOptional<z.ZodNumber>;
738
+ bucket: z.ZodOptional<z.ZodObject<{
739
+ field: z.ZodString;
740
+ buckets: z.ZodArray<z.ZodObject<{
741
+ label: z.ZodString;
742
+ min: z.ZodOptional<z.ZodNumber>;
743
+ max: z.ZodOptional<z.ZodNumber>;
744
+ }, z.core.$strict>>;
745
+ }, z.core.$strict>>;
746
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
747
+ calc: z.ZodString;
748
+ as: z.ZodString;
749
+ }, z.core.$strict>>>;
750
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
751
+ }, z.core.$strict>;
752
+ }, z.core.$strict>;
753
+ export declare const HistogramChartWidgetConfigSchema: z.ZodObject<{
754
+ id: z.ZodString;
755
+ group_id: z.ZodString;
756
+ order: z.ZodNumber;
757
+ label: z.ZodOptional<z.ZodString>;
758
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
759
+ size: z.ZodOptional<z.ZodEnum<{
760
+ small: "small";
761
+ medium: "medium";
762
+ large: "large";
763
+ wide: "wide";
764
+ full: "full";
765
+ }>>;
766
+ width: z.ZodOptional<z.ZodNumber>;
767
+ height: z.ZodOptional<z.ZodNumber>;
768
+ min_width: z.ZodOptional<z.ZodNumber>;
769
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
770
+ target: z.ZodLiteral<"chart">;
771
+ chart: z.ZodObject<{
772
+ title: z.ZodOptional<z.ZodString>;
773
+ type: z.ZodLiteral<"histogram">;
774
+ x: z.ZodObject<{
775
+ field: z.ZodString;
776
+ label: z.ZodOptional<z.ZodString>;
777
+ format: z.ZodOptional<z.ZodEnum<{
778
+ number: "number";
779
+ integer: "integer";
780
+ compact_number: "compact_number";
781
+ currency: "currency";
782
+ percent: "percent";
783
+ percent_delta: "percent_delta";
784
+ number_delta: "number_delta";
785
+ currency_delta: "currency_delta";
786
+ }>>;
787
+ }, z.core.$strict>;
788
+ y: z.ZodObject<{
789
+ field: z.ZodString;
790
+ label: z.ZodOptional<z.ZodString>;
791
+ format: z.ZodOptional<z.ZodEnum<{
792
+ number: "number";
793
+ integer: "integer";
794
+ compact_number: "compact_number";
795
+ currency: "currency";
796
+ percent: "percent";
797
+ percent_delta: "percent_delta";
798
+ number_delta: "number_delta";
799
+ currency_delta: "currency_delta";
800
+ }>>;
801
+ }, z.core.$strict>;
802
+ buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
+ label: z.ZodString;
804
+ min: z.ZodOptional<z.ZodNumber>;
805
+ max: z.ZodOptional<z.ZodNumber>;
806
+ }, z.core.$strict>>>;
807
+ color: z.ZodOptional<z.ZodString>;
808
+ }, z.core.$strict>;
809
+ query: z.ZodObject<{
810
+ resource: z.ZodString;
811
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
812
+ field: z.ZodString;
813
+ as: z.ZodOptional<z.ZodString>;
814
+ grain: z.ZodOptional<z.ZodEnum<{
815
+ day: "day";
816
+ week: "week";
817
+ month: "month";
818
+ year: "year";
819
+ }>>;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ agg: z.ZodEnum<{
822
+ sum: "sum";
823
+ count: "count";
824
+ count_distinct: "count_distinct";
825
+ avg: "avg";
826
+ min: "min";
827
+ max: "max";
828
+ median: "median";
829
+ }>;
830
+ field: z.ZodOptional<z.ZodString>;
831
+ as: z.ZodString;
832
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
833
+ }, z.core.$strict>, z.ZodObject<{
834
+ calc: z.ZodString;
835
+ as: z.ZodString;
836
+ }, z.core.$strict>]>>>;
837
+ sparkline: z.ZodOptional<z.ZodObject<{
838
+ field: z.ZodString;
839
+ grain: z.ZodEnum<{
840
+ day: "day";
841
+ week: "week";
842
+ month: "month";
843
+ year: "year";
844
+ }>;
845
+ as: z.ZodString;
846
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
847
+ }, z.core.$strict>>;
848
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
849
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
850
+ field: z.ZodString;
851
+ as: z.ZodOptional<z.ZodString>;
852
+ grain: z.ZodOptional<z.ZodEnum<{
853
+ day: "day";
854
+ week: "week";
855
+ month: "month";
856
+ year: "year";
857
+ }>>;
858
+ timezone: z.ZodOptional<z.ZodString>;
859
+ }, z.core.$strict>]>>>;
860
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
861
+ field: z.ZodString;
862
+ direction: z.ZodOptional<z.ZodEnum<{
863
+ asc: "asc";
864
+ desc: "desc";
865
+ }>>;
866
+ }, z.core.$strict>>>;
867
+ limit: z.ZodOptional<z.ZodNumber>;
868
+ offset: z.ZodOptional<z.ZodNumber>;
869
+ bucket: z.ZodOptional<z.ZodObject<{
870
+ field: z.ZodString;
871
+ buckets: z.ZodArray<z.ZodObject<{
872
+ label: z.ZodString;
873
+ min: z.ZodOptional<z.ZodNumber>;
874
+ max: z.ZodOptional<z.ZodNumber>;
875
+ }, z.core.$strict>>;
876
+ }, z.core.$strict>>;
877
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ calc: z.ZodString;
879
+ as: z.ZodString;
880
+ }, z.core.$strict>>>;
881
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
882
+ }, z.core.$strict>;
883
+ }, z.core.$strict>;
884
+ export declare const FunnelChartWidgetConfigSchema: z.ZodObject<{
885
+ id: z.ZodString;
886
+ group_id: z.ZodString;
887
+ order: z.ZodNumber;
888
+ label: z.ZodOptional<z.ZodString>;
889
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
890
+ size: z.ZodOptional<z.ZodEnum<{
891
+ small: "small";
892
+ medium: "medium";
893
+ large: "large";
894
+ wide: "wide";
895
+ full: "full";
896
+ }>>;
897
+ width: z.ZodOptional<z.ZodNumber>;
898
+ height: z.ZodOptional<z.ZodNumber>;
899
+ min_width: z.ZodOptional<z.ZodNumber>;
900
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
901
+ target: z.ZodLiteral<"chart">;
902
+ chart: z.ZodObject<{
903
+ title: z.ZodOptional<z.ZodString>;
904
+ type: z.ZodLiteral<"funnel">;
905
+ label: z.ZodOptional<z.ZodObject<{
906
+ field: z.ZodString;
907
+ label: z.ZodOptional<z.ZodString>;
908
+ format: z.ZodOptional<z.ZodEnum<{
909
+ number: "number";
910
+ integer: "integer";
911
+ compact_number: "compact_number";
912
+ currency: "currency";
913
+ percent: "percent";
914
+ percent_delta: "percent_delta";
915
+ number_delta: "number_delta";
916
+ currency_delta: "currency_delta";
917
+ }>>;
918
+ }, z.core.$strict>>;
919
+ value: z.ZodOptional<z.ZodObject<{
920
+ field: z.ZodString;
921
+ label: z.ZodOptional<z.ZodString>;
922
+ format: z.ZodOptional<z.ZodEnum<{
923
+ number: "number";
924
+ integer: "integer";
925
+ compact_number: "compact_number";
926
+ currency: "currency";
927
+ percent: "percent";
928
+ percent_delta: "percent_delta";
929
+ number_delta: "number_delta";
930
+ currency_delta: "currency_delta";
931
+ }>>;
932
+ }, z.core.$strict>>;
933
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
934
+ }, z.core.$strict>;
935
+ query: z.ZodObject<{
936
+ steps: z.ZodArray<z.ZodObject<{
937
+ name: z.ZodString;
938
+ resource: z.ZodString;
939
+ metric: z.ZodObject<{
940
+ agg: z.ZodEnum<{
941
+ sum: "sum";
942
+ count: "count";
943
+ count_distinct: "count_distinct";
944
+ avg: "avg";
945
+ min: "min";
946
+ max: "max";
947
+ median: "median";
948
+ }>;
949
+ field: z.ZodOptional<z.ZodString>;
950
+ as: z.ZodString;
951
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
952
+ }, z.core.$strict>;
953
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
954
+ }, z.core.$strict>>;
955
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
956
+ calc: z.ZodString;
957
+ as: z.ZodString;
958
+ }, z.core.$strict>>>;
959
+ }, z.core.$strict>;
960
+ }, z.core.$strict>;
961
+ export declare const ChartWidgetTargetConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
962
+ id: z.ZodString;
963
+ group_id: z.ZodString;
964
+ order: z.ZodNumber;
965
+ label: z.ZodOptional<z.ZodString>;
966
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
967
+ size: z.ZodOptional<z.ZodEnum<{
968
+ small: "small";
969
+ medium: "medium";
970
+ large: "large";
971
+ wide: "wide";
972
+ full: "full";
973
+ }>>;
974
+ width: z.ZodOptional<z.ZodNumber>;
975
+ height: z.ZodOptional<z.ZodNumber>;
976
+ min_width: z.ZodOptional<z.ZodNumber>;
977
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
978
+ target: z.ZodLiteral<"chart">;
979
+ chart: z.ZodObject<{
980
+ title: z.ZodOptional<z.ZodString>;
981
+ type: z.ZodLiteral<"line">;
982
+ x: z.ZodObject<{
983
+ field: z.ZodString;
984
+ label: z.ZodOptional<z.ZodString>;
985
+ format: z.ZodOptional<z.ZodEnum<{
986
+ number: "number";
987
+ integer: "integer";
988
+ compact_number: "compact_number";
989
+ currency: "currency";
990
+ percent: "percent";
991
+ percent_delta: "percent_delta";
992
+ number_delta: "number_delta";
993
+ currency_delta: "currency_delta";
994
+ }>>;
995
+ }, z.core.$strict>;
996
+ y: z.ZodArray<z.ZodObject<{
997
+ field: z.ZodString;
998
+ label: z.ZodOptional<z.ZodString>;
999
+ format: z.ZodOptional<z.ZodEnum<{
1000
+ number: "number";
1001
+ integer: "integer";
1002
+ compact_number: "compact_number";
1003
+ currency: "currency";
1004
+ percent: "percent";
1005
+ percent_delta: "percent_delta";
1006
+ number_delta: "number_delta";
1007
+ currency_delta: "currency_delta";
1008
+ }>>;
1009
+ }, z.core.$strict>>;
1010
+ series: z.ZodOptional<z.ZodObject<{
1011
+ field: z.ZodString;
1012
+ label: z.ZodOptional<z.ZodString>;
1013
+ }, z.core.$strict>>;
1014
+ color: z.ZodOptional<z.ZodString>;
1015
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1016
+ }, z.core.$strict>;
1017
+ query: z.ZodObject<{
1018
+ resource: z.ZodString;
1019
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1020
+ field: z.ZodString;
1021
+ as: z.ZodOptional<z.ZodString>;
1022
+ grain: z.ZodOptional<z.ZodEnum<{
1023
+ day: "day";
1024
+ week: "week";
1025
+ month: "month";
1026
+ year: "year";
1027
+ }>>;
1028
+ }, z.core.$strict>, z.ZodObject<{
1029
+ agg: z.ZodEnum<{
1030
+ sum: "sum";
1031
+ count: "count";
1032
+ count_distinct: "count_distinct";
1033
+ avg: "avg";
1034
+ min: "min";
1035
+ max: "max";
1036
+ median: "median";
1037
+ }>;
1038
+ field: z.ZodOptional<z.ZodString>;
1039
+ as: z.ZodString;
1040
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1041
+ }, z.core.$strict>, z.ZodObject<{
1042
+ calc: z.ZodString;
1043
+ as: z.ZodString;
1044
+ }, z.core.$strict>]>>>;
1045
+ sparkline: z.ZodOptional<z.ZodObject<{
1046
+ field: z.ZodString;
1047
+ grain: z.ZodEnum<{
1048
+ day: "day";
1049
+ week: "week";
1050
+ month: "month";
1051
+ year: "year";
1052
+ }>;
1053
+ as: z.ZodString;
1054
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1055
+ }, z.core.$strict>>;
1056
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1057
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1058
+ field: z.ZodString;
1059
+ as: z.ZodOptional<z.ZodString>;
1060
+ grain: z.ZodOptional<z.ZodEnum<{
1061
+ day: "day";
1062
+ week: "week";
1063
+ month: "month";
1064
+ year: "year";
1065
+ }>>;
1066
+ timezone: z.ZodOptional<z.ZodString>;
1067
+ }, z.core.$strict>]>>>;
1068
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1069
+ field: z.ZodString;
1070
+ direction: z.ZodOptional<z.ZodEnum<{
1071
+ asc: "asc";
1072
+ desc: "desc";
1073
+ }>>;
1074
+ }, z.core.$strict>>>;
1075
+ limit: z.ZodOptional<z.ZodNumber>;
1076
+ offset: z.ZodOptional<z.ZodNumber>;
1077
+ bucket: z.ZodOptional<z.ZodObject<{
1078
+ field: z.ZodString;
1079
+ buckets: z.ZodArray<z.ZodObject<{
1080
+ label: z.ZodString;
1081
+ min: z.ZodOptional<z.ZodNumber>;
1082
+ max: z.ZodOptional<z.ZodNumber>;
1083
+ }, z.core.$strict>>;
1084
+ }, z.core.$strict>>;
1085
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1086
+ calc: z.ZodString;
1087
+ as: z.ZodString;
1088
+ }, z.core.$strict>>>;
1089
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1090
+ }, z.core.$strict>;
1091
+ }, z.core.$strict>, z.ZodObject<{
1092
+ id: z.ZodString;
1093
+ group_id: z.ZodString;
1094
+ order: z.ZodNumber;
1095
+ label: z.ZodOptional<z.ZodString>;
1096
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1097
+ size: z.ZodOptional<z.ZodEnum<{
1098
+ small: "small";
1099
+ medium: "medium";
1100
+ large: "large";
1101
+ wide: "wide";
1102
+ full: "full";
1103
+ }>>;
1104
+ width: z.ZodOptional<z.ZodNumber>;
1105
+ height: z.ZodOptional<z.ZodNumber>;
1106
+ min_width: z.ZodOptional<z.ZodNumber>;
1107
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1108
+ target: z.ZodLiteral<"chart">;
1109
+ chart: z.ZodObject<{
1110
+ title: z.ZodOptional<z.ZodString>;
1111
+ type: z.ZodLiteral<"bar">;
1112
+ x: z.ZodObject<{
1113
+ field: z.ZodString;
1114
+ label: z.ZodOptional<z.ZodString>;
1115
+ format: z.ZodOptional<z.ZodEnum<{
1116
+ number: "number";
1117
+ integer: "integer";
1118
+ compact_number: "compact_number";
1119
+ currency: "currency";
1120
+ percent: "percent";
1121
+ percent_delta: "percent_delta";
1122
+ number_delta: "number_delta";
1123
+ currency_delta: "currency_delta";
1124
+ }>>;
1125
+ }, z.core.$strict>;
1126
+ y: z.ZodObject<{
1127
+ field: z.ZodString;
1128
+ label: z.ZodOptional<z.ZodString>;
1129
+ format: z.ZodOptional<z.ZodEnum<{
1130
+ number: "number";
1131
+ integer: "integer";
1132
+ compact_number: "compact_number";
1133
+ currency: "currency";
1134
+ percent: "percent";
1135
+ percent_delta: "percent_delta";
1136
+ number_delta: "number_delta";
1137
+ currency_delta: "currency_delta";
1138
+ }>>;
1139
+ }, z.core.$strict>;
1140
+ color: z.ZodOptional<z.ZodString>;
1141
+ }, z.core.$strict>;
1142
+ query: z.ZodObject<{
1143
+ resource: z.ZodString;
1144
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1145
+ field: z.ZodString;
1146
+ as: z.ZodOptional<z.ZodString>;
1147
+ grain: z.ZodOptional<z.ZodEnum<{
1148
+ day: "day";
1149
+ week: "week";
1150
+ month: "month";
1151
+ year: "year";
1152
+ }>>;
1153
+ }, z.core.$strict>, z.ZodObject<{
1154
+ agg: z.ZodEnum<{
1155
+ sum: "sum";
1156
+ count: "count";
1157
+ count_distinct: "count_distinct";
1158
+ avg: "avg";
1159
+ min: "min";
1160
+ max: "max";
1161
+ median: "median";
1162
+ }>;
1163
+ field: z.ZodOptional<z.ZodString>;
1164
+ as: z.ZodString;
1165
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1166
+ }, z.core.$strict>, z.ZodObject<{
1167
+ calc: z.ZodString;
1168
+ as: z.ZodString;
1169
+ }, z.core.$strict>]>>>;
1170
+ sparkline: z.ZodOptional<z.ZodObject<{
1171
+ field: z.ZodString;
1172
+ grain: z.ZodEnum<{
1173
+ day: "day";
1174
+ week: "week";
1175
+ month: "month";
1176
+ year: "year";
1177
+ }>;
1178
+ as: z.ZodString;
1179
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1180
+ }, z.core.$strict>>;
1181
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1182
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1183
+ field: z.ZodString;
1184
+ as: z.ZodOptional<z.ZodString>;
1185
+ grain: z.ZodOptional<z.ZodEnum<{
1186
+ day: "day";
1187
+ week: "week";
1188
+ month: "month";
1189
+ year: "year";
1190
+ }>>;
1191
+ timezone: z.ZodOptional<z.ZodString>;
1192
+ }, z.core.$strict>]>>>;
1193
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1194
+ field: z.ZodString;
1195
+ direction: z.ZodOptional<z.ZodEnum<{
1196
+ asc: "asc";
1197
+ desc: "desc";
1198
+ }>>;
1199
+ }, z.core.$strict>>>;
1200
+ limit: z.ZodOptional<z.ZodNumber>;
1201
+ offset: z.ZodOptional<z.ZodNumber>;
1202
+ bucket: z.ZodOptional<z.ZodObject<{
1203
+ field: z.ZodString;
1204
+ buckets: z.ZodArray<z.ZodObject<{
1205
+ label: z.ZodString;
1206
+ min: z.ZodOptional<z.ZodNumber>;
1207
+ max: z.ZodOptional<z.ZodNumber>;
1208
+ }, z.core.$strict>>;
1209
+ }, z.core.$strict>>;
1210
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1211
+ calc: z.ZodString;
1212
+ as: z.ZodString;
1213
+ }, z.core.$strict>>>;
1214
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1215
+ }, z.core.$strict>;
1216
+ }, z.core.$strict>, z.ZodObject<{
1217
+ id: z.ZodString;
1218
+ group_id: z.ZodString;
1219
+ order: z.ZodNumber;
1220
+ label: z.ZodOptional<z.ZodString>;
1221
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1222
+ size: z.ZodOptional<z.ZodEnum<{
1223
+ small: "small";
1224
+ medium: "medium";
1225
+ large: "large";
1226
+ wide: "wide";
1227
+ full: "full";
1228
+ }>>;
1229
+ width: z.ZodOptional<z.ZodNumber>;
1230
+ height: z.ZodOptional<z.ZodNumber>;
1231
+ min_width: z.ZodOptional<z.ZodNumber>;
1232
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1233
+ target: z.ZodLiteral<"chart">;
1234
+ chart: z.ZodObject<{
1235
+ title: z.ZodOptional<z.ZodString>;
1236
+ type: z.ZodLiteral<"stacked_bar">;
1237
+ x: z.ZodObject<{
1238
+ field: z.ZodString;
1239
+ label: z.ZodOptional<z.ZodString>;
1240
+ format: z.ZodOptional<z.ZodEnum<{
1241
+ number: "number";
1242
+ integer: "integer";
1243
+ compact_number: "compact_number";
1244
+ currency: "currency";
1245
+ percent: "percent";
1246
+ percent_delta: "percent_delta";
1247
+ number_delta: "number_delta";
1248
+ currency_delta: "currency_delta";
1249
+ }>>;
1250
+ }, z.core.$strict>;
1251
+ y: z.ZodUnion<readonly [z.ZodObject<{
1252
+ field: z.ZodString;
1253
+ label: z.ZodOptional<z.ZodString>;
1254
+ format: z.ZodOptional<z.ZodEnum<{
1255
+ number: "number";
1256
+ integer: "integer";
1257
+ compact_number: "compact_number";
1258
+ currency: "currency";
1259
+ percent: "percent";
1260
+ percent_delta: "percent_delta";
1261
+ number_delta: "number_delta";
1262
+ currency_delta: "currency_delta";
1263
+ }>>;
1264
+ }, z.core.$strict>, z.ZodArray<z.ZodObject<{
1265
+ field: z.ZodString;
1266
+ label: z.ZodOptional<z.ZodString>;
1267
+ format: z.ZodOptional<z.ZodEnum<{
1268
+ number: "number";
1269
+ integer: "integer";
1270
+ compact_number: "compact_number";
1271
+ currency: "currency";
1272
+ percent: "percent";
1273
+ percent_delta: "percent_delta";
1274
+ number_delta: "number_delta";
1275
+ currency_delta: "currency_delta";
1276
+ }>>;
1277
+ }, z.core.$strict>>]>;
1278
+ series: z.ZodOptional<z.ZodObject<{
1279
+ field: z.ZodString;
1280
+ label: z.ZodOptional<z.ZodString>;
1281
+ }, z.core.$strict>>;
1282
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1283
+ }, z.core.$strict>;
1284
+ query: z.ZodObject<{
1285
+ resource: z.ZodString;
1286
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1287
+ field: z.ZodString;
1288
+ as: z.ZodOptional<z.ZodString>;
1289
+ grain: z.ZodOptional<z.ZodEnum<{
1290
+ day: "day";
1291
+ week: "week";
1292
+ month: "month";
1293
+ year: "year";
1294
+ }>>;
1295
+ }, z.core.$strict>, z.ZodObject<{
1296
+ agg: z.ZodEnum<{
1297
+ sum: "sum";
1298
+ count: "count";
1299
+ count_distinct: "count_distinct";
1300
+ avg: "avg";
1301
+ min: "min";
1302
+ max: "max";
1303
+ median: "median";
1304
+ }>;
1305
+ field: z.ZodOptional<z.ZodString>;
1306
+ as: z.ZodString;
1307
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1308
+ }, z.core.$strict>, z.ZodObject<{
1309
+ calc: z.ZodString;
1310
+ as: z.ZodString;
1311
+ }, z.core.$strict>]>>>;
1312
+ sparkline: z.ZodOptional<z.ZodObject<{
1313
+ field: z.ZodString;
1314
+ grain: z.ZodEnum<{
1315
+ day: "day";
1316
+ week: "week";
1317
+ month: "month";
1318
+ year: "year";
1319
+ }>;
1320
+ as: z.ZodString;
1321
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1322
+ }, z.core.$strict>>;
1323
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1324
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1325
+ field: z.ZodString;
1326
+ as: z.ZodOptional<z.ZodString>;
1327
+ grain: z.ZodOptional<z.ZodEnum<{
1328
+ day: "day";
1329
+ week: "week";
1330
+ month: "month";
1331
+ year: "year";
1332
+ }>>;
1333
+ timezone: z.ZodOptional<z.ZodString>;
1334
+ }, z.core.$strict>]>>>;
1335
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1336
+ field: z.ZodString;
1337
+ direction: z.ZodOptional<z.ZodEnum<{
1338
+ asc: "asc";
1339
+ desc: "desc";
1340
+ }>>;
1341
+ }, z.core.$strict>>>;
1342
+ limit: z.ZodOptional<z.ZodNumber>;
1343
+ offset: z.ZodOptional<z.ZodNumber>;
1344
+ bucket: z.ZodOptional<z.ZodObject<{
1345
+ field: z.ZodString;
1346
+ buckets: z.ZodArray<z.ZodObject<{
1347
+ label: z.ZodString;
1348
+ min: z.ZodOptional<z.ZodNumber>;
1349
+ max: z.ZodOptional<z.ZodNumber>;
1350
+ }, z.core.$strict>>;
1351
+ }, z.core.$strict>>;
1352
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1353
+ calc: z.ZodString;
1354
+ as: z.ZodString;
1355
+ }, z.core.$strict>>>;
1356
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1357
+ }, z.core.$strict>;
1358
+ }, z.core.$strict>, z.ZodObject<{
1359
+ id: z.ZodString;
1360
+ group_id: z.ZodString;
1361
+ order: z.ZodNumber;
1362
+ label: z.ZodOptional<z.ZodString>;
1363
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1364
+ size: z.ZodOptional<z.ZodEnum<{
1365
+ small: "small";
1366
+ medium: "medium";
1367
+ large: "large";
1368
+ wide: "wide";
1369
+ full: "full";
1370
+ }>>;
1371
+ width: z.ZodOptional<z.ZodNumber>;
1372
+ height: z.ZodOptional<z.ZodNumber>;
1373
+ min_width: z.ZodOptional<z.ZodNumber>;
1374
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1375
+ target: z.ZodLiteral<"chart">;
1376
+ chart: z.ZodObject<{
1377
+ title: z.ZodOptional<z.ZodString>;
1378
+ type: z.ZodLiteral<"pie">;
1379
+ label: z.ZodObject<{
1380
+ field: z.ZodString;
1381
+ label: z.ZodOptional<z.ZodString>;
1382
+ format: z.ZodOptional<z.ZodEnum<{
1383
+ number: "number";
1384
+ integer: "integer";
1385
+ compact_number: "compact_number";
1386
+ currency: "currency";
1387
+ percent: "percent";
1388
+ percent_delta: "percent_delta";
1389
+ number_delta: "number_delta";
1390
+ currency_delta: "currency_delta";
1391
+ }>>;
1392
+ }, z.core.$strict>;
1393
+ value: z.ZodObject<{
1394
+ field: z.ZodString;
1395
+ label: z.ZodOptional<z.ZodString>;
1396
+ format: z.ZodOptional<z.ZodEnum<{
1397
+ number: "number";
1398
+ integer: "integer";
1399
+ compact_number: "compact_number";
1400
+ currency: "currency";
1401
+ percent: "percent";
1402
+ percent_delta: "percent_delta";
1403
+ number_delta: "number_delta";
1404
+ currency_delta: "currency_delta";
1405
+ }>>;
1406
+ }, z.core.$strict>;
1407
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1408
+ }, z.core.$strict>;
1409
+ query: z.ZodObject<{
1410
+ resource: z.ZodString;
1411
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1412
+ field: z.ZodString;
1413
+ as: z.ZodOptional<z.ZodString>;
1414
+ grain: z.ZodOptional<z.ZodEnum<{
1415
+ day: "day";
1416
+ week: "week";
1417
+ month: "month";
1418
+ year: "year";
1419
+ }>>;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ agg: z.ZodEnum<{
1422
+ sum: "sum";
1423
+ count: "count";
1424
+ count_distinct: "count_distinct";
1425
+ avg: "avg";
1426
+ min: "min";
1427
+ max: "max";
1428
+ median: "median";
1429
+ }>;
1430
+ field: z.ZodOptional<z.ZodString>;
1431
+ as: z.ZodString;
1432
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1433
+ }, z.core.$strict>, z.ZodObject<{
1434
+ calc: z.ZodString;
1435
+ as: z.ZodString;
1436
+ }, z.core.$strict>]>>>;
1437
+ sparkline: z.ZodOptional<z.ZodObject<{
1438
+ field: z.ZodString;
1439
+ grain: z.ZodEnum<{
1440
+ day: "day";
1441
+ week: "week";
1442
+ month: "month";
1443
+ year: "year";
1444
+ }>;
1445
+ as: z.ZodString;
1446
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1447
+ }, z.core.$strict>>;
1448
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1449
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1450
+ field: z.ZodString;
1451
+ as: z.ZodOptional<z.ZodString>;
1452
+ grain: z.ZodOptional<z.ZodEnum<{
1453
+ day: "day";
1454
+ week: "week";
1455
+ month: "month";
1456
+ year: "year";
1457
+ }>>;
1458
+ timezone: z.ZodOptional<z.ZodString>;
1459
+ }, z.core.$strict>]>>>;
1460
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1461
+ field: z.ZodString;
1462
+ direction: z.ZodOptional<z.ZodEnum<{
1463
+ asc: "asc";
1464
+ desc: "desc";
1465
+ }>>;
1466
+ }, z.core.$strict>>>;
1467
+ limit: z.ZodOptional<z.ZodNumber>;
1468
+ offset: z.ZodOptional<z.ZodNumber>;
1469
+ bucket: z.ZodOptional<z.ZodObject<{
1470
+ field: z.ZodString;
1471
+ buckets: z.ZodArray<z.ZodObject<{
1472
+ label: z.ZodString;
1473
+ min: z.ZodOptional<z.ZodNumber>;
1474
+ max: z.ZodOptional<z.ZodNumber>;
1475
+ }, z.core.$strict>>;
1476
+ }, z.core.$strict>>;
1477
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1478
+ calc: z.ZodString;
1479
+ as: z.ZodString;
1480
+ }, z.core.$strict>>>;
1481
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1482
+ }, z.core.$strict>;
1483
+ }, z.core.$strict>, z.ZodObject<{
1484
+ id: z.ZodString;
1485
+ group_id: z.ZodString;
1486
+ order: z.ZodNumber;
1487
+ label: z.ZodOptional<z.ZodString>;
1488
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1489
+ size: z.ZodOptional<z.ZodEnum<{
1490
+ small: "small";
1491
+ medium: "medium";
1492
+ large: "large";
1493
+ wide: "wide";
1494
+ full: "full";
1495
+ }>>;
1496
+ width: z.ZodOptional<z.ZodNumber>;
1497
+ height: z.ZodOptional<z.ZodNumber>;
1498
+ min_width: z.ZodOptional<z.ZodNumber>;
1499
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1500
+ target: z.ZodLiteral<"chart">;
1501
+ chart: z.ZodObject<{
1502
+ title: z.ZodOptional<z.ZodString>;
1503
+ type: z.ZodLiteral<"histogram">;
1504
+ x: z.ZodObject<{
1505
+ field: z.ZodString;
1506
+ label: z.ZodOptional<z.ZodString>;
1507
+ format: z.ZodOptional<z.ZodEnum<{
1508
+ number: "number";
1509
+ integer: "integer";
1510
+ compact_number: "compact_number";
1511
+ currency: "currency";
1512
+ percent: "percent";
1513
+ percent_delta: "percent_delta";
1514
+ number_delta: "number_delta";
1515
+ currency_delta: "currency_delta";
1516
+ }>>;
1517
+ }, z.core.$strict>;
1518
+ y: z.ZodObject<{
1519
+ field: z.ZodString;
1520
+ label: z.ZodOptional<z.ZodString>;
1521
+ format: z.ZodOptional<z.ZodEnum<{
1522
+ number: "number";
1523
+ integer: "integer";
1524
+ compact_number: "compact_number";
1525
+ currency: "currency";
1526
+ percent: "percent";
1527
+ percent_delta: "percent_delta";
1528
+ number_delta: "number_delta";
1529
+ currency_delta: "currency_delta";
1530
+ }>>;
1531
+ }, z.core.$strict>;
1532
+ buckets: z.ZodOptional<z.ZodArray<z.ZodObject<{
1533
+ label: z.ZodString;
1534
+ min: z.ZodOptional<z.ZodNumber>;
1535
+ max: z.ZodOptional<z.ZodNumber>;
1536
+ }, z.core.$strict>>>;
1537
+ color: z.ZodOptional<z.ZodString>;
1538
+ }, z.core.$strict>;
1539
+ query: z.ZodObject<{
1540
+ resource: z.ZodString;
1541
+ select: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1542
+ field: z.ZodString;
1543
+ as: z.ZodOptional<z.ZodString>;
1544
+ grain: z.ZodOptional<z.ZodEnum<{
1545
+ day: "day";
1546
+ week: "week";
1547
+ month: "month";
1548
+ year: "year";
1549
+ }>>;
1550
+ }, z.core.$strict>, z.ZodObject<{
1551
+ agg: z.ZodEnum<{
1552
+ sum: "sum";
1553
+ count: "count";
1554
+ count_distinct: "count_distinct";
1555
+ avg: "avg";
1556
+ min: "min";
1557
+ max: "max";
1558
+ median: "median";
1559
+ }>;
1560
+ field: z.ZodOptional<z.ZodString>;
1561
+ as: z.ZodString;
1562
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1563
+ }, z.core.$strict>, z.ZodObject<{
1564
+ calc: z.ZodString;
1565
+ as: z.ZodString;
1566
+ }, z.core.$strict>]>>>;
1567
+ sparkline: z.ZodOptional<z.ZodObject<{
1568
+ field: z.ZodString;
1569
+ grain: z.ZodEnum<{
1570
+ day: "day";
1571
+ week: "week";
1572
+ month: "month";
1573
+ year: "year";
1574
+ }>;
1575
+ as: z.ZodString;
1576
+ fill_missing: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1577
+ }, z.core.$strict>>;
1578
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1579
+ group_by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1580
+ field: z.ZodString;
1581
+ as: z.ZodOptional<z.ZodString>;
1582
+ grain: z.ZodOptional<z.ZodEnum<{
1583
+ day: "day";
1584
+ week: "week";
1585
+ month: "month";
1586
+ year: "year";
1587
+ }>>;
1588
+ timezone: z.ZodOptional<z.ZodString>;
1589
+ }, z.core.$strict>]>>>;
1590
+ order_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
1591
+ field: z.ZodString;
1592
+ direction: z.ZodOptional<z.ZodEnum<{
1593
+ asc: "asc";
1594
+ desc: "desc";
1595
+ }>>;
1596
+ }, z.core.$strict>>>;
1597
+ limit: z.ZodOptional<z.ZodNumber>;
1598
+ offset: z.ZodOptional<z.ZodNumber>;
1599
+ bucket: z.ZodOptional<z.ZodObject<{
1600
+ field: z.ZodString;
1601
+ buckets: z.ZodArray<z.ZodObject<{
1602
+ label: z.ZodString;
1603
+ min: z.ZodOptional<z.ZodNumber>;
1604
+ max: z.ZodOptional<z.ZodNumber>;
1605
+ }, z.core.$strict>>;
1606
+ }, z.core.$strict>>;
1607
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1608
+ calc: z.ZodString;
1609
+ as: z.ZodString;
1610
+ }, z.core.$strict>>>;
1611
+ formatting: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1612
+ }, z.core.$strict>;
1613
+ }, z.core.$strict>, z.ZodObject<{
1614
+ id: z.ZodString;
1615
+ group_id: z.ZodString;
1616
+ order: z.ZodNumber;
1617
+ label: z.ZodOptional<z.ZodString>;
1618
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1619
+ size: z.ZodOptional<z.ZodEnum<{
1620
+ small: "small";
1621
+ medium: "medium";
1622
+ large: "large";
1623
+ wide: "wide";
1624
+ full: "full";
1625
+ }>>;
1626
+ width: z.ZodOptional<z.ZodNumber>;
1627
+ height: z.ZodOptional<z.ZodNumber>;
1628
+ min_width: z.ZodOptional<z.ZodNumber>;
1629
+ max_width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1630
+ target: z.ZodLiteral<"chart">;
1631
+ chart: z.ZodObject<{
1632
+ title: z.ZodOptional<z.ZodString>;
1633
+ type: z.ZodLiteral<"funnel">;
1634
+ label: z.ZodOptional<z.ZodObject<{
1635
+ field: z.ZodString;
1636
+ label: z.ZodOptional<z.ZodString>;
1637
+ format: z.ZodOptional<z.ZodEnum<{
1638
+ number: "number";
1639
+ integer: "integer";
1640
+ compact_number: "compact_number";
1641
+ currency: "currency";
1642
+ percent: "percent";
1643
+ percent_delta: "percent_delta";
1644
+ number_delta: "number_delta";
1645
+ currency_delta: "currency_delta";
1646
+ }>>;
1647
+ }, z.core.$strict>>;
1648
+ value: z.ZodOptional<z.ZodObject<{
1649
+ field: z.ZodString;
1650
+ label: z.ZodOptional<z.ZodString>;
1651
+ format: z.ZodOptional<z.ZodEnum<{
1652
+ number: "number";
1653
+ integer: "integer";
1654
+ compact_number: "compact_number";
1655
+ currency: "currency";
1656
+ percent: "percent";
1657
+ percent_delta: "percent_delta";
1658
+ number_delta: "number_delta";
1659
+ currency_delta: "currency_delta";
1660
+ }>>;
1661
+ }, z.core.$strict>>;
1662
+ colors: z.ZodOptional<z.ZodArray<z.ZodString>>;
1663
+ }, z.core.$strict>;
1664
+ query: z.ZodObject<{
1665
+ steps: z.ZodArray<z.ZodObject<{
1666
+ name: z.ZodString;
1667
+ resource: z.ZodString;
1668
+ metric: z.ZodObject<{
1669
+ agg: z.ZodEnum<{
1670
+ sum: "sum";
1671
+ count: "count";
1672
+ count_distinct: "count_distinct";
1673
+ avg: "avg";
1674
+ min: "min";
1675
+ max: "max";
1676
+ median: "median";
1677
+ }>;
1678
+ field: z.ZodOptional<z.ZodString>;
1679
+ as: z.ZodString;
1680
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1681
+ }, z.core.$strict>;
1682
+ filters: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1683
+ }, z.core.$strict>>;
1684
+ calcs: z.ZodOptional<z.ZodArray<z.ZodObject<{
1685
+ calc: z.ZodString;
1686
+ as: z.ZodString;
1687
+ }, z.core.$strict>>>;
1688
+ }, z.core.$strict>;
1689
+ }, z.core.$strict>]>;