@e-n-v/env 0.0.7 → 0.0.9
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-B7MeMkJC.d.ts → BooleanMap-BPQuO3Ae.d.ts} +1 -3
- package/dist/{BooleanMap-D93UJnv5.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/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-awxwtQ1N.d.ts → index-B2eNij2x.d.cts} +1 -2
- package/dist/{parse-5fpTbjTr.d.cts → index-BHTM8nxS.d.ts} +1 -2
- package/dist/{prompt-DG8haZjn.d.ts → index-BKBW9Dxs.d.cts} +3 -4
- package/dist/{prompt-lmZdPaBh.d.cts → index-CEyOIRdj.d.ts} +3 -4
- package/dist/{EnvModel-BiT0OiDZ.d.ts → index-Cb0abjLf.d.ts} +59 -7
- package/dist/{EnvModel-I0fWZZ_n.d.cts → index-Cz3frUwZ.d.cts} +58 -6
- package/dist/index.cjs +27 -30
- package/dist/index.d.cts +11 -13
- package/dist/index.d.ts +11 -13
- package/dist/index.js +8 -14
- 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-Cazgs3_J.cjs → redis-CyTF0SYT.cjs} +260 -268
- package/dist/{redis-DXhlNtvD.js → redis-D18f4ztf.js} +15 -22
- package/dist/{index-UQm0jdkG.d.cts → redis-DsW-Vkwq.d.cts} +2 -6
- package/dist/{index-ClKndmJv.d.ts → redis-tRD4nAy_.d.ts} +2 -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-DdDa3Qjy.d.cts → schema-B-JLVS42.d.ts} +1 -3
- package/dist/{schema-CHypJTDK.d.ts → 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 +42 -340
- package/dist/schemas/zod.d.cts +112 -114
- package/dist/schemas/zod.d.ts +112 -114
- package/dist/schemas/zod.js +111 -401
- package/dist/schemas.cjs +152 -155
- package/dist/schemas.d.cts +1 -2
- package/dist/schemas.d.ts +1 -2
- package/dist/schemas.js +2 -6
- package/dist/{src-CdqOYilA.cjs → src-5GYFbR9n.cjs} +21 -24
- package/dist/{src-BrNrE0hX.js → src-8rEOvFG5.js} +11 -14
- package/dist/{src-DI-VW4dW.js → src-CdzAzdq-.js} +77 -110
- package/dist/{src-B5Qu-M-r.js → src-Cg49gGJb.js} +9 -43
- package/dist/{src-dO72HN6e.cjs → src-CttkcdpE.cjs} +90 -130
- package/dist/{src-PHSSk-t3.cjs → src-D5KzIEH_.cjs} +130 -110
- package/dist/{src-DVdOONrX.cjs → src-DB0Har0j.cjs} +911 -932
- package/dist/{src-DQaQ28lz.js → src-DWc-WWjX.js} +107 -89
- package/dist/{src-vBXlFkSP.js → src-DvUBRBe3.js} +115 -136
- package/dist/{src-DywfI0fM.cjs → src-TZx_e95f.cjs} +78 -131
- package/dist/{vars-DF9DoAF4.d.ts → vars-DtzGL5Nc.d.cts} +1 -4
- package/dist/{vars-KUgv2rti.d.cts → vars-obKYxaSu.d.ts} +1 -4
- package/dist/vars.cjs +175 -160
- package/dist/vars.d.cts +2 -6
- package/dist/vars.d.ts +2 -6
- package/dist/vars.js +21 -9
- package/package.json +3 -2
- 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-BNDYMM9l.d.ts +0 -29
- package/dist/model-CJMnbGuS.d.cts +0 -29
- package/dist/validate-8HbVniNt.d.cts +0 -204
- package/dist/validate-CE8hQ5JG.d.ts +0 -204
- package/dist/vars-BHXXBiY1.cjs +0 -27
- package/dist/vars-FOuH_HuL.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
- /package/dist/{StringEnvVarSchema-BwSGgmeG.d.ts → StringEnvVarSchema-D9Jr1Aws.d.cts} +0 -0
- /package/dist/{StringEnvVarSchema-DnsZTIS0.d.cts → StringEnvVarSchema-D9Jr1Aws.d.ts} +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
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-
|
|
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 ../core/src/schemas/schema.d.ts
|
|
4
|
-
|
|
5
3
|
declare const schema: {
|
|
6
4
|
string: (input?: StringEnvVarSchemaInput) => StringEnvVarSchema;
|
|
7
5
|
number: (input?: NumberEnvVarSchemaInput) => NumberEnvVarSchema;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { a as EnumEnvVarSchema, i as NumberEnvVarSchema, o as BooleanEnvVarSchema, r as StringEnvVarSchema } from "./src-Cg49gGJb.js";
|
|
2
|
+
//#region ../core/src/schemas/schema.ts
|
|
3
|
+
const schema = {
|
|
4
|
+
string: (input = {}) => new StringEnvVarSchema(input),
|
|
5
|
+
number: (input = {}) => new NumberEnvVarSchema(input),
|
|
6
|
+
boolean: (input = {}) => new BooleanEnvVarSchema(input),
|
|
7
|
+
enum: (input) => new EnumEnvVarSchema(input)
|
|
8
|
+
};
|
|
9
|
+
const s = schema;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { schema as n, s as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_src = require("./src-TZx_e95f.cjs");
|
|
2
|
+
//#region ../core/src/schemas/schema.ts
|
|
3
|
+
const schema = {
|
|
4
|
+
string: (input = {}) => new require_src.StringEnvVarSchema(input),
|
|
5
|
+
number: (input = {}) => new require_src.NumberEnvVarSchema(input),
|
|
6
|
+
boolean: (input = {}) => new require_src.BooleanEnvVarSchema(input),
|
|
7
|
+
enum: (input) => new require_src.EnumEnvVarSchema(input)
|
|
8
|
+
};
|
|
9
|
+
const s = schema;
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, "s", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return s;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "schema", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return schema;
|
|
21
|
+
}
|
|
22
|
+
});
|
package/dist/schemas/zod.cjs
CHANGED
|
@@ -1,275 +1,16 @@
|
|
|
1
|
-
Object.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_redis = require('../redis-Cazgs3_J.cjs');
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/compat.js
|
|
7
|
-
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
8
|
-
const ZodIssueCode = {
|
|
9
|
-
invalid_type: "invalid_type",
|
|
10
|
-
too_big: "too_big",
|
|
11
|
-
too_small: "too_small",
|
|
12
|
-
invalid_format: "invalid_format",
|
|
13
|
-
not_multiple_of: "not_multiple_of",
|
|
14
|
-
unrecognized_keys: "unrecognized_keys",
|
|
15
|
-
invalid_union: "invalid_union",
|
|
16
|
-
invalid_key: "invalid_key",
|
|
17
|
-
invalid_element: "invalid_element",
|
|
18
|
-
invalid_value: "invalid_value",
|
|
19
|
-
custom: "custom"
|
|
20
|
-
};
|
|
21
|
-
/** @deprecated Use `z.config(params)` instead. */
|
|
22
|
-
function setErrorMap(map$1) {
|
|
23
|
-
require_coerce.config({ customError: map$1 });
|
|
24
|
-
}
|
|
25
|
-
/** @deprecated Use `z.config()` instead. */
|
|
26
|
-
function getErrorMap() {
|
|
27
|
-
return require_coerce.config().customError;
|
|
28
|
-
}
|
|
29
|
-
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
30
|
-
var ZodFirstPartyTypeKind;
|
|
31
|
-
(function(ZodFirstPartyTypeKind$1) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
32
|
-
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/external.js
|
|
35
|
-
var external_exports = /* @__PURE__ */ require_chunk.__export({
|
|
36
|
-
$brand: () => require_coerce.$brand,
|
|
37
|
-
$input: () => require_coerce.$input,
|
|
38
|
-
$output: () => require_coerce.$output,
|
|
39
|
-
NEVER: () => require_coerce.NEVER,
|
|
40
|
-
TimePrecision: () => require_coerce.TimePrecision,
|
|
41
|
-
ZodAny: () => require_coerce.ZodAny,
|
|
42
|
-
ZodArray: () => require_coerce.ZodArray,
|
|
43
|
-
ZodBase64: () => require_coerce.ZodBase64,
|
|
44
|
-
ZodBase64URL: () => require_coerce.ZodBase64URL,
|
|
45
|
-
ZodBigInt: () => require_coerce.ZodBigInt,
|
|
46
|
-
ZodBigIntFormat: () => require_coerce.ZodBigIntFormat,
|
|
47
|
-
ZodBoolean: () => require_coerce.ZodBoolean,
|
|
48
|
-
ZodCIDRv4: () => require_coerce.ZodCIDRv4,
|
|
49
|
-
ZodCIDRv6: () => require_coerce.ZodCIDRv6,
|
|
50
|
-
ZodCUID: () => require_coerce.ZodCUID,
|
|
51
|
-
ZodCUID2: () => require_coerce.ZodCUID2,
|
|
52
|
-
ZodCatch: () => require_coerce.ZodCatch,
|
|
53
|
-
ZodCodec: () => require_coerce.ZodCodec,
|
|
54
|
-
ZodCustom: () => require_coerce.ZodCustom,
|
|
55
|
-
ZodCustomStringFormat: () => require_coerce.ZodCustomStringFormat,
|
|
56
|
-
ZodDate: () => require_coerce.ZodDate,
|
|
57
|
-
ZodDefault: () => require_coerce.ZodDefault,
|
|
58
|
-
ZodDiscriminatedUnion: () => require_coerce.ZodDiscriminatedUnion,
|
|
59
|
-
ZodE164: () => require_coerce.ZodE164,
|
|
60
|
-
ZodEmail: () => require_coerce.ZodEmail,
|
|
61
|
-
ZodEmoji: () => require_coerce.ZodEmoji,
|
|
62
|
-
ZodEnum: () => require_coerce.ZodEnum,
|
|
63
|
-
ZodError: () => require_coerce.ZodError,
|
|
64
|
-
ZodFile: () => require_coerce.ZodFile,
|
|
65
|
-
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
66
|
-
ZodFunction: () => require_coerce.ZodFunction,
|
|
67
|
-
ZodGUID: () => require_coerce.ZodGUID,
|
|
68
|
-
ZodIPv4: () => require_coerce.ZodIPv4,
|
|
69
|
-
ZodIPv6: () => require_coerce.ZodIPv6,
|
|
70
|
-
ZodISODate: () => require_coerce.ZodISODate,
|
|
71
|
-
ZodISODateTime: () => require_coerce.ZodISODateTime,
|
|
72
|
-
ZodISODuration: () => require_coerce.ZodISODuration,
|
|
73
|
-
ZodISOTime: () => require_coerce.ZodISOTime,
|
|
74
|
-
ZodIntersection: () => require_coerce.ZodIntersection,
|
|
75
|
-
ZodIssueCode: () => ZodIssueCode,
|
|
76
|
-
ZodJWT: () => require_coerce.ZodJWT,
|
|
77
|
-
ZodKSUID: () => require_coerce.ZodKSUID,
|
|
78
|
-
ZodLazy: () => require_coerce.ZodLazy,
|
|
79
|
-
ZodLiteral: () => require_coerce.ZodLiteral,
|
|
80
|
-
ZodMap: () => require_coerce.ZodMap,
|
|
81
|
-
ZodNaN: () => require_coerce.ZodNaN,
|
|
82
|
-
ZodNanoID: () => require_coerce.ZodNanoID,
|
|
83
|
-
ZodNever: () => require_coerce.ZodNever,
|
|
84
|
-
ZodNonOptional: () => require_coerce.ZodNonOptional,
|
|
85
|
-
ZodNull: () => require_coerce.ZodNull,
|
|
86
|
-
ZodNullable: () => require_coerce.ZodNullable,
|
|
87
|
-
ZodNumber: () => require_coerce.ZodNumber,
|
|
88
|
-
ZodNumberFormat: () => require_coerce.ZodNumberFormat,
|
|
89
|
-
ZodObject: () => require_coerce.ZodObject,
|
|
90
|
-
ZodOptional: () => require_coerce.ZodOptional,
|
|
91
|
-
ZodPipe: () => require_coerce.ZodPipe,
|
|
92
|
-
ZodPrefault: () => require_coerce.ZodPrefault,
|
|
93
|
-
ZodPromise: () => require_coerce.ZodPromise,
|
|
94
|
-
ZodReadonly: () => require_coerce.ZodReadonly,
|
|
95
|
-
ZodRealError: () => require_coerce.ZodRealError,
|
|
96
|
-
ZodRecord: () => require_coerce.ZodRecord,
|
|
97
|
-
ZodSet: () => require_coerce.ZodSet,
|
|
98
|
-
ZodString: () => require_coerce.ZodString,
|
|
99
|
-
ZodStringFormat: () => require_coerce.ZodStringFormat,
|
|
100
|
-
ZodSuccess: () => require_coerce.ZodSuccess,
|
|
101
|
-
ZodSymbol: () => require_coerce.ZodSymbol,
|
|
102
|
-
ZodTemplateLiteral: () => require_coerce.ZodTemplateLiteral,
|
|
103
|
-
ZodTransform: () => require_coerce.ZodTransform,
|
|
104
|
-
ZodTuple: () => require_coerce.ZodTuple,
|
|
105
|
-
ZodType: () => require_coerce.ZodType,
|
|
106
|
-
ZodULID: () => require_coerce.ZodULID,
|
|
107
|
-
ZodURL: () => require_coerce.ZodURL,
|
|
108
|
-
ZodUUID: () => require_coerce.ZodUUID,
|
|
109
|
-
ZodUndefined: () => require_coerce.ZodUndefined,
|
|
110
|
-
ZodUnion: () => require_coerce.ZodUnion,
|
|
111
|
-
ZodUnknown: () => require_coerce.ZodUnknown,
|
|
112
|
-
ZodVoid: () => require_coerce.ZodVoid,
|
|
113
|
-
ZodXID: () => require_coerce.ZodXID,
|
|
114
|
-
_ZodString: () => require_coerce._ZodString,
|
|
115
|
-
_default: () => require_coerce._default,
|
|
116
|
-
_function: () => require_coerce._function,
|
|
117
|
-
any: () => require_coerce.any,
|
|
118
|
-
array: () => require_coerce.array,
|
|
119
|
-
base64: () => require_coerce.base64,
|
|
120
|
-
base64url: () => require_coerce.base64url,
|
|
121
|
-
bigint: () => require_coerce.bigint,
|
|
122
|
-
boolean: () => require_coerce.boolean,
|
|
123
|
-
catch: () => require_coerce._catch,
|
|
124
|
-
check: () => require_coerce.check,
|
|
125
|
-
cidrv4: () => require_coerce.cidrv4,
|
|
126
|
-
cidrv6: () => require_coerce.cidrv6,
|
|
127
|
-
clone: () => require_coerce.clone,
|
|
128
|
-
codec: () => require_coerce.codec,
|
|
129
|
-
coerce: () => require_coerce.coerce_exports,
|
|
130
|
-
config: () => require_coerce.config,
|
|
131
|
-
core: () => require_coerce.core_exports,
|
|
132
|
-
cuid: () => require_coerce.cuid,
|
|
133
|
-
cuid2: () => require_coerce.cuid2,
|
|
134
|
-
custom: () => require_coerce.custom,
|
|
135
|
-
date: () => require_coerce.date,
|
|
136
|
-
decode: () => require_coerce.decode,
|
|
137
|
-
decodeAsync: () => require_coerce.decodeAsync,
|
|
138
|
-
discriminatedUnion: () => require_coerce.discriminatedUnion,
|
|
139
|
-
e164: () => require_coerce.e164,
|
|
140
|
-
email: () => require_coerce.email,
|
|
141
|
-
emoji: () => require_coerce.emoji,
|
|
142
|
-
encode: () => require_coerce.encode,
|
|
143
|
-
encodeAsync: () => require_coerce.encodeAsync,
|
|
144
|
-
endsWith: () => require_coerce._endsWith,
|
|
145
|
-
enum: () => require_coerce._enum,
|
|
146
|
-
file: () => require_coerce.file,
|
|
147
|
-
flattenError: () => require_coerce.flattenError,
|
|
148
|
-
float32: () => require_coerce.float32,
|
|
149
|
-
float64: () => require_coerce.float64,
|
|
150
|
-
formatError: () => require_coerce.formatError,
|
|
151
|
-
function: () => require_coerce._function,
|
|
152
|
-
getErrorMap: () => getErrorMap,
|
|
153
|
-
globalRegistry: () => require_coerce.globalRegistry,
|
|
154
|
-
gt: () => require_coerce._gt,
|
|
155
|
-
gte: () => require_coerce._gte,
|
|
156
|
-
guid: () => require_coerce.guid,
|
|
157
|
-
hash: () => require_coerce.hash,
|
|
158
|
-
hex: () => require_coerce.hex,
|
|
159
|
-
hostname: () => require_coerce.hostname,
|
|
160
|
-
httpUrl: () => require_coerce.httpUrl,
|
|
161
|
-
includes: () => require_coerce._includes,
|
|
162
|
-
instanceof: () => require_coerce._instanceof,
|
|
163
|
-
int: () => require_coerce.int,
|
|
164
|
-
int32: () => require_coerce.int32,
|
|
165
|
-
int64: () => require_coerce.int64,
|
|
166
|
-
intersection: () => require_coerce.intersection,
|
|
167
|
-
ipv4: () => require_coerce.ipv4,
|
|
168
|
-
ipv6: () => require_coerce.ipv6,
|
|
169
|
-
iso: () => require_coerce.iso_exports,
|
|
170
|
-
json: () => require_coerce.json,
|
|
171
|
-
jwt: () => require_coerce.jwt,
|
|
172
|
-
keyof: () => require_coerce.keyof,
|
|
173
|
-
ksuid: () => require_coerce.ksuid,
|
|
174
|
-
lazy: () => require_coerce.lazy,
|
|
175
|
-
length: () => require_coerce._length,
|
|
176
|
-
literal: () => require_coerce.literal,
|
|
177
|
-
locales: () => require_coerce.locales_exports,
|
|
178
|
-
looseObject: () => require_coerce.looseObject,
|
|
179
|
-
lowercase: () => require_coerce._lowercase,
|
|
180
|
-
lt: () => require_coerce._lt,
|
|
181
|
-
lte: () => require_coerce._lte,
|
|
182
|
-
map: () => require_coerce.map,
|
|
183
|
-
maxLength: () => require_coerce._maxLength,
|
|
184
|
-
maxSize: () => require_coerce._maxSize,
|
|
185
|
-
mime: () => require_coerce._mime,
|
|
186
|
-
minLength: () => require_coerce._minLength,
|
|
187
|
-
minSize: () => require_coerce._minSize,
|
|
188
|
-
multipleOf: () => require_coerce._multipleOf,
|
|
189
|
-
nan: () => require_coerce.nan,
|
|
190
|
-
nanoid: () => require_coerce.nanoid,
|
|
191
|
-
nativeEnum: () => require_coerce.nativeEnum,
|
|
192
|
-
negative: () => require_coerce._negative,
|
|
193
|
-
never: () => require_coerce.never,
|
|
194
|
-
nonnegative: () => require_coerce._nonnegative,
|
|
195
|
-
nonoptional: () => require_coerce.nonoptional,
|
|
196
|
-
nonpositive: () => require_coerce._nonpositive,
|
|
197
|
-
normalize: () => require_coerce._normalize,
|
|
198
|
-
null: () => require_coerce._null,
|
|
199
|
-
nullable: () => require_coerce.nullable,
|
|
200
|
-
nullish: () => require_coerce.nullish,
|
|
201
|
-
number: () => require_coerce.number$1,
|
|
202
|
-
object: () => require_coerce.object,
|
|
203
|
-
optional: () => require_coerce.optional,
|
|
204
|
-
overwrite: () => require_coerce._overwrite,
|
|
205
|
-
parse: () => require_coerce.parse,
|
|
206
|
-
parseAsync: () => require_coerce.parseAsync,
|
|
207
|
-
partialRecord: () => require_coerce.partialRecord,
|
|
208
|
-
pipe: () => require_coerce.pipe,
|
|
209
|
-
positive: () => require_coerce._positive,
|
|
210
|
-
prefault: () => require_coerce.prefault,
|
|
211
|
-
preprocess: () => require_coerce.preprocess,
|
|
212
|
-
prettifyError: () => require_coerce.prettifyError,
|
|
213
|
-
promise: () => require_coerce.promise,
|
|
214
|
-
property: () => require_coerce._property,
|
|
215
|
-
readonly: () => require_coerce.readonly,
|
|
216
|
-
record: () => require_coerce.record,
|
|
217
|
-
refine: () => require_coerce.refine,
|
|
218
|
-
regex: () => require_coerce._regex,
|
|
219
|
-
regexes: () => require_coerce.regexes_exports,
|
|
220
|
-
registry: () => require_coerce.registry,
|
|
221
|
-
safeDecode: () => require_coerce.safeDecode,
|
|
222
|
-
safeDecodeAsync: () => require_coerce.safeDecodeAsync,
|
|
223
|
-
safeEncode: () => require_coerce.safeEncode,
|
|
224
|
-
safeEncodeAsync: () => require_coerce.safeEncodeAsync,
|
|
225
|
-
safeParse: () => require_coerce.safeParse,
|
|
226
|
-
safeParseAsync: () => require_coerce.safeParseAsync,
|
|
227
|
-
set: () => require_coerce.set,
|
|
228
|
-
setErrorMap: () => setErrorMap,
|
|
229
|
-
size: () => require_coerce._size,
|
|
230
|
-
startsWith: () => require_coerce._startsWith,
|
|
231
|
-
strictObject: () => require_coerce.strictObject,
|
|
232
|
-
string: () => require_coerce.string,
|
|
233
|
-
stringFormat: () => require_coerce.stringFormat,
|
|
234
|
-
stringbool: () => require_coerce.stringbool,
|
|
235
|
-
success: () => require_coerce.success,
|
|
236
|
-
superRefine: () => require_coerce.superRefine,
|
|
237
|
-
symbol: () => require_coerce.symbol,
|
|
238
|
-
templateLiteral: () => require_coerce.templateLiteral,
|
|
239
|
-
toJSONSchema: () => require_coerce.toJSONSchema,
|
|
240
|
-
toLowerCase: () => require_coerce._toLowerCase,
|
|
241
|
-
toUpperCase: () => require_coerce._toUpperCase,
|
|
242
|
-
transform: () => require_coerce.transform,
|
|
243
|
-
treeifyError: () => require_coerce.treeifyError,
|
|
244
|
-
trim: () => require_coerce._trim,
|
|
245
|
-
tuple: () => require_coerce.tuple,
|
|
246
|
-
uint32: () => require_coerce.uint32,
|
|
247
|
-
uint64: () => require_coerce.uint64,
|
|
248
|
-
ulid: () => require_coerce.ulid,
|
|
249
|
-
undefined: () => require_coerce._undefined,
|
|
250
|
-
union: () => require_coerce.union,
|
|
251
|
-
unknown: () => require_coerce.unknown,
|
|
252
|
-
uppercase: () => require_coerce._uppercase,
|
|
253
|
-
url: () => require_coerce.url,
|
|
254
|
-
util: () => require_coerce.util_exports,
|
|
255
|
-
uuid: () => require_coerce.uuid,
|
|
256
|
-
uuidv4: () => require_coerce.uuidv4,
|
|
257
|
-
uuidv6: () => require_coerce.uuidv6,
|
|
258
|
-
uuidv7: () => require_coerce.uuidv7,
|
|
259
|
-
void: () => require_coerce._void,
|
|
260
|
-
xid: () => require_coerce.xid
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
261
4
|
});
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
//#endregion
|
|
5
|
+
const require_redis = require("../redis-CyTF0SYT.cjs");
|
|
6
|
+
let zod = require("zod");
|
|
265
7
|
//#region ../schemas/src/zod/v4/api.ts
|
|
266
8
|
const apiKey = (z) => z.string().describe(require_redis.descriptions$6.apiKey).min(require_redis.constraints$6.apiKeyMinLength, { error: require_redis.messages$6.apiKeyMin });
|
|
267
9
|
const apiBaseUrl = (z) => z.url().describe(require_redis.descriptions$6.apiBaseUrl).regex(require_redis.patterns$5.httpProtocol, { error: require_redis.messages$6.httpProtocolRequired });
|
|
268
10
|
const apiTimeout = (z) => z.number().describe(require_redis.descriptions$6.apiTimeout).int({ error: require_redis.messages$6.apiTimeoutInt }).min(require_redis.constraints$6.apiTimeoutMin, { error: require_redis.messages$6.apiTimeoutMin }).max(require_redis.constraints$6.apiTimeoutMax, { error: require_redis.messages$6.apiTimeoutMax }).default(require_redis.defaults$5.apiTimeout);
|
|
269
|
-
|
|
270
11
|
//#endregion
|
|
271
12
|
//#region ../schemas/src/shared/applicationInsights.ts
|
|
272
|
-
const descriptions
|
|
13
|
+
const descriptions = {
|
|
273
14
|
connectionString: "Azure Application Insights connection string",
|
|
274
15
|
instrumentationKey: "Azure Application Insights instrumentation key (legacy)",
|
|
275
16
|
roleName: "Application Insights role name for distributed tracing",
|
|
@@ -287,33 +28,31 @@ const traits = {
|
|
|
287
28
|
samplingRateMin: "between 0 and 100",
|
|
288
29
|
samplingRateMax: "between 0 and 100"
|
|
289
30
|
};
|
|
290
|
-
const constraints
|
|
31
|
+
const constraints = {
|
|
291
32
|
roleNameMin: 1,
|
|
292
33
|
roleNameMax: 256,
|
|
293
34
|
samplingRateMin: 0,
|
|
294
35
|
samplingRateMax: 100
|
|
295
36
|
};
|
|
296
|
-
const defaults
|
|
37
|
+
const defaults = {
|
|
297
38
|
samplingRate: 100,
|
|
298
39
|
autoCollectDependencies: true,
|
|
299
40
|
autoCollectExceptions: true,
|
|
300
41
|
autoCollectConsole: true,
|
|
301
42
|
autoCollectPerformance: true
|
|
302
43
|
};
|
|
303
|
-
const patterns
|
|
304
|
-
const messages
|
|
305
|
-
|
|
44
|
+
const patterns = { connectionString: /^InstrumentationKey=[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12};IngestionEndpoint=https:\/\/[^;]+;LiveEndpoint=https:\/\/[^;]+$/ };
|
|
45
|
+
const messages = require_redis.toZodMessages(traits);
|
|
306
46
|
//#endregion
|
|
307
47
|
//#region ../schemas/src/zod/v4/applicationInsights.ts
|
|
308
|
-
const applicationInsightsConnectionString = (z) => z.string().describe(descriptions
|
|
309
|
-
const appInsightsInstrumentationKey = (z) => z.uuid({ message: messages
|
|
310
|
-
const appInsightsRoleName = (z) => z.string().describe(descriptions
|
|
311
|
-
const appInsightsSamplingRate = (z) => z.number().describe(descriptions
|
|
312
|
-
const appInsightsAutocollectDependencies = (z) => z.boolean().describe(descriptions
|
|
313
|
-
const appInsightsAutocollectExceptions = (z) => z.boolean().describe(descriptions
|
|
314
|
-
const appInsightsAutocollectConsole = (z) => z.boolean().describe(descriptions
|
|
315
|
-
const appInsightsAutocollectPerformance = (z) => z.boolean().describe(descriptions
|
|
316
|
-
|
|
48
|
+
const applicationInsightsConnectionString = (z) => z.string().describe(descriptions.connectionString).regex(patterns.connectionString, { error: messages.connectionStringFormat });
|
|
49
|
+
const appInsightsInstrumentationKey = (z) => z.uuid({ message: messages.instrumentationKeyUuid }).describe(descriptions.instrumentationKey);
|
|
50
|
+
const appInsightsRoleName = (z) => z.string().describe(descriptions.roleName).min(constraints.roleNameMin, { error: messages.roleNameMin }).max(constraints.roleNameMax, { error: messages.roleNameMax });
|
|
51
|
+
const appInsightsSamplingRate = (z) => z.number().describe(descriptions.samplingRate).min(constraints.samplingRateMin, { error: messages.samplingRateMin }).max(constraints.samplingRateMax, { error: messages.samplingRateMax }).default(defaults.samplingRate);
|
|
52
|
+
const appInsightsAutocollectDependencies = (z) => z.boolean().describe(descriptions.autoCollectDependencies).default(defaults.autoCollectDependencies);
|
|
53
|
+
const appInsightsAutocollectExceptions = (z) => z.boolean().describe(descriptions.autoCollectExceptions).default(defaults.autoCollectExceptions);
|
|
54
|
+
const appInsightsAutocollectConsole = (z) => z.boolean().describe(descriptions.autoCollectConsole).default(defaults.autoCollectConsole);
|
|
55
|
+
const appInsightsAutocollectPerformance = (z) => z.boolean().describe(descriptions.autoCollectPerformance).default(defaults.autoCollectPerformance);
|
|
317
56
|
//#endregion
|
|
318
57
|
//#region ../schemas/src/zod/v4/aws.ts
|
|
319
58
|
const awsAccessKeyId = (z) => z.string().describe(require_redis.descriptions$5.awsAccessKeyId).min(require_redis.constraints$5.awsAccessKeyIdMin, { error: require_redis.messages$5.awsAccessKeyIdMin }).max(require_redis.constraints$5.awsAccessKeyIdMax, { error: require_redis.messages$5.awsAccessKeyIdMax });
|
|
@@ -321,7 +60,6 @@ const awsSecretAccessKey = (z) => z.string().describe(require_redis.descriptions
|
|
|
321
60
|
const awsRegion = (z) => z.string().describe(require_redis.descriptions$5.awsRegion).regex(require_redis.patterns$4.awsRegion, { error: require_redis.messages$5.awsRegionFormat });
|
|
322
61
|
const awsS3BucketName = (z) => z.string().describe(require_redis.descriptions$5.awsS3BucketName).regex(require_redis.patterns$4.awsS3BucketName, { error: require_redis.messages$5.awsS3BucketNameFormat });
|
|
323
62
|
const awsSqsQueueUrl = (z) => z.string().describe(require_redis.descriptions$5.awsSqsQueueUrl).regex(require_redis.patterns$4.awsSqsQueueUrl, { error: require_redis.messages$5.awsSqsQueueUrlFormat });
|
|
324
|
-
|
|
325
63
|
//#endregion
|
|
326
64
|
//#region ../schemas/src/zod/v4/azure.ts
|
|
327
65
|
const azureStorageConnectionString = (z) => z.string().describe(require_redis.descriptions$5.azureStorageConnectionString).regex(require_redis.patterns$4.azureStorageConnectionString, { message: require_redis.messages$5.azureStorageConnectionStringFormat });
|
|
@@ -329,11 +67,9 @@ const azureStorageAccountName = (z) => z.string().describe(require_redis.descrip
|
|
|
329
67
|
const azureStorageAccountKey = (z) => z.string().describe(require_redis.descriptions$5.azureStorageAccountKey).min(1, { message: require_redis.messages$5.azureStorageAccountKeyRequired });
|
|
330
68
|
const azureServiceBusConnectionString = (z) => z.string().describe(require_redis.descriptions$5.azureServiceBusConnectionString).regex(require_redis.patterns$4.azureServiceBusConnectionString, { message: require_redis.messages$5.azureServiceBusConnectionStringFormat });
|
|
331
69
|
const azureEventHubConnectionString = (z) => z.string().describe(require_redis.descriptions$5.azureEventHubConnectionString).regex(require_redis.patterns$4.azureEventHubConnectionString, { message: require_redis.messages$5.azureEventHubConnectionStringFormat });
|
|
332
|
-
|
|
333
70
|
//#endregion
|
|
334
71
|
//#region ../schemas/src/zod/v4/memcached.ts
|
|
335
72
|
const memcachedServers = (z) => z.string().describe(require_redis.descriptions$5.memcachedServers).regex(require_redis.patterns$4.hostPortList, { message: require_redis.messages$5.hostPortListFormat });
|
|
336
|
-
|
|
337
73
|
//#endregion
|
|
338
74
|
//#region ../schemas/src/zod/v4/cors.ts
|
|
339
75
|
const cors = (z) => z.string().describe(require_redis.descriptions$6.corsOrigin).refine((val) => {
|
|
@@ -347,7 +83,6 @@ const cors = (z) => z.string().describe(require_redis.descriptions$6.corsOrigin)
|
|
|
347
83
|
}
|
|
348
84
|
});
|
|
349
85
|
}, { error: require_redis.messages$6.corsOriginInvalid });
|
|
350
|
-
|
|
351
86
|
//#endregion
|
|
352
87
|
//#region ../schemas/src/zod/v4/database.ts
|
|
353
88
|
const databaseUrl = (z) => z.string().describe(require_redis.descriptions$4.databaseUrl).regex(require_redis.patterns$3.genericDatabaseUrl, { message: require_redis.messages$4.genericDatabaseUrlFormat });
|
|
@@ -360,102 +95,76 @@ const databaseSchema = (z) => z.string().describe(require_redis.descriptions$4.d
|
|
|
360
95
|
const databasePoolSize = (z) => z.coerce.number().describe(require_redis.descriptions$4.databasePoolSize).int({ message: require_redis.messages$4.databasePoolSizeInt }).min(require_redis.constraints$4.databasePoolSizeMin, { message: require_redis.messages$4.databasePoolSizeMin }).max(require_redis.constraints$4.databasePoolSizeMax, { message: require_redis.messages$4.databasePoolSizeMax }).default(require_redis.defaults$3.databasePoolSize);
|
|
361
96
|
const databaseTimeout = (z) => z.coerce.number().describe(require_redis.descriptions$4.databaseTimeout).int({ message: require_redis.messages$4.databaseTimeoutInt }).min(require_redis.constraints$4.databaseTimeoutMin, { message: require_redis.messages$4.databaseTimeoutMin }).max(require_redis.constraints$4.databaseTimeoutMax, { message: require_redis.messages$4.databaseTimeoutMax }).default(require_redis.defaults$3.databaseTimeout);
|
|
362
97
|
const databaseSsl = (z) => z.boolean().describe(require_redis.descriptions$4.databaseSsl).default(require_redis.defaults$3.databaseSsl);
|
|
363
|
-
|
|
364
98
|
//#endregion
|
|
365
99
|
//#region ../schemas/src/zod/v4/datadog.ts
|
|
366
100
|
const datadogApiKey = (z) => z.string().describe(require_redis.descriptions$5.datadogApiKey).length(require_redis.constraints$5.datadogApiKeyLength, { message: require_redis.messages$5.datadogApiKeyLength }).optional();
|
|
367
|
-
|
|
368
101
|
//#endregion
|
|
369
102
|
//#region ../schemas/src/zod/v4/docker.ts
|
|
370
103
|
const dockerRegistryUrl = (z) => z.string().url({ message: require_redis.messages$5.dockerRegistryUrlFormat }).describe(require_redis.descriptions$5.dockerRegistryUrl);
|
|
371
104
|
const dockerRegistryUsername = (z) => z.string().describe(require_redis.descriptions$5.dockerRegistryUsername).optional();
|
|
372
105
|
const dockerRegistryPassword = (z) => z.string().describe(require_redis.descriptions$5.dockerRegistryPassword).optional();
|
|
373
|
-
|
|
374
106
|
//#endregion
|
|
375
107
|
//#region ../schemas/src/zod/v4/elasticsearch.ts
|
|
376
108
|
const elasticsearchUrl = (z) => z.url({ message: require_redis.messages$5.elasticsearchUrlFormat }).describe(require_redis.descriptions$5.elasticsearchUrl).regex(require_redis.patterns$5.httpProtocol, { message: require_redis.messages$5.elasticsearchUrlProtocol });
|
|
377
109
|
const elasticsearchUsername = (z) => z.string().describe(require_redis.descriptions$5.elasticsearchUsername).optional();
|
|
378
110
|
const elasticsearchPassword = (z) => z.string().describe(require_redis.descriptions$5.elasticsearchPassword).optional();
|
|
379
|
-
|
|
380
111
|
//#endregion
|
|
381
112
|
//#region ../schemas/src/zod/v4/encryptionKey.ts
|
|
382
113
|
const encryptionKey = (z) => z.string().describe(require_redis.descriptions$6.encryptionKey).min(require_redis.constraints$6.encryptionKeyMinLength, { error: require_redis.messages$6.encryptionKeyMin });
|
|
383
|
-
|
|
384
114
|
//#endregion
|
|
385
115
|
//#region ../schemas/src/zod/v4/gel.ts
|
|
386
|
-
const gelDsn = () =>
|
|
387
|
-
const gelInstance = () =>
|
|
388
|
-
const gelSecretKey = () =>
|
|
389
|
-
const gelHost = () =>
|
|
390
|
-
const gelPort = () =>
|
|
391
|
-
const gelUser = () =>
|
|
392
|
-
const gelPassword = () =>
|
|
393
|
-
const gelBranch = () =>
|
|
394
|
-
const gelTlsCaFile = () =>
|
|
395
|
-
const gelClientTlsSecurity = () =>
|
|
116
|
+
const gelDsn = (z) => z.string().describe(require_redis.descriptions$3.gelDsn).regex(require_redis.patterns$2.gelDsn, { message: require_redis.messages$3.gelDsnFormat });
|
|
117
|
+
const gelInstance = (z) => z.string().describe(require_redis.descriptions$3.gelInstance).regex(require_redis.patterns$2.gelInstance, { message: require_redis.messages$3.gelInstanceFormat });
|
|
118
|
+
const gelSecretKey = (z) => z.string().describe(require_redis.descriptions$3.gelSecretKey).min(1, { message: require_redis.messages$3.gelSecretKeyRequired });
|
|
119
|
+
const gelHost = (z) => z.string().describe(require_redis.descriptions$3.gelHost).min(1, { message: require_redis.messages$3.gelHostRequired }).default("localhost");
|
|
120
|
+
const gelPort = (z) => z.coerce.number().describe(require_redis.descriptions$3.gelPort).int({ message: require_redis.messages$3.gelPortInt }).min(require_redis.constraints$3.gelPortMin, { message: require_redis.messages$3.gelPortMin }).max(require_redis.constraints$3.gelPortMax, { message: require_redis.messages$3.gelPortMax }).default(require_redis.defaults$2.gelPort);
|
|
121
|
+
const gelUser = (z) => z.string().describe(require_redis.descriptions$3.gelUser).min(1, { message: require_redis.messages$3.gelUserRequired }).default(require_redis.defaults$2.gelUser);
|
|
122
|
+
const gelPassword = (z) => z.string().describe(require_redis.descriptions$3.gelPassword).min(1, { message: require_redis.messages$3.gelPasswordRequired });
|
|
123
|
+
const gelBranch = (z) => z.string().describe(require_redis.descriptions$3.gelBranch).regex(require_redis.patterns$2.gelBranch, { message: require_redis.messages$3.gelBranchFormat }).default(require_redis.defaults$2.gelBranch);
|
|
124
|
+
const gelTlsCaFile = (z) => z.string().describe(require_redis.descriptions$3.gelTlsCaFile).min(1, { message: require_redis.messages$3.gelTlsCaFileFormat }).optional();
|
|
125
|
+
const gelClientTlsSecurity = (z) => z.enum([
|
|
396
126
|
"strict",
|
|
397
127
|
"no_host_verification",
|
|
398
128
|
"insecure"
|
|
399
129
|
]).describe(require_redis.descriptions$3.gelClientTlsSecurity).default(require_redis.defaults$2.gelClientTlsSecurity);
|
|
400
|
-
const gelCredentialsFile = () =>
|
|
401
|
-
const GEL_DSN = gelDsn();
|
|
402
|
-
const GEL_INSTANCE = gelInstance();
|
|
403
|
-
const GEL_SECRET_KEY = gelSecretKey();
|
|
404
|
-
const GEL_HOST = gelHost();
|
|
405
|
-
const GEL_PORT = gelPort();
|
|
406
|
-
const GEL_USER = gelUser();
|
|
407
|
-
const GEL_PASSWORD = gelPassword();
|
|
408
|
-
const GEL_BRANCH = gelBranch();
|
|
409
|
-
const GEL_TLS_CA_FILE = gelTlsCaFile();
|
|
410
|
-
const GEL_CLIENT_TLS_SECURITY = gelClientTlsSecurity();
|
|
411
|
-
const GEL_CREDENTIALS_FILE = gelCredentialsFile();
|
|
412
|
-
|
|
130
|
+
const gelCredentialsFile = (z) => z.string().describe(require_redis.descriptions$3.gelCredentialsFile).min(1, { message: require_redis.messages$3.gelCredentialsFileFormat }).optional();
|
|
413
131
|
//#endregion
|
|
414
132
|
//#region ../schemas/src/zod/v4/host.ts
|
|
415
133
|
const hostSchema = (z) => z.string().describe(require_redis.descriptions$6.host).default(require_redis.defaults$5.host);
|
|
416
|
-
|
|
417
134
|
//#endregion
|
|
418
135
|
//#region ../schemas/src/zod/v4/jwt.ts
|
|
419
136
|
const jwtSecret = (z) => z.string().describe(require_redis.descriptions$6.jwtSecret).min(require_redis.constraints$6.jwtSecretMinLength, { error: require_redis.messages$6.jwtSecretMin });
|
|
420
137
|
const jwtAccessTokenExpiresIn = (z) => z.string().describe(require_redis.descriptions$6.jwtAccessTokenExpiresIn).regex(require_redis.patterns$5.jwtTokenDuration, { error: require_redis.messages$6.jwtDurationFormat }).default(require_redis.defaults$5.jwtAccessTokenExpiresIn);
|
|
421
138
|
const jwtRefreshTokenExpiresIn = (z) => z.string().describe(require_redis.descriptions$6.jwtRefreshTokenExpiresIn).regex(require_redis.patterns$5.jwtTokenDuration, { error: require_redis.messages$6.jwtDurationFormat }).default(require_redis.defaults$5.jwtRefreshTokenExpiresIn);
|
|
422
|
-
|
|
423
139
|
//#endregion
|
|
424
140
|
//#region ../schemas/src/zod/v4/kafka.ts
|
|
425
141
|
const kafkaBrokers = (z) => z.string().describe(require_redis.descriptions$5.kafkaBrokers).regex(require_redis.patterns$4.hostPortList, { message: require_redis.messages$5.hostPortListFormat });
|
|
426
142
|
const kafkaClientId = (z) => z.string().describe(require_redis.descriptions$5.kafkaClientId).min(1, { message: require_redis.messages$5.kafkaClientIdRequired });
|
|
427
|
-
|
|
428
143
|
//#endregion
|
|
429
144
|
//#region ../schemas/src/zod/v4/kubernetes.ts
|
|
430
145
|
const kubernetesNamespace = (z) => z.string().describe(require_redis.descriptions$5.kubernetesNamespace).regex(require_redis.patterns$4.kubernetesName, { message: require_redis.messages$5.kubernetesNameFormat }).default(require_redis.defaults$4.kubernetesNamespace);
|
|
431
146
|
const kubernetesServiceAccount = (z) => z.string().describe(require_redis.descriptions$5.kubernetesServiceAccount).regex(require_redis.patterns$4.kubernetesName, { message: require_redis.messages$5.kubernetesServiceAccountFormat }).optional();
|
|
432
|
-
|
|
433
147
|
//#endregion
|
|
434
148
|
//#region ../schemas/src/zod/v4/logLevel.ts
|
|
435
149
|
const logLevelSchema = (z) => z.enum([...require_redis.enumOptions.logLevel]).describe(require_redis.descriptions$6.logLevel).default(require_redis.defaults$5.logLevel);
|
|
436
|
-
|
|
437
150
|
//#endregion
|
|
438
151
|
//#region ../schemas/src/zod/v4/rabbitmq.ts
|
|
439
152
|
const rabbitmqUrl = (z) => z.string().describe(require_redis.descriptions$5.rabbitmqUrl).regex(require_redis.patterns$4.rabbitmqUrl, { message: require_redis.messages$5.rabbitmqUrlFormat });
|
|
440
|
-
|
|
441
153
|
//#endregion
|
|
442
154
|
//#region ../schemas/src/zod/v4/monitoring.ts
|
|
443
155
|
const newRelicLicenseKey = (z) => z.string().describe(require_redis.descriptions$5.newRelicLicenseKey).length(require_redis.constraints$5.newRelicLicenseKeyLength, { message: require_redis.messages$5.newRelicLicenseKeyLength }).optional();
|
|
444
156
|
const sentryDsn = (z) => z.string().describe(require_redis.descriptions$5.sentryDsn).regex(require_redis.patterns$4.sentryDsn, { message: require_redis.messages$5.sentryDsnFormat }).optional();
|
|
445
157
|
const jaegerEndpoint = (z) => z.string().url({ message: require_redis.messages$5.jaegerEndpointFormat }).describe(require_redis.descriptions$5.jaegerEndpoint).optional();
|
|
446
158
|
const prometheusPort = (z) => z.number().describe(require_redis.descriptions$5.prometheusPort).int({ message: require_redis.messages$5.prometheusPortInt }).min(require_redis.constraints$5.prometheusPortMin, { message: require_redis.messages$5.prometheusPortMin }).max(require_redis.constraints$5.prometheusPortMax, { message: require_redis.messages$5.prometheusPortMax }).default(require_redis.defaults$4.prometheusPort);
|
|
447
|
-
|
|
448
159
|
//#endregion
|
|
449
160
|
//#region ../schemas/src/zod/v4/node.ts
|
|
450
161
|
const nodeEnv = (z) => z.enum([...require_redis.enumOptions.nodeEnv]).describe(require_redis.descriptions$6.nodeEnv).default(require_redis.defaults$5.nodeEnv);
|
|
451
|
-
|
|
452
162
|
//#endregion
|
|
453
163
|
//#region ../schemas/src/zod/v4/oauth.ts
|
|
454
164
|
const oauthClientId = (z) => z.string().describe(require_redis.descriptions$2.clientId).min(require_redis.constraints$2.clientIdMinLength, { error: require_redis.messages$2.clientIdRequired });
|
|
455
165
|
const oauthClientSecret = (z) => z.string().describe(require_redis.descriptions$2.clientSecret).min(require_redis.constraints$2.clientSecretMinLength, { error: require_redis.messages$2.clientSecretMinLength });
|
|
456
166
|
const oauthRedirectUri = (z) => z.url({ message: require_redis.messages$2.redirectUriInvalid }).describe(require_redis.descriptions$2.redirectUri);
|
|
457
167
|
const oauthScope = (z) => z.string().describe(require_redis.descriptions$2.scope).min(require_redis.constraints$2.scopeMinLength, { error: require_redis.messages$2.scopeRequired });
|
|
458
|
-
|
|
459
168
|
//#endregion
|
|
460
169
|
//#region ../schemas/src/zod/v4/openai.ts
|
|
461
170
|
const openaiApiKey = (z) => z.string().describe(require_redis.descriptions$1.apiKey).min(require_redis.constraints$1.apiKeyMinLength, { error: require_redis.messages$1.apiKeyMinLength }).regex(require_redis.patterns$1.apiKey, { message: require_redis.messages$1.apiKeyFormat });
|
|
@@ -464,7 +173,6 @@ const openaiProjectId = (z) => z.string().describe(require_redis.descriptions$1.
|
|
|
464
173
|
const openaiBaseUrl = (z) => z.string().describe(require_redis.descriptions$1.baseUrl).url({ message: require_redis.messages$1.baseUrlInvalid }).refine((value) => value.startsWith("https://"), { message: require_redis.messages$1.baseUrlProtocol }).optional();
|
|
465
174
|
const openaiModel = (z) => z.string().describe(require_redis.descriptions$1.model).min(1, { message: require_redis.messages$1.modelRequired }).optional();
|
|
466
175
|
const openaiTimeout = (z) => z.number().describe(require_redis.descriptions$1.timeout).int({ message: require_redis.messages$1.timeoutInteger }).min(require_redis.constraints$1.timeoutMin, { message: require_redis.messages$1.timeoutMin }).max(require_redis.constraints$1.timeoutMax, { message: require_redis.messages$1.timeoutMax }).default(require_redis.defaults$1.timeout);
|
|
467
|
-
|
|
468
176
|
//#endregion
|
|
469
177
|
//#region ../schemas/src/zod/v4/redis.ts
|
|
470
178
|
const redisUrl = (z) => z.string().describe(require_redis.descriptions.url).regex(require_redis.patterns.url, { message: require_redis.messages.urlFormat });
|
|
@@ -475,20 +183,16 @@ const redisPassword = (z) => z.string().describe(require_redis.descriptions.pass
|
|
|
475
183
|
const redisDb = (z) => z.number().describe(require_redis.descriptions.db).int({ message: require_redis.messages.dbInteger }).min(require_redis.constraints.dbMin, { message: require_redis.messages.dbRange }).max(require_redis.constraints.dbMax, { message: require_redis.messages.dbRange }).default(require_redis.defaults.db);
|
|
476
184
|
const redisTls = (z) => z.boolean().describe(require_redis.descriptions.tls).default(require_redis.defaults.tls);
|
|
477
185
|
const redisTlsCaCertPath = (z) => z.string().describe(require_redis.descriptions.tlsCaCertPath).min(1, { message: require_redis.messages.tlsCaCertPathRequired });
|
|
478
|
-
|
|
479
186
|
//#endregion
|
|
480
187
|
//#region ../schemas/src/zod/v4/port.ts
|
|
481
188
|
const port = (z) => z.coerce.number().describe(require_redis.descriptions$6.port).int({ error: require_redis.messages$6.portInt }).min(require_redis.constraints$6.portMin, { error: require_redis.messages$6.portMin }).max(require_redis.constraints$6.portMax, { error: require_redis.messages$6.portMax }).default(require_redis.defaults$5.port);
|
|
482
|
-
|
|
483
189
|
//#endregion
|
|
484
190
|
//#region ../schemas/src/zod/v4/rateLimit.ts
|
|
485
191
|
const rateLimitRpm = (z) => z.coerce.number().describe(require_redis.descriptions$6.rateLimitRpm).int({ error: require_redis.messages$6.rateLimitRpmInt }).min(require_redis.constraints$6.rateLimitRpmMin, { error: require_redis.messages$6.rateLimitRpmMin }).max(require_redis.constraints$6.rateLimitRpmMax, { error: require_redis.messages$6.rateLimitRpmMax }).default(require_redis.defaults$5.rateLimitRpm);
|
|
486
192
|
const rateLimitWindow = (z) => z.coerce.number().describe(require_redis.descriptions$6.rateLimitWindow).int({ error: require_redis.messages$6.rateLimitWindowInt }).min(require_redis.constraints$6.rateLimitWindowMin, { error: require_redis.messages$6.rateLimitWindowMin }).max(require_redis.constraints$6.rateLimitWindowMax, { error: require_redis.messages$6.rateLimitWindowMax }).default(require_redis.defaults$5.rateLimitWindow);
|
|
487
|
-
|
|
488
193
|
//#endregion
|
|
489
194
|
//#region ../schemas/src/zod/v4/webhook.ts
|
|
490
195
|
const webhookUrl = (z) => z.url({ message: require_redis.messages$6.mustBeValidUrl }).describe(require_redis.descriptions$6.webhookUrl).regex(require_redis.patterns$5.httpsProtocol, { error: require_redis.messages$6.httpsProtocolRequired });
|
|
491
|
-
|
|
492
196
|
//#endregion
|
|
493
197
|
//#region ../schemas/src/zod/v4/index.ts
|
|
494
198
|
var v4_default = (z) => ({
|
|
@@ -533,6 +237,17 @@ var v4_default = (z) => ({
|
|
|
533
237
|
ELASTICSEARCH_USERNAME: elasticsearchUsername(z),
|
|
534
238
|
ELASTICSEARCH_PASSWORD: elasticsearchPassword(z),
|
|
535
239
|
ENCRYPTION_KEY: encryptionKey(z),
|
|
240
|
+
GEL_DSN: gelDsn(z),
|
|
241
|
+
GEL_INSTANCE: gelInstance(z),
|
|
242
|
+
GEL_SECRET_KEY: gelSecretKey(z),
|
|
243
|
+
GEL_HOST: gelHost(z),
|
|
244
|
+
GEL_PORT: gelPort(z),
|
|
245
|
+
GEL_USER: gelUser(z),
|
|
246
|
+
GEL_PASSWORD: gelPassword(z),
|
|
247
|
+
GEL_BRANCH: gelBranch(z),
|
|
248
|
+
GEL_TLS_CA_FILE: gelTlsCaFile(z),
|
|
249
|
+
GEL_CLIENT_TLS_SECURITY: gelClientTlsSecurity(z),
|
|
250
|
+
GEL_CREDENTIALS_FILE: gelCredentialsFile(z),
|
|
536
251
|
HOST: hostSchema(z),
|
|
537
252
|
PORT: port(z),
|
|
538
253
|
JWT_SECRET: jwtSecret(z),
|
|
@@ -571,23 +286,10 @@ var v4_default = (z) => ({
|
|
|
571
286
|
RATE_LIMIT_WINDOW: rateLimitWindow(z),
|
|
572
287
|
WEBHOOK_URL: webhookUrl(z)
|
|
573
288
|
});
|
|
574
|
-
|
|
575
289
|
//#endregion
|
|
576
290
|
//#region src/schemas/zod.ts
|
|
577
|
-
var zod_default = v4_default(
|
|
578
|
-
|
|
291
|
+
var zod_default = v4_default(zod.z);
|
|
579
292
|
//#endregion
|
|
580
|
-
exports.GEL_BRANCH = GEL_BRANCH;
|
|
581
|
-
exports.GEL_CLIENT_TLS_SECURITY = GEL_CLIENT_TLS_SECURITY;
|
|
582
|
-
exports.GEL_CREDENTIALS_FILE = GEL_CREDENTIALS_FILE;
|
|
583
|
-
exports.GEL_DSN = GEL_DSN;
|
|
584
|
-
exports.GEL_HOST = GEL_HOST;
|
|
585
|
-
exports.GEL_INSTANCE = GEL_INSTANCE;
|
|
586
|
-
exports.GEL_PASSWORD = GEL_PASSWORD;
|
|
587
|
-
exports.GEL_PORT = GEL_PORT;
|
|
588
|
-
exports.GEL_SECRET_KEY = GEL_SECRET_KEY;
|
|
589
|
-
exports.GEL_TLS_CA_FILE = GEL_TLS_CA_FILE;
|
|
590
|
-
exports.GEL_USER = GEL_USER;
|
|
591
293
|
exports.apiBaseUrl = apiBaseUrl;
|
|
592
294
|
exports.apiKey = apiKey;
|
|
593
295
|
exports.apiTimeout = apiTimeout;
|
|
@@ -677,4 +379,4 @@ exports.redisTlsCaCertPath = redisTlsCaCertPath;
|
|
|
677
379
|
exports.redisUrl = redisUrl;
|
|
678
380
|
exports.redisUsername = redisUsername;
|
|
679
381
|
exports.sentryDsn = sentryDsn;
|
|
680
|
-
exports.webhookUrl = webhookUrl;
|
|
382
|
+
exports.webhookUrl = webhookUrl;
|