@percher/toml 0.1.3 → 0.1.5

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,148 +1,90 @@
1
- import { z } from "zod/v3";
1
+ import { z } from "zod";
2
2
  export declare const appSchema: z.ZodObject<{
3
3
  name: z.ZodString;
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
- name: string;
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
- }, {
11
- name: string;
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
- }>;
4
+ runtime: z.ZodEnum<{
5
+ node: "node";
6
+ bun: "bun";
7
+ python: "python";
8
+ static: "static";
9
+ docker: "docker";
10
+ }>;
11
+ framework: z.ZodOptional<z.ZodEnum<{
12
+ docker: "docker";
13
+ nextjs: "nextjs";
14
+ sveltekit: "sveltekit";
15
+ astro: "astro";
16
+ remix: "remix";
17
+ nuxt: "nuxt";
18
+ vite: "vite";
19
+ preact: "preact";
20
+ solid: "solid";
21
+ express: "express";
22
+ fastify: "fastify";
23
+ hono: "hono";
24
+ elysia: "elysia";
25
+ fastapi: "fastapi";
26
+ flask: "flask";
27
+ django: "django";
28
+ eleventy: "eleventy";
29
+ hugo: "hugo";
30
+ laravel: "laravel";
31
+ rails: "rails";
32
+ phoenix: "phoenix";
33
+ go: "go";
34
+ rust: "rust";
35
+ dotnet: "dotnet";
36
+ java: "java";
37
+ }>>;
38
+ }, z.core.$strict>;
15
39
  export declare const buildSchema: z.ZodObject<{
16
40
  command: z.ZodOptional<z.ZodString>;
17
- output: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
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, {
29
- command?: string | undefined;
30
- output?: string | undefined;
31
- pass_env?: string[] | undefined;
32
- }, {
33
- command?: string | undefined;
34
- output?: string | undefined;
35
- pass_env?: string[] | undefined;
36
- }>;
41
+ output: z.ZodOptional<z.ZodString>;
42
+ pass_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ }, z.core.$strict>;
37
44
  export declare const webSchema: z.ZodObject<{
38
45
  port: z.ZodNumber;
39
46
  health: z.ZodOptional<z.ZodString>;
40
- /** Enable password protection. Set SITE_PASSWORD env var to configure. */
47
+ command: z.ZodOptional<z.ZodString>;
41
48
  password: z.ZodOptional<z.ZodBoolean>;
42
- }, "strict", z.ZodTypeAny, {
43
- port: number;
44
- health?: string | undefined;
45
- password?: boolean | undefined;
46
- }, {
47
- port: number;
48
- health?: string | undefined;
49
- password?: boolean | undefined;
50
- }>;
49
+ spa: z.ZodOptional<z.ZodBoolean>;
50
+ }, z.core.$strict>;
51
51
  export declare const convexConfigSchema: z.ZodObject<{
52
52
  deployment_url: z.ZodString;
53
- }, "strict", z.ZodTypeAny, {
54
- deployment_url: string;
55
- }, {
56
- deployment_url: string;
57
- }>;
53
+ }, z.core.$strict>;
58
54
  export declare const supabaseConfigSchema: z.ZodObject<{
59
55
  url: z.ZodString;
60
56
  anon_key: z.ZodOptional<z.ZodString>;
61
- }, "strict", z.ZodTypeAny, {
62
- url: string;
63
- anon_key?: string | undefined;
64
- }, {
65
- url: string;
66
- anon_key?: string | undefined;
67
- }>;
68
- export declare const dataSchema: z.ZodEffects<z.ZodObject<{
69
- mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]>;
57
+ }, z.core.$strict>;
58
+ export declare const dataSchema: z.ZodObject<{
59
+ mode: z.ZodEnum<{
60
+ pocketbase: "pocketbase";
61
+ postgres: "postgres";
62
+ sqlite: "sqlite";
63
+ convex: "convex";
64
+ supabase: "supabase";
65
+ external: "external";
66
+ none: "none";
67
+ }>;
70
68
  file: z.ZodOptional<z.ZodString>;
71
69
  convex: z.ZodOptional<z.ZodObject<{
72
70
  deployment_url: z.ZodString;
73
- }, "strict", z.ZodTypeAny, {
74
- deployment_url: string;
75
- }, {
76
- deployment_url: string;
77
- }>>;
71
+ }, z.core.$strict>>;
78
72
  supabase: z.ZodOptional<z.ZodObject<{
79
73
  url: z.ZodString;
80
74
  anon_key: z.ZodOptional<z.ZodString>;
81
- }, "strict", z.ZodTypeAny, {
82
- url: string;
83
- anon_key?: string | undefined;
84
- }, {
85
- url: string;
86
- anon_key?: string | undefined;
87
- }>>;
88
- }, "strict", z.ZodTypeAny, {
89
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
90
- convex?: {
91
- deployment_url: string;
92
- } | undefined;
93
- supabase?: {
94
- url: string;
95
- anon_key?: string | undefined;
96
- } | undefined;
97
- file?: string | undefined;
98
- }, {
99
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
100
- convex?: {
101
- deployment_url: string;
102
- } | undefined;
103
- supabase?: {
104
- url: string;
105
- anon_key?: string | undefined;
106
- } | undefined;
107
- file?: string | undefined;
108
- }>, {
109
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
110
- convex?: {
111
- deployment_url: string;
112
- } | undefined;
113
- supabase?: {
114
- url: string;
115
- anon_key?: string | undefined;
116
- } | undefined;
117
- file?: string | undefined;
118
- }, {
119
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
120
- convex?: {
121
- deployment_url: string;
122
- } | undefined;
123
- supabase?: {
124
- url: string;
125
- anon_key?: string | undefined;
126
- } | undefined;
127
- file?: string | undefined;
128
- }>;
75
+ }, z.core.$strict>>;
76
+ }, z.core.$strict>;
129
77
  export declare const domainSchema: z.ZodObject<{
130
78
  subdomain: z.ZodOptional<z.ZodString>;
131
79
  custom: z.ZodOptional<z.ZodString>;
132
- }, "strict", z.ZodTypeAny, {
133
- custom?: string | undefined;
134
- subdomain?: string | undefined;
135
- }, {
136
- custom?: string | undefined;
137
- subdomain?: string | undefined;
138
- }>;
80
+ }, z.core.$strict>;
139
81
  /**
140
82
  * Phase 6.3: CPU-based autoscaling. Mutually exclusive with the static
141
83
  * `instances` field on the parent resourcesSchema — see the superRefine
142
84
  * below. All threshold/sustain fields have sane defaults and most users
143
85
  * never touch them.
144
86
  */
