@webstudio-is/sdk 0.0.0-5844e28 → 0.0.0-73cd6ea

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.
@@ -48,7 +48,7 @@ export declare const DataSourceVariableValue: z.ZodUnion<[z.ZodObject<{
48
48
  export declare const DataSource: z.ZodUnion<[z.ZodObject<{
49
49
  type: z.ZodLiteral<"variable">;
50
50
  id: z.ZodString;
51
- scopeInstanceId: z.ZodString;
51
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
52
52
  name: z.ZodString;
53
53
  value: z.ZodUnion<[z.ZodObject<{
54
54
  type: z.ZodLiteral<"number">;
@@ -116,7 +116,7 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
116
116
  type: "variable";
117
117
  name: string;
118
118
  id: string;
119
- scopeInstanceId: string;
119
+ scopeInstanceId?: string | undefined;
120
120
  }, {
121
121
  value: {
122
122
  value: number;
@@ -137,46 +137,46 @@ export declare const DataSource: z.ZodUnion<[z.ZodObject<{
137
137
  type: "variable";
138
138
  name: string;
139
139
  id: string;
140
- scopeInstanceId: string;
140
+ scopeInstanceId?: string | undefined;
141
141
  }>, z.ZodObject<{
142
142
  type: z.ZodLiteral<"parameter">;
143
143
  id: z.ZodString;
144
- scopeInstanceId: z.ZodString;
144
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
145
145
  name: z.ZodString;
146
146
  }, "strip", z.ZodTypeAny, {
147
147
  type: "parameter";
148
148
  name: string;
149
149
  id: string;
150
- scopeInstanceId: string;
150
+ scopeInstanceId?: string | undefined;
151
151
  }, {
152
152
  type: "parameter";
153
153
  name: string;
154
154
  id: string;
155
- scopeInstanceId: string;
155
+ scopeInstanceId?: string | undefined;
156
156
  }>, z.ZodObject<{
157
157
  type: z.ZodLiteral<"resource">;
158
158
  id: z.ZodString;
159
- scopeInstanceId: z.ZodString;
159
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
160
160
  name: z.ZodString;
161
161
  resourceId: z.ZodString;
162
162
  }, "strip", z.ZodTypeAny, {
163
163
  type: "resource";
164
164
  name: string;
165
165
  id: string;
166
- scopeInstanceId: string;
167
166
  resourceId: string;
167
+ scopeInstanceId?: string | undefined;
168
168
  }, {
169
169
  type: "resource";
170
170
  name: string;
171
171
  id: string;
172
- scopeInstanceId: string;
173
172
  resourceId: string;
173
+ scopeInstanceId?: string | undefined;
174
174
  }>]>;
175
175
  export type DataSource = z.infer<typeof DataSource>;
176
176
  export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<{
177
177
  type: z.ZodLiteral<"variable">;
178
178
  id: z.ZodString;
179
- scopeInstanceId: z.ZodString;
179
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
180
180
  name: z.ZodString;
181
181
  value: z.ZodUnion<[z.ZodObject<{
182
182
  type: z.ZodLiteral<"number">;
@@ -244,7 +244,7 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
244
244
  type: "variable";
245
245
  name: string;
246
246
  id: string;
247
- scopeInstanceId: string;
247
+ scopeInstanceId?: string | undefined;
248
248
  }, {
249
249
  value: {
250
250
  value: number;
@@ -265,39 +265,39 @@ export declare const DataSources: z.ZodMap<z.ZodString, z.ZodUnion<[z.ZodObject<
265
265
  type: "variable";
266
266
  name: string;
267
267
  id: string;
268
- scopeInstanceId: string;
268
+ scopeInstanceId?: string | undefined;
269
269
  }>, z.ZodObject<{
270
270
  type: z.ZodLiteral<"parameter">;
271
271
  id: z.ZodString;
272
- scopeInstanceId: z.ZodString;
272
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
273
273
  name: z.ZodString;
274
274
  }, "strip", z.ZodTypeAny, {
275
275
  type: "parameter";
276
276
  name: string;
277
277
  id: string;
278
- scopeInstanceId: string;
278
+ scopeInstanceId?: string | undefined;
279
279
  }, {
280
280
  type: "parameter";
281
281
  name: string;
282
282
  id: string;
283
- scopeInstanceId: string;
283
+ scopeInstanceId?: string | undefined;
284
284
  }>, z.ZodObject<{
285
285
  type: z.ZodLiteral<"resource">;
286
286
  id: z.ZodString;
287
- scopeInstanceId: z.ZodString;
287
+ scopeInstanceId: z.ZodOptional<z.ZodString>;
288
288
  name: z.ZodString;
289
289
  resourceId: z.ZodString;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  type: "resource";
292
292
  name: string;
293
293
  id: string;
294
- scopeInstanceId: string;
295
294
  resourceId: string;
295
+ scopeInstanceId?: string | undefined;
296
296
  }, {
297
297
  type: "resource";
298
298
  name: string;
299
299
  id: string;
300
- scopeInstanceId: string;
301
300
  resourceId: string;
301
+ scopeInstanceId?: string | undefined;
302
302
  }>]>>;
303
303
  export type DataSources = z.infer<typeof DataSources>;
@@ -1,21 +1,21 @@
1
1
  import { z } from "zod";
2
- export declare const Templates: z.ZodEnum<["vanilla", "docker", "vercel", "vercel-legacy", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>;
2
+ export declare const Templates: z.ZodEnum<["docker", "vercel", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>;
3
3
  export type Templates = z.infer<typeof Templates>;
4
4
  export declare const Deployment: z.ZodUnion<[z.ZodObject<{
5
5
  destination: z.ZodLiteral<"static">;
6
6
  name: z.ZodString;
7
7
  assetsDomain: z.ZodString;
8
- templates: z.ZodArray<z.ZodEnum<["vanilla", "docker", "vercel", "vercel-legacy", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
8
+ templates: z.ZodArray<z.ZodEnum<["docker", "vercel", "netlify", "ssg", "ssg-netlify", "ssg-vercel"]>, "many">;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  name: string;
11
11
  destination: "static";
12
12
  assetsDomain: string;
13
- templates: ("vanilla" | "docker" | "vercel" | "vercel-legacy" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
13
+ templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
14
14
  }, {
15
15
  name: string;
16
16
  destination: "static";
17
17
  assetsDomain: string;
18
- templates: ("vanilla" | "docker" | "vercel" | "vercel-legacy" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
18
+ templates: ("docker" | "vercel" | "netlify" | "ssg" | "ssg-netlify" | "ssg-vercel")[];
19
19
  }>, z.ZodObject<{
20
20
  destination: z.ZodOptional<z.ZodLiteral<"saas">>;
21
21
  domains: z.ZodArray<z.ZodString, "many">;
@@ -70,6 +70,7 @@ export declare const Instance: z.ZodObject<{
70
70
  type: z.ZodLiteral<"instance">;
71
71
  id: z.ZodString;
72
72
  component: z.ZodString;
73
+ tag: z.ZodOptional<z.ZodString>;
73
74
  label: z.ZodOptional<z.ZodString>;
74
75
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
75
76
  type: z.ZodLiteral<"id">;
@@ -104,8 +105,6 @@ export declare const Instance: z.ZodObject<{
104
105
  }>]>, "many">;
105
106
  }, "strip", z.ZodTypeAny, {
106
107
  type: "instance";
107
- id: string;
108
- component: string;
109
108
  children: ({
110
109
  value: string;
111
110
  type: "text";
@@ -117,11 +116,12 @@ export declare const Instance: z.ZodObject<{
117
116
  value: string;
118
117
  type: "expression";
119
118
  })[];
119
+ id: string;
120
+ component: string;
120
121
  label?: string | undefined;
122
+ tag?: string | undefined;
121
123
  }, {
122
124
  type: "instance";
123
- id: string;
124
- component: string;
125
125
  children: ({
126
126
  value: string;
127
127
  type: "text";
@@ -133,13 +133,17 @@ export declare const Instance: z.ZodObject<{
133
133
  value: string;
134
134
  type: "expression";
135
135
  })[];
136
+ id: string;
137
+ component: string;
136
138
  label?: string | undefined;
139
+ tag?: string | undefined;
137
140
  }>;
138
141
  export type Instance = z.infer<typeof Instance>;
139
142
  export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
140
143
  type: z.ZodLiteral<"instance">;
141
144
  id: z.ZodString;
142
145
  component: z.ZodString;
146
+ tag: z.ZodOptional<z.ZodString>;
143
147
  label: z.ZodOptional<z.ZodString>;
144
148
  children: z.ZodArray<z.ZodUnion<[z.ZodObject<{
145
149
  type: z.ZodLiteral<"id">;
@@ -174,8 +178,6 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
174
178
  }>]>, "many">;
175
179
  }, "strip", z.ZodTypeAny, {
176
180
  type: "instance";
177
- id: string;
178
- component: string;
179
181
  children: ({
180
182
  value: string;
181
183
  type: "text";
@@ -187,11 +189,12 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
187
189
  value: string;
188
190
  type: "expression";
189
191
  })[];
192
+ id: string;
193
+ component: string;
190
194
  label?: string | undefined;
195
+ tag?: string | undefined;
191
196
  }, {
192
197
  type: "instance";
193
- id: string;
194
- component: string;
195
198
  children: ({
196
199
  value: string;
197
200
  type: "text";
@@ -203,215 +206,9 @@ export declare const Instances: z.ZodMap<z.ZodString, z.ZodObject<{
203
206
  value: string;
204
207
  type: "expression";
205
208
  })[];
209
+ id: string;
210
+ component: string;
206
211
  label?: string | undefined;
212
+ tag?: string | undefined;
207
213
  }>>;
208
214
  export type Instances = z.infer<typeof Instances>;
209
- export declare const MatcherRelation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
210
- export type MatcherRelation = z.infer<typeof MatcherRelation>;
211
- export declare const MatcherOperation: z.ZodObject<{
212
- $eq: z.ZodOptional<z.ZodString>;
213
- $neq: z.ZodOptional<z.ZodString>;
214
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
- }, "strip", z.ZodTypeAny, {
217
- $eq?: string | undefined;
218
- $neq?: string | undefined;
219
- $in?: string[] | undefined;
220
- $nin?: string[] | undefined;
221
- }, {
222
- $eq?: string | undefined;
223
- $neq?: string | undefined;
224
- $in?: string[] | undefined;
225
- $nin?: string[] | undefined;
226
- }>;
227
- export type MatcherOperation = z.infer<typeof MatcherOperation>;
228
- export declare const Matcher: z.ZodObject<{
229
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
230
- component: z.ZodOptional<z.ZodObject<{
231
- $eq: z.ZodOptional<z.ZodString>;
232
- $neq: z.ZodOptional<z.ZodString>;
233
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
234
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
- }, "strip", z.ZodTypeAny, {
236
- $eq?: string | undefined;
237
- $neq?: string | undefined;
238
- $in?: string[] | undefined;
239
- $nin?: string[] | undefined;
240
- }, {
241
- $eq?: string | undefined;
242
- $neq?: string | undefined;
243
- $in?: string[] | undefined;
244
- $nin?: string[] | undefined;
245
- }>>;
246
- tag: z.ZodOptional<z.ZodObject<{
247
- $eq: z.ZodOptional<z.ZodString>;
248
- $neq: z.ZodOptional<z.ZodString>;
249
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
251
- }, "strip", z.ZodTypeAny, {
252
- $eq?: string | undefined;
253
- $neq?: string | undefined;
254
- $in?: string[] | undefined;
255
- $nin?: string[] | undefined;
256
- }, {
257
- $eq?: string | undefined;
258
- $neq?: string | undefined;
259
- $in?: string[] | undefined;
260
- $nin?: string[] | undefined;
261
- }>>;
262
- }, "strip", z.ZodTypeAny, {
263
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
264
- component?: {
265
- $eq?: string | undefined;
266
- $neq?: string | undefined;
267
- $in?: string[] | undefined;
268
- $nin?: string[] | undefined;
269
- } | undefined;
270
- tag?: {
271
- $eq?: string | undefined;
272
- $neq?: string | undefined;
273
- $in?: string[] | undefined;
274
- $nin?: string[] | undefined;
275
- } | undefined;
276
- }, {
277
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
278
- component?: {
279
- $eq?: string | undefined;
280
- $neq?: string | undefined;
281
- $in?: string[] | undefined;
282
- $nin?: string[] | undefined;
283
- } | undefined;
284
- tag?: {
285
- $eq?: string | undefined;
286
- $neq?: string | undefined;
287
- $in?: string[] | undefined;
288
- $nin?: string[] | undefined;
289
- } | undefined;
290
- }>;
291
- export type Matcher = z.infer<typeof Matcher>;
292
- export declare const Matchers: z.ZodUnion<[z.ZodObject<{
293
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
294
- component: z.ZodOptional<z.ZodObject<{
295
- $eq: z.ZodOptional<z.ZodString>;
296
- $neq: z.ZodOptional<z.ZodString>;
297
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
299
- }, "strip", z.ZodTypeAny, {
300
- $eq?: string | undefined;
301
- $neq?: string | undefined;
302
- $in?: string[] | undefined;
303
- $nin?: string[] | undefined;
304
- }, {
305
- $eq?: string | undefined;
306
- $neq?: string | undefined;
307
- $in?: string[] | undefined;
308
- $nin?: string[] | undefined;
309
- }>>;
310
- tag: z.ZodOptional<z.ZodObject<{
311
- $eq: z.ZodOptional<z.ZodString>;
312
- $neq: z.ZodOptional<z.ZodString>;
313
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
314
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
- }, "strip", z.ZodTypeAny, {
316
- $eq?: string | undefined;
317
- $neq?: string | undefined;
318
- $in?: string[] | undefined;
319
- $nin?: string[] | undefined;
320
- }, {
321
- $eq?: string | undefined;
322
- $neq?: string | undefined;
323
- $in?: string[] | undefined;
324
- $nin?: string[] | undefined;
325
- }>>;
326
- }, "strip", z.ZodTypeAny, {
327
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
328
- component?: {
329
- $eq?: string | undefined;
330
- $neq?: string | undefined;
331
- $in?: string[] | undefined;
332
- $nin?: string[] | undefined;
333
- } | undefined;
334
- tag?: {
335
- $eq?: string | undefined;
336
- $neq?: string | undefined;
337
- $in?: string[] | undefined;
338
- $nin?: string[] | undefined;
339
- } | undefined;
340
- }, {
341
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
342
- component?: {
343
- $eq?: string | undefined;
344
- $neq?: string | undefined;
345
- $in?: string[] | undefined;
346
- $nin?: string[] | undefined;
347
- } | undefined;
348
- tag?: {
349
- $eq?: string | undefined;
350
- $neq?: string | undefined;
351
- $in?: string[] | undefined;
352
- $nin?: string[] | undefined;
353
- } | undefined;
354
- }>, z.ZodArray<z.ZodObject<{
355
- relation: z.ZodUnion<[z.ZodLiteral<"ancestor">, z.ZodLiteral<"parent">, z.ZodLiteral<"self">, z.ZodLiteral<"child">, z.ZodLiteral<"descendant">]>;
356
- component: z.ZodOptional<z.ZodObject<{
357
- $eq: z.ZodOptional<z.ZodString>;
358
- $neq: z.ZodOptional<z.ZodString>;
359
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
- }, "strip", z.ZodTypeAny, {
362
- $eq?: string | undefined;
363
- $neq?: string | undefined;
364
- $in?: string[] | undefined;
365
- $nin?: string[] | undefined;
366
- }, {
367
- $eq?: string | undefined;
368
- $neq?: string | undefined;
369
- $in?: string[] | undefined;
370
- $nin?: string[] | undefined;
371
- }>>;
372
- tag: z.ZodOptional<z.ZodObject<{
373
- $eq: z.ZodOptional<z.ZodString>;
374
- $neq: z.ZodOptional<z.ZodString>;
375
- $in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
- $nin: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
377
- }, "strip", z.ZodTypeAny, {
378
- $eq?: string | undefined;
379
- $neq?: string | undefined;
380
- $in?: string[] | undefined;
381
- $nin?: string[] | undefined;
382
- }, {
383
- $eq?: string | undefined;
384
- $neq?: string | undefined;
385
- $in?: string[] | undefined;
386
- $nin?: string[] | undefined;
387
- }>>;
388
- }, "strip", z.ZodTypeAny, {
389
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
390
- component?: {
391
- $eq?: string | undefined;
392
- $neq?: string | undefined;
393
- $in?: string[] | undefined;
394
- $nin?: string[] | undefined;
395
- } | undefined;
396
- tag?: {
397
- $eq?: string | undefined;
398
- $neq?: string | undefined;
399
- $in?: string[] | undefined;
400
- $nin?: string[] | undefined;
401
- } | undefined;
402
- }, {
403
- relation: "ancestor" | "parent" | "self" | "child" | "descendant";
404
- component?: {
405
- $eq?: string | undefined;
406
- $neq?: string | undefined;
407
- $in?: string[] | undefined;
408
- $nin?: string[] | undefined;
409
- } | undefined;
410
- tag?: {
411
- $eq?: string | undefined;
412
- $neq?: string | undefined;
413
- $in?: string[] | undefined;
414
- $nin?: string[] | undefined;
415
- } | undefined;
416
- }>, "many">]>;
417
- export type Matchers = z.infer<typeof Matchers>;