@e-n-v/env 0.0.4 → 0.0.7

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 (72) hide show
  1. package/dist/{BooleanMap-DmFnCA-O.d.ts → BooleanMap-B7MeMkJC.d.ts} +1 -1
  2. package/dist/{BooleanMap-B2eIP3tZ.d.cts → BooleanMap-D93UJnv5.d.cts} +1 -1
  3. package/dist/{EnvModel-D8rt0EJ6.d.ts → EnvModel-BiT0OiDZ.d.ts} +2 -2
  4. package/dist/{EnvModel-CrGclUpJ.d.cts → EnvModel-I0fWZZ_n.d.cts} +2 -2
  5. package/dist/{StringEnvVarSchema-B8MT7htU.d.ts → StringEnvVarSchema-BwSGgmeG.d.ts} +5 -3
  6. package/dist/{StringEnvVarSchema-BF6C0nyT.d.cts → StringEnvVarSchema-DnsZTIS0.d.cts} +5 -3
  7. package/dist/cli.cjs +3 -3
  8. package/dist/cli.js +3 -3
  9. package/dist/core.cjs +1 -1
  10. package/dist/core.d.cts +4 -4
  11. package/dist/core.d.ts +4 -4
  12. package/dist/core.js +1 -1
  13. package/dist/{index-D8pslhp4.d.cts → index-ClKndmJv.d.ts} +27 -3
  14. package/dist/{index-Dq_0aeAL.d.ts → index-UQm0jdkG.d.cts} +27 -3
  15. package/dist/{root.cjs → index.cjs} +10 -10
  16. package/dist/index.d.cts +21 -0
  17. package/dist/index.d.ts +21 -0
  18. package/dist/index.js +21 -0
  19. package/dist/{model-Dic8IJsf.d.ts → model-BNDYMM9l.d.ts} +1 -1
  20. package/dist/{model-ft0WhSSS.d.cts → model-CJMnbGuS.d.cts} +1 -1
  21. package/dist/model.cjs +2 -2
  22. package/dist/model.d.cts +4 -4
  23. package/dist/model.d.ts +4 -4
  24. package/dist/model.js +2 -2
  25. package/dist/{parse-BT1QSa5e.d.cts → parse-5fpTbjTr.d.cts} +1 -1
  26. package/dist/{parse-DwtLpVhC.d.ts → parse-awxwtQ1N.d.ts} +1 -1
  27. package/dist/parse.cjs +3 -3
  28. package/dist/parse.d.cts +6 -6
  29. package/dist/parse.d.ts +6 -6
  30. package/dist/parse.js +3 -3
  31. package/dist/{prompt-yKdccbtZ.d.ts → prompt-DG8haZjn.d.ts} +1 -1
  32. package/dist/{prompt-C5WudV9x.d.cts → prompt-lmZdPaBh.d.cts} +1 -1
  33. package/dist/prompt.cjs +3 -3
  34. package/dist/prompt.d.cts +4 -4
  35. package/dist/prompt.d.ts +4 -4
  36. package/dist/prompt.js +3 -3
  37. package/dist/{redis-EcC7TX3K.cjs → redis-Cazgs3_J.cjs} +96 -20
  38. package/dist/{redis-CJOpRPjc.js → redis-DXhlNtvD.js} +67 -21
  39. package/dist/{schema-jN4EtvEP.d.ts → schema-CHypJTDK.d.ts} +1 -1
  40. package/dist/{schema-DH4GiW9A.d.cts → schema-DdDa3Qjy.d.cts} +1 -1
  41. package/dist/schemas/zod.cjs +118 -67
  42. package/dist/schemas/zod.d.cts +112 -80
  43. package/dist/schemas/zod.d.ts +112 -80
  44. package/dist/schemas/zod.js +55 -26
  45. package/dist/schemas.cjs +25 -3
  46. package/dist/schemas.d.cts +3 -3
  47. package/dist/schemas.d.ts +3 -3
  48. package/dist/schemas.js +4 -4
  49. package/dist/{src-CLTURaoo.js → src-B5Qu-M-r.js} +10 -2
  50. package/dist/{src-BBwjK5SK.js → src-BrNrE0hX.js} +3 -4
  51. package/dist/{src-Cjo2XA4n.cjs → src-CdqOYilA.cjs} +3 -4
  52. package/dist/{src-Dtv7TlJx.js → src-DI-VW4dW.js} +29 -10
  53. package/dist/{src-CVdUqK3q.js → src-DQaQ28lz.js} +4 -1
  54. package/dist/{src-DZmpNGrQ.cjs → src-DVdOONrX.cjs} +326 -84
  55. package/dist/{src-meUnCASg.cjs → src-DywfI0fM.cjs} +10 -2
  56. package/dist/{src-XjL5cyPG.cjs → src-PHSSk-t3.cjs} +4 -1
  57. package/dist/{src-DWYoqPX1.cjs → src-dO72HN6e.cjs} +31 -10
  58. package/dist/{src-B7FG1rak.js → src-vBXlFkSP.js} +130 -20
  59. package/dist/{validate-CyxrRacF.d.ts → validate-8HbVniNt.d.cts} +3 -2
  60. package/dist/{validate-BxA3a-ns.d.cts → validate-CE8hQ5JG.d.ts} +3 -2
  61. package/dist/{vars-CYOaskkK.cjs → vars-BHXXBiY1.cjs} +1 -1
  62. package/dist/{vars-BNVI6k89.d.ts → vars-DF9DoAF4.d.ts} +2 -2
  63. package/dist/{vars-DOW0LiiN.js → vars-FOuH_HuL.js} +1 -1
  64. package/dist/{vars-CptZRPX5.d.cts → vars-KUgv2rti.d.cts} +2 -2
  65. package/dist/vars.cjs +27 -5
  66. package/dist/vars.d.cts +7 -7
  67. package/dist/vars.d.ts +7 -7
  68. package/dist/vars.js +6 -6
  69. package/package.json +8 -7
  70. package/dist/root.d.cts +0 -21
  71. package/dist/root.d.ts +0 -21
  72. package/dist/root.js +0 -21
