@webstudio-is/sdk 0.274.5 → 0.276.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.
@@ -1,576 +1,223 @@
1
1
  import { z } from "zod";
2
- export declare const assetType: z.ZodEnum<["font", "image", "file"]>;
2
+ export declare const assetType: z.ZodEnum<{
3
+ file: "file";
4
+ font: "font";
5
+ image: "image";
6
+ }>;
3
7
  export type AssetType = z.infer<typeof assetType>;
4
8
  export declare const fontAsset: z.ZodObject<{
5
- format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
6
- meta: z.ZodUnion<[z.ZodObject<{
9
+ id: z.ZodString;
10
+ projectId: z.ZodString;
11
+ size: z.ZodNumber;
12
+ name: z.ZodString;
13
+ filename: z.ZodOptional<z.ZodString>;
14
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
15
+ createdAt: z.ZodString;
16
+ format: z.ZodUnion<readonly [z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
17
+ meta: z.ZodUnion<readonly [z.ZodObject<{
7
18
  family: z.ZodString;
8
- style: z.ZodEnum<["normal", "italic", "oblique"]>;
19
+ style: z.ZodEnum<{
20
+ italic: "italic";
21
+ normal: "normal";
22
+ oblique: "oblique";
23
+ }>;
9
24
  weight: z.ZodNumber;
10
- }, "strip", z.ZodTypeAny, {
11
- family: string;
12
- style: "normal" | "italic" | "oblique";
13
- weight: number;
14
- }, {
15
- family: string;
16
- style: "normal" | "italic" | "oblique";
17
- weight: number;
18
- }>, z.ZodObject<{
25
+ }, z.core.$strip>, z.ZodObject<{
19
26
  family: z.ZodString;
20
- variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
27
+ variationAxes: z.ZodRecord<z.ZodEnum<{
28
+ GRAD: "GRAD";
29
+ XOPQ: "XOPQ";
30
+ XTRA: "XTRA";
31
+ YOPQ: "YOPQ";
32
+ YTAS: "YTAS";
33
+ YTDE: "YTDE";
34
+ YTFI: "YTFI";
35
+ YTLC: "YTLC";
36
+ YTUC: "YTUC";
37
+ ital: "ital";
38
+ opsz: "opsz";
39
+ slnt: "slnt";
40
+ wdth: "wdth";
41
+ wght: "wght";
42
+ }> & z.core.$partial, z.ZodObject<{
21
43
  name: z.ZodString;
22
44
  min: z.ZodNumber;
23
45
  default: z.ZodNumber;
24
46
  max: z.ZodNumber;
25
- }, "strip", z.ZodTypeAny, {
26
- name: string;
27
- min: number;
28
- default: number;
29
- max: number;
30
- }, {
31
- name: string;
32
- min: number;
33
- default: number;
34
- max: number;
35
- }>>;
36
- }, "strip", z.ZodTypeAny, {
37
- family: string;
38
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
39
- name: string;
40
- min: number;
41
- default: number;
42
- max: number;
43
- }>>;
44
- }, {
45
- family: string;
46
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
47
- name: string;
48
- min: number;
49
- default: number;
50
- max: number;
51
- }>>;
52
- }>]>;
47
+ }, z.core.$strip>>;
48
+ }, z.core.$strip>]>;
53
49
  type: z.ZodLiteral<"font">;
54
- id: z.ZodString;
55
- projectId: z.ZodString;
56
- size: z.ZodNumber;
57
- name: z.ZodString;
58
- filename: z.ZodOptional<z.ZodString>;
59
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
60
- createdAt: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- type: "font";
63
- name: string;
64
- format: "ttf" | "woff" | "woff2";
65
- meta: {
66
- family: string;
67
- style: "normal" | "italic" | "oblique";
68
- weight: number;
69
- } | {
70
- family: string;
71
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
72
- name: string;
73
- min: number;
74
- default: number;
75
- max: number;
76
- }>>;
77
- };
78
- id: string;
79
- projectId: string;
80
- size: number;
81
- createdAt: string;
82
- filename?: string | undefined;
83
- description?: string | null | undefined;
84
- }, {
85
- type: "font";
86
- name: string;
87
- format: "ttf" | "woff" | "woff2";
88
- meta: {
89
- family: string;
90
- style: "normal" | "italic" | "oblique";
91
- weight: number;
92
- } | {
93
- family: string;
94
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
95
- name: string;
96
- min: number;
97
- default: number;
98
- max: number;
99
- }>>;
100
- };
101
- id: string;
102
- projectId: string;
103
- size: number;
104
- createdAt: string;
105
- filename?: string | undefined;
106
- description?: string | null | undefined;
107
- }>;
50
+ }, z.core.$strip>;
108
51
  export type FontAsset = z.infer<typeof fontAsset>;
