@webstudio-is/sdk 0.91.0 → 0.92.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.
@@ -0,0 +1,234 @@
1
+ import { z } from "zod";
2
+ export declare const DataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
3
+ type: z.ZodLiteral<"number">;
4
+ value: z.ZodNumber;
5
+ }, "strip", z.ZodTypeAny, {
6
+ value: number;
7
+ type: "number";
8
+ }, {
9
+ value: number;
10
+ type: "number";
11
+ }>, z.ZodObject<{
12
+ type: z.ZodLiteral<"string">;
13
+ value: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ value: string;
16
+ type: "string";
17
+ }, {
18
+ value: string;
19
+ type: "string";
20
+ }>, z.ZodObject<{
21
+ type: z.ZodLiteral<"boolean">;
22
+ value: z.ZodBoolean;
23
+ }, "strip", z.ZodTypeAny, {
24
+ value: boolean;
25
+ type: "boolean";
26
+ }, {
27
+ value: boolean;
28
+ type: "boolean";
29
+ }>, z.ZodObject<{
30
+ type: z.ZodLiteral<"string[]">;
31
+ value: z.ZodArray<z.ZodString, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: string[];
34
+ type: "string[]";
35
+ }, {
36
+ value: string[];
37
+ type: "string[]";
38
+ }>]>;
39
+ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
40
+ type: z.ZodLiteral<"variable">;
41
+ id: z.ZodString;
42
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
43
+ name: z.ZodString;
44
+ value: z.ZodUnion<[z.ZodObject<{
45
+ type: z.ZodLiteral<"number">;
46
+ value: z.ZodNumber;
47
+ }, "strip", z.ZodTypeAny, {
48
+ value: number;
49
+ type: "number";
50
+ }, {
51
+ value: number;
52
+ type: "number";
53
+ }>, z.ZodObject<{
54
+ type: z.ZodLiteral<"string">;
55
+ value: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ value: string;
58
+ type: "string";
59
+ }, {
60
+ value: string;
61
+ type: "string";
62
+ }>, z.ZodObject<{
63
+ type: z.ZodLiteral<"boolean">;
64
+ value: z.ZodBoolean;
65
+ }, "strip", z.ZodTypeAny, {
66
+ value: boolean;
67
+ type: "boolean";
68
+ }, {
69
+ value: boolean;
70
+ type: "boolean";
71
+ }>, z.ZodObject<{
72
+ type: z.ZodLiteral<"string[]">;
73
+ value: z.ZodArray<z.ZodString, "many">;
74
+ }, "strip", z.ZodTypeAny, {
75
+ value: string[];
76
+ type: "string[]";
77
+ }, {
78
+ value: string[];
79
+ type: "string[]";
80
+ }>]>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ value: {
83
+ value: number;
84
+ type: "number";
85
+ } | {
86
+ value: string;
87
+ type: "string";
88
+ } | {
89
+ value: boolean;
90
+ type: "boolean";
91
+ } | {
92
+ value: string[];
93
+ type: "string[]";
94
+ };
95
+ type: "variable";
96
+ name: string;
97
+ id: string;
98
+ scopeInstanceId?: string | undefined;
99
+ }, {
100
+ value: {
101
+ value: number;
102
+ type: "number";
103
+ } | {
104
+ value: string;
105
+ type: "string";
106
+ } | {
107
+ value: boolean;
108
+ type: "boolean";
109
+ } | {
110
+ value: string[];
111
+ type: "string[]";
112
+ };
113
+ type: "variable";
114
+ name: string;
115
+ id: string;
116
+ scopeInstanceId?: string | undefined;
117
+ }>, z.ZodObject<{
118
+ type: z.ZodLiteral<"expression">;
119
+ id: z.ZodString;
120
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
121
+ name: z.ZodString;
122
+ code: z.ZodString;
123
+ }, "strip", z.ZodTypeAny, {
124
+ code: string;
125
+ type: "expression";
126
+ name: string;
127
+ id: string;
128
+ scopeInstanceId?: string | undefined;
129
+ }, {
130
+ code: string;
131
+ type: "expression";
132
+ name: string;
133
+ id: string;
134
+ scopeInstanceId?: string | undefined;
135
+ }>]>;
136
+ export type DataSource = z.infer<typeof DataSource>;
137
+ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
138
+ type: z.ZodLiteral<"variable">;
139
+ id: z.ZodString;
140
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
141
+ name: z.ZodString;
142
+ value: z.ZodUnion<[z.ZodObject<{
143
+ type: z.ZodLiteral<"number">;
144
+ value: z.ZodNumber;
145
+ }, "strip", z.ZodTypeAny, {
146
+ value: number;
147
+ type: "number";
148
+ }, {
149
+ value: number;
150
+ type: "number";
151
+ }>, z.ZodObject<{
152
+ type: z.ZodLiteral<"string">;
153
+ value: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ value: string;
156
+ type: "string";
157
+ }, {
158
+ value: string;
159
+ type: "string";
160
+ }>, z.ZodObject<{
161
+ type: z.ZodLiteral<"boolean">;
162
+ value: z.ZodBoolean;
163
+ }, "strip", z.ZodTypeAny, {
164
+ value: boolean;
165
+ type: "boolean";
166
+ }, {
167
+ value: boolean;
168
+ type: "boolean";
169
+ }>, z.ZodObject<{
170
+ type: z.ZodLiteral<"string[]">;
171
+ value: z.ZodArray<z.ZodString, "many">;
172
+ }, "strip", z.ZodTypeAny, {
173
+ value: string[];
174
+ type: "string[]";
175
+ }, {
176
+ value: string[];
177
+ type: "string[]";
178
+ }>]>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ value: {
181
+ value: number;
182
+ type: "number";
183
+ } | {
184
+ value: string;
185
+ type: "string";
186
+ } | {
187
+ value: boolean;
188
+ type: "boolean";
189
+ } | {
190
+ value: string[];
191
+ type: "string[]";
192
+ };
193
+ type: "variable";
194
+ name: string;
195
+ id: string;
196
+ scopeInstanceId?: string | undefined;
197
+ }, {
198
+ value: {
199
+ value: number;
200
+ type: "number";
201
+ } | {
202
+ value: string;
203
+ type: "string";
204
+ } | {
205
+ value: boolean;
206
+ type: "boolean";
207
+ } | {
208
+ value: string[];
209
+ type: "string[]";
210
+ };
211
+ type: "variable";
212
+ name: string;
213
+ id: string;
214
+ scopeInstanceId?: string | undefined;
215
+ }>, z.ZodObject<{
216
+ type: z.ZodLiteral<"expression">;
217
+ id: z.ZodString;
218
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
219
+ name: z.ZodString;
220
+ code: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ code: string;
223
+ type: "expression";
224
+ name: string;
225
+ id: string;
226
+ scopeInstanceId?: string | undefined;
227
+ }, {
228
+ code: string;
229
+ type: "expression";
230
+ name: string;
231
+ id: string;
232
+ scopeInstanceId?: string | undefined;
233
+ }>]>>;
234
+ export type DataSources = z.infer<typeof DataSources>;
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const Deployment: z.ZodObject<{
3
+ domains: z.ZodArray<z.ZodString, "many">;
4
+ projectDomain: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ domains: string[];
7
+ projectDomain: string;
8
+ }, {
9
+ domains: string[];
10
+ projectDomain: string;
11
+ }>;
12
+ export type Deployment = z.infer<typeof Deployment>;
@@ -0,0 +1,123 @@
1
+ import { z } from "zod";
2
+ export declare const Text: z.ZodObject<{
3
+ type: z.ZodLiteral<"text">;
4
+ value: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ value: string;
7
+ type: "text";
8
+ }, {
9
+ value: string;
10
+ type: "text";
11
+ }>;
12
+ export type Text = z.infer<typeof Text>;
13
+ export declare const Id: z.ZodObject<{
14
+ type: z.ZodLiteral<"id">;
15
+ value: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ value: string;
18
+ type: "id";
19
+ }, {
20
+ value: string;
21
+ type: "id";
22
+ }>;
23
+ export type Id = z.infer<typeof Id>;
24
+ export declare const Instance: z.ZodObject<{
25
+ type: z.ZodLiteral<"instance">;
26
+ id: z.ZodString;
27
+ component: z.ZodString;
28
+ label: z.ZodOptional<z.ZodString>;
29
+ children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
30
+ type: z.ZodLiteral<"id">;
31
+ value: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: string;
34
+ type: "id";
35
+ }, {
36
+ value: string;
37
+ type: "id";
38
+ }>, z.ZodObject<{
39
+ type: z.ZodLiteral<"text">;
40
+ value: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ value: string;
43
+ type: "text";
44
+ }, {
45
+ value: string;
46
+ type: "text";
47
+ }>]>, "many">;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "instance";
50
+ id: string;
51
+ component: string;
52
+ children: ({
53
+ value: string;
54
+ type: "text";
55
+ } | {
56
+ value: string;
57
+ type: "id";
58
+ })[];
59
+ label?: string | undefined;
60
+ }, {
61
+ type: "instance";
62
+ id: string;
63
+ component: string;
64
+ children: ({
65
+ value: string;
66
+ type: "text";
67
+ } | {
68
+ value: string;
69
+ type: "id";
70
+ })[];
71
+ label?: string | undefined;
72
+ }>;
73
+ export type Instance = z.infer<typeof Instance>;
74
+ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
75
+ type: z.ZodLiteral<"instance">;
76
+ id: z.ZodString;
77
+ component: z.ZodString;
78
+ label: z.ZodOptional<z.ZodString>;
79
+ children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
80
+ type: z.ZodLiteral<"id">;
81
+ value: z.ZodString;
82
+ }, "strip", z.ZodTypeAny, {
83
+ value: string;
84
+ type: "id";
85
+ }, {
86
+ value: string;
87
+ type: "id";
88
+ }>, z.ZodObject<{
89
+ type: z.ZodLiteral<"text">;
90
+ value: z.ZodString;
91
+ }, "strip", z.ZodTypeAny, {
92
+ value: string;
93
+ type: "text";
94
+ }, {
95
+ value: string;
96
+ type: "text";
97
+ }>]>, "many">;
98
+ }, "strip", z.ZodTypeAny, {
99
+ type: "instance";
100
+ id: string;
101
+ component: string;
102
+ children: ({
103
+ value: string;
104
+ type: "text";
105
+ } | {
106
+ value: string;
107
+ type: "id";
108
+ })[];
109
+ label?: string | undefined;
110
+ }, {
111
+ type: "instance";
112
+ id: string;
113
+ component: string;
114
+ children: ({
115
+ value: string;
116
+ type: "text";
117
+ } | {
118
+ value: string;
119
+ type: "id";
120
+ })[];
121
+ label?: string | undefined;
122
+ }>>;
123
+ export type Instances = z.infer<typeof Instances>;
@@ -0,0 +1,35 @@
1
+ import { z, type ZodType } from "zod";
2
+ export declare const PageName: z.ZodEffects<z.ZodString, string, string>;
3
+ export declare const PageTitle: z.ZodEffects<z.ZodString, string, string>;
4
+ export declare const HomePagePath: z.ZodEffects<z.ZodString, string, string>;
5
+ export declare const pathValidators: (baseValidator: ZodType<string>) => ZodType<string>;
6
+ export declare const PagePath: z.ZodType<string, z.ZodTypeDef, string>;
7
+ declare const Page: z.ZodObject<{
8
+ path: z.ZodType<string, z.ZodTypeDef, string>;
9
+ id: z.ZodString;
10
+ name: z.ZodEffects<z.ZodString, string, string>;
11
+ title: z.ZodEffects<z.ZodString, string, string>;
12
+ meta: z.ZodRecord<z.ZodString, z.ZodString>;
13
+ rootInstanceId: z.ZodString;
14
+ }, "strip", z.ZodTypeAny, {
15
+ path: string;
16
+ name: string;
17
+ meta: Record<string, string>;
18
+ id: string;
19
+ title: string;
20
+ rootInstanceId: string;
21
+ }, {
22
+ path: string;
23
+ name: string;
24
+ meta: Record<string, string>;
25
+ id: string;
26
+ title: string;
27
+ rootInstanceId: string;
28
+ }>;
29
+ export type Page = z.infer<typeof Page>;
30
+ export declare const Pages: z.ZodType<{
31
+ homePage: Page;
32
+ pages: Array<Page>;
33
+ }>;
34
+ export type Pages = z.infer<typeof Pages>;
35
+ export {};