@dx-do/client 9.0.0 → 9.1.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 (69) hide show
  1. package/dist/index.cjs.js +6330 -1797
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +6198 -1798
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/src/index.d.ts +14 -0
  6. package/dist/src/index.d.ts.map +1 -1
  7. package/dist/src/lib/model/alarm/alarm-queue.d.ts.map +1 -1
  8. package/dist/src/lib/model/alert/metric-query-spec.d.ts +49 -0
  9. package/dist/src/lib/model/alert/metric-query-spec.d.ts.map +1 -0
  10. package/dist/src/lib/model/dashboard/CanvasPanel.d.ts +1035 -0
  11. package/dist/src/lib/model/dashboard/CanvasPanel.d.ts.map +1 -0
  12. package/dist/src/lib/model/dashboard/spec/DashboardSpec.d.ts +4530 -0
  13. package/dist/src/lib/model/dashboard/spec/DashboardSpec.d.ts.map +1 -0
  14. package/dist/src/lib/model/dashboard/spec/describe.d.ts +40 -0
  15. package/dist/src/lib/model/dashboard/spec/describe.d.ts.map +1 -0
  16. package/dist/src/lib/model/dashboard/spec/expand.d.ts +65 -0
  17. package/dist/src/lib/model/dashboard/spec/expand.d.ts.map +1 -0
  18. package/dist/src/lib/model/dashboard/spec/layout.d.ts +43 -0
  19. package/dist/src/lib/model/dashboard/spec/layout.d.ts.map +1 -0
  20. package/dist/src/lib/model/dashboard/spec/legend.d.ts +99 -0
  21. package/dist/src/lib/model/dashboard/spec/legend.d.ts.map +1 -0
  22. package/dist/src/lib/model/dashboard/spec/links.d.ts +57 -0
  23. package/dist/src/lib/model/dashboard/spec/links.d.ts.map +1 -0
  24. package/dist/src/lib/model/dashboard/spec/metrics-query.d.ts +39 -0
  25. package/dist/src/lib/model/dashboard/spec/metrics-query.d.ts.map +1 -0
  26. package/dist/src/lib/model/dashboard/spec/panel-options.d.ts +33 -0
  27. package/dist/src/lib/model/dashboard/spec/panel-options.d.ts.map +1 -0
  28. package/dist/src/lib/model/dashboard/spec/panel-options.generated.d.ts +3 -0
  29. package/dist/src/lib/model/dashboard/spec/panel-options.generated.d.ts.map +1 -0
  30. package/dist/src/lib/model/dashboard/targets/ElasticTarget.d.ts +246 -0
  31. package/dist/src/lib/model/dashboard/targets/ElasticTarget.d.ts.map +1 -0
  32. package/dist/src/lib/model/dashboard/targets/NasTarget.d.ts +147 -0
  33. package/dist/src/lib/model/dashboard/targets/NasTarget.d.ts.map +1 -0
  34. package/dist/src/lib/model/dashboard/targets/TasTarget.d.ts +74 -0
  35. package/dist/src/lib/model/dashboard/targets/TasTarget.d.ts.map +1 -0
  36. package/dist/src/lib/model/datastore/audit/response.d.ts.map +1 -1
  37. package/dist/src/lib/model/datastore/metrics-metadata/attribute-name-specifier.d.ts +10 -10
  38. package/dist/src/lib/model/datastore/metrics-metadata/query-specifier.d.ts +4 -4
  39. package/dist/src/lib/model/datastore/metrics-metadata/register.d.ts.map +1 -1
  40. package/dist/src/lib/model/datastore/metrics-metadata/source-name-specifier.d.ts +2 -2
  41. package/dist/src/lib/model/datastore/nass/store.d.ts.map +1 -1
  42. package/dist/src/lib/model/datastore/nassql/filter-specs.d.ts +1 -1
  43. package/dist/src/lib/model/datastore/nassql/operations.d.ts +1 -1
  44. package/dist/src/lib/model/datastore/nassql/query.d.ts +1 -1
  45. package/dist/src/lib/model/datastore/states/query.d.ts +4 -4
  46. package/dist/src/lib/model/datastore/tas/filters.d.ts +15 -15
  47. package/dist/src/lib/model/datastore/tas/query.d.ts +2 -2
  48. package/dist/src/lib/model/datastore/tas/store.d.ts.map +1 -1
  49. package/dist/src/lib/model/managementmodule/management-module-transform-presets.d.ts.map +1 -1
  50. package/dist/src/lib/model/managementmodule/management-module-transform.d.ts +54 -0
  51. package/dist/src/lib/model/managementmodule/management-module-transform.d.ts.map +1 -1
  52. package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts +10 -0
  53. package/dist/src/lib/model/metricgrouping/metric-grouping-filter.d.ts.map +1 -1
  54. package/dist/src/lib/model/nass/NASS.d.ts +10 -6
  55. package/dist/src/lib/model/nass/NASS.d.ts.map +1 -1
  56. package/dist/src/lib/model/sli/definition.d.ts +15 -12
  57. package/dist/src/lib/model/sli/definition.d.ts.map +1 -1
  58. package/dist/src/lib/model/synthetics/query.d.ts +1 -1
  59. package/dist/src/lib/services/alarm.service.d.ts +18 -0
  60. package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
  61. package/dist/src/lib/services/dx-saas.service.d.ts +6 -0
  62. package/dist/src/lib/services/dx-saas.service.d.ts.map +1 -1
  63. package/dist/src/lib/services/nass.service.d.ts +6 -0
  64. package/dist/src/lib/services/nass.service.d.ts.map +1 -1
  65. package/dist/src/lib/services/platform-alert.service.d.ts +11 -0
  66. package/dist/src/lib/services/platform-alert.service.d.ts.map +1 -1
  67. package/dist/src/lib/services/service.service.d.ts +3 -2
  68. package/dist/src/lib/services/service.service.d.ts.map +1 -1
  69. package/package.json +3 -1