package/dist/prompt.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as DotEnvXChannelConfig, i as DefaultChannelConfig, n as ProcessChannelConfig, r as ProcessEnvChannelConfig, t as EnvChannelOptions } from "./EnvChannelOptions-CRwDLWjd.js";
2
- import "./StringEnvVarSchema-B8MT7htU.js";
3
- import "./BooleanMap-DmFnCA-O.js";
2
+ import "./StringEnvVarSchema-BwSGgmeG.js";
3
+ import "./BooleanMap-B7MeMkJC.js";
4
4
  import { t as EnvChannel } from "./EnvChannel-w27PEm7x.js";
5
5
  import { i as resolveChannel, n as DotEnvXChannel, r as DefaultEnvChannel, t as ProcessEnvChannel } from "./ProcessEnvChannel-Do4-yiLI.js";
6
- import "./EnvModel-D8rt0EJ6.js";
7
- import { n as PromptEnvOptions, t as prompt } from "./prompt-yKdccbtZ.js";
6
+ import "./EnvModel-BiT0OiDZ.js";
7
+ import { n as PromptEnvOptions, t as prompt } from "./prompt-DG8haZjn.js";
8
8
 
9
9
  //#region ../prompt/src/options/defaults.d.ts
10
10
  declare namespace defaults_d_exports {
package/dist/prompt.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./EnvSource-DA3ZGlES.js";
2
2
  import { a as DefaultEnvChannel, n as ProcessEnvChannel, r as DotEnvXChannel, t as resolveChannel } from "./resolveChannel-v9BDsw-M.js";
3
- import { n as defaults_exports, t as prompt } from "./src-Dtv7TlJx.js";
4
- import "./src-CLTURaoo.js";
3
+ import { n as defaults_exports, t as prompt } from "./src-DI-VW4dW.js";
4
+ import "./src-B5Qu-M-r.js";
5
5
  import "./coerce-DNIuYAx4.js";
6
- import "./src-CVdUqK3q.js";
6
+ import "./src-DQaQ28lz.js";
7
7
 
8
8
  //#region src/prompt.ts
9
9
  var prompt_default = prompt;
@@ -34,15 +34,15 @@ function toZodMessageArray(traits$6) {
34
34
  * @returns Object with the same keys but values converted to complete messages
35
35
  */
36
36
  function toZodMessages(traits$6) {
37
- const messages$6 = {};
38
- for (const [key, value] of Object.entries(traits$6)) if (Array.isArray(value)) messages$6[key] = toZodMessageArray(value);
39
- else messages$6[key] = toZodMessage(value);
40
- return messages$6;
37
+ const messages$7 = {};
38
+ for (const [key, value] of Object.entries(traits$6)) if (Array.isArray(value)) messages$7[key] = toZodMessageArray(value);
39
+ else messages$7[key] = toZodMessage(value);
40
+ return messages$7;
41
41
  }
42
42
 
43
43
  //#endregion
44
44
  //#region ../schemas/src/shared/apiService.ts
45
- const descriptions$5 = {
45
+ const descriptions$6 = {
46
46
  apiKey: "API key for external service",
47
47
  jwtSecret: "JWT secret key for token signing",
48
48
  jwtAccessTokenExpiresIn: "JWT access token expiration (e.g., '15m', '1h', '1d')",
@@ -88,7 +88,7 @@ const traits$5 = {
88
88
  portMin: ">= 1024 (avoid reserved ports)",
89
89
  portMax: "<= 65535"
90
90
  };
91
- const constraints$5 = {
91
+ const constraints$6 = {
92
92
  apiKeyMinLength: 8,
93
93
  jwtSecretMinLength: 32,
94
94
  encryptionKeyMinLength: 32,
@@ -104,7 +104,7 @@ const constraints$5 = {
104
104
  portMin: 1024,
105
105
  portMax: 65535
106
106
  };
107
- const defaults$4 = {
107
+ const defaults$5 = {
108
108
  jwtAccessTokenExpiresIn: "15m",
109
109
  jwtRefreshTokenExpiresIn: "7d",
110
110
  rateLimitRpm: 60,
@@ -131,16 +131,16 @@ const enumOptions = {
131
131
  "staging"
132
132
  ]
133
133
  };
134
- const patterns$4 = {
134
+ const patterns$5 = {
135
135
  jwtTokenDuration: /^\d+[smhd]$/,
136
136
  httpProtocol: /^https?:\/\//,
137
137
  httpsProtocol: /^https:\/\//
138
138
  };
139
- const messages$5 = toZodMessages(traits$5);
139
+ const messages$6 = toZodMessages(traits$5);
140
140
 
141
141
  //#endregion
142
142
  //#region ../schemas/src/shared/infrastructure.ts
143
- const descriptions$4 = {
143
+ const descriptions$5 = {
144
144
  azureStorageConnectionString: "Azure Storage Account connection string",
145
145
  azureStorageAccountName: "Azure Storage Account name",
146
146
  azureStorageAccountKey: "Azure Storage Account key",
@@ -197,11 +197,11 @@ const traits$4 = {
197
197
  datadogApiKeyLength: "exactly 32 characters",
198
198
  sentryDsnFormat: "a valid Sentry DSN format"
199
199
  };
200
- const defaults$3 = {
200
+ const defaults$4 = {
201
201
  kubernetesNamespace: "default",
202
202
  prometheusPort: 9090
203
203
  };
204
- const constraints$4 = {
204
+ const constraints$5 = {
205
205
  awsAccessKeyIdMin: 16,
206
206
  awsAccessKeyIdMax: 128,
207
207
  prometheusPortMin: 1024,
@@ -209,7 +209,7 @@ const constraints$4 = {
209
209
  newRelicLicenseKeyLength: 40,
210
210
  datadogApiKeyLength: 32
211
211
  };
212
- const patterns$3 = {
212
+ const patterns$4 = {
213
213
  awsRegion: /^[a-z]{2}-[a-z]+-\d{1}$/,
214
214
  awsS3BucketName: /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/,
215
215
  awsSqsQueueUrl: /^https:\/\/sqs\.[^.]+\.amazonaws\.com\/\d+\/[^/]+$/,
@@ -222,11 +222,11 @@ const patterns$3 = {
222
222
  kubernetesName: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/,
223
223
  sentryDsn: /^https:\/\/[a-f0-9]+@[a-f0-9]+\.ingest\.sentry\.io\/\d+$/
224
224
  };
225
- const messages$4 = toZodMessages(traits$4);
225
+ const messages$5 = toZodMessages(traits$4);
226
226
 
227
227
  //#endregion
228
228
  //#region ../schemas/src/shared/database.ts
229
- const descriptions$3 = {
229
+ const descriptions$4 = {
230
230
  databaseUrl: "Database connection string",
231
231
  databaseUrlPostgresql: "PostgreSQL database connection string",
232
232
  databaseUrlMysql: "MySQL database connection string",
@@ -266,12 +266,12 @@ const traits$3 = {
266
266
  databaseTimeoutMin: "at least 1 second",
267
267
  databaseTimeoutMax: "not exceed 5 minutes"
268
268
  };
269
- const defaults$2 = {
269
+ const defaults$3 = {
270
270
  databasePoolSize: 10,
271
271
  databaseTimeout: 3e4,
272
272
  databaseSsl: true
273
273
  };
274
- const constraints$3 = {
274
+ const constraints$4 = {
275
275
  databasePortMin: 1,
276
276
  databasePortMax: 65535,
277
277
  databasePoolSizeMin: 1,
@@ -279,7 +279,7 @@ const constraints$3 = {
279
279
  databaseTimeoutMin: 1e3,
280
280
  databaseTimeoutMax: 3e5
281
281
  };
282
- const patterns$2 = {
282
+ const patterns$3 = {
283
283
  postgresUrl: /^postgresql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
284
284
  mysqlUrl: /^mysql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
285
285
  mongodbUrl: /^mongodb(?:\+srv)?:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/,]+(?::\d+)?(?:,[^:/,]+(?::\d+)?)*(?:\/[^?]*)?(?:\?.*)?$/,
@@ -292,7 +292,53 @@ const patterns$2 = {
292
292
  databaseName: /^[a-zA-Z0-9_-]+$/,
293
293
  databaseSchema: /^[a-zA-Z0-9_]+$/
294
294
  };
295
- const messages$3 = toZodMessages(traits$3);
295
+ const messages$4 = toZodMessages(traits$3);
296
+
297
+ //#endregion
298
+ //#region ../schemas/src/shared/gel.ts
299
+ const descriptions$3 = {
300
+ gelDsn: "Gel database connection string (DSN)",
301
+ gelInstance: "Gel Cloud instance name (format: org-name/instance-name)",
302
+ gelSecretKey: "Gel Cloud secret key for authentication",
303
+ gelHost: "Gel database host address",
304
+ gelPort: "Gel database port number",
305
+ gelUser: "Gel database username",
306
+ gelPassword: "Gel database password",
307
+ gelBranch: "Gel database branch name",
308
+ gelTlsCaFile: "Path to TLS CA certificate file",
309
+ gelClientTlsSecurity: "Gel client TLS security mode",
310
+ gelCredentialsFile: "Path to Gel credentials JSON file"
311
+ };
312
+ const messages$3 = {
313
+ gelDsnFormat: "Must be a valid Gel DSN (gel://...)",
314
+ gelInstanceFormat: "Must be in format org-name/instance-name",
315
+ gelSecretKeyRequired: "Gel secret key is required",
316
+ gelHostRequired: "Gel host is required",
317
+ gelPortInt: "Port must be an integer",
318
+ gelPortMin: "Port must be greater than 0",
319
+ gelPortMax: "Port must be less than 65536",
320
+ gelUserRequired: "Gel username is required",
321
+ gelPasswordRequired: "Gel password is required",
322
+ gelBranchFormat: "Branch name must contain only letters, numbers, underscores, and hyphens",
323
+ gelTlsCaFileFormat: "Must be a valid file path",
324
+ gelClientTlsSecurityInvalid: "TLS security must be one of: strict, no_host_verification, insecure",
325
+ gelCredentialsFileFormat: "Must be a valid file path"
326
+ };
327
+ const defaults$2 = {
328
+ gelPort: 5656,
329
+ gelUser: "admin",
330
+ gelBranch: "main",
331
+ gelClientTlsSecurity: "strict"
332
+ };
333
+ const constraints$3 = {
334
+ gelPortMin: 1,
335
+ gelPortMax: 65535
336
+ };
337
+ const patterns$2 = {
338
+ gelDsn: /^gel:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
339
+ gelInstance: /^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/,
340
+ gelBranch: /^[a-zA-Z0-9_-]+$/
341
+ };
296
342
 
297
343
  //#endregion
298
344
  //#region ../schemas/src/shared/oauth.ts
@@ -344,7 +390,7 @@ const constraints$1 = {
344
390
  };
345
391
  const defaults$1 = { timeout: 30 };
346
392
  const patterns$1 = {
347
- apiKey: /^sk-[A-Za-z0-9]{20,}$/,
393
+ apiKey: /^sk-[A-Za-z0-9_]{20,}$/,
348
394
  organizationId: /^org-[A-Za-z0-9_-]{8,}$/,
349
395
  projectId: /^proj_[A-Za-z0-9_-]{8,}$/
350
396
  };
@@ -429,6 +475,12 @@ Object.defineProperty(exports, 'constraints$5', {
429
475
  return constraints$5;
430
476
  }
431
477
  });
478
+ Object.defineProperty(exports, 'constraints$6', {
479
+ enumerable: true,
480
+ get: function () {
481
+ return constraints$6;
482
+ }
483
+ });
432
484
  Object.defineProperty(exports, 'defaults', {
433
485
  enumerable: true,
434
486
  get: function () {
@@ -459,6 +511,12 @@ Object.defineProperty(exports, 'defaults$4', {
459
511
  return defaults$4;
460
512
  }
461
513
  });
514
+ Object.defineProperty(exports, 'defaults$5', {
515
+ enumerable: true,
516
+ get: function () {
517
+ return defaults$5;
518
+ }
519
+ });
462
520
  Object.defineProperty(exports, 'descriptions', {
463
521
  enumerable: true,
464
522
  get: function () {
@@ -495,6 +553,12 @@ Object.defineProperty(exports, 'descriptions$5', {
495
553
  return descriptions$5;
496
554
  }
497
555
  });
556
+ Object.defineProperty(exports, 'descriptions$6', {
557
+ enumerable: true,
558
+ get: function () {
559
+ return descriptions$6;
560
+ }
561
+ });
498
562
  Object.defineProperty(exports, 'enumOptions', {
499
563
  enumerable: true,
500
564
  get: function () {
@@ -537,6 +601,12 @@ Object.defineProperty(exports, 'messages$5', {
537
601
  return messages$5;
538
602
  }
539
603
  });
604
+ Object.defineProperty(exports, 'messages$6', {
605
+ enumerable: true,
606
+ get: function () {
607
+ return messages$6;
608
+ }
609
+ });
540
610
  Object.defineProperty(exports, 'patterns', {
541
611
  enumerable: true,
542
612
  get: function () {
@@ -567,6 +637,12 @@ Object.defineProperty(exports, 'patterns$4', {
567
637
  return patterns$4;
568
638
  }
569
639
  });
640
+ Object.defineProperty(exports, 'patterns$5', {
641
+ enumerable: true,
642
+ get: function () {
643
+ return patterns$5;
644
+ }
645
+ });
570
646
  Object.defineProperty(exports, 'toZodMessages', {
571
647
  enumerable: true,
572
648
  get: function () {
@@ -33,15 +33,15 @@ function toZodMessageArray(traits$6) {
33
33
  * @returns Object with the same keys but values converted to complete messages
34
34
  */
35
35
  function toZodMessages(traits$6) {
36
- const messages$6 = {};
37
- for (const [key, value] of Object.entries(traits$6)) if (Array.isArray(value)) messages$6[key] = toZodMessageArray(value);
38
- else messages$6[key] = toZodMessage(value);
39
- return messages$6;
36
+ const messages$7 = {};
37
+ for (const [key, value] of Object.entries(traits$6)) if (Array.isArray(value)) messages$7[key] = toZodMessageArray(value);
38
+ else messages$7[key] = toZodMessage(value);
39
+ return messages$7;
40
40
  }
41
41
 
42
42
  //#endregion
43
43
  //#region ../schemas/src/shared/apiService.ts
44
- const descriptions$5 = {
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$5 = {
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$4 = {
106
+ const defaults$5 = {
107
107
  jwtAccessTokenExpiresIn: "15m",
108
108
  jwtRefreshTokenExpiresIn: "7d",
109
109
  rateLimitRpm: 60,
@@ -130,16 +130,16 @@ const enumOptions = {
130
130
  "staging"
131
131
  ]
132
132
  };
133
- const patterns$4 = {
133
+ const patterns$5 = {
134
134
  jwtTokenDuration: /^\d+[smhd]$/,
135
135
  httpProtocol: /^https?:\/\//,
136
136
  httpsProtocol: /^https:\/\//
137
137
  };
138
- const messages$5 = toZodMessages(traits$5);
138
+ const messages$6 = toZodMessages(traits$5);
139
139
 
140
140
  //#endregion
141
141
  //#region ../schemas/src/shared/infrastructure.ts
142
- const descriptions$4 = {
142
+ const descriptions$5 = {
143
143
  azureStorageConnectionString: "Azure Storage Account connection string",
144
144
  azureStorageAccountName: "Azure Storage Account name",
145
145
  azureStorageAccountKey: "Azure Storage Account key",
@@ -196,11 +196,11 @@ const traits$4 = {
196
196
  datadogApiKeyLength: "exactly 32 characters",
197
197
  sentryDsnFormat: "a valid Sentry DSN format"
198
198
  };
199
- const defaults$3 = {
199
+ const defaults$4 = {
200
200
  kubernetesNamespace: "default",
201
201
  prometheusPort: 9090
202
202
  };
203
- const constraints$4 = {
203
+ const constraints$5 = {
204
204
  awsAccessKeyIdMin: 16,
205
205
  awsAccessKeyIdMax: 128,
206
206
  prometheusPortMin: 1024,
@@ -208,7 +208,7 @@ const constraints$4 = {
208
208
  newRelicLicenseKeyLength: 40,
209
209
  datadogApiKeyLength: 32
210
210
  };
211
- const patterns$3 = {
211
+ const patterns$4 = {
212
212
  awsRegion: /^[a-z]{2}-[a-z]+-\d{1}$/,
213
213
  awsS3BucketName: /^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/,
214
214
  awsSqsQueueUrl: /^https:\/\/sqs\.[^.]+\.amazonaws\.com\/\d+\/[^/]+$/,
@@ -221,11 +221,11 @@ const patterns$3 = {
221
221
  kubernetesName: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/,
222
222
  sentryDsn: /^https:\/\/[a-f0-9]+@[a-f0-9]+\.ingest\.sentry\.io\/\d+$/
223
223
  };
224
- const messages$4 = toZodMessages(traits$4);
224
+ const messages$5 = toZodMessages(traits$4);
225
225
 
226
226
  //#endregion
227
227
  //#region ../schemas/src/shared/database.ts
228
- const descriptions$3 = {
228
+ const descriptions$4 = {
229
229
  databaseUrl: "Database connection string",
230
230
  databaseUrlPostgresql: "PostgreSQL database connection string",
231
231
  databaseUrlMysql: "MySQL database connection string",
@@ -265,12 +265,12 @@ const traits$3 = {
265
265
  databaseTimeoutMin: "at least 1 second",
266
266
  databaseTimeoutMax: "not exceed 5 minutes"
267
267
  };
268
- const defaults$2 = {
268
+ const defaults$3 = {
269
269
  databasePoolSize: 10,
270
270
  databaseTimeout: 3e4,
271
271
  databaseSsl: true
272
272
  };
273
- const constraints$3 = {
273
+ const constraints$4 = {
274
274
  databasePortMin: 1,
275
275
  databasePortMax: 65535,
276
276
  databasePoolSizeMin: 1,
@@ -278,7 +278,7 @@ const constraints$3 = {
278
278
  databaseTimeoutMin: 1e3,
279
279
  databaseTimeoutMax: 3e5
280
280
  };
281
- const patterns$2 = {
281
+ const patterns$3 = {
282
282
  postgresUrl: /^postgresql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
283
283
  mysqlUrl: /^mysql:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
284
284
  mongodbUrl: /^mongodb(?:\+srv)?:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/,]+(?::\d+)?(?:,[^:/,]+(?::\d+)?)*(?:\/[^?]*)?(?:\?.*)?$/,
@@ -291,7 +291,53 @@ const patterns$2 = {
291
291
  databaseName: /^[a-zA-Z0-9_-]+$/,
292
292
  databaseSchema: /^[a-zA-Z0-9_]+$/
293
293
  };
294
- const messages$3 = toZodMessages(traits$3);
294
+ const messages$4 = toZodMessages(traits$3);
295
+
296
+ //#endregion
297
+ //#region ../schemas/src/shared/gel.ts
298
+ const descriptions$3 = {
299
+ gelDsn: "Gel database connection string (DSN)",
300
+ gelInstance: "Gel Cloud instance name (format: org-name/instance-name)",
301
+ gelSecretKey: "Gel Cloud secret key for authentication",
302
+ gelHost: "Gel database host address",
303
+ gelPort: "Gel database port number",
304
+ gelUser: "Gel database username",
305
+ gelPassword: "Gel database password",
306
+ gelBranch: "Gel database branch name",
307
+ gelTlsCaFile: "Path to TLS CA certificate file",
308
+ gelClientTlsSecurity: "Gel client TLS security mode",
309
+ gelCredentialsFile: "Path to Gel credentials JSON file"
310
+ };
311
+ const messages$3 = {
312
+ gelDsnFormat: "Must be a valid Gel DSN (gel://...)",
313
+ gelInstanceFormat: "Must be in format org-name/instance-name",
314
+ gelSecretKeyRequired: "Gel secret key is required",
315
+ gelHostRequired: "Gel host is required",
316
+ gelPortInt: "Port must be an integer",
317
+ gelPortMin: "Port must be greater than 0",
318
+ gelPortMax: "Port must be less than 65536",
319
+ gelUserRequired: "Gel username is required",
320
+ gelPasswordRequired: "Gel password is required",
321
+ gelBranchFormat: "Branch name must contain only letters, numbers, underscores, and hyphens",
322
+ gelTlsCaFileFormat: "Must be a valid file path",
323
+ gelClientTlsSecurityInvalid: "TLS security must be one of: strict, no_host_verification, insecure",
324
+ gelCredentialsFileFormat: "Must be a valid file path"
325
+ };
326
+ const defaults$2 = {
327
+ gelPort: 5656,
328
+ gelUser: "admin",
329
+ gelBranch: "main",
330
+ gelClientTlsSecurity: "strict"
331
+ };
332
+ const constraints$3 = {
333
+ gelPortMin: 1,
334
+ gelPortMax: 65535
335
+ };
336
+ const patterns$2 = {
337
+ gelDsn: /^gel:\/\/(?:[^:@/]+(?::[^@/]*)?@)?[^:/]+(?::\d+)?(?:\/[^?]*)?(?:\?.*)?$/,
338
+ gelInstance: /^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$/,
339
+ gelBranch: /^[a-zA-Z0-9_-]+$/
340
+ };
295
341
 
296
342
  //#endregion
297
343
  //#region ../schemas/src/shared/oauth.ts
@@ -343,7 +389,7 @@ const constraints$1 = {
343
389
  };
344
390
  const defaults$1 = { timeout: 30 };
345
391
  const patterns$1 = {
346
- apiKey: /^sk-[A-Za-z0-9]{20,}$/,
392
+ apiKey: /^sk-[A-Za-z0-9_]{20,}$/,
347
393
  organizationId: /^org-[A-Za-z0-9_-]{8,}$/,
348
394
  projectId: /^proj_[A-Za-z0-9_-]{8,}$/
349
395
  };
@@ -392,4 +438,4 @@ const patterns = {
392
438
  const messages = toZodMessages(traits);
393
439
 
394
440
  //#endregion
395
- export { defaults$4 as A, constraints$4 as C, patterns$3 as D, messages$4 as E, traits$5 as F, toZodMessages as I, enumOptions as M, messages$5 as N, traits$4 as O, patterns$4 as P, traits$3 as S, descriptions$4 as T, 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, descriptions$5 as j, constraints$5 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, defaults$3 as w, patterns$2 as x, descriptions$3 as y };
441
+ 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,4 +1,4 @@
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-B8MT7htU.js";
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-BwSGgmeG.js";
2
2
 
3
3
  //#region ../core/src/schemas/schema.d.ts
4
4
 
@@ -1,4 +1,4 @@
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-BF6C0nyT.cjs";
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-DnsZTIS0.cjs";
2
2
 
3
3
  //#region ../core/src/schemas/schema.d.ts
4
4