109
52
  export declare const imageMeta: z.ZodObject<{
110
53
  width: z.ZodNumber;
111
54
  height: z.ZodNumber;
112
- }, "strip", z.ZodTypeAny, {
113
- width: number;
114
- height: number;
115
- }, {
116
- width: number;
117
- height: number;
118
- }>;
55
+ }, z.core.$strip>;
119
56
  export type ImageMeta = z.infer<typeof imageMeta>;
120
57
  export declare const imageAsset: z.ZodObject<{
58
+ id: z.ZodString;
59
+ projectId: z.ZodString;
60
+ size: z.ZodNumber;
61
+ name: z.ZodString;
62
+ filename: z.ZodOptional<z.ZodString>;
63
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
64
+ createdAt: z.ZodString;
121
65
  format: z.ZodString;
122
66
  meta: z.ZodObject<{
123
67
  width: z.ZodNumber;
124
68
  height: z.ZodNumber;
125
- }, "strip", z.ZodTypeAny, {
126
- width: number;
127
- height: number;
128
- }, {
129
- width: number;
130
- height: number;
131
- }>;
69
+ }, z.core.$strip>;
132
70
  type: z.ZodLiteral<"image">;
71
+ }, z.core.$strip>;
72
+ export type ImageAsset = z.infer<typeof imageAsset>;
73
+ export declare const fileAsset: z.ZodObject<{
133
74
  id: z.ZodString;
134
75
  projectId: z.ZodString;
135
76
  size: z.ZodNumber;
136
77
  name: z.ZodString;
137
78
  filename: z.ZodOptional<z.ZodString>;
138
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
79
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
139
80
  createdAt: z.ZodString;
140
- }, "strip", z.ZodTypeAny, {
141
- type: "image";
142
- name: string;
143
- format: string;
144
- meta: {
145
- width: number;
146
- height: number;
147
- };
148
- id: string;
149
- projectId: string;
150
- size: number;
151
- createdAt: string;
152
- filename?: string | undefined;
153
- description?: string | null | undefined;
154
- }, {
155
- type: "image";
156
- name: string;
157
- format: string;
158
- meta: {
159
- width: number;
160
- height: number;
161
- };
162
- id: string;
163
- projectId: string;
164
- size: number;
165
- createdAt: string;
166
- filename?: string | undefined;
167
- description?: string | null | undefined;
168
- }>;
169
- export type ImageAsset = z.infer<typeof imageAsset>;
170
- export declare const fileAsset: z.ZodObject<{
171
81
  format: z.ZodString;
172
- meta: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
82
+ meta: z.ZodObject<{}, z.core.$strip>;
173
83
  type: z.ZodLiteral<"file">;
84
+ }, z.core.$strip>;
85
+ export type FileAsset = z.infer<typeof fileAsset>;
86
+ export declare const asset: z.ZodUnion<readonly [z.ZodObject<{
174
87
  id: z.ZodString;
175
88
  projectId: z.ZodString;
176
89
  size: z.ZodNumber;
177
90
  name: z.ZodString;
178
91
  filename: z.ZodOptional<z.ZodString>;
179
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
92
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
180
93
  createdAt: z.ZodString;
181
- }, "strip", z.ZodTypeAny, {
182
- type: "file";
183
- name: string;
184
- format: string;
185
- meta: {};
186
- id: string;
187
- projectId: string;
188
- size: number;
189
- createdAt: string;
190
- filename?: string | undefined;
191
- description?: string | null | undefined;
192
- }, {
193
- type: "file";
194
- name: string;
195
- format: string;
196
- meta: {};
197
- id: string;
198
- projectId: string;
199
- size: number;
200
- createdAt: string;
201
- filename?: string | undefined;
202
- description?: string | null | undefined;
203
- }>;
204
- export type FileAsset = z.infer<typeof fileAsset>;
205
- export declare const asset: z.ZodUnion<[z.ZodObject<{
206
- format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
207
- meta: z.ZodUnion<[z.ZodObject<{
94
+ format: z.ZodUnion<readonly [z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
95
+ meta: z.ZodUnion<readonly [z.ZodObject<{
208
96
  family: z.ZodString;
209
- style: z.ZodEnum<["normal", "italic", "oblique"]>;
97
+ style: z.ZodEnum<{
98
+ italic: "italic";
99
+ normal: "normal";
100
+ oblique: "oblique";
101
+ }>;
210
102
  weight: z.ZodNumber;
211
- }, "strip", z.ZodTypeAny, {
212
- family: string;
213
- style: "normal" | "italic" | "oblique";
214
- weight: number;
215
- }, {
216
- family: string;
217
- style: "normal" | "italic" | "oblique";
218
- weight: number;
219
- }>, z.ZodObject<{
103
+ }, z.core.$strip>, z.ZodObject<{
220
104
  family: z.ZodString;
221
- variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
105
+ variationAxes: z.ZodRecord<z.ZodEnum<{
106
+ GRAD: "GRAD";
107
+ XOPQ: "XOPQ";
108
+ XTRA: "XTRA";
109
+ YOPQ: "YOPQ";
110
+ YTAS: "YTAS";
111
+ YTDE: "YTDE";
112
+ YTFI: "YTFI";
113
+ YTLC: "YTLC";
114
+ YTUC: "YTUC";
115
+ ital: "ital";
116
+ opsz: "opsz";
117
+ slnt: "slnt";
118
+ wdth: "wdth";
119
+ wght: "wght";
120
+ }> & z.core.$partial, z.ZodObject<{
222
121
  name: z.ZodString;
223
122
  min: z.ZodNumber;
224
123
  default: z.ZodNumber;
225
124
  max: z.ZodNumber;
226
- }, "strip", z.ZodTypeAny, {
227
- name: string;
228
- min: number;
229
- default: number;
230
- max: number;
231
- }, {
232
- name: string;
233
- min: number;
234
- default: number;
235
- max: number;
236
- }>>;
237
- }, "strip", z.ZodTypeAny, {
238
- family: string;
239
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
240
- name: string;
241
- min: number;
242
- default: number;
243
- max: number;
244
- }>>;
245
- }, {
246
- family: string;
247
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
248
- name: string;
249
- min: number;
250
- default: number;
251
- max: number;
252
- }>>;
253
- }>]>;
125
+ }, z.core.$strip>>;
126
+ }, z.core.$strip>]>;
254
127
  type: z.ZodLiteral<"font">;
128
+ }, z.core.$strip>, z.ZodObject<{
255
129
  id: z.ZodString;
256
130
  projectId: z.ZodString;
257
131
  size: z.ZodNumber;
258
132
  name: z.ZodString;
259
133
  filename: z.ZodOptional<z.ZodString>;
260
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
134
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
261
135
  createdAt: z.ZodString;
262
- }, "strip", z.ZodTypeAny, {
263
- type: "font";
264
- name: string;
265
- format: "ttf" | "woff" | "woff2";
266
- meta: {
267
- family: string;
268
- style: "normal" | "italic" | "oblique";
269
- weight: number;
270
- } | {
271
- family: string;
272
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
273
- name: string;
274
- min: number;
275
- default: number;
276
- max: number;
277
- }>>;
278
- };
279
- id: string;
280
- projectId: string;
281
- size: number;
282
- createdAt: string;
283
- filename?: string | undefined;
284
- description?: string | null | undefined;
285
- }, {
286
- type: "font";
287
- name: string;
288
- format: "ttf" | "woff" | "woff2";
289
- meta: {
290
- family: string;
291
- style: "normal" | "italic" | "oblique";
292
- weight: number;
293
- } | {
294
- family: string;
295
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
296
- name: string;
297
- min: number;
298
- default: number;
299
- max: number;
300
- }>>;
301
- };
302
- id: string;
303
- projectId: string;
304
- size: number;
305
- createdAt: string;
306
- filename?: string | undefined;
307
- description?: string | null | undefined;
308
- }>, z.ZodObject<{
309
136
  format: z.ZodString;
310
137
  meta: z.ZodObject<{
311
138
  width: z.ZodNumber;
312
139
  height: z.ZodNumber;
313
- }, "strip", z.ZodTypeAny, {
314
- width: number;
315
- height: number;
316
- }, {
317
- width: number;
318
- height: number;
319
- }>;
140
+ }, z.core.$strip>;
320
141
  type: z.ZodLiteral<"image">;
