@percher/toml 0.1.0 → 0.1.2

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/dist/schema.d.ts CHANGED
@@ -1,40 +1,56 @@
1
1
  import { z } from "zod";
2
2
  export declare const appSchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
- runtime: z.ZodEnum<["node", "python", "static", "docker"]>;
5
- framework: z.ZodOptional<z.ZodEnum<["nextjs", "sveltekit", "astro", "remix", "vite", "express", "fastify", "hono", "fastapi", "flask", "django", "docker"]>>;
6
- }, "strip", z.ZodTypeAny, {
4
+ runtime: z.ZodEnum<["node", "bun", "python", "static", "docker"]>;
5
+ framework: z.ZodOptional<z.ZodEnum<["nextjs", "sveltekit", "astro", "remix", "nuxt", "vite", "preact", "solid", "express", "fastify", "hono", "elysia", "fastapi", "flask", "django", "eleventy", "hugo", "laravel", "rails", "phoenix", "go", "rust", "dotnet", "java", "docker"]>>;
6
+ }, "strict", z.ZodTypeAny, {
7
7
  name: string;
8
- runtime: "node" | "python" | "static" | "docker";
9
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
8
+ runtime: "node" | "bun" | "python" | "static" | "docker";
9
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
10
10
  }, {
11
11
  name: string;
12
- runtime: "node" | "python" | "static" | "docker";
13
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
12
+ runtime: "node" | "bun" | "python" | "static" | "docker";
13
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
14
14
  }>;
15
15
  export declare const buildSchema: z.ZodObject<{
16
16
  command: z.ZodOptional<z.ZodString>;
17
17
  output: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
18
- }, "strip", z.ZodTypeAny, {
18
+ /**
19
+ * Allow-list of env var names from the app's runtime env that should
20
+ * also be available at build time. Frameworks like Vite/Next/Astro/
21
+ * Expo bake `*_PUBLIC_*` values into the static bundle at build time;
22
+ * without this list, those variables are only present at runtime and
23
+ * frontends ship with the default value baked in. Values are read
24
+ * from the encrypted env store at deploy time — never from the TOML
25
+ * itself, so no secrets in source control.
26
+ */
27
+ pass_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ }, "strict", z.ZodTypeAny, {
19
29
  command?: string | undefined;
20
30
  output?: string | undefined;
31
+ pass_env?: string[] | undefined;
21
32
  }, {
22
33
  command?: string | undefined;
23
34
  output?: string | undefined;
35
+ pass_env?: string[] | undefined;
24
36
  }>;
25
37
  export declare const webSchema: z.ZodObject<{
26
38
  port: z.ZodNumber;
27
39
  health: z.ZodOptional<z.ZodString>;
28
- }, "strip", z.ZodTypeAny, {
40
+ /** Enable password protection. Set SITE_PASSWORD env var to configure. */
41
+ password: z.ZodOptional<z.ZodBoolean>;
42
+ }, "strict", z.ZodTypeAny, {
29
43
  port: number;
30
44
  health?: string | undefined;
45
+ password?: boolean | undefined;
31
46
  }, {
32
47
  port: number;
33
48
  health?: string | undefined;
49
+ password?: boolean | undefined;
34
50
  }>;
