@webstudio-is/protocol 0.272.0 → 0.274.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/fixtures.js +343 -384
- package/lib/index.js +2027 -377
- package/lib/types/builder-api/errors.d.ts +4 -0
- package/lib/types/builder-api/operation-docs.d.ts +7 -0
- package/lib/types/builder-api/operations.d.ts +506 -0
- package/lib/types/builder-api/runtime-contracts.d.ts +11 -0
- package/lib/types/builder-api/url.d.ts +7 -0
- package/lib/types/contract-version.d.ts +1 -1
- package/lib/types/index.d.ts +5 -0
- package/lib/types/schema.d.ts +714 -290
- package/package.json +3 -3
package/lib/types/schema.d.ts
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import { Page } from "@webstudio-is/sdk/schema";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
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
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
|
@@ -1081,55 +1072,6 @@ export declare const projectBundleSchema: z.ZodObject<{
|
|
|
1081
1072
|
label?: string | undefined;
|
|
1082
1073
|
tag?: string | undefined;
|
|
1083
1074
|
}][], z.ZodTypeDef, unknown>;
|
|
1084
|
-
dataSources: z.ZodType<[string, {
|
|
1085
|
-
value: {
|
|
1086
|
-
value: number;
|
|
1087
|
-
type: "number";
|
|
1088
|
-
} | {
|
|
1089
|
-
value: string;
|
|
1090
|
-
type: "string";
|
|
1091
|
-
} | {
|
|
1092
|
-
value: boolean;
|
|
1093
|
-
type: "boolean";
|
|
1094
|
-
} | {
|
|
1095
|
-
value: string[];
|
|
1096
|
-
type: "string[]";
|
|
1097
|
-
} | {
|
|
1098
|
-
type: "json";
|
|
1099
|
-
value?: unknown;
|
|
1100
|
-
};
|
|
1101
|
-
type: "variable";
|
|
1102
|
-
name: string;
|
|
1103
|
-
id: string;
|
|
1104
|
-
scopeInstanceId?: string | undefined;
|
|
1105
|
-
} | {
|
|
1106
|
-
type: "parameter";
|
|
1107
|
-
name: string;
|
|
1108
|
-
id: string;
|
|
1109
|
-
scopeInstanceId?: string | undefined;
|
|
1110
|
-
} | {
|
|
1111
|
-
type: "resource";
|
|
1112
|
-
name: string;
|
|
1113
|
-
id: string;
|
|
1114
|
-
resourceId: string;
|
|
1115
|
-
scopeInstanceId?: string | undefined;
|
|
1116
|
-
}][], z.ZodTypeDef, unknown>;
|
|
1117
|
-
resources: z.ZodType<[string, {
|
|
1118
|
-
name: string;
|
|
1119
|
-
id: string;
|
|
1120
|
-
method: "get" | "post" | "put" | "delete";
|
|
1121
|
-
url: string;
|
|
1122
|
-
headers: {
|
|
1123
|
-
value: string;
|
|
1124
|
-
name: string;
|
|
1125
|
-
}[];
|
|
1126
|
-
body?: string | undefined;
|
|
1127
|
-
control?: "system" | "graphql" | undefined;
|
|
1128
|
-
searchParams?: {
|
|
1129
|
-
value: string;
|
|
1130
|
-
name: string;
|
|
1131
|
-
}[] | undefined;
|
|
1132
|
-
}][], z.ZodTypeDef, unknown>;
|
|
1133
1075
|
props: z.ZodType<[string, {
|
|
1134
1076
|
value: number;
|
|
1135
1077
|
type: "number";
|
|
@@ -2568,25 +2510,74 @@ export declare const projectBundleSchema: z.ZodObject<{
|
|
|
2568
2510
|
instanceId: string;
|
|
2569
2511
|
required?: boolean | undefined;
|
|
2570
2512
|
}][], z.ZodTypeDef, unknown>;
|
|
2571
|
-
|
|
2513
|
+
styleSources: z.ZodType<[string, {
|
|
2514
|
+
type: "token";
|
|
2515
|
+
name: string;
|
|
2516
|
+
id: string;
|
|
2517
|
+
locked?: boolean | undefined;
|
|
2518
|
+
} | {
|
|
2519
|
+
type: "local";
|
|
2572
2520
|
id: string;
|
|
2573
|
-
label: string;
|
|
2574
|
-
minWidth?: number | undefined;
|
|
2575
|
-
maxWidth?: number | undefined;
|
|
2576
|
-
condition?: string | undefined;
|
|
2577
2521
|
}][], z.ZodTypeDef, unknown>;
|
|
2578
2522
|
styleSourceSelections: z.ZodType<[string, {
|
|
2579
2523
|
values: string[];
|
|
2580
2524
|
instanceId: string;
|
|
2581
2525
|
}][], z.ZodTypeDef, unknown>;
|
|
2582
|
-
|
|
2583
|
-
|
|
2526
|
+
dataSources: z.ZodType<[string, {
|
|
2527
|
+
value: {
|
|
2528
|
+
value: number;
|
|
2529
|
+
type: "number";
|
|
2530
|
+
} | {
|
|
2531
|
+
value: string;
|
|
2532
|
+
type: "string";
|
|
2533
|
+
} | {
|
|
2534
|
+
value: boolean;
|
|
2535
|
+
type: "boolean";
|
|
2536
|
+
} | {
|
|
2537
|
+
value: string[];
|
|
2538
|
+
type: "string[]";
|
|
2539
|
+
} | {
|
|
2540
|
+
type: "json";
|
|
2541
|
+
value?: unknown;
|
|
2542
|
+
};
|
|
2543
|
+
type: "variable";
|
|
2584
2544
|
name: string;
|
|
2585
2545
|
id: string;
|
|
2586
|
-
|
|
2546
|
+
scopeInstanceId?: string | undefined;
|
|
2587
2547
|
} | {
|
|
2588
|
-
type: "
|
|
2548
|
+
type: "parameter";
|
|
2549
|
+
name: string;
|
|
2550
|
+
id: string;
|
|
2551
|
+
scopeInstanceId?: string | undefined;
|
|
2552
|
+
} | {
|
|
2553
|
+
type: "resource";
|
|
2554
|
+
name: string;
|
|
2555
|
+
id: string;
|
|
2556
|
+
resourceId: string;
|
|
2557
|
+
scopeInstanceId?: string | undefined;
|
|
2558
|
+
}][], z.ZodTypeDef, unknown>;
|
|
2559
|
+
resources: z.ZodType<[string, {
|
|
2560
|
+
name: string;
|
|
2561
|
+
id: string;
|
|
2562
|
+
method: "get" | "post" | "put" | "delete";
|
|
2563
|
+
url: string;
|
|
2564
|
+
headers: {
|
|
2565
|
+
value: string;
|
|
2566
|
+
name: string;
|
|
2567
|
+
}[];
|
|
2568
|
+
body?: string | undefined;
|
|
2569
|
+
control?: "system" | "graphql" | undefined;
|
|
2570
|
+
searchParams?: {
|
|
2571
|
+
value: string;
|
|
2572
|
+
name: string;
|
|
2573
|
+
}[] | undefined;
|
|
2574
|
+
}][], z.ZodTypeDef, unknown>;
|
|
2575
|
+
breakpoints: z.ZodType<[string, {
|
|
2589
2576
|
id: string;
|
|
2577
|
+
label: string;
|
|
2578
|
+
minWidth?: number | undefined;
|
|
2579
|
+
maxWidth?: number | undefined;
|
|
2580
|
+
condition?: string | undefined;
|
|
2590
2581
|
}][], z.ZodTypeDef, unknown>;
|
|
2591
2582
|
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
2592
2583
|
deployment: z.ZodType<{
|
|
@@ -2703,18 +2694,18 @@ 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
|
};
|
|
2710
2701
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
2711
2702
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
2703
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
2704
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
2705
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
2712
2706
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
2713
2707
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
2714
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
2715
2708
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
2716
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
2717
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
2718
2709
|
updatedAt: string;
|
|
2719
2710
|
deployment?: {
|
|
2720
2711
|
name: string;
|
|
@@ -2736,12 +2727,12 @@ export declare const projectBundleSchema: z.ZodObject<{
|
|
|
2736
2727
|
pages?: unknown;
|
|
2737
2728
|
styles?: unknown;
|
|
2738
2729
|
instances?: unknown;
|
|
2730
|
+
props?: unknown;
|
|
2731
|
+
styleSources?: unknown;
|
|
2732
|
+
styleSourceSelections?: unknown;
|
|
2739
2733
|
dataSources?: unknown;
|
|
2740
2734
|
resources?: unknown;
|
|
2741
|
-
props?: unknown;
|
|
2742
2735
|
breakpoints?: unknown;
|
|
2743
|
-
styleSourceSelections?: unknown;
|
|
2744
|
-
styleSources?: unknown;
|
|
2745
2736
|
updatedAt?: unknown;
|
|
2746
2737
|
deployment?: unknown;
|
|
2747
2738
|
}>;
|
|
@@ -3160,18 +3151,18 @@ 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
|
};
|
|
3167
3158
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
3168
3159
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
3160
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
3161
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
3162
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
3169
3163
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
3170
3164
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
3171
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
3172
3165
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
3173
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
3174
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
3175
3166
|
updatedAt: string;
|
|
3176
3167
|
deployment?: {
|
|
3177
3168
|
name: string;
|
|
@@ -3323,19 +3314,19 @@ export declare const projectBundleSchema: z.ZodObject<{
|
|
|
3323
3314
|
pages?: unknown;
|
|
3324
3315
|
styles?: unknown;
|
|
3325
3316
|
instances?: unknown;
|
|
3317
|
+
props?: unknown;
|
|
3318
|
+
styleSources?: unknown;
|
|
3319
|
+
styleSourceSelections?: unknown;
|
|
3326
3320
|
dataSources?: unknown;
|
|
3327
3321
|
resources?: unknown;
|
|
3328
|
-
props?: unknown;
|
|
3329
3322
|
breakpoints?: unknown;
|
|
3330
|
-
styleSourceSelections?: unknown;
|
|
3331
|
-
styleSources?: unknown;
|
|
3332
3323
|
updatedAt?: unknown;
|
|
3333
3324
|
deployment?: unknown;
|
|
3334
3325
|
};
|
|
3335
3326
|
origin?: string | undefined;
|
|
3336
3327
|
}>;
|
|
3337
|
-
export type ProjectBundle = z.infer<typeof
|
|
3338
|
-
export declare const
|
|
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;
|
|
@@ -4402,55 +4393,6 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
|
|
|
4402
4393
|
label?: string | undefined;
|
|
4403
4394
|
tag?: string | undefined;
|
|
4404
4395
|
}][], z.ZodTypeDef, unknown>;
|
|
4405
|
-
dataSources: z.ZodType<[string, {
|
|
4406
|
-
value: {
|
|
4407
|
-
value: number;
|
|
4408
|
-
type: "number";
|
|
4409
|
-
} | {
|
|
4410
|
-
value: string;
|
|
4411
|
-
type: "string";
|
|
4412
|
-
} | {
|
|
4413
|
-
value: boolean;
|
|
4414
|
-
type: "boolean";
|
|
4415
|
-
} | {
|
|
4416
|
-
value: string[];
|
|
4417
|
-
type: "string[]";
|
|
4418
|
-
} | {
|
|
4419
|
-
type: "json";
|
|
4420
|
-
value?: unknown;
|
|
4421
|
-
};
|
|
4422
|
-
type: "variable";
|
|
4423
|
-
name: string;
|
|
4424
|
-
id: string;
|
|
4425
|
-
scopeInstanceId?: string | undefined;
|
|
4426
|
-
} | {
|
|
4427
|
-
type: "parameter";
|
|
4428
|
-
name: string;
|
|
4429
|
-
id: string;
|
|
4430
|
-
scopeInstanceId?: string | undefined;
|
|
4431
|
-
} | {
|
|
4432
|
-
type: "resource";
|
|
4433
|
-
name: string;
|
|
4434
|
-
id: string;
|
|
4435
|
-
resourceId: string;
|
|
4436
|
-
scopeInstanceId?: string | undefined;
|
|
4437
|
-
}][], z.ZodTypeDef, unknown>;
|
|
4438
|
-
resources: z.ZodType<[string, {
|
|
4439
|
-
name: string;
|
|
4440
|
-
id: string;
|
|
4441
|
-
method: "get" | "post" | "put" | "delete";
|
|
4442
|
-
url: string;
|
|
4443
|
-
headers: {
|
|
4444
|
-
value: string;
|
|
4445
|
-
name: string;
|
|
4446
|
-
}[];
|
|
4447
|
-
body?: string | undefined;
|
|
4448
|
-
control?: "system" | "graphql" | undefined;
|
|
4449
|
-
searchParams?: {
|
|
4450
|
-
value: string;
|
|
4451
|
-
name: string;
|
|
4452
|
-
}[] | undefined;
|
|
4453
|
-
}][], z.ZodTypeDef, unknown>;
|
|
4454
4396
|
props: z.ZodType<[string, {
|
|
4455
4397
|
value: number;
|
|
4456
4398
|
type: "number";
|
|
@@ -5889,46 +5831,95 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
|
|
|
5889
5831
|
instanceId: string;
|
|
5890
5832
|
required?: boolean | undefined;
|
|
5891
5833
|
}][], z.ZodTypeDef, unknown>;
|
|
5892
|
-
|
|
5834
|
+
styleSources: z.ZodType<[string, {
|
|
5835
|
+
type: "token";
|
|
5836
|
+
name: string;
|
|
5837
|
+
id: string;
|
|
5838
|
+
locked?: boolean | undefined;
|
|
5839
|
+
} | {
|
|
5840
|
+
type: "local";
|
|
5893
5841
|
id: string;
|
|
5894
|
-
label: string;
|
|
5895
|
-
minWidth?: number | undefined;
|
|
5896
|
-
maxWidth?: number | undefined;
|
|
5897
|
-
condition?: string | undefined;
|
|
5898
5842
|
}][], z.ZodTypeDef, unknown>;
|
|
5899
5843
|
styleSourceSelections: z.ZodType<[string, {
|
|
5900
5844
|
values: string[];
|
|
5901
5845
|
instanceId: string;
|
|
5902
5846
|
}][], z.ZodTypeDef, unknown>;
|
|
5903
|
-
|
|
5904
|
-
|
|
5847
|
+
dataSources: z.ZodType<[string, {
|
|
5848
|
+
value: {
|
|
5849
|
+
value: number;
|
|
5850
|
+
type: "number";
|
|
5851
|
+
} | {
|
|
5852
|
+
value: string;
|
|
5853
|
+
type: "string";
|
|
5854
|
+
} | {
|
|
5855
|
+
value: boolean;
|
|
5856
|
+
type: "boolean";
|
|
5857
|
+
} | {
|
|
5858
|
+
value: string[];
|
|
5859
|
+
type: "string[]";
|
|
5860
|
+
} | {
|
|
5861
|
+
type: "json";
|
|
5862
|
+
value?: unknown;
|
|
5863
|
+
};
|
|
5864
|
+
type: "variable";
|
|
5905
5865
|
name: string;
|
|
5906
5866
|
id: string;
|
|
5907
|
-
|
|
5867
|
+
scopeInstanceId?: string | undefined;
|
|
5908
5868
|
} | {
|
|
5909
|
-
type: "
|
|
5869
|
+
type: "parameter";
|
|
5870
|
+
name: string;
|
|
5871
|
+
id: string;
|
|
5872
|
+
scopeInstanceId?: string | undefined;
|
|
5873
|
+
} | {
|
|
5874
|
+
type: "resource";
|
|
5875
|
+
name: string;
|
|
5910
5876
|
id: string;
|
|
5877
|
+
resourceId: string;
|
|
5878
|
+
scopeInstanceId?: string | undefined;
|
|
5911
5879
|
}][], z.ZodTypeDef, unknown>;
|
|
5912
|
-
|
|
5913
|
-
deployment: z.ZodType<{
|
|
5880
|
+
resources: z.ZodType<[string, {
|
|
5914
5881
|
name: string;
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5882
|
+
id: string;
|
|
5883
|
+
method: "get" | "post" | "put" | "delete";
|
|
5884
|
+
url: string;
|
|
5885
|
+
headers: {
|
|
5886
|
+
value: string;
|
|
5887
|
+
name: string;
|
|
5888
|
+
}[];
|
|
5889
|
+
body?: string | undefined;
|
|
5890
|
+
control?: "system" | "graphql" | undefined;
|
|
5891
|
+
searchParams?: {
|
|
5892
|
+
value: string;
|
|
5893
|
+
name: string;
|
|
5894
|
+
}[] | undefined;
|
|
5895
|
+
}][], z.ZodTypeDef, unknown>;
|
|
5896
|
+
breakpoints: z.ZodType<[string, {
|
|
5897
|
+
id: string;
|
|
5898
|
+
label: string;
|
|
5899
|
+
minWidth?: number | undefined;
|
|
5900
|
+
maxWidth?: number | undefined;
|
|
5901
|
+
condition?: string | undefined;
|
|
5902
|
+
}][], z.ZodTypeDef, unknown>;
|
|
5903
|
+
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
5904
|
+
deployment: z.ZodType<{
|
|
5905
|
+
name: string;
|
|
5906
|
+
destination: "static";
|
|
5907
|
+
assetsDomain: string;
|
|
5908
|
+
templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
|
|
5909
|
+
} | {
|
|
5910
|
+
domains: string[];
|
|
5911
|
+
destination?: "saas" | undefined;
|
|
5912
|
+
assetsDomain?: string | undefined;
|
|
5913
|
+
projectDomain?: string | undefined;
|
|
5914
|
+
excludeWstdDomainFromSearch?: boolean | undefined;
|
|
5915
|
+
} | undefined, z.ZodTypeDef, unknown>;
|
|
5916
|
+
pages: z.ZodType<import("@webstudio-is/project-migrations/pages").SerializedPages, z.ZodTypeDef, unknown>;
|
|
5917
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
5918
|
+
id: string;
|
|
5919
|
+
projectId: string;
|
|
5920
|
+
createdAt: string;
|
|
5921
|
+
version: number;
|
|
5922
|
+
pages: Omit<{
|
|
5932
5923
|
pages: Map<string, {
|
|
5933
5924
|
path: string;
|
|
5934
5925
|
name: string;
|
|
@@ -6024,18 +6015,18 @@ 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
|
};
|
|
6031
6022
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
6032
6023
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
6024
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6025
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6026
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6033
6027
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
6034
6028
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
6035
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6036
6029
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
6037
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6038
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6039
6030
|
updatedAt: string;
|
|
6040
6031
|
deployment?: {
|
|
6041
6032
|
name: string;
|
|
@@ -6057,12 +6048,12 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
|
|
|
6057
6048
|
pages?: unknown;
|
|
6058
6049
|
styles?: unknown;
|
|
6059
6050
|
instances?: unknown;
|
|
6051
|
+
props?: unknown;
|
|
6052
|
+
styleSources?: unknown;
|
|
6053
|
+
styleSourceSelections?: unknown;
|
|
6060
6054
|
dataSources?: unknown;
|
|
6061
6055
|
resources?: unknown;
|
|
6062
|
-
props?: unknown;
|
|
6063
6056
|
breakpoints?: unknown;
|
|
6064
|
-
styleSourceSelections?: unknown;
|
|
6065
|
-
styleSources?: unknown;
|
|
6066
6057
|
updatedAt?: unknown;
|
|
6067
6058
|
deployment?: unknown;
|
|
6068
6059
|
}>;
|
|
@@ -6493,18 +6484,18 @@ 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
|
};
|
|
6500
6491
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
6501
6492
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
6493
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6494
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6495
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6502
6496
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
6503
6497
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
6504
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6505
6498
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
6506
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6507
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6508
6499
|
updatedAt: string;
|
|
6509
6500
|
deployment?: {
|
|
6510
6501
|
name: string;
|
|
@@ -6662,12 +6653,12 @@ export declare const publishedProjectBundleSchema: z.ZodObject<z.objectUtil.exte
|
|
|
6662
6653
|
pages?: unknown;
|
|
6663
6654
|
styles?: unknown;
|
|
6664
6655
|
instances?: unknown;
|
|
6656
|
+
props?: unknown;
|
|
6657
|
+
styleSources?: unknown;
|
|
6658
|
+
styleSourceSelections?: unknown;
|
|
6665
6659
|
dataSources?: unknown;
|
|
6666
6660
|
resources?: unknown;
|
|
6667
|
-
props?: unknown;
|
|
6668
6661
|
breakpoints?: unknown;
|
|
6669
|
-
styleSourceSelections?: unknown;
|
|
6670
|
-
styleSources?: unknown;
|
|
6671
6662
|
updatedAt?: unknown;
|
|
6672
6663
|
deployment?: unknown;
|
|
6673
6664
|
};
|
|
@@ -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
|
|
6682
|
-
export declare const
|
|
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;
|
|
@@ -7748,55 +7739,6 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
7748
7739
|
label?: string | undefined;
|
|
7749
7740
|
tag?: string | undefined;
|
|
7750
7741
|
}][], z.ZodTypeDef, unknown>;
|
|
7751
|
-
dataSources: z.ZodType<[string, {
|
|
7752
|
-
value: {
|
|
7753
|
-
value: number;
|
|
7754
|
-
type: "number";
|
|
7755
|
-
} | {
|
|
7756
|
-
value: string;
|
|
7757
|
-
type: "string";
|
|
7758
|
-
} | {
|
|
7759
|
-
value: boolean;
|
|
7760
|
-
type: "boolean";
|
|
7761
|
-
} | {
|
|
7762
|
-
value: string[];
|
|
7763
|
-
type: "string[]";
|
|
7764
|
-
} | {
|
|
7765
|
-
type: "json";
|
|
7766
|
-
value?: unknown;
|
|
7767
|
-
};
|
|
7768
|
-
type: "variable";
|
|
7769
|
-
name: string;
|
|
7770
|
-
id: string;
|
|
7771
|
-
scopeInstanceId?: string | undefined;
|
|
7772
|
-
} | {
|
|
7773
|
-
type: "parameter";
|
|
7774
|
-
name: string;
|
|
7775
|
-
id: string;
|
|
7776
|
-
scopeInstanceId?: string | undefined;
|
|
7777
|
-
} | {
|
|
7778
|
-
type: "resource";
|
|
7779
|
-
name: string;
|
|
7780
|
-
id: string;
|
|
7781
|
-
resourceId: string;
|
|
7782
|
-
scopeInstanceId?: string | undefined;
|
|
7783
|
-
}][], z.ZodTypeDef, unknown>;
|
|
7784
|
-
resources: z.ZodType<[string, {
|
|
7785
|
-
name: string;
|
|
7786
|
-
id: string;
|
|
7787
|
-
method: "get" | "post" | "put" | "delete";
|
|
7788
|
-
url: string;
|
|
7789
|
-
headers: {
|
|
7790
|
-
value: string;
|
|
7791
|
-
name: string;
|
|
7792
|
-
}[];
|
|
7793
|
-
body?: string | undefined;
|
|
7794
|
-
control?: "system" | "graphql" | undefined;
|
|
7795
|
-
searchParams?: {
|
|
7796
|
-
value: string;
|
|
7797
|
-
name: string;
|
|
7798
|
-
}[] | undefined;
|
|
7799
|
-
}][], z.ZodTypeDef, unknown>;
|
|
7800
7742
|
props: z.ZodType<[string, {
|
|
7801
7743
|
value: number;
|
|
7802
7744
|
type: "number";
|
|
@@ -9235,25 +9177,74 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
9235
9177
|
instanceId: string;
|
|
9236
9178
|
required?: boolean | undefined;
|
|
9237
9179
|
}][], z.ZodTypeDef, unknown>;
|
|
9238
|
-
|
|
9180
|
+
styleSources: z.ZodType<[string, {
|
|
9181
|
+
type: "token";
|
|
9182
|
+
name: string;
|
|
9183
|
+
id: string;
|
|
9184
|
+
locked?: boolean | undefined;
|
|
9185
|
+
} | {
|
|
9186
|
+
type: "local";
|
|
9239
9187
|
id: string;
|
|
9240
|
-
label: string;
|
|
9241
|
-
minWidth?: number | undefined;
|
|
9242
|
-
maxWidth?: number | undefined;
|
|
9243
|
-
condition?: string | undefined;
|
|
9244
9188
|
}][], z.ZodTypeDef, unknown>;
|
|
9245
9189
|
styleSourceSelections: z.ZodType<[string, {
|
|
9246
9190
|
values: string[];
|
|
9247
9191
|
instanceId: string;
|
|
9248
9192
|
}][], z.ZodTypeDef, unknown>;
|
|
9249
|
-
|
|
9250
|
-
|
|
9193
|
+
dataSources: z.ZodType<[string, {
|
|
9194
|
+
value: {
|
|
9195
|
+
value: number;
|
|
9196
|
+
type: "number";
|
|
9197
|
+
} | {
|
|
9198
|
+
value: string;
|
|
9199
|
+
type: "string";
|
|
9200
|
+
} | {
|
|
9201
|
+
value: boolean;
|
|
9202
|
+
type: "boolean";
|
|
9203
|
+
} | {
|
|
9204
|
+
value: string[];
|
|
9205
|
+
type: "string[]";
|
|
9206
|
+
} | {
|
|
9207
|
+
type: "json";
|
|
9208
|
+
value?: unknown;
|
|
9209
|
+
};
|
|
9210
|
+
type: "variable";
|
|
9251
9211
|
name: string;
|
|
9252
9212
|
id: string;
|
|
9253
|
-
|
|
9213
|
+
scopeInstanceId?: string | undefined;
|
|
9254
9214
|
} | {
|
|
9255
|
-
type: "
|
|
9215
|
+
type: "parameter";
|
|
9216
|
+
name: string;
|
|
9217
|
+
id: string;
|
|
9218
|
+
scopeInstanceId?: string | undefined;
|
|
9219
|
+
} | {
|
|
9220
|
+
type: "resource";
|
|
9221
|
+
name: string;
|
|
9222
|
+
id: string;
|
|
9223
|
+
resourceId: string;
|
|
9224
|
+
scopeInstanceId?: string | undefined;
|
|
9225
|
+
}][], z.ZodTypeDef, unknown>;
|
|
9226
|
+
resources: z.ZodType<[string, {
|
|
9227
|
+
name: string;
|
|
9228
|
+
id: string;
|
|
9229
|
+
method: "get" | "post" | "put" | "delete";
|
|
9230
|
+
url: string;
|
|
9231
|
+
headers: {
|
|
9232
|
+
value: string;
|
|
9233
|
+
name: string;
|
|
9234
|
+
}[];
|
|
9235
|
+
body?: string | undefined;
|
|
9236
|
+
control?: "system" | "graphql" | undefined;
|
|
9237
|
+
searchParams?: {
|
|
9238
|
+
value: string;
|
|
9239
|
+
name: string;
|
|
9240
|
+
}[] | undefined;
|
|
9241
|
+
}][], z.ZodTypeDef, unknown>;
|
|
9242
|
+
breakpoints: z.ZodType<[string, {
|
|
9256
9243
|
id: string;
|
|
9244
|
+
label: string;
|
|
9245
|
+
minWidth?: number | undefined;
|
|
9246
|
+
maxWidth?: number | undefined;
|
|
9247
|
+
condition?: string | undefined;
|
|
9257
9248
|
}][], z.ZodTypeDef, unknown>;
|
|
9258
9249
|
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
9259
9250
|
deployment: z.ZodType<{
|
|
@@ -9370,18 +9361,18 @@ 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
|
};
|
|
9377
9368
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
9378
9369
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
9370
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9371
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9372
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9379
9373
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
9380
9374
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
9381
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9382
9375
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
9383
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9384
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9385
9376
|
updatedAt: string;
|
|
9386
9377
|
deployment?: {
|
|
9387
9378
|
name: string;
|
|
@@ -9403,12 +9394,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
9403
9394
|
pages?: unknown;
|
|
9404
9395
|
styles?: unknown;
|
|
9405
9396
|
instances?: unknown;
|
|
9397
|
+
props?: unknown;
|
|
9398
|
+
styleSources?: unknown;
|
|
9399
|
+
styleSourceSelections?: unknown;
|
|
9406
9400
|
dataSources?: unknown;
|
|
9407
9401
|
resources?: unknown;
|
|
9408
|
-
props?: unknown;
|
|
9409
9402
|
breakpoints?: unknown;
|
|
9410
|
-
styleSourceSelections?: unknown;
|
|
9411
|
-
styleSources?: unknown;
|
|
9412
9403
|
updatedAt?: unknown;
|
|
9413
9404
|
deployment?: unknown;
|
|
9414
9405
|
}>;
|
|
@@ -9839,18 +9830,18 @@ 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
|
};
|
|
9846
9837
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
9847
9838
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
9839
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9840
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9841
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9848
9842
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
9849
9843
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
9850
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9851
9844
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
9852
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9853
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9854
9845
|
updatedAt: string;
|
|
9855
9846
|
deployment?: {
|
|
9856
9847
|
name: string;
|
|
@@ -10008,12 +9999,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
10008
9999
|
pages?: unknown;
|
|
10009
10000
|
styles?: unknown;
|
|
10010
10001
|
instances?: unknown;
|
|
10002
|
+
props?: unknown;
|
|
10003
|
+
styleSources?: unknown;
|
|
10004
|
+
styleSourceSelections?: unknown;
|
|
10011
10005
|
dataSources?: unknown;
|
|
10012
10006
|
resources?: unknown;
|
|
10013
|
-
props?: unknown;
|
|
10014
10007
|
breakpoints?: unknown;
|
|
10015
|
-
styleSourceSelections?: unknown;
|
|
10016
|
-
styleSources?: unknown;
|
|
10017
10008
|
updatedAt?: unknown;
|
|
10018
10009
|
deployment?: unknown;
|
|
10019
10010
|
};
|
|
@@ -10023,21 +10014,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
10023
10014
|
user?: {
|
|
10024
10015
|
email: string | null;
|
|
10025
10016
|
} | undefined;
|
|
10026
|
-
}
|
|
10027
|
-
|
|
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,18 +10249,18 @@ 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
|
};
|
|
10274
10256
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
10275
10257
|
instances: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").Instance][];
|
|
10258
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
10259
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
10260
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
10276
10261
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
10277
10262
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
10278
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
10279
10263
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
10280
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
10281
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
10282
10264
|
updatedAt: string;
|
|
10283
10265
|
deployment?: {
|
|
10284
10266
|
name: string;
|
|
@@ -10299,15 +10281,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
10299
10281
|
user?: {
|
|
10300
10282
|
email: string | null;
|
|
10301
10283
|
} | undefined;
|
|
10302
|
-
};
|
|
10303
|
-
|
|
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;
|
|
@@ -10444,12 +10423,12 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
10444
10423
|
pages?: unknown;
|
|
10445
10424
|
styles?: unknown;
|
|
10446
10425
|
instances?: unknown;
|
|
10426
|
+
props?: unknown;
|
|
10427
|
+
styleSources?: unknown;
|
|
10428
|
+
styleSourceSelections?: unknown;
|
|
10447
10429
|
dataSources?: unknown;
|
|
10448
10430
|
resources?: unknown;
|
|
10449
|
-
props?: unknown;
|
|
10450
10431
|
breakpoints?: unknown;
|
|
10451
|
-
styleSourceSelections?: unknown;
|
|
10452
|
-
styleSources?: unknown;
|
|
10453
10432
|
updatedAt?: unknown;
|
|
10454
10433
|
deployment?: unknown;
|
|
10455
10434
|
};
|
|
@@ -10459,30 +10438,475 @@ export declare const importProjectBundleInputSchema: z.ZodObject<{
|
|
|
10459
10438
|
user?: {
|
|
10460
10439
|
email: string | null;
|
|
10461
10440
|
} | undefined;
|
|
10462
|
-
};
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
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
|
+
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
10683
|
+
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
10684
|
+
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
10685
|
+
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
10686
|
+
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
10687
|
+
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
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
|
+
props?: unknown;
|
|
10851
|
+
styleSources?: unknown;
|
|
10852
|
+
styleSourceSelections?: unknown;
|
|
10853
|
+
dataSources?: unknown;
|
|
10854
|
+
resources?: unknown;
|
|
10855
|
+
breakpoints?: 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
|
|
10470
|
-
export declare const
|
|
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
|
|
10478
|
-
export declare const
|
|
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
|
|
10885
|
+
export declare const buildPatchNamespaces: readonly ["pages", "instances", "props", "styles", "styleSources", "styleSourceSelections", "dataSources", "resources", "assets", "breakpoints", "marketplaceProduct"];
|
|
10886
|
+
export type BuildPatchPath = Array<string | number>;
|
|
10887
|
+
export type BuildPatch = {
|
|
10888
|
+
op: "add";
|
|
10889
|
+
path: BuildPatchPath;
|
|
10890
|
+
value: unknown;
|
|
10891
|
+
} | {
|
|
10892
|
+
op: "replace";
|
|
10893
|
+
path: BuildPatchPath;
|
|
10894
|
+
value: unknown;
|
|
10895
|
+
} | {
|
|
10896
|
+
op: "remove";
|
|
10897
|
+
path: BuildPatchPath;
|
|
10898
|
+
};
|
|
10899
|
+
export type BuildPatchChange = {
|
|
10900
|
+
namespace: (typeof buildPatchNamespaces)[number];
|
|
10901
|
+
patches: BuildPatch[];
|
|
10902
|
+
};
|
|
10903
|
+
export type BuildPatchTransaction = {
|
|
10904
|
+
id: string;
|
|
10905
|
+
payload: BuildPatchChange[];
|
|
10906
|
+
};
|
|
10907
|
+
export declare const buildPatch: z.ZodType<BuildPatch, z.ZodTypeDef, unknown>;
|
|
10908
|
+
export declare const buildPatchTransaction: z.ZodType<BuildPatchTransaction, z.ZodTypeDef, unknown>;
|
|
10909
|
+
export declare const bundleVersion: `bundle-${string}`;
|
|
10486
10910
|
export declare const getBundleVersion: (data: unknown) => string | number | undefined;
|
|
10487
10911
|
export declare const getBundleVersionMismatchMessage: ({ ignoreVersionCheckHint, receivedVersion, }: {
|
|
10488
10912
|
ignoreVersionCheckHint: string;
|