142
+ }, z.core.$strip>, z.ZodObject<{
321
143
  id: z.ZodString;
322
144
  projectId: z.ZodString;
323
145
  size: z.ZodNumber;
324
146
  name: z.ZodString;
325
147
  filename: z.ZodOptional<z.ZodString>;
326
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
148
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
327
149
  createdAt: z.ZodString;
328
- }, "strip", z.ZodTypeAny, {
329
- type: "image";
330
- name: string;
331
- format: string;
332
- meta: {
333
- width: number;
334
- height: number;
335
- };
336
- id: string;
337
- projectId: string;
338
- size: number;
339
- createdAt: string;
340
- filename?: string | undefined;
341
- description?: string | null | undefined;
342
- }, {
343
- type: "image";
344
- name: string;
345
- format: string;
346
- meta: {
347
- width: number;
348
- height: number;
349
- };
350
- id: string;
351
- projectId: string;
352
- size: number;
353
- createdAt: string;
354
- filename?: string | undefined;
355
- description?: string | null | undefined;
356
- }>, z.ZodObject<{
357
150
  format: z.ZodString;
358
- meta: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
151
+ meta: z.ZodObject<{}, z.core.$strip>;
359
152
  type: z.ZodLiteral<"file">;
153
+ }, z.core.$strip>]>;
154
+ export type Asset = z.infer<typeof asset>;
155
+ export declare const assets: z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
360
156
  id: z.ZodString;