35
51
  export declare const convexConfigSchema: z.ZodObject<{
36
52
  deployment_url: z.ZodString;
37
- }, "strip", z.ZodTypeAny, {
53
+ }, "strict", z.ZodTypeAny, {
38
54
  deployment_url: string;
39
55
  }, {
40
56
  deployment_url: string;
@@ -42,7 +58,7 @@ export declare const convexConfigSchema: z.ZodObject<{
42
58
  export declare const supabaseConfigSchema: z.ZodObject<{
43
59
  url: z.ZodString;
44
60
  anon_key: z.ZodOptional<z.ZodString>;
45
- }, "strip", z.ZodTypeAny, {
61
+ }, "strict", z.ZodTypeAny, {
46
62
  url: string;
47
63
  anon_key?: string | undefined;
48
64
  }, {
@@ -50,11 +66,11 @@ export declare const supabaseConfigSchema: z.ZodObject<{
50
66
  anon_key?: string | undefined;
51
67
  }>;
52
68
  export declare const dataSchema: z.ZodEffects<z.ZodObject<{
53
- mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "none"]>;
69
+ mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]>;
54
70
  file: z.ZodOptional<z.ZodString>;
55
71
  convex: z.ZodOptional<z.ZodObject<{
56
72
  deployment_url: z.ZodString;
57
- }, "strip", z.ZodTypeAny, {
73
+ }, "strict", z.ZodTypeAny, {
58
74
  deployment_url: string;
59
75
  }, {
60
76
  deployment_url: string;
@@ -62,15 +78,15 @@ export declare const dataSchema: z.ZodEffects<z.ZodObject<{
62
78
  supabase: z.ZodOptional<z.ZodObject<{
63
79
  url: z.ZodString;
64
80
  anon_key: z.ZodOptional<z.ZodString>;
65
- }, "strip", z.ZodTypeAny, {
81
+ }, "strict", z.ZodTypeAny, {
66
82
  url: string;
67
83
  anon_key?: string | undefined;
68
84
  }, {
69
85
  url: string;
70
86
  anon_key?: string | undefined;
71
87
  }>>;
72
- }, "strip", z.ZodTypeAny, {
73
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
88
+ }, "strict", z.ZodTypeAny, {
89
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
74
90
  convex?: {
75
91
  deployment_url: string;
76
92
  } | undefined;
@@ -80,7 +96,7 @@ export declare const dataSchema: z.ZodEffects<z.ZodObject<{
80
96
  } | undefined;
81
97
  file?: string | undefined;
82
98
  }, {
83
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
99
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
84
100
  convex?: {
85
101
  deployment_url: string;
86
102
  } | undefined;
@@ -90,7 +106,7 @@ export declare const dataSchema: z.ZodEffects<z.ZodObject<{
90
106
  } | undefined;
91
107
  file?: string | undefined;
92
108
  }>, {
93
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
109
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
94
110
  convex?: {
95
111
  deployment_url: string;
96
112
  } | undefined;
@@ -100,7 +116,7 @@ export declare const dataSchema: z.ZodEffects<z.ZodObject<{
100
116
  } | undefined;
101
117
  file?: string | undefined;
102
118
  }, {
103
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
119
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
104
120
  convex?: {
105
121
  deployment_url: string;
106
122
  } | undefined;
@@ -113,29 +129,165 @@ export declare const dataSchema: z.ZodEffects<z.ZodObject<{
113
129
  export declare const domainSchema: z.ZodObject<{
114
130
  subdomain: z.ZodOptional<z.ZodString>;
115
131
  custom: z.ZodOptional<z.ZodString>;
116
- }, "strip", z.ZodTypeAny, {
132
+ }, "strict", z.ZodTypeAny, {
117
133
  custom?: string | undefined;
118
134
  subdomain?: string | undefined;
119
135
  }, {
120
136
  custom?: string | undefined;
121
137
  subdomain?: string | undefined;
122
138
  }>;
123
- export declare const resourcesSchema: z.ZodObject<{
139
+ /**
140
+ * Phase 6.3: CPU-based autoscaling. Mutually exclusive with the static
141
+ * `instances` field on the parent resourcesSchema — see the superRefine
142
+ * below. All threshold/sustain fields have sane defaults and most users
143
+ * never touch them.
144
+ */
145
+ export declare const autoscaleSchema: z.ZodEffects<z.ZodObject<{
146
+ min: z.ZodNumber;
147
+ max: z.ZodNumber;
148
+ scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
149
+ scale_up_sustain_seconds: z.ZodOptional<z.ZodNumber>;
150
+ scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
151
+ scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
152
+ cooldown_seconds: z.ZodOptional<z.ZodNumber>;
153
+ }, "strict", z.ZodTypeAny, {
154
+ min: number;
155
+ max: number;
156
+ scale_up_cpu_percent?: number | undefined;
157
+ scale_up_sustain_seconds?: number | undefined;
158
+ scale_down_cpu_percent?: number | undefined;
159
+ scale_down_sustain_seconds?: number | undefined;
160
+ cooldown_seconds?: number | undefined;
161
+ }, {
162
+ min: number;
163
+ max: number;
164
+ scale_up_cpu_percent?: number | undefined;
165
+ scale_up_sustain_seconds?: number | undefined;
166
+ scale_down_cpu_percent?: number | undefined;
167
+ scale_down_sustain_seconds?: number | undefined;
168
+ cooldown_seconds?: number | undefined;
169
+ }>, {
170
+ min: number;
171
+ max: number;
172
+ scale_up_cpu_percent?: number | undefined;
173
+ scale_up_sustain_seconds?: number | undefined;
174
+ scale_down_cpu_percent?: number | undefined;
175
+ scale_down_sustain_seconds?: number | undefined;
176
+ cooldown_seconds?: number | undefined;
177
+ }, {
178
+ min: number;
179
+ max: number;
180
+ scale_up_cpu_percent?: number | undefined;
181
+ scale_up_sustain_seconds?: number | undefined;
182
+ scale_down_cpu_percent?: number | undefined;
183
+ scale_down_sustain_seconds?: number | undefined;
184
+ cooldown_seconds?: number | undefined;
185
+ }>;
186
+ export declare const resourcesSchema: z.ZodEffects<z.ZodObject<{
124
187
  memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
125
188
  cpu: z.ZodOptional<z.ZodNumber>;
126
- }, "strip", z.ZodTypeAny, {
189
+ /** Number of parallel container instances (Phase 6.1). Plan-gated. */
190
+ instances: z.ZodOptional<z.ZodNumber>;
191
+ autoscale: z.ZodOptional<z.ZodEffects<z.ZodObject<{
192
+ min: z.ZodNumber;
193
+ max: z.ZodNumber;
194
+ scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
195
+ scale_up_sustain_seconds: z.ZodOptional<z.ZodNumber>;
196
+ scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
197
+ scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
198
+ cooldown_seconds: z.ZodOptional<z.ZodNumber>;
199
+ }, "strict", z.ZodTypeAny, {
200
+ min: number;
201
+ max: number;
202
+ scale_up_cpu_percent?: number | undefined;
203
+ scale_up_sustain_seconds?: number | undefined;
204
+ scale_down_cpu_percent?: number | undefined;
205
+ scale_down_sustain_seconds?: number | undefined;
206
+ cooldown_seconds?: number | undefined;
207
+ }, {
208
+ min: number;
209
+ max: number;
210
+ scale_up_cpu_percent?: number | undefined;
211
+ scale_up_sustain_seconds?: number | undefined;
212
+ scale_down_cpu_percent?: number | undefined;
213
+ scale_down_sustain_seconds?: number | undefined;
214
+ cooldown_seconds?: number | undefined;
215
+ }>, {
216
+ min: number;
217
+ max: number;
218
+ scale_up_cpu_percent?: number | undefined;
219
+ scale_up_sustain_seconds?: number | undefined;
220
+ scale_down_cpu_percent?: number | undefined;
221
+ scale_down_sustain_seconds?: number | undefined;
222
+ cooldown_seconds?: number | undefined;
223
+ }, {
224
+ min: number;
225
+ max: number;
226
+ scale_up_cpu_percent?: number | undefined;
227
+ scale_up_sustain_seconds?: number | undefined;
228
+ scale_down_cpu_percent?: number | undefined;
229
+ scale_down_sustain_seconds?: number | undefined;
230
+ cooldown_seconds?: number | undefined;
231
+ }>>;
232
+ }, "strict", z.ZodTypeAny, {
127
233
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
128
234
  cpu?: number | undefined;
235
+ instances?: number | undefined;
236
+ autoscale?: {
237
+ min: number;
238
+ max: number;
239
+ scale_up_cpu_percent?: number | undefined;
240
+ scale_up_sustain_seconds?: number | undefined;
241
+ scale_down_cpu_percent?: number | undefined;
242
+ scale_down_sustain_seconds?: number | undefined;
243
+ cooldown_seconds?: number | undefined;
244
+ } | undefined;
245
+ }, {
246
+ memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
247
+ cpu?: number | undefined;
248
+ instances?: number | undefined;
249
+ autoscale?: {
250
+ min: number;
251
+ max: number;
252
+ scale_up_cpu_percent?: number | undefined;
253
+ scale_up_sustain_seconds?: number | undefined;
254
+ scale_down_cpu_percent?: number | undefined;
255
+ scale_down_sustain_seconds?: number | undefined;
256
+ cooldown_seconds?: number | undefined;
257
+ } | undefined;
258
+ }>, {
259
+ memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
260
+ cpu?: number | undefined;
261
+ instances?: number | undefined;
262
+ autoscale?: {
263
+ min: number;
264
+ max: number;
265
+ scale_up_cpu_percent?: number | undefined;
266
+ scale_up_sustain_seconds?: number | undefined;
267
+ scale_down_cpu_percent?: number | undefined;
268
+ scale_down_sustain_seconds?: number | undefined;
269
+ cooldown_seconds?: number | undefined;
270
+ } | undefined;
129
271
  }, {
130
272
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
131
273
  cpu?: number | undefined;
274
+ instances?: number | undefined;
275
+ autoscale?: {
276
+ min: number;
277
+ max: number;
278
+ scale_up_cpu_percent?: number | undefined;
279
+ scale_up_sustain_seconds?: number | undefined;
280
+ scale_down_cpu_percent?: number | undefined;
281
+ scale_down_sustain_seconds?: number | undefined;
282
+ cooldown_seconds?: number | undefined;
283
+ } | undefined;
132
284
  }>;
133
285
  export declare const envSchema: z.ZodRecord<z.ZodString, z.ZodString>;
134
286
  export declare const devSchema: z.ZodObject<{
135
287
  ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
288
  debounce: z.ZodOptional<z.ZodNumber>;
137
289
  auto_open: z.ZodOptional<z.ZodBoolean>;
138
- }, "strip", z.ZodTypeAny, {
290
+ }, "strict", z.ZodTypeAny, {
139
291
  ignore?: string[] | undefined;
140
292
  debounce?: number | undefined;
141
293
  auto_open?: boolean | undefined;
@@ -148,7 +300,7 @@ export declare const requiredEnvSchema: z.ZodRecord<z.ZodString, z.ZodEnum<["sec
148
300
  export declare const cronSchema: z.ZodObject<{
149
301
  schedule: z.ZodString;
150
302
  command: z.ZodString;
151
- }, "strip", z.ZodTypeAny, {
303
+ }, "strict", z.ZodTypeAny, {
152
304
  command: string;
153
305
  schedule: string;
154
306
  }, {
@@ -158,29 +310,29 @@ export declare const cronSchema: z.ZodObject<{
158
310
  export declare const addonsSchema: z.ZodObject<{
159
311
  pocketbase: z.ZodOptional<z.ZodObject<{
160
312
  enabled: z.ZodOptional<z.ZodBoolean>;
161
- }, "strip", z.ZodTypeAny, {
313
+ }, "strict", z.ZodTypeAny, {
162
314
  enabled?: boolean | undefined;
163
315
  }, {
164
316
  enabled?: boolean | undefined;
165
317
  }>>;
166
318
  cron: z.ZodOptional<z.ZodObject<{
167
319
  enabled: z.ZodOptional<z.ZodBoolean>;
168
- }, "strip", z.ZodTypeAny, {
320
+ }, "strict", z.ZodTypeAny, {
169
321
  enabled?: boolean | undefined;
170
322
  }, {
171
323
  enabled?: boolean | undefined;
172
324
  }>>;
173
325
  storage: z.ZodOptional<z.ZodObject<{
174
- mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume"]>>;
326
+ mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume", "s3"]>>;
175
327
  max_size: z.ZodOptional<z.ZodString>;
176
- }, "strip", z.ZodTypeAny, {
177
- mode?: "pocketbase" | "volume" | undefined;
328
+ }, "strict", z.ZodTypeAny, {
329
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
178
330
  max_size?: string | undefined;
179
331
  }, {
180
- mode?: "pocketbase" | "volume" | undefined;
332
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
181
333
  max_size?: string | undefined;
182
334
  }>>;
183
- }, "strip", z.ZodTypeAny, {
335
+ }, "strict", z.ZodTypeAny, {
184
336
  pocketbase?: {
185
337
  enabled?: boolean | undefined;
186
338
  } | undefined;
@@ -188,7 +340,7 @@ export declare const addonsSchema: z.ZodObject<{
188
340
  enabled?: boolean | undefined;
189
341
  } | undefined;
190
342
  storage?: {
191
- mode?: "pocketbase" | "volume" | undefined;
343
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
192
344
  max_size?: string | undefined;
193
345
  } | undefined;
194
346
  }, {
@@ -199,7 +351,7 @@ export declare const addonsSchema: z.ZodObject<{
199
351
  enabled?: boolean | undefined;
200
352
  } | undefined;
201
353
  storage?: {
202
- mode?: "pocketbase" | "volume" | undefined;
354
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
203
355
  max_size?: string | undefined;
204
356
  } | undefined;
205
357
  }>;
@@ -208,7 +360,7 @@ export declare const checkSchema: z.ZodObject<{
208
360
  interval: z.ZodOptional<z.ZodNumber>;
209
361
  timeout: z.ZodOptional<z.ZodNumber>;
210
362
  initial_delay: z.ZodOptional<z.ZodNumber>;
211
- }, "strip", z.ZodTypeAny, {
363
+ }, "strict", z.ZodTypeAny, {
212
364
  path: string;
213
365
  interval?: number | undefined;
214
366
  timeout?: number | undefined;
@@ -222,43 +374,59 @@ export declare const checkSchema: z.ZodObject<{
222
374
  export declare const percherConfigSchema: z.ZodObject<{
223
375
  app: z.ZodObject<{
224
376
  name: z.ZodString;
225
- runtime: z.ZodEnum<["node", "python", "static", "docker"]>;
226
- framework: z.ZodOptional<z.ZodEnum<["nextjs", "sveltekit", "astro", "remix", "vite", "express", "fastify", "hono", "fastapi", "flask", "django", "docker"]>>;
227
- }, "strip", z.ZodTypeAny, {
377
+ runtime: z.ZodEnum<["node", "bun", "python", "static", "docker"]>;
378
+ framework: z.ZodOptional<z.ZodEnum<["nextjs", "sveltekit", "astro", "remix", "nuxt", "vite", "preact", "solid", "express", "fastify", "hono", "elysia", "fastapi", "flask", "django", "eleventy", "hugo", "laravel", "rails", "phoenix", "go", "rust", "dotnet", "java", "docker"]>>;
379
+ }, "strict", z.ZodTypeAny, {
228
380
  name: string;
229
- runtime: "node" | "python" | "static" | "docker";
230
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
381
+ runtime: "node" | "bun" | "python" | "static" | "docker";
382
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
231
383
  }, {
232
384
  name: string;
233
- runtime: "node" | "python" | "static" | "docker";
234
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
385
+ runtime: "node" | "bun" | "python" | "static" | "docker";
386
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
235
387
  }>;
236
388
  build: z.ZodOptional<z.ZodObject<{
237
389
  command: z.ZodOptional<z.ZodString>;
238
390
  output: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
239
- }, "strip", z.ZodTypeAny, {
391
+ /**
392
+ * Allow-list of env var names from the app's runtime env that should
393
+ * also be available at build time. Frameworks like Vite/Next/Astro/
394
+ * Expo bake `*_PUBLIC_*` values into the static bundle at build time;
395
+ * without this list, those variables are only present at runtime and
396
+ * frontends ship with the default value baked in. Values are read
397
+ * from the encrypted env store at deploy time — never from the TOML
398
+ * itself, so no secrets in source control.
399
+ */
400
+ pass_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
+ }, "strict", z.ZodTypeAny, {
240
402
  command?: string | undefined;
241
403
  output?: string | undefined;
404
+ pass_env?: string[] | undefined;
242
405
  }, {
243
406
  command?: string | undefined;
244
407
  output?: string | undefined;
408
+ pass_env?: string[] | undefined;
245
409
  }>>;
246
410
  web: z.ZodOptional<z.ZodObject<{
247
411
  port: z.ZodNumber;
248
412
  health: z.ZodOptional<z.ZodString>;
249
- }, "strip", z.ZodTypeAny, {
413
+ /** Enable password protection. Set SITE_PASSWORD env var to configure. */
414
+ password: z.ZodOptional<z.ZodBoolean>;
415
+ }, "strict", z.ZodTypeAny, {
250
416
  port: number;
251
417
  health?: string | undefined;
418
+ password?: boolean | undefined;
252
419
  }, {
253
420
  port: number;
254
421
  health?: string | undefined;
422
+ password?: boolean | undefined;
255
423
  }>>;
256
424
  data: z.ZodOptional<z.ZodEffects<z.ZodObject<{
257
- mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "none"]>;
425
+ mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]>;
258
426
  file: z.ZodOptional<z.ZodString>;
259
427
  convex: z.ZodOptional<z.ZodObject<{
260
428
  deployment_url: z.ZodString;
261
- }, "strip", z.ZodTypeAny, {
429
+ }, "strict", z.ZodTypeAny, {
262
430
  deployment_url: string;
263
431
  }, {
264
432
  deployment_url: string;
@@ -266,15 +434,15 @@ export declare const percherConfigSchema: z.ZodObject<{
266
434
  supabase: z.ZodOptional<z.ZodObject<{
267
435
  url: z.ZodString;
268
436
  anon_key: z.ZodOptional<z.ZodString>;
269
- }, "strip", z.ZodTypeAny, {
437
+ }, "strict", z.ZodTypeAny, {
270
438
  url: string;
271
439
  anon_key?: string | undefined;
272
440
  }, {
273
441
  url: string;
274
442
  anon_key?: string | undefined;
275
443
  }>>;
276
- }, "strip", z.ZodTypeAny, {
277
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
444
+ }, "strict", z.ZodTypeAny, {
445
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
278
446
  convex?: {
279
447
  deployment_url: string;
280
448
  } | undefined;
@@ -284,7 +452,7 @@ export declare const percherConfigSchema: z.ZodObject<{
284
452
  } | undefined;
285
453
  file?: string | undefined;
286
454
  }, {
287
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
455
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
288
456
  convex?: {
289
457
  deployment_url: string;
290
458
  } | undefined;
@@ -294,7 +462,7 @@ export declare const percherConfigSchema: z.ZodObject<{
294
462
  } | undefined;
295
463
  file?: string | undefined;
296
464
  }>, {
297
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
465
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
298
466
  convex?: {
299
467
  deployment_url: string;
300
468
  } | undefined;
@@ -304,7 +472,7 @@ export declare const percherConfigSchema: z.ZodObject<{
304
472
  } | undefined;
305
473
  file?: string | undefined;
306
474
  }, {
307
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
475
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
308
476
  convex?: {
309
477
  deployment_url: string;
310
478
  } | undefined;
@@ -318,28 +486,117 @@ export declare const percherConfigSchema: z.ZodObject<{
318
486
  domain: z.ZodOptional<z.ZodObject<{
319
487
  subdomain: z.ZodOptional<z.ZodString>;
320
488
  custom: z.ZodOptional<z.ZodString>;
321
- }, "strip", z.ZodTypeAny, {
489
+ }, "strict", z.ZodTypeAny, {
322
490
  custom?: string | undefined;
323
491
  subdomain?: string | undefined;
324
492
  }, {
325
493
  custom?: string | undefined;
326
494
  subdomain?: string | undefined;
327
495
  }>>;
328
- resources: z.ZodOptional<z.ZodObject<{
496
+ resources: z.ZodOptional<z.ZodEffects<z.ZodObject<{
329
497
  memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
330
498
  cpu: z.ZodOptional<z.ZodNumber>;
331
- }, "strip", z.ZodTypeAny, {
499
+ /** Number of parallel container instances (Phase 6.1). Plan-gated. */
500
+ instances: z.ZodOptional<z.ZodNumber>;
501
+ autoscale: z.ZodOptional<z.ZodEffects<z.ZodObject<{
502
+ min: z.ZodNumber;
503
+ max: z.ZodNumber;
504
+ scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
505
+ scale_up_sustain_seconds: z.ZodOptional<z.ZodNumber>;
506
+ scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
507
+ scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
508
+ cooldown_seconds: z.ZodOptional<z.ZodNumber>;
509
+ }, "strict", z.ZodTypeAny, {
510
+ min: number;
511
+ max: number;
512
+ scale_up_cpu_percent?: number | undefined;
513
+ scale_up_sustain_seconds?: number | undefined;
514
+ scale_down_cpu_percent?: number | undefined;
515
+ scale_down_sustain_seconds?: number | undefined;
516
+ cooldown_seconds?: number | undefined;
517
+ }, {
518
+ min: number;
519
+ max: number;
520
+ scale_up_cpu_percent?: number | undefined;
521
+ scale_up_sustain_seconds?: number | undefined;
522
+ scale_down_cpu_percent?: number | undefined;
523
+ scale_down_sustain_seconds?: number | undefined;
524
+ cooldown_seconds?: number | undefined;
525
+ }>, {
526
+ min: number;
527
+ max: number;
528
+ scale_up_cpu_percent?: number | undefined;
529
+ scale_up_sustain_seconds?: number | undefined;
530
+ scale_down_cpu_percent?: number | undefined;
531
+ scale_down_sustain_seconds?: number | undefined;
532
+ cooldown_seconds?: number | undefined;
533
+ }, {
534
+ min: number;
535
+ max: number;
536
+ scale_up_cpu_percent?: number | undefined;
537
+ scale_up_sustain_seconds?: number | undefined;
538
+ scale_down_cpu_percent?: number | undefined;
539
+ scale_down_sustain_seconds?: number | undefined;
540
+ cooldown_seconds?: number | undefined;
541
+ }>>;
542
+ }, "strict", z.ZodTypeAny, {
543
+ memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
544
+ cpu?: number | undefined;
545
+ instances?: number | undefined;
546
+ autoscale?: {
547
+ min: number;
548
+ max: number;
549
+ scale_up_cpu_percent?: number | undefined;
550
+ scale_up_sustain_seconds?: number | undefined;
551
+ scale_down_cpu_percent?: number | undefined;
552
+ scale_down_sustain_seconds?: number | undefined;
553
+ cooldown_seconds?: number | undefined;
554
+ } | undefined;
555
+ }, {
332
556
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
333
557
  cpu?: number | undefined;
558
+ instances?: number | undefined;
559
+ autoscale?: {
560
+ min: number;
561
+ max: number;
562
+ scale_up_cpu_percent?: number | undefined;
563
+ scale_up_sustain_seconds?: number | undefined;
564
+ scale_down_cpu_percent?: number | undefined;
565
+ scale_down_sustain_seconds?: number | undefined;
566
+ cooldown_seconds?: number | undefined;
567
+ } | undefined;
568
+ }>, {
569
+ memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
570
+ cpu?: number | undefined;
571
+ instances?: number | undefined;
572
+ autoscale?: {
573
+ min: number;
574
+ max: number;
575
+ scale_up_cpu_percent?: number | undefined;
576
+ scale_up_sustain_seconds?: number | undefined;
577
+ scale_down_cpu_percent?: number | undefined;
578
+ scale_down_sustain_seconds?: number | undefined;
579
+ cooldown_seconds?: number | undefined;
580
+ } | undefined;
334
581
  }, {
335
582
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
336
583
  cpu?: number | undefined;
584
+ instances?: number | undefined;
585
+ autoscale?: {
586
+ min: number;
587
+ max: number;
588
+ scale_up_cpu_percent?: number | undefined;
589
+ scale_up_sustain_seconds?: number | undefined;
590
+ scale_down_cpu_percent?: number | undefined;
591
+ scale_down_sustain_seconds?: number | undefined;
592
+ cooldown_seconds?: number | undefined;
593
+ } | undefined;
337
594
  }>>;
338
595
  dev: z.ZodOptional<z.ZodObject<{
339
596
  ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
340
597
  debounce: z.ZodOptional<z.ZodNumber>;
341
598
  auto_open: z.ZodOptional<z.ZodBoolean>;
342
- }, "strip", z.ZodTypeAny, {
599
+ }, "strict", z.ZodTypeAny, {
343
600
  ignore?: string[] | undefined;
344
601
  debounce?: number | undefined;
345
602
  auto_open?: boolean | undefined;
@@ -352,7 +609,7 @@ export declare const percherConfigSchema: z.ZodObject<{
352
609
  crons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
353
610
  schedule: z.ZodString;
354
611
  command: z.ZodString;
355
- }, "strip", z.ZodTypeAny, {
612
+ }, "strict", z.ZodTypeAny, {
356
613
  command: string;
357
614
  schedule: string;
358
615
  }, {
@@ -362,29 +619,29 @@ export declare const percherConfigSchema: z.ZodObject<{
362
619
  addons: z.ZodOptional<z.ZodObject<{
363
620
  pocketbase: z.ZodOptional<z.ZodObject<{
364
621
  enabled: z.ZodOptional<z.ZodBoolean>;
365
- }, "strip", z.ZodTypeAny, {
622
+ }, "strict", z.ZodTypeAny, {
366
623
  enabled?: boolean | undefined;
367
624
  }, {
368
625
  enabled?: boolean | undefined;
369
626
  }>>;
370
627
  cron: z.ZodOptional<z.ZodObject<{
371
628
  enabled: z.ZodOptional<z.ZodBoolean>;
372
- }, "strip", z.ZodTypeAny, {
629
+ }, "strict", z.ZodTypeAny, {
373
630
  enabled?: boolean | undefined;
374
631
  }, {
375
632
  enabled?: boolean | undefined;
376
633
  }>>;
377
634
  storage: z.ZodOptional<z.ZodObject<{
378
- mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume"]>>;
635
+ mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume", "s3"]>>;
379
636
  max_size: z.ZodOptional<z.ZodString>;
380
- }, "strip", z.ZodTypeAny, {
381
- mode?: "pocketbase" | "volume" | undefined;
637
+ }, "strict", z.ZodTypeAny, {
638
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
382
639
  max_size?: string | undefined;
383
640
  }, {
384
- mode?: "pocketbase" | "volume" | undefined;
641
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
385
642
  max_size?: string | undefined;
386
643
  }>>;
387
- }, "strip", z.ZodTypeAny, {
644
+ }, "strict", z.ZodTypeAny, {
388
645
  pocketbase?: {
389
646
  enabled?: boolean | undefined;
390
647
  } | undefined;
@@ -392,7 +649,7 @@ export declare const percherConfigSchema: z.ZodObject<{
392
649
  enabled?: boolean | undefined;
393
650
  } | undefined;
394
651
  storage?: {
395
- mode?: "pocketbase" | "volume" | undefined;
652
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
396
653
  max_size?: string | undefined;
397
654
  } | undefined;
398
655
  }, {
@@ -403,7 +660,7 @@ export declare const percherConfigSchema: z.ZodObject<{
403
660
  enabled?: boolean | undefined;
404
661
  } | undefined;
405
662
  storage?: {
406
- mode?: "pocketbase" | "volume" | undefined;
663
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
407
664
  max_size?: string | undefined;
408
665
  } | undefined;
409
666
  }>>;
@@ -412,7 +669,7 @@ export declare const percherConfigSchema: z.ZodObject<{
412
669
  interval: z.ZodOptional<z.ZodNumber>;
413
670
  timeout: z.ZodOptional<z.ZodNumber>;
414
671
  initial_delay: z.ZodOptional<z.ZodNumber>;
415
- }, "strip", z.ZodTypeAny, {
672
+ }, "strict", z.ZodTypeAny, {
416
673
  path: string;
417
674
  interval?: number | undefined;
418
675
  timeout?: number | undefined;
@@ -423,22 +680,24 @@ export declare const percherConfigSchema: z.ZodObject<{
423
680
  timeout?: number | undefined;
424
681
  initial_delay?: number | undefined;
425
682
  }>>>;
426
- }, "strip", z.ZodTypeAny, {
683
+ }, "strict", z.ZodTypeAny, {
427
684
  app: {
428
685
  name: string;
429
- runtime: "node" | "python" | "static" | "docker";
430
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
686
+ runtime: "node" | "bun" | "python" | "static" | "docker";
687
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
431
688
  };
432
689
  build?: {
433
690
  command?: string | undefined;
434
691
  output?: string | undefined;
692
+ pass_env?: string[] | undefined;
435
693
  } | undefined;
436
694
  web?: {
437
695
  port: number;
438
696
  health?: string | undefined;
697
+ password?: boolean | undefined;
439
698
  } | undefined;
440
699
  data?: {
441
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
700
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
442
701
  convex?: {
443
702
  deployment_url: string;
444
703
  } | undefined;
@@ -456,6 +715,16 @@ export declare const percherConfigSchema: z.ZodObject<{
456
715
  resources?: {
457
716
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
458
717
  cpu?: number | undefined;
718
+ instances?: number | undefined;
719
+ autoscale?: {
720
+ min: number;
721
+ max: number;
722
+ scale_up_cpu_percent?: number | undefined;
723
+ scale_up_sustain_seconds?: number | undefined;
724
+ scale_down_cpu_percent?: number | undefined;
725
+ scale_down_sustain_seconds?: number | undefined;
726
+ cooldown_seconds?: number | undefined;
727
+ } | undefined;
459
728
  } | undefined;
460
729
  dev?: {
461
730
  ignore?: string[] | undefined;
@@ -475,7 +744,7 @@ export declare const percherConfigSchema: z.ZodObject<{
475
744
  enabled?: boolean | undefined;
476
745
  } | undefined;
477
746
  storage?: {
478
- mode?: "pocketbase" | "volume" | undefined;
747
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
479
748
  max_size?: string | undefined;
480
749
  } | undefined;
481
750
  } | undefined;
@@ -488,19 +757,21 @@ export declare const percherConfigSchema: z.ZodObject<{
488
757
  }, {
489
758
  app: {
490
759
  name: string;
491
- runtime: "node" | "python" | "static" | "docker";
492
- framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "vite" | "express" | "fastify" | "hono" | "fastapi" | "flask" | "django" | undefined;
760
+ runtime: "node" | "bun" | "python" | "static" | "docker";
761
+ framework?: "docker" | "nextjs" | "sveltekit" | "astro" | "remix" | "nuxt" | "vite" | "preact" | "solid" | "express" | "fastify" | "hono" | "elysia" | "fastapi" | "flask" | "django" | "eleventy" | "hugo" | "laravel" | "rails" | "phoenix" | "go" | "rust" | "dotnet" | "java" | undefined;
493
762
  };
494
763
  build?: {
495
764
  command?: string | undefined;
496
765
  output?: string | undefined;
766
+ pass_env?: string[] | undefined;
497
767
  } | undefined;
498
768
  web?: {
499
769
  port: number;
500
770
  health?: string | undefined;
771
+ password?: boolean | undefined;
501
772
  } | undefined;
502
773
  data?: {
503
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "none";
774
+ mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
504
775
  convex?: {
505
776
  deployment_url: string;
506
777
  } | undefined;
@@ -518,6 +789,16 @@ export declare const percherConfigSchema: z.ZodObject<{
518
789
  resources?: {
519
790
  memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
520
791
  cpu?: number | undefined;
792
+ instances?: number | undefined;
793
+ autoscale?: {
794
+ min: number;
795
+ max: number;
796
+ scale_up_cpu_percent?: number | undefined;
797
+ scale_up_sustain_seconds?: number | undefined;
798
+ scale_down_cpu_percent?: number | undefined;
799
+ scale_down_sustain_seconds?: number | undefined;
800
+ cooldown_seconds?: number | undefined;
801
+ } | undefined;
521
802
  } | undefined;
522
803
  dev?: {
523
804
  ignore?: string[] | undefined;
@@ -537,7 +818,7 @@ export declare const percherConfigSchema: z.ZodObject<{
537
818
  enabled?: boolean | undefined;
538
819
  } | undefined;
539
820
  storage?: {
540
- mode?: "pocketbase" | "volume" | undefined;
821
+ mode?: "pocketbase" | "volume" | "s3" | undefined;
541
822
  max_size?: string | undefined;
542
823
  } | undefined;
543
824
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,SAAS;;;;;;;;;;;;EAqBpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;EAMtB,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAqG1E,sEAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2E/D,CAAC;AAEZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
package/dist/schema.js CHANGED
@@ -1,52 +1,98 @@
1
1
  import { z } from "zod";
2
2
  const APP_NAME_RE = /^[a-z][a-z0-9-]{2,39}$/;
3
- export const appSchema = z.object({
3
+ export const appSchema = z
4
+ .object({
4
5
  name: z
5
6
  .string()
6
7
  .regex(APP_NAME_RE, "must be 3–40 chars, lowercase, start with a letter, [a-z0-9-] only"),
7
- runtime: z.enum(["node", "python", "static", "docker"]),
8
+ runtime: z.enum(["node", "bun", "python", "static", "docker"]),
8
9
  framework: z
9
10
  .enum([
10
11
  "nextjs",
11
12
  "sveltekit",
12
13
  "astro",
13
14
  "remix",
15
+ "nuxt",
14
16
  "vite",
17
+ "preact",
18
+ "solid",
15
19
  "express",
16
20
  "fastify",
17
21
  "hono",
22
+ "elysia",
18
23
  "fastapi",
19
24
  "flask",
20
25
  "django",
26
+ "eleventy",
27
+ "hugo",
28
+ "laravel",
29
+ "rails",
30
+ "phoenix",
31
+ "go",
32
+ "rust",
33
+ "dotnet",
34
+ "java",
21
35
  "docker",
22
36
  ])
23
37
  .optional(),
24
- });
25
- export const buildSchema = z.object({
38
+ })
39
+ .strict();
40
+ /**
41
+ * Env-var name pattern: standard POSIX-shell identifier
42
+ * (`[A-Z_][A-Z0-9_]*`). Restricting to upper-case avoids accidental
43
+ * exposure of lowercase secrets via case-collision and matches what
44
+ * Nixpacks accepts via `--env`.
45
+ */
46
+ const ENV_NAME_RE = /^[A-Z_][A-Z0-9_]*$/;
47
+ export const buildSchema = z
48
+ .object({
26
49
  command: z.string().optional(),
27
50
  output: z
28
51
  .string()
29
52
  .refine((v) => !v.startsWith("/"), "must be a relative path (no leading slash)")
30
53
  .optional(),
31
- });
32
- export const webSchema = z.object({
54
+ /**
55
+ * Allow-list of env var names from the app's runtime env that should
56
+ * also be available at build time. Frameworks like Vite/Next/Astro/
57
+ * Expo bake `*_PUBLIC_*` values into the static bundle at build time;
58
+ * without this list, those variables are only present at runtime and
59
+ * frontends ship with the default value baked in. Values are read
60
+ * from the encrypted env store at deploy time — never from the TOML
61
+ * itself, so no secrets in source control.
62
+ */
63
+ pass_env: z
64
+ .array(z.string().regex(ENV_NAME_RE, "must be a valid env var name (UPPER_SNAKE_CASE)"))
65
+ .max(50, "at most 50 build env vars can be exposed")
66
+ .optional(),
67
+ })
68
+ .strict();
69
+ export const webSchema = z
70
+ .object({
33
71
  port: z.number().int().min(1024).max(65535),
34
72
  health: z.string().optional(),
35
- });
36
- export const convexConfigSchema = z.object({
73
+ /** Enable password protection. Set SITE_PASSWORD env var to configure. */
74
+ password: z.boolean().optional(),
75
+ })
76
+ .strict();
77
+ export const convexConfigSchema = z
78
+ .object({
37
79
  deployment_url: z.string().url(),
38
- });
39
- export const supabaseConfigSchema = z.object({
80
+ })
81
+ .strict();
82
+ export const supabaseConfigSchema = z
83
+ .object({
40
84
  url: z.string().url(),
41
85
  anon_key: z.string().min(1).optional(),
42
- });
86
+ })
87
+ .strict();
43
88
  export const dataSchema = z
44
89
  .object({
45
- mode: z.enum(["pocketbase", "postgres", "sqlite", "convex", "supabase", "none"]),
90
+ mode: z.enum(["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]),
46
91
  file: z.string().min(1).optional(),
47
92
  convex: convexConfigSchema.optional(),
48
93
  supabase: supabaseConfigSchema.optional(),
49
94
  })
95
+ .strict()
50
96
  .superRefine((value, ctx) => {
51
97
  if (value.mode === "sqlite" && !value.file) {
52
98
  ctx.addIssue({
@@ -71,42 +117,106 @@ export const dataSchema = z
71
117
  }
72
118
  });
73
119
  const FQDN_RE = /^(?!-)[a-z0-9-]{1,63}(?<!-)(\.(?!-)[a-z0-9-]{1,63}(?<!-))+$/i;
74
- export const domainSchema = z.object({
120
+ export const domainSchema = z
121
+ .object({
75
122
  subdomain: z.string().regex(APP_NAME_RE).optional(),
76
123
  custom: z.string().regex(FQDN_RE, "must be a valid FQDN (no protocol)").optional(),
124
+ })
125
+ .strict();
126
+ /**
127
+ * Phase 6.3: CPU-based autoscaling. Mutually exclusive with the static
128
+ * `instances` field on the parent resourcesSchema — see the superRefine
129
+ * below. All threshold/sustain fields have sane defaults and most users
130
+ * never touch them.
131
+ */
132
+ export const autoscaleSchema = z
133
+ .object({
134
+ min: z.number().int().min(1).max(4),
135
+ max: z.number().int().min(1).max(4),
136
+ scale_up_cpu_percent: z.number().int().min(1).max(100).optional(),
137
+ scale_up_sustain_seconds: z.number().int().min(30).max(3600).optional(),
138
+ scale_down_cpu_percent: z.number().int().min(1).max(100).optional(),
139
+ scale_down_sustain_seconds: z.number().int().min(60).max(86_400).optional(),
140
+ cooldown_seconds: z.number().int().min(30).max(3600).optional(),
141
+ })
142
+ .strict()
143
+ .superRefine((val, ctx) => {
144
+ if (val.min > val.max) {
145
+ ctx.addIssue({
146
+ code: z.ZodIssueCode.custom,
147
+ path: ["min"],
148
+ message: "autoscale.min must be <= autoscale.max",
149
+ });
150
+ }
151
+ if (val.scale_up_cpu_percent !== undefined &&
152
+ val.scale_down_cpu_percent !== undefined &&
153
+ val.scale_down_cpu_percent >= val.scale_up_cpu_percent) {
154
+ ctx.addIssue({
155
+ code: z.ZodIssueCode.custom,
156
+ path: ["scale_down_cpu_percent"],
157
+ message: "scale_down_cpu_percent must be strictly less than scale_up_cpu_percent",
158
+ });
159
+ }
77
160
  });
78
- export const resourcesSchema = z.object({
161
+ export const resourcesSchema = z
162
+ .object({
79
163
  memory: z.enum(["256mb", "512mb", "1gb", "2gb"]).optional(),
80
164
  cpu: z.number().min(0.25).max(2.0).optional(),
165
+ /** Number of parallel container instances (Phase 6.1). Plan-gated. */
166
+ instances: z.number().int().min(1).max(4).optional(),
167
+ autoscale: autoscaleSchema.optional(),
168
+ })
169
+ .strict()
170
+ .superRefine((val, ctx) => {
171
+ // Phase 6.3: static `instances` and dynamic `autoscale` are mutually
172
+ // exclusive — the pipeline would have to pick one or the other, and
173
+ // letting both through silently would hide whichever lost.
174
+ if (val.instances !== undefined && val.autoscale !== undefined) {
175
+ ctx.addIssue({
176
+ code: z.ZodIssueCode.custom,
177
+ path: ["autoscale"],
178
+ message: "resources.instances and resources.autoscale are mutually exclusive — pick one",
179
+ });
180
+ }
81
181
  });
82
182
  export const envSchema = z.record(z.string(), z.string());
83
- export const devSchema = z.object({
183
+ export const devSchema = z
184
+ .object({
84
185
  ignore: z.array(z.string()).optional(),
85
186
  debounce: z.number().int().min(100).max(10000).optional(),
86
187
  auto_open: z.boolean().optional(),
87
- });
188
+ })
189
+ .strict();
88
190
  export const requiredEnvSchema = z.record(z.string(), z.enum(["secret", "url", "string"]));
89
- export const cronSchema = z.object({
191
+ export const cronSchema = z
192
+ .object({
90
193
  schedule: z.string().min(1),
91
194
  command: z.string().min(1),
92
- });
93
- export const addonsSchema = z.object({
94
- pocketbase: z.object({ enabled: z.boolean().optional() }).optional(),
95
- cron: z.object({ enabled: z.boolean().optional() }).optional(),
195
+ })
196
+ .strict();
197
+ export const addonsSchema = z
198
+ .object({
199
+ pocketbase: z.object({ enabled: z.boolean().optional() }).strict().optional(),
200
+ cron: z.object({ enabled: z.boolean().optional() }).strict().optional(),
96
201
  storage: z
97
202
  .object({
98
- mode: z.enum(["pocketbase", "volume"]).optional(),
203
+ mode: z.enum(["pocketbase", "volume", "s3"]).optional(),
99
204
  max_size: z.string().optional(),
100
205
  })
206
+ .strict()
101
207
  .optional(),
102
- });
103
- export const checkSchema = z.object({
208
+ })
209
+ .strict();
210
+ export const checkSchema = z
211
+ .object({
104
212
  path: z.string().min(1),
105
213
  interval: z.number().int().min(1).optional(),
106
214
  timeout: z.number().int().min(1).optional(),
107
215
  initial_delay: z.number().int().min(0).optional(),
108
- });
109
- export const percherConfigSchema = z.object({
216
+ })
217
+ .strict();
218
+ export const percherConfigSchema = z
219
+ .object({
110
220
  app: appSchema,
111
221
  build: buildSchema.optional(),
112
222
  web: webSchema.optional(),
@@ -119,5 +229,6 @@ export const percherConfigSchema = z.object({
119
229
  crons: z.record(z.string(), cronSchema).optional(),
120
230
  addons: addonsSchema.optional(),
121
231
  checks: z.record(z.string(), checkSchema).optional(),
122
- });
232
+ })
233
+ .strict();
123
234
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAE7C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,WAAW,EAAE,oEAAoE,CAAC;IAC3F,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACvD,SAAS,EAAE,CAAC;SACT,IAAI,CAAC;QACJ,QAAQ;QACR,WAAW;QACX,OAAO;QACP,OAAO;QACP,MAAM;QACN,SAAS;QACT,SAAS;QACT,MAAM;QACN,SAAS;QACT,OAA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,CAAC,QAAQ,EAAE;CACrD,CAAC;KACD,MAAM,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percher/toml",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "percher.toml parser and validator for the Percher hosting platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",