@webstudio-is/sdk 0.91.0 → 0.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,423 @@
1
+ import { z } from "zod";
2
+ export declare const Prop: z.ZodUnion<[z.ZodObject<{
3
+ type: z.ZodLiteral<"number">;
4
+ value: z.ZodNumber;
5
+ id: z.ZodString;
6
+ instanceId: z.ZodString;
7
+ name: z.ZodString;
8
+ required: z.ZodOptional<z.ZodBoolean>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ value: number;
11
+ type: "number";
12
+ name: string;
13
+ id: string;
14
+ instanceId: string;
15
+ required?: boolean | undefined;
16
+ }, {
17
+ value: number;
18
+ type: "number";
19
+ name: string;
20
+ id: string;
21
+ instanceId: string;
22
+ required?: boolean | undefined;
23
+ }>, z.ZodObject<{
24
+ type: z.ZodLiteral<"string">;
25
+ value: z.ZodString;
26
+ id: z.ZodString;
27
+ instanceId: z.ZodString;
28
+ name: z.ZodString;
29
+ required: z.ZodOptional<z.ZodBoolean>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ value: string;
32
+ type: "string";
33
+ name: string;
34
+ id: string;
35
+ instanceId: string;
36
+ required?: boolean | undefined;
37
+ }, {
38
+ value: string;
39
+ type: "string";
40
+ name: string;
41
+ id: string;
42
+ instanceId: string;
43
+ required?: boolean | undefined;
44
+ }>, z.ZodObject<{
45
+ type: z.ZodLiteral<"boolean">;
46
+ value: z.ZodBoolean;
47
+ id: z.ZodString;
48
+ instanceId: z.ZodString;
49
+ name: z.ZodString;
50
+ required: z.ZodOptional<z.ZodBoolean>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ value: boolean;
53
+ type: "boolean";
54
+ name: string;
55
+ id: string;
56
+ instanceId: string;
57
+ required?: boolean | undefined;
58
+ }, {
59
+ value: boolean;
60
+ type: "boolean";
61
+ name: string;
62
+ id: string;
63
+ instanceId: string;
64
+ required?: boolean | undefined;
65
+ }>, z.ZodObject<{
66
+ type: z.ZodLiteral<"asset">;
67
+ value: z.ZodString;
68
+ id: z.ZodString;
69
+ instanceId: z.ZodString;
70
+ name: z.ZodString;
71
+ required: z.ZodOptional<z.ZodBoolean>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ value: string;
74
+ type: "asset";
75
+ name: string;
76
+ id: string;
77
+ instanceId: string;
78
+ required?: boolean | undefined;
79
+ }, {
80
+ value: string;
81
+ type: "asset";
82
+ name: string;
83
+ id: string;
84
+ instanceId: string;
85
+ required?: boolean | undefined;
86
+ }>, z.ZodObject<{
87
+ type: z.ZodLiteral<"page">;
88
+ value: z.ZodUnion<[z.ZodString, z.ZodObject<{
89
+ pageId: z.ZodString;
90
+ instanceId: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ instanceId: string;
93
+ pageId: string;
94
+ }, {
95
+ instanceId: string;
96
+ pageId: string;
97
+ }>]>;
98
+ id: z.ZodString;
99
+ instanceId: z.ZodString;
100
+ name: z.ZodString;
101
+ required: z.ZodOptional<z.ZodBoolean>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ value: (string | {
104
+ instanceId: string;
105
+ pageId: string;
106
+ }) & (string | {
107
+ instanceId: string;
108
+ pageId: string;
109
+ } | undefined);
110
+ type: "page";
111
+ name: string;
112
+ id: string;
113
+ instanceId: string;
114
+ required?: boolean | undefined;
115
+ }, {
116
+ value: (string | {
117
+ instanceId: string;
118
+ pageId: string;
119
+ }) & (string | {
120
+ instanceId: string;
121
+ pageId: string;
122
+ } | undefined);
123
+ type: "page";
124
+ name: string;
125
+ id: string;
126
+ instanceId: string;
127
+ required?: boolean | undefined;
128
+ }>, z.ZodObject<{
129
+ type: z.ZodLiteral<"string[]">;
130
+ value: z.ZodArray<z.ZodString, "many">;
131
+ id: z.ZodString;
132
+ instanceId: z.ZodString;
133
+ name: z.ZodString;
134
+ required: z.ZodOptional<z.ZodBoolean>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ value: string[];
137
+ type: "string[]";
138
+ name: string;
139
+ id: string;
140
+ instanceId: string;
141
+ required?: boolean | undefined;
142
+ }, {
143
+ value: string[];
144
+ type: "string[]";
145
+ name: string;
146
+ id: string;
147
+ instanceId: string;
148
+ required?: boolean | undefined;
149
+ }>, z.ZodObject<{
150
+ type: z.ZodLiteral<"dataSource">;
151
+ value: z.ZodString;
152
+ id: z.ZodString;
153
+ instanceId: z.ZodString;
154
+ name: z.ZodString;
155
+ required: z.ZodOptional<z.ZodBoolean>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ value: string;
158
+ type: "dataSource";
159
+ name: string;
160
+ id: string;
161
+ instanceId: string;
162
+ required?: boolean | undefined;
163
+ }, {
164
+ value: string;
165
+ type: "dataSource";
166
+ name: string;
167
+ id: string;
168
+ instanceId: string;
169
+ required?: boolean | undefined;
170
+ }>, z.ZodObject<{
171
+ type: z.ZodLiteral<"action">;
172
+ value: z.ZodArray<z.ZodObject<{
173
+ type: z.ZodLiteral<"execute">;
174
+ args: z.ZodArray<z.ZodString, "many">;
175
+ code: z.ZodString;
176
+ }, "strip", z.ZodTypeAny, {
177
+ code: string;
178
+ type: "execute";
179
+ args: string[];
180
+ }, {
181
+ code: string;
182
+ type: "execute";
183
+ args: string[];
184
+ }>, "many">;
185
+ id: z.ZodString;
186
+ instanceId: z.ZodString;
187
+ name: z.ZodString;
188
+ required: z.ZodOptional<z.ZodBoolean>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ value: {
191
+ code: string;
192
+ type: "execute";
193
+ args: string[];
194
+ }[];
195
+ type: "action";
196
+ name: string;
197
+ id: string;
198
+ instanceId: string;
199
+ required?: boolean | undefined;
200
+ }, {
201
+ value: {
202
+ code: string;
203
+ type: "execute";
204
+ args: string[];
205
+ }[];
206
+ type: "action";
207
+ name: string;
208
+ id: string;
209
+ instanceId: string;
210
+ required?: boolean | undefined;
211
+ }>]>;
212
+ export type Prop = z.infer<typeof Prop>;
213
+ export declare const Props: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
214
+ type: z.ZodLiteral<"number">;
215
+ value: z.ZodNumber;
216
+ id: z.ZodString;
217
+ instanceId: z.ZodString;
218
+ name: z.ZodString;
219
+ required: z.ZodOptional<z.ZodBoolean>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ value: number;
222
+ type: "number";
223
+ name: string;
224
+ id: string;
225
+ instanceId: string;
226
+ required?: boolean | undefined;
227
+ }, {
228
+ value: number;
229
+ type: "number";
230
+ name: string;
231
+ id: string;
232
+ instanceId: string;
233
+ required?: boolean | undefined;
234
+ }>, z.ZodObject<{
235
+ type: z.ZodLiteral<"string">;
236
+ value: z.ZodString;
237
+ id: z.ZodString;
238
+ instanceId: z.ZodString;
239
+ name: z.ZodString;
240
+ required: z.ZodOptional<z.ZodBoolean>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ value: string;
243
+ type: "string";
244
+ name: string;
245
+ id: string;
246
+ instanceId: string;
247
+ required?: boolean | undefined;
248
+ }, {
249
+ value: string;
250
+ type: "string";
251
+ name: string;
252
+ id: string;
253
+ instanceId: string;
254
+ required?: boolean | undefined;
255
+ }>, z.ZodObject<{
256
+ type: z.ZodLiteral<"boolean">;
257
+ value: z.ZodBoolean;
258
+ id: z.ZodString;
259
+ instanceId: z.ZodString;
260
+ name: z.ZodString;
261
+ required: z.ZodOptional<z.ZodBoolean>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ value: boolean;
264
+ type: "boolean";
265
+ name: string;
266
+ id: string;
267
+ instanceId: string;
268
+ required?: boolean | undefined;
269
+ }, {
270
+ value: boolean;
271
+ type: "boolean";
272
+ name: string;
273
+ id: string;
274
+ instanceId: string;
275
+ required?: boolean | undefined;
276
+ }>, z.ZodObject<{
277
+ type: z.ZodLiteral<"asset">;
278
+ value: z.ZodString;
279
+ id: z.ZodString;
280
+ instanceId: z.ZodString;
281
+ name: z.ZodString;
282
+ required: z.ZodOptional<z.ZodBoolean>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ value: string;
285
+ type: "asset";
286
+ name: string;
287
+ id: string;
288
+ instanceId: string;
289
+ required?: boolean | undefined;
290
+ }, {
291
+ value: string;
292
+ type: "asset";
293
+ name: string;
294
+ id: string;
295
+ instanceId: string;
296
+ required?: boolean | undefined;
297
+ }>, z.ZodObject<{
298
+ type: z.ZodLiteral<"page">;
299
+ value: z.ZodUnion<[z.ZodString, z.ZodObject<{
300
+ pageId: z.ZodString;
301
+ instanceId: z.ZodString;
302
+ }, "strip", z.ZodTypeAny, {
303
+ instanceId: string;
304
+ pageId: string;
305
+ }, {
306
+ instanceId: string;
307
+ pageId: string;
308
+ }>]>;
309
+ id: z.ZodString;
310
+ instanceId: z.ZodString;
311
+ name: z.ZodString;
312
+ required: z.ZodOptional<z.ZodBoolean>;
313
+ }, "strip", z.ZodTypeAny, {
314
+ value: (string | {
315
+ instanceId: string;
316
+ pageId: string;
317
+ }) & (string | {
318
+ instanceId: string;
319
+ pageId: string;
320
+ } | undefined);
321
+ type: "page";
322
+ name: string;
323
+ id: string;
324
+ instanceId: string;
325
+ required?: boolean | undefined;
326
+ }, {
327
+ value: (string | {
328
+ instanceId: string;
329
+ pageId: string;
330
+ }) & (string | {
331
+ instanceId: string;
332
+ pageId: string;
333
+ } | undefined);
334
+ type: "page";
335
+ name: string;
336
+ id: string;
337
+ instanceId: string;
338
+ required?: boolean | undefined;
339
+ }>, z.ZodObject<{
340
+ type: z.ZodLiteral<"string[]">;
341
+ value: z.ZodArray<z.ZodString, "many">;
342
+ id: z.ZodString;
343
+ instanceId: z.ZodString;
344
+ name: z.ZodString;
345
+ required: z.ZodOptional<z.ZodBoolean>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ value: string[];
348
+ type: "string[]";
349
+ name: string;
350
+ id: string;
351
+ instanceId: string;
352
+ required?: boolean | undefined;
353
+ }, {
354
+ value: string[];
355
+ type: "string[]";
356
+ name: string;
357
+ id: string;
358
+ instanceId: string;
359
+ required?: boolean | undefined;
360
+ }>, z.ZodObject<{
361
+ type: z.ZodLiteral<"dataSource">;
362
+ value: z.ZodString;
363
+ id: z.ZodString;
364
+ instanceId: z.ZodString;
365
+ name: z.ZodString;
366
+ required: z.ZodOptional<z.ZodBoolean>;
367
+ }, "strip", z.ZodTypeAny, {
368
+ value: string;
369
+ type: "dataSource";
370
+ name: string;
371
+ id: string;
372
+ instanceId: string;
373
+ required?: boolean | undefined;
374
+ }, {
375
+ value: string;
376
+ type: "dataSource";
377
+ name: string;
378
+ id: string;
379
+ instanceId: string;
380
+ required?: boolean | undefined;
381
+ }>, z.ZodObject<{
382
+ type: z.ZodLiteral<"action">;
383
+ value: z.ZodArray<z.ZodObject<{
384
+ type: z.ZodLiteral<"execute">;
385
+ args: z.ZodArray<z.ZodString, "many">;
386
+ code: z.ZodString;
387
+ }, "strip", z.ZodTypeAny, {
388
+ code: string;
389
+ type: "execute";
390
+ args: string[];
391
+ }, {
392
+ code: string;
393
+ type: "execute";
394
+ args: string[];
395
+ }>, "many">;
396
+ id: z.ZodString;
397
+ instanceId: z.ZodString;
398
+ name: z.ZodString;
399
+ required: z.ZodOptional<z.ZodBoolean>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ value: {
402
+ code: string;
403
+ type: "execute";
404
+ args: string[];
405
+ }[];
406
+ type: "action";
407
+ name: string;
408
+ id: string;
409
+ instanceId: string;
410
+ required?: boolean | undefined;
411
+ }, {
412
+ value: {
413
+ code: string;
414
+ type: "execute";
415
+ args: string[];
416
+ }[];
417
+ type: "action";
418
+ name: string;
419
+ id: string;
420
+ instanceId: string;
421
+ required?: boolean | undefined;
422
+ }>]>>;
423
+ export type Props = z.infer<typeof Props>;
@@ -0,0 +1,23 @@
1
+ import { z } from "zod";
2
+ export declare const StyleSourceSelection: z.ZodObject<{
3
+ instanceId: z.ZodString;
4
+ values: z.ZodArray<z.ZodString, "many">;
5
+ }, "strip", z.ZodTypeAny, {
6
+ values: string[];
7
+ instanceId: string;
8
+ }, {
9
+ values: string[];
10
+ instanceId: string;
11
+ }>;
12
+ export type StyleSourceSelection = z.infer<typeof StyleSourceSelection>;
13
+ export declare const StyleSourceSelections: z.ZodMap<z.ZodString, z.ZodObject<{
14
+ instanceId: z.ZodString;
15
+ values: z.ZodArray<z.ZodString, "many">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ values: string[];
18
+ instanceId: string;
19
+ }, {
20
+ values: string[];
21
+ instanceId: string;
22
+ }>>;
23
+ export type StyleSourceSelections = z.infer<typeof StyleSourceSelections>;
@@ -0,0 +1,62 @@
1
+ import { z } from "zod";
2
+ declare const StyleSourceToken: z.ZodObject<{
3
+ type: z.ZodLiteral<"token">;
4
+ id: z.ZodString;
5
+ name: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "token";
8
+ name: string;
9
+ id: string;
10
+ }, {
11
+ type: "token";
12
+ name: string;
13
+ id: string;
14
+ }>;
15
+ export type StyleSourceToken = z.infer<typeof StyleSourceToken>;
16
+ export declare const StyleSource: z.ZodUnion<[z.ZodObject<{
17
+ type: z.ZodLiteral<"token">;
18
+ id: z.ZodString;
19
+ name: z.ZodString;
20
+ }, "strip", z.ZodTypeAny, {
21
+ type: "token";
22
+ name: string;
23
+ id: string;
24
+ }, {
25
+ type: "token";
26
+ name: string;
27
+ id: string;
28
+ }>, z.ZodObject<{
29
+ type: z.ZodLiteral<"local">;
30
+ id: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ type: "local";
33
+ id: string;
34
+ }, {
35
+ type: "local";
36
+ id: string;
37
+ }>]>;
38
+ export type StyleSource = z.infer<typeof StyleSource>;
39
+ export declare const StyleSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
40
+ type: z.ZodLiteral<"token">;
41
+ id: z.ZodString;
42
+ name: z.ZodString;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: "token";
45
+ name: string;
46
+ id: string;
47
+ }, {
48
+ type: "token";
49
+ name: string;
50
+ id: string;
51
+ }>, z.ZodObject<{
52
+ type: z.ZodLiteral<"local">;
53
+ id: z.ZodString;
54
+ }, "strip", z.ZodTypeAny, {
55
+ type: "local";
56
+ id: string;
57
+ }, {
58
+ type: "local";
59
+ id: string;
60
+ }>]>>;
61
+ export type StyleSources = z.infer<typeof StyleSources>;
62
+ export {};