@webstudio-is/sdk 0.264.0 → 0.266.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.
@@ -5,6 +5,8 @@ export type System = {
5
5
  pathname: string;
6
6
  origin: string;
7
7
  };
8
+ export declare const PageId: z.ZodString;
9
+ export declare const FolderId: z.ZodString;
8
10
  export declare const FolderName: z.ZodEffects<z.ZodString, string, string>;
9
11
  export declare const Folder: z.ZodObject<{
10
12
  id: z.ZodString;
@@ -30,7 +32,7 @@ export declare const HomePagePath: z.ZodEffects<z.ZodString, "", string>;
30
32
  export declare const OldPagePath: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
31
33
  export declare const PagePath: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
32
34
  declare const Page: z.ZodObject<{
33
- path: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
35
+ path: z.ZodUnion<[z.ZodEffects<z.ZodString, "", string>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>]>;
34
36
  id: z.ZodString;
35
37
  name: z.ZodEffects<z.ZodString, string, string>;
36
38
  title: z.ZodEffects<z.ZodString, string, string>;
@@ -197,7 +199,7 @@ export declare const CompilerSettings: z.ZodObject<{
197
199
  }>;
198
200
  export type CompilerSettings = z.infer<typeof CompilerSettings>;
199
201
  export type Page = z.infer<typeof Page>;
200
- export declare const Pages: z.ZodObject<{
202
+ export declare const Pages: z.ZodEffects<z.ZodObject<{
201
203
  meta: z.ZodOptional<z.ZodObject<{
202
204
  siteName: z.ZodOptional<z.ZodString>;
203
205
  contactEmail: z.ZodOptional<z.ZodString>;
@@ -234,135 +236,10 @@ export declare const Pages: z.ZodObject<{
234
236
  new: string;
235
237
  status?: "301" | "302" | undefined;
236
238
  }>, "many">>;
237
- homePage: z.ZodObject<{
238
- path: z.ZodEffects<z.ZodString, "", string>;
239
- id: z.ZodString;
240
- name: z.ZodEffects<z.ZodString, string, string>;
241
- title: z.ZodEffects<z.ZodString, string, string>;
242
- history: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
243
- rootInstanceId: z.ZodString;
244
- systemDataSourceId: z.ZodOptional<z.ZodString>;
245
- meta: z.ZodObject<{
246
- description: z.ZodOptional<z.ZodString>;
247
- title: z.ZodOptional<z.ZodString>;
248
- excludePageFromSearch: z.ZodOptional<z.ZodString>;
249
- language: z.ZodOptional<z.ZodString>;
250
- socialImageAssetId: z.ZodOptional<z.ZodString>;
251
- socialImageUrl: z.ZodOptional<z.ZodString>;
252
- status: z.ZodOptional<z.ZodString>;
253
- redirect: z.ZodOptional<z.ZodString>;
254
- documentType: z.ZodOptional<z.ZodEnum<["html", "xml"]>>;
255
- custom: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
- property: z.ZodString;
257
- content: z.ZodString;
258
- }, "strip", z.ZodTypeAny, {
259
- property: string;
260
- content: string;
261
- }, {
262
- property: string;
263
- content: string;
264
- }>, "many">>;
265
- }, "strip", z.ZodTypeAny, {
266
- status?: string | undefined;
267
- custom?: {
268
- property: string;
269
- content: string;
270
- }[] | undefined;
271
- description?: string | undefined;
272
- title?: string | undefined;
273
- excludePageFromSearch?: string | undefined;
274
- language?: string | undefined;
275
- socialImageAssetId?: string | undefined;
276
- socialImageUrl?: string | undefined;
277
- redirect?: string | undefined;
278
- documentType?: "html" | "xml" | undefined;
279
- }, {
280
- status?: string | undefined;
281
- custom?: {
282
- property: string;
283
- content: string;
284
- }[] | undefined;
285
- description?: string | undefined;
286
- title?: string | undefined;
287
- excludePageFromSearch?: string | undefined;
288
- language?: string | undefined;
289
- socialImageAssetId?: string | undefined;
290
- socialImageUrl?: string | undefined;
291
- redirect?: string | undefined;
292
- documentType?: "html" | "xml" | undefined;
293
- }>;
294
- marketplace: z.ZodOptional<z.ZodObject<{
295
- include: z.ZodOptional<z.ZodBoolean>;
296
- category: z.ZodOptional<z.ZodString>;
297
- thumbnailAssetId: z.ZodOptional<z.ZodString>;
298
- }, "strip", z.ZodTypeAny, {
299
- include?: boolean | undefined;
300
- category?: string | undefined;
301
- thumbnailAssetId?: string | undefined;
302
- }, {
303
- include?: boolean | undefined;
304
- category?: string | undefined;
305
- thumbnailAssetId?: string | undefined;
306
- }>>;
307
- }, "strip", z.ZodTypeAny, {
308
- path: "";
309
- name: string;
310
- meta: {
311
- status?: string | undefined;
312
- custom?: {
313
- property: string;
314
- content: string;
315
- }[] | undefined;
316
- description?: string | undefined;
317
- title?: string | undefined;
318
- excludePageFromSearch?: string | undefined;
319
- language?: string | undefined;
320
- socialImageAssetId?: string | undefined;
321
- socialImageUrl?: string | undefined;
322
- redirect?: string | undefined;
323
- documentType?: "html" | "xml" | undefined;
324
- };
325
- id: string;
326
- title: string;
327
- rootInstanceId: string;
328
- history?: string[] | undefined;
329
- systemDataSourceId?: string | undefined;
330
- marketplace?: {
331
- include?: boolean | undefined;
332
- category?: string | undefined;
333
- thumbnailAssetId?: string | undefined;
334
- } | undefined;
335
- }, {
336
- path: string;
337
- name: string;
338
- meta: {
339
- status?: string | undefined;
340
- custom?: {
341
- property: string;
342
- content: string;
343
- }[] | undefined;
344
- description?: string | undefined;
345
- title?: string | undefined;
346
- excludePageFromSearch?: string | undefined;
347
- language?: string | undefined;
348
- socialImageAssetId?: string | undefined;
349
- socialImageUrl?: string | undefined;
350
- redirect?: string | undefined;
351
- documentType?: "html" | "xml" | undefined;
352
- };
353
- id: string;
354
- title: string;
355
- rootInstanceId: string;
356
- history?: string[] | undefined;
357
- systemDataSourceId?: string | undefined;
358
- marketplace?: {
359
- include?: boolean | undefined;
360
- category?: string | undefined;
361
- thumbnailAssetId?: string | undefined;
362
- } | undefined;
363
- }>;
364
- pages: z.ZodArray<z.ZodObject<{
365
- path: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>;
239
+ homePageId: z.ZodString;
240
+ rootFolderId: z.ZodString;
241
+ pages: z.ZodMap<z.ZodString, z.ZodObject<{
242
+ path: z.ZodUnion<[z.ZodEffects<z.ZodString, "", string>, z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>, string, string>]>;
366
243
  id: z.ZodString;
367
244
  name: z.ZodEffects<z.ZodString, string, string>;
368
245
  title: z.ZodEffects<z.ZodString, string, string>;
@@ -487,8 +364,8 @@ export declare const Pages: z.ZodObject<{
487
364
  category?: string | undefined;
488
365
  thumbnailAssetId?: string | undefined;
489
366
  } | undefined;
490
- }>, "many">;
491
- folders: z.ZodEffects<z.ZodArray<z.ZodObject<{
367
+ }>>;
368
+ folders: z.ZodEffects<z.ZodMap<z.ZodString, z.ZodObject<{
492
369
  id: z.ZodString;
493
370
  name: z.ZodEffects<z.ZodString, string, string>;
494
371
  slug: z.ZodEffects<z.ZodString, string, string>;
@@ -503,20 +380,22 @@ export declare const Pages: z.ZodObject<{
503
380
  id: string;
504
381
  slug: string;
505
382
  children: string[];
506
- }>, "many">, {
383
+ }>>, Map<string, {
507
384
  name: string;
508
385
  id: string;
509
386
  slug: string;
510
387
  children: string[];
511
- }[], {
388
+ }>, Map<string, {
512
389
  name: string;
513
390
  id: string;
514
391
  slug: string;
515
392
  children: string[];
516
- }[]>;
393
+ }>>;
517
394
  }, "strip", z.ZodTypeAny, {
518
- homePage: {
519
- path: "";
395
+ homePageId: string;
396
+ rootFolderId: string;
397
+ pages: Map<string, {
398
+ path: string;
520
399
  name: string;
521
400
  meta: {
522
401
  status?: string | undefined;
@@ -543,8 +422,31 @@ export declare const Pages: z.ZodObject<{
543
422
  category?: string | undefined;
544
423
  thumbnailAssetId?: string | undefined;
545
424
  } | undefined;
546
- };
547
- pages: {
425
+ }>;
426
+ folders: Map<string, {
427
+ name: string;
428
+ id: string;
429
+ slug: string;
430
+ children: string[];
431
+ }>;
432
+ meta?: {
433
+ code?: string | undefined;
434
+ siteName?: string | undefined;
435
+ contactEmail?: string | undefined;
436
+ faviconAssetId?: string | undefined;
437
+ } | undefined;
438
+ compiler?: {
439
+ atomicStyles?: boolean | undefined;
440
+ } | undefined;
441
+ redirects?: {
442
+ old: string;
443
+ new: string;
444
+ status?: "301" | "302" | undefined;
445
+ }[] | undefined;
446
+ }, {
447
+ homePageId: string;
448
+ rootFolderId: string;
449
+ pages: Map<string, {
548
450
  path: string;
549
451
  name: string;
550
452
  meta: {
@@ -572,13 +474,13 @@ export declare const Pages: z.ZodObject<{
572
474
  category?: string | undefined;
573
475
  thumbnailAssetId?: string | undefined;
574
476
  } | undefined;
575
- }[];
576
- folders: {
477
+ }>;
478
+ folders: Map<string, {
577
479
  name: string;
578
480
  id: string;
579
481
  slug: string;
580
482
  children: string[];
581
- }[];
483
+ }>;
582
484
  meta?: {
583
485
  code?: string | undefined;
584
486
  siteName?: string | undefined;
@@ -593,8 +495,10 @@ export declare const Pages: z.ZodObject<{
593
495
  new: string;
594
496
  status?: "301" | "302" | undefined;
595
497
  }[] | undefined;
596
- }, {
597
- homePage: {
498
+ }>, {
499
+ homePageId: string;
500
+ rootFolderId: string;
501
+ pages: Map<string, {
598
502
  path: string;
599
503
  name: string;
600
504
  meta: {
@@ -622,8 +526,31 @@ export declare const Pages: z.ZodObject<{
622
526
  category?: string | undefined;
623
527
  thumbnailAssetId?: string | undefined;
624
528
  } | undefined;
625
- };
626
- pages: {
529
+ }>;
530
+ folders: Map<string, {
531
+ name: string;
532
+ id: string;
533
+ slug: string;
534
+ children: string[];
535
+ }>;
536
+ meta?: {
537
+ code?: string | undefined;
538
+ siteName?: string | undefined;
539
+ contactEmail?: string | undefined;
540
+ faviconAssetId?: string | undefined;
541
+ } | undefined;
542
+ compiler?: {
543
+ atomicStyles?: boolean | undefined;
544
+ } | undefined;
545
+ redirects?: {
546
+ old: string;
547
+ new: string;
548
+ status?: "301" | "302" | undefined;
549
+ }[] | undefined;
550
+ }, {
551
+ homePageId: string;
552
+ rootFolderId: string;
553
+ pages: Map<string, {
627
554
  path: string;
628
555
  name: string;
629
556
  meta: {
@@ -651,13 +578,13 @@ export declare const Pages: z.ZodObject<{
651
578
  category?: string | undefined;
652
579
  thumbnailAssetId?: string | undefined;
653
580
  } | undefined;
654
- }[];
655
- folders: {
581
+ }>;
582
+ folders: Map<string, {
656
583
  name: string;
657
584
  id: string;
658
585
  slug: string;
659
586
  children: string[];
660
- }[];
587
+ }>;
661
588
  meta?: {
662
589
  code?: string | undefined;
663
590
  siteName?: string | undefined;