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.
- package/dist/{index.d.ts → index.d.mts} +4 -3
- package/dist/index.mjs +1 -0
- package/dist/presets/arktype.d.mts +259 -0
- package/dist/presets/arktype.mjs +1 -0
- package/dist/presets/valibot.d.mts +258 -0
- package/dist/presets/valibot.mjs +1 -0
- package/dist/presets/zod.d.mts +280 -0
- package/dist/presets/zod.mjs +1 -0
- package/dist/types-5fo7WST9.d.mts +200 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.mjs +1 -0
- package/package.json +12 -10
- package/dist/index.js +0 -1
- package/dist/presets/arktype.d.ts +0 -258
- package/dist/presets/arktype.js +0 -1
- package/dist/presets/valibot.d.ts +0 -261
- package/dist/presets/valibot.js +0 -1
- package/dist/presets/zod.d.ts +0 -283
- package/dist/presets/zod.js +0 -1
- package/dist/types.d.ts +0 -218
- package/dist/types.js +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as DefineEnv, c as ExtendsFormat, g as ServerFormat, h as Schema, l as FinalSchema, n as ClientFormat, o as EnvOptions, p as PrefixFormat, v as SharedFormat } from "./types-5fo7WST9.mjs";
|
|
2
2
|
|
|
3
|
+
//#region src/index.d.ts
|
|
3
4
|
declare function defineEnv<Prefix extends PrefixFormat, Shared extends SharedFormat = NonNullable<unknown>, Server extends ServerFormat = NonNullable<unknown>, Client extends ClientFormat = NonNullable<unknown>, const Extends extends ExtendsFormat = [], FinalSchemaType extends Schema = FinalSchema<Shared, Server, Client, Extends>>(options: EnvOptions<Prefix, Shared, Server, Client, Extends, FinalSchemaType>): DefineEnv<FinalSchemaType>;
|
|
4
|
-
|
|
5
|
-
export { defineEnv };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { defineEnv };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){if(e instanceof Promise)throw Error(t)}function t(t,n){let r={},i=[];for(let a in t){let o=t[a]?.[`~standard`].validate(n[a]);if(e(o,`Validation must be synchronous, but ${a} returned a Promise.`),o?.issues){i.push(...o.issues.map(e=>({...e,path:[a,...e.path??[]]})));continue}r[a]=o?.value}return i.length?{issues:i}:{value:r}}const n=e=>[`function`,`object`].includes(typeof e)&&!!e&&`~standard`in e&&typeof e[`~standard`]==`object`&&!!e[`~standard`]&&`validate`in e[`~standard`],r=e=>{if(!(typeof e!=`object`||!e)){if(`default`in e&&![`object`,`function`].includes(typeof e.default))return e.default;if(`_def`in e&&typeof e._def==`object`&&e._def!==null&&`defaultValue`in e._def)return typeof e._def.defaultValue==`function`?e._def.defaultValue?.():e._def.defaultValue}},i=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,r(t)])),a=e=>[`__esModule`,`$$typeof`].includes(e),o=(e,t)=>({...e.shared&&e.shared,...e.server&&t&&e.server,...e.client&&e.client}),s=(e,t)=>{let n=e=>({...e.extends?.reduce((e,t)=>({...e,...n(t)}),{})??{},...o(e,t)});return{...e.extends?.reduce((e,t)=>({...e,...n(t)}),{})??{},...o(e,t)}};var c=class extends Error{constructor(e){super(e),this.name=`EnvError`}};function l(o){let l=o.envStrict??o.env??process.env;for(let[e,t]of Object.entries(l))t===``&&delete l[e];let u=o.isServer??(typeof window>`u`||`Deno`in window),d=o.onError??(e=>{throw console.error(`❌ Invalid environment variables:`,e),new c(`Invalid environment variables`)}),f=o.onInvalidAccess??(e=>{throw new c(`❌ Attempted to access a server-side environment variable on the client: ${e}`)}),p=!!o.skip,m=s(o,u),h=o.transform?.(m,u)??m,g=n(h)?r(h):i(h),_=Object.fromEntries(Object.entries(l).map(([e,t])=>t===void 0?[e,g&&e in g?g[e]:void 0]:[e,t]));if(p)return{...g,..._,_schema:m};let v=n(h)?h[`~standard`].validate(l):t(m,l);if(e(v,`Validation must be synchronous!`),v.issues)return d(v.issues);let y=e=>{let t=e=>[{keys:Object.keys(e.client??{}),prefix:e.clientPrefix},...(e.extends??[]).flatMap(e=>t(e))],n=e=>{let t=Object.keys(e.shared??{}),r=(e.extends??[]).flatMap(e=>n(e));return[...t,...r]},r=t(o).some(t=>t.keys.includes(e)&&(!t.prefix||e.startsWith(t.prefix)));return!n(o).includes(e)&&!r},b=e=>u||!y(e);return new Proxy(`value`in v?v.value:{},{get(e,t){if(typeof t==`string`&&!a(t))return t===`_schema`?m:b(t)?Reflect.get(e,t):f(t)}})}export{l as defineEnv};
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { d as InferPresetOutput } from "../types-5fo7WST9.mjs";
|
|
2
|
+
import * as arktype0 from "arktype";
|
|
3
|
+
import * as arktype_internal_methods_string_ts0 from "arktype/internal/methods/string.ts";
|
|
4
|
+
import * as arktype_internal_methods_object_ts0 from "arktype/internal/methods/object.ts";
|
|
5
|
+
|
|
6
|
+
//#region src/presets/arktype.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Vercel System Environment Variables
|
|
9
|
+
* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#system-environment-variables
|
|
10
|
+
*/
|
|
11
|
+
declare const vercel: {
|
|
12
|
+
readonly id: "vercel";
|
|
13
|
+
readonly server: {
|
|
14
|
+
readonly VERCEL: arktype0.BaseType<string | undefined, {}>;
|
|
15
|
+
readonly CI: arktype0.BaseType<string | undefined, {}>;
|
|
16
|
+
readonly VERCEL_ENV: arktype0.BaseType<"development" | "preview" | "production" | undefined, {}>;
|
|
17
|
+
readonly VERCEL_URL: arktype0.BaseType<string | undefined, {}>;
|
|
18
|
+
readonly VERCEL_PROJECT_PRODUCTION_URL: arktype0.BaseType<string | undefined, {}>;
|
|
19
|
+
readonly VERCEL_BRANCH_URL: arktype0.BaseType<string | undefined, {}>;
|
|
20
|
+
readonly VERCEL_REGION: arktype0.BaseType<string | undefined, {}>;
|
|
21
|
+
readonly VERCEL_DEPLOYMENT_ID: arktype0.BaseType<string | undefined, {}>;
|
|
22
|
+
readonly VERCEL_SKEW_PROTECTION_ENABLED: arktype0.BaseType<string | undefined, {}>;
|
|
23
|
+
readonly VERCEL_AUTOMATION_BYPASS_SECRET: arktype0.BaseType<string | undefined, {}>;
|
|
24
|
+
readonly VERCEL_GIT_PROVIDER: arktype0.BaseType<string | undefined, {}>;
|
|
25
|
+
readonly VERCEL_GIT_REPO_SLUG: arktype0.BaseType<string | undefined, {}>;
|
|
26
|
+
readonly VERCEL_GIT_REPO_OWNER: arktype0.BaseType<string | undefined, {}>;
|
|
27
|
+
readonly VERCEL_GIT_REPO_ID: arktype0.BaseType<string | undefined, {}>;
|
|
28
|
+
readonly VERCEL_GIT_COMMIT_REF: arktype0.BaseType<string | undefined, {}>;
|
|
29
|
+
readonly VERCEL_GIT_COMMIT_SHA: arktype0.BaseType<string | undefined, {}>;
|
|
30
|
+
readonly VERCEL_GIT_COMMIT_MESSAGE: arktype0.BaseType<string | undefined, {}>;
|
|
31
|
+
readonly VERCEL_GIT_COMMIT_AUTHOR_LOGIN: arktype0.BaseType<string | undefined, {}>;
|
|
32
|
+
readonly VERCEL_GIT_COMMIT_AUTHOR_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
33
|
+
readonly VERCEL_GIT_PREVIOUS_SHA: arktype0.BaseType<string | undefined, {}>;
|
|
34
|
+
readonly VERCEL_GIT_PULL_REQUEST_ID: arktype0.BaseType<string | undefined, {}>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type VercelEnv = InferPresetOutput<typeof vercel>;
|
|
38
|
+
/**
|
|
39
|
+
* Neon for Vercel Environment Variables
|
|
40
|
+
* @see https://neon.tech/docs/guides/vercel-native-integration#environment-variables-set-by-the-integration
|
|
41
|
+
*/
|
|
42
|
+
declare const neonVercel: {
|
|
43
|
+
readonly id: "neon-vercel";
|
|
44
|
+
readonly server: {
|
|
45
|
+
readonly DATABASE_URL: arktype_internal_methods_string_ts0.StringType<string, {}>;
|
|
46
|
+
readonly DATABASE_URL_UNPOOLED: arktype0.BaseType<string | undefined, {}>;
|
|
47
|
+
readonly PGHOST: arktype0.BaseType<string | undefined, {}>;
|
|
48
|
+
readonly PGHOST_UNPOOLED: arktype0.BaseType<string | undefined, {}>;
|
|
49
|
+
readonly PGUSER: arktype0.BaseType<string | undefined, {}>;
|
|
50
|
+
readonly PGDATABASE: arktype0.BaseType<string | undefined, {}>;
|
|
51
|
+
readonly PGPASSWORD: arktype0.BaseType<string | undefined, {}>;
|
|
52
|
+
readonly POSTGRES_URL: arktype0.BaseType<string | undefined, {}>;
|
|
53
|
+
readonly POSTGRES_URL_NON_POOLING: arktype0.BaseType<string | undefined, {}>;
|
|
54
|
+
readonly POSTGRES_USER: arktype0.BaseType<string | undefined, {}>;
|
|
55
|
+
readonly POSTGRES_HOST: arktype0.BaseType<string | undefined, {}>;
|
|
56
|
+
readonly POSTGRES_PASSWORD: arktype0.BaseType<string | undefined, {}>;
|
|
57
|
+
readonly POSTGRES_DATABASE: arktype0.BaseType<string | undefined, {}>;
|
|
58
|
+
readonly POSTGRES_URL_NO_SSL: arktype0.BaseType<string | undefined, {}>;
|
|
59
|
+
readonly POSTGRES_PRISMA_URL: arktype0.BaseType<string | undefined, {}>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
type NeonVercelEnv = InferPresetOutput<typeof neonVercel>;
|
|
63
|
+
/**
|
|
64
|
+
* @see https://docs.uploadthing.com/getting-started/appdir#add-env-variables
|
|
65
|
+
*/
|
|
66
|
+
declare const uploadthing: {
|
|
67
|
+
readonly id: "uploadthing";
|
|
68
|
+
readonly server: {
|
|
69
|
+
readonly UPLOADTHING_TOKEN: arktype_internal_methods_string_ts0.StringType<string, {}>;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
type UploadthingEnv = InferPresetOutput<typeof uploadthing>;
|
|
73
|
+
/**
|
|
74
|
+
* Render System Environment Variables
|
|
75
|
+
* @see https://docs.render.com/environment-variables#all-runtimes
|
|
76
|
+
*/
|
|
77
|
+
declare const render: {
|
|
78
|
+
readonly id: "render";
|
|
79
|
+
readonly server: {
|
|
80
|
+
readonly IS_PULL_REQUEST: arktype0.BaseType<string | undefined, {}>;
|
|
81
|
+
readonly RENDER_DISCOVERY_SERVICE: arktype0.BaseType<string | undefined, {}>;
|
|
82
|
+
readonly RENDER_EXTERNAL_HOSTNAME: arktype0.BaseType<string | undefined, {}>;
|
|
83
|
+
readonly RENDER_EXTERNAL_URL: arktype0.BaseType<string | undefined, {}>;
|
|
84
|
+
readonly RENDER_GIT_BRANCH: arktype0.BaseType<string | undefined, {}>;
|
|
85
|
+
readonly RENDER_GIT_COMMIT: arktype0.BaseType<string | undefined, {}>;
|
|
86
|
+
readonly RENDER_GIT_REPO_SLUG: arktype0.BaseType<string | undefined, {}>;
|
|
87
|
+
readonly RENDER_INSTANCE_ID: arktype0.BaseType<string | undefined, {}>;
|
|
88
|
+
readonly RENDER_SERVICE_ID: arktype0.BaseType<string | undefined, {}>;
|
|
89
|
+
readonly RENDER_SERVICE_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
90
|
+
readonly RENDER_SERVICE_TYPE: arktype0.BaseType<"web" | "pserv" | "cron" | "worker" | "static" | undefined, {}>;
|
|
91
|
+
readonly RENDER: arktype0.BaseType<string | undefined, {}>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
type RenderEnv = InferPresetOutput<typeof render>;
|
|
95
|
+
/**
|
|
96
|
+
* Railway Environment Variables
|
|
97
|
+
* @see https://docs.railway.app/reference/variables#railway-provided-variables
|
|
98
|
+
*/
|
|
99
|
+
declare const railway: {
|
|
100
|
+
readonly id: "railway";
|
|
101
|
+
readonly server: {
|
|
102
|
+
readonly RAILWAY_PUBLIC_DOMAIN: arktype0.BaseType<string | undefined, {}>;
|
|
103
|
+
readonly RAILWAY_PRIVATE_DOMAIN: arktype0.BaseType<string | undefined, {}>;
|
|
104
|
+
readonly RAILWAY_TCP_PROXY_DOMAIN: arktype0.BaseType<string | undefined, {}>;
|
|
105
|
+
readonly RAILWAY_TCP_PROXY_PORT: arktype0.BaseType<string | undefined, {}>;
|
|
106
|
+
readonly RAILWAY_TCP_APPLICATION_PORT: arktype0.BaseType<string | undefined, {}>;
|
|
107
|
+
readonly RAILWAY_PROJECT_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
108
|
+
readonly RAILWAY_PROJECT_ID: arktype0.BaseType<string | undefined, {}>;
|
|
109
|
+
readonly RAILWAY_ENVIRONMENT_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
110
|
+
readonly RAILWAY_ENVIRONMENT_ID: arktype0.BaseType<string | undefined, {}>;
|
|
111
|
+
readonly RAILWAY_SERVICE_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
112
|
+
readonly RAILWAY_SERVICE_ID: arktype0.BaseType<string | undefined, {}>;
|
|
113
|
+
readonly RAILWAY_REPLICA_ID: arktype0.BaseType<string | undefined, {}>;
|
|
114
|
+
readonly RAILWAY_DEPLOYMENT_ID: arktype0.BaseType<string | undefined, {}>;
|
|
115
|
+
readonly RAILWAY_SNAPSHOT_ID: arktype0.BaseType<string | undefined, {}>;
|
|
116
|
+
readonly RAILWAY_VOLUME_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
117
|
+
readonly RAILWAY_VOLUME_MOUNT_PATH: arktype0.BaseType<string | undefined, {}>;
|
|
118
|
+
readonly RAILWAY_RUN_UID: arktype0.BaseType<string | undefined, {}>;
|
|
119
|
+
readonly RAILWAY_GIT_COMMIT_SHA: arktype0.BaseType<string | undefined, {}>;
|
|
120
|
+
readonly RAILWAY_GIT_AUTHOR_EMAIL: arktype0.BaseType<string | undefined, {}>;
|
|
121
|
+
readonly RAILWAY_GIT_BRANCH: arktype0.BaseType<string | undefined, {}>;
|
|
122
|
+
readonly RAILWAY_GIT_REPO_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
123
|
+
readonly RAILWAY_GIT_REPO_OWNER: arktype0.BaseType<string | undefined, {}>;
|
|
124
|
+
readonly RAILWAY_GIT_COMMIT_MESSAGE: arktype0.BaseType<string | undefined, {}>;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
type RailwayEnv = InferPresetOutput<typeof railway>;
|
|
128
|
+
/**
|
|
129
|
+
* Fly.io Environment Variables
|
|
130
|
+
* @see https://fly.io/docs/machines/runtime-environment/#environment-variables
|
|
131
|
+
*/
|
|
132
|
+
declare const fly: {
|
|
133
|
+
readonly id: "fly";
|
|
134
|
+
readonly server: {
|
|
135
|
+
readonly FLY_APP_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
136
|
+
readonly FLY_MACHINE_ID: arktype0.BaseType<string | undefined, {}>;
|
|
137
|
+
readonly FLY_ALLOC_ID: arktype0.BaseType<string | undefined, {}>;
|
|
138
|
+
readonly FLY_REGION: arktype0.BaseType<string | undefined, {}>;
|
|
139
|
+
readonly FLY_PUBLIC_IP: arktype0.BaseType<string | undefined, {}>;
|
|
140
|
+
readonly FLY_IMAGE_REF: arktype0.BaseType<string | undefined, {}>;
|
|
141
|
+
readonly FLY_MACHINE_VERSION: arktype0.BaseType<string | undefined, {}>;
|
|
142
|
+
readonly FLY_PRIVATE_IP: arktype0.BaseType<string | undefined, {}>;
|
|
143
|
+
readonly FLY_PROCESS_GROUP: arktype0.BaseType<string | undefined, {}>;
|
|
144
|
+
readonly FLY_VM_MEMORY_MB: arktype0.BaseType<string | undefined, {}>;
|
|
145
|
+
readonly PRIMARY_REGION: arktype0.BaseType<string | undefined, {}>;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
type FlyEnv = InferPresetOutput<typeof fly>;
|
|
149
|
+
/**
|
|
150
|
+
* Netlify Environment Variables
|
|
151
|
+
* @see https://docs.netlify.com/configure-builds/environment-variables
|
|
152
|
+
*/
|
|
153
|
+
declare const netlify: {
|
|
154
|
+
readonly id: "netlify";
|
|
155
|
+
readonly server: {
|
|
156
|
+
readonly NETLIFY: arktype0.BaseType<string | undefined, {}>;
|
|
157
|
+
readonly BUILD_ID: arktype0.BaseType<string | undefined, {}>;
|
|
158
|
+
readonly CONTEXT: arktype0.BaseType<"dev" | "production" | "deploy-preview" | "branch-deploy" | undefined, {}>;
|
|
159
|
+
readonly REPOSITORY_URL: arktype0.BaseType<string | undefined, {}>;
|
|
160
|
+
readonly BRANCH: arktype0.BaseType<string | undefined, {}>;
|
|
161
|
+
readonly URL: arktype0.BaseType<string | undefined, {}>;
|
|
162
|
+
readonly DEPLOY_URL: arktype0.BaseType<string | undefined, {}>;
|
|
163
|
+
readonly DEPLOY_PRIME_URL: arktype0.BaseType<string | undefined, {}>;
|
|
164
|
+
readonly DEPLOY_ID: arktype0.BaseType<string | undefined, {}>;
|
|
165
|
+
readonly SITE_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
166
|
+
readonly SITE_ID: arktype0.BaseType<string | undefined, {}>;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
type NetlifyEnv = InferPresetOutput<typeof netlify>;
|
|
170
|
+
/**
|
|
171
|
+
* Upstash redis Environment Variables
|
|
172
|
+
* @see https://upstash.com/docs/redis/howto/connectwithupstashredis
|
|
173
|
+
*/
|
|
174
|
+
declare const upstashRedis: {
|
|
175
|
+
readonly id: "upstash-redis";
|
|
176
|
+
readonly server: {
|
|
177
|
+
readonly UPSTASH_REDIS_REST_URL: arktype_internal_methods_string_ts0.StringType<string, {}>;
|
|
178
|
+
readonly UPSTASH_REDIS_REST_TOKEN: arktype_internal_methods_string_ts0.StringType<string, {}>;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
type UpstashRedisEnv = InferPresetOutput<typeof upstashRedis>;
|
|
182
|
+
/**
|
|
183
|
+
* Coolify Environment Variables
|
|
184
|
+
* @see https://coolify.io/docs/knowledge-base/environment-variables#predefined-variables
|
|
185
|
+
*/
|
|
186
|
+
declare const coolify: {
|
|
187
|
+
readonly id: "coolify";
|
|
188
|
+
readonly server: {
|
|
189
|
+
readonly COOLIFY_FQDN: arktype0.BaseType<string | undefined, {}>;
|
|
190
|
+
readonly COOLIFY_URL: arktype0.BaseType<string | undefined, {}>;
|
|
191
|
+
readonly COOLIFY_BRANCH: arktype0.BaseType<string | undefined, {}>;
|
|
192
|
+
readonly COOLIFY_RESOURCE_UUID: arktype0.BaseType<string | undefined, {}>;
|
|
193
|
+
readonly COOLIFY_CONTAINER_NAME: arktype0.BaseType<string | undefined, {}>;
|
|
194
|
+
readonly SOURCE_COMMIT: arktype0.BaseType<string | undefined, {}>;
|
|
195
|
+
readonly PORT: arktype0.BaseType<string | undefined, {}>;
|
|
196
|
+
readonly HOST: arktype0.BaseType<string | undefined, {}>;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
type CoolifyEnv = InferPresetOutput<typeof coolify>;
|
|
200
|
+
/**
|
|
201
|
+
* Supabase for Vercel Environment Variables
|
|
202
|
+
* @see https://vercel.com/marketplace/supabase
|
|
203
|
+
*/
|
|
204
|
+
declare const supabaseVercel: {
|
|
205
|
+
readonly id: "supabase-vercel";
|
|
206
|
+
readonly clientPrefix: "NEXT_PUBLIC_";
|
|
207
|
+
readonly server: {
|
|
208
|
+
readonly POSTGRES_URL: arktype_internal_methods_string_ts0.StringType<string, {}>;
|
|
209
|
+
readonly POSTGRES_PRISMA_URL: arktype0.BaseType<string | undefined, {}>;
|
|
210
|
+
readonly POSTGRES_URL_NON_POOLING: arktype0.BaseType<string | undefined, {}>;
|
|
211
|
+
readonly POSTGRES_USER: arktype0.BaseType<string | undefined, {}>;
|
|
212
|
+
readonly POSTGRES_HOST: arktype0.BaseType<string | undefined, {}>;
|
|
213
|
+
readonly POSTGRES_PASSWORD: arktype0.BaseType<string | undefined, {}>;
|
|
214
|
+
readonly POSTGRES_DATABASE: arktype0.BaseType<string | undefined, {}>;
|
|
215
|
+
readonly SUPABASE_SERVICE_ROLE_KEY: arktype0.BaseType<string | undefined, {}>;
|
|
216
|
+
readonly SUPABASE_ANON_KEY: arktype0.BaseType<string | undefined, {}>;
|
|
217
|
+
readonly SUPABASE_URL: arktype0.BaseType<string | undefined, {}>;
|
|
218
|
+
readonly SUPABASE_JWT_SECRET: arktype0.BaseType<string | undefined, {}>;
|
|
219
|
+
};
|
|
220
|
+
readonly client: {
|
|
221
|
+
readonly NEXT_PUBLIC_SUPABASE_ANON_KEY: arktype0.BaseType<string | undefined, {}>;
|
|
222
|
+
readonly NEXT_PUBLIC_SUPABASE_URL: arktype0.BaseType<string | undefined, {}>;
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
type SupabaseVercelEnv = InferPresetOutput<typeof supabaseVercel>;
|
|
226
|
+
/**
|
|
227
|
+
* Vite Environment Variables
|
|
228
|
+
* @see https://vite.dev/guide/env-and-mode
|
|
229
|
+
*/
|
|
230
|
+
declare const vite: {
|
|
231
|
+
readonly id: "vite";
|
|
232
|
+
readonly shared: {
|
|
233
|
+
readonly BASE_URL: arktype0.BaseType<string | undefined, {}>;
|
|
234
|
+
readonly MODE: arktype0.BaseType<string | undefined, {}>;
|
|
235
|
+
readonly DEV: arktype0.BaseType<boolean | undefined, {}>;
|
|
236
|
+
readonly PROD: arktype0.BaseType<boolean | undefined, {}>;
|
|
237
|
+
readonly SSR: arktype0.BaseType<boolean | undefined, {}>;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
type ViteEnv = InferPresetOutput<typeof vite>;
|
|
241
|
+
/**
|
|
242
|
+
* WXT Environment Variables
|
|
243
|
+
* @see https://wxt.dev/guide/essentials/config/environment-variables.html#built-in-environment-variables
|
|
244
|
+
*/
|
|
245
|
+
declare const wxt: {
|
|
246
|
+
readonly id: "wxt";
|
|
247
|
+
readonly server: {
|
|
248
|
+
readonly MANIFEST_VERSION: arktype_internal_methods_object_ts0.ObjectType<(In: "2" | "3" | undefined) => arktype0.Out<number | undefined>, {}>;
|
|
249
|
+
readonly BROWSER: arktype0.BaseType<"chrome" | "firefox" | "safari" | "edge" | "opera" | undefined, {}>;
|
|
250
|
+
readonly CHROME: arktype0.BaseType<boolean | undefined, {}>;
|
|
251
|
+
readonly FIREFOX: arktype0.BaseType<boolean | undefined, {}>;
|
|
252
|
+
readonly SAFARI: arktype0.BaseType<boolean | undefined, {}>;
|
|
253
|
+
readonly EDGE: arktype0.BaseType<boolean | undefined, {}>;
|
|
254
|
+
readonly OPERA: arktype0.BaseType<boolean | undefined, {}>;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
type WxtEnv = InferPresetOutput<typeof wxt>;
|
|
258
|
+
//#endregion
|
|
259
|
+
export { CoolifyEnv, FlyEnv, NeonVercelEnv, NetlifyEnv, RailwayEnv, RenderEnv, SupabaseVercelEnv, UploadthingEnv, UpstashRedisEnv, VercelEnv, ViteEnv, WxtEnv, coolify, fly, neonVercel, netlify, railway, render, supabaseVercel, uploadthing, upstashRedis, vercel, vite, wxt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{type as e}from"arktype";const t={id:`vercel`,server:{VERCEL:e(`string | undefined`),CI:e(`string | undefined`),VERCEL_ENV:e(`'development'|'preview'|'production' | undefined`),VERCEL_URL:e(`string.url | undefined`),VERCEL_PROJECT_PRODUCTION_URL:e(`string.url | undefined`),VERCEL_BRANCH_URL:e(`string.url | undefined`),VERCEL_REGION:e(`string | undefined`),VERCEL_DEPLOYMENT_ID:e(`string | undefined`),VERCEL_SKEW_PROTECTION_ENABLED:e(`string | undefined`),VERCEL_AUTOMATION_BYPASS_SECRET:e(`string | undefined`),VERCEL_GIT_PROVIDER:e(`string | undefined`),VERCEL_GIT_REPO_SLUG:e(`string | undefined`),VERCEL_GIT_REPO_OWNER:e(`string | undefined`),VERCEL_GIT_REPO_ID:e(`string | undefined`),VERCEL_GIT_COMMIT_REF:e(`string | undefined`),VERCEL_GIT_COMMIT_SHA:e(`string | undefined`),VERCEL_GIT_COMMIT_MESSAGE:e(`string | undefined`),VERCEL_GIT_COMMIT_AUTHOR_LOGIN:e(`string | undefined`),VERCEL_GIT_COMMIT_AUTHOR_NAME:e(`string | undefined`),VERCEL_GIT_PREVIOUS_SHA:e(`string | undefined`),VERCEL_GIT_PULL_REQUEST_ID:e(`string | undefined`)}},n={id:`neon-vercel`,server:{DATABASE_URL:e(`string.url`),DATABASE_URL_UNPOOLED:e(`string.url | undefined`),PGHOST:e(`string | undefined`),PGHOST_UNPOOLED:e(`string | undefined`),PGUSER:e(`string | undefined`),PGDATABASE:e(`string | undefined`),PGPASSWORD:e(`string | undefined`),POSTGRES_URL:e(`string.url | undefined`),POSTGRES_URL_NON_POOLING:e(`string.url | undefined`),POSTGRES_USER:e(`string | undefined`),POSTGRES_HOST:e(`string | undefined`),POSTGRES_PASSWORD:e(`string | undefined`),POSTGRES_DATABASE:e(`string | undefined`),POSTGRES_URL_NO_SSL:e(`string.url | undefined`),POSTGRES_PRISMA_URL:e(`string.url | undefined`)}},r={id:`uploadthing`,server:{UPLOADTHING_TOKEN:e(`string`)}},i={id:`render`,server:{IS_PULL_REQUEST:e(`string | undefined`),RENDER_DISCOVERY_SERVICE:e(`string | undefined`),RENDER_EXTERNAL_HOSTNAME:e(`string | undefined`),RENDER_EXTERNAL_URL:e(`string.url | undefined`),RENDER_GIT_BRANCH:e(`string | undefined`),RENDER_GIT_COMMIT:e(`string | undefined`),RENDER_GIT_REPO_SLUG:e(`string | undefined`),RENDER_INSTANCE_ID:e(`string | undefined`),RENDER_SERVICE_ID:e(`string | undefined`),RENDER_SERVICE_NAME:e(`string | undefined`),RENDER_SERVICE_TYPE:e(`'web'|'pserv'|'cron'|'worker'|'static' | undefined`),RENDER:e(`string | undefined`)}},a={id:`railway`,server:{RAILWAY_PUBLIC_DOMAIN:e(`string.url | undefined`),RAILWAY_PRIVATE_DOMAIN:e(`string.url | undefined`),RAILWAY_TCP_PROXY_DOMAIN:e(`string.url | undefined`),RAILWAY_TCP_PROXY_PORT:e(`string | undefined`),RAILWAY_TCP_APPLICATION_PORT:e(`string | undefined`),RAILWAY_PROJECT_NAME:e(`string | undefined`),RAILWAY_PROJECT_ID:e(`string | undefined`),RAILWAY_ENVIRONMENT_NAME:e(`string | undefined`),RAILWAY_ENVIRONMENT_ID:e(`string | undefined`),RAILWAY_SERVICE_NAME:e(`string | undefined`),RAILWAY_SERVICE_ID:e(`string | undefined`),RAILWAY_REPLICA_ID:e(`string | undefined`),RAILWAY_DEPLOYMENT_ID:e(`string | undefined`),RAILWAY_SNAPSHOT_ID:e(`string | undefined`),RAILWAY_VOLUME_NAME:e(`string | undefined`),RAILWAY_VOLUME_MOUNT_PATH:e(`string | undefined`),RAILWAY_RUN_UID:e(`string | undefined`),RAILWAY_GIT_COMMIT_SHA:e(`string | undefined`),RAILWAY_GIT_AUTHOR_EMAIL:e(`string | undefined`),RAILWAY_GIT_BRANCH:e(`string | undefined`),RAILWAY_GIT_REPO_NAME:e(`string | undefined`),RAILWAY_GIT_REPO_OWNER:e(`string | undefined`),RAILWAY_GIT_COMMIT_MESSAGE:e(`string | undefined`)}},o={id:`fly`,server:{FLY_APP_NAME:e(`string | undefined`),FLY_MACHINE_ID:e(`string | undefined`),FLY_ALLOC_ID:e(`string | undefined`),FLY_REGION:e(`string | undefined`),FLY_PUBLIC_IP:e(`string | undefined`),FLY_IMAGE_REF:e(`string | undefined`),FLY_MACHINE_VERSION:e(`string | undefined`),FLY_PRIVATE_IP:e(`string | undefined`),FLY_PROCESS_GROUP:e(`string | undefined`),FLY_VM_MEMORY_MB:e(`string | undefined`),PRIMARY_REGION:e(`string | undefined`)}},s={id:`netlify`,server:{NETLIFY:e(`string | undefined`),BUILD_ID:e(`string | undefined`),CONTEXT:e(`'production'|'deploy-preview'|'branch-deploy'|'dev' | undefined`),REPOSITORY_URL:e(`string.url | undefined`),BRANCH:e(`string | undefined`),URL:e(`string.url | undefined`),DEPLOY_URL:e(`string.url | undefined`),DEPLOY_PRIME_URL:e(`string.url | undefined`),DEPLOY_ID:e(`string | undefined`),SITE_NAME:e(`string | undefined`),SITE_ID:e(`string | undefined`)}},c={id:`upstash-redis`,server:{UPSTASH_REDIS_REST_URL:e(`string.url`),UPSTASH_REDIS_REST_TOKEN:e(`string`)}},l={id:`coolify`,server:{COOLIFY_FQDN:e(`string | undefined`),COOLIFY_URL:e(`string | undefined`),COOLIFY_BRANCH:e(`string | undefined`),COOLIFY_RESOURCE_UUID:e(`string | undefined`),COOLIFY_CONTAINER_NAME:e(`string | undefined`),SOURCE_COMMIT:e(`string | undefined`),PORT:e(`string | undefined`),HOST:e(`string | undefined`)}},u={id:`supabase-vercel`,clientPrefix:`NEXT_PUBLIC_`,server:{POSTGRES_URL:e(`string`),POSTGRES_PRISMA_URL:e(`string | undefined`),POSTGRES_URL_NON_POOLING:e(`string | undefined`),POSTGRES_USER:e(`string | undefined`),POSTGRES_HOST:e(`string | undefined`),POSTGRES_PASSWORD:e(`string | undefined`),POSTGRES_DATABASE:e(`string | undefined`),SUPABASE_SERVICE_ROLE_KEY:e(`string | undefined`),SUPABASE_ANON_KEY:e(`string | undefined`),SUPABASE_URL:e(`string | undefined`),SUPABASE_JWT_SECRET:e(`string | undefined`)},client:{NEXT_PUBLIC_SUPABASE_ANON_KEY:e(`string | undefined`),NEXT_PUBLIC_SUPABASE_URL:e(`string | undefined`)}},d={id:`vite`,shared:{BASE_URL:e(`string | undefined`),MODE:e(`string | undefined`),DEV:e(`boolean | undefined`),PROD:e(`boolean | undefined`),SSR:e(`boolean | undefined`)}},f={id:`wxt`,server:{MANIFEST_VERSION:e(`'2' | '3' | undefined`).pipe(e=>e?Number.parseInt(e,10):void 0),BROWSER:e(`'chrome'|'firefox'|'safari'|'edge'|'opera' | undefined`),CHROME:e(`boolean | undefined`),FIREFOX:e(`boolean | undefined`),SAFARI:e(`boolean | undefined`),EDGE:e(`boolean | undefined`),OPERA:e(`boolean | undefined`)}};export{l as coolify,o as fly,n as neonVercel,s as netlify,a as railway,i as render,u as supabaseVercel,r as uploadthing,c as upstashRedis,t as vercel,d as vite,f as wxt};
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { d as InferPresetOutput } from "../types-5fo7WST9.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/presets/valibot.d.ts
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Vercel System Environment Variables
|
|
8
|
+
* @see https://vercel.com/docs/projects/environment-variables/system-environment-variables#system-environment-variables
|
|
9
|
+
*/
|
|
10
|
+
declare const vercel: {
|
|
11
|
+
readonly id: "vercel";
|
|
12
|
+
readonly server: {
|
|
13
|
+
readonly VERCEL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly CI: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly VERCEL_ENV: v.OptionalSchema<v.PicklistSchema<["development", "preview", "production"], undefined>, "development">;
|
|
16
|
+
readonly VERCEL_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly VERCEL_PROJECT_PRODUCTION_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly VERCEL_BRANCH_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly VERCEL_REGION: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly VERCEL_DEPLOYMENT_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
21
|
+
readonly VERCEL_SKEW_PROTECTION_ENABLED: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly VERCEL_AUTOMATION_BYPASS_SECRET: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
23
|
+
readonly VERCEL_GIT_PROVIDER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly VERCEL_GIT_REPO_SLUG: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly VERCEL_GIT_REPO_OWNER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly VERCEL_GIT_REPO_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly VERCEL_GIT_COMMIT_REF: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly VERCEL_GIT_COMMIT_SHA: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly VERCEL_GIT_COMMIT_MESSAGE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly VERCEL_GIT_COMMIT_AUTHOR_LOGIN: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly VERCEL_GIT_COMMIT_AUTHOR_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly VERCEL_GIT_PREVIOUS_SHA: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly VERCEL_GIT_PULL_REQUEST_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type VercelEnv = InferPresetOutput<typeof vercel>;
|
|
37
|
+
/**
|
|
38
|
+
* Neon for Vercel Environment Variables
|
|
39
|
+
* @see https://neon.tech/docs/guides/vercel-native-integration#environment-variables-set-by-the-integration
|
|
40
|
+
*/
|
|
41
|
+
declare const neonVercel: {
|
|
42
|
+
readonly id: "neon-vercel";
|
|
43
|
+
readonly server: {
|
|
44
|
+
readonly DATABASE_URL: v.StringSchema<undefined>;
|
|
45
|
+
readonly DATABASE_URL_UNPOOLED: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
46
|
+
readonly PGHOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
47
|
+
readonly PGHOST_UNPOOLED: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly PGUSER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly PGDATABASE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly PGPASSWORD: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
51
|
+
readonly POSTGRES_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
52
|
+
readonly POSTGRES_URL_NON_POOLING: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
53
|
+
readonly POSTGRES_USER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly POSTGRES_HOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly POSTGRES_PASSWORD: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly POSTGRES_DATABASE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly POSTGRES_URL_NO_SSL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
58
|
+
readonly POSTGRES_PRISMA_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type NeonVercelEnv = InferPresetOutput<typeof neonVercel>;
|
|
62
|
+
/**
|
|
63
|
+
* @see https://docs.uploadthing.com/getting-started/appdir#add-env-variables
|
|
64
|
+
*/
|
|
65
|
+
declare const uploadthing: {
|
|
66
|
+
readonly id: "uploadthing";
|
|
67
|
+
readonly server: {
|
|
68
|
+
readonly UPLOADTHING_TOKEN: v.StringSchema<undefined>;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type UploadthingEnv = InferPresetOutput<typeof uploadthing>;
|
|
72
|
+
/**
|
|
73
|
+
* Render System Environment Variables
|
|
74
|
+
* @see https://docs.render.com/environment-variables#all-runtimes
|
|
75
|
+
*/
|
|
76
|
+
declare const render: {
|
|
77
|
+
readonly id: "render";
|
|
78
|
+
readonly server: {
|
|
79
|
+
readonly IS_PULL_REQUEST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly RENDER_DISCOVERY_SERVICE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly RENDER_EXTERNAL_HOSTNAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly RENDER_EXTERNAL_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
83
|
+
readonly RENDER_GIT_BRANCH: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
84
|
+
readonly RENDER_GIT_COMMIT: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly RENDER_GIT_REPO_SLUG: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly RENDER_INSTANCE_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly RENDER_SERVICE_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly RENDER_SERVICE_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
89
|
+
readonly RENDER_SERVICE_TYPE: v.OptionalSchema<v.PicklistSchema<["web", "pserv", "cron", "worker", "static"], undefined>, undefined>;
|
|
90
|
+
readonly RENDER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
type RenderEnv = InferPresetOutput<typeof render>;
|
|
94
|
+
/**
|
|
95
|
+
* Railway Environment Variables
|
|
96
|
+
* @see https://docs.railway.app/reference/variables#railway-provided-variables
|
|
97
|
+
*/
|
|
98
|
+
declare const railway: {
|
|
99
|
+
readonly id: "railway";
|
|
100
|
+
readonly server: {
|
|
101
|
+
readonly RAILWAY_PUBLIC_DOMAIN: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
102
|
+
readonly RAILWAY_PRIVATE_DOMAIN: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
103
|
+
readonly RAILWAY_TCP_PROXY_DOMAIN: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly RAILWAY_TCP_PROXY_PORT: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
105
|
+
readonly RAILWAY_TCP_APPLICATION_PORT: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly RAILWAY_PROJECT_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
107
|
+
readonly RAILWAY_PROJECT_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly RAILWAY_ENVIRONMENT_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
readonly RAILWAY_ENVIRONMENT_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
110
|
+
readonly RAILWAY_SERVICE_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
111
|
+
readonly RAILWAY_SERVICE_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
112
|
+
readonly RAILWAY_REPLICA_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
113
|
+
readonly RAILWAY_DEPLOYMENT_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly RAILWAY_SNAPSHOT_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
readonly RAILWAY_VOLUME_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly RAILWAY_VOLUME_MOUNT_PATH: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly RAILWAY_RUN_UID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly RAILWAY_GIT_COMMIT_SHA: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly RAILWAY_GIT_AUTHOR_EMAIL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly RAILWAY_GIT_BRANCH: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
121
|
+
readonly RAILWAY_GIT_REPO_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
122
|
+
readonly RAILWAY_GIT_REPO_OWNER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
123
|
+
readonly RAILWAY_GIT_COMMIT_MESSAGE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
type RailwayEnv = InferPresetOutput<typeof railway>;
|
|
127
|
+
/**
|
|
128
|
+
* Fly.io Environment Variables
|
|
129
|
+
* @see https://fly.io/docs/machines/runtime-environment/#environment-variables
|
|
130
|
+
*/
|
|
131
|
+
declare const fly: {
|
|
132
|
+
readonly id: "fly";
|
|
133
|
+
readonly server: {
|
|
134
|
+
readonly FLY_APP_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
135
|
+
readonly FLY_MACHINE_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
136
|
+
readonly FLY_ALLOC_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly FLY_REGION: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
138
|
+
readonly FLY_PUBLIC_IP: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
+
readonly FLY_IMAGE_REF: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
140
|
+
readonly FLY_MACHINE_VERSION: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
141
|
+
readonly FLY_PRIVATE_IP: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly FLY_PROCESS_GROUP: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly FLY_VM_MEMORY_MB: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly PRIMARY_REGION: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
type FlyEnv = InferPresetOutput<typeof fly>;
|
|
148
|
+
/**
|
|
149
|
+
* Netlify Environment Variables
|
|
150
|
+
* @see https://docs.netlify.com/configure-builds/environment-variables
|
|
151
|
+
*/
|
|
152
|
+
declare const netlify: {
|
|
153
|
+
readonly id: "netlify";
|
|
154
|
+
readonly server: {
|
|
155
|
+
readonly NETLIFY: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
156
|
+
readonly BUILD_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
+
readonly CONTEXT: v.OptionalSchema<v.PicklistSchema<["production", "deploy-preview", "branch-deploy", "dev"], undefined>, undefined>;
|
|
158
|
+
readonly REPOSITORY_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
159
|
+
readonly BRANCH: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
160
|
+
readonly URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
161
|
+
readonly DEPLOY_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
162
|
+
readonly DEPLOY_PRIME_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
163
|
+
readonly DEPLOY_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
164
|
+
readonly SITE_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
165
|
+
readonly SITE_ID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
type NetlifyEnv = InferPresetOutput<typeof netlify>;
|
|
169
|
+
/**
|
|
170
|
+
* Upstash redis Environment Variables
|
|
171
|
+
* @see https://upstash.com/docs/redis/howto/connectwithupstashredis
|
|
172
|
+
*/
|
|
173
|
+
declare const upstashRedis: {
|
|
174
|
+
readonly id: "upstash-redis";
|
|
175
|
+
readonly server: {
|
|
176
|
+
readonly UPSTASH_REDIS_REST_URL: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
177
|
+
readonly UPSTASH_REDIS_REST_TOKEN: v.StringSchema<undefined>;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
type UpstashRedisEnv = InferPresetOutput<typeof upstashRedis>;
|
|
181
|
+
/**
|
|
182
|
+
* Coolify Environment Variables
|
|
183
|
+
* @see https://coolify.io/docs/knowledge-base/environment-variables#predefined-variables
|
|
184
|
+
*/
|
|
185
|
+
declare const coolify: {
|
|
186
|
+
readonly id: "coolify";
|
|
187
|
+
readonly server: {
|
|
188
|
+
readonly COOLIFY_FQDN: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
189
|
+
readonly COOLIFY_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
190
|
+
readonly COOLIFY_BRANCH: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
191
|
+
readonly COOLIFY_RESOURCE_UUID: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
192
|
+
readonly COOLIFY_CONTAINER_NAME: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
193
|
+
readonly SOURCE_COMMIT: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
194
|
+
readonly PORT: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
195
|
+
readonly HOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
type CoolifyEnv = InferPresetOutput<typeof coolify>;
|
|
199
|
+
/**
|
|
200
|
+
* Supabase for Vercel Environment Variables
|
|
201
|
+
* @see https://vercel.com/marketplace/supabase
|
|
202
|
+
*/
|
|
203
|
+
declare const supabaseVercel: {
|
|
204
|
+
readonly id: "supabase-vercel";
|
|
205
|
+
readonly clientPrefix: "NEXT_PUBLIC_";
|
|
206
|
+
readonly server: {
|
|
207
|
+
readonly POSTGRES_URL: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
208
|
+
readonly POSTGRES_PRISMA_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
209
|
+
readonly POSTGRES_URL_NON_POOLING: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
210
|
+
readonly POSTGRES_USER: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
211
|
+
readonly POSTGRES_HOST: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
|
+
readonly POSTGRES_PASSWORD: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
+
readonly POSTGRES_DATABASE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
214
|
+
readonly SUPABASE_SERVICE_ROLE_KEY: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
215
|
+
readonly SUPABASE_ANON_KEY: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
216
|
+
readonly SUPABASE_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
217
|
+
readonly SUPABASE_JWT_SECRET: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
218
|
+
};
|
|
219
|
+
readonly client: {
|
|
220
|
+
readonly NEXT_PUBLIC_SUPABASE_ANON_KEY: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly NEXT_PUBLIC_SUPABASE_URL: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
type SupabaseVercelEnv = InferPresetOutput<typeof supabaseVercel>;
|
|
225
|
+
/**
|
|
226
|
+
* Vite Environment Variables
|
|
227
|
+
* @see https://vite.dev/guide/env-and-mode
|
|
228
|
+
*/
|
|
229
|
+
declare const vite: {
|
|
230
|
+
readonly id: "vite";
|
|
231
|
+
readonly shared: {
|
|
232
|
+
readonly BASE_URL: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
233
|
+
readonly MODE: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
234
|
+
readonly DEV: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
235
|
+
readonly PROD: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
236
|
+
readonly SSR: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
type ViteEnv = InferPresetOutput<typeof vite>;
|
|
240
|
+
/**
|
|
241
|
+
* WXT Environment Variables
|
|
242
|
+
* @see https://wxt.dev/guide/essentials/config/environment-variables.html#built-in-environment-variables
|
|
243
|
+
*/
|
|
244
|
+
declare const wxt: {
|
|
245
|
+
readonly id: "wxt";
|
|
246
|
+
readonly server: {
|
|
247
|
+
readonly MANIFEST_VERSION: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<2, undefined>, v.LiteralSchema<3, undefined>], undefined>, v.TransformAction<any, number>]>, undefined>;
|
|
248
|
+
readonly BROWSER: v.OptionalSchema<v.PicklistSchema<["chrome", "firefox", "safari", "edge", "opera"], undefined>, undefined>;
|
|
249
|
+
readonly CHROME: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
250
|
+
readonly FIREFOX: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
251
|
+
readonly SAFARI: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
252
|
+
readonly EDGE: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
253
|
+
readonly OPERA: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
type WxtEnv = InferPresetOutput<typeof wxt>;
|
|
257
|
+
//#endregion
|
|
258
|
+
export { CoolifyEnv, FlyEnv, NeonVercelEnv, NetlifyEnv, RailwayEnv, RenderEnv, SupabaseVercelEnv, UploadthingEnv, UpstashRedisEnv, VercelEnv, ViteEnv, WxtEnv, coolify, fly, neonVercel, netlify, railway, render, supabaseVercel, uploadthing, upstashRedis, vercel, vite, wxt };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"valibot";const t={id:`vercel`,server:{VERCEL:e.optional(e.string()),CI:e.optional(e.string()),VERCEL_ENV:e.optional(e.picklist([`development`,`preview`,`production`]),`development`),VERCEL_URL:e.optional(e.string()),VERCEL_PROJECT_PRODUCTION_URL:e.optional(e.string()),VERCEL_BRANCH_URL:e.optional(e.string()),VERCEL_REGION:e.optional(e.string()),VERCEL_DEPLOYMENT_ID:e.optional(e.string()),VERCEL_SKEW_PROTECTION_ENABLED:e.optional(e.string()),VERCEL_AUTOMATION_BYPASS_SECRET:e.optional(e.string()),VERCEL_GIT_PROVIDER:e.optional(e.string()),VERCEL_GIT_REPO_SLUG:e.optional(e.string()),VERCEL_GIT_REPO_OWNER:e.optional(e.string()),VERCEL_GIT_REPO_ID:e.optional(e.string()),VERCEL_GIT_COMMIT_REF:e.optional(e.string()),VERCEL_GIT_COMMIT_SHA:e.optional(e.string()),VERCEL_GIT_COMMIT_MESSAGE:e.optional(e.string()),VERCEL_GIT_COMMIT_AUTHOR_LOGIN:e.optional(e.string()),VERCEL_GIT_COMMIT_AUTHOR_NAME:e.optional(e.string()),VERCEL_GIT_PREVIOUS_SHA:e.optional(e.string()),VERCEL_GIT_PULL_REQUEST_ID:e.optional(e.string())}},n={id:`neon-vercel`,server:{DATABASE_URL:e.string(),DATABASE_URL_UNPOOLED:e.optional(e.string()),PGHOST:e.optional(e.string()),PGHOST_UNPOOLED:e.optional(e.string()),PGUSER:e.optional(e.string()),PGDATABASE:e.optional(e.string()),PGPASSWORD:e.optional(e.string()),POSTGRES_URL:e.optional(e.pipe(e.string(),e.url())),POSTGRES_URL_NON_POOLING:e.optional(e.pipe(e.string(),e.url())),POSTGRES_USER:e.optional(e.string()),POSTGRES_HOST:e.optional(e.string()),POSTGRES_PASSWORD:e.optional(e.string()),POSTGRES_DATABASE:e.optional(e.string()),POSTGRES_URL_NO_SSL:e.optional(e.pipe(e.string(),e.url())),POSTGRES_PRISMA_URL:e.optional(e.pipe(e.string(),e.url()))}},r={id:`uploadthing`,server:{UPLOADTHING_TOKEN:e.string()}},i={id:`render`,server:{IS_PULL_REQUEST:e.optional(e.string()),RENDER_DISCOVERY_SERVICE:e.optional(e.string()),RENDER_EXTERNAL_HOSTNAME:e.optional(e.string()),RENDER_EXTERNAL_URL:e.optional(e.pipe(e.string(),e.url())),RENDER_GIT_BRANCH:e.optional(e.string()),RENDER_GIT_COMMIT:e.optional(e.string()),RENDER_GIT_REPO_SLUG:e.optional(e.string()),RENDER_INSTANCE_ID:e.optional(e.string()),RENDER_SERVICE_ID:e.optional(e.string()),RENDER_SERVICE_NAME:e.optional(e.string()),RENDER_SERVICE_TYPE:e.optional(e.picklist([`web`,`pserv`,`cron`,`worker`,`static`])),RENDER:e.optional(e.string())}},a={id:`railway`,server:{RAILWAY_PUBLIC_DOMAIN:e.optional(e.string()),RAILWAY_PRIVATE_DOMAIN:e.optional(e.string()),RAILWAY_TCP_PROXY_DOMAIN:e.optional(e.string()),RAILWAY_TCP_PROXY_PORT:e.optional(e.string()),RAILWAY_TCP_APPLICATION_PORT:e.optional(e.string()),RAILWAY_PROJECT_NAME:e.optional(e.string()),RAILWAY_PROJECT_ID:e.optional(e.string()),RAILWAY_ENVIRONMENT_NAME:e.optional(e.string()),RAILWAY_ENVIRONMENT_ID:e.optional(e.string()),RAILWAY_SERVICE_NAME:e.optional(e.string()),RAILWAY_SERVICE_ID:e.optional(e.string()),RAILWAY_REPLICA_ID:e.optional(e.string()),RAILWAY_DEPLOYMENT_ID:e.optional(e.string()),RAILWAY_SNAPSHOT_ID:e.optional(e.string()),RAILWAY_VOLUME_NAME:e.optional(e.string()),RAILWAY_VOLUME_MOUNT_PATH:e.optional(e.string()),RAILWAY_RUN_UID:e.optional(e.string()),RAILWAY_GIT_COMMIT_SHA:e.optional(e.string()),RAILWAY_GIT_AUTHOR_EMAIL:e.optional(e.string()),RAILWAY_GIT_BRANCH:e.optional(e.string()),RAILWAY_GIT_REPO_NAME:e.optional(e.string()),RAILWAY_GIT_REPO_OWNER:e.optional(e.string()),RAILWAY_GIT_COMMIT_MESSAGE:e.optional(e.string())}},o={id:`fly`,server:{FLY_APP_NAME:e.optional(e.string()),FLY_MACHINE_ID:e.optional(e.string()),FLY_ALLOC_ID:e.optional(e.string()),FLY_REGION:e.optional(e.string()),FLY_PUBLIC_IP:e.optional(e.string()),FLY_IMAGE_REF:e.optional(e.string()),FLY_MACHINE_VERSION:e.optional(e.string()),FLY_PRIVATE_IP:e.optional(e.string()),FLY_PROCESS_GROUP:e.optional(e.string()),FLY_VM_MEMORY_MB:e.optional(e.string()),PRIMARY_REGION:e.optional(e.string())}},s={id:`netlify`,server:{NETLIFY:e.optional(e.string()),BUILD_ID:e.optional(e.string()),CONTEXT:e.optional(e.picklist([`production`,`deploy-preview`,`branch-deploy`,`dev`])),REPOSITORY_URL:e.optional(e.string()),BRANCH:e.optional(e.string()),URL:e.optional(e.string()),DEPLOY_URL:e.optional(e.string()),DEPLOY_PRIME_URL:e.optional(e.string()),DEPLOY_ID:e.optional(e.string()),SITE_NAME:e.optional(e.string()),SITE_ID:e.optional(e.string())}},c={id:`upstash-redis`,server:{UPSTASH_REDIS_REST_URL:e.pipe(e.string(),e.url()),UPSTASH_REDIS_REST_TOKEN:e.string()}},l={id:`coolify`,server:{COOLIFY_FQDN:e.optional(e.string()),COOLIFY_URL:e.optional(e.string()),COOLIFY_BRANCH:e.optional(e.string()),COOLIFY_RESOURCE_UUID:e.optional(e.string()),COOLIFY_CONTAINER_NAME:e.optional(e.string()),SOURCE_COMMIT:e.optional(e.string()),PORT:e.optional(e.string()),HOST:e.optional(e.string())}},u={id:`supabase-vercel`,clientPrefix:`NEXT_PUBLIC_`,server:{POSTGRES_URL:e.pipe(e.string(),e.url()),POSTGRES_PRISMA_URL:e.optional(e.pipe(e.string(),e.url())),POSTGRES_URL_NON_POOLING:e.optional(e.pipe(e.string(),e.url())),POSTGRES_USER:e.optional(e.string()),POSTGRES_HOST:e.optional(e.string()),POSTGRES_PASSWORD:e.optional(e.string()),POSTGRES_DATABASE:e.optional(e.string()),SUPABASE_SERVICE_ROLE_KEY:e.optional(e.string()),SUPABASE_ANON_KEY:e.optional(e.string()),SUPABASE_URL:e.optional(e.pipe(e.string(),e.url())),SUPABASE_JWT_SECRET:e.optional(e.string())},client:{NEXT_PUBLIC_SUPABASE_ANON_KEY:e.optional(e.string()),NEXT_PUBLIC_SUPABASE_URL:e.optional(e.pipe(e.string(),e.url()))}},d={id:`vite`,shared:{BASE_URL:e.optional(e.string()),MODE:e.optional(e.string()),DEV:e.optional(e.boolean()),PROD:e.optional(e.boolean()),SSR:e.optional(e.boolean())}},f={id:`wxt`,server:{MANIFEST_VERSION:e.optional(e.pipe(e.union([e.literal(2),e.literal(3)]),e.transform(Number))),BROWSER:e.optional(e.picklist([`chrome`,`firefox`,`safari`,`edge`,`opera`])),CHROME:e.optional(e.boolean()),FIREFOX:e.optional(e.boolean()),SAFARI:e.optional(e.boolean()),EDGE:e.optional(e.boolean()),OPERA:e.optional(e.boolean())}};export{l as coolify,o as fly,n as neonVercel,s as netlify,a as railway,i as render,u as supabaseVercel,r as uploadthing,c as upstashRedis,t as vercel,d as vite,f as wxt};
|