@e-n-v/env 0.0.5 → 0.0.8
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/{BooleanMap-DmFnCA-O.d.ts → BooleanMap-BPQuO3Ae.d.ts} +1 -3
- package/dist/{BooleanMap-B2eIP3tZ.d.cts → BooleanMap-CX_YrPCf.d.cts} +1 -3
- package/dist/EnvChannelOptions-BbKeuO-o.d.cts +366 -0
- package/dist/EnvChannelOptions-BbKeuO-o.d.ts +366 -0
- package/dist/{EnvSource-DA3ZGlES.js → EnvSource-WAGWqRVM.js} +6 -10
- package/dist/{EnvSource-BVnmdHku.cjs → EnvSource-s8F_M_6O.cjs} +21 -28
- package/dist/EnvVarSchema-CDZGmnex.cjs +15 -0
- package/dist/EnvVarSchema-Dr6q7jf6.js +10 -0
- package/dist/{ProcessEnvChannel-Do4-yiLI.d.ts → ProcessEnvChannel-CwhV7_EB.d.ts} +2 -4
- package/dist/{ProcessEnvChannel-D465c-dp.d.cts → ProcessEnvChannel-DWHPZePe.d.cts} +2 -4
- package/dist/{StringEnvVarSchema-B8MT7htU.d.ts → StringEnvVarSchema-D9Jr1Aws.d.cts} +5 -3
- package/dist/{StringEnvVarSchema-BF6C0nyT.d.cts → StringEnvVarSchema-D9Jr1Aws.d.ts} +5 -3
- package/dist/channels.cjs +3 -4
- package/dist/channels.d.cts +3 -4
- package/dist/channels.d.ts +3 -4
- package/dist/channels.js +2 -4
- package/dist/cli.cjs +10 -23
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -13
- package/dist/core.cjs +13 -14
- package/dist/core.d.cts +147 -6
- package/dist/core.d.ts +147 -6
- package/dist/core.js +9 -11
- package/dist/{custom-Bt_wnxIu.js → custom-Bd-jLg80.js} +3 -12
- package/dist/{custom-D_Rqjm09.cjs → custom-Dyb9TnER.cjs} +48 -58
- package/dist/files.cjs +6 -6
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +2 -5
- package/dist/{parse-DwtLpVhC.d.ts → index-B2eNij2x.d.cts} +1 -2
- package/dist/{parse-BT1QSa5e.d.cts → index-BHTM8nxS.d.ts} +1 -2
- package/dist/{prompt-yKdccbtZ.d.ts → index-BKBW9Dxs.d.cts} +3 -4
- package/dist/{prompt-C5WudV9x.d.cts → index-CEyOIRdj.d.ts} +3 -4
- package/dist/{EnvModel-CrGclUpJ.d.cts → index-Cb0abjLf.d.ts} +59 -7
- package/dist/{EnvModel-D8rt0EJ6.d.ts → index-Cz3frUwZ.d.cts} +58 -6
- package/dist/index.cjs +33 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +15 -0
- package/dist/model.cjs +10 -11
- package/dist/model.d.cts +2 -35
- package/dist/model.d.ts +2 -35
- package/dist/model.js +2 -6
- package/dist/parse.cjs +14 -14
- package/dist/parse.d.cts +5 -8
- package/dist/parse.d.ts +5 -8
- package/dist/parse.js +4 -7
- package/dist/preprocessors-BKuIcZa1.d.ts +83 -0
- package/dist/preprocessors-DFVyF0c7.d.cts +83 -0
- package/dist/prompt.cjs +12 -15
- package/dist/prompt.d.cts +5 -10
- package/dist/prompt.d.ts +5 -10
- package/dist/prompt.js +3 -9
- package/dist/{redis-EcC7TX3K.cjs → redis-CyTF0SYT.cjs} +321 -253
- package/dist/{redis-CJOpRPjc.js → redis-D18f4ztf.js} +76 -37
- package/dist/{index-Dq_0aeAL.d.ts → redis-DsW-Vkwq.d.cts} +26 -6
- package/dist/{index-D8pslhp4.d.cts → redis-tRD4nAy_.d.ts} +26 -6
- package/dist/{resolveChannel-v9BDsw-M.js → resolveChannel-D1Fzl4TL.js} +59 -63
- package/dist/{resolveChannel-CjAuxy3p.cjs → resolveChannel-DxZNYdDe.cjs} +84 -92
- package/dist/{chunk-pbleEpgJ.cjs → rolldown-runtime-C0BPl7ul.cjs} +15 -16
- package/dist/{chunk-Bp6m_JJh.js → rolldown-runtime-D7D4PA-g.js} +4 -4
- package/dist/{schema-jN4EtvEP.d.ts → schema-B-JLVS42.d.ts} +1 -3
- package/dist/{schema-DH4GiW9A.d.cts → schema-B1i83alz.d.cts} +1 -3
- package/dist/schema-CtP5lpU1.js +11 -0
- package/dist/schema-D9nJKipf.cjs +22 -0
- package/dist/schemas/zod.cjs +112 -359
- package/dist/schemas/zod.d.cts +117 -87
- package/dist/schemas/zod.d.ts +117 -87
- package/dist/schemas/zod.js +116 -377
- package/dist/schemas.cjs +152 -133
- package/dist/schemas.d.cts +2 -3
- package/dist/schemas.d.ts +2 -3
- package/dist/schemas.js +2 -6
- package/dist/{src-Cjo2XA4n.cjs → src-5GYFbR9n.cjs} +21 -25
- package/dist/{src-BBwjK5SK.js → src-8rEOvFG5.js} +11 -15
- package/dist/{src-Dtv7TlJx.js → src-CdzAzdq-.js} +100 -114
- package/dist/{src-CLTURaoo.js → src-Cg49gGJb.js} +18 -44
- package/dist/{src-DWYoqPX1.cjs → src-CttkcdpE.cjs} +114 -133
- package/dist/{src-XjL5cyPG.cjs → src-D5KzIEH_.cjs} +130 -107
- package/dist/src-DB0Har0j.cjs +1632 -0
- package/dist/{src-CVdUqK3q.js → src-DWc-WWjX.js} +107 -86
- package/dist/{src-B7FG1rak.js → src-DvUBRBe3.js} +205 -116
- package/dist/{src-meUnCASg.cjs → src-TZx_e95f.cjs} +87 -132
- package/dist/{vars-BNVI6k89.d.ts → vars-DtzGL5Nc.d.cts} +1 -4
- package/dist/{vars-CptZRPX5.d.cts → vars-obKYxaSu.d.ts} +1 -4
- package/dist/vars.cjs +175 -138
- package/dist/vars.d.cts +3 -7
- package/dist/vars.d.ts +3 -7
- package/dist/vars.js +21 -9
- package/package.json +9 -8
- package/dist/EnvChannelOptions-BPkWDrmr.d.cts +0 -108
- package/dist/EnvChannelOptions-CRwDLWjd.d.ts +0 -108
- package/dist/coerce-DNIuYAx4.js +0 -11028
- package/dist/coerce-b7UVodS9.cjs +0 -12365
- package/dist/model-Dic8IJsf.d.ts +0 -29
- package/dist/model-ft0WhSSS.d.cts +0 -29
- package/dist/root.cjs +0 -36
- package/dist/root.d.cts +0 -21
- package/dist/root.d.ts +0 -21
- package/dist/root.js +0 -21
- package/dist/src-DZmpNGrQ.cjs +0 -1411
- package/dist/validate-BxA3a-ns.d.cts +0 -203
- package/dist/validate-CyxrRacF.d.ts +0 -203
- package/dist/vars-CYOaskkK.cjs +0 -27
- package/dist/vars-DOW0LiiN.js +0 -22
- /package/dist/{EnvChannel-LMIRYvT1.d.cts → EnvChannel-CfSwa_25.d.cts} +0 -0
- /package/dist/{EnvChannel-w27PEm7x.d.ts → EnvChannel-CfSwa_25.d.ts} +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#region ../schemas/src/shared/messages.ts
|
|
2
2
|
const COMMON_MESSAGES = { MUST_BE_VALID_URL: "Must be a valid URL" };
|
|
3
|
-
|
|
4
3
|
//#endregion
|
|
5
4
|
//#region ../schemas/src/shared/zodMessages.ts
|
|
6
5
|
/**
|
|
@@ -14,34 +13,35 @@ const COMMON_MESSAGES = { MUST_BE_VALID_URL: "Must be a valid URL" };
|
|
|
14
13
|
* @returns A complete error message (e.g., "Must be at least 8 characters long")
|
|
15
14
|
*/
|
|
16
15
|
function toZodMessage(trait) {
|
|
17
|
-
|
|
16
|
+
const normalized = trait.trim();
|
|
17
|
+
if (/^must\b/i.test(normalized) || /(?:\bis required|\bcannot be empty)$/i.test(normalized)) return normalized.charAt(0).toUpperCase() + normalized.slice(1);
|
|
18
|
+
return `Must ${normalized}`;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Converts a trait array to a Zod error message by joining with "and" and adding "Must " prefix.
|
|
21
22
|
* @param traits - Array of trait descriptions
|
|
22
23
|
* @returns A complete error message joining all traits
|
|
23
24
|
*/
|
|
24
|
-
function toZodMessageArray(traits
|
|
25
|
-
if (traits
|
|
26
|
-
if (traits
|
|
27
|
-
const lastTrait = traits
|
|
28
|
-
return `Must ${traits
|
|
25
|
+
function toZodMessageArray(traits) {
|
|
26
|
+
if (traits.length === 0) return "Must satisfy requirements";
|
|
27
|
+
if (traits.length === 1) return toZodMessage(traits[0]);
|
|
28
|
+
const lastTrait = traits[traits.length - 1];
|
|
29
|
+
return `Must ${traits.slice(0, -1).join(", ")} and ${lastTrait}`;
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Converts multiple traits to Zod error messages.
|
|
32
33
|
* @param traits - Object containing trait descriptions (strings or arrays)
|
|
33
34
|
* @returns Object with the same keys but values converted to complete messages
|
|
34
35
|
*/
|
|
35
|
-
function toZodMessages(traits
|
|
36
|
-
const messages
|
|
37
|
-
for (const [key, value] of Object.entries(traits
|
|
38
|
-
else messages
|
|
39
|
-
return messages
|
|
36
|
+
function toZodMessages(traits) {
|
|
37
|
+
const messages = {};
|
|
38
|
+
for (const [key, value] of Object.entries(traits)) if (Array.isArray(value)) messages[key] = toZodMessageArray(value);
|
|
39
|
+
else messages[key] = toZodMessage(value);
|
|
40
|
+
return messages;
|
|
40
41
|
}
|
|
41
|
-
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region ../schemas/src/shared/apiService.ts
|
|
44
|
-
const descriptions$
|
|
44
|
+
const descriptions$6 = {
|
|
45
45
|
apiKey: "API key for external service",
|
|
46
46
|
jwtSecret: "JWT secret key for token signing",
|
|
47
47
|
jwtAccessTokenExpiresIn: "JWT access token expiration (e.g., '15m', '1h', '1d')",
|
|
@@ -87,7 +87,7 @@ const traits$5 = {
|
|
|
87
87
|
portMin: ">= 1024 (avoid reserved ports)",
|
|
88
88
|
portMax: "<= 65535"
|
|
89
89
|
};
|
|
90
|
-
const constraints$
|
|
90
|
+
const constraints$6 = {
|
|
91
91
|
apiKeyMinLength: 8,
|
|
92
92
|
jwtSecretMinLength: 32,
|
|
93
93
|
encryptionKeyMinLength: 32,
|
|
@@ -103,7 +103,7 @@ const constraints$5 = {
|
|
|
103
103
|
portMin: 1024,
|
|
104
104
|
portMax: 65535
|
|
105
105
|
};
|
|
106
|
-
const defaults$
|
|
106
|
+
const defaults$5 = {
|
|
107
107
|
jwtAccessTokenExpiresIn: "15m",
|
|
108
108
|
jwtRefreshTokenExpiresIn: "7d",
|
|
109
109
|
rateLimitRpm: 60,
|
|
@@ -130,16 +130,15 @@ const enumOptions = {
|
|
|
130
130
|
"staging"
|
|
131
131
|
]
|
|
132
132
|
};
|
|
133
|
-
const patterns$
|
|
133
|
+
const patterns$5 = {
|
|
134
134
|
jwtTokenDuration: /^\d+[smhd]$/,
|
|
135
135
|
httpProtocol: /^https?:\/\//,
|
|
136
136
|
httpsProtocol: /^https:\/\//
|
|
137
137
|
};
|
|
138
|
-
const messages$
|
|
139
|
-
|
|
138
|
+
const messages$6 = toZodMessages(traits$5);
|
|
140
139
|
//#endregion
|
|
141
140
|
//#region ../schemas/src/shared/infrastructure.ts
|
|
142
|
-
const descriptions$
|
|
141
|
+
const descriptions$5 = {
|
|
143
142
|
azureStorageConnectionString: "Azure Storage Account connection string",
|
|
144
143
|
azureStorageAccountName: "Azure Storage Account name",
|
|
145
144
|
azureStorageAccountKey: "Azure Storage Account key",
|
|
@@ -196,11 +195,11 @@ const traits$4 = {
|
|
|
196
195
|
datadogApiKeyLength: "exactly 32 characters",
|
|
197
196
|
sentryDsnFormat: "a valid Sentry DSN format"
|
|
198
197
|
};
|
|
199
|
-
const defaults$
|
|
198
|
+
const defaults$4 = {
|
|
200
199
|
kubernetesNamespace: "default",
|
|
201
200
|
prometheusPort: 9090
|
|
202
201
|
};
|
|
203
|
-
const constraints$
|
|
202
|
+
const constraints$5 = {
|
|
204
203
|
awsAccessKeyIdMin: 16,
|
|
205
204
|
awsAccessKeyIdMax: 128,
|
|
206
205
|
prometheusPortMin: 1024,
|
|
@@ -208,7 +207,7 @@ const constraints$4 = {
|
|
|
208
207
|
newRelicLicenseKeyLength: 40,
|
|
209
208
|
datadogApiKeyLength: 32
|
|
210
209
|
};
|
|
211
|
-
const patterns$
|
|
210
|
+
const patterns$4 = {
|
|
212
211
|
awsRegion: /^[a-z]{2}-[a-z]+-\d{1}$/,
|
|
213
212
|
awsS3BucketName: /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/,
|
|
214
213
|
awsSqsQueueUrl: /^https:\/\/sqs\.[^.]+\.amazonaws\.com\/\d+\/[^/]+$/,
|
|
@@ -221,11 +220,10 @@ const patterns$3 = {
|
|
|
221
220
|
kubernetesName: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/,
|
|
222
221
|
sentryDsn: /^https:\/\/[a-f0-9]+@[a-f0-9]+\.ingest\.sentry\.io\/\d+$/
|
|
223
222
|
};
|
|
224
|
-
const messages$
|
|
225
|
-
|
|
223
|
+
const messages$5 = toZodMessages(traits$4);
|
|
226
224
|
//#endregion
|
|
227
225
|
//#region ../schemas/src/shared/database.ts
|
|
228
|
-
const descriptions$
|
|
226
|
+
const descriptions$4 = {
|
|
229
227
|
databaseUrl: "Database connection string",
|
|
230
228
|
databaseUrlPostgresql: "PostgreSQL database connection string",
|
|
231
229
|
databaseUrlMysql: "MySQL database connection string",
|
|
@@ -265,12 +263,12 @@ const traits$3 = {
|
|
|
265
263
|
databaseTimeoutMin: "at least 1 second",
|
|
266
264
|
databaseTimeoutMax: "not exceed 5 minutes"
|
|
267
265
|
};
|
|
268
|
-
const defaults$
|
|
266
|
+
const defaults$3 = {
|
|
269
267
|
databasePoolSize: 10,
|
|
270
268
|
databaseTimeout: 3e4,
|
|
271
269
|
databaseSsl: true
|
|
272
270
|
};
|
|
273
|
-
const constraints$
|
|
271
|
+
const constraints$4 = {
|
|
274
272
|
databasePortMin: 1,
|
|
275
273
|
databasePortMax: 65535,
|
|
276
274
|
databasePoolSizeMin: 1,
|
|
@@ -278,7 +276,7 @@ const constraints$3 = {
|
|
|
278
276
|
databaseTimeoutMin: 1e3,
|
|
279
277
|
databaseTimeoutMax: 3e5
|
|
280
278
|
};
|
|
281
|
-
const patterns$
|
|
279
|
+
const patterns$3 = {
|
|
282
280
|
postgresUrl: /^postgresql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
|
|
283
281
|
mysqlUrl: /^mysql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
|
|
284
282
|
mongodbUrl: /^mongodb(?:\+srv)?:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/,]+(?::\d+)?(?:,[^:/,]+(?::\d+)?)*(?:\/[^?]*)?(?:\?.*)?$/,
|
|
@@ -291,8 +289,52 @@ const patterns$2 = {
|
|
|
291
289
|
databaseName: /^[a-zA-Z0-9_-]+$/,
|
|
292
290
|
databaseSchema: /^[a-zA-Z0-9_]+$/
|
|
293
291
|
};
|
|
294
|
-
const messages$
|
|
295
|
-
|
|
292
|
+
const messages$4 = toZodMessages(traits$3);
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region ../schemas/src/shared/gel.ts
|
|
295
|
+
const descriptions$3 = {
|
|
296
|
+
gelDsn: "Gel database connection string (DSN)",
|
|
297
|
+
gelInstance: "Gel Cloud instance name (format: org-name/instance-name)",
|
|
298
|
+
gelSecretKey: "Gel Cloud secret key for authentication",
|
|
299
|
+
gelHost: "Gel database host address",
|
|
300
|
+
gelPort: "Gel database port number",
|
|
301
|
+
gelUser: "Gel database username",
|
|
302
|
+
gelPassword: "Gel database password",
|
|
303
|
+
gelBranch: "Gel database branch name",
|
|
304
|
+
gelTlsCaFile: "Path to TLS CA certificate file",
|
|
305
|
+
gelClientTlsSecurity: "Gel client TLS security mode",
|
|
306
|
+
gelCredentialsFile: "Path to Gel credentials JSON file"
|
|
307
|
+
};
|
|
308
|
+
const messages$3 = {
|
|
309
|
+
gelDsnFormat: "Must be a valid Gel DSN (gel://...)",
|
|
310
|
+
gelInstanceFormat: "Must be in format org-name/instance-name",
|
|
311
|
+
gelSecretKeyRequired: "Gel secret key is required",
|
|
312
|
+
gelHostRequired: "Gel host is required",
|
|
313
|
+
gelPortInt: "Port must be an integer",
|
|
314
|
+
gelPortMin: "Port must be greater than 0",
|
|
315
|
+
gelPortMax: "Port must be less than 65536",
|
|
316
|
+
gelUserRequired: "Gel username is required",
|
|
317
|
+
gelPasswordRequired: "Gel password is required",
|
|
318
|
+
gelBranchFormat: "Branch name must contain only letters, numbers, underscores, and hyphens",
|
|
319
|
+
gelTlsCaFileFormat: "Must be a valid file path",
|
|
320
|
+
gelClientTlsSecurityInvalid: "TLS security must be one of: strict, no_host_verification, insecure",
|
|
321
|
+
gelCredentialsFileFormat: "Must be a valid file path"
|
|
322
|
+
};
|
|
323
|
+
const defaults$2 = {
|
|
324
|
+
gelPort: 5656,
|
|
325
|
+
gelUser: "admin",
|
|
326
|
+
gelBranch: "main",
|
|
327
|
+
gelClientTlsSecurity: "strict"
|
|
328
|
+
};
|
|
329
|
+
const constraints$3 = {
|
|
330
|
+
gelPortMin: 1,
|
|
331
|
+
gelPortMax: 65535
|
|
332
|
+
};
|
|
333
|
+
const patterns$2 = {
|
|
334
|
+
gelDsn: /^gel:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
|
|
335
|
+
gelInstance: /^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/,
|
|
336
|
+
gelBranch: /^[a-zA-Z0-9_-]+$/
|
|
337
|
+
};
|
|
296
338
|
//#endregion
|
|
297
339
|
//#region ../schemas/src/shared/oauth.ts
|
|
298
340
|
const descriptions$2 = {
|
|
@@ -313,7 +355,6 @@ const constraints$2 = {
|
|
|
313
355
|
scopeMinLength: 1
|
|
314
356
|
};
|
|
315
357
|
const messages$2 = toZodMessages(traits$2);
|
|
316
|
-
|
|
317
358
|
//#endregion
|
|
318
359
|
//#region ../schemas/src/shared/openai.ts
|
|
319
360
|
const descriptions$1 = {
|
|
@@ -326,7 +367,7 @@ const descriptions$1 = {
|
|
|
326
367
|
};
|
|
327
368
|
const traits$1 = {
|
|
328
369
|
apiKeyMinLength: "at least 40 characters",
|
|
329
|
-
apiKeyFormat: ["start with 'sk-'", "contain only letters and
|
|
370
|
+
apiKeyFormat: ["start with 'sk-'", "contain only letters, numbers, and underscores"],
|
|
330
371
|
organizationFormat: "start with 'org-'",
|
|
331
372
|
projectFormat: "start with 'proj_'",
|
|
332
373
|
baseUrlInvalid: "a valid URL",
|
|
@@ -343,12 +384,11 @@ const constraints$1 = {
|
|
|
343
384
|
};
|
|
344
385
|
const defaults$1 = { timeout: 30 };
|
|
345
386
|
const patterns$1 = {
|
|
346
|
-
apiKey: /^sk-[A-Za-z0-
|
|
387
|
+
apiKey: /^sk-[A-Za-z0-9_]{20,}$/,
|
|
347
388
|
organizationId: /^org-[A-Za-z0-9_-]{8,}$/,
|
|
348
389
|
projectId: /^proj_[A-Za-z0-9_-]{8,}$/
|
|
349
390
|
};
|
|
350
391
|
const messages$1 = toZodMessages(traits$1);
|
|
351
|
-
|
|
352
392
|
//#endregion
|
|
353
393
|
//#region ../schemas/src/shared/redis.ts
|
|
354
394
|
const descriptions = {
|
|
@@ -390,6 +430,5 @@ const patterns = {
|
|
|
390
430
|
host: /^[a-zA-Z0-9.-]+$/
|
|
391
431
|
};
|
|
392
432
|
const messages = toZodMessages(traits);
|
|
393
|
-
|
|
394
433
|
//#endregion
|
|
395
|
-
export {
|
|
434
|
+
export { descriptions$5 as A, traits$5 as B, defaults$3 as C, traits$3 as D, patterns$3 as E, defaults$5 as F, descriptions$6 as I, enumOptions as L, patterns$4 as M, traits$4 as N, constraints$5 as O, constraints$6 as P, messages$6 as R, constraints$4 as S, messages$4 as T, toZodMessages as V, constraints$3 as _, patterns as a, messages$3 as b, defaults$1 as c, patterns$1 as d, traits$1 as f, traits$2 as g, messages$2 as h, messages as i, messages$5 as j, defaults$4 as k, descriptions$1 as l, descriptions$2 as m, defaults as n, traits as o, constraints$2 as p, descriptions as r, constraints$1 as s, constraints as t, messages$1 as u, defaults$2 as v, descriptions$4 as w, patterns$2 as x, descriptions$3 as y, patterns$5 as z };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as EnumEnvVarSchema, c as BooleanEnvVarSchemaInput, i as NumberEnvVarSchemaInput, n as StringEnvVarSchemaInput, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-
|
|
2
|
-
|
|
1
|
+
import { a as EnumEnvVarSchema, c as BooleanEnvVarSchemaInput, i as NumberEnvVarSchemaInput, n as StringEnvVarSchemaInput, o as EnumEnvVarSchemaInput, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-D9Jr1Aws.cjs";
|
|
3
2
|
//#region ../schemas/src/plain/api.d.ts
|
|
4
3
|
declare const apiKey: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
5
4
|
declare const apiBaseUrl: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
@@ -80,6 +79,30 @@ declare const ELASTICSEARCH_URL: StringEnvVarSchema;
|
|
|
80
79
|
declare const ELASTICSEARCH_USERNAME: StringEnvVarSchema;
|
|
81
80
|
declare const ELASTICSEARCH_PASSWORD: StringEnvVarSchema;
|
|
82
81
|
//#endregion
|
|
82
|
+
//#region ../schemas/src/plain/gel.d.ts
|
|
83
|
+
declare const gelDsn: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
84
|
+
declare const gelInstance: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
85
|
+
declare const gelSecretKey: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
86
|
+
declare const gelHost: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
87
|
+
declare const gelPort: (input?: Partial<NumberEnvVarSchemaInput>) => NumberEnvVarSchema;
|
|
88
|
+
declare const gelUser: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
89
|
+
declare const gelPassword: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
90
|
+
declare const gelBranch: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
91
|
+
declare const gelTlsCaFile: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
92
|
+
declare const gelClientTlsSecurity: (input?: Partial<EnumEnvVarSchemaInput<"strict" | "no_host_verification" | "insecure">>) => EnumEnvVarSchema<string>;
|
|
93
|
+
declare const gelCredentialsFile: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
94
|
+
declare const GEL_DSN: StringEnvVarSchema;
|
|
95
|
+
declare const GEL_INSTANCE: StringEnvVarSchema;
|
|
96
|
+
declare const GEL_SECRET_KEY: StringEnvVarSchema;
|
|
97
|
+
declare const GEL_HOST: StringEnvVarSchema;
|
|
98
|
+
declare const GEL_PORT: NumberEnvVarSchema;
|
|
99
|
+
declare const GEL_USER: StringEnvVarSchema;
|
|
100
|
+
declare const GEL_PASSWORD: StringEnvVarSchema;
|
|
101
|
+
declare const GEL_BRANCH: StringEnvVarSchema;
|
|
102
|
+
declare const GEL_TLS_CA_FILE: StringEnvVarSchema;
|
|
103
|
+
declare const GEL_CLIENT_TLS_SECURITY: EnumEnvVarSchema<string>;
|
|
104
|
+
declare const GEL_CREDENTIALS_FILE: StringEnvVarSchema;
|
|
105
|
+
//#endregion
|
|
83
106
|
//#region ../schemas/src/plain/host.d.ts
|
|
84
107
|
declare const host: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
85
108
|
declare const HOST: StringEnvVarSchema;
|
|
@@ -163,8 +186,5 @@ declare const REDIS_USERNAME: StringEnvVarSchema;
|
|
|
163
186
|
declare const REDIS_DB: NumberEnvVarSchema;
|
|
164
187
|
declare const REDIS_TLS: BooleanEnvVarSchema;
|
|
165
188
|
declare const REDIS_TLS_CA_CERT_PATH: StringEnvVarSchema;
|
|
166
|
-
declare namespace index_d_exports {
|
|
167
|
-
export { API_BASE_URL, API_KEY, API_TIMEOUT, AWS_ACCESS_KEY_ID, AWS_REGION, AWS_S3_BUCKET_NAME, AWS_SECRET_ACCESS_KEY, AWS_SQS_QUEUE_URL, AZURE_EVENT_HUB_CONNECTION_STRING, AZURE_SERVICE_BUS_CONNECTION_STRING, AZURE_STORAGE_ACCOUNT_KEY, AZURE_STORAGE_ACCOUNT_NAME, AZURE_STORAGE_CONNECTION_STRING, CORS_ORIGIN, DATABASE_HOST, DATABASE_NAME, DATABASE_PASSWORD, DATABASE_POOL_SIZE, DATABASE_PORT, DATABASE_SCHEMA, DATABASE_SSL, DATABASE_TIMEOUT, DATABASE_URL, DATABASE_USERNAME, DATADOG_API_KEY, DEBUG, DOCKER_REGISTRY_PASSWORD, DOCKER_REGISTRY_URL, DOCKER_REGISTRY_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_URL, ELASTICSEARCH_USERNAME, HOST, JAEGER_ENDPOINT, JWT_ACCESS_TOKEN_EXPIRES_IN, JWT_REFRESH_TOKEN_EXPIRES_IN, JWT_SECRET, KAFKA_BROKERS, KAFKA_CLIENT_ID, LOG_LEVEL, NEW_RELIC_LICENSE_KEY, NODE_ENV, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, OAUTH_SCOPE, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_ORGANIZATION_ID, OPENAI_PROJECT_ID, OPENAI_TIMEOUT, PORT, PROMETHEUS_PORT, RABBITMQ_URL, REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REDIS_TLS, REDIS_TLS_CA_CERT_PATH, REDIS_URL, REDIS_USERNAME, SENTRY_DSN, apiBaseUrl, apiKey, apiTimeout, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, corsOrigin, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, debug, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, host, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, logLevel, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn };
|
|
168
|
-
}
|
|
169
189
|
//#endregion
|
|
170
|
-
export {
|
|
190
|
+
export { KAFKA_BROKERS as $, DATABASE_URL as $t, openaiTimeout as A, AWS_SECRET_ACCESS_KEY as An, gelSecretKey as At, nodeEnv as B, apiBaseUrl as Bn, DOCKER_REGISTRY_URL as Bt, OPENAI_PROJECT_ID as C, azureServiceBusConnectionString as Cn, gelClientTlsSecurity as Ct, openaiModel as D, AWS_ACCESS_KEY_ID as Dn, gelInstance as Dt, openaiBaseUrl as E, azureStorageConnectionString as En, gelHost as Et, oauthClientId as F, awsSecretAccessKey as Fn, ELASTICSEARCH_USERNAME as Ft, SENTRY_DSN as G, DATABASE_HOST as Gt, JAEGER_ENDPOINT as H, apiTimeout as Hn, dockerRegistryPassword as Ht, oauthClientSecret as I, awsSqsQueueUrl as In, elasticsearchPassword as It, newRelicLicenseKey as J, DATABASE_POOL_SIZE as Jt, datadogApiKey as K, DATABASE_NAME as Kt, oauthRedirectUri as L, API_BASE_URL as Ln, elasticsearchUrl as Lt, OAUTH_CLIENT_SECRET as M, awsAccessKeyId as Mn, gelUser as Mt, OAUTH_REDIRECT_URI as N, awsRegion as Nn, ELASTICSEARCH_PASSWORD as Nt, openaiOrganizationId as O, AWS_REGION as On, gelPassword as Ot, OAUTH_SCOPE as P, awsS3BucketName as Pn, ELASTICSEARCH_URL as Pt, logLevel as Q, DATABASE_TIMEOUT as Qt, oauthScope as R, API_KEY as Rn, elasticsearchUsername as Rt, OPENAI_ORGANIZATION_ID as S, azureEventHubConnectionString as Sn, gelBranch as St, openaiApiKey as T, azureStorageAccountName as Tn, gelDsn as Tt, NEW_RELIC_LICENSE_KEY as U, dockerRegistryUrl as Ut, DATADOG_API_KEY as V, apiKey as Vn, DOCKER_REGISTRY_USERNAME as Vt, PROMETHEUS_PORT as W, dockerRegistryUsername as Wt, sentryDsn as X, DATABASE_SCHEMA as Xt, prometheusPort as Y, DATABASE_PORT as Yt, LOG_LEVEL as Z, DATABASE_SSL as Zt, RABBITMQ_URL as _, AZURE_EVENT_HUB_CONNECTION_STRING as _n, GEL_PASSWORD as _t, REDIS_TLS as a, databasePort as an, JWT_SECRET as at, OPENAI_BASE_URL as b, AZURE_STORAGE_ACCOUNT_NAME as bn, GEL_TLS_CA_FILE as bt, REDIS_USERNAME as c, databaseTimeout as cn, jwtSecret as ct, redisPassword as d, CORS_ORIGIN as dn, GEL_BRANCH as dt, DATABASE_USERNAME as en, KAFKA_CLIENT_ID as et, redisPort as f, corsOrigin as fn, GEL_CLIENT_TLS_SECURITY as ft, redisUsername as g, port as gn, GEL_INSTANCE as gt, redisUrl as h, debug as hn, GEL_HOST as ht, REDIS_PORT as i, databasePoolSize as in, JWT_REFRESH_TOKEN_EXPIRES_IN as it, OAUTH_CLIENT_ID as j, AWS_SQS_QUEUE_URL as jn, gelTlsCaFile as jt, openaiProjectId as k, AWS_S3_BUCKET_NAME as kn, gelPort as kt, redisDb as l, databaseUrl as ln, HOST as lt, redisTlsCaCertPath as m, PORT as mn, GEL_DSN as mt, REDIS_HOST as n, databaseName as nn, kafkaClientId as nt, REDIS_TLS_CA_CERT_PATH as o, databaseSchema as on, jwtAccessTokenExpiresIn as ot, redisTls as p, DEBUG as pn, GEL_CREDENTIALS_FILE as pt, jaegerEndpoint as q, DATABASE_PASSWORD as qt, REDIS_PASSWORD as r, databasePassword as rn, JWT_ACCESS_TOKEN_EXPIRES_IN as rt, REDIS_URL as s, databaseSsl as sn, jwtRefreshTokenExpiresIn as st, REDIS_DB as t, databaseHost as tn, kafkaBrokers as tt, redisHost as u, databaseUsername as un, host as ut, rabbitmqUrl as v, AZURE_SERVICE_BUS_CONNECTION_STRING as vn, GEL_PORT as vt, OPENAI_TIMEOUT as w, azureStorageAccountKey as wn, gelCredentialsFile as wt, OPENAI_MODEL as x, AZURE_STORAGE_CONNECTION_STRING as xn, GEL_USER as xt, OPENAI_API_KEY as y, AZURE_STORAGE_ACCOUNT_KEY as yn, GEL_SECRET_KEY as yt, NODE_ENV as z, API_TIMEOUT as zn, DOCKER_REGISTRY_PASSWORD as zt };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { a as EnumEnvVarSchema, c as BooleanEnvVarSchemaInput, i as NumberEnvVarSchemaInput, n as StringEnvVarSchemaInput, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-
|
|
2
|
-
|
|
1
|
+
import { a as EnumEnvVarSchema, c as BooleanEnvVarSchemaInput, i as NumberEnvVarSchemaInput, n as StringEnvVarSchemaInput, o as EnumEnvVarSchemaInput, r as NumberEnvVarSchema, s as BooleanEnvVarSchema, t as StringEnvVarSchema } from "./StringEnvVarSchema-D9Jr1Aws.js";
|
|
3
2
|
//#region ../schemas/src/plain/api.d.ts
|
|
4
3
|
declare const apiKey: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
5
4
|
declare const apiBaseUrl: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
@@ -80,6 +79,30 @@ declare const ELASTICSEARCH_URL: StringEnvVarSchema;
|
|
|
80
79
|
declare const ELASTICSEARCH_USERNAME: StringEnvVarSchema;
|
|
81
80
|
declare const ELASTICSEARCH_PASSWORD: StringEnvVarSchema;
|
|
82
81
|
//#endregion
|
|
82
|
+
//#region ../schemas/src/plain/gel.d.ts
|
|
83
|
+
declare const gelDsn: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
84
|
+
declare const gelInstance: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
85
|
+
declare const gelSecretKey: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
86
|
+
declare const gelHost: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
87
|
+
declare const gelPort: (input?: Partial<NumberEnvVarSchemaInput>) => NumberEnvVarSchema;
|
|
88
|
+
declare const gelUser: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
89
|
+
declare const gelPassword: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
90
|
+
declare const gelBranch: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
91
|
+
declare const gelTlsCaFile: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
92
|
+
declare const gelClientTlsSecurity: (input?: Partial<EnumEnvVarSchemaInput<"strict" | "no_host_verification" | "insecure">>) => EnumEnvVarSchema<string>;
|
|
93
|
+
declare const gelCredentialsFile: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
94
|
+
declare const GEL_DSN: StringEnvVarSchema;
|
|
95
|
+
declare const GEL_INSTANCE: StringEnvVarSchema;
|
|
96
|
+
declare const GEL_SECRET_KEY: StringEnvVarSchema;
|
|
97
|
+
declare const GEL_HOST: StringEnvVarSchema;
|
|
98
|
+
declare const GEL_PORT: NumberEnvVarSchema;
|
|
99
|
+
declare const GEL_USER: StringEnvVarSchema;
|
|
100
|
+
declare const GEL_PASSWORD: StringEnvVarSchema;
|
|
101
|
+
declare const GEL_BRANCH: StringEnvVarSchema;
|
|
102
|
+
declare const GEL_TLS_CA_FILE: StringEnvVarSchema;
|
|
103
|
+
declare const GEL_CLIENT_TLS_SECURITY: EnumEnvVarSchema<string>;
|
|
104
|
+
declare const GEL_CREDENTIALS_FILE: StringEnvVarSchema;
|
|
105
|
+
//#endregion
|
|
83
106
|
//#region ../schemas/src/plain/host.d.ts
|
|
84
107
|
declare const host: (input?: Partial<StringEnvVarSchemaInput>) => StringEnvVarSchema;
|
|
85
108
|
declare const HOST: StringEnvVarSchema;
|
|
@@ -163,8 +186,5 @@ declare const REDIS_USERNAME: StringEnvVarSchema;
|
|
|
163
186
|
declare const REDIS_DB: NumberEnvVarSchema;
|
|
164
187
|
declare const REDIS_TLS: BooleanEnvVarSchema;
|
|
165
188
|
declare const REDIS_TLS_CA_CERT_PATH: StringEnvVarSchema;
|
|
166
|
-
declare namespace index_d_exports {
|
|
167
|
-
export { API_BASE_URL, API_KEY, API_TIMEOUT, AWS_ACCESS_KEY_ID, AWS_REGION, AWS_S3_BUCKET_NAME, AWS_SECRET_ACCESS_KEY, AWS_SQS_QUEUE_URL, AZURE_EVENT_HUB_CONNECTION_STRING, AZURE_SERVICE_BUS_CONNECTION_STRING, AZURE_STORAGE_ACCOUNT_KEY, AZURE_STORAGE_ACCOUNT_NAME, AZURE_STORAGE_CONNECTION_STRING, CORS_ORIGIN, DATABASE_HOST, DATABASE_NAME, DATABASE_PASSWORD, DATABASE_POOL_SIZE, DATABASE_PORT, DATABASE_SCHEMA, DATABASE_SSL, DATABASE_TIMEOUT, DATABASE_URL, DATABASE_USERNAME, DATADOG_API_KEY, DEBUG, DOCKER_REGISTRY_PASSWORD, DOCKER_REGISTRY_URL, DOCKER_REGISTRY_USERNAME, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_URL, ELASTICSEARCH_USERNAME, HOST, JAEGER_ENDPOINT, JWT_ACCESS_TOKEN_EXPIRES_IN, JWT_REFRESH_TOKEN_EXPIRES_IN, JWT_SECRET, KAFKA_BROKERS, KAFKA_CLIENT_ID, LOG_LEVEL, NEW_RELIC_LICENSE_KEY, NODE_ENV, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, OAUTH_REDIRECT_URI, OAUTH_SCOPE, OPENAI_API_KEY, OPENAI_BASE_URL, OPENAI_MODEL, OPENAI_ORGANIZATION_ID, OPENAI_PROJECT_ID, OPENAI_TIMEOUT, PORT, PROMETHEUS_PORT, RABBITMQ_URL, REDIS_DB, REDIS_HOST, REDIS_PASSWORD, REDIS_PORT, REDIS_TLS, REDIS_TLS_CA_CERT_PATH, REDIS_URL, REDIS_USERNAME, SENTRY_DSN, apiBaseUrl, apiKey, apiTimeout, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, corsOrigin, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, debug, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, host, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, logLevel, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn };
|
|
168
|
-
}
|
|
169
189
|
//#endregion
|
|
170
|
-
export {
|
|
190
|
+
export { KAFKA_BROKERS as $, DATABASE_URL as $t, openaiTimeout as A, AWS_SECRET_ACCESS_KEY as An, gelSecretKey as At, nodeEnv as B, apiBaseUrl as Bn, DOCKER_REGISTRY_URL as Bt, OPENAI_PROJECT_ID as C, azureServiceBusConnectionString as Cn, gelClientTlsSecurity as Ct, openaiModel as D, AWS_ACCESS_KEY_ID as Dn, gelInstance as Dt, openaiBaseUrl as E, azureStorageConnectionString as En, gelHost as Et, oauthClientId as F, awsSecretAccessKey as Fn, ELASTICSEARCH_USERNAME as Ft, SENTRY_DSN as G, DATABASE_HOST as Gt, JAEGER_ENDPOINT as H, apiTimeout as Hn, dockerRegistryPassword as Ht, oauthClientSecret as I, awsSqsQueueUrl as In, elasticsearchPassword as It, newRelicLicenseKey as J, DATABASE_POOL_SIZE as Jt, datadogApiKey as K, DATABASE_NAME as Kt, oauthRedirectUri as L, API_BASE_URL as Ln, elasticsearchUrl as Lt, OAUTH_CLIENT_SECRET as M, awsAccessKeyId as Mn, gelUser as Mt, OAUTH_REDIRECT_URI as N, awsRegion as Nn, ELASTICSEARCH_PASSWORD as Nt, openaiOrganizationId as O, AWS_REGION as On, gelPassword as Ot, OAUTH_SCOPE as P, awsS3BucketName as Pn, ELASTICSEARCH_URL as Pt, logLevel as Q, DATABASE_TIMEOUT as Qt, oauthScope as R, API_KEY as Rn, elasticsearchUsername as Rt, OPENAI_ORGANIZATION_ID as S, azureEventHubConnectionString as Sn, gelBranch as St, openaiApiKey as T, azureStorageAccountName as Tn, gelDsn as Tt, NEW_RELIC_LICENSE_KEY as U, dockerRegistryUrl as Ut, DATADOG_API_KEY as V, apiKey as Vn, DOCKER_REGISTRY_USERNAME as Vt, PROMETHEUS_PORT as W, dockerRegistryUsername as Wt, sentryDsn as X, DATABASE_SCHEMA as Xt, prometheusPort as Y, DATABASE_PORT as Yt, LOG_LEVEL as Z, DATABASE_SSL as Zt, RABBITMQ_URL as _, AZURE_EVENT_HUB_CONNECTION_STRING as _n, GEL_PASSWORD as _t, REDIS_TLS as a, databasePort as an, JWT_SECRET as at, OPENAI_BASE_URL as b, AZURE_STORAGE_ACCOUNT_NAME as bn, GEL_TLS_CA_FILE as bt, REDIS_USERNAME as c, databaseTimeout as cn, jwtSecret as ct, redisPassword as d, CORS_ORIGIN as dn, GEL_BRANCH as dt, DATABASE_USERNAME as en, KAFKA_CLIENT_ID as et, redisPort as f, corsOrigin as fn, GEL_CLIENT_TLS_SECURITY as ft, redisUsername as g, port as gn, GEL_INSTANCE as gt, redisUrl as h, debug as hn, GEL_HOST as ht, REDIS_PORT as i, databasePoolSize as in, JWT_REFRESH_TOKEN_EXPIRES_IN as it, OAUTH_CLIENT_ID as j, AWS_SQS_QUEUE_URL as jn, gelTlsCaFile as jt, openaiProjectId as k, AWS_S3_BUCKET_NAME as kn, gelPort as kt, redisDb as l, databaseUrl as ln, HOST as lt, redisTlsCaCertPath as m, PORT as mn, GEL_DSN as mt, REDIS_HOST as n, databaseName as nn, kafkaClientId as nt, REDIS_TLS_CA_CERT_PATH as o, databaseSchema as on, jwtAccessTokenExpiresIn as ot, redisTls as p, DEBUG as pn, GEL_CREDENTIALS_FILE as pt, jaegerEndpoint as q, DATABASE_PASSWORD as qt, REDIS_PASSWORD as r, databasePassword as rn, JWT_ACCESS_TOKEN_EXPIRES_IN as rt, REDIS_URL as s, databaseSsl as sn, jwtRefreshTokenExpiresIn as st, REDIS_DB as t, databaseHost as tn, kafkaBrokers as tt, redisHost as u, databaseUsername as un, host as ut, rabbitmqUrl as v, AZURE_SERVICE_BUS_CONNECTION_STRING as vn, GEL_PORT as vt, OPENAI_TIMEOUT as w, azureStorageAccountKey as wn, gelCredentialsFile as wt, OPENAI_MODEL as x, AZURE_STORAGE_CONNECTION_STRING as xn, GEL_USER as xt, OPENAI_API_KEY as y, AZURE_STORAGE_ACCOUNT_KEY as yn, GEL_SECRET_KEY as yt, NODE_ENV as z, API_TIMEOUT as zn, DOCKER_REGISTRY_PASSWORD as zt };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as EnvSource } from "./EnvSource-
|
|
1
|
+
import { t as EnvSource } from "./EnvSource-WAGWqRVM.js";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
|
-
import { readFile } from "node:fs/promises";
|
|
4
3
|
import { existsSync, writeFileSync } from "fs";
|
|
5
|
-
|
|
4
|
+
import { readFile } from "node:fs/promises";
|
|
6
5
|
//#region ../channels/src/channels/default/DefaultEnvChannel.ts
|
|
7
6
|
/**
|
|
8
7
|
* Default implementation of EnvChannel that works with .env files using envrw
|
|
@@ -32,61 +31,6 @@ var DefaultEnvChannel = class {
|
|
|
32
31
|
await this.envSource.write(values);
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region ../channels/src/channels/dotenv/DotEnvChannel.ts
|
|
38
|
-
function isFileNotFound(error) {
|
|
39
|
-
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
40
|
-
}
|
|
41
|
-
function normalizeParsed(parsed) {
|
|
42
|
-
if (!parsed) return {};
|
|
43
|
-
const result = {};
|
|
44
|
-
for (const [key, value] of Object.entries(parsed)) {
|
|
45
|
-
if (typeof value === "undefined") continue;
|
|
46
|
-
result[key] = value;
|
|
47
|
-
}
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
var DotEnvChannel = class {
|
|
51
|
-
dotenv;
|
|
52
|
-
targetPath;
|
|
53
|
-
absolutePath;
|
|
54
|
-
encoding;
|
|
55
|
-
parseOptions;
|
|
56
|
-
envSource;
|
|
57
|
-
constructor(dotenv, defaultPath = ".env", getOptions = {}, parseOptions = {}) {
|
|
58
|
-
this.dotenv = dotenv;
|
|
59
|
-
this.targetPath = (typeof getOptions.path === "string" ? getOptions.path : void 0) ?? defaultPath;
|
|
60
|
-
this.absolutePath = resolve(process.cwd(), this.targetPath);
|
|
61
|
-
this.encoding = getOptions.encoding ?? "utf8";
|
|
62
|
-
this.parseOptions = { ...parseOptions };
|
|
63
|
-
this.envSource = new EnvSource(this.targetPath);
|
|
64
|
-
}
|
|
65
|
-
async get() {
|
|
66
|
-
try {
|
|
67
|
-
const content = await readFile(this.absolutePath, { encoding: this.encoding });
|
|
68
|
-
return normalizeParsed(this.dotenv.parse(content, this.parseOptions));
|
|
69
|
-
} catch (error) {
|
|
70
|
-
if (isFileNotFound(error)) return {};
|
|
71
|
-
throw error;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
async set(values) {
|
|
75
|
-
await this.envSource.write(values);
|
|
76
|
-
const parsed = await this.get();
|
|
77
|
-
const mismatches = [];
|
|
78
|
-
for (const [key, expected] of Object.entries(values)) {
|
|
79
|
-
const actual = parsed[key];
|
|
80
|
-
if (actual !== expected) mismatches.push(`${key}=expected(${JSON.stringify(expected)}) actual(${JSON.stringify(actual)})`);
|
|
81
|
-
}
|
|
82
|
-
if (mismatches.length > 0) throw new Error(`Failed to correctly write values to ${this.targetPath}: ${mismatches.join(", ")}`);
|
|
83
|
-
}
|
|
84
|
-
getPrimaryPath() {
|
|
85
|
-
return this.targetPath;
|
|
86
|
-
}
|
|
87
|
-
clearCache() {}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
34
|
//#endregion
|
|
91
35
|
//#region ../channels/src/channels/dotenvx/DotEnvXChannel.ts
|
|
92
36
|
/**
|
|
@@ -140,7 +84,7 @@ var DotEnvXChannel = class {
|
|
|
140
84
|
path: this.defaultPath,
|
|
141
85
|
...this.setOptions
|
|
142
86
|
};
|
|
143
|
-
for (const [key, value] of Object.entries(values)) this.dotenvx.set(key, value, options);
|
|
87
|
+
for (const [key, value] of Object.entries(values)) await this.dotenvx.set(key, value, options);
|
|
144
88
|
} catch (error) {
|
|
145
89
|
throw new Error(`Failed to set environment variables: ${error}`);
|
|
146
90
|
}
|
|
@@ -157,7 +101,6 @@ var DotEnvXChannel = class {
|
|
|
157
101
|
*/
|
|
158
102
|
clearCache() {}
|
|
159
103
|
};
|
|
160
|
-
|
|
161
104
|
//#endregion
|
|
162
105
|
//#region ../channels/src/channels/processenv/ProcessEnvChannel.ts
|
|
163
106
|
/**
|
|
@@ -183,7 +126,61 @@ var ProcessEnvChannel = class {
|
|
|
183
126
|
for (const [key, value] of Object.entries(values)) process.env[key] = value;
|
|
184
127
|
}
|
|
185
128
|
};
|
|
186
|
-
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region ../channels/src/channels/dotenv/DotEnvChannel.ts
|
|
131
|
+
function isFileNotFound(error) {
|
|
132
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
133
|
+
}
|
|
134
|
+
function normalizeParsed(parsed) {
|
|
135
|
+
if (!parsed) return {};
|
|
136
|
+
const result = {};
|
|
137
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
138
|
+
if (typeof value === "undefined") continue;
|
|
139
|
+
result[key] = value;
|
|
140
|
+
}
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
143
|
+
var DotEnvChannel = class {
|
|
144
|
+
dotenv;
|
|
145
|
+
targetPath;
|
|
146
|
+
absolutePath;
|
|
147
|
+
encoding;
|
|
148
|
+
parseOptions;
|
|
149
|
+
envSource;
|
|
150
|
+
constructor(dotenv, defaultPath = ".env", getOptions = {}, parseOptions = {}) {
|
|
151
|
+
this.dotenv = dotenv;
|
|
152
|
+
const pathFromOptions = typeof getOptions.path === "string" ? getOptions.path : void 0;
|
|
153
|
+
this.targetPath = pathFromOptions ?? defaultPath;
|
|
154
|
+
this.absolutePath = resolve(process.cwd(), this.targetPath);
|
|
155
|
+
const encodingOption = getOptions.encoding;
|
|
156
|
+
this.encoding = encodingOption ?? "utf8";
|
|
157
|
+
this.parseOptions = { ...parseOptions };
|
|
158
|
+
this.envSource = new EnvSource(this.targetPath);
|
|
159
|
+
}
|
|
160
|
+
async get() {
|
|
161
|
+
try {
|
|
162
|
+
const content = await readFile(this.absolutePath, { encoding: this.encoding });
|
|
163
|
+
return normalizeParsed(this.dotenv.parse(content, this.parseOptions));
|
|
164
|
+
} catch (error) {
|
|
165
|
+
if (isFileNotFound(error)) return {};
|
|
166
|
+
throw error;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
async set(values) {
|
|
170
|
+
await this.envSource.write(values);
|
|
171
|
+
const parsed = await this.get();
|
|
172
|
+
const mismatches = [];
|
|
173
|
+
for (const [key, expected] of Object.entries(values)) {
|
|
174
|
+
const actual = parsed[key];
|
|
175
|
+
if (actual !== expected) mismatches.push(`${key}=expected(${JSON.stringify(expected)}) actual(${JSON.stringify(actual)})`);
|
|
176
|
+
}
|
|
177
|
+
if (mismatches.length > 0) throw new Error(`Failed to correctly write values to ${this.targetPath}: ${mismatches.join(", ")}`);
|
|
178
|
+
}
|
|
179
|
+
getPrimaryPath() {
|
|
180
|
+
return this.targetPath;
|
|
181
|
+
}
|
|
182
|
+
clearCache() {}
|
|
183
|
+
};
|
|
187
184
|
//#endregion
|
|
188
185
|
//#region ../channels/src/resolveChannel.ts
|
|
189
186
|
/**
|
|
@@ -219,6 +216,5 @@ function resolveChannel(options, defaultPath = ".env") {
|
|
|
219
216
|
}
|
|
220
217
|
throw new Error(`Invalid channel options: ${options}`);
|
|
221
218
|
}
|
|
222
|
-
|
|
223
219
|
//#endregion
|
|
224
|
-
export { DefaultEnvChannel as a,
|
|
220
|
+
export { DefaultEnvChannel as a, DotEnvXChannel as i, DotEnvChannel as n, ProcessEnvChannel as r, resolveChannel as t };
|