@axium/server 0.8.0 → 0.10.0
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/{web/lib → assets}/styles.css +7 -1
- package/{web/api/index.ts → dist/api/index.d.ts} +0 -2
- package/dist/api/index.js +5 -0
- package/dist/api/metadata.d.ts +1 -0
- package/dist/api/metadata.js +28 -0
- package/dist/api/passkeys.d.ts +1 -0
- package/dist/api/passkeys.js +50 -0
- package/dist/api/register.d.ts +1 -0
- package/dist/api/register.js +70 -0
- package/dist/api/session.d.ts +1 -0
- package/dist/api/session.js +31 -0
- package/dist/api/users.d.ts +1 -0
- package/dist/api/users.js +244 -0
- package/dist/apps.d.ts +0 -5
- package/dist/apps.js +2 -9
- package/dist/auth.d.ts +9 -31
- package/dist/auth.js +20 -34
- package/dist/cli.js +200 -54
- package/dist/config.d.ts +52 -480
- package/dist/config.js +89 -56
- package/dist/database.d.ts +3 -3
- package/dist/database.js +57 -24
- package/dist/io.d.ts +6 -4
- package/dist/io.js +26 -19
- package/dist/plugins.d.ts +5 -2
- package/dist/plugins.js +16 -14
- package/dist/requests.d.ts +11 -0
- package/dist/requests.js +58 -0
- package/dist/routes.d.ts +12 -13
- package/dist/routes.js +21 -22
- package/dist/serve.d.ts +7 -0
- package/dist/serve.js +11 -0
- package/dist/state.d.ts +4 -0
- package/dist/state.js +22 -0
- package/dist/sveltekit.d.ts +8 -0
- package/dist/sveltekit.js +90 -0
- package/package.json +18 -10
- package/{web/routes → routes}/account/+page.svelte +115 -48
- package/svelte.config.js +36 -0
- package/web/hooks.server.ts +15 -4
- package/web/lib/ClipboardCopy.svelte +42 -0
- package/web/lib/Dialog.svelte +0 -1
- package/web/lib/FormDialog.svelte +9 -2
- package/web/lib/icons/Icon.svelte +3 -12
- package/web/template.html +18 -0
- package/web/tsconfig.json +3 -2
- package/web/api/metadata.ts +0 -35
- package/web/api/passkeys.ts +0 -56
- package/web/api/readme.md +0 -1
- package/web/api/register.ts +0 -83
- package/web/api/schemas.ts +0 -22
- package/web/api/session.ts +0 -33
- package/web/api/users.ts +0 -340
- package/web/api/utils.ts +0 -66
- package/web/app.html +0 -14
- package/web/auth.ts +0 -8
- package/web/index.server.ts +0 -1
- package/web/index.ts +0 -1
- package/web/lib/auth.ts +0 -12
- package/web/lib/index.ts +0 -5
- package/web/routes/+layout.svelte +0 -6
- package/web/routes/[...path]/+page.server.ts +0 -13
- package/web/routes/[appId]/[...page]/+page.server.ts +0 -14
- package/web/routes/api/[...path]/+server.ts +0 -49
- package/web/utils.ts +0 -26
- /package/{web/lib → assets}/icons/light.svg +0 -0
- /package/{web/lib → assets}/icons/regular.svg +0 -0
- /package/{web/lib → assets}/icons/solid.svg +0 -0
- /package/{web/routes → routes}/_axium/default/+page.svelte +0 -0
- /package/{web/routes → routes}/login/+page.svelte +0 -0
- /package/{web/routes → routes}/logout/+page.svelte +0 -0
- /package/{web/routes → routes}/register/+page.svelte +0 -0
package/dist/config.d.ts
CHANGED
|
@@ -1,274 +1,58 @@
|
|
|
1
|
+
import { levelText } from 'logzen';
|
|
1
2
|
import { type PartialRecursive } from 'utilium';
|
|
2
|
-
import * as z from 'zod';
|
|
3
|
-
export
|
|
4
|
-
api:
|
|
5
|
-
disable_metadata: z.ZodBoolean;
|
|
6
|
-
cookie_auth: z.ZodBoolean;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
3
|
+
import * as z from 'zod/v4';
|
|
4
|
+
export interface Config extends Record<string, unknown> {
|
|
5
|
+
api: {
|
|
8
6
|
disable_metadata: boolean;
|
|
9
7
|
cookie_auth: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
cookie_auth: boolean;
|
|
13
|
-
}>;
|
|
14
|
-
apps: z.ZodObject<{
|
|
15
|
-
disabled: z.ZodArray<z.ZodString, "many">;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
disabled: string[];
|
|
18
|
-
}, {
|
|
8
|
+
};
|
|
9
|
+
apps: {
|
|
19
10
|
disabled: string[];
|
|
20
|
-
}
|
|
21
|
-
auth:
|
|
22
|
-
credentials: z.ZodBoolean;
|
|
23
|
-
debug: z.ZodBoolean;
|
|
24
|
-
origin: z.ZodString;
|
|
25
|
-
/** In minutes */
|
|
26
|
-
passkey_probation: z.ZodNumber;
|
|
27
|
-
rp_id: z.ZodString;
|
|
28
|
-
rp_name: z.ZodString;
|
|
29
|
-
secure_cookies: z.ZodBoolean;
|
|
30
|
-
/** In minutes */
|
|
31
|
-
verification_timeout: z.ZodNumber;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
};
|
|
12
|
+
auth: {
|
|
33
13
|
origin: string;
|
|
34
|
-
debug: boolean;
|
|
35
|
-
credentials: boolean;
|
|
36
|
-
passkey_probation: number;
|
|
37
|
-
rp_id: string;
|
|
38
|
-
rp_name: string;
|
|
39
|
-
secure_cookies: boolean;
|
|
40
|
-
verification_timeout: number;
|
|
41
|
-
}, {
|
|
42
|
-
origin: string;
|
|
43
|
-
debug: boolean;
|
|
44
|
-
credentials: boolean;
|
|
45
|
-
passkey_probation: number;
|
|
46
|
-
rp_id: string;
|
|
47
|
-
rp_name: string;
|
|
48
|
-
secure_cookies: boolean;
|
|
49
|
-
verification_timeout: number;
|
|
50
|
-
}>;
|
|
51
|
-
db: z.ZodObject<{
|
|
52
|
-
host: z.ZodString;
|
|
53
|
-
port: z.ZodNumber;
|
|
54
|
-
password: z.ZodString;
|
|
55
|
-
user: z.ZodString;
|
|
56
|
-
database: z.ZodString;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
port: number;
|
|
59
|
-
host: string;
|
|
60
|
-
user: string;
|
|
61
|
-
password: string;
|
|
62
|
-
database: string;
|
|
63
|
-
}, {
|
|
64
|
-
port: number;
|
|
65
|
-
host: string;
|
|
66
|
-
user: string;
|
|
67
|
-
password: string;
|
|
68
|
-
database: string;
|
|
69
|
-
}>;
|
|
70
|
-
debug: z.ZodBoolean;
|
|
71
|
-
log: z.ZodObject<{
|
|
72
|
-
level: z.ZodEnum<["error", "warn", "notice", "info", "debug"]>;
|
|
73
|
-
console: z.ZodBoolean;
|
|
74
|
-
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
console: boolean;
|
|
76
|
-
level: "error" | "warn" | "info" | "debug" | "notice";
|
|
77
|
-
}, {
|
|
78
|
-
console: boolean;
|
|
79
|
-
level: "error" | "warn" | "info" | "debug" | "notice";
|
|
80
|
-
}>;
|
|
81
|
-
web: z.ZodObject<{
|
|
82
|
-
prefix: z.ZodString;
|
|
83
|
-
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
prefix: string;
|
|
85
|
-
}, {
|
|
86
|
-
prefix: string;
|
|
87
|
-
}>;
|
|
88
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
89
|
-
api: z.ZodObject<{
|
|
90
|
-
disable_metadata: z.ZodBoolean;
|
|
91
|
-
cookie_auth: z.ZodBoolean;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
disable_metadata: boolean;
|
|
94
|
-
cookie_auth: boolean;
|
|
95
|
-
}, {
|
|
96
|
-
disable_metadata: boolean;
|
|
97
|
-
cookie_auth: boolean;
|
|
98
|
-
}>;
|
|
99
|
-
apps: z.ZodObject<{
|
|
100
|
-
disabled: z.ZodArray<z.ZodString, "many">;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
disabled: string[];
|
|
103
|
-
}, {
|
|
104
|
-
disabled: string[];
|
|
105
|
-
}>;
|
|
106
|
-
auth: z.ZodObject<{
|
|
107
|
-
credentials: z.ZodBoolean;
|
|
108
|
-
debug: z.ZodBoolean;
|
|
109
|
-
origin: z.ZodString;
|
|
110
|
-
/** In minutes */
|
|
111
|
-
passkey_probation: z.ZodNumber;
|
|
112
|
-
rp_id: z.ZodString;
|
|
113
|
-
rp_name: z.ZodString;
|
|
114
|
-
secure_cookies: z.ZodBoolean;
|
|
115
14
|
/** In minutes */
|
|
116
|
-
verification_timeout: z.ZodNumber;
|
|
117
|
-
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
origin: string;
|
|
119
|
-
debug: boolean;
|
|
120
|
-
credentials: boolean;
|
|
121
|
-
passkey_probation: number;
|
|
122
|
-
rp_id: string;
|
|
123
|
-
rp_name: string;
|
|
124
|
-
secure_cookies: boolean;
|
|
125
|
-
verification_timeout: number;
|
|
126
|
-
}, {
|
|
127
|
-
origin: string;
|
|
128
|
-
debug: boolean;
|
|
129
|
-
credentials: boolean;
|
|
130
15
|
passkey_probation: number;
|
|
131
16
|
rp_id: string;
|
|
132
17
|
rp_name: string;
|
|
133
18
|
secure_cookies: boolean;
|
|
134
|
-
verification_timeout: number;
|
|
135
|
-
}>;
|
|
136
|
-
db: z.ZodObject<{
|
|
137
|
-
host: z.ZodString;
|
|
138
|
-
port: z.ZodNumber;
|
|
139
|
-
password: z.ZodString;
|
|
140
|
-
user: z.ZodString;
|
|
141
|
-
database: z.ZodString;
|
|
142
|
-
}, "strip", z.ZodTypeAny, {
|
|
143
|
-
port: number;
|
|
144
|
-
host: string;
|
|
145
|
-
user: string;
|
|
146
|
-
password: string;
|
|
147
|
-
database: string;
|
|
148
|
-
}, {
|
|
149
|
-
port: number;
|
|
150
|
-
host: string;
|
|
151
|
-
user: string;
|
|
152
|
-
password: string;
|
|
153
|
-
database: string;
|
|
154
|
-
}>;
|
|
155
|
-
debug: z.ZodBoolean;
|
|
156
|
-
log: z.ZodObject<{
|
|
157
|
-
level: z.ZodEnum<["error", "warn", "notice", "info", "debug"]>;
|
|
158
|
-
console: z.ZodBoolean;
|
|
159
|
-
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
console: boolean;
|
|
161
|
-
level: "error" | "warn" | "info" | "debug" | "notice";
|
|
162
|
-
}, {
|
|
163
|
-
console: boolean;
|
|
164
|
-
level: "error" | "warn" | "info" | "debug" | "notice";
|
|
165
|
-
}>;
|
|
166
|
-
web: z.ZodObject<{
|
|
167
|
-
prefix: z.ZodString;
|
|
168
|
-
}, "strip", z.ZodTypeAny, {
|
|
169
|
-
prefix: string;
|
|
170
|
-
}, {
|
|
171
|
-
prefix: string;
|
|
172
|
-
}>;
|
|
173
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
174
|
-
api: z.ZodObject<{
|
|
175
|
-
disable_metadata: z.ZodBoolean;
|
|
176
|
-
cookie_auth: z.ZodBoolean;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
disable_metadata: boolean;
|
|
179
|
-
cookie_auth: boolean;
|
|
180
|
-
}, {
|
|
181
|
-
disable_metadata: boolean;
|
|
182
|
-
cookie_auth: boolean;
|
|
183
|
-
}>;
|
|
184
|
-
apps: z.ZodObject<{
|
|
185
|
-
disabled: z.ZodArray<z.ZodString, "many">;
|
|
186
|
-
}, "strip", z.ZodTypeAny, {
|
|
187
|
-
disabled: string[];
|
|
188
|
-
}, {
|
|
189
|
-
disabled: string[];
|
|
190
|
-
}>;
|
|
191
|
-
auth: z.ZodObject<{
|
|
192
|
-
credentials: z.ZodBoolean;
|
|
193
|
-
debug: z.ZodBoolean;
|
|
194
|
-
origin: z.ZodString;
|
|
195
19
|
/** In minutes */
|
|
196
|
-
passkey_probation: z.ZodNumber;
|
|
197
|
-
rp_id: z.ZodString;
|
|
198
|
-
rp_name: z.ZodString;
|
|
199
|
-
secure_cookies: z.ZodBoolean;
|
|
200
|
-
/** In minutes */
|
|
201
|
-
verification_timeout: z.ZodNumber;
|
|
202
|
-
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
origin: string;
|
|
204
|
-
debug: boolean;
|
|
205
|
-
credentials: boolean;
|
|
206
|
-
passkey_probation: number;
|
|
207
|
-
rp_id: string;
|
|
208
|
-
rp_name: string;
|
|
209
|
-
secure_cookies: boolean;
|
|
210
20
|
verification_timeout: number;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
passkey_probation: number;
|
|
216
|
-
rp_id: string;
|
|
217
|
-
rp_name: string;
|
|
218
|
-
secure_cookies: boolean;
|
|
219
|
-
verification_timeout: number;
|
|
220
|
-
}>;
|
|
221
|
-
db: z.ZodObject<{
|
|
222
|
-
host: z.ZodString;
|
|
223
|
-
port: z.ZodNumber;
|
|
224
|
-
password: z.ZodString;
|
|
225
|
-
user: z.ZodString;
|
|
226
|
-
database: z.ZodString;
|
|
227
|
-
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
port: number;
|
|
21
|
+
/** Whether users can verify emails */
|
|
22
|
+
email_verification: boolean;
|
|
23
|
+
};
|
|
24
|
+
db: {
|
|
229
25
|
host: string;
|
|
230
|
-
user: string;
|
|
231
|
-
password: string;
|
|
232
|
-
database: string;
|
|
233
|
-
}, {
|
|
234
26
|
port: number;
|
|
235
|
-
host: string;
|
|
236
|
-
user: string;
|
|
237
27
|
password: string;
|
|
28
|
+
user: string;
|
|
238
29
|
database: string;
|
|
239
|
-
}
|
|
240
|
-
debug:
|
|
241
|
-
log:
|
|
242
|
-
level:
|
|
243
|
-
console: z.ZodBoolean;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
};
|
|
31
|
+
debug: boolean;
|
|
32
|
+
log: {
|
|
33
|
+
level: (typeof levelText)[number];
|
|
245
34
|
console: boolean;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
console: boolean;
|
|
249
|
-
level: "error" | "warn" | "info" | "debug" | "notice";
|
|
250
|
-
}>;
|
|
251
|
-
web: z.ZodObject<{
|
|
252
|
-
prefix: z.ZodString;
|
|
253
|
-
}, "strip", z.ZodTypeAny, {
|
|
254
|
-
prefix: string;
|
|
255
|
-
}, {
|
|
35
|
+
};
|
|
36
|
+
web: {
|
|
256
37
|
prefix: string;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
38
|
+
assets: string;
|
|
39
|
+
secure: boolean;
|
|
40
|
+
port: number;
|
|
41
|
+
ssl_key: string;
|
|
42
|
+
ssl_cert: string;
|
|
43
|
+
};
|
|
260
44
|
}
|
|
261
|
-
export declare const configFiles: Map<string,
|
|
45
|
+
export declare const configFiles: Map<string, File>;
|
|
262
46
|
export declare function plainConfig(): Omit<Config, keyof typeof configShortcuts>;
|
|
263
47
|
declare const configShortcuts: {
|
|
264
|
-
findPath: typeof
|
|
48
|
+
findPath: typeof findConfigPaths;
|
|
265
49
|
load: typeof loadConfig;
|
|
266
50
|
loadDefaults: typeof loadDefaultConfigs;
|
|
267
51
|
plain: typeof plainConfig;
|
|
268
52
|
save: typeof saveConfig;
|
|
269
53
|
saveTo: typeof saveConfigTo;
|
|
270
54
|
set: typeof setConfig;
|
|
271
|
-
files: Map<string,
|
|
55
|
+
files: Map<string, File>;
|
|
272
56
|
};
|
|
273
57
|
export declare const config: Config & typeof configShortcuts;
|
|
274
58
|
export default config;
|
|
@@ -276,263 +60,51 @@ export declare const File: z.ZodObject<{
|
|
|
276
60
|
api: z.ZodOptional<z.ZodObject<{
|
|
277
61
|
disable_metadata: z.ZodOptional<z.ZodBoolean>;
|
|
278
62
|
cookie_auth: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
},
|
|
280
|
-
disable_metadata?: boolean | undefined;
|
|
281
|
-
cookie_auth?: boolean | undefined;
|
|
282
|
-
}, {
|
|
283
|
-
disable_metadata?: boolean | undefined;
|
|
284
|
-
cookie_auth?: boolean | undefined;
|
|
285
|
-
}>>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
286
64
|
apps: z.ZodOptional<z.ZodObject<{
|
|
287
|
-
disabled: z.ZodOptional<z.ZodArray<z.ZodString
|
|
288
|
-
},
|
|
289
|
-
disabled?: string[] | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
disabled?: string[] | undefined;
|
|
292
|
-
}>>;
|
|
65
|
+
disabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
293
67
|
auth: z.ZodOptional<z.ZodObject<{
|
|
294
|
-
credentials: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
296
68
|
origin: z.ZodOptional<z.ZodString>;
|
|
297
69
|
passkey_probation: z.ZodOptional<z.ZodNumber>;
|
|
298
70
|
rp_id: z.ZodOptional<z.ZodString>;
|
|
299
71
|
rp_name: z.ZodOptional<z.ZodString>;
|
|
300
72
|
secure_cookies: z.ZodOptional<z.ZodBoolean>;
|
|
301
73
|
verification_timeout: z.ZodOptional<z.ZodNumber>;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
debug?: boolean | undefined;
|
|
305
|
-
credentials?: boolean | undefined;
|
|
306
|
-
passkey_probation?: number | undefined;
|
|
307
|
-
rp_id?: string | undefined;
|
|
308
|
-
rp_name?: string | undefined;
|
|
309
|
-
secure_cookies?: boolean | undefined;
|
|
310
|
-
verification_timeout?: number | undefined;
|
|
311
|
-
}, {
|
|
312
|
-
origin?: string | undefined;
|
|
313
|
-
debug?: boolean | undefined;
|
|
314
|
-
credentials?: boolean | undefined;
|
|
315
|
-
passkey_probation?: number | undefined;
|
|
316
|
-
rp_id?: string | undefined;
|
|
317
|
-
rp_name?: string | undefined;
|
|
318
|
-
secure_cookies?: boolean | undefined;
|
|
319
|
-
verification_timeout?: number | undefined;
|
|
320
|
-
}>>;
|
|
74
|
+
email_verification: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
321
76
|
db: z.ZodOptional<z.ZodObject<{
|
|
322
77
|
host: z.ZodOptional<z.ZodString>;
|
|
323
78
|
port: z.ZodOptional<z.ZodNumber>;
|
|
324
79
|
password: z.ZodOptional<z.ZodString>;
|
|
325
80
|
user: z.ZodOptional<z.ZodString>;
|
|
326
81
|
database: z.ZodOptional<z.ZodString>;
|
|
327
|
-
},
|
|
328
|
-
port?: number | undefined;
|
|
329
|
-
host?: string | undefined;
|
|
330
|
-
user?: string | undefined;
|
|
331
|
-
password?: string | undefined;
|
|
332
|
-
database?: string | undefined;
|
|
333
|
-
}, {
|
|
334
|
-
port?: number | undefined;
|
|
335
|
-
host?: string | undefined;
|
|
336
|
-
user?: string | undefined;
|
|
337
|
-
password?: string | undefined;
|
|
338
|
-
database?: string | undefined;
|
|
339
|
-
}>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
340
83
|
debug: z.ZodOptional<z.ZodBoolean>;
|
|
341
84
|
log: z.ZodOptional<z.ZodObject<{
|
|
342
|
-
level: z.ZodOptional<z.ZodEnum<
|
|
85
|
+
level: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
error: "error";
|
|
87
|
+
warn: "warn";
|
|
88
|
+
info: "info";
|
|
89
|
+
debug: "debug";
|
|
90
|
+
notice: "notice";
|
|
91
|
+
}>>;
|
|
343
92
|
console: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
-
},
|
|
345
|
-
console?: boolean | undefined;
|
|
346
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
347
|
-
}, {
|
|
348
|
-
console?: boolean | undefined;
|
|
349
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
350
|
-
}>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
351
94
|
web: z.ZodOptional<z.ZodObject<{
|
|
352
95
|
prefix: z.ZodOptional<z.ZodString>;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}, {
|
|
356
|
-
prefix?: string | undefined;
|
|
357
|
-
}>>;
|
|
358
|
-
} & {
|
|
359
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
360
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
361
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
362
|
-
api: z.ZodOptional<z.ZodObject<{
|
|
363
|
-
disable_metadata: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
-
cookie_auth: z.ZodOptional<z.ZodBoolean>;
|
|
365
|
-
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
disable_metadata?: boolean | undefined;
|
|
367
|
-
cookie_auth?: boolean | undefined;
|
|
368
|
-
}, {
|
|
369
|
-
disable_metadata?: boolean | undefined;
|
|
370
|
-
cookie_auth?: boolean | undefined;
|
|
371
|
-
}>>;
|
|
372
|
-
apps: z.ZodOptional<z.ZodObject<{
|
|
373
|
-
disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
374
|
-
}, "strip", z.ZodTypeAny, {
|
|
375
|
-
disabled?: string[] | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
disabled?: string[] | undefined;
|
|
378
|
-
}>>;
|
|
379
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
380
|
-
credentials: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
383
|
-
passkey_probation: z.ZodOptional<z.ZodNumber>;
|
|
384
|
-
rp_id: z.ZodOptional<z.ZodString>;
|
|
385
|
-
rp_name: z.ZodOptional<z.ZodString>;
|
|
386
|
-
secure_cookies: z.ZodOptional<z.ZodBoolean>;
|
|
387
|
-
verification_timeout: z.ZodOptional<z.ZodNumber>;
|
|
388
|
-
}, "strip", z.ZodTypeAny, {
|
|
389
|
-
origin?: string | undefined;
|
|
390
|
-
debug?: boolean | undefined;
|
|
391
|
-
credentials?: boolean | undefined;
|
|
392
|
-
passkey_probation?: number | undefined;
|
|
393
|
-
rp_id?: string | undefined;
|
|
394
|
-
rp_name?: string | undefined;
|
|
395
|
-
secure_cookies?: boolean | undefined;
|
|
396
|
-
verification_timeout?: number | undefined;
|
|
397
|
-
}, {
|
|
398
|
-
origin?: string | undefined;
|
|
399
|
-
debug?: boolean | undefined;
|
|
400
|
-
credentials?: boolean | undefined;
|
|
401
|
-
passkey_probation?: number | undefined;
|
|
402
|
-
rp_id?: string | undefined;
|
|
403
|
-
rp_name?: string | undefined;
|
|
404
|
-
secure_cookies?: boolean | undefined;
|
|
405
|
-
verification_timeout?: number | undefined;
|
|
406
|
-
}>>;
|
|
407
|
-
db: z.ZodOptional<z.ZodObject<{
|
|
408
|
-
host: z.ZodOptional<z.ZodString>;
|
|
409
|
-
port: z.ZodOptional<z.ZodNumber>;
|
|
410
|
-
password: z.ZodOptional<z.ZodString>;
|
|
411
|
-
user: z.ZodOptional<z.ZodString>;
|
|
412
|
-
database: z.ZodOptional<z.ZodString>;
|
|
413
|
-
}, "strip", z.ZodTypeAny, {
|
|
414
|
-
port?: number | undefined;
|
|
415
|
-
host?: string | undefined;
|
|
416
|
-
user?: string | undefined;
|
|
417
|
-
password?: string | undefined;
|
|
418
|
-
database?: string | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
port?: number | undefined;
|
|
421
|
-
host?: string | undefined;
|
|
422
|
-
user?: string | undefined;
|
|
423
|
-
password?: string | undefined;
|
|
424
|
-
database?: string | undefined;
|
|
425
|
-
}>>;
|
|
426
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
-
log: z.ZodOptional<z.ZodObject<{
|
|
428
|
-
level: z.ZodOptional<z.ZodEnum<["error", "warn", "notice", "info", "debug"]>>;
|
|
429
|
-
console: z.ZodOptional<z.ZodBoolean>;
|
|
430
|
-
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
console?: boolean | undefined;
|
|
432
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
console?: boolean | undefined;
|
|
435
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
436
|
-
}>>;
|
|
437
|
-
web: z.ZodOptional<z.ZodObject<{
|
|
438
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
439
|
-
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
prefix?: string | undefined;
|
|
441
|
-
}, {
|
|
442
|
-
prefix?: string | undefined;
|
|
443
|
-
}>>;
|
|
444
|
-
} & {
|
|
445
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
446
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
447
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
448
|
-
api: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
disable_metadata: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
-
cookie_auth: z.ZodOptional<z.ZodBoolean>;
|
|
451
|
-
}, "strip", z.ZodTypeAny, {
|
|
452
|
-
disable_metadata?: boolean | undefined;
|
|
453
|
-
cookie_auth?: boolean | undefined;
|
|
454
|
-
}, {
|
|
455
|
-
disable_metadata?: boolean | undefined;
|
|
456
|
-
cookie_auth?: boolean | undefined;
|
|
457
|
-
}>>;
|
|
458
|
-
apps: z.ZodOptional<z.ZodObject<{
|
|
459
|
-
disabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
460
|
-
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
disabled?: string[] | undefined;
|
|
462
|
-
}, {
|
|
463
|
-
disabled?: string[] | undefined;
|
|
464
|
-
}>>;
|
|
465
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
credentials: z.ZodOptional<z.ZodBoolean>;
|
|
467
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
468
|
-
origin: z.ZodOptional<z.ZodString>;
|
|
469
|
-
passkey_probation: z.ZodOptional<z.ZodNumber>;
|
|
470
|
-
rp_id: z.ZodOptional<z.ZodString>;
|
|
471
|
-
rp_name: z.ZodOptional<z.ZodString>;
|
|
472
|
-
secure_cookies: z.ZodOptional<z.ZodBoolean>;
|
|
473
|
-
verification_timeout: z.ZodOptional<z.ZodNumber>;
|
|
474
|
-
}, "strip", z.ZodTypeAny, {
|
|
475
|
-
origin?: string | undefined;
|
|
476
|
-
debug?: boolean | undefined;
|
|
477
|
-
credentials?: boolean | undefined;
|
|
478
|
-
passkey_probation?: number | undefined;
|
|
479
|
-
rp_id?: string | undefined;
|
|
480
|
-
rp_name?: string | undefined;
|
|
481
|
-
secure_cookies?: boolean | undefined;
|
|
482
|
-
verification_timeout?: number | undefined;
|
|
483
|
-
}, {
|
|
484
|
-
origin?: string | undefined;
|
|
485
|
-
debug?: boolean | undefined;
|
|
486
|
-
credentials?: boolean | undefined;
|
|
487
|
-
passkey_probation?: number | undefined;
|
|
488
|
-
rp_id?: string | undefined;
|
|
489
|
-
rp_name?: string | undefined;
|
|
490
|
-
secure_cookies?: boolean | undefined;
|
|
491
|
-
verification_timeout?: number | undefined;
|
|
492
|
-
}>>;
|
|
493
|
-
db: z.ZodOptional<z.ZodObject<{
|
|
494
|
-
host: z.ZodOptional<z.ZodString>;
|
|
96
|
+
assets: z.ZodOptional<z.ZodString>;
|
|
97
|
+
secure: z.ZodOptional<z.ZodBoolean>;
|
|
495
98
|
port: z.ZodOptional<z.ZodNumber>;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
user?: string | undefined;
|
|
503
|
-
password?: string | undefined;
|
|
504
|
-
database?: string | undefined;
|
|
505
|
-
}, {
|
|
506
|
-
port?: number | undefined;
|
|
507
|
-
host?: string | undefined;
|
|
508
|
-
user?: string | undefined;
|
|
509
|
-
password?: string | undefined;
|
|
510
|
-
database?: string | undefined;
|
|
511
|
-
}>>;
|
|
512
|
-
debug: z.ZodOptional<z.ZodBoolean>;
|
|
513
|
-
log: z.ZodOptional<z.ZodObject<{
|
|
514
|
-
level: z.ZodOptional<z.ZodEnum<["error", "warn", "notice", "info", "debug"]>>;
|
|
515
|
-
console: z.ZodOptional<z.ZodBoolean>;
|
|
516
|
-
}, "strip", z.ZodTypeAny, {
|
|
517
|
-
console?: boolean | undefined;
|
|
518
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
519
|
-
}, {
|
|
520
|
-
console?: boolean | undefined;
|
|
521
|
-
level?: "error" | "warn" | "info" | "debug" | "notice" | undefined;
|
|
522
|
-
}>>;
|
|
523
|
-
web: z.ZodOptional<z.ZodObject<{
|
|
524
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
525
|
-
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
prefix?: string | undefined;
|
|
527
|
-
}, {
|
|
528
|
-
prefix?: string | undefined;
|
|
529
|
-
}>>;
|
|
530
|
-
} & {
|
|
531
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
532
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
533
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
99
|
+
ssl_key: z.ZodOptional<z.ZodString>;
|
|
100
|
+
ssl_cert: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
include: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
103
|
+
plugins: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
104
|
+
}, z.core.$loose>;
|
|
534
105
|
export interface File extends PartialRecursive<Config>, z.infer<typeof File> {
|
|
535
106
|
}
|
|
107
|
+
export declare function addConfigDefaults(other: PartialRecursive<Config>, _target?: Record<string, any>): void;
|
|
536
108
|
/**
|
|
537
109
|
* Update the current config
|
|
538
110
|
*/
|
|
@@ -567,4 +139,4 @@ export declare function saveConfigTo(path: string, changed: PartialRecursive<Con
|
|
|
567
139
|
/**
|
|
568
140
|
* Find the path to the config file
|
|
569
141
|
*/
|
|
570
|
-
export declare function
|
|
142
|
+
export declare function findConfigPaths(): string[];
|