@glyphjs/schemas 0.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.
@@ -0,0 +1,1311 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const graphSchema: z.ZodObject<{
4
+ type: z.ZodEnum<["dag", "flowchart", "mindmap", "force"]>;
5
+ nodes: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ label: z.ZodString;
8
+ type: z.ZodOptional<z.ZodString>;
9
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
10
+ group: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ label: string;
14
+ type?: string | undefined;
15
+ style?: Record<string, string> | undefined;
16
+ group?: string | undefined;
17
+ }, {
18
+ id: string;
19
+ label: string;
20
+ type?: string | undefined;
21
+ style?: Record<string, string> | undefined;
22
+ group?: string | undefined;
23
+ }>, "many">;
24
+ edges: z.ZodArray<z.ZodObject<{
25
+ from: z.ZodString;
26
+ to: z.ZodString;
27
+ label: z.ZodOptional<z.ZodString>;
28
+ type: z.ZodOptional<z.ZodString>;
29
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ from: string;
32
+ to: string;
33
+ type?: string | undefined;
34
+ label?: string | undefined;
35
+ style?: Record<string, string> | undefined;
36
+ }, {
37
+ from: string;
38
+ to: string;
39
+ type?: string | undefined;
40
+ label?: string | undefined;
41
+ style?: Record<string, string> | undefined;
42
+ }>, "many">;
43
+ layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right", "bottom-up", "radial", "force"]>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ type: "dag" | "flowchart" | "mindmap" | "force";
46
+ nodes: {
47
+ id: string;
48
+ label: string;
49
+ type?: string | undefined;
50
+ style?: Record<string, string> | undefined;
51
+ group?: string | undefined;
52
+ }[];
53
+ edges: {
54
+ from: string;
55
+ to: string;
56
+ type?: string | undefined;
57
+ label?: string | undefined;
58
+ style?: Record<string, string> | undefined;
59
+ }[];
60
+ layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
61
+ }, {
62
+ type: "dag" | "flowchart" | "mindmap" | "force";
63
+ nodes: {
64
+ id: string;
65
+ label: string;
66
+ type?: string | undefined;
67
+ style?: Record<string, string> | undefined;
68
+ group?: string | undefined;
69
+ }[];
70
+ edges: {
71
+ from: string;
72
+ to: string;
73
+ type?: string | undefined;
74
+ label?: string | undefined;
75
+ style?: Record<string, string> | undefined;
76
+ }[];
77
+ layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
78
+ }>;
79
+
80
+ declare const tableSchema: z.ZodObject<{
81
+ columns: z.ZodArray<z.ZodObject<{
82
+ key: z.ZodString;
83
+ label: z.ZodString;
84
+ sortable: z.ZodOptional<z.ZodBoolean>;
85
+ filterable: z.ZodOptional<z.ZodBoolean>;
86
+ type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "boolean"]>>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ label: string;
89
+ key: string;
90
+ type?: "string" | "number" | "boolean" | "date" | undefined;
91
+ sortable?: boolean | undefined;
92
+ filterable?: boolean | undefined;
93
+ }, {
94
+ label: string;
95
+ key: string;
96
+ type?: "string" | "number" | "boolean" | "date" | undefined;
97
+ sortable?: boolean | undefined;
98
+ filterable?: boolean | undefined;
99
+ }>, "many">;
100
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
101
+ aggregation: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ column: z.ZodString;
103
+ function: z.ZodEnum<["sum", "avg", "count", "min", "max"]>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ function: "sum" | "avg" | "count" | "min" | "max";
106
+ column: string;
107
+ }, {
108
+ function: "sum" | "avg" | "count" | "min" | "max";
109
+ column: string;
110
+ }>, "many">>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ columns: {
113
+ label: string;
114
+ key: string;
115
+ type?: "string" | "number" | "boolean" | "date" | undefined;
116
+ sortable?: boolean | undefined;
117
+ filterable?: boolean | undefined;
118
+ }[];
119
+ rows: Record<string, unknown>[];
120
+ aggregation?: {
121
+ function: "sum" | "avg" | "count" | "min" | "max";
122
+ column: string;
123
+ }[] | undefined;
124
+ }, {
125
+ columns: {
126
+ label: string;
127
+ key: string;
128
+ type?: "string" | "number" | "boolean" | "date" | undefined;
129
+ sortable?: boolean | undefined;
130
+ filterable?: boolean | undefined;
131
+ }[];
132
+ rows: Record<string, unknown>[];
133
+ aggregation?: {
134
+ function: "sum" | "avg" | "count" | "min" | "max";
135
+ column: string;
136
+ }[] | undefined;
137
+ }>;
138
+
139
+ declare const chartSchema: z.ZodObject<{
140
+ type: z.ZodEnum<["line", "bar", "area", "ohlc"]>;
141
+ series: z.ZodArray<z.ZodObject<{
142
+ name: z.ZodString;
143
+ data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString]>>, "many">;
144
+ }, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ data: Record<string, string | number>[];
147
+ }, {
148
+ name: string;
149
+ data: Record<string, string | number>[];
150
+ }>, "many">;
151
+ xAxis: z.ZodOptional<z.ZodObject<{
152
+ key: z.ZodString;
153
+ label: z.ZodOptional<z.ZodString>;
154
+ }, "strip", z.ZodTypeAny, {
155
+ key: string;
156
+ label?: string | undefined;
157
+ }, {
158
+ key: string;
159
+ label?: string | undefined;
160
+ }>>;
161
+ yAxis: z.ZodOptional<z.ZodObject<{
162
+ key: z.ZodString;
163
+ label: z.ZodOptional<z.ZodString>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ key: string;
166
+ label?: string | undefined;
167
+ }, {
168
+ key: string;
169
+ label?: string | undefined;
170
+ }>>;
171
+ legend: z.ZodOptional<z.ZodBoolean>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ type: "line" | "bar" | "area" | "ohlc";
174
+ series: {
175
+ name: string;
176
+ data: Record<string, string | number>[];
177
+ }[];
178
+ xAxis?: {
179
+ key: string;
180
+ label?: string | undefined;
181
+ } | undefined;
182
+ yAxis?: {
183
+ key: string;
184
+ label?: string | undefined;
185
+ } | undefined;
186
+ legend?: boolean | undefined;
187
+ }, {
188
+ type: "line" | "bar" | "area" | "ohlc";
189
+ series: {
190
+ name: string;
191
+ data: Record<string, string | number>[];
192
+ }[];
193
+ xAxis?: {
194
+ key: string;
195
+ label?: string | undefined;
196
+ } | undefined;
197
+ yAxis?: {
198
+ key: string;
199
+ label?: string | undefined;
200
+ } | undefined;
201
+ legend?: boolean | undefined;
202
+ }>;
203
+
204
+ declare const relationSchema: z.ZodObject<{
205
+ entities: z.ZodArray<z.ZodObject<{
206
+ id: z.ZodString;
207
+ label: z.ZodString;
208
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
209
+ name: z.ZodString;
210
+ type: z.ZodString;
211
+ primaryKey: z.ZodOptional<z.ZodBoolean>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: string;
214
+ name: string;
215
+ primaryKey?: boolean | undefined;
216
+ }, {
217
+ type: string;
218
+ name: string;
219
+ primaryKey?: boolean | undefined;
220
+ }>, "many">>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ id: string;
223
+ label: string;
224
+ attributes?: {
225
+ type: string;
226
+ name: string;
227
+ primaryKey?: boolean | undefined;
228
+ }[] | undefined;
229
+ }, {
230
+ id: string;
231
+ label: string;
232
+ attributes?: {
233
+ type: string;
234
+ name: string;
235
+ primaryKey?: boolean | undefined;
236
+ }[] | undefined;
237
+ }>, "many">;
238
+ relationships: z.ZodArray<z.ZodObject<{
239
+ from: z.ZodString;
240
+ to: z.ZodString;
241
+ label: z.ZodOptional<z.ZodString>;
242
+ cardinality: z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ from: string;
245
+ to: string;
246
+ cardinality: "1:1" | "1:N" | "N:1" | "N:M";
247
+ label?: string | undefined;
248
+ }, {
249
+ from: string;
250
+ to: string;
251
+ cardinality: "1:1" | "1:N" | "N:1" | "N:M";
252
+ label?: string | undefined;
253
+ }>, "many">;
254
+ layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right"]>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ entities: {
257
+ id: string;
258
+ label: string;
259
+ attributes?: {
260
+ type: string;
261
+ name: string;
262
+ primaryKey?: boolean | undefined;
263
+ }[] | undefined;
264
+ }[];
265
+ relationships: {
266
+ from: string;
267
+ to: string;
268
+ cardinality: "1:1" | "1:N" | "N:1" | "N:M";
269
+ label?: string | undefined;
270
+ }[];
271
+ layout?: "top-down" | "left-right" | undefined;
272
+ }, {
273
+ entities: {
274
+ id: string;
275
+ label: string;
276
+ attributes?: {
277
+ type: string;
278
+ name: string;
279
+ primaryKey?: boolean | undefined;
280
+ }[] | undefined;
281
+ }[];
282
+ relationships: {
283
+ from: string;
284
+ to: string;
285
+ cardinality: "1:1" | "1:N" | "N:1" | "N:M";
286
+ label?: string | undefined;
287
+ }[];
288
+ layout?: "top-down" | "left-right" | undefined;
289
+ }>;
290
+
291
+ declare const timelineSchema: z.ZodObject<{
292
+ events: z.ZodArray<z.ZodObject<{
293
+ date: z.ZodString;
294
+ title: z.ZodString;
295
+ description: z.ZodOptional<z.ZodString>;
296
+ type: z.ZodOptional<z.ZodString>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ date: string;
299
+ title: string;
300
+ type?: string | undefined;
301
+ description?: string | undefined;
302
+ }, {
303
+ date: string;
304
+ title: string;
305
+ type?: string | undefined;
306
+ description?: string | undefined;
307
+ }>, "many">;
308
+ orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ events: {
311
+ date: string;
312
+ title: string;
313
+ type?: string | undefined;
314
+ description?: string | undefined;
315
+ }[];
316
+ orientation?: "vertical" | "horizontal" | undefined;
317
+ }, {
318
+ events: {
319
+ date: string;
320
+ title: string;
321
+ type?: string | undefined;
322
+ description?: string | undefined;
323
+ }[];
324
+ orientation?: "vertical" | "horizontal" | undefined;
325
+ }>;
326
+
327
+ declare const calloutSchema: z.ZodObject<{
328
+ type: z.ZodEnum<["info", "warning", "error", "tip"]>;
329
+ title: z.ZodOptional<z.ZodString>;
330
+ content: z.ZodString;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "info" | "warning" | "error" | "tip";
333
+ content: string;
334
+ title?: string | undefined;
335
+ }, {
336
+ type: "info" | "warning" | "error" | "tip";
337
+ content: string;
338
+ title?: string | undefined;
339
+ }>;
340
+
341
+ declare const tabsSchema: z.ZodObject<{
342
+ tabs: z.ZodArray<z.ZodObject<{
343
+ label: z.ZodString;
344
+ content: z.ZodString;
345
+ }, "strip", z.ZodTypeAny, {
346
+ label: string;
347
+ content: string;
348
+ }, {
349
+ label: string;
350
+ content: string;
351
+ }>, "many">;
352
+ }, "strip", z.ZodTypeAny, {
353
+ tabs: {
354
+ label: string;
355
+ content: string;
356
+ }[];
357
+ }, {
358
+ tabs: {
359
+ label: string;
360
+ content: string;
361
+ }[];
362
+ }>;
363
+
364
+ declare const stepsSchema: z.ZodObject<{
365
+ steps: z.ZodArray<z.ZodObject<{
366
+ title: z.ZodString;
367
+ status: z.ZodOptional<z.ZodEnum<["pending", "active", "completed"]>>;
368
+ content: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ title: string;
371
+ content: string;
372
+ status?: "pending" | "active" | "completed" | undefined;
373
+ }, {
374
+ title: string;
375
+ content: string;
376
+ status?: "pending" | "active" | "completed" | undefined;
377
+ }>, "many">;
378
+ }, "strip", z.ZodTypeAny, {
379
+ steps: {
380
+ title: string;
381
+ content: string;
382
+ status?: "pending" | "active" | "completed" | undefined;
383
+ }[];
384
+ }, {
385
+ steps: {
386
+ title: string;
387
+ content: string;
388
+ status?: "pending" | "active" | "completed" | undefined;
389
+ }[];
390
+ }>;
391
+
392
+ interface ArchitectureNode {
393
+ id: string;
394
+ label: string;
395
+ icon?: 'server' | 'database' | 'queue' | 'cache' | 'loadbalancer' | 'function' | 'storage' | 'gateway' | 'user' | 'cloud' | 'container' | 'network';
396
+ type?: 'zone';
397
+ children?: ArchitectureNode[];
398
+ style?: Record<string, string>;
399
+ }
400
+ declare const architectureSchema: z.ZodObject<{
401
+ title: z.ZodOptional<z.ZodString>;
402
+ children: z.ZodArray<z.ZodType<ArchitectureNode, z.ZodTypeDef, ArchitectureNode>, "many">;
403
+ edges: z.ZodArray<z.ZodObject<{
404
+ from: z.ZodString;
405
+ to: z.ZodString;
406
+ label: z.ZodOptional<z.ZodString>;
407
+ type: z.ZodOptional<z.ZodEnum<["sync", "async", "data"]>>;
408
+ style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ from: string;
411
+ to: string;
412
+ type?: "data" | "sync" | "async" | undefined;
413
+ label?: string | undefined;
414
+ style?: Record<string, string> | undefined;
415
+ }, {
416
+ from: string;
417
+ to: string;
418
+ type?: "data" | "sync" | "async" | undefined;
419
+ label?: string | undefined;
420
+ style?: Record<string, string> | undefined;
421
+ }>, "many">;
422
+ layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right", "bottom-up"]>>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ edges: {
425
+ from: string;
426
+ to: string;
427
+ type?: "data" | "sync" | "async" | undefined;
428
+ label?: string | undefined;
429
+ style?: Record<string, string> | undefined;
430
+ }[];
431
+ children: ArchitectureNode[];
432
+ layout?: "top-down" | "left-right" | "bottom-up" | undefined;
433
+ title?: string | undefined;
434
+ }, {
435
+ edges: {
436
+ from: string;
437
+ to: string;
438
+ type?: "data" | "sync" | "async" | undefined;
439
+ label?: string | undefined;
440
+ style?: Record<string, string> | undefined;
441
+ }[];
442
+ children: ArchitectureNode[];
443
+ layout?: "top-down" | "left-right" | "bottom-up" | undefined;
444
+ title?: string | undefined;
445
+ }>;
446
+
447
+ declare const kpiSchema: z.ZodObject<{
448
+ title: z.ZodOptional<z.ZodString>;
449
+ metrics: z.ZodArray<z.ZodObject<{
450
+ label: z.ZodString;
451
+ value: z.ZodString;
452
+ delta: z.ZodOptional<z.ZodString>;
453
+ trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
454
+ sentiment: z.ZodOptional<z.ZodEnum<["positive", "negative", "neutral"]>>;
455
+ unit: z.ZodOptional<z.ZodString>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ value: string;
458
+ label: string;
459
+ delta?: string | undefined;
460
+ trend?: "flat" | "up" | "down" | undefined;
461
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
462
+ unit?: string | undefined;
463
+ }, {
464
+ value: string;
465
+ label: string;
466
+ delta?: string | undefined;
467
+ trend?: "flat" | "up" | "down" | undefined;
468
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
469
+ unit?: string | undefined;
470
+ }>, "many">;
471
+ columns: z.ZodOptional<z.ZodNumber>;
472
+ }, "strip", z.ZodTypeAny, {
473
+ metrics: {
474
+ value: string;
475
+ label: string;
476
+ delta?: string | undefined;
477
+ trend?: "flat" | "up" | "down" | undefined;
478
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
479
+ unit?: string | undefined;
480
+ }[];
481
+ columns?: number | undefined;
482
+ title?: string | undefined;
483
+ }, {
484
+ metrics: {
485
+ value: string;
486
+ label: string;
487
+ delta?: string | undefined;
488
+ trend?: "flat" | "up" | "down" | undefined;
489
+ sentiment?: "positive" | "negative" | "neutral" | undefined;
490
+ unit?: string | undefined;
491
+ }[];
492
+ columns?: number | undefined;
493
+ title?: string | undefined;
494
+ }>;
495
+
496
+ declare const accordionSchema: z.ZodObject<{
497
+ title: z.ZodOptional<z.ZodString>;
498
+ sections: z.ZodArray<z.ZodObject<{
499
+ title: z.ZodString;
500
+ content: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ title: string;
503
+ content: string;
504
+ }, {
505
+ title: string;
506
+ content: string;
507
+ }>, "many">;
508
+ defaultOpen: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
509
+ multiple: z.ZodDefault<z.ZodBoolean>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ sections: {
512
+ title: string;
513
+ content: string;
514
+ }[];
515
+ multiple: boolean;
516
+ title?: string | undefined;
517
+ defaultOpen?: number[] | undefined;
518
+ }, {
519
+ sections: {
520
+ title: string;
521
+ content: string;
522
+ }[];
523
+ title?: string | undefined;
524
+ defaultOpen?: number[] | undefined;
525
+ multiple?: boolean | undefined;
526
+ }>;
527
+
528
+ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
529
+ title: z.ZodOptional<z.ZodString>;
530
+ options: z.ZodArray<z.ZodObject<{
531
+ name: z.ZodString;
532
+ description: z.ZodOptional<z.ZodString>;
533
+ }, "strip", z.ZodTypeAny, {
534
+ name: string;
535
+ description?: string | undefined;
536
+ }, {
537
+ name: string;
538
+ description?: string | undefined;
539
+ }>, "many">;
540
+ features: z.ZodArray<z.ZodObject<{
541
+ name: z.ZodString;
542
+ values: z.ZodArray<z.ZodString, "many">;
543
+ }, "strip", z.ZodTypeAny, {
544
+ values: string[];
545
+ name: string;
546
+ }, {
547
+ values: string[];
548
+ name: string;
549
+ }>, "many">;
550
+ }, "strip", z.ZodTypeAny, {
551
+ options: {
552
+ name: string;
553
+ description?: string | undefined;
554
+ }[];
555
+ features: {
556
+ values: string[];
557
+ name: string;
558
+ }[];
559
+ title?: string | undefined;
560
+ }, {
561
+ options: {
562
+ name: string;
563
+ description?: string | undefined;
564
+ }[];
565
+ features: {
566
+ values: string[];
567
+ name: string;
568
+ }[];
569
+ title?: string | undefined;
570
+ }>, {
571
+ options: {
572
+ name: string;
573
+ description?: string | undefined;
574
+ }[];
575
+ features: {
576
+ values: string[];
577
+ name: string;
578
+ }[];
579
+ title?: string | undefined;
580
+ }, {
581
+ options: {
582
+ name: string;
583
+ description?: string | undefined;
584
+ }[];
585
+ features: {
586
+ values: string[];
587
+ name: string;
588
+ }[];
589
+ title?: string | undefined;
590
+ }>;
591
+
592
+ declare const codediffSchema: z.ZodObject<{
593
+ language: z.ZodOptional<z.ZodString>;
594
+ before: z.ZodString;
595
+ after: z.ZodString;
596
+ beforeLabel: z.ZodOptional<z.ZodString>;
597
+ afterLabel: z.ZodOptional<z.ZodString>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ before: string;
600
+ after: string;
601
+ language?: string | undefined;
602
+ beforeLabel?: string | undefined;
603
+ afterLabel?: string | undefined;
604
+ }, {
605
+ before: string;
606
+ after: string;
607
+ language?: string | undefined;
608
+ beforeLabel?: string | undefined;
609
+ afterLabel?: string | undefined;
610
+ }>;
611
+
612
+ declare const flowchartSchema: z.ZodObject<{
613
+ title: z.ZodOptional<z.ZodString>;
614
+ nodes: z.ZodArray<z.ZodObject<{
615
+ id: z.ZodString;
616
+ type: z.ZodDefault<z.ZodEnum<["start", "end", "process", "decision"]>>;
617
+ label: z.ZodString;
618
+ }, "strip", z.ZodTypeAny, {
619
+ type: "start" | "end" | "process" | "decision";
620
+ id: string;
621
+ label: string;
622
+ }, {
623
+ id: string;
624
+ label: string;
625
+ type?: "start" | "end" | "process" | "decision" | undefined;
626
+ }>, "many">;
627
+ edges: z.ZodArray<z.ZodObject<{
628
+ from: z.ZodString;
629
+ to: z.ZodString;
630
+ label: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ from: string;
633
+ to: string;
634
+ label?: string | undefined;
635
+ }, {
636
+ from: string;
637
+ to: string;
638
+ label?: string | undefined;
639
+ }>, "many">;
640
+ direction: z.ZodDefault<z.ZodEnum<["top-down", "left-right"]>>;
641
+ }, "strip", z.ZodTypeAny, {
642
+ nodes: {
643
+ type: "start" | "end" | "process" | "decision";
644
+ id: string;
645
+ label: string;
646
+ }[];
647
+ edges: {
648
+ from: string;
649
+ to: string;
650
+ label?: string | undefined;
651
+ }[];
652
+ direction: "top-down" | "left-right";
653
+ title?: string | undefined;
654
+ }, {
655
+ nodes: {
656
+ id: string;
657
+ label: string;
658
+ type?: "start" | "end" | "process" | "decision" | undefined;
659
+ }[];
660
+ edges: {
661
+ from: string;
662
+ to: string;
663
+ label?: string | undefined;
664
+ }[];
665
+ title?: string | undefined;
666
+ direction?: "top-down" | "left-right" | undefined;
667
+ }>;
668
+
669
+ declare const filetreeSchema: z.ZodObject<{
670
+ root: z.ZodOptional<z.ZodString>;
671
+ tree: z.ZodArray<z.ZodType<{
672
+ name: string;
673
+ annotation?: string;
674
+ children?: {
675
+ name: string;
676
+ annotation?: string;
677
+ children?: unknown[];
678
+ }[];
679
+ }, z.ZodTypeDef, {
680
+ name: string;
681
+ annotation?: string;
682
+ children?: {
683
+ name: string;
684
+ annotation?: string;
685
+ children?: unknown[];
686
+ }[];
687
+ }>, "many">;
688
+ defaultExpanded: z.ZodDefault<z.ZodBoolean>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ tree: {
691
+ name: string;
692
+ annotation?: string;
693
+ children?: {
694
+ name: string;
695
+ annotation?: string;
696
+ children?: unknown[];
697
+ }[];
698
+ }[];
699
+ defaultExpanded: boolean;
700
+ root?: string | undefined;
701
+ }, {
702
+ tree: {
703
+ name: string;
704
+ annotation?: string;
705
+ children?: {
706
+ name: string;
707
+ annotation?: string;
708
+ children?: unknown[];
709
+ }[];
710
+ }[];
711
+ root?: string | undefined;
712
+ defaultExpanded?: boolean | undefined;
713
+ }>;
714
+
715
+ declare const sequenceSchema: z.ZodObject<{
716
+ title: z.ZodOptional<z.ZodString>;
717
+ actors: z.ZodArray<z.ZodObject<{
718
+ id: z.ZodString;
719
+ label: z.ZodString;
720
+ }, "strip", z.ZodTypeAny, {
721
+ id: string;
722
+ label: string;
723
+ }, {
724
+ id: string;
725
+ label: string;
726
+ }>, "many">;
727
+ messages: z.ZodArray<z.ZodObject<{
728
+ from: z.ZodString;
729
+ to: z.ZodString;
730
+ label: z.ZodString;
731
+ type: z.ZodDefault<z.ZodEnum<["message", "reply", "self"]>>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ type: "message" | "reply" | "self";
734
+ label: string;
735
+ from: string;
736
+ to: string;
737
+ }, {
738
+ label: string;
739
+ from: string;
740
+ to: string;
741
+ type?: "message" | "reply" | "self" | undefined;
742
+ }>, "many">;
743
+ }, "strip", z.ZodTypeAny, {
744
+ actors: {
745
+ id: string;
746
+ label: string;
747
+ }[];
748
+ messages: {
749
+ type: "message" | "reply" | "self";
750
+ label: string;
751
+ from: string;
752
+ to: string;
753
+ }[];
754
+ title?: string | undefined;
755
+ }, {
756
+ actors: {
757
+ id: string;
758
+ label: string;
759
+ }[];
760
+ messages: {
761
+ label: string;
762
+ from: string;
763
+ to: string;
764
+ type?: "message" | "reply" | "self" | undefined;
765
+ }[];
766
+ title?: string | undefined;
767
+ }>;
768
+
769
+ declare const mindmapSchema: z.ZodObject<{
770
+ root: z.ZodString;
771
+ children: z.ZodArray<z.ZodType<{
772
+ label: string;
773
+ children?: {
774
+ label: string;
775
+ children?: unknown[];
776
+ }[];
777
+ }, z.ZodTypeDef, {
778
+ label: string;
779
+ children?: {
780
+ label: string;
781
+ children?: unknown[];
782
+ }[];
783
+ }>, "many">;
784
+ layout: z.ZodDefault<z.ZodEnum<["radial", "tree"]>>;
785
+ }, "strip", z.ZodTypeAny, {
786
+ layout: "radial" | "tree";
787
+ children: {
788
+ label: string;
789
+ children?: {
790
+ label: string;
791
+ children?: unknown[];
792
+ }[];
793
+ }[];
794
+ root: string;
795
+ }, {
796
+ children: {
797
+ label: string;
798
+ children?: {
799
+ label: string;
800
+ children?: unknown[];
801
+ }[];
802
+ }[];
803
+ root: string;
804
+ layout?: "radial" | "tree" | undefined;
805
+ }>;
806
+
807
+ declare const equationSchema: z.ZodEffects<z.ZodObject<{
808
+ expression: z.ZodOptional<z.ZodString>;
809
+ label: z.ZodOptional<z.ZodString>;
810
+ steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
811
+ expression: z.ZodString;
812
+ annotation: z.ZodOptional<z.ZodString>;
813
+ }, "strip", z.ZodTypeAny, {
814
+ expression: string;
815
+ annotation?: string | undefined;
816
+ }, {
817
+ expression: string;
818
+ annotation?: string | undefined;
819
+ }>, "many">>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ label?: string | undefined;
822
+ steps?: {
823
+ expression: string;
824
+ annotation?: string | undefined;
825
+ }[] | undefined;
826
+ expression?: string | undefined;
827
+ }, {
828
+ label?: string | undefined;
829
+ steps?: {
830
+ expression: string;
831
+ annotation?: string | undefined;
832
+ }[] | undefined;
833
+ expression?: string | undefined;
834
+ }>, {
835
+ label?: string | undefined;
836
+ steps?: {
837
+ expression: string;
838
+ annotation?: string | undefined;
839
+ }[] | undefined;
840
+ expression?: string | undefined;
841
+ }, {
842
+ label?: string | undefined;
843
+ steps?: {
844
+ expression: string;
845
+ annotation?: string | undefined;
846
+ }[] | undefined;
847
+ expression?: string | undefined;
848
+ }>;
849
+
850
+ declare const quizSchema: z.ZodObject<{
851
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
852
+ type: z.ZodLiteral<"multiple-choice">;
853
+ question: z.ZodString;
854
+ options: z.ZodArray<z.ZodString, "many">;
855
+ answer: z.ZodNumber;
856
+ explanation: z.ZodOptional<z.ZodString>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ type: "multiple-choice";
859
+ options: string[];
860
+ question: string;
861
+ answer: number;
862
+ explanation?: string | undefined;
863
+ }, {
864
+ type: "multiple-choice";
865
+ options: string[];
866
+ question: string;
867
+ answer: number;
868
+ explanation?: string | undefined;
869
+ }>, z.ZodObject<{
870
+ type: z.ZodLiteral<"true-false">;
871
+ question: z.ZodString;
872
+ answer: z.ZodBoolean;
873
+ explanation: z.ZodOptional<z.ZodString>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ type: "true-false";
876
+ question: string;
877
+ answer: boolean;
878
+ explanation?: string | undefined;
879
+ }, {
880
+ type: "true-false";
881
+ question: string;
882
+ answer: boolean;
883
+ explanation?: string | undefined;
884
+ }>, z.ZodObject<{
885
+ type: z.ZodLiteral<"multi-select">;
886
+ question: z.ZodString;
887
+ options: z.ZodArray<z.ZodString, "many">;
888
+ answer: z.ZodArray<z.ZodNumber, "many">;
889
+ explanation: z.ZodOptional<z.ZodString>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ type: "multi-select";
892
+ options: string[];
893
+ question: string;
894
+ answer: number[];
895
+ explanation?: string | undefined;
896
+ }, {
897
+ type: "multi-select";
898
+ options: string[];
899
+ question: string;
900
+ answer: number[];
901
+ explanation?: string | undefined;
902
+ }>]>, "many">;
903
+ showScore: z.ZodDefault<z.ZodBoolean>;
904
+ title: z.ZodOptional<z.ZodString>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ questions: ({
907
+ type: "multiple-choice";
908
+ options: string[];
909
+ question: string;
910
+ answer: number;
911
+ explanation?: string | undefined;
912
+ } | {
913
+ type: "true-false";
914
+ question: string;
915
+ answer: boolean;
916
+ explanation?: string | undefined;
917
+ } | {
918
+ type: "multi-select";
919
+ options: string[];
920
+ question: string;
921
+ answer: number[];
922
+ explanation?: string | undefined;
923
+ })[];
924
+ showScore: boolean;
925
+ title?: string | undefined;
926
+ }, {
927
+ questions: ({
928
+ type: "multiple-choice";
929
+ options: string[];
930
+ question: string;
931
+ answer: number;
932
+ explanation?: string | undefined;
933
+ } | {
934
+ type: "true-false";
935
+ question: string;
936
+ answer: boolean;
937
+ explanation?: string | undefined;
938
+ } | {
939
+ type: "multi-select";
940
+ options: string[];
941
+ question: string;
942
+ answer: number[];
943
+ explanation?: string | undefined;
944
+ })[];
945
+ title?: string | undefined;
946
+ showScore?: boolean | undefined;
947
+ }>;
948
+
949
+ declare const cardSchema: z.ZodObject<{
950
+ title: z.ZodOptional<z.ZodString>;
951
+ cards: z.ZodArray<z.ZodObject<{
952
+ title: z.ZodString;
953
+ subtitle: z.ZodOptional<z.ZodString>;
954
+ image: z.ZodOptional<z.ZodString>;
955
+ icon: z.ZodOptional<z.ZodString>;
956
+ body: z.ZodOptional<z.ZodString>;
957
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
+ label: z.ZodString;
959
+ url: z.ZodString;
960
+ }, "strip", z.ZodTypeAny, {
961
+ label: string;
962
+ url: string;
963
+ }, {
964
+ label: string;
965
+ url: string;
966
+ }>, "many">>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ title: string;
969
+ icon?: string | undefined;
970
+ subtitle?: string | undefined;
971
+ image?: string | undefined;
972
+ body?: string | undefined;
973
+ actions?: {
974
+ label: string;
975
+ url: string;
976
+ }[] | undefined;
977
+ }, {
978
+ title: string;
979
+ icon?: string | undefined;
980
+ subtitle?: string | undefined;
981
+ image?: string | undefined;
982
+ body?: string | undefined;
983
+ actions?: {
984
+ label: string;
985
+ url: string;
986
+ }[] | undefined;
987
+ }>, "many">;
988
+ variant: z.ZodDefault<z.ZodEnum<["default", "outlined", "elevated"]>>;
989
+ columns: z.ZodOptional<z.ZodNumber>;
990
+ }, "strip", z.ZodTypeAny, {
991
+ cards: {
992
+ title: string;
993
+ icon?: string | undefined;
994
+ subtitle?: string | undefined;
995
+ image?: string | undefined;
996
+ body?: string | undefined;
997
+ actions?: {
998
+ label: string;
999
+ url: string;
1000
+ }[] | undefined;
1001
+ }[];
1002
+ variant: "default" | "outlined" | "elevated";
1003
+ columns?: number | undefined;
1004
+ title?: string | undefined;
1005
+ }, {
1006
+ cards: {
1007
+ title: string;
1008
+ icon?: string | undefined;
1009
+ subtitle?: string | undefined;
1010
+ image?: string | undefined;
1011
+ body?: string | undefined;
1012
+ actions?: {
1013
+ label: string;
1014
+ url: string;
1015
+ }[] | undefined;
1016
+ }[];
1017
+ columns?: number | undefined;
1018
+ title?: string | undefined;
1019
+ variant?: "default" | "outlined" | "elevated" | undefined;
1020
+ }>;
1021
+
1022
+ declare const infographicSchema: z.ZodObject<{
1023
+ title: z.ZodOptional<z.ZodString>;
1024
+ sections: z.ZodArray<z.ZodObject<{
1025
+ heading: z.ZodOptional<z.ZodString>;
1026
+ items: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1027
+ type: z.ZodLiteral<"stat">;
1028
+ label: z.ZodString;
1029
+ value: z.ZodString;
1030
+ description: z.ZodOptional<z.ZodString>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ type: "stat";
1033
+ value: string;
1034
+ label: string;
1035
+ description?: string | undefined;
1036
+ }, {
1037
+ type: "stat";
1038
+ value: string;
1039
+ label: string;
1040
+ description?: string | undefined;
1041
+ }>, z.ZodObject<{
1042
+ type: z.ZodLiteral<"fact">;
1043
+ icon: z.ZodOptional<z.ZodString>;
1044
+ text: z.ZodString;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ type: "fact";
1047
+ text: string;
1048
+ icon?: string | undefined;
1049
+ }, {
1050
+ type: "fact";
1051
+ text: string;
1052
+ icon?: string | undefined;
1053
+ }>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"progress">;
1055
+ label: z.ZodString;
1056
+ value: z.ZodNumber;
1057
+ color: z.ZodOptional<z.ZodString>;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ type: "progress";
1060
+ value: number;
1061
+ label: string;
1062
+ color?: string | undefined;
1063
+ }, {
1064
+ type: "progress";
1065
+ value: number;
1066
+ label: string;
1067
+ color?: string | undefined;
1068
+ }>, z.ZodObject<{
1069
+ type: z.ZodLiteral<"text">;
1070
+ content: z.ZodString;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ type: "text";
1073
+ content: string;
1074
+ }, {
1075
+ type: "text";
1076
+ content: string;
1077
+ }>, z.ZodObject<{
1078
+ type: z.ZodLiteral<"pie">;
1079
+ label: z.ZodOptional<z.ZodString>;
1080
+ slices: z.ZodArray<z.ZodObject<{
1081
+ label: z.ZodString;
1082
+ value: z.ZodNumber;
1083
+ color: z.ZodOptional<z.ZodString>;
1084
+ }, "strip", z.ZodTypeAny, {
1085
+ value: number;
1086
+ label: string;
1087
+ color?: string | undefined;
1088
+ }, {
1089
+ value: number;
1090
+ label: string;
1091
+ color?: string | undefined;
1092
+ }>, "many">;
1093
+ donut: z.ZodOptional<z.ZodBoolean>;
1094
+ size: z.ZodOptional<z.ZodNumber>;
1095
+ }, "strip", z.ZodTypeAny, {
1096
+ type: "pie";
1097
+ slices: {
1098
+ value: number;
1099
+ label: string;
1100
+ color?: string | undefined;
1101
+ }[];
1102
+ label?: string | undefined;
1103
+ donut?: boolean | undefined;
1104
+ size?: number | undefined;
1105
+ }, {
1106
+ type: "pie";
1107
+ slices: {
1108
+ value: number;
1109
+ label: string;
1110
+ color?: string | undefined;
1111
+ }[];
1112
+ label?: string | undefined;
1113
+ donut?: boolean | undefined;
1114
+ size?: number | undefined;
1115
+ }>, z.ZodObject<{
1116
+ type: z.ZodLiteral<"divider">;
1117
+ style: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted"]>>;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ type: "divider";
1120
+ style?: "solid" | "dashed" | "dotted" | undefined;
1121
+ }, {
1122
+ type: "divider";
1123
+ style?: "solid" | "dashed" | "dotted" | undefined;
1124
+ }>, z.ZodObject<{
1125
+ type: z.ZodLiteral<"rating">;
1126
+ label: z.ZodString;
1127
+ value: z.ZodNumber;
1128
+ max: z.ZodOptional<z.ZodNumber>;
1129
+ description: z.ZodOptional<z.ZodString>;
1130
+ }, "strip", z.ZodTypeAny, {
1131
+ type: "rating";
1132
+ value: number;
1133
+ label: string;
1134
+ max?: number | undefined;
1135
+ description?: string | undefined;
1136
+ }, {
1137
+ type: "rating";
1138
+ value: number;
1139
+ label: string;
1140
+ max?: number | undefined;
1141
+ description?: string | undefined;
1142
+ }>]>, "many">;
1143
+ }, "strip", z.ZodTypeAny, {
1144
+ items: ({
1145
+ type: "stat";
1146
+ value: string;
1147
+ label: string;
1148
+ description?: string | undefined;
1149
+ } | {
1150
+ type: "fact";
1151
+ text: string;
1152
+ icon?: string | undefined;
1153
+ } | {
1154
+ type: "progress";
1155
+ value: number;
1156
+ label: string;
1157
+ color?: string | undefined;
1158
+ } | {
1159
+ type: "text";
1160
+ content: string;
1161
+ } | {
1162
+ type: "pie";
1163
+ slices: {
1164
+ value: number;
1165
+ label: string;
1166
+ color?: string | undefined;
1167
+ }[];
1168
+ label?: string | undefined;
1169
+ donut?: boolean | undefined;
1170
+ size?: number | undefined;
1171
+ } | {
1172
+ type: "divider";
1173
+ style?: "solid" | "dashed" | "dotted" | undefined;
1174
+ } | {
1175
+ type: "rating";
1176
+ value: number;
1177
+ label: string;
1178
+ max?: number | undefined;
1179
+ description?: string | undefined;
1180
+ })[];
1181
+ heading?: string | undefined;
1182
+ }, {
1183
+ items: ({
1184
+ type: "stat";
1185
+ value: string;
1186
+ label: string;
1187
+ description?: string | undefined;
1188
+ } | {
1189
+ type: "fact";
1190
+ text: string;
1191
+ icon?: string | undefined;
1192
+ } | {
1193
+ type: "progress";
1194
+ value: number;
1195
+ label: string;
1196
+ color?: string | undefined;
1197
+ } | {
1198
+ type: "text";
1199
+ content: string;
1200
+ } | {
1201
+ type: "pie";
1202
+ slices: {
1203
+ value: number;
1204
+ label: string;
1205
+ color?: string | undefined;
1206
+ }[];
1207
+ label?: string | undefined;
1208
+ donut?: boolean | undefined;
1209
+ size?: number | undefined;
1210
+ } | {
1211
+ type: "divider";
1212
+ style?: "solid" | "dashed" | "dotted" | undefined;
1213
+ } | {
1214
+ type: "rating";
1215
+ value: number;
1216
+ label: string;
1217
+ max?: number | undefined;
1218
+ description?: string | undefined;
1219
+ })[];
1220
+ heading?: string | undefined;
1221
+ }>, "many">;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ sections: {
1224
+ items: ({
1225
+ type: "stat";
1226
+ value: string;
1227
+ label: string;
1228
+ description?: string | undefined;
1229
+ } | {
1230
+ type: "fact";
1231
+ text: string;
1232
+ icon?: string | undefined;
1233
+ } | {
1234
+ type: "progress";
1235
+ value: number;
1236
+ label: string;
1237
+ color?: string | undefined;
1238
+ } | {
1239
+ type: "text";
1240
+ content: string;
1241
+ } | {
1242
+ type: "pie";
1243
+ slices: {
1244
+ value: number;
1245
+ label: string;
1246
+ color?: string | undefined;
1247
+ }[];
1248
+ label?: string | undefined;
1249
+ donut?: boolean | undefined;
1250
+ size?: number | undefined;
1251
+ } | {
1252
+ type: "divider";
1253
+ style?: "solid" | "dashed" | "dotted" | undefined;
1254
+ } | {
1255
+ type: "rating";
1256
+ value: number;
1257
+ label: string;
1258
+ max?: number | undefined;
1259
+ description?: string | undefined;
1260
+ })[];
1261
+ heading?: string | undefined;
1262
+ }[];
1263
+ title?: string | undefined;
1264
+ }, {
1265
+ sections: {
1266
+ items: ({
1267
+ type: "stat";
1268
+ value: string;
1269
+ label: string;
1270
+ description?: string | undefined;
1271
+ } | {
1272
+ type: "fact";
1273
+ text: string;
1274
+ icon?: string | undefined;
1275
+ } | {
1276
+ type: "progress";
1277
+ value: number;
1278
+ label: string;
1279
+ color?: string | undefined;
1280
+ } | {
1281
+ type: "text";
1282
+ content: string;
1283
+ } | {
1284
+ type: "pie";
1285
+ slices: {
1286
+ value: number;
1287
+ label: string;
1288
+ color?: string | undefined;
1289
+ }[];
1290
+ label?: string | undefined;
1291
+ donut?: boolean | undefined;
1292
+ size?: number | undefined;
1293
+ } | {
1294
+ type: "divider";
1295
+ style?: "solid" | "dashed" | "dotted" | undefined;
1296
+ } | {
1297
+ type: "rating";
1298
+ value: number;
1299
+ label: string;
1300
+ max?: number | undefined;
1301
+ description?: string | undefined;
1302
+ })[];
1303
+ heading?: string | undefined;
1304
+ }[];
1305
+ title?: string | undefined;
1306
+ }>;
1307
+
1308
+ declare const componentSchemas: ReadonlyMap<string, z.ZodType>;
1309
+ declare function getJsonSchema(componentType: string): object | undefined;
1310
+
1311
+ export { accordionSchema, architectureSchema, calloutSchema, cardSchema, chartSchema, codediffSchema, comparisonSchema, componentSchemas, equationSchema, filetreeSchema, flowchartSchema, getJsonSchema, graphSchema, infographicSchema, kpiSchema, mindmapSchema, quizSchema, relationSchema, sequenceSchema, stepsSchema, tableSchema, tabsSchema, timelineSchema };