@webstudio-is/protocol 0.273.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/index.js +1669 -0
- 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/index.d.ts +5 -0
- package/lib/types/schema.d.ts +246 -222
- package/package.json +3 -3
package/lib/types/schema.d.ts
CHANGED
|
@@ -1072,55 +1072,6 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
1072
1072
|
label?: string | undefined;
|
|
1073
1073
|
tag?: string | undefined;
|
|
1074
1074
|
}][], z.ZodTypeDef, unknown>;
|
|
1075
|
-
dataSources: z.ZodType<[string, {
|
|
1076
|
-
value: {
|
|
1077
|
-
value: number;
|
|
1078
|
-
type: "number";
|
|
1079
|
-
} | {
|
|
1080
|
-
value: string;
|
|
1081
|
-
type: "string";
|
|
1082
|
-
} | {
|
|
1083
|
-
value: boolean;
|
|
1084
|
-
type: "boolean";
|
|
1085
|
-
} | {
|
|
1086
|
-
value: string[];
|
|
1087
|
-
type: "string[]";
|
|
1088
|
-
} | {
|
|
1089
|
-
type: "json";
|
|
1090
|
-
value?: unknown;
|
|
1091
|
-
};
|
|
1092
|
-
type: "variable";
|
|
1093
|
-
name: string;
|
|
1094
|
-
id: string;
|
|
1095
|
-
scopeInstanceId?: string | undefined;
|
|
1096
|
-
} | {
|
|
1097
|
-
type: "parameter";
|
|
1098
|
-
name: string;
|
|
1099
|
-
id: string;
|
|
1100
|
-
scopeInstanceId?: string | undefined;
|
|
1101
|
-
} | {
|
|
1102
|
-
type: "resource";
|
|
1103
|
-
name: string;
|
|
1104
|
-
id: string;
|
|
1105
|
-
resourceId: string;
|
|
1106
|
-
scopeInstanceId?: string | undefined;
|
|
1107
|
-
}][], z.ZodTypeDef, unknown>;
|
|
1108
|
-
resources: z.ZodType<[string, {
|
|
1109
|
-
name: string;
|
|
1110
|
-
id: string;
|
|
1111
|
-
method: "get" | "post" | "put" | "delete";
|
|
1112
|
-
url: string;
|
|
1113
|
-
headers: {
|
|
1114
|
-
value: string;
|
|
1115
|
-
name: string;
|
|
1116
|
-
}[];
|
|
1117
|
-
body?: string | undefined;
|
|
1118
|
-
control?: "system" | "graphql" | undefined;
|
|
1119
|
-
searchParams?: {
|
|
1120
|
-
value: string;
|
|
1121
|
-
name: string;
|
|
1122
|
-
}[] | undefined;
|
|
1123
|
-
}][], z.ZodTypeDef, unknown>;
|
|
1124
1075
|
props: z.ZodType<[string, {
|
|
1125
1076
|
value: number;
|
|
1126
1077
|
type: "number";
|
|
@@ -2559,25 +2510,74 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
2559
2510
|
instanceId: string;
|
|
2560
2511
|
required?: boolean | undefined;
|
|
2561
2512
|
}][], z.ZodTypeDef, unknown>;
|
|
2562
|
-
|
|
2513
|
+
styleSources: z.ZodType<[string, {
|
|
2514
|
+
type: "token";
|
|
2515
|
+
name: string;
|
|
2516
|
+
id: string;
|
|
2517
|
+
locked?: boolean | undefined;
|
|
2518
|
+
} | {
|
|
2519
|
+
type: "local";
|
|
2563
2520
|
id: string;
|
|
2564
|
-
label: string;
|
|
2565
|
-
minWidth?: number | undefined;
|
|
2566
|
-
maxWidth?: number | undefined;
|
|
2567
|
-
condition?: string | undefined;
|
|
2568
2521
|
}][], z.ZodTypeDef, unknown>;
|
|
2569
2522
|
styleSourceSelections: z.ZodType<[string, {
|
|
2570
2523
|
values: string[];
|
|
2571
2524
|
instanceId: string;
|
|
2572
2525
|
}][], z.ZodTypeDef, unknown>;
|
|
2573
|
-
|
|
2574
|
-
|
|
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";
|
|
2575
2544
|
name: string;
|
|
2576
2545
|
id: string;
|
|
2577
|
-
|
|
2546
|
+
scopeInstanceId?: string | undefined;
|
|
2578
2547
|
} | {
|
|
2579
|
-
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, {
|
|
2580
2576
|
id: string;
|
|
2577
|
+
label: string;
|
|
2578
|
+
minWidth?: number | undefined;
|
|
2579
|
+
maxWidth?: number | undefined;
|
|
2580
|
+
condition?: string | undefined;
|
|
2581
2581
|
}][], z.ZodTypeDef, unknown>;
|
|
2582
2582
|
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
2583
2583
|
deployment: z.ZodType<{
|
|
@@ -2700,12 +2700,12 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
2700
2700
|
};
|
|
2701
2701
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
2702
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][];
|
|
2703
2706
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
2704
2707
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
2705
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
2706
2708
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
2707
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
2708
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
2709
2709
|
updatedAt: string;
|
|
2710
2710
|
deployment?: {
|
|
2711
2711
|
name: string;
|
|
@@ -2727,12 +2727,12 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
2727
2727
|
pages?: unknown;
|
|
2728
2728
|
styles?: unknown;
|
|
2729
2729
|
instances?: unknown;
|
|
2730
|
+
props?: unknown;
|
|
2731
|
+
styleSources?: unknown;
|
|
2732
|
+
styleSourceSelections?: unknown;
|
|
2730
2733
|
dataSources?: unknown;
|
|
2731
2734
|
resources?: unknown;
|
|
2732
|
-
props?: unknown;
|
|
2733
2735
|
breakpoints?: unknown;
|
|
2734
|
-
styleSourceSelections?: unknown;
|
|
2735
|
-
styleSources?: unknown;
|
|
2736
2736
|
updatedAt?: unknown;
|
|
2737
2737
|
deployment?: unknown;
|
|
2738
2738
|
}>;
|
|
@@ -3157,12 +3157,12 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
3157
3157
|
};
|
|
3158
3158
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
3159
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][];
|
|
3160
3163
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
3161
3164
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
3162
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
3163
3165
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
3164
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
3165
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
3166
3166
|
updatedAt: string;
|
|
3167
3167
|
deployment?: {
|
|
3168
3168
|
name: string;
|
|
@@ -3314,12 +3314,12 @@ export declare const projectBundle: z.ZodObject<{
|
|
|
3314
3314
|
pages?: unknown;
|
|
3315
3315
|
styles?: unknown;
|
|
3316
3316
|
instances?: unknown;
|
|
3317
|
+
props?: unknown;
|
|
3318
|
+
styleSources?: unknown;
|
|
3319
|
+
styleSourceSelections?: unknown;
|
|
3317
3320
|
dataSources?: unknown;
|
|
3318
3321
|
resources?: unknown;
|
|
3319
|
-
props?: unknown;
|
|
3320
3322
|
breakpoints?: unknown;
|
|
3321
|
-
styleSourceSelections?: unknown;
|
|
3322
|
-
styleSources?: unknown;
|
|
3323
3323
|
updatedAt?: unknown;
|
|
3324
3324
|
deployment?: unknown;
|
|
3325
3325
|
};
|
|
@@ -4393,55 +4393,6 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
4393
4393
|
label?: string | undefined;
|
|
4394
4394
|
tag?: string | undefined;
|
|
4395
4395
|
}][], z.ZodTypeDef, unknown>;
|
|
4396
|
-
dataSources: z.ZodType<[string, {
|
|
4397
|
-
value: {
|
|
4398
|
-
value: number;
|
|
4399
|
-
type: "number";
|
|
4400
|
-
} | {
|
|
4401
|
-
value: string;
|
|
4402
|
-
type: "string";
|
|
4403
|
-
} | {
|
|
4404
|
-
value: boolean;
|
|
4405
|
-
type: "boolean";
|
|
4406
|
-
} | {
|
|
4407
|
-
value: string[];
|
|
4408
|
-
type: "string[]";
|
|
4409
|
-
} | {
|
|
4410
|
-
type: "json";
|
|
4411
|
-
value?: unknown;
|
|
4412
|
-
};
|
|
4413
|
-
type: "variable";
|
|
4414
|
-
name: string;
|
|
4415
|
-
id: string;
|
|
4416
|
-
scopeInstanceId?: string | undefined;
|
|
4417
|
-
} | {
|
|
4418
|
-
type: "parameter";
|
|
4419
|
-
name: string;
|
|
4420
|
-
id: string;
|
|
4421
|
-
scopeInstanceId?: string | undefined;
|
|
4422
|
-
} | {
|
|
4423
|
-
type: "resource";
|
|
4424
|
-
name: string;
|
|
4425
|
-
id: string;
|
|
4426
|
-
resourceId: string;
|
|
4427
|
-
scopeInstanceId?: string | undefined;
|
|
4428
|
-
}][], z.ZodTypeDef, unknown>;
|
|
4429
|
-
resources: z.ZodType<[string, {
|
|
4430
|
-
name: string;
|
|
4431
|
-
id: string;
|
|
4432
|
-
method: "get" | "post" | "put" | "delete";
|
|
4433
|
-
url: string;
|
|
4434
|
-
headers: {
|
|
4435
|
-
value: string;
|
|
4436
|
-
name: string;
|
|
4437
|
-
}[];
|
|
4438
|
-
body?: string | undefined;
|
|
4439
|
-
control?: "system" | "graphql" | undefined;
|
|
4440
|
-
searchParams?: {
|
|
4441
|
-
value: string;
|
|
4442
|
-
name: string;
|
|
4443
|
-
}[] | undefined;
|
|
4444
|
-
}][], z.ZodTypeDef, unknown>;
|
|
4445
4396
|
props: z.ZodType<[string, {
|
|
4446
4397
|
value: number;
|
|
4447
4398
|
type: "number";
|
|
@@ -5880,25 +5831,74 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
5880
5831
|
instanceId: string;
|
|
5881
5832
|
required?: boolean | undefined;
|
|
5882
5833
|
}][], z.ZodTypeDef, unknown>;
|
|
5883
|
-
|
|
5834
|
+
styleSources: z.ZodType<[string, {
|
|
5835
|
+
type: "token";
|
|
5836
|
+
name: string;
|
|
5837
|
+
id: string;
|
|
5838
|
+
locked?: boolean | undefined;
|
|
5839
|
+
} | {
|
|
5840
|
+
type: "local";
|
|
5884
5841
|
id: string;
|
|
5885
|
-
label: string;
|
|
5886
|
-
minWidth?: number | undefined;
|
|
5887
|
-
maxWidth?: number | undefined;
|
|
5888
|
-
condition?: string | undefined;
|
|
5889
5842
|
}][], z.ZodTypeDef, unknown>;
|
|
5890
5843
|
styleSourceSelections: z.ZodType<[string, {
|
|
5891
5844
|
values: string[];
|
|
5892
5845
|
instanceId: string;
|
|
5893
5846
|
}][], z.ZodTypeDef, unknown>;
|
|
5894
|
-
|
|
5895
|
-
|
|
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";
|
|
5896
5865
|
name: string;
|
|
5897
5866
|
id: string;
|
|
5898
|
-
|
|
5867
|
+
scopeInstanceId?: string | undefined;
|
|
5899
5868
|
} | {
|
|
5900
|
-
type: "
|
|
5869
|
+
type: "parameter";
|
|
5870
|
+
name: string;
|
|
5871
|
+
id: string;
|
|
5872
|
+
scopeInstanceId?: string | undefined;
|
|
5873
|
+
} | {
|
|
5874
|
+
type: "resource";
|
|
5875
|
+
name: string;
|
|
5876
|
+
id: string;
|
|
5877
|
+
resourceId: string;
|
|
5878
|
+
scopeInstanceId?: string | undefined;
|
|
5879
|
+
}][], z.ZodTypeDef, unknown>;
|
|
5880
|
+
resources: z.ZodType<[string, {
|
|
5881
|
+
name: string;
|
|
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, {
|
|
5901
5897
|
id: string;
|
|
5898
|
+
label: string;
|
|
5899
|
+
minWidth?: number | undefined;
|
|
5900
|
+
maxWidth?: number | undefined;
|
|
5901
|
+
condition?: string | undefined;
|
|
5902
5902
|
}][], z.ZodTypeDef, unknown>;
|
|
5903
5903
|
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
5904
5904
|
deployment: z.ZodType<{
|
|
@@ -6021,12 +6021,12 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
6021
6021
|
};
|
|
6022
6022
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
6023
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][];
|
|
6024
6027
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
6025
6028
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
6026
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6027
6029
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
6028
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6029
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6030
6030
|
updatedAt: string;
|
|
6031
6031
|
deployment?: {
|
|
6032
6032
|
name: string;
|
|
@@ -6048,12 +6048,12 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
6048
6048
|
pages?: unknown;
|
|
6049
6049
|
styles?: unknown;
|
|
6050
6050
|
instances?: unknown;
|
|
6051
|
+
props?: unknown;
|
|
6052
|
+
styleSources?: unknown;
|
|
6053
|
+
styleSourceSelections?: unknown;
|
|
6051
6054
|
dataSources?: unknown;
|
|
6052
6055
|
resources?: unknown;
|
|
6053
|
-
props?: unknown;
|
|
6054
6056
|
breakpoints?: unknown;
|
|
6055
|
-
styleSourceSelections?: unknown;
|
|
6056
|
-
styleSources?: unknown;
|
|
6057
6057
|
updatedAt?: unknown;
|
|
6058
6058
|
deployment?: unknown;
|
|
6059
6059
|
}>;
|
|
@@ -6490,12 +6490,12 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
6490
6490
|
};
|
|
6491
6491
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
6492
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][];
|
|
6493
6496
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
6494
6497
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
6495
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
6496
6498
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
6497
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
6498
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
6499
6499
|
updatedAt: string;
|
|
6500
6500
|
deployment?: {
|
|
6501
6501
|
name: string;
|
|
@@ -6653,12 +6653,12 @@ export declare const publishedProjectBundle: z.ZodObject<z.objectUtil.extendShap
|
|
|
6653
6653
|
pages?: unknown;
|
|
6654
6654
|
styles?: unknown;
|
|
6655
6655
|
instances?: unknown;
|
|
6656
|
+
props?: unknown;
|
|
6657
|
+
styleSources?: unknown;
|
|
6658
|
+
styleSourceSelections?: unknown;
|
|
6656
6659
|
dataSources?: unknown;
|
|
6657
6660
|
resources?: unknown;
|
|
6658
|
-
props?: unknown;
|
|
6659
6661
|
breakpoints?: unknown;
|
|
6660
|
-
styleSourceSelections?: unknown;
|
|
6661
|
-
styleSources?: unknown;
|
|
6662
6662
|
updatedAt?: unknown;
|
|
6663
6663
|
deployment?: unknown;
|
|
6664
6664
|
};
|
|
@@ -7739,55 +7739,6 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
7739
7739
|
label?: string | undefined;
|
|
7740
7740
|
tag?: string | undefined;
|
|
7741
7741
|
}][], z.ZodTypeDef, unknown>;
|
|
7742
|
-
dataSources: z.ZodType<[string, {
|
|
7743
|
-
value: {
|
|
7744
|
-
value: number;
|
|
7745
|
-
type: "number";
|
|
7746
|
-
} | {
|
|
7747
|
-
value: string;
|
|
7748
|
-
type: "string";
|
|
7749
|
-
} | {
|
|
7750
|
-
value: boolean;
|
|
7751
|
-
type: "boolean";
|
|
7752
|
-
} | {
|
|
7753
|
-
value: string[];
|
|
7754
|
-
type: "string[]";
|
|
7755
|
-
} | {
|
|
7756
|
-
type: "json";
|
|
7757
|
-
value?: unknown;
|
|
7758
|
-
};
|
|
7759
|
-
type: "variable";
|
|
7760
|
-
name: string;
|
|
7761
|
-
id: string;
|
|
7762
|
-
scopeInstanceId?: string | undefined;
|
|
7763
|
-
} | {
|
|
7764
|
-
type: "parameter";
|
|
7765
|
-
name: string;
|
|
7766
|
-
id: string;
|
|
7767
|
-
scopeInstanceId?: string | undefined;
|
|
7768
|
-
} | {
|
|
7769
|
-
type: "resource";
|
|
7770
|
-
name: string;
|
|
7771
|
-
id: string;
|
|
7772
|
-
resourceId: string;
|
|
7773
|
-
scopeInstanceId?: string | undefined;
|
|
7774
|
-
}][], z.ZodTypeDef, unknown>;
|
|
7775
|
-
resources: z.ZodType<[string, {
|
|
7776
|
-
name: string;
|
|
7777
|
-
id: string;
|
|
7778
|
-
method: "get" | "post" | "put" | "delete";
|
|
7779
|
-
url: string;
|
|
7780
|
-
headers: {
|
|
7781
|
-
value: string;
|
|
7782
|
-
name: string;
|
|
7783
|
-
}[];
|
|
7784
|
-
body?: string | undefined;
|
|
7785
|
-
control?: "system" | "graphql" | undefined;
|
|
7786
|
-
searchParams?: {
|
|
7787
|
-
value: string;
|
|
7788
|
-
name: string;
|
|
7789
|
-
}[] | undefined;
|
|
7790
|
-
}][], z.ZodTypeDef, unknown>;
|
|
7791
7742
|
props: z.ZodType<[string, {
|
|
7792
7743
|
value: number;
|
|
7793
7744
|
type: "number";
|
|
@@ -9226,25 +9177,74 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
9226
9177
|
instanceId: string;
|
|
9227
9178
|
required?: boolean | undefined;
|
|
9228
9179
|
}][], z.ZodTypeDef, unknown>;
|
|
9229
|
-
|
|
9180
|
+
styleSources: z.ZodType<[string, {
|
|
9181
|
+
type: "token";
|
|
9182
|
+
name: string;
|
|
9183
|
+
id: string;
|
|
9184
|
+
locked?: boolean | undefined;
|
|
9185
|
+
} | {
|
|
9186
|
+
type: "local";
|
|
9230
9187
|
id: string;
|
|
9231
|
-
label: string;
|
|
9232
|
-
minWidth?: number | undefined;
|
|
9233
|
-
maxWidth?: number | undefined;
|
|
9234
|
-
condition?: string | undefined;
|
|
9235
9188
|
}][], z.ZodTypeDef, unknown>;
|
|
9236
9189
|
styleSourceSelections: z.ZodType<[string, {
|
|
9237
9190
|
values: string[];
|
|
9238
9191
|
instanceId: string;
|
|
9239
9192
|
}][], z.ZodTypeDef, unknown>;
|
|
9240
|
-
|
|
9241
|
-
|
|
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";
|
|
9242
9211
|
name: string;
|
|
9243
9212
|
id: string;
|
|
9244
|
-
|
|
9213
|
+
scopeInstanceId?: string | undefined;
|
|
9245
9214
|
} | {
|
|
9246
|
-
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;
|
|
9247
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, {
|
|
9243
|
+
id: string;
|
|
9244
|
+
label: string;
|
|
9245
|
+
minWidth?: number | undefined;
|
|
9246
|
+
maxWidth?: number | undefined;
|
|
9247
|
+
condition?: string | undefined;
|
|
9248
9248
|
}][], z.ZodTypeDef, unknown>;
|
|
9249
9249
|
updatedAt: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
9250
9250
|
deployment: z.ZodType<{
|
|
@@ -9367,12 +9367,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
9367
9367
|
};
|
|
9368
9368
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
9369
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][];
|
|
9370
9373
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
9371
9374
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
9372
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9373
9375
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
9374
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9375
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9376
9376
|
updatedAt: string;
|
|
9377
9377
|
deployment?: {
|
|
9378
9378
|
name: string;
|
|
@@ -9394,12 +9394,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
9394
9394
|
pages?: unknown;
|
|
9395
9395
|
styles?: unknown;
|
|
9396
9396
|
instances?: unknown;
|
|
9397
|
+
props?: unknown;
|
|
9398
|
+
styleSources?: unknown;
|
|
9399
|
+
styleSourceSelections?: unknown;
|
|
9397
9400
|
dataSources?: unknown;
|
|
9398
9401
|
resources?: unknown;
|
|
9399
|
-
props?: unknown;
|
|
9400
9402
|
breakpoints?: unknown;
|
|
9401
|
-
styleSourceSelections?: unknown;
|
|
9402
|
-
styleSources?: unknown;
|
|
9403
9403
|
updatedAt?: unknown;
|
|
9404
9404
|
deployment?: unknown;
|
|
9405
9405
|
}>;
|
|
@@ -9836,12 +9836,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
9836
9836
|
};
|
|
9837
9837
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
9838
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][];
|
|
9839
9842
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
9840
9843
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
9841
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
9842
9844
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
9843
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
9844
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
9845
9845
|
updatedAt: string;
|
|
9846
9846
|
deployment?: {
|
|
9847
9847
|
name: string;
|
|
@@ -9999,12 +9999,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
9999
9999
|
pages?: unknown;
|
|
10000
10000
|
styles?: unknown;
|
|
10001
10001
|
instances?: unknown;
|
|
10002
|
+
props?: unknown;
|
|
10003
|
+
styleSources?: unknown;
|
|
10004
|
+
styleSourceSelections?: unknown;
|
|
10002
10005
|
dataSources?: unknown;
|
|
10003
10006
|
resources?: unknown;
|
|
10004
|
-
props?: unknown;
|
|
10005
10007
|
breakpoints?: unknown;
|
|
10006
|
-
styleSourceSelections?: unknown;
|
|
10007
|
-
styleSources?: unknown;
|
|
10008
10008
|
updatedAt?: unknown;
|
|
10009
10009
|
deployment?: unknown;
|
|
10010
10010
|
};
|
|
@@ -10255,12 +10255,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
10255
10255
|
};
|
|
10256
10256
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
10257
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][];
|
|
10258
10261
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
10259
10262
|
resources: [import("@webstudio-is/sdk").Resource["id"], import("@webstudio-is/sdk").Resource][];
|
|
10260
|
-
props: [import("@webstudio-is/sdk").Prop["id"], import("@webstudio-is/sdk").Prop][];
|
|
10261
10263
|
breakpoints: [import("@webstudio-is/sdk").Breakpoint["id"], import("@webstudio-is/sdk").Breakpoint][];
|
|
10262
|
-
styleSourceSelections: [import("@webstudio-is/sdk").Instance["id"], import("@webstudio-is/sdk").StyleSourceSelection][];
|
|
10263
|
-
styleSources: [import("@webstudio-is/sdk").StyleSource["id"], import("@webstudio-is/sdk").StyleSource][];
|
|
10264
10264
|
updatedAt: string;
|
|
10265
10265
|
deployment?: {
|
|
10266
10266
|
name: string;
|
|
@@ -10423,12 +10423,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
10423
10423
|
pages?: unknown;
|
|
10424
10424
|
styles?: unknown;
|
|
10425
10425
|
instances?: unknown;
|
|
10426
|
+
props?: unknown;
|
|
10427
|
+
styleSources?: unknown;
|
|
10428
|
+
styleSourceSelections?: unknown;
|
|
10426
10429
|
dataSources?: unknown;
|
|
10427
10430
|
resources?: unknown;
|
|
10428
|
-
props?: unknown;
|
|
10429
10431
|
breakpoints?: unknown;
|
|
10430
|
-
styleSourceSelections?: unknown;
|
|
10431
|
-
styleSources?: unknown;
|
|
10432
10432
|
updatedAt?: unknown;
|
|
10433
10433
|
deployment?: unknown;
|
|
10434
10434
|
};
|
|
@@ -10679,12 +10679,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
10679
10679
|
};
|
|
10680
10680
|
styles: [import("@webstudio-is/sdk").StyleDeclKey, import("@webstudio-is/sdk").StyleDecl][];
|
|
10681
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][];
|
|
10682
10685
|
dataSources: [import("@webstudio-is/sdk").DataSource["id"], import("@webstudio-is/sdk").DataSource][];
|
|
10683
10686
|
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
10687
|
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
10688
|
updatedAt: string;
|
|
10689
10689
|
deployment?: {
|
|
10690
10690
|
name: string;
|
|
@@ -10847,12 +10847,12 @@ export declare const importProjectBundleInput: z.ZodEffects<z.ZodObject<{
|
|
|
10847
10847
|
pages?: unknown;
|
|
10848
10848
|
styles?: unknown;
|
|
10849
10849
|
instances?: unknown;
|
|
10850
|
+
props?: unknown;
|
|
10851
|
+
styleSources?: unknown;
|
|
10852
|
+
styleSourceSelections?: unknown;
|
|
10850
10853
|
dataSources?: unknown;
|
|
10851
10854
|
resources?: unknown;
|
|
10852
|
-
props?: unknown;
|
|
10853
10855
|
breakpoints?: unknown;
|
|
10854
|
-
styleSourceSelections?: unknown;
|
|
10855
|
-
styleSources?: unknown;
|
|
10856
10856
|
updatedAt?: unknown;
|
|
10857
10857
|
deployment?: unknown;
|
|
10858
10858
|
};
|
|
@@ -10882,6 +10882,30 @@ export declare const checkProjectBuildPermissionInput: z.ZodObject<{
|
|
|
10882
10882
|
}, {
|
|
10883
10883
|
projectId: string;
|
|
10884
10884
|
}>;
|
|
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>;
|
|
10885
10909
|
export declare const bundleVersion: `bundle-${string}`;
|
|
10886
10910
|
export declare const getBundleVersion: (data: unknown) => string | number | undefined;
|
|
10887
10911
|
export declare const getBundleVersionMismatchMessage: ({ ignoreVersionCheckHint, receivedVersion, }: {
|