@webstudio-is/protocol 0.272.0 → 0.273.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,2 +1,2 @@
1
1
  import { z } from "zod";
2
- export declare const createContractVersion: (schema: z.ZodTypeAny, version: string, additionalSchemas?: z.ZodTypeAny[]) => `bundle-${string}-${string}`;
2
+ export declare const createContractVersion: (schema: z.ZodTypeAny, additionalSchemas?: z.ZodTypeAny[]) => `bundle-${string}`;
@@ -1,20 +1,11 @@
1
- import { Page } from "@webstudio-is/sdk/schema";
2
1
  import { z } from "zod";
3
- export declare const assetFileDataPattern: RegExp;
4
- export declare const isAssetFileDataString: (value: string) => boolean;
2
+ export declare const maxProjectBundleSize: number;
3
+ export declare const stagedUploadPath = "/rest/staged-upload";
4
+ export declare const stagedUploadProjectIdHeader = "x-webstudio-project-id";
5
5
  export declare const isAssetFileName: (value: string) => boolean;
6
- export declare const assetFileDataSchema: z.ZodObject<{
7
- name: z.ZodString;
8
- data: z.ZodEffects<z.ZodString, string, string>;
9
- }, "strip", z.ZodTypeAny, {
10
- name: string;
11
- data: string;
12
- }, {
13
- name: string;
14
- data: string;
15
- }>;
16
- export type AssetFileData = z.infer<typeof assetFileDataSchema>;
17
- export declare const projectBundleSchema: z.ZodObject<{
6
+ export declare const getMissingImportedAssetFilesMessage: (assetNames: string[]) => string;
7
+ export declare const parseMissingImportedAssetFilesMessage: (error: unknown) => string[] | undefined;
8
+ export declare const projectBundle: z.ZodObject<{
18
9
  page: z.ZodObject<{
19
10
  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>]>;
20
11
  id: z.ZodString;
@@ -2703,7 +2694,7 @@ export declare const projectBundleSchema: z.ZodObject<{
2703
2694
  systemDataSourceId?: string | undefined;
2704
2695
  }> | undefined;
2705
2696
  }, "pages" | "pageTemplates" | "folders"> & {
2706
- pages: Page[];
2697
+ pages: import("@webstudio-is/sdk").Page[];
2707
2698
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
2708
2699
  folders: import("@webstudio-is/sdk").Folder[];
2709
2700
  };
@@ -3160,7 +3151,7 @@ export declare const projectBundleSchema: z.ZodObject<{
3160
3151
  systemDataSourceId?: string | undefined;
3161
3152
  }> | undefined;
3162
3153
  }, "pages" | "pageTemplates" | "folders"> & {
3163
- pages: Page[];
3154
+ pages: import("@webstudio-is/sdk").Page[];
3164
3155
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
3165
3156
  folders: import("@webstudio-is/sdk").Folder[];
3166
3157
  };
@@ -3334,8 +3325,8 @@ export declare const projectBundleSchema: z.ZodObject<{
3334
3325
  };
3335
3326
  origin?: string | undefined;
3336
3327
  }>;
3337
- export type ProjectBundle = z.infer<typeof projectBundleSchema>;
3338
- export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.extendShape<{
3328
+ export type ProjectBundle = z.infer<typeof projectBundle>;
3329
+ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShape<{
3339
3330
  page: z.ZodObject<{
3340
3331
  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>]>;
3341
3332
  id: z.ZodString;
@@ -6024,7 +6015,7 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
6024
6015
  systemDataSourceId?: string | undefined;
6025
6016
  }> | undefined;
6026
6017
  }, "pages" | "pageTemplates" | "folders"> & {
6027
- pages: Page[];
6018
+ pages: import("@webstudio-is/sdk").Page[];
6028
6019
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
6029
6020
  folders: import("@webstudio-is/sdk").Folder[];
6030
6021
  };
@@ -6493,7 +6484,7 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
6493
6484
  systemDataSourceId?: string | undefined;
6494
6485
  }> | undefined;
6495
6486
  }, "pages" | "pageTemplates" | "folders"> & {
6496
- pages: Page[];
6487
+ pages: import("@webstudio-is/sdk").Page[];
6497
6488
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
6498
6489
  folders: import("@webstudio-is/sdk").Folder[];
6499
6490
  };