145
- export declare const autoscaleSchema: z.ZodEffects<z.ZodObject<{
87
+ export declare const autoscaleSchema: z.ZodObject<{
146
88
  min: z.ZodNumber;
147
89
  max: z.ZodNumber;
148
90
  scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
@@ -150,45 +92,17 @@ export declare const autoscaleSchema: z.ZodEffects<z.ZodObject<{
150
92
  scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
151
93
  scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
152
94
  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<{
187
- memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
95
+ }, z.core.$strict>;
96
+ export declare const resourcesSchema: z.ZodObject<{
97
+ memory: z.ZodOptional<z.ZodEnum<{
98
+ "256mb": "256mb";
99
+ "512mb": "512mb";
100
+ "1gb": "1gb";
101
+ "2gb": "2gb";
102
+ }>>;
188
103
  cpu: z.ZodOptional<z.ZodNumber>;
189
- /** Number of parallel container instances (Phase 6.1). Plan-gated. */
190
104
  instances: z.ZodOptional<z.ZodNumber>;
191
- autoscale: z.ZodOptional<z.ZodEffects<z.ZodObject<{
105
+ autoscale: z.ZodOptional<z.ZodObject<{
192
106
  min: z.ZodNumber;
193
107
  max: z.ZodNumber;
194
108
  scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
@@ -196,92 +110,8 @@ export declare const resourcesSchema: z.ZodEffects<z.ZodObject<{
196
110
  scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
197
111
  scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
198
112
  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, {
233
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
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;
271
- }, {
272
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
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;
284
- }>;
113
+ }, z.core.$strict>>;
114
+ }, z.core.$strict>;
285
115
  /**
286
116
  * Legacy `[env]` shape: `KEY = "value"` pairs that seed the encrypted
287
117
  * env store with placeholder values when running `percher init`. Still
@@ -302,27 +132,11 @@ export declare const envValuesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
302
132
  * A key may appear in only one list. Phase 6a (this file) ships the
303
133
  * parsing + validation only; the actual pre-queue gate is Phase 6b/c.
304
134
  */
305
- export declare const envContractSchema: z.ZodEffects<z.ZodObject<{
306
- required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
- optional: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
308
- ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
309
- }, "strict", z.ZodTypeAny, {
310
- required?: string[] | undefined;
311
- optional?: string[] | undefined;
312
- ignore?: string[] | undefined;
313
- }, {
314
- required?: string[] | undefined;
315
- optional?: string[] | undefined;
316
- ignore?: string[] | undefined;
317
- }>, {
318
- required?: string[] | undefined;
319
- optional?: string[] | undefined;
320
- ignore?: string[] | undefined;
321
- }, {
322
- required?: string[] | undefined;
323
- optional?: string[] | undefined;
324
- ignore?: string[] | undefined;
325
- }>;
135
+ export declare const envContractSchema: z.ZodObject<{
136
+ required: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ optional: z.ZodOptional<z.ZodArray<z.ZodString>>;
138
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ }, z.core.$strict>;
326
140
  /**
327
141
  * The `[env]` table must coexist in Phase 6a with two shapes:
328
142
  *
@@ -353,223 +167,133 @@ export declare function isEnvContract(value: EnvSection | undefined): value is E
353
167
  * shape. Returns null when the section is the new contract or missing.
354
168
  */
355
169
  export declare function getEnvValues(value: EnvSection | undefined): EnvValues | null;
356
- export declare const envSchema: z.ZodType<EnvSection, z.ZodTypeDef, unknown>;
170
+ export declare const envSchema: z.ZodType<EnvSection, unknown>;
357
171
  export declare const devSchema: z.ZodObject<{
358
- ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
172
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
359
173
  debounce: z.ZodOptional<z.ZodNumber>;
360
174
  auto_open: z.ZodOptional<z.ZodBoolean>;
361
- }, "strict", z.ZodTypeAny, {
362
- ignore?: string[] | undefined;
363
- debounce?: number | undefined;
364
- auto_open?: boolean | undefined;
365
- }, {
366
- ignore?: string[] | undefined;
367
- debounce?: number | undefined;
368
- auto_open?: boolean | undefined;
369
- }>;
370
- export declare const requiredEnvSchema: z.ZodRecord<z.ZodString, z.ZodEnum<["secret", "url", "string"]>>;
175
+ }, z.core.$strict>;
176
+ export declare const requiredEnvSchema: z.ZodRecord<z.ZodString, z.ZodEnum<{
177
+ string: "string";
178
+ url: "url";
179
+ secret: "secret";
180
+ }>>;
371
181
  export declare const cronSchema: z.ZodObject<{
372
182
  schedule: z.ZodString;
373
183
  command: z.ZodString;
374
- }, "strict", z.ZodTypeAny, {
375
- command: string;
376
- schedule: string;
377
- }, {
378
- command: string;
379
- schedule: string;
380
- }>;
184
+ description: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strict>;
186
+ export declare const cronsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
187
+ schedule: z.ZodString;
188
+ command: z.ZodString;
189
+ description: z.ZodOptional<z.ZodString>;
190
+ }, z.core.$strict>>;
381
191
  export declare const addonsSchema: z.ZodObject<{
382
192
  pocketbase: z.ZodOptional<z.ZodObject<{
383
193
  enabled: z.ZodOptional<z.ZodBoolean>;
384
- }, "strict", z.ZodTypeAny, {
385
- enabled?: boolean | undefined;
386
- }, {
387
- enabled?: boolean | undefined;
388
- }>>;
194
+ }, z.core.$strict>>;
389
195
  cron: z.ZodOptional<z.ZodObject<{
390
196
  enabled: z.ZodOptional<z.ZodBoolean>;
391
- }, "strict", z.ZodTypeAny, {
392
- enabled?: boolean | undefined;
393
- }, {
394
- enabled?: boolean | undefined;
395
- }>>;
197
+ }, z.core.$strict>>;
396
198
  storage: z.ZodOptional<z.ZodObject<{
397
- mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume", "s3"]>>;
199
+ mode: z.ZodOptional<z.ZodEnum<{
200
+ pocketbase: "pocketbase";
201
+ volume: "volume";
202
+ s3: "s3";
203
+ }>>;
398
204
  max_size: z.ZodOptional<z.ZodString>;
399
- }, "strict", z.ZodTypeAny, {
400
- mode?: "pocketbase" | "volume" | "s3" | undefined;
401
- max_size?: string | undefined;
402
- }, {
403
- mode?: "pocketbase" | "volume" | "s3" | undefined;
404
- max_size?: string | undefined;
405
- }>>;
406
- }, "strict", z.ZodTypeAny, {
407
- pocketbase?: {
408
- enabled?: boolean | undefined;
409
- } | undefined;
410
- cron?: {
411
- enabled?: boolean | undefined;
412
- } | undefined;
413
- storage?: {
414
- mode?: "pocketbase" | "volume" | "s3" | undefined;
415
- max_size?: string | undefined;
416
- } | undefined;
417
- }, {
418
- pocketbase?: {
419
- enabled?: boolean | undefined;
420
- } | undefined;
421
- cron?: {
422
- enabled?: boolean | undefined;
423
- } | undefined;
424
- storage?: {
425
- mode?: "pocketbase" | "volume" | "s3" | undefined;
426
- max_size?: string | undefined;
427
- } | undefined;
428
- }>;
205
+ }, z.core.$strict>>;
206
+ }, z.core.$strict>;
429
207
  export declare const checkSchema: z.ZodObject<{
430
208
  path: z.ZodString;
431
209
  interval: z.ZodOptional<z.ZodNumber>;
432
210
  timeout: z.ZodOptional<z.ZodNumber>;
433
211
  initial_delay: z.ZodOptional<z.ZodNumber>;
434
- }, "strict", z.ZodTypeAny, {
435
- path: string;
436
- interval?: number | undefined;
437
- timeout?: number | undefined;
438
- initial_delay?: number | undefined;
439
- }, {
440
- path: string;
441
- interval?: number | undefined;
442
- timeout?: number | undefined;
443
- initial_delay?: number | undefined;
444
- }>;
212
+ }, z.core.$strict>;
445
213
  export declare const percherConfigSchema: z.ZodObject<{
446
214
  app: z.ZodObject<{
447
215
  name: z.ZodString;
448
- runtime: z.ZodEnum<["node", "bun", "python", "static", "docker"]>;
449
- 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"]>>;
450
- }, "strict", z.ZodTypeAny, {
451
- name: string;
452
- runtime: "node" | "bun" | "python" | "static" | "docker";
453
- 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;
454
- }, {
455
- name: string;
456
- runtime: "node" | "bun" | "python" | "static" | "docker";
457
- 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;
458
- }>;
216
+ runtime: z.ZodEnum<{
217
+ node: "node";
218
+ bun: "bun";
219
+ python: "python";
220
+ static: "static";
221
+ docker: "docker";
222
+ }>;
223
+ framework: z.ZodOptional<z.ZodEnum<{
224
+ docker: "docker";
225
+ nextjs: "nextjs";
226
+ sveltekit: "sveltekit";
227
+ astro: "astro";
228
+ remix: "remix";
229
+ nuxt: "nuxt";
230
+ vite: "vite";
231
+ preact: "preact";
232
+ solid: "solid";
233
+ express: "express";
234
+ fastify: "fastify";
235
+ hono: "hono";
236
+ elysia: "elysia";
237
+ fastapi: "fastapi";
238
+ flask: "flask";
239
+ django: "django";
240
+ eleventy: "eleventy";
241
+ hugo: "hugo";
242
+ laravel: "laravel";
243
+ rails: "rails";
244
+ phoenix: "phoenix";
245
+ go: "go";
246
+ rust: "rust";
247
+ dotnet: "dotnet";
248
+ java: "java";
249
+ }>>;
250
+ }, z.core.$strict>;
459
251
  build: z.ZodOptional<z.ZodObject<{
460
252
  command: z.ZodOptional<z.ZodString>;
461
- output: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
462
- /**
463
- * Allow-list of env var names from the app's runtime env that should
464
- * also be available at build time. Frameworks like Vite/Next/Astro/
465
- * Expo bake `*_PUBLIC_*` values into the static bundle at build time;
466
- * without this list, those variables are only present at runtime and
467
- * frontends ship with the default value baked in. Values are read
468
- * from the encrypted env store at deploy time — never from the TOML
469
- * itself, so no secrets in source control.
470
- */
471
- pass_env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
472
- }, "strict", z.ZodTypeAny, {
473
- command?: string | undefined;
474
- output?: string | undefined;
475
- pass_env?: string[] | undefined;
476
- }, {
477
- command?: string | undefined;
478
- output?: string | undefined;
479
- pass_env?: string[] | undefined;
480
- }>>;
253
+ output: z.ZodOptional<z.ZodString>;
254
+ pass_env: z.ZodOptional<z.ZodArray<z.ZodString>>;
255
+ }, z.core.$strict>>;
481
256
  web: z.ZodOptional<z.ZodObject<{
482
257
  port: z.ZodNumber;
483
258
  health: z.ZodOptional<z.ZodString>;
484
- /** Enable password protection. Set SITE_PASSWORD env var to configure. */
259
+ command: z.ZodOptional<z.ZodString>;
485
260
  password: z.ZodOptional<z.ZodBoolean>;
486
- }, "strict", z.ZodTypeAny, {
487
- port: number;
488
- health?: string | undefined;
489
- password?: boolean | undefined;
490
- }, {
491
- port: number;
492
- health?: string | undefined;
493
- password?: boolean | undefined;
494
- }>>;
495
- data: z.ZodOptional<z.ZodEffects<z.ZodObject<{
496
- mode: z.ZodEnum<["pocketbase", "postgres", "sqlite", "convex", "supabase", "external", "none"]>;
261
+ spa: z.ZodOptional<z.ZodBoolean>;
262
+ }, z.core.$strict>>;
263
+ data: z.ZodOptional<z.ZodObject<{
264
+ mode: z.ZodEnum<{
265
+ pocketbase: "pocketbase";
266
+ postgres: "postgres";
267
+ sqlite: "sqlite";
268
+ convex: "convex";
269
+ supabase: "supabase";
270
+ external: "external";
271
+ none: "none";
272
+ }>;
497
273
  file: z.ZodOptional<z.ZodString>;
498
274
  convex: z.ZodOptional<z.ZodObject<{
499
275
  deployment_url: z.ZodString;
500
- }, "strict", z.ZodTypeAny, {
501
- deployment_url: string;
502
- }, {
503
- deployment_url: string;
504
- }>>;
276
+ }, z.core.$strict>>;
505
277
  supabase: z.ZodOptional<z.ZodObject<{
506
278
  url: z.ZodString;
507
279
  anon_key: z.ZodOptional<z.ZodString>;
508
- }, "strict", z.ZodTypeAny, {
509
- url: string;
510
- anon_key?: string | undefined;
511
- }, {
512
- url: string;
513
- anon_key?: string | undefined;
514
- }>>;
515
- }, "strict", z.ZodTypeAny, {
516
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
517
- convex?: {
518
- deployment_url: string;
519
- } | undefined;
520
- supabase?: {
521
- url: string;
522
- anon_key?: string | undefined;
523
- } | undefined;
524
- file?: string | undefined;
525
- }, {
526
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
527
- convex?: {
528
- deployment_url: string;
529
- } | undefined;
530
- supabase?: {
531
- url: string;
532
- anon_key?: string | undefined;
533
- } | undefined;
534
- file?: string | undefined;
535
- }>, {
536
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
537
- convex?: {
538
- deployment_url: string;
539
- } | undefined;
540
- supabase?: {
541
- url: string;
542
- anon_key?: string | undefined;
543
- } | undefined;
544
- file?: string | undefined;
545
- }, {
546
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
547
- convex?: {
548
- deployment_url: string;
549
- } | undefined;
550
- supabase?: {
551
- url: string;
552
- anon_key?: string | undefined;
553
- } | undefined;
554
- file?: string | undefined;
555
- }>>;
556
- env: z.ZodOptional<z.ZodType<EnvSection, z.ZodTypeDef, unknown>>;
280
+ }, z.core.$strict>>;
281
+ }, z.core.$strict>>;
282
+ env: z.ZodOptional<z.ZodType<EnvSection, unknown, z.core.$ZodTypeInternals<EnvSection, unknown>>>;
557
283
  domain: z.ZodOptional<z.ZodObject<{
558
284
  subdomain: z.ZodOptional<z.ZodString>;
559
285
  custom: z.ZodOptional<z.ZodString>;
560
- }, "strict", z.ZodTypeAny, {
561
- custom?: string | undefined;
562
- subdomain?: string | undefined;
563
- }, {
564
- custom?: string | undefined;
565
- subdomain?: string | undefined;
566
- }>>;
567
- resources: z.ZodOptional<z.ZodEffects<z.ZodObject<{
568
- memory: z.ZodOptional<z.ZodEnum<["256mb", "512mb", "1gb", "2gb"]>>;
286
+ }, z.core.$strict>>;
287
+ resources: z.ZodOptional<z.ZodObject<{
288
+ memory: z.ZodOptional<z.ZodEnum<{
289
+ "256mb": "256mb";
290
+ "512mb": "512mb";
291
+ "1gb": "1gb";
292
+ "2gb": "2gb";
293
+ }>>;
569
294
  cpu: z.ZodOptional<z.ZodNumber>;
570
- /** Number of parallel container instances (Phase 6.1). Plan-gated. */
571
295
  instances: z.ZodOptional<z.ZodNumber>;
572
- autoscale: z.ZodOptional<z.ZodEffects<z.ZodObject<{
296
+ autoscale: z.ZodOptional<z.ZodObject<{
573
297
  min: z.ZodNumber;
574
298
  max: z.ZodNumber;
575
299
  scale_up_cpu_percent: z.ZodOptional<z.ZodNumber>;
@@ -577,328 +301,45 @@ export declare const percherConfigSchema: z.ZodObject<{
577
301
  scale_down_cpu_percent: z.ZodOptional<z.ZodNumber>;
578
302
  scale_down_sustain_seconds: z.ZodOptional<z.ZodNumber>;
579
303
  cooldown_seconds: z.ZodOptional<z.ZodNumber>;
580
- }, "strict", z.ZodTypeAny, {
581
- min: number;
582
- max: number;
583
- scale_up_cpu_percent?: number | undefined;
584
- scale_up_sustain_seconds?: number | undefined;
585
- scale_down_cpu_percent?: number | undefined;
586
- scale_down_sustain_seconds?: number | undefined;
587
- cooldown_seconds?: number | undefined;
588
- }, {
589
- min: number;
590
- max: number;
591
- scale_up_cpu_percent?: number | undefined;
592
- scale_up_sustain_seconds?: number | undefined;
593
- scale_down_cpu_percent?: number | undefined;
594
- scale_down_sustain_seconds?: number | undefined;
595
- cooldown_seconds?: number | undefined;
596
- }>, {
597
- min: number;
598
- max: number;
599
- scale_up_cpu_percent?: number | undefined;
600
- scale_up_sustain_seconds?: number | undefined;
601
- scale_down_cpu_percent?: number | undefined;
602
- scale_down_sustain_seconds?: number | undefined;
603
- cooldown_seconds?: number | undefined;
604
- }, {
605
- min: number;
606
- max: number;
607
- scale_up_cpu_percent?: number | undefined;
608
- scale_up_sustain_seconds?: number | undefined;
609
- scale_down_cpu_percent?: number | undefined;
610
- scale_down_sustain_seconds?: number | undefined;
611
- cooldown_seconds?: number | undefined;
612
- }>>;
613
- }, "strict", z.ZodTypeAny, {
614
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
615
- cpu?: number | undefined;
616
- instances?: number | undefined;
617
- autoscale?: {
618
- min: number;
619
- max: number;
620
- scale_up_cpu_percent?: number | undefined;
621
- scale_up_sustain_seconds?: number | undefined;
622
- scale_down_cpu_percent?: number | undefined;
623
- scale_down_sustain_seconds?: number | undefined;
624
- cooldown_seconds?: number | undefined;
625
- } | undefined;
626
- }, {
627
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
628
- cpu?: number | undefined;
629
- instances?: number | undefined;
630
- autoscale?: {
631
- min: number;
632
- max: number;
633
- scale_up_cpu_percent?: number | undefined;
634
- scale_up_sustain_seconds?: number | undefined;
635
- scale_down_cpu_percent?: number | undefined;
636
- scale_down_sustain_seconds?: number | undefined;
637
- cooldown_seconds?: number | undefined;
638
- } | undefined;
639
- }>, {
640
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
641
- cpu?: number | undefined;
642
- instances?: number | undefined;
643
- autoscale?: {
644
- min: number;
645
- max: number;
646
- scale_up_cpu_percent?: number | undefined;
647
- scale_up_sustain_seconds?: number | undefined;
648
- scale_down_cpu_percent?: number | undefined;
649
- scale_down_sustain_seconds?: number | undefined;
650
- cooldown_seconds?: number | undefined;
651
- } | undefined;
652
- }, {
653
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
654
- cpu?: number | undefined;
655
- instances?: number | undefined;
656
- autoscale?: {
657
- min: number;
658
- max: number;
659
- scale_up_cpu_percent?: number | undefined;
660
- scale_up_sustain_seconds?: number | undefined;
661
- scale_down_cpu_percent?: number | undefined;
662
- scale_down_sustain_seconds?: number | undefined;
663
- cooldown_seconds?: number | undefined;
664
- } | undefined;
665
- }>>;
304
+ }, z.core.$strict>>;
305
+ }, z.core.$strict>>;
666
306
  dev: z.ZodOptional<z.ZodObject<{
667
- ignore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
307
+ ignore: z.ZodOptional<z.ZodArray<z.ZodString>>;
668
308
  debounce: z.ZodOptional<z.ZodNumber>;
669
309
  auto_open: z.ZodOptional<z.ZodBoolean>;
670
- }, "strict", z.ZodTypeAny, {
671
- ignore?: string[] | undefined;
672
- debounce?: number | undefined;
673
- auto_open?: boolean | undefined;
674
- }, {
675
- ignore?: string[] | undefined;
676
- debounce?: number | undefined;
677
- auto_open?: boolean | undefined;
678
- }>>;
679
- required_env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["secret", "url", "string"]>>>;
310
+ }, z.core.$strict>>;
311
+ required_env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
312
+ string: "string";
313
+ url: "url";
314
+ secret: "secret";
315
+ }>>>;
680
316
  crons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
