envin 1.1.12 → 1.1.13

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.
@@ -1,283 +0,0 @@
1
- import * as z from 'zod';
2
- import { InferPresetOutput } from '../types.js';
3
-
4
- /**
5
- * Presets for Zod
6
- * * @module
7
- */
8
-
9
- /**
10
- * Vercel System Environment Variables
11
- * @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#system-environment-variables
12
- */
13
- declare const vercel: {
14
- readonly id: "vercel";
15
- readonly server: {
16
- readonly VERCEL: z.ZodOptional<z.ZodString>;
17
- readonly CI: z.ZodOptional<z.ZodString>;
18
- readonly VERCEL_ENV: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
19
- development: "development";
20
- preview: "preview";
21
- production: "production";
22
- }>>>;
23
- readonly VERCEL_TARGET_ENV: z.ZodOptional<z.ZodString>;
24
- readonly VERCEL_URL: z.ZodOptional<z.ZodString>;
25
- readonly VERCEL_PROJECT_PRODUCTION_URL: z.ZodOptional<z.ZodString>;
26
- readonly VERCEL_BRANCH_URL: z.ZodOptional<z.ZodString>;
27
- readonly VERCEL_REGION: z.ZodOptional<z.ZodString>;
28
- readonly VERCEL_DEPLOYMENT_ID: z.ZodOptional<z.ZodString>;
29
- readonly VERCEL_SKEW_PROTECTION_ENABLED: z.ZodOptional<z.ZodString>;
30
- readonly VERCEL_AUTOMATION_BYPASS_SECRET: z.ZodOptional<z.ZodString>;
31
- readonly VERCEL_GIT_PROVIDER: z.ZodOptional<z.ZodString>;
32
- readonly VERCEL_GIT_REPO_SLUG: z.ZodOptional<z.ZodString>;
33
- readonly VERCEL_GIT_REPO_OWNER: z.ZodOptional<z.ZodString>;
34
- readonly VERCEL_GIT_REPO_ID: z.ZodOptional<z.ZodString>;
35
- readonly VERCEL_GIT_COMMIT_REF: z.ZodOptional<z.ZodString>;
36
- readonly VERCEL_GIT_COMMIT_SHA: z.ZodOptional<z.ZodString>;
37
- readonly VERCEL_GIT_COMMIT_MESSAGE: z.ZodOptional<z.ZodString>;
38
- readonly VERCEL_GIT_COMMIT_AUTHOR_LOGIN: z.ZodOptional<z.ZodString>;
39
- readonly VERCEL_GIT_COMMIT_AUTHOR_NAME: z.ZodOptional<z.ZodString>;
40
- readonly VERCEL_GIT_PREVIOUS_SHA: z.ZodOptional<z.ZodString>;
41
- readonly VERCEL_GIT_PULL_REQUEST_ID: z.ZodOptional<z.ZodString>;
42
- };
43
- };
44
- type VercelEnv = InferPresetOutput<typeof vercel>;
45
- /**
46
- * Neon for Vercel Environment Variables
47
- * @see https://neon.tech/docs/guides/vercel-native-integration#environment-variables-set-by-the-integration
48
- */
49
- declare const neonVercel: {
50
- readonly id: "neon-vercel";
51
- readonly server: {
52
- readonly DATABASE_URL: z.ZodString;
53
- readonly DATABASE_URL_UNPOOLED: z.ZodOptional<z.ZodString>;
54
- readonly PGHOST: z.ZodOptional<z.ZodString>;
55
- readonly PGHOST_UNPOOLED: z.ZodOptional<z.ZodString>;
56
- readonly PGUSER: z.ZodOptional<z.ZodString>;
57
- readonly PGDATABASE: z.ZodOptional<z.ZodString>;
58
- readonly PGPASSWORD: z.ZodOptional<z.ZodString>;
59
- readonly POSTGRES_URL: z.ZodOptional<z.ZodURL>;
60
- readonly POSTGRES_URL_NON_POOLING: z.ZodOptional<z.ZodURL>;
61
- readonly POSTGRES_USER: z.ZodOptional<z.ZodString>;
62
- readonly POSTGRES_HOST: z.ZodOptional<z.ZodString>;
63
- readonly POSTGRES_PASSWORD: z.ZodOptional<z.ZodString>;
64
- readonly POSTGRES_DATABASE: z.ZodOptional<z.ZodString>;
65
- readonly POSTGRES_URL_NO_SSL: z.ZodOptional<z.ZodURL>;
66
- readonly POSTGRES_PRISMA_URL: z.ZodOptional<z.ZodURL>;
67
- };
68
- };
69
- type NeonVercelEnv = InferPresetOutput<typeof neonVercel>;
70
- /**
71
- * @see https://docs.uploadthing.com/getting-started/appdir#add-env-variables
72
- */
73
- declare const uploadthing: {
74
- readonly id: "uploadthing";
75
- readonly server: {
76
- readonly UPLOADTHING_TOKEN: z.ZodString;
77
- };
78
- };
79
- type UploadthingEnv = InferPresetOutput<typeof uploadthing>;
80
- /**
81
- * Render System Environment Variables
82
- * @see https://docs.render.com/environment-variables#all-runtimes
83
- */
84
- declare const render: {
85
- readonly id: "render";
86
- readonly server: {
87
- readonly IS_PULL_REQUEST: z.ZodOptional<z.ZodString>;
88
- readonly RENDER_DISCOVERY_SERVICE: z.ZodOptional<z.ZodString>;
89
- readonly RENDER_EXTERNAL_HOSTNAME: z.ZodOptional<z.ZodString>;
90
- readonly RENDER_EXTERNAL_URL: z.ZodOptional<z.ZodURL>;
91
- readonly RENDER_GIT_BRANCH: z.ZodOptional<z.ZodString>;
92
- readonly RENDER_GIT_COMMIT: z.ZodOptional<z.ZodString>;
93
- readonly RENDER_GIT_REPO_SLUG: z.ZodOptional<z.ZodString>;
94
- readonly RENDER_INSTANCE_ID: z.ZodOptional<z.ZodString>;
95
- readonly RENDER_SERVICE_ID: z.ZodOptional<z.ZodString>;
96
- readonly RENDER_SERVICE_NAME: z.ZodOptional<z.ZodString>;
97
- readonly RENDER_SERVICE_TYPE: z.ZodOptional<z.ZodEnum<{
98
- web: "web";
99
- pserv: "pserv";
100
- cron: "cron";
101
- worker: "worker";
102
- static: "static";
103
- }>>;
104
- readonly RENDER: z.ZodOptional<z.ZodString>;
105
- };
106
- };
107
- type RenderEnv = InferPresetOutput<typeof render>;
108
- /**
109
- * Railway Environment Variables
110
- * @see https://docs.railway.app/reference/variables#railway-provided-variables
111
- */
112
- declare const railway: {
113
- readonly id: "railway";
114
- readonly server: {
115
- readonly RAILWAY_PUBLIC_DOMAIN: z.ZodOptional<z.ZodString>;
116
- readonly RAILWAY_PRIVATE_DOMAIN: z.ZodOptional<z.ZodString>;
117
- readonly RAILWAY_TCP_PROXY_DOMAIN: z.ZodOptional<z.ZodString>;
118
- readonly RAILWAY_TCP_PROXY_PORT: z.ZodOptional<z.ZodString>;
119
- readonly RAILWAY_TCP_APPLICATION_PORT: z.ZodOptional<z.ZodString>;
120
- readonly RAILWAY_PROJECT_NAME: z.ZodOptional<z.ZodString>;
121
- readonly RAILWAY_PROJECT_ID: z.ZodOptional<z.ZodString>;
122
- readonly RAILWAY_ENVIRONMENT_NAME: z.ZodOptional<z.ZodString>;
123
- readonly RAILWAY_ENVIRONMENT_ID: z.ZodOptional<z.ZodString>;
124
- readonly RAILWAY_SERVICE_NAME: z.ZodOptional<z.ZodString>;
125
- readonly RAILWAY_SERVICE_ID: z.ZodOptional<z.ZodString>;
126
- readonly RAILWAY_REPLICA_ID: z.ZodOptional<z.ZodString>;
127
- readonly RAILWAY_DEPLOYMENT_ID: z.ZodOptional<z.ZodString>;
128
- readonly RAILWAY_SNAPSHOT_ID: z.ZodOptional<z.ZodString>;
129
- readonly RAILWAY_VOLUME_NAME: z.ZodOptional<z.ZodString>;
130
- readonly RAILWAY_VOLUME_MOUNT_PATH: z.ZodOptional<z.ZodString>;
131
- readonly RAILWAY_RUN_UID: z.ZodOptional<z.ZodString>;
132
- readonly RAILWAY_GIT_COMMIT_SHA: z.ZodOptional<z.ZodString>;
133
- readonly RAILWAY_GIT_AUTHOR_EMAIL: z.ZodOptional<z.ZodString>;
134
- readonly RAILWAY_GIT_BRANCH: z.ZodOptional<z.ZodString>;
135
- readonly RAILWAY_GIT_REPO_NAME: z.ZodOptional<z.ZodString>;
136
- readonly RAILWAY_GIT_REPO_OWNER: z.ZodOptional<z.ZodString>;
137
- readonly RAILWAY_GIT_COMMIT_MESSAGE: z.ZodOptional<z.ZodString>;
138
- };
139
- };
140
- type RailwayEnv = InferPresetOutput<typeof railway>;
141
- /**
142
- * Fly.io Environment Variables
143
- * @see https://fly.io/docs/machines/runtime-environment/#environment-variables
144
- */
145
- declare const fly: {
146
- readonly id: "fly";
147
- readonly server: {
148
- readonly FLY_APP_NAME: z.ZodOptional<z.ZodString>;
149
- readonly FLY_MACHINE_ID: z.ZodOptional<z.ZodString>;
150
- readonly FLY_ALLOC_ID: z.ZodOptional<z.ZodString>;
151
- readonly FLY_REGION: z.ZodOptional<z.ZodString>;
152
- readonly FLY_PUBLIC_IP: z.ZodOptional<z.ZodString>;
153
- readonly FLY_IMAGE_REF: z.ZodOptional<z.ZodString>;
154
- readonly FLY_MACHINE_VERSION: z.ZodOptional<z.ZodString>;
155
- readonly FLY_PRIVATE_IP: z.ZodOptional<z.ZodString>;
156
- readonly FLY_PROCESS_GROUP: z.ZodOptional<z.ZodString>;
157
- readonly FLY_VM_MEMORY_MB: z.ZodOptional<z.ZodString>;
158
- readonly PRIMARY_REGION: z.ZodOptional<z.ZodString>;
159
- };
160
- };
161
- type FlyEnv = InferPresetOutput<typeof fly>;
162
- /**
163
- * Netlify Environment Variables
164
- * @see https://docs.netlify.com/configure-builds/environment-variables
165
- */
166
- declare const netlify: {
167
- readonly id: "netlify";
168
- readonly server: {
169
- readonly NETLIFY: z.ZodOptional<z.ZodString>;
170
- readonly BUILD_ID: z.ZodOptional<z.ZodString>;
171
- readonly CONTEXT: z.ZodOptional<z.ZodEnum<{
172
- dev: "dev";
173
- production: "production";
174
- "deploy-preview": "deploy-preview";
175
- "branch-deploy": "branch-deploy";
176
- }>>;
177
- readonly REPOSITORY_URL: z.ZodOptional<z.ZodString>;
178
- readonly BRANCH: z.ZodOptional<z.ZodString>;
179
- readonly URL: z.ZodOptional<z.ZodString>;
180
- readonly DEPLOY_URL: z.ZodOptional<z.ZodString>;
181
- readonly DEPLOY_PRIME_URL: z.ZodOptional<z.ZodString>;
182
- readonly DEPLOY_ID: z.ZodOptional<z.ZodString>;
183
- readonly SITE_NAME: z.ZodOptional<z.ZodString>;
184
- readonly SITE_ID: z.ZodOptional<z.ZodString>;
185
- };
186
- };
187
- type NetlifyEnv = InferPresetOutput<typeof netlify>;
188
- /**
189
- * Upstash redis Environment Variables
190
- * @see https://upstash.com/docs/redis/howto/connectwithupstashredis
191
- */
192
- declare const upstashRedis: {
193
- readonly id: "upstash-redis";
194
- readonly server: {
195
- readonly UPSTASH_REDIS_REST_URL: z.ZodURL;
196
- readonly UPSTASH_REDIS_REST_TOKEN: z.ZodString;
197
- };
198
- };
199
- type UpstashRedisEnv = InferPresetOutput<typeof upstashRedis>;
200
- /**
201
- * Coolify Environment Variables
202
- * @see https://coolify.io/docs/knowledge-base/environment-variables#predefined-variables
203
- */
204
- declare const coolify: {
205
- readonly id: "coolify";
206
- readonly server: {
207
- readonly COOLIFY_FQDN: z.ZodOptional<z.ZodString>;
208
- readonly COOLIFY_URL: z.ZodOptional<z.ZodString>;
209
- readonly COOLIFY_BRANCH: z.ZodOptional<z.ZodString>;
210
- readonly COOLIFY_RESOURCE_UUID: z.ZodOptional<z.ZodString>;
211
- readonly COOLIFY_CONTAINER_NAME: z.ZodOptional<z.ZodString>;
212
- readonly SOURCE_COMMIT: z.ZodOptional<z.ZodString>;
213
- readonly PORT: z.ZodOptional<z.ZodString>;
214
- readonly HOST: z.ZodOptional<z.ZodString>;
215
- };
216
- };
217
- type CoolifyEnv = InferPresetOutput<typeof coolify>;
218
- /**
219
- * Supabase for Vercel Environment Variables
220
- * @see https://vercel.com/marketplace/supabase
221
- */
222
- declare const supabaseVercel: {
223
- readonly id: "supabase-vercel";
224
- readonly clientPrefix: "NEXT_PUBLIC_";
225
- readonly server: {
226
- readonly POSTGRES_URL: z.ZodURL;
227
- readonly POSTGRES_PRISMA_URL: z.ZodOptional<z.ZodURL>;
228
- readonly POSTGRES_URL_NON_POOLING: z.ZodOptional<z.ZodURL>;
229
- readonly POSTGRES_USER: z.ZodOptional<z.ZodString>;
230
- readonly POSTGRES_HOST: z.ZodOptional<z.ZodString>;
231
- readonly POSTGRES_PASSWORD: z.ZodOptional<z.ZodString>;
232
- readonly POSTGRES_DATABASE: z.ZodOptional<z.ZodString>;
233
- readonly SUPABASE_SERVICE_ROLE_KEY: z.ZodOptional<z.ZodString>;
234
- readonly SUPABASE_ANON_KEY: z.ZodOptional<z.ZodString>;
235
- readonly SUPABASE_URL: z.ZodOptional<z.ZodURL>;
236
- readonly SUPABASE_JWT_SECRET: z.ZodOptional<z.ZodString>;
237
- };
238
- readonly client: {
239
- readonly NEXT_PUBLIC_SUPABASE_ANON_KEY: z.ZodOptional<z.ZodString>;
240
- readonly NEXT_PUBLIC_SUPABASE_URL: z.ZodOptional<z.ZodURL>;
241
- };
242
- };
243
- type SupabaseVercelEnv = InferPresetOutput<typeof supabaseVercel>;
244
- /**
245
- * Vite Environment Variables
246
- * @see https://vite.dev/guide/env-and-mode
247
- */
248
- declare const vite: {
249
- readonly id: "vite";
250
- readonly shared: {
251
- readonly BASE_URL: z.ZodOptional<z.ZodString>;
252
- readonly MODE: z.ZodOptional<z.ZodString>;
253
- readonly DEV: z.ZodOptional<z.ZodBoolean>;
254
- readonly PROD: z.ZodOptional<z.ZodBoolean>;
255
- readonly SSR: z.ZodOptional<z.ZodBoolean>;
256
- };
257
- };
258
- type ViteEnv = InferPresetOutput<typeof vite>;
259
- /**
260
- * WXT Environment Variables
261
- * @see https://wxt.dev/guide/essentials/config/environment-variables.html#built-in-environment-variables
262
- */
263
- declare const wxt: {
264
- readonly id: "wxt";
265
- readonly server: {
266
- readonly MANIFEST_VERSION: z.ZodOptional<z.ZodPipe<z.ZodTransform<number, any>, z.ZodUnion<readonly [z.ZodLiteral<2>, z.ZodLiteral<3>]>>>;
267
- readonly BROWSER: z.ZodOptional<z.ZodEnum<{
268
- chrome: "chrome";
269
- firefox: "firefox";
270
- safari: "safari";
271
- edge: "edge";
272
- opera: "opera";
273
- }>>;
274
- readonly CHROME: z.ZodOptional<z.ZodBoolean>;
275
- readonly FIREFOX: z.ZodOptional<z.ZodBoolean>;
276
- readonly SAFARI: z.ZodOptional<z.ZodBoolean>;
277
- readonly EDGE: z.ZodOptional<z.ZodBoolean>;
278
- readonly OPERA: z.ZodOptional<z.ZodBoolean>;
279
- };
280
- };
281
- type WxtEnv = InferPresetOutput<typeof wxt>;
282
-
283
- export { type CoolifyEnv, type FlyEnv, type NeonVercelEnv, type NetlifyEnv, type RailwayEnv, type RenderEnv, type SupabaseVercelEnv, type UploadthingEnv, type UpstashRedisEnv, type VercelEnv, type ViteEnv, type WxtEnv, coolify, fly, neonVercel, netlify, railway, render, supabaseVercel, uploadthing, upstashRedis, vercel, vite, wxt };
@@ -1 +0,0 @@
1
- import*as t from"zod";var o={id:"vercel",server:{VERCEL:t.string().optional(),CI:t.string().optional(),VERCEL_ENV:t.enum(["development","preview","production"]).optional().default("development"),VERCEL_TARGET_ENV:t.string().optional(),VERCEL_URL:t.string().optional(),VERCEL_PROJECT_PRODUCTION_URL:t.string().optional(),VERCEL_BRANCH_URL:t.string().optional(),VERCEL_REGION:t.string().optional(),VERCEL_DEPLOYMENT_ID:t.string().optional(),VERCEL_SKEW_PROTECTION_ENABLED:t.string().optional(),VERCEL_AUTOMATION_BYPASS_SECRET:t.string().optional(),VERCEL_GIT_PROVIDER:t.string().optional(),VERCEL_GIT_REPO_SLUG:t.string().optional(),VERCEL_GIT_REPO_OWNER:t.string().optional(),VERCEL_GIT_REPO_ID:t.string().optional(),VERCEL_GIT_COMMIT_REF:t.string().optional(),VERCEL_GIT_COMMIT_SHA:t.string().optional(),VERCEL_GIT_COMMIT_MESSAGE:t.string().optional(),VERCEL_GIT_COMMIT_AUTHOR_LOGIN:t.string().optional(),VERCEL_GIT_COMMIT_AUTHOR_NAME:t.string().optional(),VERCEL_GIT_PREVIOUS_SHA:t.string().optional(),VERCEL_GIT_PULL_REQUEST_ID:t.string().optional()}},n={id:"neon-vercel",server:{DATABASE_URL:t.string(),DATABASE_URL_UNPOOLED:t.string().optional(),PGHOST:t.string().optional(),PGHOST_UNPOOLED:t.string().optional(),PGUSER:t.string().optional(),PGDATABASE:t.string().optional(),PGPASSWORD:t.string().optional(),POSTGRES_URL:t.url().optional(),POSTGRES_URL_NON_POOLING:t.url().optional(),POSTGRES_USER:t.string().optional(),POSTGRES_HOST:t.string().optional(),POSTGRES_PASSWORD:t.string().optional(),POSTGRES_DATABASE:t.string().optional(),POSTGRES_URL_NO_SSL:t.url().optional(),POSTGRES_PRISMA_URL:t.url().optional()}},i={id:"uploadthing",server:{UPLOADTHING_TOKEN:t.string()}},r={id:"render",server:{IS_PULL_REQUEST:t.string().optional(),RENDER_DISCOVERY_SERVICE:t.string().optional(),RENDER_EXTERNAL_HOSTNAME:t.string().optional(),RENDER_EXTERNAL_URL:t.url().optional(),RENDER_GIT_BRANCH:t.string().optional(),RENDER_GIT_COMMIT:t.string().optional(),RENDER_GIT_REPO_SLUG:t.string().optional(),RENDER_INSTANCE_ID:t.string().optional(),RENDER_SERVICE_ID:t.string().optional(),RENDER_SERVICE_NAME:t.string().optional(),RENDER_SERVICE_TYPE:t.enum(["web","pserv","cron","worker","static"]).optional(),RENDER:t.string().optional()}},e={id:"railway",server:{RAILWAY_PUBLIC_DOMAIN:t.string().optional(),RAILWAY_PRIVATE_DOMAIN:t.string().optional(),RAILWAY_TCP_PROXY_DOMAIN:t.string().optional(),RAILWAY_TCP_PROXY_PORT:t.string().optional(),RAILWAY_TCP_APPLICATION_PORT:t.string().optional(),RAILWAY_PROJECT_NAME:t.string().optional(),RAILWAY_PROJECT_ID:t.string().optional(),RAILWAY_ENVIRONMENT_NAME:t.string().optional(),RAILWAY_ENVIRONMENT_ID:t.string().optional(),RAILWAY_SERVICE_NAME:t.string().optional(),RAILWAY_SERVICE_ID:t.string().optional(),RAILWAY_REPLICA_ID:t.string().optional(),RAILWAY_DEPLOYMENT_ID:t.string().optional(),RAILWAY_SNAPSHOT_ID:t.string().optional(),RAILWAY_VOLUME_NAME:t.string().optional(),RAILWAY_VOLUME_MOUNT_PATH:t.string().optional(),RAILWAY_RUN_UID:t.string().optional(),RAILWAY_GIT_COMMIT_SHA:t.string().optional(),RAILWAY_GIT_AUTHOR_EMAIL:t.string().optional(),RAILWAY_GIT_BRANCH:t.string().optional(),RAILWAY_GIT_REPO_NAME:t.string().optional(),RAILWAY_GIT_REPO_OWNER:t.string().optional(),RAILWAY_GIT_COMMIT_MESSAGE:t.string().optional()}},s={id:"fly",server:{FLY_APP_NAME:t.string().optional(),FLY_MACHINE_ID:t.string().optional(),FLY_ALLOC_ID:t.string().optional(),FLY_REGION:t.string().optional(),FLY_PUBLIC_IP:t.string().optional(),FLY_IMAGE_REF:t.string().optional(),FLY_MACHINE_VERSION:t.string().optional(),FLY_PRIVATE_IP:t.string().optional(),FLY_PROCESS_GROUP:t.string().optional(),FLY_VM_MEMORY_MB:t.string().optional(),PRIMARY_REGION:t.string().optional()}},E={id:"netlify",server:{NETLIFY:t.string().optional(),BUILD_ID:t.string().optional(),CONTEXT:t.enum(["production","deploy-preview","branch-deploy","dev"]).optional(),REPOSITORY_URL:t.string().optional(),BRANCH:t.string().optional(),URL:t.string().optional(),DEPLOY_URL:t.string().optional(),DEPLOY_PRIME_URL:t.string().optional(),DEPLOY_ID:t.string().optional(),SITE_NAME:t.string().optional(),SITE_ID:t.string().optional()}},_={id:"upstash-redis",server:{UPSTASH_REDIS_REST_URL:t.url(),UPSTASH_REDIS_REST_TOKEN:t.string()}},p={id:"coolify",server:{COOLIFY_FQDN:t.string().optional(),COOLIFY_URL:t.string().optional(),COOLIFY_BRANCH:t.string().optional(),COOLIFY_RESOURCE_UUID:t.string().optional(),COOLIFY_CONTAINER_NAME:t.string().optional(),SOURCE_COMMIT:t.string().optional(),PORT:t.string().optional(),HOST:t.string().optional()}},R={id:"supabase-vercel",clientPrefix:"NEXT_PUBLIC_",server:{POSTGRES_URL:t.url(),POSTGRES_PRISMA_URL:t.url().optional(),POSTGRES_URL_NON_POOLING:t.url().optional(),POSTGRES_USER:t.string().optional(),POSTGRES_HOST:t.string().optional(),POSTGRES_PASSWORD:t.string().optional(),POSTGRES_DATABASE:t.string().optional(),SUPABASE_SERVICE_ROLE_KEY:t.string().optional(),SUPABASE_ANON_KEY:t.string().optional(),SUPABASE_URL:t.url().optional(),SUPABASE_JWT_SECRET:t.string().optional()},client:{NEXT_PUBLIC_SUPABASE_ANON_KEY:t.string().optional(),NEXT_PUBLIC_SUPABASE_URL:t.url().optional()}},a={id:"vite",shared:{BASE_URL:t.string().optional(),MODE:t.string().optional(),DEV:t.boolean().optional(),PROD:t.boolean().optional(),SSR:t.boolean().optional()}},l={id:"wxt",server:{MANIFEST_VERSION:t.preprocess(Number,t.union([t.literal(2),t.literal(3)])).optional(),BROWSER:t.enum(["chrome","firefox","safari","edge","opera"]).optional(),CHROME:t.boolean().optional(),FIREFOX:t.boolean().optional(),SAFARI:t.boolean().optional(),EDGE:t.boolean().optional(),OPERA:t.boolean().optional()}};export{p as coolify,s as fly,n as neonVercel,E as netlify,e as railway,r as render,R as supabaseVercel,i as uploadthing,_ as upstashRedis,o as vercel,a as vite,l as wxt};
package/dist/types.d.ts DELETED
@@ -1,218 +0,0 @@
1
- /** The Standard Schema interface. */
2
- interface StandardSchemaV1<Input = unknown, Output = Input> {
3
- /** The Standard Schema properties. */
4
- readonly "~standard": StandardSchemaV1.Props<Input, Output>;
5
- }
6
- declare namespace StandardSchemaV1 {
7
- /** The Standard Schema properties interface. */
8
- interface Props<Input = unknown, Output = Input> {
9
- /** The version number of the standard. */
10
- readonly version: 1;
11
- /** The vendor name of the schema library. */
12
- readonly vendor: string;
13
- /** Validates unknown input values. */
14
- readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>;
15
- /** Inferred types associated with the schema. */
16
- readonly types?: Types<Input, Output> | undefined;
17
- }
18
- /** The result interface of the validate function. */
19
- type Result<Output> = SuccessResult<Output> | FailureResult;
20
- /** The result interface if validation succeeds. */
21
- interface SuccessResult<Output> {
22
- /** The typed output value. */
23
- readonly value: Output;
24
- /** The non-existent issues. */
25
- readonly issues?: undefined;
26
- }
27
- /** The result interface if validation fails. */
28
- interface FailureResult {
29
- /** The issues of failed validation. */
30
- readonly issues: ReadonlyArray<Issue>;
31
- }
32
- /** The issue interface of the failure output. */
33
- interface Issue {
34
- /** The error message of the issue. */
35
- readonly message: string;
36
- /** The path of the issue, if any. */
37
- readonly path?: ReadonlyArray<PropertyKey | PathSegment> | undefined;
38
- }
39
- /** The path segment interface of the issue. */
40
- interface PathSegment {
41
- /** The key representing a path segment. */
42
- readonly key: PropertyKey;
43
- }
44
- /** The Standard Schema types interface. */
45
- interface Types<Input = unknown, Output = Input> {
46
- /** The input type of the schema. */
47
- readonly input: Input;
48
- /** The output type of the schema. */
49
- readonly output: Output;
50
- }
51
- /** Infers the input type of a Standard Schema. */
52
- type InferInput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["input"];
53
- /** Infers the output type of a Standard Schema. */
54
- type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
55
- }
56
- /** A dictionary of Standard Schema objects mapping input keys to their corresponding schemas. */
57
- type StandardSchemaDictionary<Input = Record<string, unknown>, Output extends Record<keyof Input, unknown> = Input> = {
58
- [K in keyof Input]-?: StandardSchemaV1<Input[K], Output[K]>;
59
- };
60
- declare namespace StandardSchemaDictionary {
61
- /** Infers the input types from a Standard Schema Dictionary. */
62
- type InferInput<T extends StandardSchemaDictionary> = {
63
- [K in keyof T]: StandardSchemaV1.InferInput<T[K]>;
64
- };
65
- /** Infers the output types from a Standard Schema Dictionary. */
66
- type InferOutput<T extends StandardSchemaDictionary> = {
67
- [K in keyof T]: StandardSchemaV1.InferOutput<T[K]>;
68
- };
69
- }
70
-
71
- /** Type for error messages that must be strings */
72
- type ErrorMessage<T extends string> = T;
73
- /** Creates a type where all properties are impossible to set */
74
- type Impossible<T extends Record<string, any>> = Partial<Record<keyof T, never>>;
75
- /** Merges two types, with B taking precedence over A */
76
- type Merge<A, B> = Omit<A, keyof B> & B;
77
- /** Simplifies a type by removing intersections and making it more readable */
78
- type Simplify<T> = {
79
- [P in keyof T]: T[P];
80
- } & {};
81
- /** Gets all keys from T that can be undefined */
82
- type PossiblyUndefinedKeys<T> = {
83
- [K in keyof T]: undefined extends T[K] ? K : never;
84
- }[keyof T];
85
- /** Makes properties that can be undefined optional */
86
- type UndefinedOptional<T> = Partial<Pick<T, PossiblyUndefinedKeys<T>>> & Omit<T, PossiblyUndefinedKeys<T>>;
87
- /** Converts a readonly type to a mutable type */
88
- type Mutable<T> = T extends Readonly<infer U> ? U : T;
89
- /** Extracts the combined schema from validation options */
90
- type ExtractExtendsArray<T> = T extends {
91
- extends?: infer E;
92
- } ? E extends ExtendsFormat ? E : [] : [];
93
- type Depth = 0 | 1 | 2 | 3 | 4;
94
- type DefaultDepth = 2;
95
- type Prev = [0, 0, 1, 2, 3];
96
- type Dec<N extends Depth> = Prev[N];
97
- type AsDictionary<T> = T extends object ? StandardSchemaDictionary<object, object> & T : StandardSchemaDictionary<object, object>;
98
- type ExtractCombinedSchema<T, D extends Depth = DefaultDepth> = T extends ValidationOptions<PrefixFormat, infer Shared, infer Server, infer Client> ? CombinedSchema<AsDictionary<Reduce<ExtractExtendsArray<T>, StandardSchemaDictionary<object, object>, D>>, AsDictionary<CombinedSchema<Shared, Server, Client>>> : T extends Readonly<ValidationOptions<PrefixFormat, infer Shared, infer Server, infer Client>> ? CombinedSchema<AsDictionary<Reduce<ExtractExtendsArray<T>, StandardSchemaDictionary<object, object>, D>>, AsDictionary<CombinedSchema<Shared, Server, Client>>> : CombinedSchema<AsDictionary<Reduce<ExtractExtendsArray<T>, StandardSchemaDictionary<object, object>, D>>, AsDictionary<CombinedSchema<T extends {
99
- shared: infer S;
100
- } ? S extends SharedFormat ? S : StandardSchemaDictionary<object, object> : StandardSchemaDictionary<object, object>, T extends {
101
- server: infer Sv;
102
- } ? Sv extends ServerFormat ? Sv : StandardSchemaDictionary<object, object> : StandardSchemaDictionary<object, object>, T extends {
103
- client: infer C;
104
- } ? C extends ClientFormat ? C : StandardSchemaDictionary<object, object> : StandardSchemaDictionary<object, object>>>>;
105
- /** Reduces an array of schemas to a single schema */
106
- type Reduce<Arr extends readonly unknown[] | unknown[], Acc extends StandardSchemaDictionary<object, object> = StandardSchemaDictionary<object, object>, D extends Depth = DefaultDepth> = D extends 0 ? Acc : Arr extends readonly [] | [] ? Acc : Arr extends readonly [infer Head, ...infer Tail] | [infer Head, ...infer Tail] ? Tail extends readonly unknown[] | unknown[] ? Mutable<Reduce<Tail, CombinedSchema<AsDictionary<Acc>, AsDictionary<ExtractCombinedSchema<Head, Dec<D>>>>, D>> : never : never;
107
- type InferPresetOutput<T extends ExtendsFormat[number]> = StandardSchemaDictionary.InferOutput<ExtractCombinedSchema<T>>;
108
- type CombinedSchema<Shared extends SharedFormat = SharedFormat, Server extends ServerFormat = ServerFormat, Client extends ClientFormat = ClientFormat> = StandardSchemaDictionary<object, object> & Merge<Shared, Merge<Server, Client>>;
109
- type PrefixFormat = string | undefined;
110
- type SharedFormat = StandardSchemaDictionary<object, object>;
111
- type ServerFormat = StandardSchemaDictionary<object, object>;
112
- type ClientFormat = StandardSchemaDictionary<object, object>;
113
- type ExtendsFormat = (Preset | Readonly<Preset>)[] | ReadonlyArray<Preset>;
114
- type Preset<Prefix extends PrefixFormat = PrefixFormat, Shared extends SharedFormat = SharedFormat, Server extends ServerFormat = ServerFormat, Client extends ClientFormat = ClientFormat, Extends extends ExtendsFormat = ExtendsFormat> = ValidationOptions<Prefix, Shared, Server, Client> & {
115
- id?: string;
116
- extends?: Extends;
117
- };
118
- type Schema = StandardSchemaV1<object, object>;
119
- interface BaseOptions<Extends extends ExtendsFormat> {
120
- /**
121
- * Array of preset configurations to extend from.
122
- */
123
- extends?: Extends;
124
- /**
125
- * Whether to skip validation of environment variables.
126
- * @default false
127
- */
128
- skip?: boolean;
129
- /**
130
- * Whether to treat environment as server-side.
131
- * @default typeof window === "undefined" || "Deno" in window
132
- */
133
- isServer?: boolean;
134
- /**
135
- * Called when validation fails. By default the error is logged,
136
- * and an error is thrown telling what environment variables are invalid.
137
- */
138
- onError?: (issues: StandardSchemaV1.FailureResult["issues"]) => never;
139
- /**
140
- * Called when a server-side environment variable is accessed on the client.
141
- * By default an error is thrown.
142
- */
143
- onInvalidAccess?: (variable: string) => never;
144
- }
145
- interface LooseOptions<Extends extends ExtendsFormat> extends BaseOptions<Extends> {
146
- /**
147
- * Must be undefined when using loose options. Use `env` instead.
148
- */
149
- envStrict?: never;
150
- /**
151
- * What object holds the environment variables at runtime. This is usually
152
- * `process.env` or `import.meta.env`.
153
- * This doesn't enforce that all environment variables are set.
154
- */
155
- env?: Record<string, string | boolean | number | undefined>;
156
- }
157
- interface StrictOptions<Prefix extends PrefixFormat, Server extends ServerFormat, Client extends ClientFormat, Shared extends SharedFormat, Extends extends ExtendsFormat> extends BaseOptions<Extends> {
158
- /**
159
- * Runtime Environment variables to use for validation - `process.env`, `import.meta.env` or similar.
160
- * Enforces all environment variables to be set. Required in for example Next.js Edge and Client runtimes.
161
- */
162
- envStrict?: Record<{
163
- [Key in keyof Client]: Prefix extends undefined ? never : Key extends `${Prefix}${string}` ? Key : never;
164
- }[keyof Client] | {
165
- [Key in keyof Server]: Prefix extends undefined ? Key : Key extends `${Prefix}${string}` ? never : Key;
166
- }[keyof Server] | {
167
- [Key in keyof Shared]: Key extends string ? Key : never;
168
- }[keyof Shared] | keyof StandardSchemaDictionary.InferOutput<FullSchemaShape<Shared, Server, Client, Extends>>, string | boolean | number | undefined>;
169
- /**
170
- * Must be undefined when using strict options. Use `envStrict` instead.
171
- */
172
- env?: never;
173
- }
174
- interface SharedOptions<Shared extends SharedFormat> {
175
- /**
176
- * Specify your shared environment variables schema here. These variables are available on both client and server.
177
- */
178
- shared?: Shared;
179
- }
180
- interface ClientOptions<Prefix extends PrefixFormat, Client extends ClientFormat> {
181
- /**
182
- * The prefix that client-side variables must have. This is enforced both at
183
- * a type-level and at runtime.
184
- */
185
- clientPrefix?: Prefix;
186
- /**
187
- * Specify your client-side environment variables schema here. This way you can ensure the app isn't
188
- * built with invalid env vars.
189
- */
190
- client?: Partial<{
191
- [Key in keyof Client]: Key extends `${Prefix}${string}` ? Client[Key] : ErrorMessage<`${Key extends string ? Key : never} is not prefixed with ${Prefix}.`>;
192
- }>;
193
- }
194
- interface ServerOptions<Prefix extends PrefixFormat, Server extends ServerFormat> {
195
- /**
196
- * Specify your server-side environment variables schema here. This way you can ensure the app isn't
197
- * built with invalid env vars.
198
- */
199
- server: Partial<{
200
- [Key in keyof Server]: Prefix extends undefined ? Server[Key] : Prefix extends "" ? Server[Key] : Key extends `${Prefix}${string}` ? ErrorMessage<`${Key extends `${Prefix}${string}` ? Key : never} should not prefixed with ${Prefix}.`> : Server[Key];
201
- }>;
202
- }
203
- type ValidationOptions<Prefix extends PrefixFormat = PrefixFormat, Shared extends SharedFormat = SharedFormat, Server extends ServerFormat = ServerFormat, Client extends ClientFormat = ClientFormat> = ((ClientOptions<Prefix, Client> & ServerOptions<Prefix, Server>) | (ServerOptions<Prefix, Server> & Impossible<ClientOptions<never, never>>) | (ClientOptions<Prefix, Client> & Impossible<ServerOptions<never, never>>)) & SharedOptions<Shared>;
204
- interface TransformSchemaOptions<Shared extends SharedFormat, Server extends ServerFormat, Client extends ClientFormat, Extends extends ExtendsFormat, FinalSchema extends Schema> {
205
- /**
206
- * A custom function to combine the schemas.
207
- * Can be used to add further refinement or transformation.
208
- */
209
- transform?: (shape: Simplify<FullSchemaShape<Shared, Server, Client, Extends>>, isServer: boolean) => FinalSchema;
210
- }
211
- type EnvOptions<Prefix extends PrefixFormat = PrefixFormat, Shared extends SharedFormat = SharedFormat, Server extends ServerFormat = ServerFormat, Client extends ClientFormat = ClientFormat, Extends extends ExtendsFormat = ExtendsFormat, FinalSchema extends Schema = Schema> = (LooseOptions<Extends> | StrictOptions<Prefix, Server, Client, Shared, Extends>) & ValidationOptions<Prefix, Shared, Server, Client> & TransformSchemaOptions<Shared, Server, Client, Extends, FinalSchema>;
212
- type FullSchemaShape<Shared extends SharedFormat, Server extends ServerFormat, Client extends ClientFormat, Extends extends ExtendsFormat, D extends Depth = DefaultDepth> = CombinedSchema<AsDictionary<Reduce<Extends, StandardSchemaDictionary<object, object>, D>>, CombinedSchema<Shared, Server, Client>>;
213
- type FinalSchema<Shared extends SharedFormat, Server extends ServerFormat, Client extends ClientFormat, Extends extends ExtendsFormat, D extends Depth = DefaultDepth> = StandardSchemaV1<object, UndefinedOptional<StandardSchemaDictionary.InferOutput<FullSchemaShape<Shared, Server, Client, Extends, D>>>>;
214
- type DefineEnv<FinalSchema extends Schema = Schema> = Simplify<Readonly<StandardSchemaV1.InferOutput<FinalSchema> & {
215
- _schema: FinalSchema;
216
- }>>;
217
-
218
- export type { BaseOptions, ClientFormat, ClientOptions, CombinedSchema, DefineEnv, EnvOptions, ErrorMessage, ExtendsFormat, FinalSchema, FullSchemaShape, InferPresetOutput, LooseOptions, PrefixFormat, Preset, Schema, ServerFormat, ServerOptions, SharedFormat, SharedOptions, Simplify, StrictOptions, TransformSchemaOptions, ValidationOptions };
package/dist/types.js DELETED
File without changes