@@ -6678,10 +6669,10 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
6678
6669
  email: string | null;
6679
6670
  } | undefined;
6680
6671
  }>;
6681
- export type PublishedProjectBundle = z.infer<typeof publishedProjectBundleSchema>;
6682
- export declare const importProjectBundleInputSchema: z.ZodObject<{
6672
+ export type PublishedProjectBundle = z.infer<typeof publishedProjectBundle>;
6673
+ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
6683
6674
  projectId: z.ZodString;
6684
- data: z.ZodObject<z.objectUtil.extendShape<{
6675
+ data: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
6685
6676
  page: z.ZodObject<{
6686
6677
  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>]>;
6687
6678
  id: z.ZodString;
@@ -9370,7 +9361,7 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
9370
9361
  systemDataSourceId?: string | undefined;
9371
9362
  }> | undefined;
9372
9363
  }, "pages" | "pageTemplates" | "folders"> & {
9373
- pages: Page[];
9364
+ pages: import("@webstudio-is/sdk").Page[];
9374
9365
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
9375
9366
  folders: import("@webstudio-is/sdk").Folder[];
9376
9367
  };
@@ -9839,7 +9830,7 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
9839
9830
  systemDataSourceId?: string | undefined;
9840
9831
  }> | undefined;
9841
9832
  }, "pages" | "pageTemplates" | "folders"> & {
9842
- pages: Page[];
9833
+ pages: import("@webstudio-is/sdk").Page[];
9843
9834
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
9844
9835
  folders: import("@webstudio-is/sdk").Folder[];
9845
9836
  };
@@ -10023,21 +10014,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
10023
10014
  user?: {
10024
10015
  email: string | null;
10025
10016
  } | undefined;
10026
- }>;
10027
- assetFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
10028
- name: z.ZodString;
10029
- data: z.ZodEffects<z.ZodString, string, string>;
10030
- }, "strip", z.ZodTypeAny, {
10031
- name: string;
10032
- data: string;
10033
- }, {
10034
- name: string;
10035
- data: string;
10036
- }>, "many">>;
10017
+ }>>;
10018
+ uploadId: z.ZodOptional<z.ZodString>;
10037
10019
  ignoreVersionCheck: z.ZodOptional<z.ZodBoolean>;
10038
10020
  }, "strip", z.ZodTypeAny, {
10039
10021
  projectId: string;
10040
- data: {
10022
+ data?: {
10041
10023
  projectDomain: string;
10042
10024
  pages: {
10043
10025
  path: string;
@@ -10267,7 +10249,7 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
10267
10249
  systemDataSourceId?: string | undefined;
10268
10250
  }> | undefined;
10269
10251
  }, "pages" | "pageTemplates" | "folders"> & {
10270
- pages: Page[];
10252
+ pages: import("@webstudio-is/sdk").Page[];
10271
10253
  pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
10272
10254
  folders: import("@webstudio-is/sdk").Folder[];
10273
10255
  };
@@ -10299,15 +10281,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
10299
10281
  user?: {
10300
10282
  email: string | null;
10301
10283
  } | undefined;
10302
- };
10303
- assetFiles?: {
10304
- name: string;
10305
- data: string;
10306
- }[] | undefined;
10284
+ } | undefined;
10285
+ uploadId?: string | undefined;
10307
10286
  ignoreVersionCheck?: boolean | undefined;