@@ -0,0 +1,1035 @@
1
+ import { z } from 'zod/v4';
2
+ /**
3
+ * The persisted options of DX Dashboards' Canvas panel (`type: "canvas"`, Broadcom's own
4
+ * implementation on Grafana 7.5, shipped 2026-11-15). It mirrors upstream Grafana canvas's JSON
5
+ * but is not upstream: element types are `canvas-element-*`, icons come from a built-in set, and
6
+ * value mappings live at `options.mappings`. Upstream canvas JSON does not render on it.
7
+ *
8
+ * Source of truth is the shipped code. `bin/grafana-surface-drift.ts` snapshots its type surface
9
+ * and `CanvasPanel.test.ts` fails when this model drifts from it; the runbook is in
10
+ * `packages/client/CLAUDE.md`.
11
+ */
12
+ export declare const MappingTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
13
+ export declare const ValueMapSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<1>;
15
+ value: z.ZodString;
16
+ id: z.ZodNullable<z.ZodNumber>;
17
+ text: z.ZodNullable<z.ZodString>;
18
+ color: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$loose>;
20
+ export declare const RangeMapSchema: z.ZodObject<{
21
+ type: z.ZodLiteral<2>;
22
+ from: z.ZodString;
23
+ to: z.ZodString;
24
+ id: z.ZodNullable<z.ZodNumber>;
25
+ text: z.ZodNullable<z.ZodString>;
26
+ color: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$loose>;
28
+ export declare const SpecialMatchSchema: z.ZodEnum<{
29
+ null: "null";
30
+ nan: "nan";
31
+ true: "true";
32
+ false: "false";
33
+ "null+nan": "null+nan";
34
+ empty: "empty";
35
+ }>;
36
+ export declare const SpecialValueMapSchema: z.ZodObject<{
37
+ type: z.ZodLiteral<3>;
38
+ match: z.ZodEnum<{
39
+ null: "null";
40
+ nan: "nan";
41
+ true: "true";
42
+ false: "false";
43
+ "null+nan": "null+nan";
44
+ empty: "empty";
45
+ }>;
46
+ id: z.ZodNullable<z.ZodNumber>;
47
+ text: z.ZodNullable<z.ZodString>;
48
+ color: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$loose>;
50
+ export declare const RegexMapSchema: z.ZodObject<{
51
+ type: z.ZodLiteral<4>;
52
+ pattern: z.ZodString;
53
+ id: z.ZodNullable<z.ZodNumber>;
54
+ text: z.ZodNullable<z.ZodString>;
55
+ color: z.ZodOptional<z.ZodString>;
56
+ }, z.core.$loose>;
57
+ export declare const ValueMappingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ type: z.ZodLiteral<1>;
59
+ value: z.ZodString;
60
+ id: z.ZodNullable<z.ZodNumber>;
61
+ text: z.ZodNullable<z.ZodString>;
62
+ color: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$loose>, z.ZodObject<{
64
+ type: z.ZodLiteral<2>;
65
+ from: z.ZodString;
66
+ to: z.ZodString;
67
+ id: z.ZodNullable<z.ZodNumber>;
68
+ text: z.ZodNullable<z.ZodString>;
69
+ color: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$loose>, z.ZodObject<{
71
+ type: z.ZodLiteral<3>;
72
+ match: z.ZodEnum<{
73
+ null: "null";
74
+ nan: "nan";
75
+ true: "true";
76
+ false: "false";
77
+ "null+nan": "null+nan";
78
+ empty: "empty";
79
+ }>;
80
+ id: z.ZodNullable<z.ZodNumber>;
81
+ text: z.ZodNullable<z.ZodString>;
82
+ color: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$loose>, z.ZodObject<{
84
+ type: z.ZodLiteral<4>;
85
+ pattern: z.ZodString;
86
+ id: z.ZodNullable<z.ZodNumber>;
87
+ text: z.ZodNullable<z.ZodString>;
88
+ color: z.ZodOptional<z.ZodString>;
89
+ }, z.core.$loose>], "type">;
90
+ export type ValueMapping = z.infer<typeof ValueMappingSchema>;
91
+ export declare const InternalDataLinkSchema: z.ZodObject<{
92
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
93
+ datasourceUid: z.ZodString;
94
+ datasourceName: z.ZodString;
95
+ }, z.core.$loose>;
96
+ export declare const DataLinkSchema: z.ZodObject<{
97
+ title: z.ZodString;
98
+ url: z.ZodString;
99
+ targetBlank: z.ZodOptional<z.ZodBoolean>;
100
+ internal: z.ZodOptional<z.ZodObject<{
101
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
102
+ datasourceUid: z.ZodString;
103
+ datasourceName: z.ZodString;
104
+ }, z.core.$loose>>;
105
+ }, z.core.$loose>;
106
+ export type DataLink = z.infer<typeof DataLinkSchema>;
107
+ export declare const TextDimensionModeSchema: z.ZodEnum<{
108
+ field: "field";
109
+ fixed: "fixed";
110
+ }>;
111
+ export declare const ColorDimensionModeSchema: z.ZodEnum<{
112
+ field: "field";
113
+ fixed: "fixed";
114
+ }>;
115
+ export declare const ScalarDimensionModeSchema: z.ZodEnum<{
116
+ field: "field";
117
+ fixed: "fixed";
118
+ }>;
119
+ export declare const ResourceDimensionModeSchema: z.ZodEnum<{
120
+ field: "field";
121
+ fixed: "fixed";
122
+ folder: "folder";
123
+ }>;
124
+ export declare const TextDimensionConfigSchema: z.ZodObject<{
125
+ mode: z.ZodEnum<{
126
+ field: "field";
127
+ fixed: "fixed";
128
+ }>;
129
+ fixed: z.ZodOptional<z.ZodString>;
130
+ field: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$loose>;
132
+ export declare const ColorDimensionConfigSchema: z.ZodObject<{
133
+ mode: z.ZodEnum<{
134
+ field: "field";
135
+ fixed: "fixed";
136
+ }>;
137
+ fixed: z.ZodOptional<z.ZodString>;
138
+ field: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$loose>;
140
+ export declare const ScalarDimensionConfigSchema: z.ZodObject<{
141
+ mode: z.ZodEnum<{
142
+ field: "field";
143
+ fixed: "fixed";
144
+ }>;
145
+ fixed: z.ZodOptional<z.ZodNumber>;
146
+ field: z.ZodOptional<z.ZodString>;
147
+ min: z.ZodOptional<z.ZodNumber>;
148
+ max: z.ZodOptional<z.ZodNumber>;
149
+ }, z.core.$loose>;
150
+ export declare const ResourceDimensionConfigSchema: z.ZodObject<{
151
+ mode: z.ZodEnum<{
152
+ field: "field";
153
+ fixed: "fixed";
154
+ folder: "folder";
155
+ }>;
156
+ fixed: z.ZodOptional<z.ZodString>;
157
+ field: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$loose>;
159
+ export declare const HorizontalConstraintSchema: z.ZodEnum<{
160
+ left: "left";
161
+ right: "right";
162
+ leftright: "leftright";
163
+ center: "center";
164
+ scale: "scale";
165
+ }>;
166
+ export declare const VerticalConstraintSchema: z.ZodEnum<{
167
+ center: "center";
168
+ scale: "scale";
169
+ top: "top";
170
+ bottom: "bottom";
171
+ topbottom: "topbottom";
172
+ }>;
173
+ export declare const ConstraintConfigSchema: z.ZodObject<{
174
+ horizontal: z.ZodEnum<{
175
+ left: "left";
176
+ right: "right";
177
+ leftright: "leftright";
178
+ center: "center";
179
+ scale: "scale";
180
+ }>;
181
+ vertical: z.ZodEnum<{
182
+ center: "center";
183
+ scale: "scale";
184
+ top: "top";
185
+ bottom: "bottom";
186
+ topbottom: "topbottom";
187
+ }>;
188
+ }, z.core.$loose>;
189
+ export declare const PlacementSchema: z.ZodObject<{
190
+ top: z.ZodNumber;
191
+ left: z.ZodNumber;
192
+ width: z.ZodNumber;
193
+ height: z.ZodNumber;
194
+ rotation: z.ZodOptional<z.ZodNumber>;
195
+ }, z.core.$loose>;
196
+ export declare const BackgroundImageSizeSchema: z.ZodEnum<{
197
+ fill: "fill";
198
+ original: "original";
199
+ contain: "contain";
200
+ cover: "cover";
201
+ tile: "tile";
202
+ }>;
203
+ export declare const BackgroundConfigSchema: z.ZodObject<{
204
+ color: z.ZodOptional<z.ZodObject<{
205
+ mode: z.ZodEnum<{
206
+ field: "field";
207
+ fixed: "fixed";
208
+ }>;
209
+ fixed: z.ZodOptional<z.ZodString>;
210
+ field: z.ZodOptional<z.ZodString>;
211
+ }, z.core.$loose>>;
212
+ image: z.ZodOptional<z.ZodObject<{
213
+ mode: z.ZodEnum<{
214
+ field: "field";
215
+ fixed: "fixed";
216
+ folder: "folder";
217
+ }>;
218
+ fixed: z.ZodOptional<z.ZodString>;
219
+ field: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$loose>>;
221
+ size: z.ZodOptional<z.ZodEnum<{
222
+ fill: "fill";
223
+ original: "original";
224
+ contain: "contain";
225
+ cover: "cover";
226
+ tile: "tile";
227
+ }>>;
228
+ }, z.core.$loose>;
229
+ export declare const BorderConfigSchema: z.ZodObject<{
230
+ color: z.ZodOptional<z.ZodObject<{
231
+ mode: z.ZodEnum<{
232
+ field: "field";
233
+ fixed: "fixed";
234
+ }>;
235
+ fixed: z.ZodOptional<z.ZodString>;
236
+ field: z.ZodOptional<z.ZodString>;
237
+ }, z.core.$loose>>;
238
+ width: z.ZodOptional<z.ZodNumber>;
239
+ radius: z.ZodOptional<z.ZodNumber>;
240
+ }, z.core.$loose>;
241
+ export declare const ConnectionCoordinatesSchema: z.ZodObject<{
242
+ x: z.ZodNumber;
243
+ y: z.ZodNumber;
244
+ }, z.core.$loose>;
245
+ export declare const ConnectionDirectionSchema: z.ZodEnum<{
246
+ none: "none";
247
+ forward: "forward";
248
+ backward: "backward";
249
+ both: "both";
250
+ }>;
251
+ export declare const ConnectionLineStyleSchema: z.ZodEnum<{
252
+ solid: "solid";
253
+ dashed: "dashed";
254
+ dotted: "dotted";
255
+ }>;
256
+ export declare const ConnectionLineStyleConfigSchema: z.ZodObject<{
257
+ style: z.ZodEnum<{
258
+ solid: "solid";
259
+ dashed: "dashed";
260
+ dotted: "dotted";
261
+ }>;
262
+ animate: z.ZodOptional<z.ZodBoolean>;
263
+ }, z.core.$loose>;
264
+ export declare const CanvasConnectionSchema: z.ZodObject<{
265
+ source: z.ZodObject<{
266
+ x: z.ZodNumber;
267
+ y: z.ZodNumber;
268
+ }, z.core.$loose>;
269
+ target: z.ZodObject<{
270
+ x: z.ZodNumber;
271
+ y: z.ZodNumber;
272
+ }, z.core.$loose>;
273
+ targetName: z.ZodOptional<z.ZodString>;
274
+ color: z.ZodObject<{
275
+ mode: z.ZodEnum<{
276
+ field: "field";
277
+ fixed: "fixed";
278
+ }>;
279
+ fixed: z.ZodOptional<z.ZodString>;
280
+ field: z.ZodOptional<z.ZodString>;
281
+ }, z.core.$loose>;
282
+ size: z.ZodObject<{
283
+ mode: z.ZodEnum<{
284
+ field: "field";
285
+ fixed: "fixed";
286
+ }>;
287
+ fixed: z.ZodOptional<z.ZodNumber>;
288
+ field: z.ZodOptional<z.ZodString>;
289
+ min: z.ZodOptional<z.ZodNumber>;
290
+ max: z.ZodOptional<z.ZodNumber>;
291
+ }, z.core.$loose>;
292
+ direction: z.ZodEnum<{
293
+ none: "none";
294
+ forward: "forward";
295
+ backward: "backward";
296
+ both: "both";
297
+ }>;
298
+ vertices: z.ZodOptional<z.ZodArray<z.ZodObject<{
299
+ x: z.ZodNumber;
300
+ y: z.ZodNumber;
301
+ }, z.core.$loose>>>;
302
+ radius: z.ZodOptional<z.ZodObject<{
303
+ mode: z.ZodEnum<{
304
+ field: "field";
305
+ fixed: "fixed";
306
+ }>;
307
+ fixed: z.ZodOptional<z.ZodNumber>;
308
+ field: z.ZodOptional<z.ZodString>;
309
+ min: z.ZodOptional<z.ZodNumber>;
310
+ max: z.ZodOptional<z.ZodNumber>;
311
+ }, z.core.$loose>>;
312
+ lineStyle: z.ZodOptional<z.ZodObject<{
313
+ style: z.ZodEnum<{
314
+ solid: "solid";
315
+ dashed: "dashed";
316
+ dotted: "dotted";
317
+ }>;
318
+ animate: z.ZodOptional<z.ZodBoolean>;
319
+ }, z.core.$loose>>;
320
+ }, z.core.$loose>;
321
+ export type CanvasConnection = z.infer<typeof CanvasConnectionSchema>;
322
+ export declare const HAlignSchema: z.ZodEnum<{
323
+ left: "left";
324
+ right: "right";
325
+ center: "center";
326
+ }>;
327
+ export declare const VAlignSchema: z.ZodEnum<{
328
+ top: "top";
329
+ bottom: "bottom";
330
+ middle: "middle";
331
+ }>;
332
+ export declare const RectangleElementConfigSchema: z.ZodObject<{
333
+ text: z.ZodOptional<z.ZodObject<{
334
+ mode: z.ZodEnum<{
335
+ field: "field";
336
+ fixed: "fixed";
337
+ }>;
338
+ fixed: z.ZodOptional<z.ZodString>;
339
+ field: z.ZodOptional<z.ZodString>;
340
+ }, z.core.$loose>>;
341
+ color: z.ZodOptional<z.ZodObject<{
342
+ mode: z.ZodEnum<{
343
+ field: "field";
344
+ fixed: "fixed";
345
+ }>;
346
+ fixed: z.ZodOptional<z.ZodString>;
347
+ field: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$loose>>;
349
+ size: z.ZodOptional<z.ZodNumber>;
350
+ align: z.ZodOptional<z.ZodEnum<{
351
+ left: "left";
352
+ right: "right";
353
+ center: "center";
354
+ }>>;
355
+ valign: z.ZodOptional<z.ZodEnum<{
356
+ top: "top";
357
+ bottom: "bottom";
358
+ middle: "middle";
359
+ }>>;
360
+ }, z.core.$loose>;
361
+ export declare const EllipseElementConfigSchema: z.ZodObject<{
362
+ text: z.ZodOptional<z.ZodObject<{
363
+ mode: z.ZodEnum<{
364
+ field: "field";
365
+ fixed: "fixed";
366
+ }>;
367
+ fixed: z.ZodOptional<z.ZodString>;
368
+ field: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$loose>>;
370
+ color: z.ZodOptional<z.ZodObject<{
371
+ mode: z.ZodEnum<{
372
+ field: "field";
373
+ fixed: "fixed";
374
+ }>;
375
+ fixed: z.ZodOptional<z.ZodString>;
376
+ field: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$loose>>;
378
+ size: z.ZodOptional<z.ZodNumber>;
379
+ align: z.ZodOptional<z.ZodEnum<{
380
+ left: "left";
381
+ right: "right";
382
+ center: "center";
383
+ }>>;
384
+ valign: z.ZodOptional<z.ZodEnum<{
385
+ top: "top";
386
+ bottom: "bottom";
387
+ middle: "middle";
388
+ }>>;
389
+ }, z.core.$loose>;
390
+ export declare const TriangleElementConfigSchema: z.ZodObject<{
391
+ text: z.ZodOptional<z.ZodObject<{
392
+ mode: z.ZodEnum<{
393
+ field: "field";
394
+ fixed: "fixed";
395
+ }>;
396
+ fixed: z.ZodOptional<z.ZodString>;
397
+ field: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$loose>>;
399
+ color: z.ZodOptional<z.ZodObject<{
400
+ mode: z.ZodEnum<{
401
+ field: "field";
402
+ fixed: "fixed";
403
+ }>;
404
+ fixed: z.ZodOptional<z.ZodString>;
405
+ field: z.ZodOptional<z.ZodString>;
406
+ }, z.core.$loose>>;
407
+ size: z.ZodOptional<z.ZodNumber>;
408
+ align: z.ZodOptional<z.ZodEnum<{
409
+ left: "left";
410
+ right: "right";
411
+ center: "center";
412
+ }>>;
413
+ valign: z.ZodOptional<z.ZodEnum<{
414
+ top: "top";
415
+ bottom: "bottom";
416
+ middle: "middle";
417
+ }>>;
418
+ }, z.core.$loose>;
419
+ export declare const TextElementConfigSchema: z.ZodObject<{
420
+ text: z.ZodObject<{
421
+ mode: z.ZodEnum<{
422
+ field: "field";
423
+ fixed: "fixed";
424
+ }>;
425
+ fixed: z.ZodOptional<z.ZodString>;
426
+ field: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$loose>;
428
+ color: z.ZodObject<{
429
+ mode: z.ZodEnum<{
430
+ field: "field";
431
+ fixed: "fixed";
432
+ }>;
433
+ fixed: z.ZodOptional<z.ZodString>;
434
+ field: z.ZodOptional<z.ZodString>;
435
+ }, z.core.$loose>;
436
+ size: z.ZodOptional<z.ZodNumber>;
437
+ align: z.ZodOptional<z.ZodEnum<{
438
+ left: "left";
439
+ right: "right";
440
+ center: "center";
441
+ }>>;
442
+ valign: z.ZodOptional<z.ZodEnum<{
443
+ top: "top";
444
+ bottom: "bottom";
445
+ middle: "middle";
446
+ }>>;
447
+ }, z.core.$loose>;
448
+ export declare const MetricValueElementConfigSchema: z.ZodObject<{
449
+ color: z.ZodOptional<z.ZodObject<{
450
+ mode: z.ZodEnum<{
451
+ field: "field";
452
+ fixed: "fixed";
453
+ }>;
454
+ fixed: z.ZodOptional<z.ZodString>;
455
+ field: z.ZodOptional<z.ZodString>;
456
+ }, z.core.$loose>>;
457
+ size: z.ZodOptional<z.ZodNumber>;
458
+ field: z.ZodOptional<z.ZodString>;
459
+ align: z.ZodOptional<z.ZodEnum<{
460
+ left: "left";
461
+ right: "right";
462
+ center: "center";
463
+ }>>;
464
+ valign: z.ZodOptional<z.ZodEnum<{
465
+ top: "top";
466
+ bottom: "bottom";
467
+ middle: "middle";
468
+ }>>;
469
+ }, z.core.$loose>;
470
+ export declare const CanvasIconNameSchema: z.ZodEnum<{
471
+ Server: "Server";
472
+ Circle: "Circle";
473
+ Database: "Database";
474
+ Cloud: "Cloud";
475
+ Star: "Star";
476
+ Warning: "Warning";
477
+ Check: "Check";
478
+ Cross: "Cross";
479
+ "Arrow right": "Arrow right";
480
+ "Arrow up": "Arrow up";
481
+ }>;
482
+ export declare const IconElementConfigSchema: z.ZodObject<{
483
+ path: z.ZodOptional<z.ZodObject<{
484
+ mode: z.ZodEnum<{
485
+ field: "field";
486
+ fixed: "fixed";
487
+ folder: "folder";
488
+ }>;
489
+ fixed: z.ZodOptional<z.ZodString>;
490
+ field: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$loose>>;
492
+ fill: z.ZodOptional<z.ZodObject<{
493
+ mode: z.ZodEnum<{
494
+ field: "field";
495
+ fixed: "fixed";
496
+ }>;
497
+ fixed: z.ZodOptional<z.ZodString>;
498
+ field: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$loose>>;
500
+ stroke: z.ZodOptional<z.ZodObject<{
501
+ mode: z.ZodEnum<{
502
+ field: "field";
503
+ fixed: "fixed";
504
+ }>;
505
+ fixed: z.ZodOptional<z.ZodString>;
506
+ field: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$loose>>;
508
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
509
+ }, z.core.$loose>;
510
+ export declare const ServerTypeSchema: z.ZodEnum<{
511
+ single: "single";
512
+ stack: "stack";
513
+ database: "database";
514
+ terminal: "terminal";
515
+ }>;
516
+ export declare const ServerElementConfigSchema: z.ZodObject<{
517
+ serverType: z.ZodOptional<z.ZodEnum<{
518
+ single: "single";
519
+ stack: "stack";
520
+ database: "database";
521
+ terminal: "terminal";
522
+ }>>;
523
+ statusColor: z.ZodOptional<z.ZodObject<{
524
+ mode: z.ZodEnum<{
525
+ field: "field";
526
+ fixed: "fixed";
527
+ }>;
528
+ fixed: z.ZodOptional<z.ZodString>;
529
+ field: z.ZodOptional<z.ZodString>;
530
+ }, z.core.$loose>>;
531
+ bulbColor: z.ZodOptional<z.ZodObject<{
532
+ mode: z.ZodEnum<{
533
+ field: "field";
534
+ fixed: "fixed";
535
+ }>;
536
+ fixed: z.ZodOptional<z.ZodString>;
537
+ field: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$loose>>;
539
+ blinkHz: z.ZodOptional<z.ZodObject<{
540
+ mode: z.ZodEnum<{
541
+ field: "field";
542
+ fixed: "fixed";
543
+ }>;
544
+ fixed: z.ZodOptional<z.ZodNumber>;
545
+ field: z.ZodOptional<z.ZodString>;
546
+ min: z.ZodOptional<z.ZodNumber>;
547
+ max: z.ZodOptional<z.ZodNumber>;
548
+ }, z.core.$loose>>;
549
+ }, z.core.$loose>;
550
+ export declare const WindTurbineElementConfigSchema: z.ZodObject<{
551
+ rpm: z.ZodOptional<z.ZodObject<{
552
+ mode: z.ZodEnum<{
553
+ field: "field";
554
+ fixed: "fixed";
555
+ }>;
556
+ fixed: z.ZodOptional<z.ZodNumber>;
557
+ field: z.ZodOptional<z.ZodString>;
558
+ min: z.ZodOptional<z.ZodNumber>;
559
+ max: z.ZodOptional<z.ZodNumber>;
560
+ }, z.core.$loose>>;
561
+ bladeColor: z.ZodOptional<z.ZodObject<{
562
+ mode: z.ZodEnum<{
563
+ field: "field";
564
+ fixed: "fixed";
565
+ }>;
566
+ fixed: z.ZodOptional<z.ZodString>;
567
+ field: z.ZodOptional<z.ZodString>;
568
+ }, z.core.$loose>>;
569
+ towerColor: z.ZodOptional<z.ZodObject<{
570
+ mode: z.ZodEnum<{
571
+ field: "field";
572
+ fixed: "fixed";
573
+ }>;
574
+ fixed: z.ZodOptional<z.ZodString>;
575
+ field: z.ZodOptional<z.ZodString>;
576
+ }, z.core.$loose>>;
577
+ hubColor: z.ZodOptional<z.ZodObject<{
578
+ mode: z.ZodEnum<{
579
+ field: "field";
580
+ fixed: "fixed";
581
+ }>;
582
+ fixed: z.ZodOptional<z.ZodString>;
583
+ field: z.ZodOptional<z.ZodString>;
584
+ }, z.core.$loose>>;
585
+ }, z.core.$loose>;
586
+ export declare const FrameConfigSchema: z.ZodObject<{
587
+ label: z.ZodOptional<z.ZodString>;
588
+ }, z.core.$loose>;
589
+ /** Registered element type id → its config schema. Unregistered ids do not render. */
590
+ export declare const CANVAS_ELEMENT_CONFIG_SCHEMAS: {
591
+ readonly frame: z.ZodObject<{
592
+ label: z.ZodOptional<z.ZodString>;
593
+ }, z.core.$loose>;
594
+ readonly 'canvas-element-rectangle': z.ZodObject<{
595
+ text: z.ZodOptional<z.ZodObject<{
596
+ mode: z.ZodEnum<{
597
+ field: "field";
598
+ fixed: "fixed";
599
+ }>;
600
+ fixed: z.ZodOptional<z.ZodString>;
601
+ field: z.ZodOptional<z.ZodString>;
602
+ }, z.core.$loose>>;
603
+ color: z.ZodOptional<z.ZodObject<{
604
+ mode: z.ZodEnum<{
605
+ field: "field";
606
+ fixed: "fixed";
607
+ }>;
608
+ fixed: z.ZodOptional<z.ZodString>;
609
+ field: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$loose>>;
611
+ size: z.ZodOptional<z.ZodNumber>;
612
+ align: z.ZodOptional<z.ZodEnum<{
613
+ left: "left";
614
+ right: "right";
615
+ center: "center";
616
+ }>>;
617
+ valign: z.ZodOptional<z.ZodEnum<{
618
+ top: "top";
619
+ bottom: "bottom";
620
+ middle: "middle";
621
+ }>>;
622
+ }, z.core.$loose>;
623
+ readonly 'canvas-element-ellipse': z.ZodObject<{
624
+ text: z.ZodOptional<z.ZodObject<{
625
+ mode: z.ZodEnum<{
626
+ field: "field";
627
+ fixed: "fixed";
628
+ }>;
629
+ fixed: z.ZodOptional<z.ZodString>;
630
+ field: z.ZodOptional<z.ZodString>;
631
+ }, z.core.$loose>>;
632
+ color: z.ZodOptional<z.ZodObject<{
633
+ mode: z.ZodEnum<{
634
+ field: "field";
635
+ fixed: "fixed";
636
+ }>;
637
+ fixed: z.ZodOptional<z.ZodString>;
638
+ field: z.ZodOptional<z.ZodString>;
639
+ }, z.core.$loose>>;
640
+ size: z.ZodOptional<z.ZodNumber>;
641
+ align: z.ZodOptional<z.ZodEnum<{
642
+ left: "left";
643
+ right: "right";
644
+ center: "center";
645
+ }>>;
646
+ valign: z.ZodOptional<z.ZodEnum<{
647
+ top: "top";
648
+ bottom: "bottom";
649
+ middle: "middle";
650
+ }>>;
651
+ }, z.core.$loose>;
652
+ readonly 'canvas-element-triangle': z.ZodObject<{
653
+ text: z.ZodOptional<z.ZodObject<{
654
+ mode: z.ZodEnum<{
655
+ field: "field";
656
+ fixed: "fixed";
657
+ }>;
658
+ fixed: z.ZodOptional<z.ZodString>;
659
+ field: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$loose>>;
661
+ color: z.ZodOptional<z.ZodObject<{
662
+ mode: z.ZodEnum<{
663
+ field: "field";
664
+ fixed: "fixed";
665
+ }>;
666
+ fixed: z.ZodOptional<z.ZodString>;
667
+ field: z.ZodOptional<z.ZodString>;
668
+ }, z.core.$loose>>;
669
+ size: z.ZodOptional<z.ZodNumber>;
670
+ align: z.ZodOptional<z.ZodEnum<{
671
+ left: "left";
672
+ right: "right";
673
+ center: "center";
674
+ }>>;
675
+ valign: z.ZodOptional<z.ZodEnum<{
676
+ top: "top";
677
+ bottom: "bottom";
678
+ middle: "middle";
679
+ }>>;
680
+ }, z.core.$loose>;
681
+ readonly 'canvas-element-text': z.ZodObject<{
682
+ text: z.ZodObject<{
683
+ mode: z.ZodEnum<{
684
+ field: "field";
685
+ fixed: "fixed";
686
+ }>;
687
+ fixed: z.ZodOptional<z.ZodString>;
688
+ field: z.ZodOptional<z.ZodString>;
689
+ }, z.core.$loose>;
690
+ color: z.ZodObject<{
691
+ mode: z.ZodEnum<{
692
+ field: "field";
693
+ fixed: "fixed";
694
+ }>;
695
+ fixed: z.ZodOptional<z.ZodString>;
696
+ field: z.ZodOptional<z.ZodString>;
697
+ }, z.core.$loose>;
698
+ size: z.ZodOptional<z.ZodNumber>;
699
+ align: z.ZodOptional<z.ZodEnum<{
700
+ left: "left";
701
+ right: "right";
702
+ center: "center";
703
+ }>>;
704
+ valign: z.ZodOptional<z.ZodEnum<{
705
+ top: "top";
706
+ bottom: "bottom";
707
+ middle: "middle";
708
+ }>>;
709
+ }, z.core.$loose>;
710
+ readonly 'canvas-element-metric-value': z.ZodObject<{
711
+ color: z.ZodOptional<z.ZodObject<{
712
+ mode: z.ZodEnum<{
713
+ field: "field";
714
+ fixed: "fixed";
715
+ }>;
716
+ fixed: z.ZodOptional<z.ZodString>;
717
+ field: z.ZodOptional<z.ZodString>;
718
+ }, z.core.$loose>>;
719
+ size: z.ZodOptional<z.ZodNumber>;
720
+ field: z.ZodOptional<z.ZodString>;
721
+ align: z.ZodOptional<z.ZodEnum<{
722
+ left: "left";
723
+ right: "right";
724
+ center: "center";
725
+ }>>;
726
+ valign: z.ZodOptional<z.ZodEnum<{
727
+ top: "top";
728
+ bottom: "bottom";
729
+ middle: "middle";
730
+ }>>;
731
+ }, z.core.$loose>;
732
+ readonly 'canvas-element-icon': z.ZodObject<{
733
+ path: z.ZodOptional<z.ZodObject<{
734
+ mode: z.ZodEnum<{
735
+ field: "field";
736
+ fixed: "fixed";
737
+ folder: "folder";
738
+ }>;
739
+ fixed: z.ZodOptional<z.ZodString>;
740
+ field: z.ZodOptional<z.ZodString>;
741
+ }, z.core.$loose>>;
742
+ fill: z.ZodOptional<z.ZodObject<{
743
+ mode: z.ZodEnum<{
744
+ field: "field";
745
+ fixed: "fixed";
746
+ }>;
747
+ fixed: z.ZodOptional<z.ZodString>;
748
+ field: z.ZodOptional<z.ZodString>;
749
+ }, z.core.$loose>>;
750
+ stroke: z.ZodOptional<z.ZodObject<{
751
+ mode: z.ZodEnum<{
752
+ field: "field";
753
+ fixed: "fixed";
754
+ }>;
755
+ fixed: z.ZodOptional<z.ZodString>;
756
+ field: z.ZodOptional<z.ZodString>;
757
+ }, z.core.$loose>>;
758
+ strokeWidth: z.ZodOptional<z.ZodNumber>;
759
+ }, z.core.$loose>;
760
+ readonly 'canvas-element-server': z.ZodObject<{
761
+ serverType: z.ZodOptional<z.ZodEnum<{
762
+ single: "single";
763
+ stack: "stack";
764
+ database: "database";
765
+ terminal: "terminal";
766
+ }>>;
767
+ statusColor: z.ZodOptional<z.ZodObject<{
768
+ mode: z.ZodEnum<{
769
+ field: "field";
770
+ fixed: "fixed";
771
+ }>;
772
+ fixed: z.ZodOptional<z.ZodString>;
773
+ field: z.ZodOptional<z.ZodString>;
774
+ }, z.core.$loose>>;
775
+ bulbColor: z.ZodOptional<z.ZodObject<{
776
+ mode: z.ZodEnum<{
777
+ field: "field";
778
+ fixed: "fixed";
779
+ }>;
780
+ fixed: z.ZodOptional<z.ZodString>;
781
+ field: z.ZodOptional<z.ZodString>;
782
+ }, z.core.$loose>>;
783
+ blinkHz: z.ZodOptional<z.ZodObject<{
784
+ mode: z.ZodEnum<{
785
+ field: "field";
786
+ fixed: "fixed";
787
+ }>;
788
+ fixed: z.ZodOptional<z.ZodNumber>;
789
+ field: z.ZodOptional<z.ZodString>;
790
+ min: z.ZodOptional<z.ZodNumber>;
791
+ max: z.ZodOptional<z.ZodNumber>;
792
+ }, z.core.$loose>>;
793
+ }, z.core.$loose>;
794
+ readonly 'canvas-element-wind-turbine': z.ZodObject<{
795
+ rpm: z.ZodOptional<z.ZodObject<{
796
+ mode: z.ZodEnum<{
797
+ field: "field";
798
+ fixed: "fixed";
799
+ }>;
800
+ fixed: z.ZodOptional<z.ZodNumber>;
801
+ field: z.ZodOptional<z.ZodString>;
802
+ min: z.ZodOptional<z.ZodNumber>;
803
+ max: z.ZodOptional<z.ZodNumber>;
804
+ }, z.core.$loose>>;
805
+ bladeColor: z.ZodOptional<z.ZodObject<{
806
+ mode: z.ZodEnum<{
807
+ field: "field";
808
+ fixed: "fixed";
809
+ }>;
810
+ fixed: z.ZodOptional<z.ZodString>;
811
+ field: z.ZodOptional<z.ZodString>;
812
+ }, z.core.$loose>>;
813
+ towerColor: z.ZodOptional<z.ZodObject<{
814
+ mode: z.ZodEnum<{
815
+ field: "field";
816
+ fixed: "fixed";
817
+ }>;
818
+ fixed: z.ZodOptional<z.ZodString>;
819
+ field: z.ZodOptional<z.ZodString>;
820
+ }, z.core.$loose>>;
821
+ hubColor: z.ZodOptional<z.ZodObject<{
822
+ mode: z.ZodEnum<{
823
+ field: "field";
824
+ fixed: "fixed";
825
+ }>;
826
+ fixed: z.ZodOptional<z.ZodString>;
827
+ field: z.ZodOptional<z.ZodString>;
828
+ }, z.core.$loose>>;
829
+ }, z.core.$loose>;
830
+ };
831
+ export type CanvasElementTypeId = keyof typeof CANVAS_ELEMENT_CONFIG_SCHEMAS;
832
+ export declare const CanvasElementTypeIdSchema: z.ZodEnum<{
833
+ frame: "frame";
834
+ "canvas-element-rectangle": "canvas-element-rectangle";
835
+ "canvas-element-ellipse": "canvas-element-ellipse";
836
+ "canvas-element-triangle": "canvas-element-triangle";
837
+ "canvas-element-text": "canvas-element-text";
838
+ "canvas-element-metric-value": "canvas-element-metric-value";
839
+ "canvas-element-icon": "canvas-element-icon";
840
+ "canvas-element-server": "canvas-element-server";
841
+ "canvas-element-wind-turbine": "canvas-element-wind-turbine";
842
+ }>;
843
+ /** The properties every element shares, whatever its type (the shipped `CanvasElementOptions`). */
844
+ export declare const CanvasElementBaseShape: {
845
+ name: z.ZodString;
846
+ placement: z.ZodObject<{
847
+ top: z.ZodNumber;
848
+ left: z.ZodNumber;
849
+ width: z.ZodNumber;
850
+ height: z.ZodNumber;
851
+ rotation: z.ZodOptional<z.ZodNumber>;
852
+ }, z.core.$loose>;
853
+ constraint: z.ZodObject<{
854
+ horizontal: z.ZodEnum<{
855
+ left: "left";
856
+ right: "right";
857
+ leftright: "leftright";
858
+ center: "center";
859
+ scale: "scale";
860
+ }>;
861
+ vertical: z.ZodEnum<{
862
+ center: "center";
863
+ scale: "scale";
864
+ top: "top";
865
+ bottom: "bottom";
866
+ topbottom: "topbottom";
867
+ }>;
868
+ }, z.core.$loose>;
869
+ background: z.ZodOptional<z.ZodObject<{
870
+ color: z.ZodOptional<z.ZodObject<{
871
+ mode: z.ZodEnum<{
872
+ field: "field";
873
+ fixed: "fixed";
874
+ }>;
875
+ fixed: z.ZodOptional<z.ZodString>;
876
+ field: z.ZodOptional<z.ZodString>;
877
+ }, z.core.$loose>>;
878
+ image: z.ZodOptional<z.ZodObject<{
879
+ mode: z.ZodEnum<{
880
+ field: "field";
881
+ fixed: "fixed";
882
+ folder: "folder";
883
+ }>;
884
+ fixed: z.ZodOptional<z.ZodString>;
885
+ field: z.ZodOptional<z.ZodString>;
886
+ }, z.core.$loose>>;
887
+ size: z.ZodOptional<z.ZodEnum<{
888
+ fill: "fill";
889
+ original: "original";
890
+ contain: "contain";
891
+ cover: "cover";
892
+ tile: "tile";
893
+ }>>;
894
+ }, z.core.$loose>>;
895
+ border: z.ZodOptional<z.ZodObject<{
896
+ color: z.ZodOptional<z.ZodObject<{
897
+ mode: z.ZodEnum<{
898
+ field: "field";
899
+ fixed: "fixed";
900
+ }>;
901
+ fixed: z.ZodOptional<z.ZodString>;
902
+ field: z.ZodOptional<z.ZodString>;
903
+ }, z.core.$loose>>;
904
+ width: z.ZodOptional<z.ZodNumber>;
905
+ radius: z.ZodOptional<z.ZodNumber>;
906
+ }, z.core.$loose>>;
907
+ elements: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<CanvasElement, unknown, z.core.$ZodTypeInternals<CanvasElement, unknown>>>>>;
908
+ connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
909
+ source: z.ZodObject<{
910
+ x: z.ZodNumber;
911
+ y: z.ZodNumber;
912
+ }, z.core.$loose>;
913
+ target: z.ZodObject<{
914
+ x: z.ZodNumber;
915
+ y: z.ZodNumber;
916
+ }, z.core.$loose>;
917
+ targetName: z.ZodOptional<z.ZodString>;
918
+ color: z.ZodObject<{
919
+ mode: z.ZodEnum<{
920
+ field: "field";
921
+ fixed: "fixed";
922
+ }>;
923
+ fixed: z.ZodOptional<z.ZodString>;
924
+ field: z.ZodOptional<z.ZodString>;
925
+ }, z.core.$loose>;
926
+ size: z.ZodObject<{
927
+ mode: z.ZodEnum<{
928
+ field: "field";
929
+ fixed: "fixed";
930
+ }>;
931
+ fixed: z.ZodOptional<z.ZodNumber>;
932
+ field: z.ZodOptional<z.ZodString>;
933
+ min: z.ZodOptional<z.ZodNumber>;
934
+ max: z.ZodOptional<z.ZodNumber>;
935
+ }, z.core.$loose>;
936
+ direction: z.ZodEnum<{
937
+ none: "none";
938
+ forward: "forward";
939
+ backward: "backward";
940
+ both: "both";
941
+ }>;
942
+ vertices: z.ZodOptional<z.ZodArray<z.ZodObject<{
943
+ x: z.ZodNumber;
944
+ y: z.ZodNumber;
945
+ }, z.core.$loose>>>;
946
+ radius: z.ZodOptional<z.ZodObject<{
947
+ mode: z.ZodEnum<{
948
+ field: "field";
949
+ fixed: "fixed";
950
+ }>;
951
+ fixed: z.ZodOptional<z.ZodNumber>;
952
+ field: z.ZodOptional<z.ZodString>;
953
+ min: z.ZodOptional<z.ZodNumber>;
954
+ max: z.ZodOptional<z.ZodNumber>;
955
+ }, z.core.$loose>>;
956
+ lineStyle: z.ZodOptional<z.ZodObject<{
957
+ style: z.ZodEnum<{
958
+ solid: "solid";
959
+ dashed: "dashed";
960
+ dotted: "dotted";
961
+ }>;
962
+ animate: z.ZodOptional<z.ZodBoolean>;
963
+ }, z.core.$loose>>;
964
+ }, z.core.$loose>>>;
965
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
966
+ title: z.ZodString;
967
+ url: z.ZodString;
968
+ targetBlank: z.ZodOptional<z.ZodBoolean>;
969
+ internal: z.ZodOptional<z.ZodObject<{
970
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
971
+ datasourceUid: z.ZodString;
972
+ datasourceName: z.ZodString;
973
+ }, z.core.$loose>>;
974
+ }, z.core.$loose>>>;
975
+ };
976
+ export declare const CanvasElementSchema: z.ZodType<CanvasElement>;
977
+ type ElementConfig<T extends CanvasElementTypeId> = z.infer<(typeof CANVAS_ELEMENT_CONFIG_SCHEMAS)[T]>;
978
+ /** One canvas element (recursive through `elements`, so the type is written out rather than inferred). */
979
+ export type CanvasElement = {
980
+ [T in CanvasElementTypeId]: {
981
+ type: T;
982
+ name: string;
983
+ placement: z.infer<typeof PlacementSchema>;
984
+ constraint: z.infer<typeof ConstraintConfigSchema>;
985
+ background?: z.infer<typeof BackgroundConfigSchema>;
986
+ border?: z.infer<typeof BorderConfigSchema>;
987
+ elements?: CanvasElement[];
988
+ connections?: CanvasConnection[];
989
+ links?: DataLink[];
990
+ config?: ElementConfig<T>;
991
+ [key: string]: unknown;
992
+ };
993
+ }[CanvasElementTypeId];
994
+ export declare const CanvasOptionsSchema: z.ZodObject<{
995
+ root: z.ZodType<CanvasElement, unknown, z.core.$ZodTypeInternals<CanvasElement, unknown>>;
996
+ inlineEditing: z.ZodBoolean;
997
+ panZoom: z.ZodBoolean;
998
+ zoomToContent: z.ZodBoolean;
999
+ mappings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1000
+ type: z.ZodLiteral<1>;
1001
+ value: z.ZodString;
1002
+ id: z.ZodNullable<z.ZodNumber>;
1003
+ text: z.ZodNullable<z.ZodString>;
1004
+ color: z.ZodOptional<z.ZodString>;
1005
+ }, z.core.$loose>, z.ZodObject<{
1006
+ type: z.ZodLiteral<2>;
1007
+ from: z.ZodString;
1008
+ to: z.ZodString;
1009
+ id: z.ZodNullable<z.ZodNumber>;
1010
+ text: z.ZodNullable<z.ZodString>;
1011
+ color: z.ZodOptional<z.ZodString>;
1012
+ }, z.core.$loose>, z.ZodObject<{
1013
+ type: z.ZodLiteral<3>;
1014
+ match: z.ZodEnum<{
1015
+ null: "null";
1016
+ nan: "nan";
1017
+ true: "true";
1018
+ false: "false";
1019
+ "null+nan": "null+nan";
1020
+ empty: "empty";
1021
+ }>;
1022
+ id: z.ZodNullable<z.ZodNumber>;
1023
+ text: z.ZodNullable<z.ZodString>;
1024
+ color: z.ZodOptional<z.ZodString>;
1025
+ }, z.core.$loose>, z.ZodObject<{
1026
+ type: z.ZodLiteral<4>;
1027
+ pattern: z.ZodString;
1028
+ id: z.ZodNullable<z.ZodNumber>;
1029
+ text: z.ZodNullable<z.ZodString>;
1030
+ color: z.ZodOptional<z.ZodString>;
1031
+ }, z.core.$loose>], "type">>;
1032
+ }, z.core.$loose>;
1033
+ export type CanvasOptions = z.infer<typeof CanvasOptionsSchema>;
1034
+ export {};
1035
+ //# sourceMappingURL=CanvasPanel.d.ts.map