681
317
  schedule: z.ZodString;
682
318
  command: z.ZodString;
683
- }, "strict", z.ZodTypeAny, {
684
- command: string;
685
- schedule: string;
686
- }, {
687
- command: string;
688
- schedule: string;
689
- }>>>;
319
+ description: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strict>>>;
690
321
  addons: z.ZodOptional<z.ZodObject<{
691
322
  pocketbase: z.ZodOptional<z.ZodObject<{
692
323
  enabled: z.ZodOptional<z.ZodBoolean>;
693
- }, "strict", z.ZodTypeAny, {
694
- enabled?: boolean | undefined;
695
- }, {
696
- enabled?: boolean | undefined;
697
- }>>;
324
+ }, z.core.$strict>>;
698
325
  cron: z.ZodOptional<z.ZodObject<{
699
326
  enabled: z.ZodOptional<z.ZodBoolean>;
700
- }, "strict", z.ZodTypeAny, {
701
- enabled?: boolean | undefined;
702
- }, {
703
- enabled?: boolean | undefined;
704
- }>>;
327
+ }, z.core.$strict>>;
705
328
  storage: z.ZodOptional<z.ZodObject<{
706
- mode: z.ZodOptional<z.ZodEnum<["pocketbase", "volume", "s3"]>>;
329
+ mode: z.ZodOptional<z.ZodEnum<{
330
+ pocketbase: "pocketbase";
331
+ volume: "volume";
332
+ s3: "s3";
333
+ }>>;
707
334
  max_size: z.ZodOptional<z.ZodString>;
708
- }, "strict", z.ZodTypeAny, {
709
- mode?: "pocketbase" | "volume" | "s3" | undefined;
710
- max_size?: string | undefined;
711
- }, {
712
- mode?: "pocketbase" | "volume" | "s3" | undefined;
713
- max_size?: string | undefined;
714
- }>>;
715
- }, "strict", z.ZodTypeAny, {
716
- pocketbase?: {
717
- enabled?: boolean | undefined;
718
- } | undefined;
719
- cron?: {
720
- enabled?: boolean | undefined;
721
- } | undefined;
722
- storage?: {
723
- mode?: "pocketbase" | "volume" | "s3" | undefined;
724
- max_size?: string | undefined;
725
- } | undefined;
726
- }, {
727
- pocketbase?: {
728
- enabled?: boolean | undefined;
729
- } | undefined;
730
- cron?: {
731
- enabled?: boolean | undefined;
732
- } | undefined;
733
- storage?: {
734
- mode?: "pocketbase" | "volume" | "s3" | undefined;
735
- max_size?: string | undefined;
736
- } | undefined;
737
- }>>;
335
+ }, z.core.$strict>>;
336
+ }, z.core.$strict>>;
738
337
  checks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