361
157
  projectId: z.ZodString;
362
158
  size: z.ZodNumber;
363
159
  name: z.ZodString;
364
160
  filename: z.ZodOptional<z.ZodString>;
365
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
161
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
366
162
  createdAt: z.ZodString;
367
- }, "strip", z.ZodTypeAny, {
368
- type: "file";
369
- name: string;
370
- format: string;
371
- meta: {};
372
- id: string;
373
- projectId: string;
374
- size: number;
375
- createdAt: string;
376
- filename?: string | undefined;
377
- description?: string | null | undefined;
378
- }, {
379
- type: "file";
380
- name: string;
381
- format: string;
382
- meta: {};
383
- id: string;
384
- projectId: string;
385
- size: number;
386
- createdAt: string;
387
- filename?: string | undefined;
388
- description?: string | null | undefined;
389
- }>]>;
390
- export type Asset = z.infer<typeof asset>;
391
- export declare const assets: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
392
- format: z.ZodUnion<[z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
393
- meta: z.ZodUnion<[z.ZodObject<{
163
+ format: z.ZodUnion<readonly [z.ZodLiteral<"ttf">, z.ZodLiteral<"woff">, z.ZodLiteral<"woff2">]>;
164
+ meta: z.ZodUnion<readonly [z.ZodObject<{
394
165
  family: z.ZodString;
395
- style: z.ZodEnum<["normal", "italic", "oblique"]>;
166
+ style: z.ZodEnum<{
167
+ italic: "italic";
168
+ normal: "normal";
169
+ oblique: "oblique";
170
+ }>;
396
171
  weight: z.ZodNumber;
397
- }, "strip", z.ZodTypeAny, {
398
- family: string;
399
- style: "normal" | "italic" | "oblique";
400
- weight: number;
401
- }, {
402
- family: string;
403
- style: "normal" | "italic" | "oblique";
404
- weight: number;
405
- }>, z.ZodObject<{
172
+ }, z.core.$strip>, z.ZodObject<{
406
173
  family: z.ZodString;
407
- variationAxes: z.ZodRecord<z.ZodEnum<["wght", "wdth", "slnt", "opsz", "ital", "GRAD", "XTRA", "XOPQ", "YOPQ", "YTLC", "YTUC", "YTAS", "YTDE", "YTFI"]>, z.ZodObject<{
174
+ variationAxes: z.ZodRecord<z.ZodEnum<{
175
+ GRAD: "GRAD";
176
+ XOPQ: "XOPQ";
177
+ XTRA: "XTRA";
178
+ YOPQ: "YOPQ";
179
+ YTAS: "YTAS";
180
+ YTDE: "YTDE";
181
+ YTFI: "YTFI";
182
+ YTLC: "YTLC";
183
+ YTUC: "YTUC";
184
+ ital: "ital";
185
+ opsz: "opsz";
186
+ slnt: "slnt";
187
+ wdth: "wdth";
188
+ wght: "wght";
189
+ }> & z.core.$partial, z.ZodObject<{
408
190
  name: z.ZodString;
409
191
  min: z.ZodNumber;
410
192
  default: z.ZodNumber;
411
193
  max: z.ZodNumber;
412
- }, "strip", z.ZodTypeAny, {
413
- name: string;
414
- min: number;
415
- default: number;
416
- max: number;
417
- }, {
418
- name: string;
419
- min: number;
420
- default: number;
421
- max: number;
422
- }>>;
423
- }, "strip", z.ZodTypeAny, {
424
- family: string;
425
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
426
- name: string;
427
- min: number;
428
- default: number;
429
- max: number;
430
- }>>;
431
- }, {
432
- family: string;
433
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
434
- name: string;
435
- min: number;
436
- default: number;
437
- max: number;
438
- }>>;
439
- }>]>;
194
+ }, z.core.$strip>>;
195
+ }, z.core.$strip>]>;
440
196
  type: z.ZodLiteral<"font">;