10308
10287
  }, {
10309
10288
  projectId: string;
10310
- data: {
10289
+ data?: {
10311
10290
  projectDomain: string;
10312
10291
  pages: {
10313
10292
  path: string;
@@ -10459,30 +10438,451 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
10459
10438
  user?: {
10460
10439
  email: string | null;
10461
10440
  } | undefined;
10462
- };
10463
- assetFiles?: {
10464
- name: string;
10465
- data: string;
10466
- }[] | undefined;
10441
+ } | undefined;
10442
+ uploadId?: string | undefined;
10443
+ ignoreVersionCheck?: boolean | undefined;
10444
+ }>, {
10445
+ projectId: string;
10446
+ data?: {
10447
+ projectDomain: string;
10448
+ pages: {
10449
+ path: string;
10450
+ name: string;
10451
+ meta: {
10452
+ status?: string | undefined;
10453
+ custom?: {
10454
+ content: string;
10455
+ property: string;
10456
+ }[] | undefined;
10457
+ description?: string | undefined;
10458
+ auth?: {
10459
+ method: "basic";
10460
+ login: string;
10461
+ password: string;
10462
+ } | {
10463
+ method: "basic";
10464
+ login: string;
10465
+ password: string;
10466
+ } | undefined;
10467
+ content?: string | undefined;
10468
+ title?: string | undefined;
10469
+ excludePageFromSearch?: string | undefined;
10470
+ language?: string | undefined;
10471
+ socialImageAssetId?: string | undefined;
10472
+ socialImageUrl?: string | undefined;
10473
+ redirect?: string | undefined;
10474
+ documentType?: "text" | "html" | "xml" | undefined;
10475
+ };
10476
+ id: string;
10477
+ title: string;
10478
+ rootInstanceId: string;
10479
+ history?: string[] | undefined;
10480
+ systemDataSourceId?: string | undefined;
10481
+ marketplace?: {
10482
+ include?: boolean | undefined;
10483
+ category?: string | undefined;
10484
+ thumbnailAssetId?: string | undefined;
10485
+ } | undefined;
10486
+ }[];
10487
+ page: {
10488
+ path: string;
10489
+ name: string;
10490
+ meta: {
10491
+ status?: string | undefined;
10492
+ custom?: {
10493
+ content: string;
10494
+ property: string;
10495
+ }[] | undefined;
10496
+ description?: string | undefined;
10497
+ auth?: {
10498
+ method: "basic";
10499
+ login: string;
10500
+ password: string;
10501
+ } | {
10502
+ method: "basic";
10503
+ login: string;
10504
+ password: string;
10505
+ } | undefined;
10506
+ content?: string | undefined;
10507
+ title?: string | undefined;
10508
+ excludePageFromSearch?: string | undefined;
10509
+ language?: string | undefined;
10510
+ socialImageAssetId?: string | undefined;
10511
+ socialImageUrl?: string | undefined;
10512
+ redirect?: string | undefined;
10513
+ documentType?: "text" | "html" | "xml" | undefined;
10514
+ };
10515
+ id: string;
10516
+ title: string;
10517
+ rootInstanceId: string;
10518
+ history?: string[] | undefined;
10519
+ systemDataSourceId?: string | undefined;
10520
+ marketplace?: {
10521
+ include?: boolean | undefined;
10522
+ category?: string | undefined;
10523
+ thumbnailAssetId?: string | undefined;
10524
+ } | undefined;
10525
+ };
10526
+ assets: ({
10527
+ type: "font";
10528
+ name: string;
10529
+ format: "ttf" | "woff" | "woff2";
10530
+ meta: {
10531
+ family: string;
10532
+ style: "normal" | "italic" | "oblique";
10533
+ weight: number;
10534
+ } | {
10535
+ family: string;
10536
+ variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
10537
+ default: number;
10538
+ name: string;
10539
+ min: number;
10540
+ max: number;
10541
+ }>>;
10542
+ };
10543
+ id: string;
10544
+ projectId: string;
10545
+ size: number;
10546
+ createdAt: string;
10547
+ filename?: string | undefined;
10548
+ description?: string | null | undefined;
10549
+ } | {
10550
+ type: "image";
10551
+ name: string;
10552
+ format: string;
10553
+ meta: {
10554
+ width: number;
10555
+ height: number;
10556
+ };
10557
+ id: string;
10558
+ projectId: string;
10559
+ size: number;
10560
+ createdAt: string;
10561
+ filename?: string | undefined;
10562
+ description?: string | null | undefined;
10563
+ } | {
10564
+ type: "file";
10565
+ name: string;
10566
+ format: string;
10567
+ meta: {};
10568
+ id: string;
10569
+ projectId: string;
10570
+ size: number;
10571
+ createdAt: string;
10572
+ filename?: string | undefined;
10573
+ description?: string | null | undefined;
10574
+ })[];
10575
+ build: {
10576
+ id: string;
10577
+ projectId: string;
10578
+ createdAt: string;
10579
+ version: number;
10580
+ pages: Omit<{
10581
+ pages: Map<string, {
10582
+ path: string;
10583
+ name: string;
10584
+ meta: {
10585
+ status?: string | undefined;
10586
+ custom?: {
10587
+ content: string;
10588
+ property: string;
10589
+ }[] | undefined;
10590
+ description?: string | undefined;
10591
+ auth?: {
10592
+ method: "basic";
10593
+ login: string;
10594
+ password: string;
10595
+ } | {
10596
+ method: "basic";
10597
+ login: string;
10598
+ password: string;
10599
+ } | undefined;
10600
+ content?: string | undefined;
10601
+ title?: string | undefined;
10602
+ excludePageFromSearch?: string | undefined;
10603
+ language?: string | undefined;
10604
+ socialImageAssetId?: string | undefined;
10605
+ socialImageUrl?: string | undefined;
10606
+ redirect?: string | undefined;
10607
+ documentType?: "text" | "html" | "xml" | undefined;
10608
+ };
10609
+ id: string;
10610
+ title: string;
10611
+ rootInstanceId: string;
10612
+ history?: string[] | undefined;
10613
+ systemDataSourceId?: string | undefined;
10614
+ marketplace?: {
10615
+ include?: boolean | undefined;
10616
+ category?: string | undefined;
10617
+ thumbnailAssetId?: string | undefined;
10618
+ } | undefined;
10619
+ }>;
10620
+ homePageId: string;
10621
+ rootFolderId: string;
10622
+ folders: Map<string, {
10623
+ name: string;
10624
+ id: string;
10625
+ children: string[];
10626
+ slug: string;
10627
+ }>;
10628
+ meta?: {
10629
+ code?: string | undefined;
10630
+ auth?: string | undefined;
10631
+ siteName?: string | undefined;
10632
+ contactEmail?: string | undefined;
10633
+ faviconAssetId?: string | undefined;
10634
+ } | undefined;
10635
+ compiler?: {
10636
+ atomicStyles?: boolean | undefined;
10637
+ } | undefined;
10638
+ redirects?: {
10639
+ old: string;
10640
+ new: string;
10641
+ status?: "301" | "302" | undefined;
10642
+ }[] | undefined;
10643
+ pageTemplates?: Map<string, {
10644
+ name: string;
10645
+ meta: {
10646
+ status?: string | undefined;
10647
+ custom?: {
10648
+ content: string;
10649
+ property: string;
10650
+ }[] | undefined;
10651
+ description?: string | undefined;
10652
+ auth?: {
10653
+ method: "basic";
10654
+ login: string;
10655
+ password: string;
10656
+ } | {
10657
+ method: "basic";
10658
+ login: string;
10659
+ password: string;
10660
+ } | undefined;
10661
+ content?: string | undefined;
10662
+ title?: string | undefined;
10663
+ excludePageFromSearch?: string | undefined;
10664
+ language?: string | undefined;
10665
+ socialImageAssetId?: string | undefined;
10666
+ socialImageUrl?: string | undefined;
10667
+ redirect?: string | undefined;
10668
+ documentType?: "text" | "html" | "xml" | undefined;
10669
+ };
10670
+ id: string;
10671
+ title: string;
10672
+ rootInstanceId: string;
10673
+ systemDataSourceId?: string | undefined;
10674
+ }> | undefined;
10675
+ }, "pages" | "pageTemplates" | "folders"> & {
10676
+ pages: import("@webstudio-is/sdk").Page[];
10677
+ pageTemplates?: import("@webstudio-is/sdk").PageTemplate[] | Record<import("@webstudio-is/sdk").PageTemplate["id"], import("@webstudio-is/sdk").PageTemplate>;
10678
+ folders: import("@webstudio-is/sdk").Folder[];
10679
+ };
10680
+ styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
10681
+ instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
10682
+ dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
10683
+ resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
10684
+ props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
10685
+ breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
10686
+ styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
10687
+ styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
10688
+ updatedAt: string;
10689
+ deployment?: {
10690
+ name: string;
10691
+ destination: "static";
10692
+ assetsDomain: string;
10693
+ templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
10694
+ } | {
10695
+ domains: string[];
10696
+ destination?: "saas" | undefined;
10697
+ assetsDomain?: string | undefined;
10698
+ projectDomain?: string | undefined;
10699
+ excludeWstdDomainFromSearch?: boolean | undefined;
10700
+ } | undefined;
10701
+ };
10702
+ projectTitle: string;
10703
+ origin?: string | undefined;
10704
+ bundleVersion?: string | number | undefined;
10705
+ user?: {
10706
+ email: string | null;
10707
+ } | undefined;
10708
+ } | undefined;
10709
+ uploadId?: string | undefined;
10710
+ ignoreVersionCheck?: boolean | undefined;
10711
+ }, {
10712
+ projectId: string;
10713
+ data?: {
10714
+ projectDomain: string;
10715
+ pages: {
10716
+ path: string;
10717
+ name: string;
10718
+ meta: {
10719
+ status?: string | undefined;
10720
+ custom?: {
10721
+ content: string;
10722
+ property: string;
10723
+ }[] | undefined;
10724
+ description?: string | undefined;
10725
+ auth?: {
10726
+ method: "basic";
10727
+ login: string;
10728
+ password: string;
10729
+ } | {
10730
+ type: "basic";
10731
+ login: string;
10732
+ password: string;
10733
+ } | undefined;
10734
+ content?: string | undefined;
10735
+ title?: string | undefined;
10736
+ excludePageFromSearch?: string | undefined;
10737
+ language?: string | undefined;
10738
+ socialImageAssetId?: string | undefined;
10739
+ socialImageUrl?: string | undefined;
10740
+ redirect?: string | undefined;
10741
+ documentType?: "text" | "html" | "xml" | undefined;
10742
+ };
10743
+ id: string;
10744
+ title: string;
10745
+ rootInstanceId: string;
10746
+ history?: string[] | undefined;
10747
+ systemDataSourceId?: string | undefined;
10748
+ marketplace?: {
10749
+ include?: boolean | undefined;
10750
+ category?: string | undefined;
10751
+ thumbnailAssetId?: string | undefined;
10752
+ } | undefined;
10753
+ }[];
10754
+ page: {
10755
+ path: string;
10756
+ name: string;
10757
+ meta: {
10758
+ status?: string | undefined;
10759
+ custom?: {
10760
+ content: string;
10761
+ property: string;
10762
+ }[] | undefined;
10763
+ description?: string | undefined;
10764
+ auth?: {
10765
+ method: "basic";
10766
+ login: string;
10767
+ password: string;
10768
+ } | {
10769
+ type: "basic";
10770
+ login: string;
10771
+ password: string;
10772
+ } | undefined;
10773
+ content?: string | undefined;
10774
+ title?: string | undefined;
10775
+ excludePageFromSearch?: string | undefined;
10776
+ language?: string | undefined;
10777
+ socialImageAssetId?: string | undefined;
10778
+ socialImageUrl?: string | undefined;
10779
+ redirect?: string | undefined;
10780
+ documentType?: "text" | "html" | "xml" | undefined;
10781
+ };
10782
+ id: string;
10783
+ title: string;
10784
+ rootInstanceId: string;
10785
+ history?: string[] | undefined;
10786
+ systemDataSourceId?: string | undefined;
10787
+ marketplace?: {
10788
+ include?: boolean | undefined;
10789
+ category?: string | undefined;
10790
+ thumbnailAssetId?: string | undefined;
10791
+ } | undefined;
10792
+ };
10793
+ assets: ({
10794
+ type: "font";
10795
+ name: string;
10796
+ format: "ttf" | "woff" | "woff2";
10797
+ meta: {
10798
+ family: string;
10799
+ style: "normal" | "italic" | "oblique";
10800
+ weight: number;
10801
+ } | {
10802
+ family: string;
10803
+ variationAxes: Partial<Record<"wght" | "wdth" | "slnt" | "opsz" | "ital" | "GRAD" | "XTRA" | "XOPQ" | "YOPQ" | "YTLC" | "YTUC" | "YTAS" | "YTDE" | "YTFI", {
10804
+ default: number;
10805
+ name: string;
10806
+ min: number;
10807
+ max: number;
10808
+ }>>;
10809
+ };
10810
+ id: string;
10811
+ projectId: string;
10812
+ size: number;
10813
+ createdAt: string;
10814
+ filename?: string | undefined;
10815
+ description?: string | null | undefined;
10816
+ } | {
10817
+ type: "image";
10818
+ name: string;
10819
+ format: string;
10820
+ meta: {
10821
+ width: number;
10822
+ height: number;
10823
+ };
10824
+ id: string;
10825
+ projectId: string;
10826
+ size: number;
10827
+ createdAt: string;
10828
+ filename?: string | undefined;
10829
+ description?: string | null | undefined;
10830
+ } | {
10831
+ type: "file";
10832
+ name: string;
10833
+ format: string;
10834
+ meta: {};
10835
+ id: string;
10836
+ projectId: string;
10837
+ size: number;
10838
+ createdAt: string;
10839
+ filename?: string | undefined;
10840
+ description?: string | null | undefined;
10841
+ })[];
10842
+ build: {
10843
+ id?: unknown;
10844
+ projectId?: unknown;
10845
+ createdAt?: unknown;
10846
+ version?: unknown;
10847
+ pages?: unknown;
10848
+ styles?: unknown;
10849
+ instances?: unknown;
10850
+ dataSources?: unknown;
10851
+ resources?: unknown;
10852
+ props?: unknown;
10853
+ breakpoints?: unknown;
10854
+ styleSourceSelections?: unknown;
10855
+ styleSources?: unknown;
10856
+ updatedAt?: unknown;
10857
+ deployment?: unknown;
10858
+ };
10859
+ projectTitle: string;
10860
+ origin?: string | undefined;
10861
+ bundleVersion?: string | number | undefined;
10862
+ user?: {
10863
+ email: string | null;
10864
+ } | undefined;
10865
+ } | undefined;
10866
+ uploadId?: string | undefined;
10467
10867
  ignoreVersionCheck?: boolean | undefined;
10468
10868
  }>;
