@glyphjs/schemas 0.8.0 → 0.9.6
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.
- package/dist/index.cjs +113 -104
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +373 -356
- package/dist/index.d.ts +373 -356
- package/dist/index.js +110 -105
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,19 +4,19 @@ declare const graphSchema: z.ZodObject<{
|
|
|
4
4
|
type: z.ZodEnum<["dag", "flowchart", "mindmap", "force"]>;
|
|
5
5
|
nodes: z.ZodArray<z.ZodObject<{
|
|
6
6
|
id: z.ZodString;
|
|
7
|
-
label: z.ZodString
|
|
7
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
8
8
|
type: z.ZodOptional<z.ZodString>;
|
|
9
9
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
10
|
group: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
|
-
label: string;
|
|
13
|
+
label: string | any[];
|
|
14
14
|
type?: string | undefined;
|
|
15
15
|
style?: Record<string, string> | undefined;
|
|
16
16
|
group?: string | undefined;
|
|
17
17
|
}, {
|
|
18
18
|
id: string;
|
|
19
|
-
label: string;
|
|
19
|
+
label: string | any[];
|
|
20
20
|
type?: string | undefined;
|
|
21
21
|
style?: Record<string, string> | undefined;
|
|
22
22
|
group?: string | undefined;
|
|
@@ -24,30 +24,29 @@ declare const graphSchema: z.ZodObject<{
|
|
|
24
24
|
edges: z.ZodArray<z.ZodObject<{
|
|
25
25
|
from: z.ZodString;
|
|
26
26
|
to: z.ZodString;
|
|
27
|
-
label: z.ZodOptional<z.ZodString
|
|
27
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
28
28
|
type: z.ZodOptional<z.ZodString>;
|
|
29
29
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
from: string;
|
|
32
32
|
to: string;
|
|
33
33
|
type?: string | undefined;
|
|
34
|
-
label?: string | undefined;
|
|
34
|
+
label?: string | any[] | undefined;
|
|
35
35
|
style?: Record<string, string> | undefined;
|
|
36
36
|
}, {
|
|
37
37
|
from: string;
|
|
38
38
|
to: string;
|
|
39
39
|
type?: string | undefined;
|
|
40
|
-
label?: string | undefined;
|
|
40
|
+
label?: string | any[] | undefined;
|
|
41
41
|
style?: Record<string, string> | undefined;
|
|
42
42
|
}>, "many">;
|
|
43
43
|
layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right", "bottom-up", "radial", "force"]>>;
|
|
44
44
|
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
45
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
46
45
|
}, "strip", z.ZodTypeAny, {
|
|
47
46
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
48
47
|
nodes: {
|
|
49
48
|
id: string;
|
|
50
|
-
label: string;
|
|
49
|
+
label: string | any[];
|
|
51
50
|
type?: string | undefined;
|
|
52
51
|
style?: Record<string, string> | undefined;
|
|
53
52
|
group?: string | undefined;
|
|
@@ -56,17 +55,16 @@ declare const graphSchema: z.ZodObject<{
|
|
|
56
55
|
from: string;
|
|
57
56
|
to: string;
|
|
58
57
|
type?: string | undefined;
|
|
59
|
-
label?: string | undefined;
|
|
58
|
+
label?: string | any[] | undefined;
|
|
60
59
|
style?: Record<string, string> | undefined;
|
|
61
60
|
}[];
|
|
62
61
|
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
63
|
-
markdown: boolean;
|
|
64
62
|
layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
|
|
65
63
|
}, {
|
|
66
64
|
type: "dag" | "flowchart" | "mindmap" | "force";
|
|
67
65
|
nodes: {
|
|
68
66
|
id: string;
|
|
69
|
-
label: string;
|
|
67
|
+
label: string | any[];
|
|
70
68
|
type?: string | undefined;
|
|
71
69
|
style?: Record<string, string> | undefined;
|
|
72
70
|
group?: string | undefined;
|
|
@@ -75,29 +73,28 @@ declare const graphSchema: z.ZodObject<{
|
|
|
75
73
|
from: string;
|
|
76
74
|
to: string;
|
|
77
75
|
type?: string | undefined;
|
|
78
|
-
label?: string | undefined;
|
|
76
|
+
label?: string | any[] | undefined;
|
|
79
77
|
style?: Record<string, string> | undefined;
|
|
80
78
|
}[];
|
|
81
79
|
layout?: "force" | "top-down" | "left-right" | "bottom-up" | "radial" | undefined;
|
|
82
80
|
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
83
|
-
markdown?: boolean | undefined;
|
|
84
81
|
}>;
|
|
85
82
|
|
|
86
83
|
declare const tableSchema: z.ZodObject<{
|
|
87
84
|
columns: z.ZodArray<z.ZodObject<{
|
|
88
85
|
key: z.ZodString;
|
|
89
|
-
label: z.ZodString
|
|
86
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
90
87
|
sortable: z.ZodOptional<z.ZodBoolean>;
|
|
91
88
|
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
92
89
|
type: z.ZodOptional<z.ZodEnum<["string", "number", "date", "boolean"]>>;
|
|
93
90
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
label: string;
|
|
91
|
+
label: string | any[];
|
|
95
92
|
key: string;
|
|
96
93
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
97
94
|
sortable?: boolean | undefined;
|
|
98
95
|
filterable?: boolean | undefined;
|
|
99
96
|
}, {
|
|
100
|
-
label: string;
|
|
97
|
+
label: string | any[];
|
|
101
98
|
key: string;
|
|
102
99
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
103
100
|
sortable?: boolean | undefined;
|
|
@@ -114,11 +111,9 @@ declare const tableSchema: z.ZodObject<{
|
|
|
114
111
|
function: "sum" | "avg" | "count" | "min" | "max";
|
|
115
112
|
column: string;
|
|
116
113
|
}>, "many">>;
|
|
117
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
118
114
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
markdown: boolean;
|
|
120
115
|
columns: {
|
|
121
|
-
label: string;
|
|
116
|
+
label: string | any[];
|
|
122
117
|
key: string;
|
|
123
118
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
124
119
|
sortable?: boolean | undefined;
|
|
@@ -131,14 +126,13 @@ declare const tableSchema: z.ZodObject<{
|
|
|
131
126
|
}[] | undefined;
|
|
132
127
|
}, {
|
|
133
128
|
columns: {
|
|
134
|
-
label: string;
|
|
129
|
+
label: string | any[];
|
|
135
130
|
key: string;
|
|
136
131
|
type?: "string" | "number" | "boolean" | "date" | undefined;
|
|
137
132
|
sortable?: boolean | undefined;
|
|
138
133
|
filterable?: boolean | undefined;
|
|
139
134
|
}[];
|
|
140
135
|
rows: Record<string, unknown>[];
|
|
141
|
-
markdown?: boolean | undefined;
|
|
142
136
|
aggregation?: {
|
|
143
137
|
function: "sum" | "avg" | "count" | "min" | "max";
|
|
144
138
|
column: string;
|
|
@@ -148,67 +142,64 @@ declare const tableSchema: z.ZodObject<{
|
|
|
148
142
|
declare const chartSchema: z.ZodObject<{
|
|
149
143
|
type: z.ZodEnum<["line", "bar", "area", "ohlc"]>;
|
|
150
144
|
series: z.ZodArray<z.ZodObject<{
|
|
151
|
-
name: z.ZodString
|
|
145
|
+
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
152
146
|
data: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString]>>, "many">;
|
|
153
147
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
name: string;
|
|
148
|
+
name: string | any[];
|
|
155
149
|
data: Record<string, string | number>[];
|
|
156
150
|
}, {
|
|
157
|
-
name: string;
|
|
151
|
+
name: string | any[];
|
|
158
152
|
data: Record<string, string | number>[];
|
|
159
153
|
}>, "many">;
|
|
160
154
|
xAxis: z.ZodOptional<z.ZodObject<{
|
|
161
155
|
key: z.ZodString;
|
|
162
|
-
label: z.ZodOptional<z.ZodString
|
|
156
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
163
157
|
}, "strip", z.ZodTypeAny, {
|
|
164
158
|
key: string;
|
|
165
|
-
label?: string | undefined;
|
|
159
|
+
label?: string | any[] | undefined;
|
|
166
160
|
}, {
|
|
167
161
|
key: string;
|
|
168
|
-
label?: string | undefined;
|
|
162
|
+
label?: string | any[] | undefined;
|
|
169
163
|
}>>;
|
|
170
164
|
yAxis: z.ZodOptional<z.ZodObject<{
|
|
171
165
|
key: z.ZodString;
|
|
172
|
-
label: z.ZodOptional<z.ZodString
|
|
166
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
173
167
|
}, "strip", z.ZodTypeAny, {
|
|
174
168
|
key: string;
|
|
175
|
-
label?: string | undefined;
|
|
169
|
+
label?: string | any[] | undefined;
|
|
176
170
|
}, {
|
|
177
171
|
key: string;
|
|
178
|
-
label?: string | undefined;
|
|
172
|
+
label?: string | any[] | undefined;
|
|
179
173
|
}>>;
|
|
180
174
|
legend: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
182
175
|
}, "strip", z.ZodTypeAny, {
|
|
183
176
|
type: "line" | "bar" | "area" | "ohlc";
|
|
184
|
-
markdown: boolean;
|
|
185
177
|
series: {
|
|
186
|
-
name: string;
|
|
178
|
+
name: string | any[];
|
|
187
179
|
data: Record<string, string | number>[];
|
|
188
180
|
}[];
|
|
189
181
|
xAxis?: {
|
|
190
182
|
key: string;
|
|
191
|
-
label?: string | undefined;
|
|
183
|
+
label?: string | any[] | undefined;
|
|
192
184
|
} | undefined;
|
|
193
185
|
yAxis?: {
|
|
194
186
|
key: string;
|
|
195
|
-
label?: string | undefined;
|
|
187
|
+
label?: string | any[] | undefined;
|
|
196
188
|
} | undefined;
|
|
197
189
|
legend?: boolean | undefined;
|
|
198
190
|
}, {
|
|
199
191
|
type: "line" | "bar" | "area" | "ohlc";
|
|
200
192
|
series: {
|
|
201
|
-
name: string;
|
|
193
|
+
name: string | any[];
|
|
202
194
|
data: Record<string, string | number>[];
|
|
203
195
|
}[];
|
|
204
|
-
markdown?: boolean | undefined;
|
|
205
196
|
xAxis?: {
|
|
206
197
|
key: string;
|
|
207
|
-
label?: string | undefined;
|
|
198
|
+
label?: string | any[] | undefined;
|
|
208
199
|
} | undefined;
|
|
209
200
|
yAxis?: {
|
|
210
201
|
key: string;
|
|
211
|
-
label?: string | undefined;
|
|
202
|
+
label?: string | any[] | undefined;
|
|
212
203
|
} | undefined;
|
|
213
204
|
legend?: boolean | undefined;
|
|
214
205
|
}>;
|
|
@@ -216,65 +207,63 @@ declare const chartSchema: z.ZodObject<{
|
|
|
216
207
|
declare const relationSchema: z.ZodObject<{
|
|
217
208
|
entities: z.ZodArray<z.ZodObject<{
|
|
218
209
|
id: z.ZodString;
|
|
219
|
-
label: z.ZodString
|
|
210
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
220
211
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
221
|
-
name: z.ZodString
|
|
212
|
+
name: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
222
213
|
type: z.ZodString;
|
|
223
214
|
primaryKey: z.ZodOptional<z.ZodBoolean>;
|
|
224
215
|
}, "strip", z.ZodTypeAny, {
|
|
225
216
|
type: string;
|
|
226
|
-
name: string;
|
|
217
|
+
name: string | any[];
|
|
227
218
|
primaryKey?: boolean | undefined;
|
|
228
219
|
}, {
|
|
229
220
|
type: string;
|
|
230
|
-
name: string;
|
|
221
|
+
name: string | any[];
|
|
231
222
|
primaryKey?: boolean | undefined;
|
|
232
223
|
}>, "many">>;
|
|
233
224
|
}, "strip", z.ZodTypeAny, {
|
|
234
225
|
id: string;
|
|
235
|
-
label: string;
|
|
226
|
+
label: string | any[];
|
|
236
227
|
attributes?: {
|
|
237
228
|
type: string;
|
|
238
|
-
name: string;
|
|
229
|
+
name: string | any[];
|
|
239
230
|
primaryKey?: boolean | undefined;
|
|
240
231
|
}[] | undefined;
|
|
241
232
|
}, {
|
|
242
233
|
id: string;
|
|
243
|
-
label: string;
|
|
234
|
+
label: string | any[];
|
|
244
235
|
attributes?: {
|
|
245
236
|
type: string;
|
|
246
|
-
name: string;
|
|
237
|
+
name: string | any[];
|
|
247
238
|
primaryKey?: boolean | undefined;
|
|
248
239
|
}[] | undefined;
|
|
249
240
|
}>, "many">;
|
|
250
241
|
relationships: z.ZodArray<z.ZodObject<{
|
|
251
242
|
from: z.ZodString;
|
|
252
243
|
to: z.ZodString;
|
|
253
|
-
label: z.ZodOptional<z.ZodString
|
|
244
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
254
245
|
cardinality: z.ZodEnum<["1:1", "1:N", "N:1", "N:M"]>;
|
|
255
246
|
}, "strip", z.ZodTypeAny, {
|
|
256
247
|
from: string;
|
|
257
248
|
to: string;
|
|
258
249
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
259
|
-
label?: string | undefined;
|
|
250
|
+
label?: string | any[] | undefined;
|
|
260
251
|
}, {
|
|
261
252
|
from: string;
|
|
262
253
|
to: string;
|
|
263
254
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
264
|
-
label?: string | undefined;
|
|
255
|
+
label?: string | any[] | undefined;
|
|
265
256
|
}>, "many">;
|
|
266
257
|
layout: z.ZodOptional<z.ZodEnum<["top-down", "left-right"]>>;
|
|
267
258
|
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
268
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
269
259
|
}, "strip", z.ZodTypeAny, {
|
|
270
260
|
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
271
|
-
markdown: boolean;
|
|
272
261
|
entities: {
|
|
273
262
|
id: string;
|
|
274
|
-
label: string;
|
|
263
|
+
label: string | any[];
|
|
275
264
|
attributes?: {
|
|
276
265
|
type: string;
|
|
277
|
-
name: string;
|
|
266
|
+
name: string | any[];
|
|
278
267
|
primaryKey?: boolean | undefined;
|
|
279
268
|
}[] | undefined;
|
|
280
269
|
}[];
|
|
@@ -282,16 +271,16 @@ declare const relationSchema: z.ZodObject<{
|
|
|
282
271
|
from: string;
|
|
283
272
|
to: string;
|
|
284
273
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
285
|
-
label?: string | undefined;
|
|
274
|
+
label?: string | any[] | undefined;
|
|
286
275
|
}[];
|
|
287
276
|
layout?: "top-down" | "left-right" | undefined;
|
|
288
277
|
}, {
|
|
289
278
|
entities: {
|
|
290
279
|
id: string;
|
|
291
|
-
label: string;
|
|
280
|
+
label: string | any[];
|
|
292
281
|
attributes?: {
|
|
293
282
|
type: string;
|
|
294
|
-
name: string;
|
|
283
|
+
name: string | any[];
|
|
295
284
|
primaryKey?: boolean | undefined;
|
|
296
285
|
}[] | undefined;
|
|
297
286
|
}[];
|
|
@@ -299,124 +288,152 @@ declare const relationSchema: z.ZodObject<{
|
|
|
299
288
|
from: string;
|
|
300
289
|
to: string;
|
|
301
290
|
cardinality: "1:1" | "1:N" | "N:1" | "N:M";
|
|
302
|
-
label?: string | undefined;
|
|
291
|
+
label?: string | any[] | undefined;
|
|
303
292
|
}[];
|
|
304
293
|
layout?: "top-down" | "left-right" | undefined;
|
|
305
294
|
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
306
|
-
markdown?: boolean | undefined;
|
|
307
295
|
}>;
|
|
308
296
|
|
|
309
297
|
declare const timelineSchema: z.ZodObject<{
|
|
310
|
-
events: z.ZodArray<z.ZodObject<{
|
|
298
|
+
events: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
311
299
|
date: z.ZodString;
|
|
312
|
-
|
|
313
|
-
|
|
300
|
+
label: z.ZodOptional<z.ZodString>;
|
|
301
|
+
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
302
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
314
303
|
type: z.ZodOptional<z.ZodString>;
|
|
315
304
|
}, "strip", z.ZodTypeAny, {
|
|
316
305
|
date: string;
|
|
317
|
-
title: string;
|
|
306
|
+
title: string | any[];
|
|
318
307
|
type?: string | undefined;
|
|
319
|
-
|
|
308
|
+
label?: string | undefined;
|
|
309
|
+
description?: string | any[] | undefined;
|
|
320
310
|
}, {
|
|
321
311
|
date: string;
|
|
322
|
-
title: string;
|
|
312
|
+
title: string | any[];
|
|
323
313
|
type?: string | undefined;
|
|
324
|
-
|
|
325
|
-
|
|
314
|
+
label?: string | undefined;
|
|
315
|
+
description?: string | any[] | undefined;
|
|
316
|
+
}>, z.ZodObject<{
|
|
317
|
+
date: z.ZodOptional<z.ZodString>;
|
|
318
|
+
label: z.ZodString;
|
|
319
|
+
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
320
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
321
|
+
type: z.ZodOptional<z.ZodString>;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
label: string;
|
|
324
|
+
title: string | any[];
|
|
325
|
+
type?: string | undefined;
|
|
326
|
+
date?: string | undefined;
|
|
327
|
+
description?: string | any[] | undefined;
|
|
328
|
+
}, {
|
|
329
|
+
label: string;
|
|
330
|
+
title: string | any[];
|
|
331
|
+
type?: string | undefined;
|
|
332
|
+
date?: string | undefined;
|
|
333
|
+
description?: string | any[] | undefined;
|
|
334
|
+
}>]>, "many">;
|
|
326
335
|
orientation: z.ZodOptional<z.ZodEnum<["vertical", "horizontal"]>>;
|
|
327
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
328
336
|
}, "strip", z.ZodTypeAny, {
|
|
329
|
-
|
|
330
|
-
events: {
|
|
337
|
+
events: ({
|
|
331
338
|
date: string;
|
|
332
|
-
title: string;
|
|
339
|
+
title: string | any[];
|
|
333
340
|
type?: string | undefined;
|
|
334
|
-
|
|
335
|
-
|
|
341
|
+
label?: string | undefined;
|
|
342
|
+
description?: string | any[] | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
label: string;
|
|
345
|
+
title: string | any[];
|
|
346
|
+
type?: string | undefined;
|
|
347
|
+
date?: string | undefined;
|
|
348
|
+
description?: string | any[] | undefined;
|
|
349
|
+
})[];
|
|
336
350
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
337
351
|
}, {
|
|
338
|
-
events: {
|
|
352
|
+
events: ({
|
|
339
353
|
date: string;
|
|
340
|
-
title: string;
|
|
354
|
+
title: string | any[];
|
|
341
355
|
type?: string | undefined;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
356
|
+
label?: string | undefined;
|
|
357
|
+
description?: string | any[] | undefined;
|
|
358
|
+
} | {
|
|
359
|
+
label: string;
|
|
360
|
+
title: string | any[];
|
|
361
|
+
type?: string | undefined;
|
|
362
|
+
date?: string | undefined;
|
|
363
|
+
description?: string | any[] | undefined;
|
|
364
|
+
})[];
|
|
345
365
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
346
366
|
}>;
|
|
347
367
|
|
|
348
368
|
declare const calloutSchema: z.ZodObject<{
|
|
349
369
|
type: z.ZodEnum<["info", "warning", "error", "tip"]>;
|
|
350
|
-
title: z.ZodOptional<z.ZodString
|
|
351
|
-
content: z.ZodString
|
|
352
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
370
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
371
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
353
372
|
}, "strip", z.ZodTypeAny, {
|
|
354
373
|
type: "info" | "warning" | "error" | "tip";
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
title?: string | undefined;
|
|
374
|
+
content: string | any[];
|
|
375
|
+
title?: string | any[] | undefined;
|
|
358
376
|
}, {
|
|
359
377
|
type: "info" | "warning" | "error" | "tip";
|
|
360
|
-
content: string;
|
|
361
|
-
|
|
362
|
-
title?: string | undefined;
|
|
378
|
+
content: string | any[];
|
|
379
|
+
title?: string | any[] | undefined;
|
|
363
380
|
}>;
|
|
364
381
|
|
|
365
382
|
declare const tabsSchema: z.ZodObject<{
|
|
366
383
|
tabs: z.ZodArray<z.ZodObject<{
|
|
367
|
-
label: z.ZodString
|
|
368
|
-
content: z.ZodString
|
|
384
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
385
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
369
386
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
label: string;
|
|
371
|
-
content: string;
|
|
387
|
+
label: string | any[];
|
|
388
|
+
content: string | any[];
|
|
372
389
|
}, {
|
|
373
|
-
label: string;
|
|
374
|
-
content: string;
|
|
390
|
+
label: string | any[];
|
|
391
|
+
content: string | any[];
|
|
375
392
|
}>, "many">;
|
|
376
|
-
|
|
393
|
+
_slotChildCounts: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
377
394
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
markdown: boolean;
|
|
379
395
|
tabs: {
|
|
380
|
-
label: string;
|
|
381
|
-
content: string;
|
|
396
|
+
label: string | any[];
|
|
397
|
+
content: string | any[];
|
|
382
398
|
}[];
|
|
399
|
+
_slotChildCounts?: number[] | undefined;
|
|
383
400
|
}, {
|
|
384
401
|
tabs: {
|
|
385
|
-
label: string;
|
|
386
|
-
content: string;
|
|
402
|
+
label: string | any[];
|
|
403
|
+
content: string | any[];
|
|
387
404
|
}[];
|
|
388
|
-
|
|
405
|
+
_slotChildCounts?: number[] | undefined;
|
|
389
406
|
}>;
|
|
390
407
|
|
|
391
408
|
declare const stepsSchema: z.ZodObject<{
|
|
392
409
|
steps: z.ZodArray<z.ZodObject<{
|
|
393
410
|
title: z.ZodString;
|
|
394
411
|
status: z.ZodOptional<z.ZodEnum<["pending", "active", "completed"]>>;
|
|
395
|
-
content: z.ZodString
|
|
412
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
396
413
|
}, "strip", z.ZodTypeAny, {
|
|
397
414
|
title: string;
|
|
398
|
-
content: string;
|
|
415
|
+
content: string | any[];
|
|
399
416
|
status?: "pending" | "active" | "completed" | undefined;
|
|
400
417
|
}, {
|
|
401
418
|
title: string;
|
|
402
|
-
content: string;
|
|
419
|
+
content: string | any[];
|
|
403
420
|
status?: "pending" | "active" | "completed" | undefined;
|
|
404
421
|
}>, "many">;
|
|
405
|
-
|
|
422
|
+
_slotChildCounts: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
406
423
|
}, "strip", z.ZodTypeAny, {
|
|
407
|
-
markdown: boolean;
|
|
408
424
|
steps: {
|
|
409
425
|
title: string;
|
|
410
|
-
content: string;
|
|
426
|
+
content: string | any[];
|
|
411
427
|
status?: "pending" | "active" | "completed" | undefined;
|
|
412
428
|
}[];
|
|
429
|
+
_slotChildCounts?: number[] | undefined;
|
|
413
430
|
}, {
|
|
414
431
|
steps: {
|
|
415
432
|
title: string;
|
|
416
|
-
content: string;
|
|
433
|
+
content: string | any[];
|
|
417
434
|
status?: "pending" | "active" | "completed" | undefined;
|
|
418
435
|
}[];
|
|
419
|
-
|
|
436
|
+
_slotChildCounts?: number[] | undefined;
|
|
420
437
|
}>;
|
|
421
438
|
|
|
422
439
|
interface ArchitectureNode {
|
|
@@ -483,7 +500,7 @@ declare const architectureSchema: z.ZodObject<{
|
|
|
483
500
|
declare const kpiSchema: z.ZodObject<{
|
|
484
501
|
title: z.ZodOptional<z.ZodString>;
|
|
485
502
|
metrics: z.ZodArray<z.ZodObject<{
|
|
486
|
-
label: z.ZodString
|
|
503
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
487
504
|
value: z.ZodString;
|
|
488
505
|
delta: z.ZodOptional<z.ZodString>;
|
|
489
506
|
trend: z.ZodOptional<z.ZodEnum<["up", "down", "flat"]>>;
|
|
@@ -491,26 +508,24 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
491
508
|
unit: z.ZodOptional<z.ZodString>;
|
|
492
509
|
}, "strip", z.ZodTypeAny, {
|
|
493
510
|
value: string;
|
|
494
|
-
label: string;
|
|
511
|
+
label: string | any[];
|
|
495
512
|
delta?: string | undefined;
|
|
496
513
|
trend?: "flat" | "up" | "down" | undefined;
|
|
497
514
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
498
515
|
unit?: string | undefined;
|
|
499
516
|
}, {
|
|
500
517
|
value: string;
|
|
501
|
-
label: string;
|
|
518
|
+
label: string | any[];
|
|
502
519
|
delta?: string | undefined;
|
|
503
520
|
trend?: "flat" | "up" | "down" | undefined;
|
|
504
521
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
505
522
|
unit?: string | undefined;
|
|
506
523
|
}>, "many">;
|
|
507
524
|
columns: z.ZodOptional<z.ZodNumber>;
|
|
508
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
509
525
|
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
markdown: boolean;
|
|
511
526
|
metrics: {
|
|
512
527
|
value: string;
|
|
513
|
-
label: string;
|
|
528
|
+
label: string | any[];
|
|
514
529
|
delta?: string | undefined;
|
|
515
530
|
trend?: "flat" | "up" | "down" | undefined;
|
|
516
531
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
@@ -521,13 +536,12 @@ declare const kpiSchema: z.ZodObject<{
|
|
|
521
536
|
}, {
|
|
522
537
|
metrics: {
|
|
523
538
|
value: string;
|
|
524
|
-
label: string;
|
|
539
|
+
label: string | any[];
|
|
525
540
|
delta?: string | undefined;
|
|
526
541
|
trend?: "flat" | "up" | "down" | undefined;
|
|
527
542
|
sentiment?: "positive" | "negative" | "neutral" | undefined;
|
|
528
543
|
unit?: string | undefined;
|
|
529
544
|
}[];
|
|
530
|
-
markdown?: boolean | undefined;
|
|
531
545
|
columns?: number | undefined;
|
|
532
546
|
title?: string | undefined;
|
|
533
547
|
}>;
|
|
@@ -536,22 +550,20 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
536
550
|
title: z.ZodOptional<z.ZodString>;
|
|
537
551
|
sections: z.ZodArray<z.ZodObject<{
|
|
538
552
|
title: z.ZodString;
|
|
539
|
-
content: z.ZodString
|
|
553
|
+
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
540
554
|
}, "strip", z.ZodTypeAny, {
|
|
541
555
|
title: string;
|
|
542
|
-
content: string;
|
|
556
|
+
content: string | any[];
|
|
543
557
|
}, {
|
|
544
558
|
title: string;
|
|
545
|
-
content: string;
|
|
559
|
+
content: string | any[];
|
|
546
560
|
}>, "many">;
|
|
547
561
|
defaultOpen: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
548
562
|
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
549
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
550
563
|
}, "strip", z.ZodTypeAny, {
|
|
551
|
-
markdown: boolean;
|
|
552
564
|
sections: {
|
|
553
565
|
title: string;
|
|
554
|
-
content: string;
|
|
566
|
+
content: string | any[];
|
|
555
567
|
}[];
|
|
556
568
|
multiple: boolean;
|
|
557
569
|
title?: string | undefined;
|
|
@@ -559,9 +571,8 @@ declare const accordionSchema: z.ZodObject<{
|
|
|
559
571
|
}, {
|
|
560
572
|
sections: {
|
|
561
573
|
title: string;
|
|
562
|
-
content: string;
|
|
574
|
+
content: string | any[];
|
|
563
575
|
}[];
|
|
564
|
-
markdown?: boolean | undefined;
|
|
565
576
|
title?: string | undefined;
|
|
566
577
|
defaultOpen?: number[] | undefined;
|
|
567
578
|
multiple?: boolean | undefined;
|
|
@@ -571,68 +582,63 @@ declare const comparisonSchema: z.ZodEffects<z.ZodObject<{
|
|
|
571
582
|
title: z.ZodOptional<z.ZodString>;
|
|
572
583
|
options: z.ZodArray<z.ZodObject<{
|
|
573
584
|
name: z.ZodString;
|
|
574
|
-
description: z.ZodOptional<z.ZodString
|
|
585
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
575
586
|
}, "strip", z.ZodTypeAny, {
|
|
576
587
|
name: string;
|
|
577
|
-
description?: string | undefined;
|
|
588
|
+
description?: string | any[] | undefined;
|
|
578
589
|
}, {
|
|
579
590
|
name: string;
|
|
580
|
-
description?: string | undefined;
|
|
591
|
+
description?: string | any[] | undefined;
|
|
581
592
|
}>, "many">;
|
|
582
593
|
features: z.ZodArray<z.ZodObject<{
|
|
583
594
|
name: z.ZodString;
|
|
584
|
-
values: z.ZodArray<z.ZodString, "many">;
|
|
595
|
+
values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
585
596
|
}, "strip", z.ZodTypeAny, {
|
|
586
|
-
values: string[];
|
|
597
|
+
values: (string | any[])[];
|
|
587
598
|
name: string;
|
|
588
599
|
}, {
|
|
589
|
-
values: string[];
|
|
600
|
+
values: (string | any[])[];
|
|
590
601
|
name: string;
|
|
591
602
|
}>, "many">;
|
|
592
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
593
603
|
}, "strip", z.ZodTypeAny, {
|
|
594
604
|
options: {
|
|
595
605
|
name: string;
|
|
596
|
-
description?: string | undefined;
|
|
606
|
+
description?: string | any[] | undefined;
|
|
597
607
|
}[];
|
|
598
|
-
markdown: boolean;
|
|
599
608
|
features: {
|
|
600
|
-
values: string[];
|
|
609
|
+
values: (string | any[])[];
|
|
601
610
|
name: string;
|
|
602
611
|
}[];
|
|
603
612
|
title?: string | undefined;
|
|
604
613
|
}, {
|
|
605
614
|
options: {
|
|
606
615
|
name: string;
|
|
607
|
-
description?: string | undefined;
|
|
616
|
+
description?: string | any[] | undefined;
|
|
608
617
|
}[];
|
|
609
618
|
features: {
|
|
610
|
-
values: string[];
|
|
619
|
+
values: (string | any[])[];
|
|
611
620
|
name: string;
|
|
612
621
|
}[];
|
|
613
|
-
markdown?: boolean | undefined;
|
|
614
622
|
title?: string | undefined;
|
|
615
623
|
}>, {
|
|
616
624
|
options: {
|
|
617
625
|
name: string;
|
|
618
|
-
description?: string | undefined;
|
|
626
|
+
description?: string | any[] | undefined;
|
|
619
627
|
}[];
|
|
620
|
-
markdown: boolean;
|
|
621
628
|
features: {
|
|
622
|
-
values: string[];
|
|
629
|
+
values: (string | any[])[];
|
|
623
630
|
name: string;
|
|
624
631
|
}[];
|
|
625
632
|
title?: string | undefined;
|
|
626
633
|
}, {
|
|
627
634
|
options: {
|
|
628
635
|
name: string;
|
|
629
|
-
description?: string | undefined;
|
|
636
|
+
description?: string | any[] | undefined;
|
|
630
637
|
}[];
|
|
631
638
|
features: {
|
|
632
|
-
values: string[];
|
|
639
|
+
values: (string | any[])[];
|
|
633
640
|
name: string;
|
|
634
641
|
}[];
|
|
635
|
-
markdown?: boolean | undefined;
|
|
636
642
|
title?: string | undefined;
|
|
637
643
|
}>;
|
|
638
644
|
|
|
@@ -640,85 +646,79 @@ declare const codediffSchema: z.ZodObject<{
|
|
|
640
646
|
language: z.ZodOptional<z.ZodString>;
|
|
641
647
|
before: z.ZodString;
|
|
642
648
|
after: z.ZodString;
|
|
643
|
-
beforeLabel: z.ZodOptional<z.ZodString
|
|
644
|
-
afterLabel: z.ZodOptional<z.ZodString
|
|
645
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
649
|
+
beforeLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
650
|
+
afterLabel: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
646
651
|
}, "strip", z.ZodTypeAny, {
|
|
647
|
-
markdown: boolean;
|
|
648
652
|
before: string;
|
|
649
653
|
after: string;
|
|
650
654
|
language?: string | undefined;
|
|
651
|
-
beforeLabel?: string | undefined;
|
|
652
|
-
afterLabel?: string | undefined;
|
|
655
|
+
beforeLabel?: string | any[] | undefined;
|
|
656
|
+
afterLabel?: string | any[] | undefined;
|
|
653
657
|
}, {
|
|
654
658
|
before: string;
|
|
655
659
|
after: string;
|
|
656
|
-
markdown?: boolean | undefined;
|
|
657
660
|
language?: string | undefined;
|
|
658
|
-
beforeLabel?: string | undefined;
|
|
659
|
-
afterLabel?: string | undefined;
|
|
661
|
+
beforeLabel?: string | any[] | undefined;
|
|
662
|
+
afterLabel?: string | any[] | undefined;
|
|
660
663
|
}>;
|
|
661
664
|
|
|
662
665
|
declare const flowchartSchema: z.ZodObject<{
|
|
663
|
-
title: z.ZodOptional<z.ZodString
|
|
666
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
664
667
|
nodes: z.ZodArray<z.ZodObject<{
|
|
665
668
|
id: z.ZodString;
|
|
666
669
|
type: z.ZodDefault<z.ZodEnum<["start", "end", "process", "decision"]>>;
|
|
667
|
-
label: z.ZodString
|
|
670
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
668
671
|
}, "strip", z.ZodTypeAny, {
|
|
669
672
|
type: "start" | "end" | "process" | "decision";
|
|
670
673
|
id: string;
|
|
671
|
-
label: string;
|
|
674
|
+
label: string | any[];
|
|
672
675
|
}, {
|
|
673
676
|
id: string;
|
|
674
|
-
label: string;
|
|
677
|
+
label: string | any[];
|
|
675
678
|
type?: "start" | "end" | "process" | "decision" | undefined;
|
|
676
679
|
}>, "many">;
|
|
677
680
|
edges: z.ZodArray<z.ZodObject<{
|
|
678
681
|
from: z.ZodString;
|
|
679
682
|
to: z.ZodString;
|
|
680
|
-
label: z.ZodOptional<z.ZodString
|
|
683
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
681
684
|
}, "strip", z.ZodTypeAny, {
|
|
682
685
|
from: string;
|
|
683
686
|
to: string;
|
|
684
|
-
label?: string | undefined;
|
|
687
|
+
label?: string | any[] | undefined;
|
|
685
688
|
}, {
|
|
686
689
|
from: string;
|
|
687
690
|
to: string;
|
|
688
|
-
label?: string | undefined;
|
|
691
|
+
label?: string | any[] | undefined;
|
|
689
692
|
}>, "many">;
|
|
690
693
|
direction: z.ZodDefault<z.ZodEnum<["top-down", "left-right"]>>;
|
|
691
694
|
interactionMode: z.ZodDefault<z.ZodEnum<["modifier-key", "click-to-activate", "always"]>>;
|
|
692
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
693
695
|
}, "strip", z.ZodTypeAny, {
|
|
694
696
|
nodes: {
|
|
695
697
|
type: "start" | "end" | "process" | "decision";
|
|
696
698
|
id: string;
|
|
697
|
-
label: string;
|
|
699
|
+
label: string | any[];
|
|
698
700
|
}[];
|
|
699
701
|
edges: {
|
|
700
702
|
from: string;
|
|
701
703
|
to: string;
|
|
702
|
-
label?: string | undefined;
|
|
704
|
+
label?: string | any[] | undefined;
|
|
703
705
|
}[];
|
|
704
706
|
interactionMode: "modifier-key" | "click-to-activate" | "always";
|
|
705
|
-
markdown: boolean;
|
|
706
707
|
direction: "top-down" | "left-right";
|
|
707
|
-
title?: string | undefined;
|
|
708
|
+
title?: string | any[] | undefined;
|
|
708
709
|
}, {
|
|
709
710
|
nodes: {
|
|
710
711
|
id: string;
|
|
711
|
-
label: string;
|
|
712
|
+
label: string | any[];
|
|
712
713
|
type?: "start" | "end" | "process" | "decision" | undefined;
|
|
713
714
|
}[];
|
|
714
715
|
edges: {
|
|
715
716
|
from: string;
|
|
716
717
|
to: string;
|
|
717
|
-
label?: string | undefined;
|
|
718
|
+
label?: string | any[] | undefined;
|
|
718
719
|
}[];
|
|
719
720
|
interactionMode?: "modifier-key" | "click-to-activate" | "always" | undefined;
|
|
720
|
-
|
|
721
|
-
title?: string | undefined;
|
|
721
|
+
title?: string | any[] | undefined;
|
|
722
722
|
direction?: "top-down" | "left-right" | undefined;
|
|
723
723
|
}>;
|
|
724
724
|
|
|
@@ -769,60 +769,57 @@ declare const filetreeSchema: z.ZodObject<{
|
|
|
769
769
|
}>;
|
|
770
770
|
|
|
771
771
|
declare const sequenceSchema: z.ZodObject<{
|
|
772
|
-
title: z.ZodOptional<z.ZodString
|
|
772
|
+
title: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
773
773
|
actors: z.ZodArray<z.ZodObject<{
|
|
774
774
|
id: z.ZodString;
|
|
775
|
-
label: z.ZodString
|
|
775
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
776
776
|
}, "strip", z.ZodTypeAny, {
|
|
777
777
|
id: string;
|
|
778
|
-
label: string;
|
|
778
|
+
label: string | any[];
|
|
779
779
|
}, {
|
|
780
780
|
id: string;
|
|
781
|
-
label: string;
|
|
781
|
+
label: string | any[];
|
|
782
782
|
}>, "many">;
|
|
783
783
|
messages: z.ZodArray<z.ZodObject<{
|
|
784
784
|
from: z.ZodString;
|
|
785
785
|
to: z.ZodString;
|
|
786
|
-
label: z.ZodString
|
|
786
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
787
787
|
type: z.ZodDefault<z.ZodEnum<["message", "reply", "self"]>>;
|
|
788
788
|
}, "strip", z.ZodTypeAny, {
|
|
789
789
|
type: "message" | "reply" | "self";
|
|
790
|
-
label: string;
|
|
790
|
+
label: string | any[];
|
|
791
791
|
from: string;
|
|
792
792
|
to: string;
|
|
793
793
|
}, {
|
|
794
|
-
label: string;
|
|
794
|
+
label: string | any[];
|
|
795
795
|
from: string;
|
|
796
796
|
to: string;
|
|
797
797
|
type?: "message" | "reply" | "self" | undefined;
|
|
798
798
|
}>, "many">;
|
|
799
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
800
799
|
}, "strip", z.ZodTypeAny, {
|
|
801
|
-
markdown: boolean;
|
|
802
800
|
actors: {
|
|
803
801
|
id: string;
|
|
804
|
-
label: string;
|
|
802
|
+
label: string | any[];
|
|
805
803
|
}[];
|
|
806
804
|
messages: {
|
|
807
805
|
type: "message" | "reply" | "self";
|
|
808
|
-
label: string;
|
|
806
|
+
label: string | any[];
|
|
809
807
|
from: string;
|
|
810
808
|
to: string;
|
|
811
809
|
}[];
|
|
812
|
-
title?: string | undefined;
|
|
810
|
+
title?: string | any[] | undefined;
|
|
813
811
|
}, {
|
|
814
812
|
actors: {
|
|
815
813
|
id: string;
|
|
816
|
-
label: string;
|
|
814
|
+
label: string | any[];
|
|
817
815
|
}[];
|
|
818
816
|
messages: {
|
|
819
|
-
label: string;
|
|
817
|
+
label: string | any[];
|
|
820
818
|
from: string;
|
|
821
819
|
to: string;
|
|
822
820
|
type?: "message" | "reply" | "self" | undefined;
|
|
823
821
|
}[];
|
|
824
|
-
|
|
825
|
-
title?: string | undefined;
|
|
822
|
+
title?: string | any[] | undefined;
|
|
826
823
|
}>;
|
|
827
824
|
|
|
828
825
|
declare const mindmapSchema: z.ZodObject<{
|
|
@@ -865,48 +862,43 @@ declare const mindmapSchema: z.ZodObject<{
|
|
|
865
862
|
|
|
866
863
|
declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
867
864
|
expression: z.ZodOptional<z.ZodString>;
|
|
868
|
-
label: z.ZodOptional<z.ZodString
|
|
865
|
+
label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
869
866
|
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
870
867
|
expression: z.ZodString;
|
|
871
|
-
annotation: z.ZodOptional<z.ZodString
|
|
868
|
+
annotation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
872
869
|
}, "strip", z.ZodTypeAny, {
|
|
873
870
|
expression: string;
|
|
874
|
-
annotation?: string | undefined;
|
|
871
|
+
annotation?: string | any[] | undefined;
|
|
875
872
|
}, {
|
|
876
873
|
expression: string;
|
|
877
|
-
annotation?: string | undefined;
|
|
874
|
+
annotation?: string | any[] | undefined;
|
|
878
875
|
}>, "many">>;
|
|
879
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
880
876
|
}, "strip", z.ZodTypeAny, {
|
|
881
|
-
|
|
882
|
-
label?: string | undefined;
|
|
877
|
+
label?: string | any[] | undefined;
|
|
883
878
|
steps?: {
|
|
884
879
|
expression: string;
|
|
885
|
-
annotation?: string | undefined;
|
|
880
|
+
annotation?: string | any[] | undefined;
|
|
886
881
|
}[] | undefined;
|
|
887
882
|
expression?: string | undefined;
|
|
888
883
|
}, {
|
|
889
|
-
label?: string | undefined;
|
|
890
|
-
markdown?: boolean | undefined;
|
|
884
|
+
label?: string | any[] | undefined;
|
|
891
885
|
steps?: {
|
|
892
886
|
expression: string;
|
|
893
|
-
annotation?: string | undefined;
|
|
887
|
+
annotation?: string | any[] | undefined;
|
|
894
888
|
}[] | undefined;
|
|
895
889
|
expression?: string | undefined;
|
|
896
890
|
}>, {
|
|
897
|
-
|
|
898
|
-
label?: string | undefined;
|
|
891
|
+
label?: string | any[] | undefined;
|
|
899
892
|
steps?: {
|
|
900
893
|
expression: string;
|
|
901
|
-
annotation?: string | undefined;
|
|
894
|
+
annotation?: string | any[] | undefined;
|
|
902
895
|
}[] | undefined;
|
|
903
896
|
expression?: string | undefined;
|
|
904
897
|
}, {
|
|
905
|
-
label?: string | undefined;
|
|
906
|
-
markdown?: boolean | undefined;
|
|
898
|
+
label?: string | any[] | undefined;
|
|
907
899
|
steps?: {
|
|
908
900
|
expression: string;
|
|
909
|
-
annotation?: string | undefined;
|
|
901
|
+
annotation?: string | any[] | undefined;
|
|
910
902
|
}[] | undefined;
|
|
911
903
|
expression?: string | undefined;
|
|
912
904
|
}>;
|
|
@@ -914,101 +906,98 @@ declare const equationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
914
906
|
declare const quizSchema: z.ZodObject<{
|
|
915
907
|
questions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
916
908
|
type: z.ZodLiteral<"multiple-choice">;
|
|
917
|
-
question: z.ZodString
|
|
918
|
-
options: z.ZodArray<z.ZodString, "many">;
|
|
909
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
910
|
+
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
919
911
|
answer: z.ZodNumber;
|
|
920
|
-
explanation: z.ZodOptional<z.ZodString
|
|
912
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
921
913
|
}, "strip", z.ZodTypeAny, {
|
|
914
|
+
options: (string | any[])[];
|
|
922
915
|
type: "multiple-choice";
|
|
923
|
-
|
|
924
|
-
question: string;
|
|
916
|
+
question: string | any[];
|
|
925
917
|
answer: number;
|
|
926
|
-
explanation?: string | undefined;
|
|
918
|
+
explanation?: string | any[] | undefined;
|
|
927
919
|
}, {
|
|
920
|
+
options: (string | any[])[];
|
|
928
921
|
type: "multiple-choice";
|
|
929
|
-
|
|
930
|
-
question: string;
|
|
922
|
+
question: string | any[];
|
|
931
923
|
answer: number;
|
|
932
|
-
explanation?: string | undefined;
|
|
924
|
+
explanation?: string | any[] | undefined;
|
|
933
925
|
}>, z.ZodObject<{
|
|
934
926
|
type: z.ZodLiteral<"true-false">;
|
|
935
|
-
question: z.ZodString
|
|
927
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
936
928
|
answer: z.ZodBoolean;
|
|
937
|
-
explanation: z.ZodOptional<z.ZodString
|
|
929
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
938
930
|
}, "strip", z.ZodTypeAny, {
|
|
939
931
|
type: "true-false";
|
|
940
|
-
question: string;
|
|
932
|
+
question: string | any[];
|
|
941
933
|
answer: boolean;
|
|
942
|
-
explanation?: string | undefined;
|
|
934
|
+
explanation?: string | any[] | undefined;
|
|
943
935
|
}, {
|
|
944
936
|
type: "true-false";
|
|
945
|
-
question: string;
|
|
937
|
+
question: string | any[];
|
|
946
938
|
answer: boolean;
|
|
947
|
-
explanation?: string | undefined;
|
|
939
|
+
explanation?: string | any[] | undefined;
|
|
948
940
|
}>, z.ZodObject<{
|
|
949
941
|
type: z.ZodLiteral<"multi-select">;
|
|
950
|
-
question: z.ZodString
|
|
951
|
-
options: z.ZodArray<z.ZodString, "many">;
|
|
942
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
943
|
+
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
952
944
|
answer: z.ZodArray<z.ZodNumber, "many">;
|
|
953
|
-
explanation: z.ZodOptional<z.ZodString
|
|
945
|
+
explanation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
954
946
|
}, "strip", z.ZodTypeAny, {
|
|
947
|
+
options: (string | any[])[];
|
|
955
948
|
type: "multi-select";
|
|
956
|
-
|
|
957
|
-
question: string;
|
|
949
|
+
question: string | any[];
|
|
958
950
|
answer: number[];
|
|
959
|
-
explanation?: string | undefined;
|
|
951
|
+
explanation?: string | any[] | undefined;
|
|
960
952
|
}, {
|
|
953
|
+
options: (string | any[])[];
|
|
961
954
|
type: "multi-select";
|
|
962
|
-
|
|
963
|
-
question: string;
|
|
955
|
+
question: string | any[];
|
|
964
956
|
answer: number[];
|
|
965
|
-
explanation?: string | undefined;
|
|
957
|
+
explanation?: string | any[] | undefined;
|
|
966
958
|
}>]>, "many">;
|
|
967
959
|
showScore: z.ZodDefault<z.ZodBoolean>;
|
|
968
960
|
title: z.ZodOptional<z.ZodString>;
|
|
969
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
970
961
|
}, "strip", z.ZodTypeAny, {
|
|
971
|
-
markdown: boolean;
|
|
972
962
|
questions: ({
|
|
963
|
+
options: (string | any[])[];
|
|
973
964
|
type: "multiple-choice";
|
|
974
|
-
|
|
975
|
-
question: string;
|
|
965
|
+
question: string | any[];
|
|
976
966
|
answer: number;
|
|
977
|
-
explanation?: string | undefined;
|
|
967
|
+
explanation?: string | any[] | undefined;
|
|
978
968
|
} | {
|
|
979
969
|
type: "true-false";
|
|
980
|
-
question: string;
|
|
970
|
+
question: string | any[];
|
|
981
971
|
answer: boolean;
|
|
982
|
-
explanation?: string | undefined;
|
|
972
|
+
explanation?: string | any[] | undefined;
|
|
983
973
|
} | {
|
|
974
|
+
options: (string | any[])[];
|
|
984
975
|
type: "multi-select";
|
|
985
|
-
|
|
986
|
-
question: string;
|
|
976
|
+
question: string | any[];
|
|
987
977
|
answer: number[];
|
|
988
|
-
explanation?: string | undefined;
|
|
978
|
+
explanation?: string | any[] | undefined;
|
|
989
979
|
})[];
|
|
990
980
|
showScore: boolean;
|
|
991
981
|
title?: string | undefined;
|
|
992
982
|
}, {
|
|
993
983
|
questions: ({
|
|
984
|
+
options: (string | any[])[];
|
|
994
985
|
type: "multiple-choice";
|
|
995
|
-
|
|
996
|
-
question: string;
|
|
986
|
+
question: string | any[];
|
|
997
987
|
answer: number;
|
|
998
|
-
explanation?: string | undefined;
|
|
988
|
+
explanation?: string | any[] | undefined;
|
|
999
989
|
} | {
|
|
1000
990
|
type: "true-false";
|
|
1001
|
-
question: string;
|
|
991
|
+
question: string | any[];
|
|
1002
992
|
answer: boolean;
|
|
1003
|
-
explanation?: string | undefined;
|
|
993
|
+
explanation?: string | any[] | undefined;
|
|
1004
994
|
} | {
|
|
995
|
+
options: (string | any[])[];
|
|
1005
996
|
type: "multi-select";
|
|
1006
|
-
|
|
1007
|
-
question: string;
|
|
997
|
+
question: string | any[];
|
|
1008
998
|
answer: number[];
|
|
1009
|
-
explanation?: string | undefined;
|
|
999
|
+
explanation?: string | any[] | undefined;
|
|
1010
1000
|
})[];
|
|
1011
|
-
markdown?: boolean | undefined;
|
|
1012
1001
|
title?: string | undefined;
|
|
1013
1002
|
showScore?: boolean | undefined;
|
|
1014
1003
|
}>;
|
|
@@ -1017,10 +1006,10 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1017
1006
|
title: z.ZodOptional<z.ZodString>;
|
|
1018
1007
|
cards: z.ZodArray<z.ZodObject<{
|
|
1019
1008
|
title: z.ZodString;
|
|
1020
|
-
subtitle: z.ZodOptional<z.ZodString
|
|
1009
|
+
subtitle: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1021
1010
|
image: z.ZodOptional<z.ZodString>;
|
|
1022
1011
|
icon: z.ZodOptional<z.ZodString>;
|
|
1023
|
-
body: z.ZodOptional<z.ZodString
|
|
1012
|
+
body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1024
1013
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1025
1014
|
label: z.ZodString;
|
|
1026
1015
|
url: z.ZodString;
|
|
@@ -1034,9 +1023,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1034
1023
|
}, "strip", z.ZodTypeAny, {
|
|
1035
1024
|
title: string;
|
|
1036
1025
|
icon?: string | undefined;
|
|
1037
|
-
subtitle?: string | undefined;
|
|
1026
|
+
subtitle?: string | any[] | undefined;
|
|
1038
1027
|
image?: string | undefined;
|
|
1039
|
-
body?: string | undefined;
|
|
1028
|
+
body?: string | any[] | undefined;
|
|
1040
1029
|
actions?: {
|
|
1041
1030
|
label: string;
|
|
1042
1031
|
url: string;
|
|
@@ -1044,9 +1033,9 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1044
1033
|
}, {
|
|
1045
1034
|
title: string;
|
|
1046
1035
|
icon?: string | undefined;
|
|
1047
|
-
subtitle?: string | undefined;
|
|
1036
|
+
subtitle?: string | any[] | undefined;
|
|
1048
1037
|
image?: string | undefined;
|
|
1049
|
-
body?: string | undefined;
|
|
1038
|
+
body?: string | any[] | undefined;
|
|
1050
1039
|
actions?: {
|
|
1051
1040
|
label: string;
|
|
1052
1041
|
url: string;
|
|
@@ -1054,15 +1043,13 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1054
1043
|
}>, "many">;
|
|
1055
1044
|
variant: z.ZodDefault<z.ZodEnum<["default", "outlined", "elevated"]>>;
|
|
1056
1045
|
columns: z.ZodOptional<z.ZodNumber>;
|
|
1057
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1058
1046
|
}, "strip", z.ZodTypeAny, {
|
|
1059
|
-
markdown: boolean;
|
|
1060
1047
|
cards: {
|
|
1061
1048
|
title: string;
|
|
1062
1049
|
icon?: string | undefined;
|
|
1063
|
-
subtitle?: string | undefined;
|
|
1050
|
+
subtitle?: string | any[] | undefined;
|
|
1064
1051
|
image?: string | undefined;
|
|
1065
|
-
body?: string | undefined;
|
|
1052
|
+
body?: string | any[] | undefined;
|
|
1066
1053
|
actions?: {
|
|
1067
1054
|
label: string;
|
|
1068
1055
|
url: string;
|
|
@@ -1075,15 +1062,14 @@ declare const cardSchema: z.ZodObject<{
|
|
|
1075
1062
|
cards: {
|
|
1076
1063
|
title: string;
|
|
1077
1064
|
icon?: string | undefined;
|
|
1078
|
-
subtitle?: string | undefined;
|
|
1065
|
+
subtitle?: string | any[] | undefined;
|
|
1079
1066
|
image?: string | undefined;
|
|
1080
|
-
body?: string | undefined;
|
|
1067
|
+
body?: string | any[] | undefined;
|
|
1081
1068
|
actions?: {
|
|
1082
1069
|
label: string;
|
|
1083
1070
|
url: string;
|
|
1084
1071
|
}[] | undefined;
|
|
1085
1072
|
}[];
|
|
1086
|
-
markdown?: boolean | undefined;
|
|
1087
1073
|
columns?: number | undefined;
|
|
1088
1074
|
title?: string | undefined;
|
|
1089
1075
|
variant?: "default" | "outlined" | "elevated" | undefined;
|
|
@@ -1097,28 +1083,28 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1097
1083
|
type: z.ZodLiteral<"stat">;
|
|
1098
1084
|
label: z.ZodString;
|
|
1099
1085
|
value: z.ZodString;
|
|
1100
|
-
description: z.ZodOptional<z.ZodString
|
|
1086
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1101
1087
|
}, "strip", z.ZodTypeAny, {
|
|
1102
|
-
type: "stat";
|
|
1103
1088
|
value: string;
|
|
1089
|
+
type: "stat";
|
|
1104
1090
|
label: string;
|
|
1105
|
-
description?: string | undefined;
|
|
1091
|
+
description?: string | any[] | undefined;
|
|
1106
1092
|
}, {
|
|
1107
|
-
type: "stat";
|
|
1108
1093
|
value: string;
|
|
1094
|
+
type: "stat";
|
|
1109
1095
|
label: string;
|
|
1110
|
-
description?: string | undefined;
|
|
1096
|
+
description?: string | any[] | undefined;
|
|
1111
1097
|
}>, z.ZodObject<{
|
|
1112
1098
|
type: z.ZodLiteral<"fact">;
|
|
1113
1099
|
icon: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
text: z.ZodString
|
|
1100
|
+
text: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1115
1101
|
}, "strip", z.ZodTypeAny, {
|
|
1116
1102
|
type: "fact";
|
|
1117
|
-
text: string;
|
|
1103
|
+
text: string | any[];
|
|
1118
1104
|
icon?: string | undefined;
|
|
1119
1105
|
}, {
|
|
1120
1106
|
type: "fact";
|
|
1121
|
-
text: string;
|
|
1107
|
+
text: string | any[];
|
|
1122
1108
|
icon?: string | undefined;
|
|
1123
1109
|
}>, z.ZodObject<{
|
|
1124
1110
|
type: z.ZodLiteral<"progress">;
|
|
@@ -1126,13 +1112,13 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1126
1112
|
value: z.ZodNumber;
|
|
1127
1113
|
color: z.ZodOptional<z.ZodString>;
|
|
1128
1114
|
}, "strip", z.ZodTypeAny, {
|
|
1129
|
-
type: "progress";
|
|
1130
1115
|
value: number;
|
|
1116
|
+
type: "progress";
|
|
1131
1117
|
label: string;
|
|
1132
1118
|
color?: string | undefined;
|
|
1133
1119
|
}, {
|
|
1134
|
-
type: "progress";
|
|
1135
1120
|
value: number;
|
|
1121
|
+
type: "progress";
|
|
1136
1122
|
label: string;
|
|
1137
1123
|
color?: string | undefined;
|
|
1138
1124
|
}>, z.ZodObject<{
|
|
@@ -1196,33 +1182,33 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1196
1182
|
label: z.ZodString;
|
|
1197
1183
|
value: z.ZodNumber;
|
|
1198
1184
|
max: z.ZodOptional<z.ZodNumber>;
|
|
1199
|
-
description: z.ZodOptional<z.ZodString
|
|
1185
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1200
1186
|
}, "strip", z.ZodTypeAny, {
|
|
1201
|
-
type: "rating";
|
|
1202
1187
|
value: number;
|
|
1188
|
+
type: "rating";
|
|
1203
1189
|
label: string;
|
|
1204
1190
|
max?: number | undefined;
|
|
1205
|
-
description?: string | undefined;
|
|
1191
|
+
description?: string | any[] | undefined;
|
|
1206
1192
|
}, {
|
|
1207
|
-
type: "rating";
|
|
1208
1193
|
value: number;
|
|
1194
|
+
type: "rating";
|
|
1209
1195
|
label: string;
|
|
1210
1196
|
max?: number | undefined;
|
|
1211
|
-
description?: string | undefined;
|
|
1197
|
+
description?: string | any[] | undefined;
|
|
1212
1198
|
}>]>, "many">;
|
|
1213
1199
|
}, "strip", z.ZodTypeAny, {
|
|
1214
1200
|
items: ({
|
|
1215
|
-
type: "stat";
|
|
1216
1201
|
value: string;
|
|
1202
|
+
type: "stat";
|
|
1217
1203
|
label: string;
|
|
1218
|
-
description?: string | undefined;
|
|
1204
|
+
description?: string | any[] | undefined;
|
|
1219
1205
|
} | {
|
|
1220
1206
|
type: "fact";
|
|
1221
|
-
text: string;
|
|
1207
|
+
text: string | any[];
|
|
1222
1208
|
icon?: string | undefined;
|
|
1223
1209
|
} | {
|
|
1224
|
-
type: "progress";
|
|
1225
1210
|
value: number;
|
|
1211
|
+
type: "progress";
|
|
1226
1212
|
label: string;
|
|
1227
1213
|
color?: string | undefined;
|
|
1228
1214
|
} | {
|
|
@@ -1242,26 +1228,26 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1242
1228
|
type: "divider";
|
|
1243
1229
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1244
1230
|
} | {
|
|
1245
|
-
type: "rating";
|
|
1246
1231
|
value: number;
|
|
1232
|
+
type: "rating";
|
|
1247
1233
|
label: string;
|
|
1248
1234
|
max?: number | undefined;
|
|
1249
|
-
description?: string | undefined;
|
|
1235
|
+
description?: string | any[] | undefined;
|
|
1250
1236
|
})[];
|
|
1251
1237
|
heading?: string | undefined;
|
|
1252
1238
|
}, {
|
|
1253
1239
|
items: ({
|
|
1254
|
-
type: "stat";
|
|
1255
1240
|
value: string;
|
|
1241
|
+
type: "stat";
|
|
1256
1242
|
label: string;
|
|
1257
|
-
description?: string | undefined;
|
|
1243
|
+
description?: string | any[] | undefined;
|
|
1258
1244
|
} | {
|
|
1259
1245
|
type: "fact";
|
|
1260
|
-
text: string;
|
|
1246
|
+
text: string | any[];
|
|
1261
1247
|
icon?: string | undefined;
|
|
1262
1248
|
} | {
|
|
1263
|
-
type: "progress";
|
|
1264
1249
|
value: number;
|
|
1250
|
+
type: "progress";
|
|
1265
1251
|
label: string;
|
|
1266
1252
|
color?: string | undefined;
|
|
1267
1253
|
} | {
|
|
@@ -1281,30 +1267,28 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1281
1267
|
type: "divider";
|
|
1282
1268
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1283
1269
|
} | {
|
|
1284
|
-
type: "rating";
|
|
1285
1270
|
value: number;
|
|
1271
|
+
type: "rating";
|
|
1286
1272
|
label: string;
|
|
1287
1273
|
max?: number | undefined;
|
|
1288
|
-
description?: string | undefined;
|
|
1274
|
+
description?: string | any[] | undefined;
|
|
1289
1275
|
})[];
|
|
1290
1276
|
heading?: string | undefined;
|
|
1291
1277
|
}>, "many">;
|
|
1292
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1293
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1294
|
-
markdown: boolean;
|
|
1295
1279
|
sections: {
|
|
1296
1280
|
items: ({
|
|
1297
|
-
type: "stat";
|
|
1298
1281
|
value: string;
|
|
1282
|
+
type: "stat";
|
|
1299
1283
|
label: string;
|
|
1300
|
-
description?: string | undefined;
|
|
1284
|
+
description?: string | any[] | undefined;
|
|
1301
1285
|
} | {
|
|
1302
1286
|
type: "fact";
|
|
1303
|
-
text: string;
|
|
1287
|
+
text: string | any[];
|
|
1304
1288
|
icon?: string | undefined;
|
|
1305
1289
|
} | {
|
|
1306
|
-
type: "progress";
|
|
1307
1290
|
value: number;
|
|
1291
|
+
type: "progress";
|
|
1308
1292
|
label: string;
|
|
1309
1293
|
color?: string | undefined;
|
|
1310
1294
|
} | {
|
|
@@ -1324,11 +1308,11 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1324
1308
|
type: "divider";
|
|
1325
1309
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1326
1310
|
} | {
|
|
1327
|
-
type: "rating";
|
|
1328
1311
|
value: number;
|
|
1312
|
+
type: "rating";
|
|
1329
1313
|
label: string;
|
|
1330
1314
|
max?: number | undefined;
|
|
1331
|
-
description?: string | undefined;
|
|
1315
|
+
description?: string | any[] | undefined;
|
|
1332
1316
|
})[];
|
|
1333
1317
|
heading?: string | undefined;
|
|
1334
1318
|
}[];
|
|
@@ -1336,17 +1320,17 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1336
1320
|
}, {
|
|
1337
1321
|
sections: {
|
|
1338
1322
|
items: ({
|
|
1339
|
-
type: "stat";
|
|
1340
1323
|
value: string;
|
|
1324
|
+
type: "stat";
|
|
1341
1325
|
label: string;
|
|
1342
|
-
description?: string | undefined;
|
|
1326
|
+
description?: string | any[] | undefined;
|
|
1343
1327
|
} | {
|
|
1344
1328
|
type: "fact";
|
|
1345
|
-
text: string;
|
|
1329
|
+
text: string | any[];
|
|
1346
1330
|
icon?: string | undefined;
|
|
1347
1331
|
} | {
|
|
1348
|
-
type: "progress";
|
|
1349
1332
|
value: number;
|
|
1333
|
+
type: "progress";
|
|
1350
1334
|
label: string;
|
|
1351
1335
|
color?: string | undefined;
|
|
1352
1336
|
} | {
|
|
@@ -1366,36 +1350,32 @@ declare const infographicSchema: z.ZodObject<{
|
|
|
1366
1350
|
type: "divider";
|
|
1367
1351
|
style?: "solid" | "dashed" | "dotted" | undefined;
|
|
1368
1352
|
} | {
|
|
1369
|
-
type: "rating";
|
|
1370
1353
|
value: number;
|
|
1354
|
+
type: "rating";
|
|
1371
1355
|
label: string;
|
|
1372
1356
|
max?: number | undefined;
|
|
1373
|
-
description?: string | undefined;
|
|
1357
|
+
description?: string | any[] | undefined;
|
|
1374
1358
|
})[];
|
|
1375
1359
|
heading?: string | undefined;
|
|
1376
1360
|
}[];
|
|
1377
|
-
markdown?: boolean | undefined;
|
|
1378
1361
|
title?: string | undefined;
|
|
1379
1362
|
}>;
|
|
1380
1363
|
|
|
1381
1364
|
declare const pollSchema: z.ZodObject<{
|
|
1382
|
-
question: z.ZodString
|
|
1383
|
-
options: z.ZodArray<z.ZodString, "many">;
|
|
1365
|
+
question: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1366
|
+
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>, "many">;
|
|
1384
1367
|
multiple: z.ZodDefault<z.ZodBoolean>;
|
|
1385
1368
|
showResults: z.ZodDefault<z.ZodBoolean>;
|
|
1386
1369
|
title: z.ZodOptional<z.ZodString>;
|
|
1387
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1388
1370
|
}, "strip", z.ZodTypeAny, {
|
|
1389
|
-
options: string[];
|
|
1390
|
-
markdown: boolean;
|
|
1371
|
+
options: (string | any[])[];
|
|
1391
1372
|
multiple: boolean;
|
|
1392
|
-
question: string;
|
|
1373
|
+
question: string | any[];
|
|
1393
1374
|
showResults: boolean;
|
|
1394
1375
|
title?: string | undefined;
|
|
1395
1376
|
}, {
|
|
1396
|
-
options: string[];
|
|
1397
|
-
question: string;
|
|
1398
|
-
markdown?: boolean | undefined;
|
|
1377
|
+
options: (string | any[])[];
|
|
1378
|
+
question: string | any[];
|
|
1399
1379
|
title?: string | undefined;
|
|
1400
1380
|
multiple?: boolean | undefined;
|
|
1401
1381
|
showResults?: boolean | undefined;
|
|
@@ -1425,9 +1405,7 @@ declare const ratingSchema: z.ZodObject<{
|
|
|
1425
1405
|
label: string;
|
|
1426
1406
|
description?: string | undefined;
|
|
1427
1407
|
}>, "many">;
|
|
1428
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1429
1408
|
}, "strip", z.ZodTypeAny, {
|
|
1430
|
-
markdown: boolean;
|
|
1431
1409
|
items: {
|
|
1432
1410
|
label: string;
|
|
1433
1411
|
description?: string | undefined;
|
|
@@ -1444,7 +1422,6 @@ declare const ratingSchema: z.ZodObject<{
|
|
|
1444
1422
|
label: string;
|
|
1445
1423
|
description?: string | undefined;
|
|
1446
1424
|
}[];
|
|
1447
|
-
markdown?: boolean | undefined;
|
|
1448
1425
|
title?: string | undefined;
|
|
1449
1426
|
scale?: number | undefined;
|
|
1450
1427
|
mode?: "number" | "star" | undefined;
|
|
@@ -1458,33 +1435,30 @@ declare const rankerSchema: z.ZodObject<{
|
|
|
1458
1435
|
title: z.ZodOptional<z.ZodString>;
|
|
1459
1436
|
items: z.ZodArray<z.ZodObject<{
|
|
1460
1437
|
id: z.ZodString;
|
|
1461
|
-
label: z.ZodString
|
|
1438
|
+
label: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1462
1439
|
description: z.ZodOptional<z.ZodString>;
|
|
1463
1440
|
}, "strip", z.ZodTypeAny, {
|
|
1464
1441
|
id: string;
|
|
1465
|
-
label: string;
|
|
1442
|
+
label: string | any[];
|
|
1466
1443
|
description?: string | undefined;
|
|
1467
1444
|
}, {
|
|
1468
1445
|
id: string;
|
|
1469
|
-
label: string;
|
|
1446
|
+
label: string | any[];
|
|
1470
1447
|
description?: string | undefined;
|
|
1471
1448
|
}>, "many">;
|
|
1472
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1473
1449
|
}, "strip", z.ZodTypeAny, {
|
|
1474
|
-
markdown: boolean;
|
|
1475
1450
|
items: {
|
|
1476
1451
|
id: string;
|
|
1477
|
-
label: string;
|
|
1452
|
+
label: string | any[];
|
|
1478
1453
|
description?: string | undefined;
|
|
1479
1454
|
}[];
|
|
1480
1455
|
title?: string | undefined;
|
|
1481
1456
|
}, {
|
|
1482
1457
|
items: {
|
|
1483
1458
|
id: string;
|
|
1484
|
-
label: string;
|
|
1459
|
+
label: string | any[];
|
|
1485
1460
|
description?: string | undefined;
|
|
1486
1461
|
}[];
|
|
1487
|
-
markdown?: boolean | undefined;
|
|
1488
1462
|
title?: string | undefined;
|
|
1489
1463
|
}>;
|
|
1490
1464
|
|
|
@@ -1516,10 +1490,8 @@ declare const sliderSchema: z.ZodObject<{
|
|
|
1516
1490
|
unit?: string | undefined;
|
|
1517
1491
|
step?: number | undefined;
|
|
1518
1492
|
}>, "many">;
|
|
1519
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1520
1493
|
}, "strip", z.ZodTypeAny, {
|
|
1521
1494
|
layout: "vertical" | "horizontal";
|
|
1522
|
-
markdown: boolean;
|
|
1523
1495
|
parameters: {
|
|
1524
1496
|
id: string;
|
|
1525
1497
|
label: string;
|
|
@@ -1541,7 +1513,6 @@ declare const sliderSchema: z.ZodObject<{
|
|
|
1541
1513
|
step?: number | undefined;
|
|
1542
1514
|
}[];
|
|
1543
1515
|
layout?: "vertical" | "horizontal" | undefined;
|
|
1544
|
-
markdown?: boolean | undefined;
|
|
1545
1516
|
title?: string | undefined;
|
|
1546
1517
|
}>;
|
|
1547
1518
|
|
|
@@ -1572,9 +1543,7 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1572
1543
|
id: string;
|
|
1573
1544
|
label: string;
|
|
1574
1545
|
}>, "many">;
|
|
1575
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1576
1546
|
}, "strip", z.ZodTypeAny, {
|
|
1577
|
-
markdown: boolean;
|
|
1578
1547
|
columns: {
|
|
1579
1548
|
id: string;
|
|
1580
1549
|
label: string;
|
|
@@ -1597,7 +1566,6 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1597
1566
|
id: string;
|
|
1598
1567
|
label: string;
|
|
1599
1568
|
}[];
|
|
1600
|
-
markdown?: boolean | undefined;
|
|
1601
1569
|
title?: string | undefined;
|
|
1602
1570
|
scale?: number | undefined;
|
|
1603
1571
|
showTotals?: boolean | undefined;
|
|
@@ -1605,7 +1573,7 @@ declare const matrixSchema: z.ZodObject<{
|
|
|
1605
1573
|
|
|
1606
1574
|
declare const formSchema: z.ZodObject<{
|
|
1607
1575
|
title: z.ZodOptional<z.ZodString>;
|
|
1608
|
-
description: z.ZodOptional<z.ZodString
|
|
1576
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1609
1577
|
submitLabel: z.ZodDefault<z.ZodString>;
|
|
1610
1578
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1611
1579
|
type: z.ZodLiteral<"text">;
|
|
@@ -1660,15 +1628,15 @@ declare const formSchema: z.ZodObject<{
|
|
|
1660
1628
|
options: z.ZodArray<z.ZodString, "many">;
|
|
1661
1629
|
default: z.ZodOptional<z.ZodString>;
|
|
1662
1630
|
}, "strip", z.ZodTypeAny, {
|
|
1663
|
-
type: "select";
|
|
1664
1631
|
options: string[];
|
|
1632
|
+
type: "select";
|
|
1665
1633
|
id: string;
|
|
1666
1634
|
label: string;
|
|
1667
1635
|
required: boolean;
|
|
1668
1636
|
default?: string | undefined;
|
|
1669
1637
|
}, {
|
|
1670
|
-
type: "select";
|
|
1671
1638
|
options: string[];
|
|
1639
|
+
type: "select";
|
|
1672
1640
|
id: string;
|
|
1673
1641
|
label: string;
|
|
1674
1642
|
default?: string | undefined;
|
|
@@ -1716,9 +1684,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
1716
1684
|
default?: number | undefined;
|
|
1717
1685
|
step?: number | undefined;
|
|
1718
1686
|
}>]>, "many">;
|
|
1719
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1720
1687
|
}, "strip", z.ZodTypeAny, {
|
|
1721
|
-
markdown: boolean;
|
|
1722
1688
|
submitLabel: string;
|
|
1723
1689
|
fields: ({
|
|
1724
1690
|
type: "text";
|
|
@@ -1736,8 +1702,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
1736
1702
|
default?: string | undefined;
|
|
1737
1703
|
placeholder?: string | undefined;
|
|
1738
1704
|
} | {
|
|
1739
|
-
type: "select";
|
|
1740
1705
|
options: string[];
|
|
1706
|
+
type: "select";
|
|
1741
1707
|
id: string;
|
|
1742
1708
|
label: string;
|
|
1743
1709
|
required: boolean;
|
|
@@ -1758,7 +1724,7 @@ declare const formSchema: z.ZodObject<{
|
|
|
1758
1724
|
default?: number | undefined;
|
|
1759
1725
|
})[];
|
|
1760
1726
|
title?: string | undefined;
|
|
1761
|
-
description?: string | undefined;
|
|
1727
|
+
description?: string | any[] | undefined;
|
|
1762
1728
|
}, {
|
|
1763
1729
|
fields: ({
|
|
1764
1730
|
type: "text";
|
|
@@ -1776,8 +1742,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
1776
1742
|
required?: boolean | undefined;
|
|
1777
1743
|
placeholder?: string | undefined;
|
|
1778
1744
|
} | {
|
|
1779
|
-
type: "select";
|
|
1780
1745
|
options: string[];
|
|
1746
|
+
type: "select";
|
|
1781
1747
|
id: string;
|
|
1782
1748
|
label: string;
|
|
1783
1749
|
default?: string | undefined;
|
|
@@ -1797,9 +1763,8 @@ declare const formSchema: z.ZodObject<{
|
|
|
1797
1763
|
default?: number | undefined;
|
|
1798
1764
|
step?: number | undefined;
|
|
1799
1765
|
})[];
|
|
1800
|
-
markdown?: boolean | undefined;
|
|
1801
1766
|
title?: string | undefined;
|
|
1802
|
-
description?: string | undefined;
|
|
1767
|
+
description?: string | any[] | undefined;
|
|
1803
1768
|
submitLabel?: string | undefined;
|
|
1804
1769
|
}>;
|
|
1805
1770
|
|
|
@@ -1810,20 +1775,20 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1810
1775
|
title: z.ZodString;
|
|
1811
1776
|
cards: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1812
1777
|
id: z.ZodString;
|
|
1813
|
-
title: z.ZodString
|
|
1814
|
-
description: z.ZodOptional<z.ZodString
|
|
1778
|
+
title: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1779
|
+
description: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>>;
|
|
1815
1780
|
priority: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
|
|
1816
1781
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1817
1782
|
}, "strip", z.ZodTypeAny, {
|
|
1818
1783
|
id: string;
|
|
1819
|
-
title: string;
|
|
1820
|
-
description?: string | undefined;
|
|
1784
|
+
title: string | any[];
|
|
1785
|
+
description?: string | any[] | undefined;
|
|
1821
1786
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1822
1787
|
tags?: string[] | undefined;
|
|
1823
1788
|
}, {
|
|
1824
1789
|
id: string;
|
|
1825
|
-
title: string;
|
|
1826
|
-
description?: string | undefined;
|
|
1790
|
+
title: string | any[];
|
|
1791
|
+
description?: string | any[] | undefined;
|
|
1827
1792
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1828
1793
|
tags?: string[] | undefined;
|
|
1829
1794
|
}>, "many">>;
|
|
@@ -1833,8 +1798,8 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1833
1798
|
title: string;
|
|
1834
1799
|
cards: {
|
|
1835
1800
|
id: string;
|
|
1836
|
-
title: string;
|
|
1837
|
-
description?: string | undefined;
|
|
1801
|
+
title: string | any[];
|
|
1802
|
+
description?: string | any[] | undefined;
|
|
1838
1803
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1839
1804
|
tags?: string[] | undefined;
|
|
1840
1805
|
}[];
|
|
@@ -1844,23 +1809,21 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1844
1809
|
title: string;
|
|
1845
1810
|
cards?: {
|
|
1846
1811
|
id: string;
|
|
1847
|
-
title: string;
|
|
1848
|
-
description?: string | undefined;
|
|
1812
|
+
title: string | any[];
|
|
1813
|
+
description?: string | any[] | undefined;
|
|
1849
1814
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1850
1815
|
tags?: string[] | undefined;
|
|
1851
1816
|
}[] | undefined;
|
|
1852
1817
|
limit?: number | undefined;
|
|
1853
1818
|
}>, "many">;
|
|
1854
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1855
1819
|
}, "strip", z.ZodTypeAny, {
|
|
1856
|
-
markdown: boolean;
|
|
1857
1820
|
columns: {
|
|
1858
1821
|
id: string;
|
|
1859
1822
|
title: string;
|
|
1860
1823
|
cards: {
|
|
1861
1824
|
id: string;
|
|
1862
|
-
title: string;
|
|
1863
|
-
description?: string | undefined;
|
|
1825
|
+
title: string | any[];
|
|
1826
|
+
description?: string | any[] | undefined;
|
|
1864
1827
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1865
1828
|
tags?: string[] | undefined;
|
|
1866
1829
|
}[];
|
|
@@ -1873,14 +1836,13 @@ declare const kanbanSchema: z.ZodObject<{
|
|
|
1873
1836
|
title: string;
|
|
1874
1837
|
cards?: {
|
|
1875
1838
|
id: string;
|
|
1876
|
-
title: string;
|
|
1877
|
-
description?: string | undefined;
|
|
1839
|
+
title: string | any[];
|
|
1840
|
+
description?: string | any[] | undefined;
|
|
1878
1841
|
priority?: "low" | "high" | "medium" | undefined;
|
|
1879
1842
|
tags?: string[] | undefined;
|
|
1880
1843
|
}[] | undefined;
|
|
1881
1844
|
limit?: number | undefined;
|
|
1882
1845
|
}[];
|
|
1883
|
-
markdown?: boolean | undefined;
|
|
1884
1846
|
title?: string | undefined;
|
|
1885
1847
|
}>;
|
|
1886
1848
|
|
|
@@ -1913,9 +1875,7 @@ declare const annotateSchema: z.ZodObject<{
|
|
|
1913
1875
|
end: number;
|
|
1914
1876
|
note?: string | undefined;
|
|
1915
1877
|
}>, "many">>;
|
|
1916
|
-
markdown: z.ZodDefault<z.ZodBoolean>;
|
|
1917
1878
|
}, "strip", z.ZodTypeAny, {
|
|
1918
|
-
markdown: boolean;
|
|
1919
1879
|
text: string;
|
|
1920
1880
|
labels: {
|
|
1921
1881
|
name: string;
|
|
@@ -1934,7 +1894,6 @@ declare const annotateSchema: z.ZodObject<{
|
|
|
1934
1894
|
name: string;
|
|
1935
1895
|
color: string;
|
|
1936
1896
|
}[];
|
|
1937
|
-
markdown?: boolean | undefined;
|
|
1938
1897
|
title?: string | undefined;
|
|
1939
1898
|
annotations?: {
|
|
1940
1899
|
label: string;
|
|
@@ -1944,7 +1903,65 @@ declare const annotateSchema: z.ZodObject<{
|
|
|
1944
1903
|
}[] | undefined;
|
|
1945
1904
|
}>;
|
|
1946
1905
|
|
|
1906
|
+
declare const columnsSchema: z.ZodObject<{
|
|
1907
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
1908
|
+
ratio: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1909
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, "strip", z.ZodTypeAny, {
|
|
1911
|
+
children: string[];
|
|
1912
|
+
ratio?: number[] | undefined;
|
|
1913
|
+
gap?: string | undefined;
|
|
1914
|
+
}, {
|
|
1915
|
+
children: string[];
|
|
1916
|
+
ratio?: number[] | undefined;
|
|
1917
|
+
gap?: string | undefined;
|
|
1918
|
+
}>;
|
|
1919
|
+
|
|
1920
|
+
declare const rowsSchema: z.ZodObject<{
|
|
1921
|
+
children: z.ZodArray<z.ZodString, "many">;
|
|
1922
|
+
ratio: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
1923
|
+
gap: z.ZodOptional<z.ZodString>;
|
|
1924
|
+
}, "strip", z.ZodTypeAny, {
|
|
1925
|
+
children: string[];
|
|
1926
|
+
ratio?: number[] | undefined;
|
|
1927
|
+
gap?: string | undefined;
|
|
1928
|
+
}, {
|
|
1929
|
+
children: string[];
|
|
1930
|
+
ratio?: number[] | undefined;
|
|
1931
|
+
gap?: string | undefined;
|
|
1932
|
+
}>;
|
|
1933
|
+
|
|
1934
|
+
declare const panelSchema: z.ZodObject<{
|
|
1935
|
+
child: z.ZodString;
|
|
1936
|
+
style: z.ZodOptional<z.ZodEnum<["card", "bordered", "elevated", "ghost"]>>;
|
|
1937
|
+
padding: z.ZodOptional<z.ZodString>;
|
|
1938
|
+
}, "strip", z.ZodTypeAny, {
|
|
1939
|
+
child: string;
|
|
1940
|
+
style?: "elevated" | "card" | "bordered" | "ghost" | undefined;
|
|
1941
|
+
padding?: string | undefined;
|
|
1942
|
+
}, {
|
|
1943
|
+
child: string;
|
|
1944
|
+
style?: "elevated" | "card" | "bordered" | "ghost" | undefined;
|
|
1945
|
+
padding?: string | undefined;
|
|
1946
|
+
}>;
|
|
1947
|
+
|
|
1947
1948
|
declare const componentSchemas: ReadonlyMap<string, z.ZodType>;
|
|
1948
1949
|
declare function getJsonSchema(componentType: string): object | undefined;
|
|
1949
1950
|
|
|
1950
|
-
|
|
1951
|
+
/**
|
|
1952
|
+
* Accepts either a plain string or an already-processed InlineNode array.
|
|
1953
|
+
*
|
|
1954
|
+
* Fields listed in MARKDOWN_FIELD_MAP are converted from `string` to
|
|
1955
|
+
* `InlineNode[]` by the compiler when `markdown: true` is set on a block.
|
|
1956
|
+
* The runtime re-validates IR data with the component's Zod schema, so any
|
|
1957
|
+
* field that can become an InlineNode array must accept both types here —
|
|
1958
|
+
* otherwise the runtime logs a spurious schema-validation warning and falls
|
|
1959
|
+
* back to raw data even though the component renders correctly.
|
|
1960
|
+
*
|
|
1961
|
+
* Uses z.union([z.string(), z.array(z.any())]) so that:
|
|
1962
|
+
* - JSON Schema generates anyOf:[string, array] (correctly rejects numbers etc.)
|
|
1963
|
+
* - TypeScript infers string | any[], which is assignable to string | InlineNode[]
|
|
1964
|
+
*/
|
|
1965
|
+
declare const inlineContentSchema: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodAny, "many">]>;
|
|
1966
|
+
|
|
1967
|
+
export { accordionSchema, annotateSchema, architectureSchema, calloutSchema, cardSchema, chartSchema, codediffSchema, columnsSchema, comparisonSchema, componentSchemas, equationSchema, filetreeSchema, flowchartSchema, formSchema, getJsonSchema, graphSchema, infographicSchema, inlineContentSchema, kanbanSchema, kpiSchema, matrixSchema, mindmapSchema, panelSchema, pollSchema, quizSchema, rankerSchema, ratingSchema, relationSchema, rowsSchema, sequenceSchema, sliderSchema, stepsSchema, tableSchema, tabsSchema, timelineSchema };
|