739
338
  path: z.ZodString;
740
339
  interval: z.ZodOptional<z.ZodNumber>;
741
340
  timeout: z.ZodOptional<z.ZodNumber>;
742
341
  initial_delay: z.ZodOptional<z.ZodNumber>;
743
- }, "strict", z.ZodTypeAny, {
744
- path: string;
745
- interval?: number | undefined;
746
- timeout?: number | undefined;
747
- initial_delay?: number | undefined;
748
- }, {
749
- path: string;
750
- interval?: number | undefined;
751
- timeout?: number | undefined;
752
- initial_delay?: number | undefined;
753
- }>>>;
754
- }, "strict", z.ZodTypeAny, {
755
- app: {
756
- name: string;
757
- runtime: "node" | "bun" | "python" | "static" | "docker";
758
- 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;
759
- };
760
- build?: {
761
- command?: string | undefined;
762
- output?: string | undefined;
763
- pass_env?: string[] | undefined;
764
- } | undefined;
765
- web?: {
766
- port: number;
767
- health?: string | undefined;
768
- password?: boolean | undefined;
769
- } | undefined;
770
- data?: {
771
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
772
- convex?: {
773
- deployment_url: string;
774
- } | undefined;
775
- supabase?: {
776
- url: string;
777
- anon_key?: string | undefined;
778
- } | undefined;
779
- file?: string | undefined;
780
- } | undefined;
781
- env?: EnvSection | undefined;
782
- domain?: {
783
- custom?: string | undefined;
784
- subdomain?: string | undefined;
785
- } | undefined;
786
- resources?: {
787
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
788
- cpu?: number | undefined;
789
- instances?: number | undefined;
790
- autoscale?: {
791
- min: number;
792
- max: number;
793
- scale_up_cpu_percent?: number | undefined;
794
- scale_up_sustain_seconds?: number | undefined;
795
- scale_down_cpu_percent?: number | undefined;
796
- scale_down_sustain_seconds?: number | undefined;
797
- cooldown_seconds?: number | undefined;
798
- } | undefined;
799
- } | undefined;
800
- dev?: {
801
- ignore?: string[] | undefined;
802
- debounce?: number | undefined;
803
- auto_open?: boolean | undefined;
804
- } | undefined;
805
- required_env?: Record<string, "string" | "url" | "secret"> | undefined;
806
- crons?: Record<string, {
807
- command: string;
808
- schedule: string;
809
- }> | undefined;
810
- addons?: {
811
- pocketbase?: {
812
- enabled?: boolean | undefined;
813
- } | undefined;
814
- cron?: {
815
- enabled?: boolean | undefined;
816
- } | undefined;
817
- storage?: {
818
- mode?: "pocketbase" | "volume" | "s3" | undefined;
819
- max_size?: string | undefined;
820
- } | undefined;
821
- } | undefined;
822
- checks?: Record<string, {
823
- path: string;
824
- interval?: number | undefined;
825
- timeout?: number | undefined;
826
- initial_delay?: number | undefined;
827
- }> | undefined;
828
- }, {
829
- app: {
830
- name: string;
831
- runtime: "node" | "bun" | "python" | "static" | "docker";
832
- 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;
833
- };
834
- build?: {
835
- command?: string | undefined;
836
- output?: string | undefined;
837
- pass_env?: string[] | undefined;
838
- } | undefined;
839
- web?: {
840
- port: number;
841
- health?: string | undefined;
842
- password?: boolean | undefined;
843
- } | undefined;
844
- data?: {
845
- mode: "pocketbase" | "postgres" | "sqlite" | "convex" | "supabase" | "external" | "none";
846
- convex?: {
847
- deployment_url: string;
848
- } | undefined;
849
- supabase?: {
850
- url: string;
851
- anon_key?: string | undefined;
852
- } | undefined;
853
- file?: string | undefined;
854
- } | undefined;
855
- env?: unknown;
856
- domain?: {
857
- custom?: string | undefined;
858
- subdomain?: string | undefined;
859
- } | undefined;
860
- resources?: {
861
- memory?: "256mb" | "512mb" | "1gb" | "2gb" | undefined;
862
- cpu?: number | undefined;
863
- instances?: number | undefined;
864
- autoscale?: {
865
- min: number;
866
- max: number;
867
- scale_up_cpu_percent?: number | undefined;
868
- scale_up_sustain_seconds?: number | undefined;
869
- scale_down_cpu_percent?: number | undefined;
870
- scale_down_sustain_seconds?: number | undefined;
871
- cooldown_seconds?: number | undefined;
872
- } | undefined;
873
- } | undefined;
874
- dev?: {
875
- ignore?: string[] | undefined;
876
- debounce?: number | undefined;
877
- auto_open?: boolean | undefined;
878
- } | undefined;
879
- required_env?: Record<string, "string" | "url" | "secret"> | undefined;
880
- crons?: Record<string, {
881
- command: string;
882
- schedule: string;
883
- }> | undefined;
884
- addons?: {
885
- pocketbase?: {
886
- enabled?: boolean | undefined;
887
- } | undefined;
888
- cron?: {
889
- enabled?: boolean | undefined;
890
- } | undefined;
891
- storage?: {
892
- mode?: "pocketbase" | "volume" | "s3" | undefined;
893
- max_size?: string | undefined;
894
- } | undefined;
895
- } | undefined;
896
- checks?: Record<string, {
897
- path: string;
898
- interval?: number | undefined;
899
- timeout?: number | undefined;
900
- initial_delay?: number | undefined;
901
- }> | undefined;
902
- }>;
342
+ }, z.core.$strict>>>;
343
+ }, z.core.$strict>;
903
344
  export type PercherConfig = z.infer<typeof percherConfigSchema>;
904
345
  //# sourceMappingURL=schema.d.ts.map