@webstudio-is/sdk 0.142.0 → 0.144.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.
- package/lib/index.js +528 -1
- package/lib/types/expression.d.ts +107 -0
- package/lib/types/forms-generator.d.ts +84 -0
- package/lib/types/forms-generator.test.d.ts +1 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/page-meta-generator.d.ts +55 -0
- package/lib/types/page-meta-generator.test.d.ts +1 -0
- package/lib/types/page-utils.test.d.ts +1 -0
- package/lib/types/resources-generator.d.ts +52 -0
- package/lib/types/resources-generator.test.d.ts +1 -0
- package/lib/types/schema/assets.d.ts +12 -12
- package/lib/types/schema/data-sources.d.ts +12 -12
- package/lib/types/schema/pages.d.ts +20 -20
- package/lib/types/schema/props.d.ts +40 -40
- package/lib/types/schema/resources.d.ts +12 -12
- package/lib/types/schema/style-sources.d.ts +6 -6
- package/lib/types/schema/styles.d.ts +516 -312
- package/lib/types/schema/webstudio.d.ts +212 -180
- package/package.json +7 -5
- /package/lib/types/{page-utilts.test.d.ts → expression.test.d.ts} +0 -0
|
@@ -10,13 +10,13 @@ export declare const Folder: z.ZodObject<{
|
|
|
10
10
|
slug: z.ZodEffects<z.ZodString, string, string>;
|
|
11
11
|
children: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
name: string;
|
|
14
13
|
id: string;
|
|
14
|
+
name: string;
|
|
15
15
|
slug: string;
|
|
16
16
|
children: string[];
|
|
17
17
|
}, {
|
|
18
|
-
name: string;
|
|
19
18
|
id: string;
|
|
19
|
+
name: string;
|
|
20
20
|
slug: string;
|
|
21
21
|
children: string[];
|
|
22
22
|
}>;
|
|
@@ -80,6 +80,7 @@ declare const Page: z.ZodObject<{
|
|
|
80
80
|
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
82
|
path: string;
|
|
83
|
+
id: string;
|
|
83
84
|
name: string;
|
|
84
85
|
meta: {
|
|
85
86
|
description?: string | undefined;
|
|
@@ -95,12 +96,12 @@ declare const Page: z.ZodObject<{
|
|
|
95
96
|
content: string;
|
|
96
97
|
}[] | undefined;
|
|
97
98
|
};
|
|
98
|
-
id: string;
|
|
99
99
|
title: string;
|
|
100
100
|
rootInstanceId: string;
|
|
101
101
|
systemDataSourceId?: string | undefined;
|
|
102
102
|
}, {
|
|
103
103
|
path: string;
|
|
104
|
+
id: string;
|
|
104
105
|
name: string;
|
|
105
106
|
meta: {
|
|
106
107
|
description?: string | undefined;
|
|
@@ -116,7 +117,6 @@ declare const Page: z.ZodObject<{
|
|
|
116
117
|
content: string;
|
|
117
118
|
}[] | undefined;
|
|
118
119
|
};
|
|
119
|
-
id: string;
|
|
120
120
|
title: string;
|
|
121
121
|
rootInstanceId: string;
|
|
122
122
|
systemDataSourceId?: string | undefined;
|
|
@@ -248,6 +248,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
248
248
|
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
249
249
|
}, "strip", z.ZodTypeAny, {
|
|
250
250
|
path: string;
|
|
251
|
+
id: string;
|
|
251
252
|
name: string;
|
|
252
253
|
meta: {
|
|
253
254
|
description?: string | undefined;
|
|
@@ -263,12 +264,12 @@ export declare const Pages: z.ZodObject<{
|
|
|
263
264
|
content: string;
|
|
264
265
|
}[] | undefined;
|
|
265
266
|
};
|
|
266
|
-
id: string;
|
|
267
267
|
title: string;
|
|
268
268
|
rootInstanceId: string;
|
|
269
269
|
systemDataSourceId?: string | undefined;
|
|
270
270
|
}, {
|
|
271
271
|
path: string;
|
|
272
|
+
id: string;
|
|
272
273
|
name: string;
|
|
273
274
|
meta: {
|
|
274
275
|
description?: string | undefined;
|
|
@@ -284,7 +285,6 @@ export declare const Pages: z.ZodObject<{
|
|
|
284
285
|
content: string;
|
|
285
286
|
}[] | undefined;
|
|
286
287
|
};
|
|
287
|
-
id: string;
|
|
288
288
|
title: string;
|
|
289
289
|
rootInstanceId: string;
|
|
290
290
|
systemDataSourceId?: string | undefined;
|
|
@@ -344,6 +344,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
344
344
|
systemDataSourceId: z.ZodOptional<z.ZodString>;
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
346
|
path: string;
|
|
347
|
+
id: string;
|
|
347
348
|
name: string;
|
|
348
349
|
meta: {
|
|
349
350
|
description?: string | undefined;
|
|
@@ -359,12 +360,12 @@ export declare const Pages: z.ZodObject<{
|
|
|
359
360
|
content: string;
|
|
360
361
|
}[] | undefined;
|
|
361
362
|
};
|
|
362
|
-
id: string;
|
|
363
363
|
title: string;
|
|
364
364
|
rootInstanceId: string;
|
|
365
365
|
systemDataSourceId?: string | undefined;
|
|
366
366
|
}, {
|
|
367
367
|
path: string;
|
|
368
|
+
id: string;
|
|
368
369
|
name: string;
|
|
369
370
|
meta: {
|
|
370
371
|
description?: string | undefined;
|
|
@@ -380,12 +381,12 @@ export declare const Pages: z.ZodObject<{
|
|
|
380
381
|
content: string;
|
|
381
382
|
}[] | undefined;
|
|
382
383
|
};
|
|
383
|
-
id: string;
|
|
384
384
|
title: string;
|
|
385
385
|
rootInstanceId: string;
|
|
386
386
|
systemDataSourceId?: string | undefined;
|
|
387
387
|
}>, "many">, {
|
|
388
388
|
path: string;
|
|
389
|
+
id: string;
|
|
389
390
|
name: string;
|
|
390
391
|
meta: {
|
|
391
392
|
description?: string | undefined;
|
|
@@ -401,12 +402,12 @@ export declare const Pages: z.ZodObject<{
|
|
|
401
402
|
content: string;
|
|
402
403
|
}[] | undefined;
|
|
403
404
|
};
|
|
404
|
-
id: string;
|
|
405
405
|
title: string;
|
|
406
406
|
rootInstanceId: string;
|
|
407
407
|
systemDataSourceId?: string | undefined;
|
|
408
408
|
}[], {
|
|
409
409
|
path: string;
|
|
410
|
+
id: string;
|
|
410
411
|
name: string;
|
|
411
412
|
meta: {
|
|
412
413
|
description?: string | undefined;
|
|
@@ -422,7 +423,6 @@ export declare const Pages: z.ZodObject<{
|
|
|
422
423
|
content: string;
|
|
423
424
|
}[] | undefined;
|
|
424
425
|
};
|
|
425
|
-
id: string;
|
|
426
426
|
title: string;
|
|
427
427
|
rootInstanceId: string;
|
|
428
428
|
systemDataSourceId?: string | undefined;
|
|
@@ -433,29 +433,30 @@ export declare const Pages: z.ZodObject<{
|
|
|
433
433
|
slug: z.ZodEffects<z.ZodString, string, string>;
|
|
434
434
|
children: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodString]>, "many">;
|
|
435
435
|
}, "strip", z.ZodTypeAny, {
|
|
436
|
-
name: string;
|
|
437
436
|
id: string;
|
|
437
|
+
name: string;
|
|
438
438
|
slug: string;
|
|
439
439
|
children: string[];
|
|
440
440
|
}, {
|
|
441
|
-
name: string;
|
|
442
441
|
id: string;
|
|
442
|
+
name: string;
|
|
443
443
|
slug: string;
|
|
444
444
|
children: string[];
|
|
445
445
|
}>, "many">, {
|
|
446
|
-
name: string;
|
|
447
446
|
id: string;
|
|
447
|
+
name: string;
|
|
448
448
|
slug: string;
|
|
449
449
|
children: string[];
|
|
450
450
|
}[], {
|
|
451
|
-
name: string;
|
|
452
451
|
id: string;
|
|
452
|
+
name: string;
|
|
453
453
|
slug: string;
|
|
454
454
|
children: string[];
|
|
455
455
|
}[]>;
|
|
456
456
|
}, "strip", z.ZodTypeAny, {
|
|
457
457
|
homePage: {
|
|
458
458
|
path: string;
|
|
459
|
+
id: string;
|
|
459
460
|
name: string;
|
|
460
461
|
meta: {
|
|
461
462
|
description?: string | undefined;
|
|
@@ -471,13 +472,13 @@ export declare const Pages: z.ZodObject<{
|
|
|
471
472
|
content: string;
|
|
472
473
|
}[] | undefined;
|
|
473
474
|
};
|
|
474
|
-
id: string;
|
|
475
475
|
title: string;
|
|
476
476
|
rootInstanceId: string;
|
|
477
477
|
systemDataSourceId?: string | undefined;
|
|
478
478
|
};
|
|
479
479
|
pages: {
|
|
480
480
|
path: string;
|
|
481
|
+
id: string;
|
|
481
482
|
name: string;
|
|
482
483
|
meta: {
|
|
483
484
|
description?: string | undefined;
|
|
@@ -493,14 +494,13 @@ export declare const Pages: z.ZodObject<{
|
|
|
493
494
|
content: string;
|
|
494
495
|
}[] | undefined;
|
|
495
496
|
};
|
|
496
|
-
id: string;
|
|
497
497
|
title: string;
|
|
498
498
|
rootInstanceId: string;
|
|
499
499
|
systemDataSourceId?: string | undefined;
|
|
500
500
|
}[];
|
|
501
501
|
folders: {
|
|
502
|
-
name: string;
|
|
503
502
|
id: string;
|
|
503
|
+
name: string;
|
|
504
504
|
slug: string;
|
|
505
505
|
children: string[];
|
|
506
506
|
}[];
|
|
@@ -520,6 +520,7 @@ export declare const Pages: z.ZodObject<{
|
|
|
520
520
|
}, {
|
|
521
521
|
homePage: {
|
|
522
522
|
path: string;
|
|
523
|
+
id: string;
|
|
523
524
|
name: string;
|
|
524
525
|
meta: {
|
|
525
526
|
description?: string | undefined;
|
|
@@ -535,13 +536,13 @@ export declare const Pages: z.ZodObject<{
|
|
|
535
536
|
content: string;
|
|
536
537
|
}[] | undefined;
|
|
537
538
|
};
|
|
538
|
-
id: string;
|
|
539
539
|
title: string;
|
|
540
540
|
rootInstanceId: string;
|
|
541
541
|
systemDataSourceId?: string | undefined;
|
|
542
542
|
};
|
|
543
543
|
pages: {
|
|
544
544
|
path: string;
|
|
545
|
+
id: string;
|
|
545
546
|
name: string;
|
|
546
547
|
meta: {
|
|
547
548
|
description?: string | undefined;
|
|
@@ -557,14 +558,13 @@ export declare const Pages: z.ZodObject<{
|
|
|
557
558
|
content: string;
|
|
558
559
|
}[] | undefined;
|
|
559
560
|
};
|
|
560
|
-
id: string;
|
|
561
561
|
title: string;
|
|
562
562
|
rootInstanceId: string;
|
|
563
563
|
systemDataSourceId?: string | undefined;
|
|
564
564
|
}[];
|
|
565
565
|
folders: {
|
|
566
|
-
name: string;
|
|
567
566
|
id: string;
|
|
567
|
+
name: string;
|
|
568
568
|
slug: string;
|
|
569
569
|
children: string[];
|
|
570
570
|
}[];
|
|
@@ -9,15 +9,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
value: number;
|
|
11
11
|
type: "number";
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
instanceId: string;
|
|
15
15
|
required?: boolean | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
value: number;
|
|
18
18
|
type: "number";
|
|
19
|
-
name: string;
|
|
20
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
21
|
instanceId: string;
|
|
22
22
|
required?: boolean | undefined;
|
|
23
23
|
}>, z.ZodObject<{
|
|
@@ -30,15 +30,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
value: string;
|
|
32
32
|
type: "string";
|
|
33
|
-
name: string;
|
|
34
33
|
id: string;
|
|
34
|
+
name: string;
|
|
35
35
|
instanceId: string;
|
|
36
36
|
required?: boolean | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
value: string;
|
|
39
39
|
type: "string";
|
|
40
|
-
name: string;
|
|
41
40
|
id: string;
|
|
41
|
+
name: string;
|
|
42
42
|
instanceId: string;
|
|
43
43
|
required?: boolean | undefined;
|
|
44
44
|
}>, z.ZodObject<{
|
|
@@ -51,15 +51,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
52
|
value: boolean;
|
|
53
53
|
type: "boolean";
|
|
54
|
-
name: string;
|
|
55
54
|
id: string;
|
|
55
|
+
name: string;
|
|
56
56
|
instanceId: string;
|
|
57
57
|
required?: boolean | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
value: boolean;
|
|
60
60
|
type: "boolean";
|
|
61
|
-
name: string;
|
|
62
61
|
id: string;
|
|
62
|
+
name: string;
|
|
63
63
|
instanceId: string;
|
|
64
64
|
required?: boolean | undefined;
|
|
65
65
|
}>, z.ZodObject<{
|
|
@@ -71,15 +71,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
71
71
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
73
|
type: "json";
|
|
74
|
-
name: string;
|
|
75
74
|
id: string;
|
|
75
|
+
name: string;
|
|
76
76
|
instanceId: string;
|
|
77
77
|
value?: unknown;
|
|
78
78
|
required?: boolean | undefined;
|
|
79
79
|
}, {
|
|
80
80
|
type: "json";
|
|
81
|
-
name: string;
|
|
82
81
|
id: string;
|
|
82
|
+
name: string;
|
|
83
83
|
instanceId: string;
|
|
84
84
|
value?: unknown;
|
|
85
85
|
required?: boolean | undefined;
|
|
@@ -93,15 +93,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
93
93
|
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
value: string;
|
|
95
95
|
type: "asset";
|
|
96
|
-
name: string;
|
|
97
96
|
id: string;
|
|
97
|
+
name: string;
|
|
98
98
|
instanceId: string;
|
|
99
99
|
required?: boolean | undefined;
|
|
100
100
|
}, {
|
|
101
101
|
value: string;
|
|
102
102
|
type: "asset";
|
|
103
|
-
name: string;
|
|
104
103
|
id: string;
|
|
104
|
+
name: string;
|
|
105
105
|
instanceId: string;
|
|
106
106
|
required?: boolean | undefined;
|
|
107
107
|
}>, z.ZodObject<{
|
|
@@ -129,8 +129,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
129
129
|
pageId: string;
|
|
130
130
|
} | undefined);
|
|
131
131
|
type: "page";
|
|
132
|
-
name: string;
|
|
133
132
|
id: string;
|
|
133
|
+
name: string;
|
|
134
134
|
instanceId: string;
|
|
135
135
|
required?: boolean | undefined;
|
|
136
136
|
}, {
|
|
@@ -142,8 +142,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
142
142
|
pageId: string;
|
|
143
143
|
} | undefined);
|
|
144
144
|
type: "page";
|
|
145
|
-
name: string;
|
|
146
145
|
id: string;
|
|
146
|
+
name: string;
|
|
147
147
|
instanceId: string;
|
|
148
148
|
required?: boolean | undefined;
|
|
149
149
|
}>, z.ZodObject<{
|
|
@@ -156,15 +156,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
value: string[];
|
|
158
158
|
type: "string[]";
|
|
159
|
-
name: string;
|
|
160
159
|
id: string;
|
|
160
|
+
name: string;
|
|
161
161
|
instanceId: string;
|
|
162
162
|
required?: boolean | undefined;
|
|
163
163
|
}, {
|
|
164
164
|
value: string[];
|
|
165
165
|
type: "string[]";
|
|
166
|
-
name: string;
|
|
167
166
|
id: string;
|
|
167
|
+
name: string;
|
|
168
168
|
instanceId: string;
|
|
169
169
|
required?: boolean | undefined;
|
|
170
170
|
}>, z.ZodObject<{
|
|
@@ -177,15 +177,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
value: string;
|
|
179
179
|
type: "parameter";
|
|
180
|
-
name: string;
|
|
181
180
|
id: string;
|
|
181
|
+
name: string;
|
|
182
182
|
instanceId: string;
|
|
183
183
|
required?: boolean | undefined;
|
|
184
184
|
}, {
|
|
185
185
|
value: string;
|
|
186
186
|
type: "parameter";
|
|
187
|
-
name: string;
|
|
188
187
|
id: string;
|
|
188
|
+
name: string;
|
|
189
189
|
instanceId: string;
|
|
190
190
|
required?: boolean | undefined;
|
|
191
191
|
}>, z.ZodObject<{
|
|
@@ -198,15 +198,15 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
199
|
value: string;
|
|
200
200
|
type: "expression";
|
|
201
|
-
name: string;
|
|
202
201
|
id: string;
|
|
202
|
+
name: string;
|
|
203
203
|
instanceId: string;
|
|
204
204
|
required?: boolean | undefined;
|
|
205
205
|
}, {
|
|
206
206
|
value: string;
|
|
207
207
|
type: "expression";
|
|
208
|
-
name: string;
|
|
209
208
|
id: string;
|
|
209
|
+
name: string;
|
|
210
210
|
instanceId: string;
|
|
211
211
|
required?: boolean | undefined;
|
|
212
212
|
}>, z.ZodObject<{
|
|
@@ -235,8 +235,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
235
235
|
args: string[];
|
|
236
236
|
}[];
|
|
237
237
|
type: "action";
|
|
238
|
-
name: string;
|
|
239
238
|
id: string;
|
|
239
|
+
name: string;
|
|
240
240
|
instanceId: string;
|
|
241
241
|
required?: boolean | undefined;
|
|
242
242
|
}, {
|
|
@@ -246,8 +246,8 @@ export declare const Prop: z.ZodUnion<[z.ZodObject<{
|
|
|
246
246
|
args: string[];
|
|
247
247
|
}[];
|
|
248
248
|
type: "action";
|
|
249
|
-
name: string;
|
|
250
249
|
id: string;
|
|
250
|
+
name: string;
|
|
251
251
|
instanceId: string;
|
|
252
252
|
required?: boolean | undefined;
|
|
253
253
|
}>]>;
|
|
@@ -262,15 +262,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
value: number;
|
|
264
264
|
type: "number";
|
|
265
|
-
name: string;
|
|
266
265
|
id: string;
|
|
266
|
+
name: string;
|
|
267
267
|
instanceId: string;
|
|
268
268
|
required?: boolean | undefined;
|
|
269
269
|
}, {
|
|
270
270
|
value: number;
|
|
271
271
|
type: "number";
|
|
272
|
-
name: string;
|
|
273
272
|
id: string;
|
|
273
|
+
name: string;
|
|
274
274
|
instanceId: string;
|
|
275
275
|
required?: boolean | undefined;
|
|
276
276
|
}>, z.ZodObject<{
|
|
@@ -283,15 +283,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
283
283
|
}, "strip", z.ZodTypeAny, {
|
|
284
284
|
value: string;
|
|
285
285
|
type: "string";
|
|
286
|
-
name: string;
|
|
287
286
|
id: string;
|
|
287
|
+
name: string;
|
|
288
288
|
instanceId: string;
|
|
289
289
|
required?: boolean | undefined;
|
|
290
290
|
}, {
|
|
291
291
|
value: string;
|
|
292
292
|
type: "string";
|
|
293
|
-
name: string;
|
|
294
293
|
id: string;
|
|
294
|
+
name: string;
|
|
295
295
|
instanceId: string;
|
|
296
296
|
required?: boolean | undefined;
|
|
297
297
|
}>, z.ZodObject<{
|
|
@@ -304,15 +304,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
304
304
|
}, "strip", z.ZodTypeAny, {
|
|
305
305
|
value: boolean;
|
|
306
306
|
type: "boolean";
|
|
307
|
-
name: string;
|
|
308
307
|
id: string;
|
|
308
|
+
name: string;
|
|
309
309
|
instanceId: string;
|
|
310
310
|
required?: boolean | undefined;
|
|
311
311
|
}, {
|
|
312
312
|
value: boolean;
|
|
313
313
|
type: "boolean";
|
|
314
|
-
name: string;
|
|
315
314
|
id: string;
|
|
315
|
+
name: string;
|
|
316
316
|
instanceId: string;
|
|
317
317
|
required?: boolean | undefined;
|
|
318
318
|
}>, z.ZodObject<{
|
|
@@ -324,15 +324,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
324
324
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
325
325
|
}, "strip", z.ZodTypeAny, {
|
|
326
326
|
type: "json";
|
|
327
|
-
name: string;
|
|
328
327
|
id: string;
|
|
328
|
+
name: string;
|
|
329
329
|
instanceId: string;
|
|
330
330
|
value?: unknown;
|
|
331
331
|
required?: boolean | undefined;
|
|
332
332
|
}, {
|
|
333
333
|
type: "json";
|
|
334
|
-
name: string;
|
|
335
334
|
id: string;
|
|
335
|
+
name: string;
|
|
336
336
|
instanceId: string;
|
|
337
337
|
value?: unknown;
|
|
338
338
|
required?: boolean | undefined;
|
|
@@ -346,15 +346,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
346
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
347
|
value: string;
|
|
348
348
|
type: "asset";
|
|
349
|
-
name: string;
|
|
350
349
|
id: string;
|
|
350
|
+
name: string;
|
|
351
351
|
instanceId: string;
|
|
352
352
|
required?: boolean | undefined;
|
|
353
353
|
}, {
|
|
354
354
|
value: string;
|
|
355
355
|
type: "asset";
|
|
356
|
-
name: string;
|
|
357
356
|
id: string;
|
|
357
|
+
name: string;
|
|
358
358
|
instanceId: string;
|
|
359
359
|
required?: boolean | undefined;
|
|
360
360
|
}>, z.ZodObject<{
|
|
@@ -382,8 +382,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
382
382
|
pageId: string;
|
|
383
383
|
} | undefined);
|
|
384
384
|
type: "page";
|
|
385
|
-
name: string;
|
|
386
385
|
id: string;
|
|
386
|
+
name: string;
|
|
387
387
|
instanceId: string;
|
|
388
388
|
required?: boolean | undefined;
|
|
389
389
|
}, {
|
|
@@ -395,8 +395,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
395
395
|
pageId: string;
|
|
396
396
|
} | undefined);
|
|
397
397
|
type: "page";
|
|
398
|
-
name: string;
|
|
399
398
|
id: string;
|
|
399
|
+
name: string;
|
|
400
400
|
instanceId: string;
|
|
401
401
|
required?: boolean | undefined;
|
|
402
402
|
}>, z.ZodObject<{
|
|
@@ -409,15 +409,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
409
409
|
}, "strip", z.ZodTypeAny, {
|
|
410
410
|
value: string[];
|
|
411
411
|
type: "string[]";
|
|
412
|
-
name: string;
|
|
413
412
|
id: string;
|
|
413
|
+
name: string;
|
|
414
414
|
instanceId: string;
|
|
415
415
|
required?: boolean | undefined;
|
|
416
416
|
}, {
|
|
417
417
|
value: string[];
|
|
418
418
|
type: "string[]";
|
|
419
|
-
name: string;
|
|
420
419
|
id: string;
|
|
420
|
+
name: string;
|
|
421
421
|
instanceId: string;
|
|
422
422
|
required?: boolean | undefined;
|
|
423
423
|
}>, z.ZodObject<{
|
|
@@ -430,15 +430,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
430
430
|
}, "strip", z.ZodTypeAny, {
|
|
431
431
|
value: string;
|
|
432
432
|
type: "parameter";
|
|
433
|
-
name: string;
|
|
434
433
|
id: string;
|
|
434
|
+
name: string;
|
|
435
435
|
instanceId: string;
|
|
436
436
|
required?: boolean | undefined;
|
|
437
437
|
}, {
|
|
438
438
|
value: string;
|
|
439
439
|
type: "parameter";
|
|
440
|
-
name: string;
|
|
441
440
|
id: string;
|
|
441
|
+
name: string;
|
|
442
442
|
instanceId: string;
|
|
443
443
|
required?: boolean | undefined;
|
|
444
444
|
}>, z.ZodObject<{
|
|
@@ -451,15 +451,15 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
451
451
|
}, "strip", z.ZodTypeAny, {
|
|
452
452
|
value: string;
|
|
453
453
|
type: "expression";
|
|
454
|
-
name: string;
|
|
455
454
|
id: string;
|
|
455
|
+
name: string;
|
|
456
456
|
instanceId: string;
|
|
457
457
|
required?: boolean | undefined;
|
|
458
458
|
}, {
|
|
459
459
|
value: string;
|
|
460
460
|
type: "expression";
|
|
461
|
-
name: string;
|
|
462
461
|
id: string;
|
|
462
|
+
name: string;
|
|
463
463
|
instanceId: string;
|
|
464
464
|
required?: boolean | undefined;
|
|
465
465
|
}>, z.ZodObject<{
|
|
@@ -488,8 +488,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
488
488
|
args: string[];
|
|
489
489
|
}[];
|
|
490
490
|
type: "action";
|
|
491
|
-
name: string;
|
|
492
491
|
id: string;
|
|
492
|
+
name: string;
|
|
493
493
|
instanceId: string;
|
|
494
494
|
required?: boolean | undefined;
|
|
495
495
|
}, {
|
|
@@ -499,8 +499,8 @@ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
|
499
499
|
args: string[];
|
|
500
500
|
}[];
|
|
501
501
|
type: "action";
|
|
502
|
-
name: string;
|
|
503
502
|
id: string;
|
|
503
|
+
name: string;
|
|
504
504
|
instanceId: string;
|
|
505
505
|
required?: boolean | undefined;
|
|
506
506
|
}>]>>;
|
|
@@ -16,9 +16,9 @@ export declare const Resource: z.ZodObject<{
|
|
|
16
16
|
}>, "many">;
|
|
17
17
|
body: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
19
|
id: string;
|
|
21
|
-
|
|
20
|
+
name: string;
|
|
21
|
+
method: "post" | "get" | "put" | "delete";
|
|
22
22
|
url: string;
|
|
23
23
|
headers: {
|
|
24
24
|
value: string;
|
|
@@ -26,9 +26,9 @@ export declare const Resource: z.ZodObject<{
|
|
|
26
26
|
}[];
|
|
27
27
|
body?: string | undefined;
|
|
28
28
|
}, {
|
|
29
|
-
name: string;
|
|
30
29
|
id: string;
|
|
31
|
-
|
|
30
|
+
name: string;
|
|
31
|
+
method: "post" | "get" | "put" | "delete";
|
|
32
32
|
url: string;
|
|
33
33
|
headers: {
|
|
34
34
|
value: string;
|
|
@@ -54,9 +54,9 @@ export declare const ResourceRequest: z.ZodObject<{
|
|
|
54
54
|
}>, "many">;
|
|
55
55
|
body: z.ZodOptional<z.ZodUnknown>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
name: string;
|
|
58
57
|
id: string;
|
|
59
|
-
|
|
58
|
+
name: string;
|
|
59
|
+
method: "post" | "get" | "put" | "delete";
|
|
60
60
|
url: string;
|
|
61
61
|
headers: {
|
|
62
62
|
value: string;
|
|
@@ -64,9 +64,9 @@ export declare const ResourceRequest: z.ZodObject<{
|
|
|
64
64
|
}[];
|
|
65
65
|
body?: unknown;
|
|
66
66
|
}, {
|
|
67
|
-
name: string;
|
|
68
67
|
id: string;
|
|
69
|
-
|
|
68
|
+
name: string;
|
|
69
|
+
method: "post" | "get" | "put" | "delete";
|
|
70
70
|
url: string;
|
|
71
71
|
headers: {
|
|
72
72
|
value: string;
|
|
@@ -92,9 +92,9 @@ export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
92
92
|
}>, "many">;
|
|
93
93
|
body: z.ZodOptional<z.ZodString>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
name: string;
|
|
96
95
|
id: string;
|
|
97
|
-
|
|
96
|
+
name: string;
|
|
97
|
+
method: "post" | "get" | "put" | "delete";
|
|
98
98
|
url: string;
|
|
99
99
|
headers: {
|
|
100
100
|
value: string;
|
|
@@ -102,9 +102,9 @@ export declare const Resources: z.ZodMap<z.ZodString, z.ZodObject<{
|
|
|
102
102
|
}[];
|
|
103
103
|
body?: string | undefined;
|
|
104
104
|
}, {
|
|
105
|
-
name: string;
|
|
106
105
|
id: string;
|
|
107
|
-
|
|
106
|
+
name: string;
|
|
107
|
+
method: "post" | "get" | "put" | "delete";
|
|
108
108
|
url: string;
|
|
109
109
|
headers: {
|
|
110
110
|
value: string;
|
|
@@ -5,12 +5,12 @@ declare const StyleSourceToken: z.ZodObject<{
|
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
7
|
type: "token";
|
|
8
|
-
name: string;
|
|
9
8
|
id: string;
|
|
9
|
+
name: string;
|
|
10
10
|
}, {
|
|
11
11
|
type: "token";
|
|
12
|
-
name: string;
|
|
13
12
|
id: string;
|
|
13
|
+
name: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type StyleSourceToken = z.infer<typeof StyleSourceToken>;
|
|
16
16
|
export declare const StyleSource: z.ZodUnion<[z.ZodObject<{
|
|
@@ -19,12 +19,12 @@ export declare const StyleSource: z.ZodUnion<[z.ZodObject<{
|
|
|
19
19
|
name: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
21
|
type: "token";
|
|
22
|
-
name: string;
|
|
23
22
|
id: string;
|
|
23
|
+
name: string;
|
|
24
24
|
}, {
|
|
25
25
|
type: "token";
|
|
26
|
-
name: string;
|
|
27
26
|
id: string;
|
|
27
|
+
name: string;
|
|
28
28
|
}>, z.ZodObject<{
|
|
29
29
|
type: z.ZodLiteral<"local">;
|
|
30
30
|
id: z.ZodString;
|
|
@@ -42,12 +42,12 @@ export declare const StyleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject
|
|
|
42
42
|
name: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
type: "token";
|
|
45
|
-
name: string;
|
|
46
45
|
id: string;
|
|
46
|
+
name: string;
|
|
47
47
|
}, {
|
|
48
48
|
type: "token";
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
51
|
}>, z.ZodObject<{
|
|
52
52
|
type: z.ZodLiteral<"local">;
|
|
53
53
|
id: z.ZodString;
|