10469
- export type ImportProjectBundleInput = z.infer<typeof importProjectBundleInputSchema>;
10470
- export declare const importProjectBundleResultSchema: z.ZodObject<{
10869
+ export type ImportProjectBundleInput = z.infer<typeof importProjectBundleInput>;
10870
+ export declare const importProjectBundleResult: z.ZodObject<{
10471
10871
  version: z.ZodNumber;
10472
10872
  }, "strip", z.ZodTypeAny, {
10473
10873
  version: number;
10474
10874
  }, {
10475
10875
  version: number;
10476
10876
  }>;
10477
- export type ImportProjectBundleResult = z.infer<typeof importProjectBundleResultSchema>;
10478
- export declare const checkProjectBuildPermissionInputSchema: z.ZodObject<{
10877
+ export type ImportProjectBundleResult = z.infer<typeof importProjectBundleResult>;
10878
+ export declare const checkProjectBuildPermissionInput: z.ZodObject<{
10479
10879
  projectId: z.ZodString;
10480
10880
  }, "strip", z.ZodTypeAny, {
10481
10881
  projectId: string;
10482
10882
  }, {
10483
10883
  projectId: string;
10484
10884
  }>;
10485
- export declare const bundleVersion: `bundle-${string}-${string}`;
10885
+ export declare const bundleVersion: `bundle-${string}`;
10486
10886
  export declare const getBundleVersion: (data: unknown) => string | number | undefined;
10487
10887
  export declare const getBundleVersionMismatchMessage: ({ ignoreVersionCheckHint, receivedVersion, }: {
10488
10888
  ignoreVersionCheckHint: string;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@webstudio-is/protocol",
3
- "version": "0.272.0",
3
+ "version": "0.273.0",
4
4
  "description": "Webstudio data exchange protocol contracts",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
7
7
  "type": "module",
8
8
  "dependencies": {
9
9
  "zod": "^3.24.2",
10
- "@webstudio-is/sdk": "0.272.0"
10
+ "@webstudio-is/sdk": "0.273.0"
11
11
  },
12
12
  "devDependencies": {
13
13
  "vitest": "^3.1.2",
14
14
  "@webstudio-is/project-build": "0.0.0",
15
- "@webstudio-is/wsauth": "0.272.0",
15
+ "@webstudio-is/wsauth": "0.273.0",
16
16
  "@webstudio-is/tsconfig": "1.0.7"
17
17
  },
18
18
  "exports": {