197
+ }, z.core.$strip>, z.ZodObject<{
441
198
  id: z.ZodString;
442
199
  projectId: z.ZodString;
443
200
  size: z.ZodNumber;
444
201
  name: z.ZodString;
445
202
  filename: z.ZodOptional<z.ZodString>;
446
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
203
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
447
204
  createdAt: z.ZodString;
448
- }, "strip", z.ZodTypeAny, {
449
- type: "font";
450
- name: string;
451
- format: "ttf" | "woff" | "woff2";
452
- meta: {
453
- family: string;
454
- style: "normal" | "italic" | "oblique";
455
- weight: number;
456
- } | {
457
- family: string;
458
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
459
- name: string;
460
- min: number;
461
- default: number;
462
- max: number;
463
- }>>;
464
- };
465
- id: string;
466
- projectId: string;
467
- size: number;
468
- createdAt: string;
469
- filename?: string | undefined;
470
- description?: string | null | undefined;
471
- }, {
472
- type: "font";
473
- name: string;
474
- format: "ttf" | "woff" | "woff2";
475
- meta: {
476
- family: string;
477
- style: "normal" | "italic" | "oblique";
478
- weight: number;
479
- } | {
480
- family: string;
481
- variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
482
- name: string;
483
- min: number;
484
- default: number;
485
- max: number;
486
- }>>;
487
- };
488
- id: string;
489
- projectId: string;
490
- size: number;
491
- createdAt: string;
492
- filename?: string | undefined;
493
- description?: string | null | undefined;
494
- }>, z.ZodObject<{
495
205
  format: z.ZodString;
496
206
  meta: z.ZodObject<{
497
207
  width: z.ZodNumber;
498
208
  height: z.ZodNumber;
499
- }, "strip", z.ZodTypeAny, {
500
- width: number;
501
- height: number;
502
- }, {
503
- width: number;
504
- height: number;
505
- }>;
209
+ }, z.core.$strip>;
506
210
  type: z.ZodLiteral<"image">;
211
+ }, z.core.$strip>, z.ZodObject<{
507
212
  id: z.ZodString;
508
213
  projectId: z.ZodString;
509
214
  size: z.ZodNumber;
510
215
  name: z.ZodString;
511
216
  filename: z.ZodOptional<z.ZodString>;
512
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
217
+ description: z.ZodUnion<readonly [z.ZodOptional<z.ZodString>, z.ZodNull]>;
513
218
  createdAt: z.ZodString;
514
- }, "strip", z.ZodTypeAny, {
515
- type: "image";
516
- name: string;
517
- format: string;
518
- meta: {
519
- width: number;
520
- height: number;
521
- };
522
- id: string;
523
- projectId: string;
524
- size: number;
525
- createdAt: string;
526
- filename?: string | undefined;
527
- description?: string | null | undefined;
528
- }, {
529
- type: "image";
530
- name: string;
531
- format: string;
532
- meta: {
533
- width: number;
534
- height: number;
535
- };
536
- id: string;
537
- projectId: string;
538
- size: number;
539
- createdAt: string;
540
- filename?: string | undefined;
541
- description?: string | null | undefined;
542
- }>, z.ZodObject<{
543
219
  format: z.ZodString;
544
- meta: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
220
+ meta: z.ZodObject<{}, z.core.$strip>;
545
221
  type: z.ZodLiteral<"file">;
546
- id: z.ZodString;
547
- projectId: z.ZodString;
548
- size: z.ZodNumber;
549
- name: z.ZodString;
550
- filename: z.ZodOptional<z.ZodString>;
551
- description: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodNull]>;
552
- createdAt: z.ZodString;
553
- }, "strip", z.ZodTypeAny, {
554
- type: "file";
555
- name: string;
556
- format: string;
557
- meta: {};
558
- id: string;
559
- projectId: string;
560
- size: number;
561
- createdAt: string;
562
- filename?: string | undefined;
563
- description?: string | null | undefined;
564
- }, {
565
- type: "file";
566
- name: string;
567
- format: string;
568
- meta: {};
569
- id: string;
570
- projectId: string;
571
- size: number;
572
- createdAt: string;
573
- filename?: string | undefined;
574
- description?: string | null | undefined;
575
- }>]>>;
222
+ }, z.core.$strip>]>>;
576
223
  export type Assets = z.infer<typeof assets>;