@e-n-v/env 0.0.2 → 0.0.4
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/README.md +43 -24
- package/dist/BooleanMap-B2eIP3tZ.d.cts +32 -0
- package/dist/BooleanMap-DmFnCA-O.d.ts +32 -0
- package/dist/EnvChannel-LMIRYvT1.d.cts +16 -0
- package/dist/EnvChannel-w27PEm7x.d.ts +16 -0
- package/dist/EnvChannelOptions-BPkWDrmr.d.cts +108 -0
- package/dist/EnvChannelOptions-CRwDLWjd.d.ts +108 -0
- package/dist/EnvModel-CrGclUpJ.d.cts +134 -0
- package/dist/EnvModel-D8rt0EJ6.d.ts +134 -0
- package/dist/EnvSource-BVnmdHku.cjs +420 -0
- package/dist/EnvSource-DA3ZGlES.js +400 -0
- package/dist/ProcessEnvChannel-D465c-dp.d.cts +97 -0
- package/dist/ProcessEnvChannel-Do4-yiLI.d.ts +97 -0
- package/dist/StringEnvVarSchema-B8MT7htU.d.ts +64 -0
- package/dist/StringEnvVarSchema-BF6C0nyT.d.cts +64 -0
- package/dist/channels.cjs +8 -0
- package/dist/channels.d.cts +20 -0
- package/dist/channels.d.ts +20 -0
- package/dist/channels.js +4 -0
- package/dist/chunk-pbleEpgJ.cjs +44 -0
- package/dist/cli.cjs +16 -10
- package/dist/cli.js +7 -2
- package/dist/coerce-DNIuYAx4.js +11028 -0
- package/dist/coerce-b7UVodS9.cjs +12365 -0
- package/dist/core.cjs +68 -0
- package/dist/core.d.cts +6 -0
- package/dist/core.d.ts +6 -0
- package/dist/core.js +40 -0
- package/dist/custom-Bt_wnxIu.js +114 -0
- package/dist/custom-D_Rqjm09.cjs +168 -0
- package/dist/files.cjs +18 -0
- package/dist/files.d.cts +38 -0
- package/dist/files.d.ts +38 -0
- package/dist/files.js +13 -0
- package/dist/index-D8pslhp4.d.cts +170 -0
- package/dist/index-Dq_0aeAL.d.ts +170 -0
- package/dist/model-Dic8IJsf.d.ts +29 -0
- package/dist/model-ft0WhSSS.d.cts +29 -0
- package/dist/model.cjs +14 -0
- package/dist/model.d.cts +35 -0
- package/dist/model.d.ts +35 -0
- package/dist/model.js +9 -0
- package/dist/parse-BT1QSa5e.d.cts +28 -0
- package/dist/parse-DwtLpVhC.d.ts +28 -0
- package/dist/parse.cjs +17 -0
- package/dist/parse.d.cts +52 -0
- package/dist/parse.d.ts +52 -0
- package/dist/parse.js +10 -0
- package/dist/prompt-C5WudV9x.d.cts +74 -0
- package/dist/prompt-yKdccbtZ.d.ts +74 -0
- package/dist/prompt.cjs +24 -0
- package/dist/prompt.d.cts +17 -0
- package/dist/prompt.d.ts +17 -0
- package/dist/prompt.js +12 -0
- package/dist/redis-CJOpRPjc.js +395 -0
- package/dist/redis-EcC7TX3K.cjs +611 -0
- package/dist/resolveChannel-CjAuxy3p.cjs +257 -0
- package/dist/resolveChannel-v9BDsw-M.js +224 -0
- package/dist/root.cjs +36 -0
- package/dist/root.d.cts +21 -0
- package/dist/root.d.ts +21 -0
- package/dist/root.js +21 -0
- package/dist/schema-DH4GiW9A.d.cts +18 -0
- package/dist/schema-jN4EtvEP.d.ts +18 -0
- package/dist/schemas/zod.cjs +629 -0
- package/dist/schemas/zod.d.cts +239 -0
- package/dist/schemas/zod.d.ts +239 -0
- package/dist/schemas/zod.js +550 -0
- package/dist/schemas.cjs +133 -0
- package/dist/schemas.d.cts +3 -0
- package/dist/schemas.d.ts +3 -0
- package/dist/schemas.js +6 -0
- package/dist/src-B7FG1rak.js +638 -0
- package/dist/src-BBwjK5SK.js +127 -0
- package/dist/src-CLTURaoo.js +311 -0
- package/dist/src-CVdUqK3q.js +850 -0
- package/dist/src-Cjo2XA4n.cjs +138 -0
- package/dist/{src-oetJm-nZ.cjs → src-DWYoqPX1.cjs} +31 -1964
- package/dist/src-DZmpNGrQ.cjs +1411 -0
- package/dist/{src-RlCvrI0s.js → src-Dtv7TlJx.js} +14 -1726
- package/dist/src-XjL5cyPG.cjs +873 -0
- package/dist/src-meUnCASg.cjs +413 -0
- package/dist/validate-BxA3a-ns.d.cts +203 -0
- package/dist/validate-CyxrRacF.d.ts +203 -0
- package/dist/vars-BNVI6k89.d.ts +21 -0
- package/dist/vars-CYOaskkK.cjs +27 -0
- package/dist/vars-CptZRPX5.d.cts +21 -0
- package/dist/vars-DOW0LiiN.js +22 -0
- package/dist/vars.cjs +138 -0
- package/dist/vars.d.cts +7 -0
- package/dist/vars.d.ts +7 -0
- package/dist/vars.js +9 -0
- package/package.json +57 -9
- package/assets/demo.gif +0 -0
- package/assets/env-logo.png +0 -0
- package/dist/bundle.cjs +0 -1290
- package/dist/bundle.d.cts +0 -1057
- package/dist/bundle.d.ts +0 -1055
- package/dist/bundle.js +0 -1244
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
const require_chunk = require('../chunk-pbleEpgJ.cjs');
|
|
3
|
+
const require_coerce = require('../coerce-b7UVodS9.cjs');
|
|
4
|
+
const require_redis = require('../redis-EcC7TX3K.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
|
|
261
|
+
});
|
|
262
|
+
require_coerce.config(require_coerce.en_default());
|
|
263
|
+
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region ../schemas/src/zod/v4/api.ts
|
|
266
|
+
const apiKey = (z) => z.string().describe(require_redis.descriptions$5.apiKey).min(require_redis.constraints$5.apiKeyMinLength, { error: require_redis.messages$5.apiKeyMin });
|
|
267
|
+
const apiBaseUrl = (z) => z.url().describe(require_redis.descriptions$5.apiBaseUrl).regex(require_redis.patterns$4.httpProtocol, { error: require_redis.messages$5.httpProtocolRequired });
|
|
268
|
+
const apiTimeout = (z) => z.number().describe(require_redis.descriptions$5.apiTimeout).int({ error: require_redis.messages$5.apiTimeoutInt }).min(require_redis.constraints$5.apiTimeoutMin, { error: require_redis.messages$5.apiTimeoutMin }).max(require_redis.constraints$5.apiTimeoutMax, { error: require_redis.messages$5.apiTimeoutMax }).default(require_redis.defaults$4.apiTimeout);
|
|
269
|
+
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region ../schemas/src/shared/applicationInsights.ts
|
|
272
|
+
const descriptions$6 = {
|
|
273
|
+
connectionString: "Azure Application Insights connection string",
|
|
274
|
+
instrumentationKey: "Azure Application Insights instrumentation key (legacy)",
|
|
275
|
+
roleName: "Application Insights role name for distributed tracing",
|
|
276
|
+
samplingRate: "Application Insights telemetry sampling rate (0-100)",
|
|
277
|
+
autoCollectDependencies: "Enable automatic dependency tracking in Application Insights",
|
|
278
|
+
autoCollectExceptions: "Enable automatic exception tracking in Application Insights",
|
|
279
|
+
autoCollectConsole: "Enable automatic console log collection in Application Insights",
|
|
280
|
+
autoCollectPerformance: "Enable automatic performance counter collection in Application Insights"
|
|
281
|
+
};
|
|
282
|
+
const traits = {
|
|
283
|
+
connectionStringFormat: "a valid Application Insights connection string format",
|
|
284
|
+
instrumentationKeyUuid: "a valid UUID format for instrumentation key",
|
|
285
|
+
roleNameMin: "role name cannot be empty",
|
|
286
|
+
roleNameMax: "less than 256 characters",
|
|
287
|
+
samplingRateMin: "between 0 and 100",
|
|
288
|
+
samplingRateMax: "between 0 and 100"
|
|
289
|
+
};
|
|
290
|
+
const constraints$6 = {
|
|
291
|
+
roleNameMin: 1,
|
|
292
|
+
roleNameMax: 256,
|
|
293
|
+
samplingRateMin: 0,
|
|
294
|
+
samplingRateMax: 100
|
|
295
|
+
};
|
|
296
|
+
const defaults$5 = {
|
|
297
|
+
samplingRate: 100,
|
|
298
|
+
autoCollectDependencies: true,
|
|
299
|
+
autoCollectExceptions: true,
|
|
300
|
+
autoCollectConsole: true,
|
|
301
|
+
autoCollectPerformance: true
|
|
302
|
+
};
|
|
303
|
+
const patterns$5 = { 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:\/\/[^;]+$/ };
|
|
304
|
+
const messages$6 = require_redis.toZodMessages(traits);
|
|
305
|
+
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region ../schemas/src/zod/v4/applicationInsights.ts
|
|
308
|
+
const applicationInsightsConnectionString = (z) => z.string().describe(descriptions$6.connectionString).regex(patterns$5.connectionString, { error: messages$6.connectionStringFormat });
|
|
309
|
+
const appInsightsInstrumentationKey = (z) => z.uuid({ message: messages$6.instrumentationKeyUuid }).describe(descriptions$6.instrumentationKey);
|
|
310
|
+
const appInsightsRoleName = (z) => z.string().describe(descriptions$6.roleName).min(constraints$6.roleNameMin, { error: messages$6.roleNameMin }).max(constraints$6.roleNameMax, { error: messages$6.roleNameMax });
|
|
311
|
+
const appInsightsSamplingRate = (z) => z.number().describe(descriptions$6.samplingRate).min(constraints$6.samplingRateMin, { error: messages$6.samplingRateMin }).max(constraints$6.samplingRateMax, { error: messages$6.samplingRateMax }).default(defaults$5.samplingRate);
|
|
312
|
+
const appInsightsAutocollectDependencies = (z) => z.boolean().describe(descriptions$6.autoCollectDependencies).default(defaults$5.autoCollectDependencies);
|
|
313
|
+
const appInsightsAutocollectExceptions = (z) => z.boolean().describe(descriptions$6.autoCollectExceptions).default(defaults$5.autoCollectExceptions);
|
|
314
|
+
const appInsightsAutocollectConsole = (z) => z.boolean().describe(descriptions$6.autoCollectConsole).default(defaults$5.autoCollectConsole);
|
|
315
|
+
const appInsightsAutocollectPerformance = (z) => z.boolean().describe(descriptions$6.autoCollectPerformance).default(defaults$5.autoCollectPerformance);
|
|
316
|
+
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region ../schemas/src/zod/v4/aws.ts
|
|
319
|
+
const awsAccessKeyId = (z) => z.string().describe(require_redis.descriptions$4.awsAccessKeyId).min(require_redis.constraints$4.awsAccessKeyIdMin, { error: require_redis.messages$4.awsAccessKeyIdMin }).max(require_redis.constraints$4.awsAccessKeyIdMax, { error: require_redis.messages$4.awsAccessKeyIdMax });
|
|
320
|
+
const awsSecretAccessKey = (z) => z.string().describe(require_redis.descriptions$4.awsSecretAccessKey).min(1, { error: require_redis.messages$4.awsSecretAccessKeyRequired });
|
|
321
|
+
const awsRegion = (z) => z.string().describe(require_redis.descriptions$4.awsRegion).regex(require_redis.patterns$3.awsRegion, { error: require_redis.messages$4.awsRegionFormat });
|
|
322
|
+
const awsS3BucketName = (z) => z.string().describe(require_redis.descriptions$4.awsS3BucketName).regex(require_redis.patterns$3.awsS3BucketName, { error: require_redis.messages$4.awsS3BucketNameFormat });
|
|
323
|
+
const awsSqsQueueUrl = (z) => z.string().describe(require_redis.descriptions$4.awsSqsQueueUrl).regex(require_redis.patterns$3.awsSqsQueueUrl, { error: require_redis.messages$4.awsSqsQueueUrlFormat });
|
|
324
|
+
|
|
325
|
+
//#endregion
|
|
326
|
+
//#region ../schemas/src/zod/v4/azure.ts
|
|
327
|
+
const azureStorageConnectionString = (z) => z.string().describe(require_redis.descriptions$4.azureStorageConnectionString).regex(require_redis.patterns$3.azureStorageConnectionString, { message: require_redis.messages$4.azureStorageConnectionStringFormat });
|
|
328
|
+
const azureStorageAccountName = (z) => z.string().describe(require_redis.descriptions$4.azureStorageAccountName).regex(require_redis.patterns$3.azureStorageAccountName, { message: require_redis.messages$4.azureStorageAccountNameFormat });
|
|
329
|
+
const azureStorageAccountKey = (z) => z.string().describe(require_redis.descriptions$4.azureStorageAccountKey).min(1, { message: require_redis.messages$4.azureStorageAccountKeyRequired });
|
|
330
|
+
const azureServiceBusConnectionString = (z) => z.string().describe(require_redis.descriptions$4.azureServiceBusConnectionString).regex(require_redis.patterns$3.azureServiceBusConnectionString, { message: require_redis.messages$4.azureServiceBusConnectionStringFormat });
|
|
331
|
+
const azureEventHubConnectionString = (z) => z.string().describe(require_redis.descriptions$4.azureEventHubConnectionString).regex(require_redis.patterns$3.azureEventHubConnectionString, { message: require_redis.messages$4.azureEventHubConnectionStringFormat });
|
|
332
|
+
|
|
333
|
+
//#endregion
|
|
334
|
+
//#region ../schemas/src/zod/v4/memcached.ts
|
|
335
|
+
const memcachedServers = (z) => z.string().describe(require_redis.descriptions$4.memcachedServers).regex(require_redis.patterns$3.hostPortList, { message: require_redis.messages$4.hostPortListFormat });
|
|
336
|
+
|
|
337
|
+
//#endregion
|
|
338
|
+
//#region ../schemas/src/zod/v4/cors.ts
|
|
339
|
+
const cors = (z) => z.string().describe(require_redis.descriptions$5.corsOrigin).refine((val) => {
|
|
340
|
+
if (val === "*") return true;
|
|
341
|
+
return val.split(",").map((origin) => origin.trim()).every((origin) => {
|
|
342
|
+
try {
|
|
343
|
+
new URL(origin);
|
|
344
|
+
return true;
|
|
345
|
+
} catch {
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}, { error: require_redis.messages$5.corsOriginInvalid });
|
|
350
|
+
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region ../schemas/src/zod/v4/database.ts
|
|
353
|
+
const databaseUrl = (z) => z.string().describe(require_redis.descriptions$3.databaseUrl).regex(require_redis.patterns$2.genericDatabaseUrl, { message: require_redis.messages$3.genericDatabaseUrlFormat });
|
|
354
|
+
const databaseHost = (z) => z.string().describe(require_redis.descriptions$3.databaseHost).min(1, { message: require_redis.messages$3.databaseHostRequired });
|
|
355
|
+
const databasePort = (z) => z.coerce.number().describe(require_redis.descriptions$3.databasePort).int({ message: require_redis.messages$3.databasePortInt }).min(require_redis.constraints$3.databasePortMin, { message: require_redis.messages$3.databasePortMin }).max(require_redis.constraints$3.databasePortMax, { message: require_redis.messages$3.databasePortMax });
|
|
356
|
+
const databaseName = (z) => z.string().describe(require_redis.descriptions$3.databaseName).min(1, { message: require_redis.messages$3.databaseNameRequired });
|
|
357
|
+
const databaseUsername = (z) => z.string().describe(require_redis.descriptions$3.databaseUsername).min(1, { message: require_redis.messages$3.databaseUsernameRequired });
|
|
358
|
+
const databasePassword = (z) => z.string().describe(require_redis.descriptions$3.databasePassword).min(1, { message: require_redis.messages$3.databasePasswordRequired });
|
|
359
|
+
const databaseSchema = (z) => z.string().describe(require_redis.descriptions$3.databaseSchema).optional();
|
|
360
|
+
const databasePoolSize = (z) => z.coerce.number().describe(require_redis.descriptions$3.databasePoolSize).int({ message: require_redis.messages$3.databasePoolSizeInt }).min(require_redis.constraints$3.databasePoolSizeMin, { message: require_redis.messages$3.databasePoolSizeMin }).max(require_redis.constraints$3.databasePoolSizeMax, { message: require_redis.messages$3.databasePoolSizeMax }).default(require_redis.defaults$2.databasePoolSize);
|
|
361
|
+
const databaseTimeout = (z) => z.coerce.number().describe(require_redis.descriptions$3.databaseTimeout).int({ message: require_redis.messages$3.databaseTimeoutInt }).min(require_redis.constraints$3.databaseTimeoutMin, { message: require_redis.messages$3.databaseTimeoutMin }).max(require_redis.constraints$3.databaseTimeoutMax, { message: require_redis.messages$3.databaseTimeoutMax }).default(require_redis.defaults$2.databaseTimeout);
|
|
362
|
+
const databaseSsl = (z) => z.boolean().describe(require_redis.descriptions$3.databaseSsl).default(require_redis.defaults$2.databaseSsl);
|
|
363
|
+
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region ../schemas/src/zod/v4/datadog.ts
|
|
366
|
+
const datadogApiKey = (z) => z.string().describe(require_redis.descriptions$4.datadogApiKey).length(require_redis.constraints$4.datadogApiKeyLength, { message: require_redis.messages$4.datadogApiKeyLength }).optional();
|
|
367
|
+
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region ../schemas/src/zod/v4/docker.ts
|
|
370
|
+
const dockerRegistryUrl = (z) => z.string().url({ message: require_redis.messages$4.dockerRegistryUrlFormat }).describe(require_redis.descriptions$4.dockerRegistryUrl);
|
|
371
|
+
const dockerRegistryUsername = (z) => z.string().describe(require_redis.descriptions$4.dockerRegistryUsername).optional();
|
|
372
|
+
const dockerRegistryPassword = (z) => z.string().describe(require_redis.descriptions$4.dockerRegistryPassword).optional();
|
|
373
|
+
|
|
374
|
+
//#endregion
|
|
375
|
+
//#region ../schemas/src/zod/v4/elasticsearch.ts
|
|
376
|
+
const elasticsearchUrl = (z) => z.url({ message: require_redis.messages$4.elasticsearchUrlFormat }).describe(require_redis.descriptions$4.elasticsearchUrl).regex(require_redis.patterns$4.httpProtocol, { message: require_redis.messages$4.elasticsearchUrlProtocol });
|
|
377
|
+
const elasticsearchUsername = (z) => z.string().describe(require_redis.descriptions$4.elasticsearchUsername).optional();
|
|
378
|
+
const elasticsearchPassword = (z) => z.string().describe(require_redis.descriptions$4.elasticsearchPassword).optional();
|
|
379
|
+
|
|
380
|
+
//#endregion
|
|
381
|
+
//#region ../schemas/src/zod/v4/encryptionKey.ts
|
|
382
|
+
const encryptionKey = (z) => z.string().describe(require_redis.descriptions$5.encryptionKey).min(require_redis.constraints$5.encryptionKeyMinLength, { error: require_redis.messages$5.encryptionKeyMin });
|
|
383
|
+
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region ../schemas/src/zod/v4/host.ts
|
|
386
|
+
const hostSchema = (z) => z.string().describe(require_redis.descriptions$5.host).default(require_redis.defaults$4.host);
|
|
387
|
+
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region ../schemas/src/zod/v4/jwt.ts
|
|
390
|
+
const jwtSecret = (z) => z.string().describe(require_redis.descriptions$5.jwtSecret).min(require_redis.constraints$5.jwtSecretMinLength, { error: require_redis.messages$5.jwtSecretMin });
|
|
391
|
+
const jwtAccessTokenExpiresIn = (z) => z.string().describe(require_redis.descriptions$5.jwtAccessTokenExpiresIn).regex(require_redis.patterns$4.jwtTokenDuration, { error: require_redis.messages$5.jwtDurationFormat }).default(require_redis.defaults$4.jwtAccessTokenExpiresIn);
|
|
392
|
+
const jwtRefreshTokenExpiresIn = (z) => z.string().describe(require_redis.descriptions$5.jwtRefreshTokenExpiresIn).regex(require_redis.patterns$4.jwtTokenDuration, { error: require_redis.messages$5.jwtDurationFormat }).default(require_redis.defaults$4.jwtRefreshTokenExpiresIn);
|
|
393
|
+
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region ../schemas/src/zod/v4/kafka.ts
|
|
396
|
+
const kafkaBrokers = (z) => z.string().describe(require_redis.descriptions$4.kafkaBrokers).regex(require_redis.patterns$3.hostPortList, { message: require_redis.messages$4.hostPortListFormat });
|
|
397
|
+
const kafkaClientId = (z) => z.string().describe(require_redis.descriptions$4.kafkaClientId).min(1, { message: require_redis.messages$4.kafkaClientIdRequired });
|
|
398
|
+
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region ../schemas/src/zod/v4/kubernetes.ts
|
|
401
|
+
const kubernetesNamespace = (z) => z.string().describe(require_redis.descriptions$4.kubernetesNamespace).regex(require_redis.patterns$3.kubernetesName, { message: require_redis.messages$4.kubernetesNameFormat }).default(require_redis.defaults$3.kubernetesNamespace);
|
|
402
|
+
const kubernetesServiceAccount = (z) => z.string().describe(require_redis.descriptions$4.kubernetesServiceAccount).regex(require_redis.patterns$3.kubernetesName, { message: require_redis.messages$4.kubernetesServiceAccountFormat }).optional();
|
|
403
|
+
|
|
404
|
+
//#endregion
|
|
405
|
+
//#region ../schemas/src/zod/v4/logLevel.ts
|
|
406
|
+
const logLevelSchema = (z) => z.enum([...require_redis.enumOptions.logLevel]).describe(require_redis.descriptions$5.logLevel).default(require_redis.defaults$4.logLevel);
|
|
407
|
+
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region ../schemas/src/zod/v4/rabbitmq.ts
|
|
410
|
+
const rabbitmqUrl = (z) => z.string().describe(require_redis.descriptions$4.rabbitmqUrl).regex(require_redis.patterns$3.rabbitmqUrl, { message: require_redis.messages$4.rabbitmqUrlFormat });
|
|
411
|
+
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region ../schemas/src/zod/v4/monitoring.ts
|
|
414
|
+
const newRelicLicenseKey = (z) => z.string().describe(require_redis.descriptions$4.newRelicLicenseKey).length(require_redis.constraints$4.newRelicLicenseKeyLength, { message: require_redis.messages$4.newRelicLicenseKeyLength }).optional();
|
|
415
|
+
const sentryDsn = (z) => z.string().describe(require_redis.descriptions$4.sentryDsn).regex(require_redis.patterns$3.sentryDsn, { message: require_redis.messages$4.sentryDsnFormat }).optional();
|
|
416
|
+
const jaegerEndpoint = (z) => z.string().url({ message: require_redis.messages$4.jaegerEndpointFormat }).describe(require_redis.descriptions$4.jaegerEndpoint).optional();
|
|
417
|
+
const prometheusPort = (z) => z.number().describe(require_redis.descriptions$4.prometheusPort).int({ message: require_redis.messages$4.prometheusPortInt }).min(require_redis.constraints$4.prometheusPortMin, { message: require_redis.messages$4.prometheusPortMin }).max(require_redis.constraints$4.prometheusPortMax, { message: require_redis.messages$4.prometheusPortMax }).default(require_redis.defaults$3.prometheusPort);
|
|
418
|
+
|
|
419
|
+
//#endregion
|
|
420
|
+
//#region ../schemas/src/zod/v4/node.ts
|
|
421
|
+
const nodeEnv = (z) => z.enum([...require_redis.enumOptions.nodeEnv]).describe(require_redis.descriptions$5.nodeEnv).default(require_redis.defaults$4.nodeEnv);
|
|
422
|
+
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region ../schemas/src/zod/v4/oauth.ts
|
|
425
|
+
const oauthClientId = (z) => z.string().describe(require_redis.descriptions$2.clientId).min(require_redis.constraints$2.clientIdMinLength, { error: require_redis.messages$2.clientIdRequired });
|
|
426
|
+
const oauthClientSecret = (z) => z.string().describe(require_redis.descriptions$2.clientSecret).min(require_redis.constraints$2.clientSecretMinLength, { error: require_redis.messages$2.clientSecretMinLength });
|
|
427
|
+
const oauthRedirectUri = (z) => z.url({ message: require_redis.messages$2.redirectUriInvalid }).describe(require_redis.descriptions$2.redirectUri);
|
|
428
|
+
const oauthScope = (z) => z.string().describe(require_redis.descriptions$2.scope).min(require_redis.constraints$2.scopeMinLength, { error: require_redis.messages$2.scopeRequired });
|
|
429
|
+
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region ../schemas/src/zod/v4/openai.ts
|
|
432
|
+
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 });
|
|
433
|
+
const openaiOrganizationId = (z) => z.string().describe(require_redis.descriptions$1.organizationId).regex(require_redis.patterns$1.organizationId, { message: require_redis.messages$1.organizationFormat }).optional();
|
|
434
|
+
const openaiProjectId = (z) => z.string().describe(require_redis.descriptions$1.projectId).regex(require_redis.patterns$1.projectId, { message: require_redis.messages$1.projectFormat }).optional();
|
|
435
|
+
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();
|
|
436
|
+
const openaiModel = (z) => z.string().describe(require_redis.descriptions$1.model).min(1, { message: require_redis.messages$1.modelRequired }).optional();
|
|
437
|
+
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);
|
|
438
|
+
|
|
439
|
+
//#endregion
|
|
440
|
+
//#region ../schemas/src/zod/v4/redis.ts
|
|
441
|
+
const redisUrl = (z) => z.string().describe(require_redis.descriptions.url).regex(require_redis.patterns.url, { message: require_redis.messages.urlFormat });
|
|
442
|
+
const redisHost = (z) => z.string().describe(require_redis.descriptions.host).min(1, { message: require_redis.messages.hostRequired }).regex(require_redis.patterns.host, { message: require_redis.messages.hostFormat });
|
|
443
|
+
const redisPort = (z) => z.number().describe(require_redis.descriptions.port).int({ message: require_redis.messages.portInteger }).min(require_redis.constraints.portMin, { message: require_redis.messages.portMin }).max(require_redis.constraints.portMax, { message: require_redis.messages.portMax }).default(require_redis.defaults.port);
|
|
444
|
+
const redisUsername = (z) => z.string().describe(require_redis.descriptions.username).min(1, { message: require_redis.messages.usernameRequired });
|
|
445
|
+
const redisPassword = (z) => z.string().describe(require_redis.descriptions.password).min(1, { message: require_redis.messages.passwordRequired });
|
|
446
|
+
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);
|
|
447
|
+
const redisTls = (z) => z.boolean().describe(require_redis.descriptions.tls).default(require_redis.defaults.tls);
|
|
448
|
+
const redisTlsCaCertPath = (z) => z.string().describe(require_redis.descriptions.tlsCaCertPath).min(1, { message: require_redis.messages.tlsCaCertPathRequired });
|
|
449
|
+
|
|
450
|
+
//#endregion
|
|
451
|
+
//#region ../schemas/src/zod/v4/port.ts
|
|
452
|
+
const port = (z) => z.coerce.number().describe(require_redis.descriptions$5.port).int({ error: require_redis.messages$5.portInt }).min(require_redis.constraints$5.portMin, { error: require_redis.messages$5.portMin }).max(require_redis.constraints$5.portMax, { error: require_redis.messages$5.portMax }).default(require_redis.defaults$4.port);
|
|
453
|
+
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region ../schemas/src/zod/v4/rateLimit.ts
|
|
456
|
+
const rateLimitRpm = (z) => z.coerce.number().describe(require_redis.descriptions$5.rateLimitRpm).int({ error: require_redis.messages$5.rateLimitRpmInt }).min(require_redis.constraints$5.rateLimitRpmMin, { error: require_redis.messages$5.rateLimitRpmMin }).max(require_redis.constraints$5.rateLimitRpmMax, { error: require_redis.messages$5.rateLimitRpmMax }).default(require_redis.defaults$4.rateLimitRpm);
|
|
457
|
+
const rateLimitWindow = (z) => z.coerce.number().describe(require_redis.descriptions$5.rateLimitWindow).int({ error: require_redis.messages$5.rateLimitWindowInt }).min(require_redis.constraints$5.rateLimitWindowMin, { error: require_redis.messages$5.rateLimitWindowMin }).max(require_redis.constraints$5.rateLimitWindowMax, { error: require_redis.messages$5.rateLimitWindowMax }).default(require_redis.defaults$4.rateLimitWindow);
|
|
458
|
+
|
|
459
|
+
//#endregion
|
|
460
|
+
//#region ../schemas/src/zod/v4/webhook.ts
|
|
461
|
+
const webhookUrl = (z) => z.url({ message: require_redis.messages$5.mustBeValidUrl }).describe(require_redis.descriptions$5.webhookUrl).regex(require_redis.patterns$4.httpsProtocol, { error: require_redis.messages$5.httpsProtocolRequired });
|
|
462
|
+
|
|
463
|
+
//#endregion
|
|
464
|
+
//#region ../schemas/src/zod/v4/index.ts
|
|
465
|
+
var v4_default = (z) => ({
|
|
466
|
+
API_KEY: apiKey(z),
|
|
467
|
+
API_BASE_URL: apiBaseUrl(z),
|
|
468
|
+
API_TIMEOUT: apiTimeout(z),
|
|
469
|
+
APPLICATIONINSIGHTS_CONNECTION_STRING: applicationInsightsConnectionString(z),
|
|
470
|
+
APPINSIGHTS_INSTRUMENTATIONKEY: appInsightsInstrumentationKey(z),
|
|
471
|
+
APPINSIGHTS_ROLE_NAME: appInsightsRoleName(z),
|
|
472
|
+
APPINSIGHTS_SAMPLING_RATE: appInsightsSamplingRate(z),
|
|
473
|
+
APPINSIGHTS_AUTOCOLLECT_DEPENDENCIES: appInsightsAutocollectDependencies(z),
|
|
474
|
+
APPINSIGHTS_AUTOCOLLECT_EXCEPTIONS: appInsightsAutocollectExceptions(z),
|
|
475
|
+
APPINSIGHTS_AUTOCOLLECT_CONSOLE: appInsightsAutocollectConsole(z),
|
|
476
|
+
APPINSIGHTS_AUTOCOLLECT_PERFORMANCE: appInsightsAutocollectPerformance(z),
|
|
477
|
+
AWS_ACCESS_KEY_ID: awsAccessKeyId(z),
|
|
478
|
+
AWS_SECRET_ACCESS_KEY: awsSecretAccessKey(z),
|
|
479
|
+
AWS_REGION: awsRegion(z),
|
|
480
|
+
AWS_S3_BUCKET_NAME: awsS3BucketName(z),
|
|
481
|
+
AWS_SQS_QUEUE_URL: awsSqsQueueUrl(z),
|
|
482
|
+
AZURE_STORAGE_CONNECTION_STRING: azureStorageConnectionString(z),
|
|
483
|
+
AZURE_STORAGE_ACCOUNT_NAME: azureStorageAccountName(z),
|
|
484
|
+
AZURE_STORAGE_ACCOUNT_KEY: azureStorageAccountKey(z),
|
|
485
|
+
AZURE_SERVICE_BUS_CONNECTION_STRING: azureServiceBusConnectionString(z),
|
|
486
|
+
AZURE_EVENT_HUB_CONNECTION_STRING: azureEventHubConnectionString(z),
|
|
487
|
+
MEMCACHED_SERVERS: memcachedServers(z),
|
|
488
|
+
CORS_ORIGIN: cors(z),
|
|
489
|
+
DATABASE_URL: databaseUrl(z),
|
|
490
|
+
DATABASE_HOST: databaseHost(z),
|
|
491
|
+
DATABASE_PORT: databasePort(z),
|
|
492
|
+
DATABASE_NAME: databaseName(z),
|
|
493
|
+
DATABASE_USERNAME: databaseUsername(z),
|
|
494
|
+
DATABASE_PASSWORD: databasePassword(z),
|
|
495
|
+
DATABASE_SCHEMA: databaseSchema(z),
|
|
496
|
+
DATABASE_POOL_SIZE: databasePoolSize(z),
|
|
497
|
+
DATABASE_TIMEOUT: databaseTimeout(z),
|
|
498
|
+
DATABASE_SSL: databaseSsl(z),
|
|
499
|
+
DATADOG_API_KEY: datadogApiKey(z),
|
|
500
|
+
DOCKER_REGISTRY_URL: dockerRegistryUrl(z),
|
|
501
|
+
DOCKER_REGISTRY_USERNAME: dockerRegistryUsername(z),
|
|
502
|
+
DOCKER_REGISTRY_PASSWORD: dockerRegistryPassword(z),
|
|
503
|
+
ELASTICSEARCH_URL: elasticsearchUrl(z),
|
|
504
|
+
ELASTICSEARCH_USERNAME: elasticsearchUsername(z),
|
|
505
|
+
ELASTICSEARCH_PASSWORD: elasticsearchPassword(z),
|
|
506
|
+
ENCRYPTION_KEY: encryptionKey(z),
|
|
507
|
+
HOST: hostSchema(z),
|
|
508
|
+
PORT: port(z),
|
|
509
|
+
JWT_SECRET: jwtSecret(z),
|
|
510
|
+
JWT_ACCESS_TOKEN_EXPIRES_IN: jwtAccessTokenExpiresIn(z),
|
|
511
|
+
JWT_REFRESH_TOKEN_EXPIRES_IN: jwtRefreshTokenExpiresIn(z),
|
|
512
|
+
KAFKA_BROKERS: kafkaBrokers(z),
|
|
513
|
+
KAFKA_CLIENT_ID: kafkaClientId(z),
|
|
514
|
+
KUBERNETES_NAMESPACE: kubernetesNamespace(z),
|
|
515
|
+
KUBERNETES_SERVICE_ACCOUNT: kubernetesServiceAccount(z),
|
|
516
|
+
LOG_LEVEL: logLevelSchema(z),
|
|
517
|
+
RABBITMQ_URL: rabbitmqUrl(z),
|
|
518
|
+
NEW_RELIC_LICENSE_KEY: newRelicLicenseKey(z),
|
|
519
|
+
SENTRY_DSN: sentryDsn(z),
|
|
520
|
+
JAEGER_ENDPOINT: jaegerEndpoint(z),
|
|
521
|
+
PROMETHEUS_PORT: prometheusPort(z),
|
|
522
|
+
NODE_ENV: nodeEnv(z),
|
|
523
|
+
OAUTH_CLIENT_ID: oauthClientId(z),
|
|
524
|
+
OAUTH_CLIENT_SECRET: oauthClientSecret(z),
|
|
525
|
+
OAUTH_REDIRECT_URI: oauthRedirectUri(z),
|
|
526
|
+
OAUTH_SCOPE: oauthScope(z),
|
|
527
|
+
OPENAI_API_KEY: openaiApiKey(z),
|
|
528
|
+
OPENAI_ORGANIZATION_ID: openaiOrganizationId(z),
|
|
529
|
+
OPENAI_PROJECT_ID: openaiProjectId(z),
|
|
530
|
+
OPENAI_BASE_URL: openaiBaseUrl(z),
|
|
531
|
+
OPENAI_MODEL: openaiModel(z),
|
|
532
|
+
OPENAI_TIMEOUT: openaiTimeout(z),
|
|
533
|
+
REDIS_URL: redisUrl(z),
|
|
534
|
+
REDIS_HOST: redisHost(z),
|
|
535
|
+
REDIS_PORT: redisPort(z),
|
|
536
|
+
REDIS_USERNAME: redisUsername(z),
|
|
537
|
+
REDIS_PASSWORD: redisPassword(z),
|
|
538
|
+
REDIS_DB: redisDb(z),
|
|
539
|
+
REDIS_TLS: redisTls(z),
|
|
540
|
+
REDIS_TLS_CA_CERT_PATH: redisTlsCaCertPath(z),
|
|
541
|
+
RATE_LIMIT_RPM: rateLimitRpm(z),
|
|
542
|
+
RATE_LIMIT_WINDOW: rateLimitWindow(z),
|
|
543
|
+
WEBHOOK_URL: webhookUrl(z)
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/schemas/zod.ts
|
|
548
|
+
var zod_default = v4_default(external_exports);
|
|
549
|
+
|
|
550
|
+
//#endregion
|
|
551
|
+
exports.apiBaseUrl = apiBaseUrl;
|
|
552
|
+
exports.apiKey = apiKey;
|
|
553
|
+
exports.apiTimeout = apiTimeout;
|
|
554
|
+
exports.appInsightsAutocollectConsole = appInsightsAutocollectConsole;
|
|
555
|
+
exports.appInsightsAutocollectDependencies = appInsightsAutocollectDependencies;
|
|
556
|
+
exports.appInsightsAutocollectExceptions = appInsightsAutocollectExceptions;
|
|
557
|
+
exports.appInsightsAutocollectPerformance = appInsightsAutocollectPerformance;
|
|
558
|
+
exports.appInsightsInstrumentationKey = appInsightsInstrumentationKey;
|
|
559
|
+
exports.appInsightsRoleName = appInsightsRoleName;
|
|
560
|
+
exports.appInsightsSamplingRate = appInsightsSamplingRate;
|
|
561
|
+
exports.applicationInsightsConnectionString = applicationInsightsConnectionString;
|
|
562
|
+
exports.awsAccessKeyId = awsAccessKeyId;
|
|
563
|
+
exports.awsRegion = awsRegion;
|
|
564
|
+
exports.awsS3BucketName = awsS3BucketName;
|
|
565
|
+
exports.awsSecretAccessKey = awsSecretAccessKey;
|
|
566
|
+
exports.awsSqsQueueUrl = awsSqsQueueUrl;
|
|
567
|
+
exports.azureEventHubConnectionString = azureEventHubConnectionString;
|
|
568
|
+
exports.azureServiceBusConnectionString = azureServiceBusConnectionString;
|
|
569
|
+
exports.azureStorageAccountKey = azureStorageAccountKey;
|
|
570
|
+
exports.azureStorageAccountName = azureStorageAccountName;
|
|
571
|
+
exports.azureStorageConnectionString = azureStorageConnectionString;
|
|
572
|
+
exports.cors = cors;
|
|
573
|
+
exports.databaseHost = databaseHost;
|
|
574
|
+
exports.databaseName = databaseName;
|
|
575
|
+
exports.databasePassword = databasePassword;
|
|
576
|
+
exports.databasePoolSize = databasePoolSize;
|
|
577
|
+
exports.databasePort = databasePort;
|
|
578
|
+
exports.databaseSchema = databaseSchema;
|
|
579
|
+
exports.databaseSsl = databaseSsl;
|
|
580
|
+
exports.databaseTimeout = databaseTimeout;
|
|
581
|
+
exports.databaseUrl = databaseUrl;
|
|
582
|
+
exports.databaseUsername = databaseUsername;
|
|
583
|
+
exports.datadogApiKey = datadogApiKey;
|
|
584
|
+
exports.default = zod_default;
|
|
585
|
+
exports.dockerRegistryPassword = dockerRegistryPassword;
|
|
586
|
+
exports.dockerRegistryUrl = dockerRegistryUrl;
|
|
587
|
+
exports.dockerRegistryUsername = dockerRegistryUsername;
|
|
588
|
+
exports.elasticsearchPassword = elasticsearchPassword;
|
|
589
|
+
exports.elasticsearchUrl = elasticsearchUrl;
|
|
590
|
+
exports.elasticsearchUsername = elasticsearchUsername;
|
|
591
|
+
exports.encryptionKey = encryptionKey;
|
|
592
|
+
exports.hostSchema = hostSchema;
|
|
593
|
+
exports.jaegerEndpoint = jaegerEndpoint;
|
|
594
|
+
exports.jwtAccessTokenExpiresIn = jwtAccessTokenExpiresIn;
|
|
595
|
+
exports.jwtRefreshTokenExpiresIn = jwtRefreshTokenExpiresIn;
|
|
596
|
+
exports.jwtSecret = jwtSecret;
|
|
597
|
+
exports.kafkaBrokers = kafkaBrokers;
|
|
598
|
+
exports.kafkaClientId = kafkaClientId;
|
|
599
|
+
exports.kubernetesNamespace = kubernetesNamespace;
|
|
600
|
+
exports.kubernetesServiceAccount = kubernetesServiceAccount;
|
|
601
|
+
exports.logLevelSchema = logLevelSchema;
|
|
602
|
+
exports.memcachedServers = memcachedServers;
|
|
603
|
+
exports.newRelicLicenseKey = newRelicLicenseKey;
|
|
604
|
+
exports.nodeEnv = nodeEnv;
|
|
605
|
+
exports.oauthClientId = oauthClientId;
|
|
606
|
+
exports.oauthClientSecret = oauthClientSecret;
|
|
607
|
+
exports.oauthRedirectUri = oauthRedirectUri;
|
|
608
|
+
exports.oauthScope = oauthScope;
|
|
609
|
+
exports.openaiApiKey = openaiApiKey;
|
|
610
|
+
exports.openaiBaseUrl = openaiBaseUrl;
|
|
611
|
+
exports.openaiModel = openaiModel;
|
|
612
|
+
exports.openaiOrganizationId = openaiOrganizationId;
|
|
613
|
+
exports.openaiProjectId = openaiProjectId;
|
|
614
|
+
exports.openaiTimeout = openaiTimeout;
|
|
615
|
+
exports.port = port;
|
|
616
|
+
exports.prometheusPort = prometheusPort;
|
|
617
|
+
exports.rabbitmqUrl = rabbitmqUrl;
|
|
618
|
+
exports.rateLimitRpm = rateLimitRpm;
|
|
619
|
+
exports.rateLimitWindow = rateLimitWindow;
|
|
620
|
+
exports.redisDb = redisDb;
|
|
621
|
+
exports.redisHost = redisHost;
|
|
622
|
+
exports.redisPassword = redisPassword;
|
|
623
|
+
exports.redisPort = redisPort;
|
|
624
|
+
exports.redisTls = redisTls;
|
|
625
|
+
exports.redisTlsCaCertPath = redisTlsCaCertPath;
|
|
626
|
+
exports.redisUrl = redisUrl;
|
|
627
|
+
exports.redisUsername = redisUsername;
|
|
628
|
+
exports.sentryDsn = sentryDsn;
|
|
629
|
+
exports.webhookUrl = webhookUrl;
|