@e-n-v/env 0.0.2 → 0.0.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.
Files changed (99) hide show
  1. package/README.md +43 -24
  2. package/dist/BooleanMap-B2eIP3tZ.d.cts +32 -0
  3. package/dist/BooleanMap-DmFnCA-O.d.ts +32 -0
  4. package/dist/EnvChannel-LMIRYvT1.d.cts +16 -0
  5. package/dist/EnvChannel-w27PEm7x.d.ts +16 -0
  6. package/dist/EnvChannelOptions-BPkWDrmr.d.cts +108 -0
  7. package/dist/EnvChannelOptions-CRwDLWjd.d.ts +108 -0
  8. package/dist/EnvModel-CrGclUpJ.d.cts +134 -0
  9. package/dist/EnvModel-D8rt0EJ6.d.ts +134 -0
  10. package/dist/EnvSource-BVnmdHku.cjs +420 -0
  11. package/dist/EnvSource-DA3ZGlES.js +400 -0
  12. package/dist/ProcessEnvChannel-D465c-dp.d.cts +97 -0
  13. package/dist/ProcessEnvChannel-Do4-yiLI.d.ts +97 -0
  14. package/dist/StringEnvVarSchema-B8MT7htU.d.ts +64 -0
  15. package/dist/StringEnvVarSchema-BF6C0nyT.d.cts +64 -0
  16. package/dist/channels.cjs +8 -0
  17. package/dist/channels.d.cts +20 -0
  18. package/dist/channels.d.ts +20 -0
  19. package/dist/channels.js +4 -0
  20. package/dist/chunk-pbleEpgJ.cjs +44 -0
  21. package/dist/cli.cjs +16 -10
  22. package/dist/cli.js +7 -2
  23. package/dist/coerce-DNIuYAx4.js +11028 -0
  24. package/dist/coerce-b7UVodS9.cjs +12365 -0
  25. package/dist/core.cjs +68 -0
  26. package/dist/core.d.cts +6 -0
  27. package/dist/core.d.ts +6 -0
  28. package/dist/core.js +40 -0
  29. package/dist/custom-Bt_wnxIu.js +114 -0
  30. package/dist/custom-D_Rqjm09.cjs +168 -0
  31. package/dist/files.cjs +18 -0
  32. package/dist/files.d.cts +38 -0
  33. package/dist/files.d.ts +38 -0
  34. package/dist/files.js +13 -0
  35. package/dist/index-D8pslhp4.d.cts +170 -0
  36. package/dist/index-Dq_0aeAL.d.ts +170 -0
  37. package/dist/model-Dic8IJsf.d.ts +29 -0
  38. package/dist/model-ft0WhSSS.d.cts +29 -0
  39. package/dist/model.cjs +14 -0
  40. package/dist/model.d.cts +35 -0
  41. package/dist/model.d.ts +35 -0
  42. package/dist/model.js +9 -0
  43. package/dist/parse-BT1QSa5e.d.cts +28 -0
  44. package/dist/parse-DwtLpVhC.d.ts +28 -0
  45. package/dist/parse.cjs +17 -0
  46. package/dist/parse.d.cts +52 -0
  47. package/dist/parse.d.ts +52 -0
  48. package/dist/parse.js +10 -0
  49. package/dist/prompt-C5WudV9x.d.cts +74 -0
  50. package/dist/prompt-yKdccbtZ.d.ts +74 -0
  51. package/dist/prompt.cjs +24 -0
  52. package/dist/prompt.d.cts +17 -0
  53. package/dist/prompt.d.ts +17 -0
  54. package/dist/prompt.js +12 -0
  55. package/dist/redis-CJOpRPjc.js +395 -0
  56. package/dist/redis-EcC7TX3K.cjs +611 -0
  57. package/dist/resolveChannel-CjAuxy3p.cjs +257 -0
  58. package/dist/resolveChannel-v9BDsw-M.js +224 -0
  59. package/dist/root.cjs +36 -0
  60. package/dist/root.d.cts +21 -0
  61. package/dist/root.d.ts +21 -0
  62. package/dist/root.js +21 -0
  63. package/dist/schema-DH4GiW9A.d.cts +18 -0
  64. package/dist/schema-jN4EtvEP.d.ts +18 -0
  65. package/dist/schemas/zod.cjs +629 -0
  66. package/dist/schemas/zod.d.cts +239 -0
  67. package/dist/schemas/zod.d.ts +239 -0
  68. package/dist/schemas/zod.js +550 -0
  69. package/dist/schemas.cjs +133 -0
  70. package/dist/schemas.d.cts +3 -0
  71. package/dist/schemas.d.ts +3 -0
  72. package/dist/schemas.js +6 -0
  73. package/dist/src-B7FG1rak.js +638 -0
  74. package/dist/src-BBwjK5SK.js +127 -0
  75. package/dist/src-CLTURaoo.js +311 -0
  76. package/dist/src-CVdUqK3q.js +850 -0
  77. package/dist/src-Cjo2XA4n.cjs +138 -0
  78. package/dist/{src-oetJm-nZ.cjs → src-DWYoqPX1.cjs} +31 -1964
  79. package/dist/src-DZmpNGrQ.cjs +1411 -0
  80. package/dist/{src-RlCvrI0s.js → src-Dtv7TlJx.js} +14 -1726
  81. package/dist/src-XjL5cyPG.cjs +873 -0
  82. package/dist/src-meUnCASg.cjs +413 -0
  83. package/dist/validate-BxA3a-ns.d.cts +203 -0
  84. package/dist/validate-CyxrRacF.d.ts +203 -0
  85. package/dist/vars-BNVI6k89.d.ts +21 -0
  86. package/dist/vars-CYOaskkK.cjs +27 -0
  87. package/dist/vars-CptZRPX5.d.cts +21 -0
  88. package/dist/vars-DOW0LiiN.js +22 -0
  89. package/dist/vars.cjs +138 -0
  90. package/dist/vars.d.cts +7 -0
  91. package/dist/vars.d.ts +7 -0
  92. package/dist/vars.js +9 -0
  93. package/package.json +58 -9
  94. package/assets/demo.gif +0 -0
  95. package/assets/env-logo.png +0 -0
  96. package/dist/bundle.cjs +0 -1290
  97. package/dist/bundle.d.cts +0 -1057
  98. package/dist/bundle.d.ts +0 -1055
  99. package/dist/bundle.js +0 -1244
