@e-n-v/env 0.0.5 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BooleanMap-DmFnCA-O.d.ts → BooleanMap-BPQuO3Ae.d.ts} +1 -3
- package/dist/{BooleanMap-B2eIP3tZ.d.cts → BooleanMap-CX_YrPCf.d.cts} +1 -3
- package/dist/EnvChannelOptions-BbKeuO-o.d.cts +366 -0
- package/dist/EnvChannelOptions-BbKeuO-o.d.ts +366 -0
- package/dist/{EnvSource-DA3ZGlES.js → EnvSource-WAGWqRVM.js} +6 -10
- package/dist/{EnvSource-BVnmdHku.cjs → EnvSource-s8F_M_6O.cjs} +21 -28
- package/dist/EnvVarSchema-CDZGmnex.cjs +15 -0
- package/dist/EnvVarSchema-Dr6q7jf6.js +10 -0
- package/dist/{ProcessEnvChannel-Do4-yiLI.d.ts → ProcessEnvChannel-CwhV7_EB.d.ts} +2 -4
- package/dist/{ProcessEnvChannel-D465c-dp.d.cts → ProcessEnvChannel-DWHPZePe.d.cts} +2 -4
- package/dist/{StringEnvVarSchema-B8MT7htU.d.ts → StringEnvVarSchema-D9Jr1Aws.d.cts} +5 -3
- package/dist/{StringEnvVarSchema-BF6C0nyT.d.cts → StringEnvVarSchema-D9Jr1Aws.d.ts} +5 -3
- package/dist/channels.cjs +3 -4
- package/dist/channels.d.cts +3 -4
- package/dist/channels.d.ts +3 -4
- package/dist/channels.js +2 -4
- package/dist/cli.cjs +10 -23
- package/dist/cli.d.cts +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -13
- package/dist/core.cjs +13 -14
- package/dist/core.d.cts +147 -6
- package/dist/core.d.ts +147 -6
- package/dist/core.js +9 -11
- package/dist/{custom-Bt_wnxIu.js → custom-Bd-jLg80.js} +3 -12
- package/dist/{custom-D_Rqjm09.cjs → custom-Dyb9TnER.cjs} +48 -58
- package/dist/files.cjs +6 -6
- package/dist/files.d.cts +2 -2
- package/dist/files.d.ts +2 -2
- package/dist/files.js +2 -5
- package/dist/{parse-DwtLpVhC.d.ts → index-B2eNij2x.d.cts} +1 -2
- package/dist/{parse-BT1QSa5e.d.cts → index-BHTM8nxS.d.ts} +1 -2
- package/dist/{prompt-yKdccbtZ.d.ts → index-BKBW9Dxs.d.cts} +3 -4
- package/dist/{prompt-C5WudV9x.d.cts → index-CEyOIRdj.d.ts} +3 -4
- package/dist/{EnvModel-CrGclUpJ.d.cts → index-Cb0abjLf.d.ts} +59 -7
- package/dist/{EnvModel-D8rt0EJ6.d.ts → index-Cz3frUwZ.d.cts} +58 -6
- package/dist/index.cjs +33 -0
- package/dist/index.d.cts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +15 -0
- package/dist/model.cjs +10 -11
- package/dist/model.d.cts +2 -35
- package/dist/model.d.ts +2 -35
- package/dist/model.js +2 -6
- package/dist/parse.cjs +14 -14
- package/dist/parse.d.cts +5 -8
- package/dist/parse.d.ts +5 -8
- package/dist/parse.js +4 -7
- package/dist/preprocessors-BKuIcZa1.d.ts +83 -0
- package/dist/preprocessors-DFVyF0c7.d.cts +83 -0
- package/dist/prompt.cjs +12 -15
- package/dist/prompt.d.cts +5 -10
- package/dist/prompt.d.ts +5 -10
- package/dist/prompt.js +3 -9
- package/dist/{redis-EcC7TX3K.cjs → redis-CyTF0SYT.cjs} +321 -253
- package/dist/{redis-CJOpRPjc.js → redis-D18f4ztf.js} +76 -37
- package/dist/{index-Dq_0aeAL.d.ts → redis-DsW-Vkwq.d.cts} +26 -6
- package/dist/{index-D8pslhp4.d.cts → redis-tRD4nAy_.d.ts} +26 -6
- package/dist/{resolveChannel-v9BDsw-M.js → resolveChannel-D1Fzl4TL.js} +59 -63
- package/dist/{resolveChannel-CjAuxy3p.cjs → resolveChannel-DxZNYdDe.cjs} +84 -92
- package/dist/{chunk-pbleEpgJ.cjs → rolldown-runtime-C0BPl7ul.cjs} +15 -16
- package/dist/{chunk-Bp6m_JJh.js → rolldown-runtime-D7D4PA-g.js} +4 -4
- package/dist/{schema-jN4EtvEP.d.ts → schema-B-JLVS42.d.ts} +1 -3
- package/dist/{schema-DH4GiW9A.d.cts → schema-B1i83alz.d.cts} +1 -3
- package/dist/schema-CtP5lpU1.js +11 -0
- package/dist/schema-D9nJKipf.cjs +22 -0
- package/dist/schemas/zod.cjs +112 -359
- package/dist/schemas/zod.d.cts +117 -87
- package/dist/schemas/zod.d.ts +117 -87
- package/dist/schemas/zod.js +116 -377
- package/dist/schemas.cjs +152 -133
- package/dist/schemas.d.cts +2 -3
- package/dist/schemas.d.ts +2 -3
- package/dist/schemas.js +2 -6
- package/dist/{src-Cjo2XA4n.cjs → src-5GYFbR9n.cjs} +21 -25
- package/dist/{src-BBwjK5SK.js → src-8rEOvFG5.js} +11 -15
- package/dist/{src-Dtv7TlJx.js → src-CdzAzdq-.js} +100 -114
- package/dist/{src-CLTURaoo.js → src-Cg49gGJb.js} +18 -44
- package/dist/{src-DWYoqPX1.cjs → src-CttkcdpE.cjs} +114 -133
- package/dist/{src-XjL5cyPG.cjs → src-D5KzIEH_.cjs} +130 -107
- package/dist/src-DB0Har0j.cjs +1632 -0
- package/dist/{src-CVdUqK3q.js → src-DWc-WWjX.js} +107 -86
- package/dist/{src-B7FG1rak.js → src-DvUBRBe3.js} +205 -116
- package/dist/{src-meUnCASg.cjs → src-TZx_e95f.cjs} +87 -132
- package/dist/{vars-BNVI6k89.d.ts → vars-DtzGL5Nc.d.cts} +1 -4
- package/dist/{vars-CptZRPX5.d.cts → vars-obKYxaSu.d.ts} +1 -4
- package/dist/vars.cjs +175 -138
- package/dist/vars.d.cts +3 -7
- package/dist/vars.d.ts +3 -7
- package/dist/vars.js +21 -9
- package/package.json +9 -8
- package/dist/EnvChannelOptions-BPkWDrmr.d.cts +0 -108
- package/dist/EnvChannelOptions-CRwDLWjd.d.ts +0 -108
- package/dist/coerce-DNIuYAx4.js +0 -11028
- package/dist/coerce-b7UVodS9.cjs +0 -12365
- package/dist/model-Dic8IJsf.d.ts +0 -29
- package/dist/model-ft0WhSSS.d.cts +0 -29
- package/dist/root.cjs +0 -36
- package/dist/root.d.cts +0 -21
- package/dist/root.d.ts +0 -21
- package/dist/root.js +0 -21
- package/dist/src-DZmpNGrQ.cjs +0 -1411
- package/dist/validate-BxA3a-ns.d.cts +0 -203
- package/dist/validate-CyxrRacF.d.ts +0 -203
- package/dist/vars-CYOaskkK.cjs +0 -27
- package/dist/vars-DOW0LiiN.js +0 -22
- /package/dist/{EnvChannel-LMIRYvT1.d.cts → EnvChannel-CfSwa_25.d.cts} +0 -0
- /package/dist/{EnvChannel-w27PEm7x.d.ts → EnvChannel-CfSwa_25.d.ts} +0 -0
package/dist/schemas/zod.js
CHANGED
|
@@ -1,274 +1,12 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import { A as defaults, C as constraints$4, D as patterns$3, E as messages$4, I as toZodMessages, M as enumOptions, N as messages, P as patterns, T as descriptions$4, _ as constraints$5, a as patterns$1, b as messages$5, c as defaults$2, d as patterns$2, h as messages$3, i as messages$1, j as descriptions, k as constraints, l as descriptions$2, m as descriptions$3, n as defaults$1, p as constraints$3, r as descriptions$1, s as constraints$2, t as constraints$1, u as messages$2, v as defaults$4, w as defaults$3, x as patterns$4, y as descriptions$5 } from "../redis-CJOpRPjc.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/compat.js
|
|
6
|
-
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
7
|
-
const ZodIssueCode = {
|
|
8
|
-
invalid_type: "invalid_type",
|
|
9
|
-
too_big: "too_big",
|
|
10
|
-
too_small: "too_small",
|
|
11
|
-
invalid_format: "invalid_format",
|
|
12
|
-
not_multiple_of: "not_multiple_of",
|
|
13
|
-
unrecognized_keys: "unrecognized_keys",
|
|
14
|
-
invalid_union: "invalid_union",
|
|
15
|
-
invalid_key: "invalid_key",
|
|
16
|
-
invalid_element: "invalid_element",
|
|
17
|
-
invalid_value: "invalid_value",
|
|
18
|
-
custom: "custom"
|
|
19
|
-
};
|
|
20
|
-
/** @deprecated Use `z.config(params)` instead. */
|
|
21
|
-
function setErrorMap(map$1) {
|
|
22
|
-
config({ customError: map$1 });
|
|
23
|
-
}
|
|
24
|
-
/** @deprecated Use `z.config()` instead. */
|
|
25
|
-
function getErrorMap() {
|
|
26
|
-
return config().customError;
|
|
27
|
-
}
|
|
28
|
-
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
29
|
-
var ZodFirstPartyTypeKind;
|
|
30
|
-
(function(ZodFirstPartyTypeKind$1) {})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/external.js
|
|
34
|
-
var external_exports = /* @__PURE__ */ __export({
|
|
35
|
-
$brand: () => $brand,
|
|
36
|
-
$input: () => $input,
|
|
37
|
-
$output: () => $output,
|
|
38
|
-
NEVER: () => NEVER,
|
|
39
|
-
TimePrecision: () => TimePrecision,
|
|
40
|
-
ZodAny: () => ZodAny,
|
|
41
|
-
ZodArray: () => ZodArray,
|
|
42
|
-
ZodBase64: () => ZodBase64,
|
|
43
|
-
ZodBase64URL: () => ZodBase64URL,
|
|
44
|
-
ZodBigInt: () => ZodBigInt,
|
|
45
|
-
ZodBigIntFormat: () => ZodBigIntFormat,
|
|
46
|
-
ZodBoolean: () => ZodBoolean,
|
|
47
|
-
ZodCIDRv4: () => ZodCIDRv4,
|
|
48
|
-
ZodCIDRv6: () => ZodCIDRv6,
|
|
49
|
-
ZodCUID: () => ZodCUID,
|
|
50
|
-
ZodCUID2: () => ZodCUID2,
|
|
51
|
-
ZodCatch: () => ZodCatch,
|
|
52
|
-
ZodCodec: () => ZodCodec,
|
|
53
|
-
ZodCustom: () => ZodCustom,
|
|
54
|
-
ZodCustomStringFormat: () => ZodCustomStringFormat,
|
|
55
|
-
ZodDate: () => ZodDate,
|
|
56
|
-
ZodDefault: () => ZodDefault,
|
|
57
|
-
ZodDiscriminatedUnion: () => ZodDiscriminatedUnion,
|
|
58
|
-
ZodE164: () => ZodE164,
|
|
59
|
-
ZodEmail: () => ZodEmail,
|
|
60
|
-
ZodEmoji: () => ZodEmoji,
|
|
61
|
-
ZodEnum: () => ZodEnum,
|
|
62
|
-
ZodError: () => ZodError,
|
|
63
|
-
ZodFile: () => ZodFile,
|
|
64
|
-
ZodFirstPartyTypeKind: () => ZodFirstPartyTypeKind,
|
|
65
|
-
ZodFunction: () => ZodFunction,
|
|
66
|
-
ZodGUID: () => ZodGUID,
|
|
67
|
-
ZodIPv4: () => ZodIPv4,
|
|
68
|
-
ZodIPv6: () => ZodIPv6,
|
|
69
|
-
ZodISODate: () => ZodISODate,
|
|
70
|
-
ZodISODateTime: () => ZodISODateTime,
|
|
71
|
-
ZodISODuration: () => ZodISODuration,
|
|
72
|
-
ZodISOTime: () => ZodISOTime,
|
|
73
|
-
ZodIntersection: () => ZodIntersection,
|
|
74
|
-
ZodIssueCode: () => ZodIssueCode,
|
|
75
|
-
ZodJWT: () => ZodJWT,
|
|
76
|
-
ZodKSUID: () => ZodKSUID,
|
|
77
|
-
ZodLazy: () => ZodLazy,
|
|
78
|
-
ZodLiteral: () => ZodLiteral,
|
|
79
|
-
ZodMap: () => ZodMap,
|
|
80
|
-
ZodNaN: () => ZodNaN,
|
|
81
|
-
ZodNanoID: () => ZodNanoID,
|
|
82
|
-
ZodNever: () => ZodNever,
|
|
83
|
-
ZodNonOptional: () => ZodNonOptional,
|
|
84
|
-
ZodNull: () => ZodNull,
|
|
85
|
-
ZodNullable: () => ZodNullable,
|
|
86
|
-
ZodNumber: () => ZodNumber,
|
|
87
|
-
ZodNumberFormat: () => ZodNumberFormat,
|
|
88
|
-
ZodObject: () => ZodObject,
|
|
89
|
-
ZodOptional: () => ZodOptional,
|
|
90
|
-
ZodPipe: () => ZodPipe,
|
|
91
|
-
ZodPrefault: () => ZodPrefault,
|
|
92
|
-
ZodPromise: () => ZodPromise,
|
|
93
|
-
ZodReadonly: () => ZodReadonly,
|
|
94
|
-
ZodRealError: () => ZodRealError,
|
|
95
|
-
ZodRecord: () => ZodRecord,
|
|
96
|
-
ZodSet: () => ZodSet,
|
|
97
|
-
ZodString: () => ZodString,
|
|
98
|
-
ZodStringFormat: () => ZodStringFormat,
|
|
99
|
-
ZodSuccess: () => ZodSuccess,
|
|
100
|
-
ZodSymbol: () => ZodSymbol,
|
|
101
|
-
ZodTemplateLiteral: () => ZodTemplateLiteral,
|
|
102
|
-
ZodTransform: () => ZodTransform,
|
|
103
|
-
ZodTuple: () => ZodTuple,
|
|
104
|
-
ZodType: () => ZodType,
|
|
105
|
-
ZodULID: () => ZodULID,
|
|
106
|
-
ZodURL: () => ZodURL,
|
|
107
|
-
ZodUUID: () => ZodUUID,
|
|
108
|
-
ZodUndefined: () => ZodUndefined,
|
|
109
|
-
ZodUnion: () => ZodUnion,
|
|
110
|
-
ZodUnknown: () => ZodUnknown,
|
|
111
|
-
ZodVoid: () => ZodVoid,
|
|
112
|
-
ZodXID: () => ZodXID,
|
|
113
|
-
_ZodString: () => _ZodString,
|
|
114
|
-
_default: () => _default,
|
|
115
|
-
_function: () => _function,
|
|
116
|
-
any: () => any,
|
|
117
|
-
array: () => array,
|
|
118
|
-
base64: () => base64,
|
|
119
|
-
base64url: () => base64url,
|
|
120
|
-
bigint: () => bigint,
|
|
121
|
-
boolean: () => boolean,
|
|
122
|
-
catch: () => _catch,
|
|
123
|
-
check: () => check,
|
|
124
|
-
cidrv4: () => cidrv4,
|
|
125
|
-
cidrv6: () => cidrv6,
|
|
126
|
-
clone: () => clone,
|
|
127
|
-
codec: () => codec,
|
|
128
|
-
coerce: () => coerce_exports,
|
|
129
|
-
config: () => config,
|
|
130
|
-
core: () => core_exports,
|
|
131
|
-
cuid: () => cuid,
|
|
132
|
-
cuid2: () => cuid2,
|
|
133
|
-
custom: () => custom,
|
|
134
|
-
date: () => date,
|
|
135
|
-
decode: () => decode,
|
|
136
|
-
decodeAsync: () => decodeAsync,
|
|
137
|
-
discriminatedUnion: () => discriminatedUnion,
|
|
138
|
-
e164: () => e164,
|
|
139
|
-
email: () => email,
|
|
140
|
-
emoji: () => emoji,
|
|
141
|
-
encode: () => encode,
|
|
142
|
-
encodeAsync: () => encodeAsync,
|
|
143
|
-
endsWith: () => _endsWith,
|
|
144
|
-
enum: () => _enum,
|
|
145
|
-
file: () => file,
|
|
146
|
-
flattenError: () => flattenError,
|
|
147
|
-
float32: () => float32,
|
|
148
|
-
float64: () => float64,
|
|
149
|
-
formatError: () => formatError,
|
|
150
|
-
function: () => _function,
|
|
151
|
-
getErrorMap: () => getErrorMap,
|
|
152
|
-
globalRegistry: () => globalRegistry,
|
|
153
|
-
gt: () => _gt,
|
|
154
|
-
gte: () => _gte,
|
|
155
|
-
guid: () => guid,
|
|
156
|
-
hash: () => hash,
|
|
157
|
-
hex: () => hex,
|
|
158
|
-
hostname: () => hostname,
|
|
159
|
-
httpUrl: () => httpUrl,
|
|
160
|
-
includes: () => _includes,
|
|
161
|
-
instanceof: () => _instanceof,
|
|
162
|
-
int: () => int,
|
|
163
|
-
int32: () => int32,
|
|
164
|
-
int64: () => int64,
|
|
165
|
-
intersection: () => intersection,
|
|
166
|
-
ipv4: () => ipv4,
|
|
167
|
-
ipv6: () => ipv6,
|
|
168
|
-
iso: () => iso_exports,
|
|
169
|
-
json: () => json,
|
|
170
|
-
jwt: () => jwt,
|
|
171
|
-
keyof: () => keyof,
|
|
172
|
-
ksuid: () => ksuid,
|
|
173
|
-
lazy: () => lazy,
|
|
174
|
-
length: () => _length,
|
|
175
|
-
literal: () => literal,
|
|
176
|
-
locales: () => locales_exports,
|
|
177
|
-
looseObject: () => looseObject,
|
|
178
|
-
lowercase: () => _lowercase,
|
|
179
|
-
lt: () => _lt,
|
|
180
|
-
lte: () => _lte,
|
|
181
|
-
map: () => map,
|
|
182
|
-
maxLength: () => _maxLength,
|
|
183
|
-
maxSize: () => _maxSize,
|
|
184
|
-
mime: () => _mime,
|
|
185
|
-
minLength: () => _minLength,
|
|
186
|
-
minSize: () => _minSize,
|
|
187
|
-
multipleOf: () => _multipleOf,
|
|
188
|
-
nan: () => nan,
|
|
189
|
-
nanoid: () => nanoid,
|
|
190
|
-
nativeEnum: () => nativeEnum,
|
|
191
|
-
negative: () => _negative,
|
|
192
|
-
never: () => never,
|
|
193
|
-
nonnegative: () => _nonnegative,
|
|
194
|
-
nonoptional: () => nonoptional,
|
|
195
|
-
nonpositive: () => _nonpositive,
|
|
196
|
-
normalize: () => _normalize,
|
|
197
|
-
null: () => _null,
|
|
198
|
-
nullable: () => nullable,
|
|
199
|
-
nullish: () => nullish,
|
|
200
|
-
number: () => number,
|
|
201
|
-
object: () => object,
|
|
202
|
-
optional: () => optional,
|
|
203
|
-
overwrite: () => _overwrite,
|
|
204
|
-
parse: () => parse,
|
|
205
|
-
parseAsync: () => parseAsync,
|
|
206
|
-
partialRecord: () => partialRecord,
|
|
207
|
-
pipe: () => pipe,
|
|
208
|
-
positive: () => _positive,
|
|
209
|
-
prefault: () => prefault,
|
|
210
|
-
preprocess: () => preprocess,
|
|
211
|
-
prettifyError: () => prettifyError,
|
|
212
|
-
promise: () => promise,
|
|
213
|
-
property: () => _property,
|
|
214
|
-
readonly: () => readonly,
|
|
215
|
-
record: () => record,
|
|
216
|
-
refine: () => refine,
|
|
217
|
-
regex: () => _regex,
|
|
218
|
-
regexes: () => regexes_exports,
|
|
219
|
-
registry: () => registry,
|
|
220
|
-
safeDecode: () => safeDecode,
|
|
221
|
-
safeDecodeAsync: () => safeDecodeAsync,
|
|
222
|
-
safeEncode: () => safeEncode,
|
|
223
|
-
safeEncodeAsync: () => safeEncodeAsync,
|
|
224
|
-
safeParse: () => safeParse,
|
|
225
|
-
safeParseAsync: () => safeParseAsync,
|
|
226
|
-
set: () => set,
|
|
227
|
-
setErrorMap: () => setErrorMap,
|
|
228
|
-
size: () => _size,
|
|
229
|
-
startsWith: () => _startsWith,
|
|
230
|
-
strictObject: () => strictObject,
|
|
231
|
-
string: () => string,
|
|
232
|
-
stringFormat: () => stringFormat,
|
|
233
|
-
stringbool: () => stringbool,
|
|
234
|
-
success: () => success,
|
|
235
|
-
superRefine: () => superRefine,
|
|
236
|
-
symbol: () => symbol,
|
|
237
|
-
templateLiteral: () => templateLiteral,
|
|
238
|
-
toJSONSchema: () => toJSONSchema,
|
|
239
|
-
toLowerCase: () => _toLowerCase,
|
|
240
|
-
toUpperCase: () => _toUpperCase,
|
|
241
|
-
transform: () => transform,
|
|
242
|
-
treeifyError: () => treeifyError,
|
|
243
|
-
trim: () => _trim,
|
|
244
|
-
tuple: () => tuple,
|
|
245
|
-
uint32: () => uint32,
|
|
246
|
-
uint64: () => uint64,
|
|
247
|
-
ulid: () => ulid,
|
|
248
|
-
undefined: () => _undefined,
|
|
249
|
-
union: () => union,
|
|
250
|
-
unknown: () => unknown,
|
|
251
|
-
uppercase: () => _uppercase,
|
|
252
|
-
url: () => url,
|
|
253
|
-
util: () => util_exports,
|
|
254
|
-
uuid: () => uuid,
|
|
255
|
-
uuidv4: () => uuidv4,
|
|
256
|
-
uuidv6: () => uuidv6,
|
|
257
|
-
uuidv7: () => uuidv7,
|
|
258
|
-
void: () => _void,
|
|
259
|
-
xid: () => xid
|
|
260
|
-
});
|
|
261
|
-
config(en_default());
|
|
262
|
-
|
|
263
|
-
//#endregion
|
|
1
|
+
import { A as descriptions$2, C as defaults$2, E as patterns$3, F as defaults$1, I as descriptions$1, L as enumOptions, M as patterns$2, O as constraints$2, P as constraints$1, R as messages$1, S as constraints$3, T as messages$3, V as toZodMessages, _ as constraints$4, a as patterns$6, b as messages$4, c as defaults$5, d as patterns$5, h as messages$5, i as messages$7, j as messages$2, k as defaults$4, l as descriptions$6, m as descriptions$5, n as defaults$6, p as constraints$5, r as descriptions$7, s as constraints$6, t as constraints$7, u as messages$6, v as defaults$3, w as descriptions$3, x as patterns$4, y as descriptions$4, z as patterns$1 } from "../redis-D18f4ztf.js";
|
|
2
|
+
import { z } from "zod";
|
|
264
3
|
//#region ../schemas/src/zod/v4/api.ts
|
|
265
|
-
const apiKey = (z) => z.string().describe(descriptions.apiKey).min(constraints.apiKeyMinLength, { error: messages.apiKeyMin });
|
|
266
|
-
const apiBaseUrl = (z) => z.url().describe(descriptions.apiBaseUrl).regex(patterns.httpProtocol, { error: messages.httpProtocolRequired });
|
|
267
|
-
const apiTimeout = (z) => z.number().describe(descriptions.apiTimeout).int({ error: messages.apiTimeoutInt }).min(constraints.apiTimeoutMin, { error: messages.apiTimeoutMin }).max(constraints.apiTimeoutMax, { error: messages.apiTimeoutMax }).default(defaults.apiTimeout);
|
|
268
|
-
|
|
4
|
+
const apiKey = (z) => z.string().describe(descriptions$1.apiKey).min(constraints$1.apiKeyMinLength, { error: messages$1.apiKeyMin });
|
|
5
|
+
const apiBaseUrl = (z) => z.url().describe(descriptions$1.apiBaseUrl).regex(patterns$1.httpProtocol, { error: messages$1.httpProtocolRequired });
|
|
6
|
+
const apiTimeout = (z) => z.number().describe(descriptions$1.apiTimeout).int({ error: messages$1.apiTimeoutInt }).min(constraints$1.apiTimeoutMin, { error: messages$1.apiTimeoutMin }).max(constraints$1.apiTimeoutMax, { error: messages$1.apiTimeoutMax }).default(defaults$1.apiTimeout);
|
|
269
7
|
//#endregion
|
|
270
8
|
//#region ../schemas/src/shared/applicationInsights.ts
|
|
271
|
-
const descriptions
|
|
9
|
+
const descriptions = {
|
|
272
10
|
connectionString: "Azure Application Insights connection string",
|
|
273
11
|
instrumentationKey: "Azure Application Insights instrumentation key (legacy)",
|
|
274
12
|
roleName: "Application Insights role name for distributed tracing",
|
|
@@ -286,56 +24,51 @@ const traits = {
|
|
|
286
24
|
samplingRateMin: "between 0 and 100",
|
|
287
25
|
samplingRateMax: "between 0 and 100"
|
|
288
26
|
};
|
|
289
|
-
const constraints
|
|
27
|
+
const constraints = {
|
|
290
28
|
roleNameMin: 1,
|
|
291
29
|
roleNameMax: 256,
|
|
292
30
|
samplingRateMin: 0,
|
|
293
31
|
samplingRateMax: 100
|
|
294
32
|
};
|
|
295
|
-
const defaults
|
|
33
|
+
const defaults = {
|
|
296
34
|
samplingRate: 100,
|
|
297
35
|
autoCollectDependencies: true,
|
|
298
36
|
autoCollectExceptions: true,
|
|
299
37
|
autoCollectConsole: true,
|
|
300
38
|
autoCollectPerformance: true
|
|
301
39
|
};
|
|
302
|
-
const patterns
|
|
303
|
-
const messages
|
|
304
|
-
|
|
40
|
+
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:\/\/[^;]+$/ };
|
|
41
|
+
const messages = toZodMessages(traits);
|
|
305
42
|
//#endregion
|
|
306
43
|
//#region ../schemas/src/zod/v4/applicationInsights.ts
|
|
307
|
-
const applicationInsightsConnectionString = (z) => z.string().describe(descriptions
|
|
308
|
-
const appInsightsInstrumentationKey = (z) => z.uuid({ message: messages
|
|
309
|
-
const appInsightsRoleName = (z) => z.string().describe(descriptions
|
|
310
|
-
const appInsightsSamplingRate = (z) => z.number().describe(descriptions
|
|
311
|
-
const appInsightsAutocollectDependencies = (z) => z.boolean().describe(descriptions
|
|
312
|
-
const appInsightsAutocollectExceptions = (z) => z.boolean().describe(descriptions
|
|
313
|
-
const appInsightsAutocollectConsole = (z) => z.boolean().describe(descriptions
|
|
314
|
-
const appInsightsAutocollectPerformance = (z) => z.boolean().describe(descriptions
|
|
315
|
-
|
|
44
|
+
const applicationInsightsConnectionString = (z) => z.string().describe(descriptions.connectionString).regex(patterns.connectionString, { error: messages.connectionStringFormat });
|
|
45
|
+
const appInsightsInstrumentationKey = (z) => z.uuid({ message: messages.instrumentationKeyUuid }).describe(descriptions.instrumentationKey);
|
|
46
|
+
const appInsightsRoleName = (z) => z.string().describe(descriptions.roleName).min(constraints.roleNameMin, { error: messages.roleNameMin }).max(constraints.roleNameMax, { error: messages.roleNameMax });
|
|
47
|
+
const appInsightsSamplingRate = (z) => z.number().describe(descriptions.samplingRate).min(constraints.samplingRateMin, { error: messages.samplingRateMin }).max(constraints.samplingRateMax, { error: messages.samplingRateMax }).default(defaults.samplingRate);
|
|
48
|
+
const appInsightsAutocollectDependencies = (z) => z.boolean().describe(descriptions.autoCollectDependencies).default(defaults.autoCollectDependencies);
|
|
49
|
+
const appInsightsAutocollectExceptions = (z) => z.boolean().describe(descriptions.autoCollectExceptions).default(defaults.autoCollectExceptions);
|
|
50
|
+
const appInsightsAutocollectConsole = (z) => z.boolean().describe(descriptions.autoCollectConsole).default(defaults.autoCollectConsole);
|
|
51
|
+
const appInsightsAutocollectPerformance = (z) => z.boolean().describe(descriptions.autoCollectPerformance).default(defaults.autoCollectPerformance);
|
|
316
52
|
//#endregion
|
|
317
53
|
//#region ../schemas/src/zod/v4/aws.ts
|
|
318
|
-
const awsAccessKeyId = (z) => z.string().describe(descriptions$
|
|
319
|
-
const awsSecretAccessKey = (z) => z.string().describe(descriptions$
|
|
320
|
-
const awsRegion = (z) => z.string().describe(descriptions$
|
|
321
|
-
const awsS3BucketName = (z) => z.string().describe(descriptions$
|
|
322
|
-
const awsSqsQueueUrl = (z) => z.string().describe(descriptions$
|
|
323
|
-
|
|
54
|
+
const awsAccessKeyId = (z) => z.string().describe(descriptions$2.awsAccessKeyId).min(constraints$2.awsAccessKeyIdMin, { error: messages$2.awsAccessKeyIdMin }).max(constraints$2.awsAccessKeyIdMax, { error: messages$2.awsAccessKeyIdMax });
|
|
55
|
+
const awsSecretAccessKey = (z) => z.string().describe(descriptions$2.awsSecretAccessKey).min(1, { error: messages$2.awsSecretAccessKeyRequired });
|
|
56
|
+
const awsRegion = (z) => z.string().describe(descriptions$2.awsRegion).regex(patterns$2.awsRegion, { error: messages$2.awsRegionFormat });
|
|
57
|
+
const awsS3BucketName = (z) => z.string().describe(descriptions$2.awsS3BucketName).regex(patterns$2.awsS3BucketName, { error: messages$2.awsS3BucketNameFormat });
|
|
58
|
+
const awsSqsQueueUrl = (z) => z.string().describe(descriptions$2.awsSqsQueueUrl).regex(patterns$2.awsSqsQueueUrl, { error: messages$2.awsSqsQueueUrlFormat });
|
|
324
59
|
//#endregion
|
|
325
60
|
//#region ../schemas/src/zod/v4/azure.ts
|
|
326
|
-
const azureStorageConnectionString = (z) => z.string().describe(descriptions$
|
|
327
|
-
const azureStorageAccountName = (z) => z.string().describe(descriptions$
|
|
328
|
-
const azureStorageAccountKey = (z) => z.string().describe(descriptions$
|
|
329
|
-
const azureServiceBusConnectionString = (z) => z.string().describe(descriptions$
|
|
330
|
-
const azureEventHubConnectionString = (z) => z.string().describe(descriptions$
|
|
331
|
-
|
|
61
|
+
const azureStorageConnectionString = (z) => z.string().describe(descriptions$2.azureStorageConnectionString).regex(patterns$2.azureStorageConnectionString, { message: messages$2.azureStorageConnectionStringFormat });
|
|
62
|
+
const azureStorageAccountName = (z) => z.string().describe(descriptions$2.azureStorageAccountName).regex(patterns$2.azureStorageAccountName, { message: messages$2.azureStorageAccountNameFormat });
|
|
63
|
+
const azureStorageAccountKey = (z) => z.string().describe(descriptions$2.azureStorageAccountKey).min(1, { message: messages$2.azureStorageAccountKeyRequired });
|
|
64
|
+
const azureServiceBusConnectionString = (z) => z.string().describe(descriptions$2.azureServiceBusConnectionString).regex(patterns$2.azureServiceBusConnectionString, { message: messages$2.azureServiceBusConnectionStringFormat });
|
|
65
|
+
const azureEventHubConnectionString = (z) => z.string().describe(descriptions$2.azureEventHubConnectionString).regex(patterns$2.azureEventHubConnectionString, { message: messages$2.azureEventHubConnectionStringFormat });
|
|
332
66
|
//#endregion
|
|
333
67
|
//#region ../schemas/src/zod/v4/memcached.ts
|
|
334
|
-
const memcachedServers = (z) => z.string().describe(descriptions$
|
|
335
|
-
|
|
68
|
+
const memcachedServers = (z) => z.string().describe(descriptions$2.memcachedServers).regex(patterns$2.hostPortList, { message: messages$2.hostPortListFormat });
|
|
336
69
|
//#endregion
|
|
337
70
|
//#region ../schemas/src/zod/v4/cors.ts
|
|
338
|
-
const cors = (z) => z.string().describe(descriptions.corsOrigin).refine((val) => {
|
|
71
|
+
const cors = (z) => z.string().describe(descriptions$1.corsOrigin).refine((val) => {
|
|
339
72
|
if (val === "*") return true;
|
|
340
73
|
return val.split(",").map((origin) => origin.trim()).every((origin) => {
|
|
341
74
|
try {
|
|
@@ -345,120 +78,117 @@ const cors = (z) => z.string().describe(descriptions.corsOrigin).refine((val) =>
|
|
|
345
78
|
return false;
|
|
346
79
|
}
|
|
347
80
|
});
|
|
348
|
-
}, { error: messages.corsOriginInvalid });
|
|
349
|
-
|
|
81
|
+
}, { error: messages$1.corsOriginInvalid });
|
|
350
82
|
//#endregion
|
|
351
83
|
//#region ../schemas/src/zod/v4/database.ts
|
|
352
|
-
const databaseUrl = (z) => z.string().describe(descriptions$
|
|
353
|
-
const databaseHost = (z) => z.string().describe(descriptions$
|
|
354
|
-
const databasePort = (z) => z.coerce.number().describe(descriptions$
|
|
355
|
-
const databaseName = (z) => z.string().describe(descriptions$
|
|
356
|
-
const databaseUsername = (z) => z.string().describe(descriptions$
|
|
357
|
-
const databasePassword = (z) => z.string().describe(descriptions$
|
|
358
|
-
const databaseSchema = (z) => z.string().describe(descriptions$
|
|
359
|
-
const databasePoolSize = (z) => z.coerce.number().describe(descriptions$
|
|
360
|
-
const databaseTimeout = (z) => z.coerce.number().describe(descriptions$
|
|
361
|
-
const databaseSsl = (z) => z.boolean().describe(descriptions$
|
|
362
|
-
|
|
84
|
+
const databaseUrl = (z) => z.string().describe(descriptions$3.databaseUrl).regex(patterns$3.genericDatabaseUrl, { message: messages$3.genericDatabaseUrlFormat });
|
|
85
|
+
const databaseHost = (z) => z.string().describe(descriptions$3.databaseHost).min(1, { message: messages$3.databaseHostRequired });
|
|
86
|
+
const databasePort = (z) => z.coerce.number().describe(descriptions$3.databasePort).int({ message: messages$3.databasePortInt }).min(constraints$3.databasePortMin, { message: messages$3.databasePortMin }).max(constraints$3.databasePortMax, { message: messages$3.databasePortMax });
|
|
87
|
+
const databaseName = (z) => z.string().describe(descriptions$3.databaseName).min(1, { message: messages$3.databaseNameRequired });
|
|
88
|
+
const databaseUsername = (z) => z.string().describe(descriptions$3.databaseUsername).min(1, { message: messages$3.databaseUsernameRequired });
|
|
89
|
+
const databasePassword = (z) => z.string().describe(descriptions$3.databasePassword).min(1, { message: messages$3.databasePasswordRequired });
|
|
90
|
+
const databaseSchema = (z) => z.string().describe(descriptions$3.databaseSchema).optional();
|
|
91
|
+
const databasePoolSize = (z) => z.coerce.number().describe(descriptions$3.databasePoolSize).int({ message: messages$3.databasePoolSizeInt }).min(constraints$3.databasePoolSizeMin, { message: messages$3.databasePoolSizeMin }).max(constraints$3.databasePoolSizeMax, { message: messages$3.databasePoolSizeMax }).default(defaults$2.databasePoolSize);
|
|
92
|
+
const databaseTimeout = (z) => z.coerce.number().describe(descriptions$3.databaseTimeout).int({ message: messages$3.databaseTimeoutInt }).min(constraints$3.databaseTimeoutMin, { message: messages$3.databaseTimeoutMin }).max(constraints$3.databaseTimeoutMax, { message: messages$3.databaseTimeoutMax }).default(defaults$2.databaseTimeout);
|
|
93
|
+
const databaseSsl = (z) => z.boolean().describe(descriptions$3.databaseSsl).default(defaults$2.databaseSsl);
|
|
363
94
|
//#endregion
|
|
364
95
|
//#region ../schemas/src/zod/v4/datadog.ts
|
|
365
|
-
const datadogApiKey = (z) => z.string().describe(descriptions$
|
|
366
|
-
|
|
96
|
+
const datadogApiKey = (z) => z.string().describe(descriptions$2.datadogApiKey).length(constraints$2.datadogApiKeyLength, { message: messages$2.datadogApiKeyLength }).optional();
|
|
367
97
|
//#endregion
|
|
368
98
|
//#region ../schemas/src/zod/v4/docker.ts
|
|
369
|
-
const dockerRegistryUrl = (z) => z.string().url({ message: messages$
|
|
370
|
-
const dockerRegistryUsername = (z) => z.string().describe(descriptions$
|
|
371
|
-
const dockerRegistryPassword = (z) => z.string().describe(descriptions$
|
|
372
|
-
|
|
99
|
+
const dockerRegistryUrl = (z) => z.string().url({ message: messages$2.dockerRegistryUrlFormat }).describe(descriptions$2.dockerRegistryUrl);
|
|
100
|
+
const dockerRegistryUsername = (z) => z.string().describe(descriptions$2.dockerRegistryUsername).optional();
|
|
101
|
+
const dockerRegistryPassword = (z) => z.string().describe(descriptions$2.dockerRegistryPassword).optional();
|
|
373
102
|
//#endregion
|
|
374
103
|
//#region ../schemas/src/zod/v4/elasticsearch.ts
|
|
375
|
-
const elasticsearchUrl = (z) => z.url({ message: messages$
|
|
376
|
-
const elasticsearchUsername = (z) => z.string().describe(descriptions$
|
|
377
|
-
const elasticsearchPassword = (z) => z.string().describe(descriptions$
|
|
378
|
-
|
|
104
|
+
const elasticsearchUrl = (z) => z.url({ message: messages$2.elasticsearchUrlFormat }).describe(descriptions$2.elasticsearchUrl).regex(patterns$1.httpProtocol, { message: messages$2.elasticsearchUrlProtocol });
|
|
105
|
+
const elasticsearchUsername = (z) => z.string().describe(descriptions$2.elasticsearchUsername).optional();
|
|
106
|
+
const elasticsearchPassword = (z) => z.string().describe(descriptions$2.elasticsearchPassword).optional();
|
|
379
107
|
//#endregion
|
|
380
108
|
//#region ../schemas/src/zod/v4/encryptionKey.ts
|
|
381
|
-
const encryptionKey = (z) => z.string().describe(descriptions.encryptionKey).min(constraints.encryptionKeyMinLength, { error: messages.encryptionKeyMin });
|
|
382
|
-
|
|
109
|
+
const encryptionKey = (z) => z.string().describe(descriptions$1.encryptionKey).min(constraints$1.encryptionKeyMinLength, { error: messages$1.encryptionKeyMin });
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region ../schemas/src/zod/v4/gel.ts
|
|
112
|
+
const gelDsn = (z) => z.string().describe(descriptions$4.gelDsn).regex(patterns$4.gelDsn, { message: messages$4.gelDsnFormat });
|
|
113
|
+
const gelInstance = (z) => z.string().describe(descriptions$4.gelInstance).regex(patterns$4.gelInstance, { message: messages$4.gelInstanceFormat });
|
|
114
|
+
const gelSecretKey = (z) => z.string().describe(descriptions$4.gelSecretKey).min(1, { message: messages$4.gelSecretKeyRequired });
|
|
115
|
+
const gelHost = (z) => z.string().describe(descriptions$4.gelHost).min(1, { message: messages$4.gelHostRequired }).default("localhost");
|
|
116
|
+
const gelPort = (z) => z.coerce.number().describe(descriptions$4.gelPort).int({ message: messages$4.gelPortInt }).min(constraints$4.gelPortMin, { message: messages$4.gelPortMin }).max(constraints$4.gelPortMax, { message: messages$4.gelPortMax }).default(defaults$3.gelPort);
|
|
117
|
+
const gelUser = (z) => z.string().describe(descriptions$4.gelUser).min(1, { message: messages$4.gelUserRequired }).default(defaults$3.gelUser);
|
|
118
|
+
const gelPassword = (z) => z.string().describe(descriptions$4.gelPassword).min(1, { message: messages$4.gelPasswordRequired });
|
|
119
|
+
const gelBranch = (z) => z.string().describe(descriptions$4.gelBranch).regex(patterns$4.gelBranch, { message: messages$4.gelBranchFormat }).default(defaults$3.gelBranch);
|
|
120
|
+
const gelTlsCaFile = (z) => z.string().describe(descriptions$4.gelTlsCaFile).min(1, { message: messages$4.gelTlsCaFileFormat }).optional();
|
|
121
|
+
const gelClientTlsSecurity = (z) => z.enum([
|
|
122
|
+
"strict",
|
|
123
|
+
"no_host_verification",
|
|
124
|
+
"insecure"
|
|
125
|
+
]).describe(descriptions$4.gelClientTlsSecurity).default(defaults$3.gelClientTlsSecurity);
|
|
126
|
+
const gelCredentialsFile = (z) => z.string().describe(descriptions$4.gelCredentialsFile).min(1, { message: messages$4.gelCredentialsFileFormat }).optional();
|
|
383
127
|
//#endregion
|
|
384
128
|
//#region ../schemas/src/zod/v4/host.ts
|
|
385
|
-
const hostSchema = (z) => z.string().describe(descriptions.host).default(defaults.host);
|
|
386
|
-
|
|
129
|
+
const hostSchema = (z) => z.string().describe(descriptions$1.host).default(defaults$1.host);
|
|
387
130
|
//#endregion
|
|
388
131
|
//#region ../schemas/src/zod/v4/jwt.ts
|
|
389
|
-
const jwtSecret = (z) => z.string().describe(descriptions.jwtSecret).min(constraints.jwtSecretMinLength, { error: messages.jwtSecretMin });
|
|
390
|
-
const jwtAccessTokenExpiresIn = (z) => z.string().describe(descriptions.jwtAccessTokenExpiresIn).regex(patterns.jwtTokenDuration, { error: messages.jwtDurationFormat }).default(defaults.jwtAccessTokenExpiresIn);
|
|
391
|
-
const jwtRefreshTokenExpiresIn = (z) => z.string().describe(descriptions.jwtRefreshTokenExpiresIn).regex(patterns.jwtTokenDuration, { error: messages.jwtDurationFormat }).default(defaults.jwtRefreshTokenExpiresIn);
|
|
392
|
-
|
|
132
|
+
const jwtSecret = (z) => z.string().describe(descriptions$1.jwtSecret).min(constraints$1.jwtSecretMinLength, { error: messages$1.jwtSecretMin });
|
|
133
|
+
const jwtAccessTokenExpiresIn = (z) => z.string().describe(descriptions$1.jwtAccessTokenExpiresIn).regex(patterns$1.jwtTokenDuration, { error: messages$1.jwtDurationFormat }).default(defaults$1.jwtAccessTokenExpiresIn);
|
|
134
|
+
const jwtRefreshTokenExpiresIn = (z) => z.string().describe(descriptions$1.jwtRefreshTokenExpiresIn).regex(patterns$1.jwtTokenDuration, { error: messages$1.jwtDurationFormat }).default(defaults$1.jwtRefreshTokenExpiresIn);
|
|
393
135
|
//#endregion
|
|
394
136
|
//#region ../schemas/src/zod/v4/kafka.ts
|
|
395
|
-
const kafkaBrokers = (z) => z.string().describe(descriptions$
|
|
396
|
-
const kafkaClientId = (z) => z.string().describe(descriptions$
|
|
397
|
-
|
|
137
|
+
const kafkaBrokers = (z) => z.string().describe(descriptions$2.kafkaBrokers).regex(patterns$2.hostPortList, { message: messages$2.hostPortListFormat });
|
|
138
|
+
const kafkaClientId = (z) => z.string().describe(descriptions$2.kafkaClientId).min(1, { message: messages$2.kafkaClientIdRequired });
|
|
398
139
|
//#endregion
|
|
399
140
|
//#region ../schemas/src/zod/v4/kubernetes.ts
|
|
400
|
-
const kubernetesNamespace = (z) => z.string().describe(descriptions$
|
|
401
|
-
const kubernetesServiceAccount = (z) => z.string().describe(descriptions$
|
|
402
|
-
|
|
141
|
+
const kubernetesNamespace = (z) => z.string().describe(descriptions$2.kubernetesNamespace).regex(patterns$2.kubernetesName, { message: messages$2.kubernetesNameFormat }).default(defaults$4.kubernetesNamespace);
|
|
142
|
+
const kubernetesServiceAccount = (z) => z.string().describe(descriptions$2.kubernetesServiceAccount).regex(patterns$2.kubernetesName, { message: messages$2.kubernetesServiceAccountFormat }).optional();
|
|
403
143
|
//#endregion
|
|
404
144
|
//#region ../schemas/src/zod/v4/logLevel.ts
|
|
405
|
-
const logLevelSchema = (z) => z.enum([...enumOptions.logLevel]).describe(descriptions.logLevel).default(defaults.logLevel);
|
|
406
|
-
|
|
145
|
+
const logLevelSchema = (z) => z.enum([...enumOptions.logLevel]).describe(descriptions$1.logLevel).default(defaults$1.logLevel);
|
|
407
146
|
//#endregion
|
|
408
147
|
//#region ../schemas/src/zod/v4/rabbitmq.ts
|
|
409
|
-
const rabbitmqUrl = (z) => z.string().describe(descriptions$
|
|
410
|
-
|
|
148
|
+
const rabbitmqUrl = (z) => z.string().describe(descriptions$2.rabbitmqUrl).regex(patterns$2.rabbitmqUrl, { message: messages$2.rabbitmqUrlFormat });
|
|
411
149
|
//#endregion
|
|
412
150
|
//#region ../schemas/src/zod/v4/monitoring.ts
|
|
413
|
-
const newRelicLicenseKey = (z) => z.string().describe(descriptions$
|
|
414
|
-
const sentryDsn = (z) => z.string().describe(descriptions$
|
|
415
|
-
const jaegerEndpoint = (z) => z.string().url({ message: messages$
|
|
416
|
-
const prometheusPort = (z) => z.number().describe(descriptions$
|
|
417
|
-
|
|
151
|
+
const newRelicLicenseKey = (z) => z.string().describe(descriptions$2.newRelicLicenseKey).length(constraints$2.newRelicLicenseKeyLength, { message: messages$2.newRelicLicenseKeyLength }).optional();
|
|
152
|
+
const sentryDsn = (z) => z.string().describe(descriptions$2.sentryDsn).regex(patterns$2.sentryDsn, { message: messages$2.sentryDsnFormat }).optional();
|
|
153
|
+
const jaegerEndpoint = (z) => z.string().url({ message: messages$2.jaegerEndpointFormat }).describe(descriptions$2.jaegerEndpoint).optional();
|
|
154
|
+
const prometheusPort = (z) => z.number().describe(descriptions$2.prometheusPort).int({ message: messages$2.prometheusPortInt }).min(constraints$2.prometheusPortMin, { message: messages$2.prometheusPortMin }).max(constraints$2.prometheusPortMax, { message: messages$2.prometheusPortMax }).default(defaults$4.prometheusPort);
|
|
418
155
|
//#endregion
|
|
419
156
|
//#region ../schemas/src/zod/v4/node.ts
|
|
420
|
-
const nodeEnv = (z) => z.enum([...enumOptions.nodeEnv]).describe(descriptions.nodeEnv).default(defaults.nodeEnv);
|
|
421
|
-
|
|
157
|
+
const nodeEnv = (z) => z.enum([...enumOptions.nodeEnv]).describe(descriptions$1.nodeEnv).default(defaults$1.nodeEnv);
|
|
422
158
|
//#endregion
|
|
423
159
|
//#region ../schemas/src/zod/v4/oauth.ts
|
|
424
|
-
const oauthClientId = (z) => z.string().describe(descriptions$
|
|
425
|
-
const oauthClientSecret = (z) => z.string().describe(descriptions$
|
|
426
|
-
const oauthRedirectUri = (z) => z.url({ message: messages$
|
|
427
|
-
const oauthScope = (z) => z.string().describe(descriptions$
|
|
428
|
-
|
|
160
|
+
const oauthClientId = (z) => z.string().describe(descriptions$5.clientId).min(constraints$5.clientIdMinLength, { error: messages$5.clientIdRequired });
|
|
161
|
+
const oauthClientSecret = (z) => z.string().describe(descriptions$5.clientSecret).min(constraints$5.clientSecretMinLength, { error: messages$5.clientSecretMinLength });
|
|
162
|
+
const oauthRedirectUri = (z) => z.url({ message: messages$5.redirectUriInvalid }).describe(descriptions$5.redirectUri);
|
|
163
|
+
const oauthScope = (z) => z.string().describe(descriptions$5.scope).min(constraints$5.scopeMinLength, { error: messages$5.scopeRequired });
|
|
429
164
|
//#endregion
|
|
430
165
|
//#region ../schemas/src/zod/v4/openai.ts
|
|
431
|
-
const openaiApiKey = (z) => z.string().describe(descriptions$
|
|
432
|
-
const openaiOrganizationId = (z) => z.string().describe(descriptions$
|
|
433
|
-
const openaiProjectId = (z) => z.string().describe(descriptions$
|
|
434
|
-
const openaiBaseUrl = (z) => z.string().describe(descriptions$
|
|
435
|
-
const openaiModel = (z) => z.string().describe(descriptions$
|
|
436
|
-
const openaiTimeout = (z) => z.number().describe(descriptions$
|
|
437
|
-
|
|
166
|
+
const openaiApiKey = (z) => z.string().describe(descriptions$6.apiKey).min(constraints$6.apiKeyMinLength, { error: messages$6.apiKeyMinLength }).regex(patterns$5.apiKey, { message: messages$6.apiKeyFormat });
|
|
167
|
+
const openaiOrganizationId = (z) => z.string().describe(descriptions$6.organizationId).regex(patterns$5.organizationId, { message: messages$6.organizationFormat }).optional();
|
|
168
|
+
const openaiProjectId = (z) => z.string().describe(descriptions$6.projectId).regex(patterns$5.projectId, { message: messages$6.projectFormat }).optional();
|
|
169
|
+
const openaiBaseUrl = (z) => z.string().describe(descriptions$6.baseUrl).url({ message: messages$6.baseUrlInvalid }).refine((value) => value.startsWith("https://"), { message: messages$6.baseUrlProtocol }).optional();
|
|
170
|
+
const openaiModel = (z) => z.string().describe(descriptions$6.model).min(1, { message: messages$6.modelRequired }).optional();
|
|
171
|
+
const openaiTimeout = (z) => z.number().describe(descriptions$6.timeout).int({ message: messages$6.timeoutInteger }).min(constraints$6.timeoutMin, { message: messages$6.timeoutMin }).max(constraints$6.timeoutMax, { message: messages$6.timeoutMax }).default(defaults$5.timeout);
|
|
438
172
|
//#endregion
|
|
439
173
|
//#region ../schemas/src/zod/v4/redis.ts
|
|
440
|
-
const redisUrl = (z) => z.string().describe(descriptions$
|
|
441
|
-
const redisHost = (z) => z.string().describe(descriptions$
|
|
442
|
-
const redisPort = (z) => z.number().describe(descriptions$
|
|
443
|
-
const redisUsername = (z) => z.string().describe(descriptions$
|
|
444
|
-
const redisPassword = (z) => z.string().describe(descriptions$
|
|
445
|
-
const redisDb = (z) => z.number().describe(descriptions$
|
|
446
|
-
const redisTls = (z) => z.boolean().describe(descriptions$
|
|
447
|
-
const redisTlsCaCertPath = (z) => z.string().describe(descriptions$
|
|
448
|
-
|
|
174
|
+
const redisUrl = (z) => z.string().describe(descriptions$7.url).regex(patterns$6.url, { message: messages$7.urlFormat });
|
|
175
|
+
const redisHost = (z) => z.string().describe(descriptions$7.host).min(1, { message: messages$7.hostRequired }).regex(patterns$6.host, { message: messages$7.hostFormat });
|
|
176
|
+
const redisPort = (z) => z.number().describe(descriptions$7.port).int({ message: messages$7.portInteger }).min(constraints$7.portMin, { message: messages$7.portMin }).max(constraints$7.portMax, { message: messages$7.portMax }).default(defaults$6.port);
|
|
177
|
+
const redisUsername = (z) => z.string().describe(descriptions$7.username).min(1, { message: messages$7.usernameRequired });
|
|
178
|
+
const redisPassword = (z) => z.string().describe(descriptions$7.password).min(1, { message: messages$7.passwordRequired });
|
|
179
|
+
const redisDb = (z) => z.number().describe(descriptions$7.db).int({ message: messages$7.dbInteger }).min(constraints$7.dbMin, { message: messages$7.dbRange }).max(constraints$7.dbMax, { message: messages$7.dbRange }).default(defaults$6.db);
|
|
180
|
+
const redisTls = (z) => z.boolean().describe(descriptions$7.tls).default(defaults$6.tls);
|
|
181
|
+
const redisTlsCaCertPath = (z) => z.string().describe(descriptions$7.tlsCaCertPath).min(1, { message: messages$7.tlsCaCertPathRequired });
|
|
449
182
|
//#endregion
|
|
450
183
|
//#region ../schemas/src/zod/v4/port.ts
|
|
451
|
-
const port = (z) => z.coerce.number().describe(descriptions.port).int({ error: messages.portInt }).min(constraints.portMin, { error: messages.portMin }).max(constraints.portMax, { error: messages.portMax }).default(defaults.port);
|
|
452
|
-
|
|
184
|
+
const port = (z) => z.coerce.number().describe(descriptions$1.port).int({ error: messages$1.portInt }).min(constraints$1.portMin, { error: messages$1.portMin }).max(constraints$1.portMax, { error: messages$1.portMax }).default(defaults$1.port);
|
|
453
185
|
//#endregion
|
|
454
186
|
//#region ../schemas/src/zod/v4/rateLimit.ts
|
|
455
|
-
const rateLimitRpm = (z) => z.coerce.number().describe(descriptions.rateLimitRpm).int({ error: messages.rateLimitRpmInt }).min(constraints.rateLimitRpmMin, { error: messages.rateLimitRpmMin }).max(constraints.rateLimitRpmMax, { error: messages.rateLimitRpmMax }).default(defaults.rateLimitRpm);
|
|
456
|
-
const rateLimitWindow = (z) => z.coerce.number().describe(descriptions.rateLimitWindow).int({ error: messages.rateLimitWindowInt }).min(constraints.rateLimitWindowMin, { error: messages.rateLimitWindowMin }).max(constraints.rateLimitWindowMax, { error: messages.rateLimitWindowMax }).default(defaults.rateLimitWindow);
|
|
457
|
-
|
|
187
|
+
const rateLimitRpm = (z) => z.coerce.number().describe(descriptions$1.rateLimitRpm).int({ error: messages$1.rateLimitRpmInt }).min(constraints$1.rateLimitRpmMin, { error: messages$1.rateLimitRpmMin }).max(constraints$1.rateLimitRpmMax, { error: messages$1.rateLimitRpmMax }).default(defaults$1.rateLimitRpm);
|
|
188
|
+
const rateLimitWindow = (z) => z.coerce.number().describe(descriptions$1.rateLimitWindow).int({ error: messages$1.rateLimitWindowInt }).min(constraints$1.rateLimitWindowMin, { error: messages$1.rateLimitWindowMin }).max(constraints$1.rateLimitWindowMax, { error: messages$1.rateLimitWindowMax }).default(defaults$1.rateLimitWindow);
|
|
458
189
|
//#endregion
|
|
459
190
|
//#region ../schemas/src/zod/v4/webhook.ts
|
|
460
|
-
const webhookUrl = (z) => z.url({ message: messages.mustBeValidUrl }).describe(descriptions.webhookUrl).regex(patterns.httpsProtocol, { error: messages.httpsProtocolRequired });
|
|
461
|
-
|
|
191
|
+
const webhookUrl = (z) => z.url({ message: messages$1.mustBeValidUrl }).describe(descriptions$1.webhookUrl).regex(patterns$1.httpsProtocol, { error: messages$1.httpsProtocolRequired });
|
|
462
192
|
//#endregion
|
|
463
193
|
//#region ../schemas/src/zod/v4/index.ts
|
|
464
194
|
var v4_default = (z) => ({
|
|
@@ -503,6 +233,17 @@ var v4_default = (z) => ({
|
|
|
503
233
|
ELASTICSEARCH_USERNAME: elasticsearchUsername(z),
|
|
504
234
|
ELASTICSEARCH_PASSWORD: elasticsearchPassword(z),
|
|
505
235
|
ENCRYPTION_KEY: encryptionKey(z),
|
|
236
|
+
GEL_DSN: gelDsn(z),
|
|
237
|
+
GEL_INSTANCE: gelInstance(z),
|
|
238
|
+
GEL_SECRET_KEY: gelSecretKey(z),
|
|
239
|
+
GEL_HOST: gelHost(z),
|
|
240
|
+
GEL_PORT: gelPort(z),
|
|
241
|
+
GEL_USER: gelUser(z),
|
|
242
|
+
GEL_PASSWORD: gelPassword(z),
|
|
243
|
+
GEL_BRANCH: gelBranch(z),
|
|
244
|
+
GEL_TLS_CA_FILE: gelTlsCaFile(z),
|
|
245
|
+
GEL_CLIENT_TLS_SECURITY: gelClientTlsSecurity(z),
|
|
246
|
+
GEL_CREDENTIALS_FILE: gelCredentialsFile(z),
|
|
506
247
|
HOST: hostSchema(z),
|
|
507
248
|
PORT: port(z),
|
|
508
249
|
JWT_SECRET: jwtSecret(z),
|
|
@@ -541,10 +282,8 @@ var v4_default = (z) => ({
|
|
|
541
282
|
RATE_LIMIT_WINDOW: rateLimitWindow(z),
|
|
542
283
|
WEBHOOK_URL: webhookUrl(z)
|
|
543
284
|
});
|
|
544
|
-
|
|
545
285
|
//#endregion
|
|
546
286
|
//#region src/schemas/zod.ts
|
|
547
|
-
var zod_default = v4_default(
|
|
548
|
-
|
|
287
|
+
var zod_default = v4_default(z);
|
|
549
288
|
//#endregion
|
|
550
|
-
export { apiBaseUrl, apiKey, apiTimeout, appInsightsAutocollectConsole, appInsightsAutocollectDependencies, appInsightsAutocollectExceptions, appInsightsAutocollectPerformance, appInsightsInstrumentationKey, appInsightsRoleName, appInsightsSamplingRate, applicationInsightsConnectionString, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, cors, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, zod_default as default, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, encryptionKey, hostSchema, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, kubernetesNamespace, kubernetesServiceAccount, logLevelSchema, memcachedServers, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, rateLimitRpm, rateLimitWindow, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn, webhookUrl };
|
|
289
|
+
export { apiBaseUrl, apiKey, apiTimeout, appInsightsAutocollectConsole, appInsightsAutocollectDependencies, appInsightsAutocollectExceptions, appInsightsAutocollectPerformance, appInsightsInstrumentationKey, appInsightsRoleName, appInsightsSamplingRate, applicationInsightsConnectionString, awsAccessKeyId, awsRegion, awsS3BucketName, awsSecretAccessKey, awsSqsQueueUrl, azureEventHubConnectionString, azureServiceBusConnectionString, azureStorageAccountKey, azureStorageAccountName, azureStorageConnectionString, cors, databaseHost, databaseName, databasePassword, databasePoolSize, databasePort, databaseSchema, databaseSsl, databaseTimeout, databaseUrl, databaseUsername, datadogApiKey, zod_default as default, dockerRegistryPassword, dockerRegistryUrl, dockerRegistryUsername, elasticsearchPassword, elasticsearchUrl, elasticsearchUsername, encryptionKey, gelBranch, gelClientTlsSecurity, gelCredentialsFile, gelDsn, gelHost, gelInstance, gelPassword, gelPort, gelSecretKey, gelTlsCaFile, gelUser, hostSchema, jaegerEndpoint, jwtAccessTokenExpiresIn, jwtRefreshTokenExpiresIn, jwtSecret, kafkaBrokers, kafkaClientId, kubernetesNamespace, kubernetesServiceAccount, logLevelSchema, memcachedServers, newRelicLicenseKey, nodeEnv, oauthClientId, oauthClientSecret, oauthRedirectUri, oauthScope, openaiApiKey, openaiBaseUrl, openaiModel, openaiOrganizationId, openaiProjectId, openaiTimeout, port, prometheusPort, rabbitmqUrl, rateLimitRpm, rateLimitWindow, redisDb, redisHost, redisPassword, redisPort, redisTls, redisTlsCaCertPath, redisUrl, redisUsername, sentryDsn, webhookUrl };
|