@@ -0,0 +1,638 @@
1
+ import { t as __export } from "./chunk-Bp6m_JJh.js";
2
+ import { c as EnumEnvVarSchema, f as boolean, l as BooleanEnvVarSchema, m as string, o as StringEnvVarSchema, p as number, s as NumberEnvVarSchema } from "./src-CLTURaoo.js";
3
+ import { a as url, c as lengthBetween, i as oneOf, l as minLength, n as between, o as pattern, r as integer, s as exactLength, t as custom } from "./custom-Bt_wnxIu.js";
4
+ import { A as defaults$2, C as constraints$3, D as patterns$1, F as traits$4, M as enumOptions, O as traits$1, P as patterns$3, S as traits$5, T as descriptions$1, _ as constraints$5, a as patterns, c as defaults$1, d as patterns$2, f as traits$2, g as traits$3, j as descriptions$4, k as constraints$4, l as descriptions$2, m as descriptions$3, n as defaults, o as traits, p as constraints$2, r as descriptions, s as constraints$1, t as constraints, v as defaults$4, w as defaults$3, x as patterns$4, y as descriptions$5 } from "./redis-CJOpRPjc.js";
5
+
6
+ //#region ../schemas/src/plain/api.ts
7
+ const apiKey = (input = {}) => new StringEnvVarSchema({
8
+ description: descriptions$4.apiKey,
9
+ process: string(minLength(constraints$4.apiKeyMinLength, traits$4.apiKeyMin)),
10
+ ...input
11
+ });
12
+ const apiBaseUrl = (input = {}) => new StringEnvVarSchema({
13
+ description: descriptions$4.apiBaseUrl,
14
+ process: string(url(), pattern(patterns$3.httpProtocol, traits$4.httpProtocolRequired)),
15
+ ...input
16
+ });
17
+ const apiTimeout = (input = {}) => new NumberEnvVarSchema({
18
+ description: descriptions$4.apiTimeout,
19
+ default: defaults$2.apiTimeout,
20
+ process: number(integer(traits$4.apiTimeoutInt), between(constraints$4.apiTimeoutMin, constraints$4.apiTimeoutMax)),
21
+ ...input
22
+ });
23
+ const API_KEY = apiKey();
24
+ const API_BASE_URL = apiBaseUrl();
25
+ const API_TIMEOUT = apiTimeout();
26
+
27
+ //#endregion
28
+ //#region ../schemas/src/plain/aws.ts
29
+ const awsAccessKeyId = (input = {}) => new StringEnvVarSchema({
30
+ description: descriptions$1.awsAccessKeyId,
31
+ process: string(lengthBetween(constraints$3.awsAccessKeyIdMin, constraints$3.awsAccessKeyIdMax)),
32
+ secret: true,
33
+ ...input
34
+ });
35
+ const awsSecretAccessKey = (input = {}) => new StringEnvVarSchema({
36
+ description: descriptions$1.awsSecretAccessKey,
37
+ process: string(minLength(1, traits$1.awsSecretAccessKeyRequired)),
38
+ secret: true,
39
+ ...input
40
+ });
41
+ const awsRegion = (input = {}) => new StringEnvVarSchema({
42
+ description: descriptions$1.awsRegion,
43
+ process: string(pattern(patterns$1.awsRegion, traits$1.awsRegionFormat)),
44
+ ...input
45
+ });
46
+ const awsS3BucketName = (input = {}) => new StringEnvVarSchema({
47
+ description: descriptions$1.awsS3BucketName,
48
+ process: string(pattern(patterns$1.awsS3BucketName, traits$1.awsS3BucketNameFormat)),
49
+ ...input
50
+ });
51
+ const awsSqsQueueUrl = (input = {}) => new StringEnvVarSchema({
52
+ description: descriptions$1.awsSqsQueueUrl,
53
+ process: string(pattern(patterns$1.awsSqsQueueUrl, traits$1.awsSqsQueueUrlFormat)),
54
+ ...input
55
+ });
56
+ const AWS_ACCESS_KEY_ID = awsAccessKeyId();
57
+ const AWS_SECRET_ACCESS_KEY = awsSecretAccessKey();
58
+ const AWS_REGION = awsRegion();
59
+ const AWS_S3_BUCKET_NAME = awsS3BucketName();
60
+ const AWS_SQS_QUEUE_URL = awsSqsQueueUrl();
61
+
62
+ //#endregion
63
+ //#region ../schemas/src/plain/azure.ts
64
+ const azureStorageConnectionString = (input = {}) => new StringEnvVarSchema({
65
+ description: descriptions$1.azureStorageConnectionString,
66
+ process: string(pattern(patterns$1.azureStorageConnectionString, traits$1.azureStorageConnectionStringFormat)),
67
+ secret: true,
68
+ ...input
69
+ });
70
+ const azureStorageAccountName = (input = {}) => new StringEnvVarSchema({
71
+ description: descriptions$1.azureStorageAccountName,
72
+ process: string(pattern(patterns$1.azureStorageAccountName, traits$1.azureStorageAccountNameFormat)),
73
+ ...input
74
+ });
75
+ const azureStorageAccountKey = (input = {}) => new StringEnvVarSchema({
76
+ description: descriptions$1.azureStorageAccountKey,
77
+ process: string(minLength(1, traits$1.azureStorageAccountKeyRequired)),
78
+ secret: true,
79
+ ...input
80
+ });
81
+ const azureServiceBusConnectionString = (input = {}) => new StringEnvVarSchema({
82
+ description: descriptions$1.azureServiceBusConnectionString,
83
+ process: string(pattern(patterns$1.azureServiceBusConnectionString, traits$1.azureServiceBusConnectionStringFormat)),
84
+ secret: true,
85
+ ...input
86
+ });
87
+ const azureEventHubConnectionString = (input = {}) => new StringEnvVarSchema({
88
+ description: descriptions$1.azureEventHubConnectionString,
89
+ process: string(pattern(patterns$1.azureEventHubConnectionString, traits$1.azureEventHubConnectionStringFormat)),
90
+ secret: true,
91
+ ...input
92
+ });
93
+ const AZURE_STORAGE_CONNECTION_STRING = azureStorageConnectionString();
94
+ const AZURE_STORAGE_ACCOUNT_NAME = azureStorageAccountName();
95
+ const AZURE_STORAGE_ACCOUNT_KEY = azureStorageAccountKey();
96
+ const AZURE_SERVICE_BUS_CONNECTION_STRING = azureServiceBusConnectionString();
97
+ const AZURE_EVENT_HUB_CONNECTION_STRING = azureEventHubConnectionString();
98
+
99
+ //#endregion
100
+ //#region ../schemas/src/plain/common.ts
101
+ const port = (input = {}) => new NumberEnvVarSchema({
102
+ description: descriptions$4.port,
103
+ default: defaults$2.port,
104
+ process: number(integer(traits$4.portInt), between(constraints$4.portMin, constraints$4.portMax)),
105
+ ...input
106
+ });
107
+ const PORT = port();
108
+ const debug = (input = {}) => new BooleanEnvVarSchema({
109
+ description: "Enable debug mode",
110
+ default: false,
111
+ process: boolean(),
112
+ ...input
113
+ });
114
+ const DEBUG = debug();
115
+
116
+ //#endregion
117
+ //#region ../schemas/src/plain/cors.ts
118
+ const corsOrigin = (input = {}) => new StringEnvVarSchema({
119
+ description: descriptions$4.corsOrigin,
120
+ process: string(custom((val) => {
121
+ if (val === "*") return true;
122
+ return val.split(",").map((origin) => origin.trim()).every((origin) => {
123
+ try {
124
+ new URL(origin);
125
+ return true;
126
+ } catch {
127
+ return false;
128
+ }
129
+ });
130
+ }, traits$4.corsOriginInvalid)),
131
+ ...input
132
+ });
133
+ const CORS_ORIGIN = corsOrigin();
134
+
135
+ //#endregion
136
+ //#region ../schemas/src/plain/database.ts
137
+ const databaseUrl = (input = {}) => new StringEnvVarSchema({
138
+ description: descriptions$5.databaseUrl,
139
+ process: string(pattern(patterns$4.genericDatabaseUrl, traits$5.genericDatabaseUrlFormat)),
140
+ secret: true,
141
+ ...input
142
+ });
143
+ const databaseHost = (input = {}) => new StringEnvVarSchema({
144
+ description: descriptions$5.databaseHost,
145
+ process: string(minLength(1, traits$5.databaseHostRequired)),
146
+ ...input
147
+ });
148
+ const databasePort = (input = {}) => new NumberEnvVarSchema({
149
+ description: descriptions$5.databasePort,
150
+ process: number(integer(traits$5.databasePortInt), between(constraints$5.databasePortMin, constraints$5.databasePortMax)),
151
+ ...input
152
+ });
153
+ const databaseName = (input = {}) => new StringEnvVarSchema({
154
+ description: descriptions$5.databaseName,
155
+ process: string(minLength(1, traits$5.databaseNameRequired)),
156
+ ...input
157
+ });
158
+ const databaseUsername = (input = {}) => new StringEnvVarSchema({
159
+ description: descriptions$5.databaseUsername,
160
+ process: string(minLength(1, traits$5.databaseUsernameRequired)),
161
+ ...input
162
+ });
163
+ const databasePassword = (input = {}) => new StringEnvVarSchema({
164
+ description: descriptions$5.databasePassword,
165
+ process: string(minLength(1, traits$5.databasePasswordRequired)),
166
+ secret: true,
167
+ ...input
168
+ });
169
+ const databaseSchema = (input = {}) => new StringEnvVarSchema({
170
+ description: descriptions$5.databaseSchema,
171
+ process: string(),
172
+ required: false,
173
+ ...input
174
+ });
175
+ const databasePoolSize = (input = {}) => new NumberEnvVarSchema({
176
+ description: descriptions$5.databasePoolSize,
177
+ default: defaults$4.databasePoolSize,
178
+ process: number(integer(traits$5.databasePoolSizeInt), between(constraints$5.databasePoolSizeMin, constraints$5.databasePoolSizeMax)),
179
+ ...input
180
+ });
181
+ const databaseTimeout = (input = {}) => new NumberEnvVarSchema({
182
+ description: descriptions$5.databaseTimeout,
183
+ default: defaults$4.databaseTimeout,
184
+ process: number(integer(traits$5.databaseTimeoutInt), between(constraints$5.databaseTimeoutMin, constraints$5.databaseTimeoutMax)),
185
+ ...input
186
+ });
187
+ const databaseSsl = (input = {}) => new BooleanEnvVarSchema({
188
+ description: descriptions$5.databaseSsl,
189
+ default: defaults$4.databaseSsl,
190
+ ...input
191
+ });
192
+ const DATABASE_URL = databaseUrl();
193
+ const DATABASE_HOST = databaseHost();
194
+ const DATABASE_PORT = databasePort();
195
+ const DATABASE_NAME = databaseName();
196
+ const DATABASE_USERNAME = databaseUsername();
197
+ const DATABASE_PASSWORD = databasePassword();
198
+ const DATABASE_SCHEMA = databaseSchema();
199
+ const DATABASE_POOL_SIZE = databasePoolSize();
200
+ const DATABASE_TIMEOUT = databaseTimeout();
201
+ const DATABASE_SSL = databaseSsl();
202
+
203
+ //#endregion
204
+ //#region ../schemas/src/plain/docker.ts
205
+ const dockerRegistryUrl = (input = {}) => new StringEnvVarSchema({
206
+ description: descriptions$1.dockerRegistryUrl,
207
+ process: string(url(traits$1.dockerRegistryUrlFormat)),
208
+ ...input
209
+ });
210
+ const dockerRegistryUsername = (input = {}) => new StringEnvVarSchema({
211
+ description: descriptions$1.dockerRegistryUsername,
212
+ process: string(),
213
+ required: false,
214
+ ...input
215
+ });
216
+ const dockerRegistryPassword = (input = {}) => new StringEnvVarSchema({
217
+ description: descriptions$1.dockerRegistryPassword,
218
+ process: string(),
219
+ secret: true,
220
+ required: false,
221
+ ...input
222
+ });
223
+ const DOCKER_REGISTRY_URL = dockerRegistryUrl();
224
+ const DOCKER_REGISTRY_USERNAME = dockerRegistryUsername();
225
+ const DOCKER_REGISTRY_PASSWORD = dockerRegistryPassword();
226
+
227
+ //#endregion
228
+ //#region ../schemas/src/plain/elasticsearch.ts
229
+ const elasticsearchUrl = (input = {}) => new StringEnvVarSchema({
230
+ description: descriptions$1.elasticsearchUrl,
231
+ process: string(url(traits$1.elasticsearchUrlFormat), pattern(patterns$3.httpProtocol, traits$1.elasticsearchUrlProtocol)),
232
+ ...input
233
+ });
234
+ const elasticsearchUsername = (input = {}) => new StringEnvVarSchema({
235
+ description: descriptions$1.elasticsearchUsername,
236
+ process: string(),
237
+ required: false,
238
+ ...input
239
+ });
240
+ const elasticsearchPassword = (input = {}) => new StringEnvVarSchema({
241
+ description: descriptions$1.elasticsearchPassword,
242
+ process: string(),
243
+ secret: true,
244
+ required: false,
245
+ ...input
246
+ });
247
+ const ELASTICSEARCH_URL = elasticsearchUrl();
248
+ const ELASTICSEARCH_USERNAME = elasticsearchUsername();
249
+ const ELASTICSEARCH_PASSWORD = elasticsearchPassword();
250
+
251
+ //#endregion
252
+ //#region ../schemas/src/plain/host.ts
253
+ const host = (input = {}) => new StringEnvVarSchema({
254
+ description: descriptions$4.host,
255
+ default: defaults$2.host,
256
+ process: string(),
257
+ ...input
258
+ });
259
+ const HOST = host();
260
+
261
+ //#endregion
262
+ //#region ../schemas/src/plain/jwt.ts
263
+ const jwtSecret = (input = {}) => new StringEnvVarSchema({
264
+ description: descriptions$4.jwtSecret,
265
+ process: string(minLength(constraints$4.jwtSecretMinLength, traits$4.jwtSecretMin)),
266
+ secret: true,
267
+ ...input
268
+ });
269
+ const jwtAccessTokenExpiresIn = (input = {}) => new StringEnvVarSchema({
270
+ description: descriptions$4.jwtAccessTokenExpiresIn,
271
+ default: defaults$2.jwtAccessTokenExpiresIn,
272
+ process: string(pattern(patterns$3.jwtTokenDuration, traits$4.jwtDurationFormat)),
273
+ ...input
274
+ });
275
+ const jwtRefreshTokenExpiresIn = (input = {}) => new StringEnvVarSchema({
276
+ description: descriptions$4.jwtRefreshTokenExpiresIn,
277
+ default: defaults$2.jwtRefreshTokenExpiresIn,
278
+ process: string(pattern(patterns$3.jwtTokenDuration, traits$4.jwtDurationFormat)),
279
+ ...input
280
+ });
281
+ const JWT_SECRET = jwtSecret();
282
+ const JWT_ACCESS_TOKEN_EXPIRES_IN = jwtAccessTokenExpiresIn();
283
+ const JWT_REFRESH_TOKEN_EXPIRES_IN = jwtRefreshTokenExpiresIn();
284
+
285
+ //#endregion
286
+ //#region ../schemas/src/plain/kafka.ts
287
+ const kafkaBrokers = (input = {}) => new StringEnvVarSchema({
288
+ description: descriptions$1.kafkaBrokers,
289
+ process: string(pattern(patterns$1.hostPortList, traits$1.hostPortListFormat)),
290
+ ...input
291
+ });
292
+ const kafkaClientId = (input = {}) => new StringEnvVarSchema({
293
+ description: descriptions$1.kafkaClientId,
294
+ process: string(minLength(1, traits$1.kafkaClientIdRequired)),
295
+ ...input
296
+ });
297
+ const KAFKA_BROKERS = kafkaBrokers();
298
+ const KAFKA_CLIENT_ID = kafkaClientId();
299
+
300
+ //#endregion
301
+ //#region ../schemas/src/plain/logLevel.ts
302
+ const logLevel = (input = {}) => new StringEnvVarSchema({
303
+ description: descriptions$4.logLevel,
304
+ default: defaults$2.logLevel,
305
+ process: string(oneOf(enumOptions.logLevel)),
306
+ ...input
307
+ });
308
+ const LOG_LEVEL = logLevel();
309
+
310
+ //#endregion
311
+ //#region ../schemas/src/plain/monitoring.ts
312
+ const newRelicLicenseKey = (input = {}) => new StringEnvVarSchema({
313
+ description: descriptions$1.newRelicLicenseKey,
314
+ process: string(exactLength(constraints$3.newRelicLicenseKeyLength, traits$1.newRelicLicenseKeyLength)),
315
+ secret: true,
316
+ required: false,
317
+ ...input
318
+ });
319
+ const sentryDsn = (input = {}) => new StringEnvVarSchema({
320
+ description: descriptions$1.sentryDsn,
321
+ process: string(pattern(patterns$1.sentryDsn, traits$1.sentryDsnFormat)),
322
+ secret: true,
323
+ required: false,
324
+ ...input
325
+ });
326
+ const jaegerEndpoint = (input = {}) => new StringEnvVarSchema({
327
+ description: descriptions$1.jaegerEndpoint,
328
+ process: string(url(traits$1.jaegerEndpointFormat)),
329
+ required: false,
330
+ ...input
331
+ });
332
+ const prometheusPort = (input = {}) => new NumberEnvVarSchema({
333
+ description: descriptions$1.prometheusPort,
334
+ default: defaults$3.prometheusPort,
335
+ process: number(integer(traits$1.prometheusPortInt), between(constraints$3.prometheusPortMin, constraints$3.prometheusPortMax)),
336
+ ...input
337
+ });
338
+ const datadogApiKey = (input = {}) => new StringEnvVarSchema({
339
+ description: descriptions$1.datadogApiKey,
340
+ process: string(exactLength(constraints$3.datadogApiKeyLength, traits$1.datadogApiKeyLength)),
341
+ secret: true,
342
+ required: false,
343
+ ...input
344
+ });
345
+ const NEW_RELIC_LICENSE_KEY = newRelicLicenseKey();
346
+ const SENTRY_DSN = sentryDsn();
347
+ const JAEGER_ENDPOINT = jaegerEndpoint();
348
+ const PROMETHEUS_PORT = prometheusPort();
349
+ const DATADOG_API_KEY = datadogApiKey();
350
+
351
+ //#endregion
352
+ //#region ../schemas/src/plain/node.ts
353
+ const nodeEnv = (input = {}) => new EnumEnvVarSchema({
354
+ values: [...enumOptions.nodeEnv],
355
+ description: descriptions$4.nodeEnv,
356
+ default: defaults$2.nodeEnv,
357
+ process: string(oneOf(enumOptions.nodeEnv)),
358
+ ...input
359
+ });
360
+ const NODE_ENV = nodeEnv();
361
+
362
+ //#endregion
363
+ //#region ../schemas/src/plain/oauth.ts
364
+ const oauthClientId = (input = {}) => new StringEnvVarSchema({
365
+ description: descriptions$3.clientId,
366
+ process: string(minLength(constraints$2.clientIdMinLength, traits$3.clientIdRequired)),
367
+ secret: true,
368
+ ...input
369
+ });
370
+ const oauthClientSecret = (input = {}) => new StringEnvVarSchema({
371
+ description: descriptions$3.clientSecret,
372
+ process: string(minLength(constraints$2.clientSecretMinLength, traits$3.clientSecretMinLength)),
373
+ secret: true,
374
+ ...input
375
+ });
376
+ const oauthRedirectUri = (input = {}) => new StringEnvVarSchema({
377
+ description: descriptions$3.redirectUri,
378
+ process: string(url(traits$3.redirectUriInvalid)),
379
+ ...input
380
+ });
381
+ const oauthScope = (input = {}) => new StringEnvVarSchema({
382
+ description: descriptions$3.scope,
383
+ process: string(minLength(constraints$2.scopeMinLength, traits$3.scopeRequired)),
384
+ ...input
385
+ });
386
+ const OAUTH_CLIENT_ID = oauthClientId();
387
+ const OAUTH_CLIENT_SECRET = oauthClientSecret();
388
+ const OAUTH_REDIRECT_URI = oauthRedirectUri();
389
+ const OAUTH_SCOPE = oauthScope();
390
+
391
+ //#endregion
392
+ //#region ../schemas/src/plain/openai.ts
393
+ const openaiApiKey = (input = {}) => new StringEnvVarSchema({
394
+ description: descriptions$2.apiKey,
395
+ process: string(minLength(constraints$1.apiKeyMinLength, traits$2.apiKeyMinLength), pattern(patterns$2.apiKey, traits$2.apiKeyFormat)),
396
+ secret: true,
397
+ ...input
398
+ });
399
+ const openaiOrganizationId = (input = {}) => new StringEnvVarSchema({
400
+ description: descriptions$2.organizationId,
401
+ process: string(pattern(patterns$2.organizationId, traits$2.organizationFormat)),
402
+ required: false,
403
+ ...input
404
+ });
405
+ const openaiProjectId = (input = {}) => new StringEnvVarSchema({
406
+ description: descriptions$2.projectId,
407
+ process: string(pattern(patterns$2.projectId, traits$2.projectFormat)),
408
+ required: false,
409
+ ...input
410
+ });
411
+ const openaiBaseUrl = (input = {}) => new StringEnvVarSchema({
412
+ description: descriptions$2.baseUrl,
413
+ process: string(url(traits$2.baseUrlInvalid), custom((value) => value.startsWith("https://"), traits$2.baseUrlProtocol)),
414
+ required: false,
415
+ ...input
416
+ });
417
+ const openaiModel = (input = {}) => new StringEnvVarSchema({
418
+ description: descriptions$2.model,
419
+ process: string(minLength(1, traits$2.modelRequired)),
420
+ required: false,
421
+ ...input
422
+ });
423
+ const openaiTimeout = (input = {}) => new NumberEnvVarSchema({
424
+ description: descriptions$2.timeout,
425
+ default: defaults$1.timeout,
426
+ process: number(integer(traits$2.timeoutInteger), between(constraints$1.timeoutMin, constraints$1.timeoutMax)),
427
+ ...input
428
+ });
429
+ const OPENAI_API_KEY = openaiApiKey();
430
+ const OPENAI_ORGANIZATION_ID = openaiOrganizationId();
431
+ const OPENAI_PROJECT_ID = openaiProjectId();
432
+ const OPENAI_BASE_URL = openaiBaseUrl();
433
+ const OPENAI_MODEL = openaiModel();
434
+ const OPENAI_TIMEOUT = openaiTimeout();
435
+
436
+ //#endregion
437
+ //#region ../schemas/src/plain/rabbitmq.ts
438
+ const rabbitmqUrl = (input = {}) => new StringEnvVarSchema({
439
+ description: descriptions$1.rabbitmqUrl,
440
+ process: string(pattern(patterns$1.rabbitmqUrl, traits$1.rabbitmqUrlFormat)),
441
+ secret: true,
442
+ ...input
443
+ });
444
+ const RABBITMQ_URL = rabbitmqUrl();
445
+
446
+ //#endregion
447
+ //#region ../schemas/src/plain/redis.ts
448
+ const redisUrl = (input = {}) => new StringEnvVarSchema({
449
+ description: descriptions.url,
450
+ process: string(pattern(patterns.url, traits.urlFormat)),
451
+ ...input
452
+ });
453
+ const redisHost = (input = {}) => new StringEnvVarSchema({
454
+ description: descriptions.host,
455
+ process: string(minLength(1, traits.hostRequired), pattern(patterns.host, traits.hostFormat)),
456
+ required: false,
457
+ ...input
458
+ });
459
+ const redisPort = (input = {}) => new NumberEnvVarSchema({
460
+ description: descriptions.port,
461
+ default: defaults.port,
462
+ process: number(integer(traits.portInteger), between(constraints.portMin, constraints.portMax)),
463
+ ...input
464
+ });
465
+ const redisPassword = (input = {}) => new StringEnvVarSchema({
466
+ description: descriptions.password,
467
+ process: string(minLength(1, traits.passwordRequired)),
468
+ secret: true,
469
+ required: false,
470
+ ...input
471
+ });
472
+ const redisUsername = (input = {}) => new StringEnvVarSchema({
473
+ description: descriptions.username,
474
+ process: string(minLength(1, traits.usernameRequired)),
475
+ required: false,
476
+ ...input
477
+ });
478
+ const redisDb = (input = {}) => new NumberEnvVarSchema({
479
+ description: descriptions.db,
480
+ default: defaults.db,
481
+ process: number(integer(traits.dbInteger), between(constraints.dbMin, constraints.dbMax)),
482
+ ...input
483
+ });
484
+ const redisTls = (input = {}) => new BooleanEnvVarSchema({
485
+ description: descriptions.tls,
486
+ default: defaults.tls,
487
+ ...input
488
+ });
489
+ const redisTlsCaCertPath = (input = {}) => new StringEnvVarSchema({
490
+ description: descriptions.tlsCaCertPath,
491
+ process: string(minLength(1, traits.tlsCaCertPathRequired)),
492
+ required: false,
493
+ ...input
494
+ });
495
+ const REDIS_URL = redisUrl();
496
+ const REDIS_HOST = redisHost();
497
+ const REDIS_PORT = redisPort();
498
+ const REDIS_PASSWORD = redisPassword();
499
+ const REDIS_USERNAME = redisUsername();
500
+ const REDIS_DB = redisDb();
501
+ const REDIS_TLS = redisTls();
502
+ const REDIS_TLS_CA_CERT_PATH = redisTlsCaCertPath();
503
+
504
+ //#endregion
505
+ //#region ../schemas/src/index.ts
506
+ var src_exports = /* @__PURE__ */ __export({
507
+ API_BASE_URL: () => API_BASE_URL,
508
+ API_KEY: () => API_KEY,
509
+ API_TIMEOUT: () => API_TIMEOUT,
510
+ AWS_ACCESS_KEY_ID: () => AWS_ACCESS_KEY_ID,
511
+ AWS_REGION: () => AWS_REGION,
512
+ AWS_S3_BUCKET_NAME: () => AWS_S3_BUCKET_NAME,
513
+ AWS_SECRET_ACCESS_KEY: () => AWS_SECRET_ACCESS_KEY,
514
+ AWS_SQS_QUEUE_URL: () => AWS_SQS_QUEUE_URL,
515
+ AZURE_EVENT_HUB_CONNECTION_STRING: () => AZURE_EVENT_HUB_CONNECTION_STRING,
516
+ AZURE_SERVICE_BUS_CONNECTION_STRING: () => AZURE_SERVICE_BUS_CONNECTION_STRING,
517
+ AZURE_STORAGE_ACCOUNT_KEY: () => AZURE_STORAGE_ACCOUNT_KEY,
518
+ AZURE_STORAGE_ACCOUNT_NAME: () => AZURE_STORAGE_ACCOUNT_NAME,
519
+ AZURE_STORAGE_CONNECTION_STRING: () => AZURE_STORAGE_CONNECTION_STRING,
520
+ CORS_ORIGIN: () => CORS_ORIGIN,
521
+ DATABASE_HOST: () => DATABASE_HOST,
522
+ DATABASE_NAME: () => DATABASE_NAME,
523
+ DATABASE_PASSWORD: () => DATABASE_PASSWORD,
524
+ DATABASE_POOL_SIZE: () => DATABASE_POOL_SIZE,
525
+ DATABASE_PORT: () => DATABASE_PORT,
526
+ DATABASE_SCHEMA: () => DATABASE_SCHEMA,
527
+ DATABASE_SSL: () => DATABASE_SSL,
528
+ DATABASE_TIMEOUT: () => DATABASE_TIMEOUT,
529
+ DATABASE_URL: () => DATABASE_URL,
530
+ DATABASE_USERNAME: () => DATABASE_USERNAME,
531
+ DATADOG_API_KEY: () => DATADOG_API_KEY,
532
+ DEBUG: () => DEBUG,
533
+ DOCKER_REGISTRY_PASSWORD: () => DOCKER_REGISTRY_PASSWORD,
534
+ DOCKER_REGISTRY_URL: () => DOCKER_REGISTRY_URL,
535
+ DOCKER_REGISTRY_USERNAME: () => DOCKER_REGISTRY_USERNAME,
536
+ ELASTICSEARCH_PASSWORD: () => ELASTICSEARCH_PASSWORD,
537
+ ELASTICSEARCH_URL: () => ELASTICSEARCH_URL,
538
+ ELASTICSEARCH_USERNAME: () => ELASTICSEARCH_USERNAME,
539
+ HOST: () => HOST,
540
+ JAEGER_ENDPOINT: () => JAEGER_ENDPOINT,
541
+ JWT_ACCESS_TOKEN_EXPIRES_IN: () => JWT_ACCESS_TOKEN_EXPIRES_IN,
542
+ JWT_REFRESH_TOKEN_EXPIRES_IN: () => JWT_REFRESH_TOKEN_EXPIRES_IN,
543
+ JWT_SECRET: () => JWT_SECRET,
544
+ KAFKA_BROKERS: () => KAFKA_BROKERS,
545
+ KAFKA_CLIENT_ID: () => KAFKA_CLIENT_ID,
546
+ LOG_LEVEL: () => LOG_LEVEL,
547
+ NEW_RELIC_LICENSE_KEY: () => NEW_RELIC_LICENSE_KEY,
548
+ NODE_ENV: () => NODE_ENV,
549
+ OAUTH_CLIENT_ID: () => OAUTH_CLIENT_ID,
550
+ OAUTH_CLIENT_SECRET: () => OAUTH_CLIENT_SECRET,
551
+ OAUTH_REDIRECT_URI: () => OAUTH_REDIRECT_URI,
552
+ OAUTH_SCOPE: () => OAUTH_SCOPE,
553
+ OPENAI_API_KEY: () => OPENAI_API_KEY,
554
+ OPENAI_BASE_URL: () => OPENAI_BASE_URL,
555
+ OPENAI_MODEL: () => OPENAI_MODEL,
556
+ OPENAI_ORGANIZATION_ID: () => OPENAI_ORGANIZATION_ID,
557
+ OPENAI_PROJECT_ID: () => OPENAI_PROJECT_ID,
558
+ OPENAI_TIMEOUT: () => OPENAI_TIMEOUT,
559
+ PORT: () => PORT,
560
+ PROMETHEUS_PORT: () => PROMETHEUS_PORT,
561
+ RABBITMQ_URL: () => RABBITMQ_URL,
562
+ REDIS_DB: () => REDIS_DB,
563
+ REDIS_HOST: () => REDIS_HOST,
564
+ REDIS_PASSWORD: () => REDIS_PASSWORD,
565
+ REDIS_PORT: () => REDIS_PORT,
566
+ REDIS_TLS: () => REDIS_TLS,
567
+ REDIS_TLS_CA_CERT_PATH: () => REDIS_TLS_CA_CERT_PATH,
568
+ REDIS_URL: () => REDIS_URL,
569
+ REDIS_USERNAME: () => REDIS_USERNAME,
570
+ SENTRY_DSN: () => SENTRY_DSN,
571
+ apiBaseUrl: () => apiBaseUrl,
572
+ apiKey: () => apiKey,
573
+ apiTimeout: () => apiTimeout,
574
+ awsAccessKeyId: () => awsAccessKeyId,
575
+ awsRegion: () => awsRegion,
576
+ awsS3BucketName: () => awsS3BucketName,
577
+ awsSecretAccessKey: () => awsSecretAccessKey,
578
+ awsSqsQueueUrl: () => awsSqsQueueUrl,
579
+ azureEventHubConnectionString: () => azureEventHubConnectionString,
580
+ azureServiceBusConnectionString: () => azureServiceBusConnectionString,
581
+ azureStorageAccountKey: () => azureStorageAccountKey,
582
+ azureStorageAccountName: () => azureStorageAccountName,
583
+ azureStorageConnectionString: () => azureStorageConnectionString,
584
+ corsOrigin: () => corsOrigin,
585
+ databaseHost: () => databaseHost,
586
+ databaseName: () => databaseName,
587
+ databasePassword: () => databasePassword,
588
+ databasePoolSize: () => databasePoolSize,
589
+ databasePort: () => databasePort,
590
+ databaseSchema: () => databaseSchema,
591
+ databaseSsl: () => databaseSsl,
592
+ databaseTimeout: () => databaseTimeout,
593
+ databaseUrl: () => databaseUrl,
594
+ databaseUsername: () => databaseUsername,
595
+ datadogApiKey: () => datadogApiKey,
596
+ debug: () => debug,
597
+ dockerRegistryPassword: () => dockerRegistryPassword,
598
+ dockerRegistryUrl: () => dockerRegistryUrl,
599
+ dockerRegistryUsername: () => dockerRegistryUsername,
600
+ elasticsearchPassword: () => elasticsearchPassword,
601
+ elasticsearchUrl: () => elasticsearchUrl,
602
+ elasticsearchUsername: () => elasticsearchUsername,
603
+ host: () => host,
604
+ jaegerEndpoint: () => jaegerEndpoint,
605
+ jwtAccessTokenExpiresIn: () => jwtAccessTokenExpiresIn,
606
+ jwtRefreshTokenExpiresIn: () => jwtRefreshTokenExpiresIn,
607
+ jwtSecret: () => jwtSecret,
608
+ kafkaBrokers: () => kafkaBrokers,
609
+ kafkaClientId: () => kafkaClientId,
610
+ logLevel: () => logLevel,
611
+ newRelicLicenseKey: () => newRelicLicenseKey,
612
+ nodeEnv: () => nodeEnv,
613
+ oauthClientId: () => oauthClientId,
614
+ oauthClientSecret: () => oauthClientSecret,
615
+ oauthRedirectUri: () => oauthRedirectUri,
616
+ oauthScope: () => oauthScope,
617
+ openaiApiKey: () => openaiApiKey,
618
+ openaiBaseUrl: () => openaiBaseUrl,
619
+ openaiModel: () => openaiModel,
620
+ openaiOrganizationId: () => openaiOrganizationId,
621
+ openaiProjectId: () => openaiProjectId,
622
+ openaiTimeout: () => openaiTimeout,
623
+ port: () => port,
624
+ prometheusPort: () => prometheusPort,
625
+ rabbitmqUrl: () => rabbitmqUrl,
626
+ redisDb: () => redisDb,
627
+ redisHost: () => redisHost,
628
+ redisPassword: () => redisPassword,
629
+ redisPort: () => redisPort,
630
+ redisTls: () => redisTls,
631
+ redisTlsCaCertPath: () => redisTlsCaCertPath,
632
+ redisUrl: () => redisUrl,
633
+ redisUsername: () => redisUsername,
634
+ sentryDsn: () => sentryDsn
635
+ });
636
+
637
+ //#endregion
638
+ export { logLevel as $, AZURE_STORAGE_ACCOUNT_NAME as $t, openaiProjectId as A, DATABASE_SSL as At, NODE_ENV as B, databaseSsl as Bt, OPENAI_ORGANIZATION_ID as C, dockerRegistryUsername as Ct, openaiBaseUrl as D, DATABASE_POOL_SIZE as Dt, openaiApiKey as E, DATABASE_PASSWORD as Et, OAUTH_SCOPE as F, databaseName as Ft, PROMETHEUS_PORT as G, corsOrigin as Gt, DATADOG_API_KEY as H, databaseUrl as Ht, oauthClientId as I, databasePassword as It, jaegerEndpoint as J, debug as Jt, SENTRY_DSN as K, DEBUG as Kt, oauthClientSecret as L, databasePoolSize as Lt, OAUTH_CLIENT_ID as M, DATABASE_URL as Mt, OAUTH_CLIENT_SECRET as N, DATABASE_USERNAME as Nt, openaiModel as O, DATABASE_PORT as Ot, OAUTH_REDIRECT_URI as P, databaseHost as Pt, LOG_LEVEL as Q, AZURE_STORAGE_ACCOUNT_KEY as Qt, oauthRedirectUri as R, databasePort as Rt, OPENAI_MODEL as S, dockerRegistryUrl as St, OPENAI_TIMEOUT as T, DATABASE_NAME as Tt, JAEGER_ENDPOINT as U, databaseUsername as Ut, nodeEnv as V, databaseTimeout as Vt, NEW_RELIC_LICENSE_KEY as W, CORS_ORIGIN as Wt, prometheusPort as X, AZURE_EVENT_HUB_CONNECTION_STRING as Xt, newRelicLicenseKey as Y, port as Yt, sentryDsn as Z, AZURE_SERVICE_BUS_CONNECTION_STRING as Zt, redisUsername as _, API_KEY as _n, elasticsearchUsername as _t, REDIS_PORT as a, azureStorageConnectionString as an, JWT_REFRESH_TOKEN_EXPIRES_IN as at, OPENAI_API_KEY as b, apiKey as bn, DOCKER_REGISTRY_USERNAME as bt, REDIS_URL as c, AWS_S3_BUCKET_NAME as cn, jwtRefreshTokenExpiresIn as ct, redisHost as d, awsAccessKeyId as dn, host as dt, AZURE_STORAGE_CONNECTION_STRING as en, KAFKA_BROKERS as et, redisPassword as f, awsRegion as fn, ELASTICSEARCH_PASSWORD as ft, redisUrl as g, API_BASE_URL as gn, elasticsearchUrl as gt, redisTlsCaCertPath as h, awsSqsQueueUrl as hn, elasticsearchPassword as ht, REDIS_PASSWORD as i, azureStorageAccountName as in, JWT_ACCESS_TOKEN_EXPIRES_IN as it, openaiTimeout as j, DATABASE_TIMEOUT as jt, openaiOrganizationId as k, DATABASE_SCHEMA as kt, REDIS_USERNAME as l, AWS_SECRET_ACCESS_KEY as ln, jwtSecret as lt, redisTls as m, awsSecretAccessKey as mn, ELASTICSEARCH_USERNAME as mt, REDIS_DB as n, azureServiceBusConnectionString as nn, kafkaBrokers as nt, REDIS_TLS as o, AWS_ACCESS_KEY_ID as on, JWT_SECRET as ot, redisPort as p, awsS3BucketName as pn, ELASTICSEARCH_URL as pt, datadogApiKey as q, PORT as qt, REDIS_HOST as r, azureStorageAccountKey as rn, kafkaClientId as rt, REDIS_TLS_CA_CERT_PATH as s, AWS_REGION as sn, jwtAccessTokenExpiresIn as st, src_exports as t, azureEventHubConnectionString as tn, KAFKA_CLIENT_ID as tt, redisDb as u, AWS_SQS_QUEUE_URL as un, HOST as ut, RABBITMQ_URL as v, API_TIMEOUT as vn, DOCKER_REGISTRY_PASSWORD as vt, OPENAI_PROJECT_ID as w, DATABASE_HOST as wt, OPENAI_BASE_URL as x, apiTimeout as xn, dockerRegistryPassword as xt, rabbitmqUrl as y, apiBaseUrl as yn, DOCKER_REGISTRY_URL as yt, oauthScope as z, databaseSchema as zt };