Skip to content

Commit 30cf2f6

Browse files
committed
fix: [#22] update settings endpoint
1 parent 3400f4b commit 30cf2f6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/types/settings.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ export type Settings = {
1212
tracker_statistics_importer: TrackerStatisticsImporter
1313
}
1414

15+
export type Metadata = {
16+
app: string,
17+
purpose: string,
18+
schema_version: string,
19+
}
20+
1521
export type Logging = {
1622
threshold: Threshold,
1723
}
@@ -29,15 +35,15 @@ export type Tracker = {
2935
url: string
3036
}
3137

32-
export type Network = {
38+
export type Net = {
3339
base_url: string | null
3440
bind_address: string
3541
tsl: Tsl | null
3642
}
3743

3844
export type Auth = {
3945
email_on_signup: EmailOnSignup
40-
secret_key: string
46+
user_claim_token_pepper: string
4147
password_constraints: PasswordConstraints
4248
}
4349

@@ -46,7 +52,6 @@ export type Database = {
4652
}
4753

4854
export type Mail = {
49-
email_verification_enabled: boolean
5055
from: string
5156
reply_to: string
5257
smtp: Smtp
@@ -65,6 +70,10 @@ export type Api = {
6570
max_torrent_page_size: number
6671
}
6772

73+
export type Registration = {
74+
email: Email
75+
}
76+
6877
export type TrackerStatisticsImporter = {
6978
port: number
7079
torrent_info_update_interval: number
@@ -112,4 +121,9 @@ export enum Threshold {
112121
Info = "info",
113122
Debug = "debug",
114123
Trace = "trace",
124+
}
125+
126+
export type Email = {
127+
required: boolean
128+
verification_required: boolean
115129
}

0 commit comments

Comments
 (0)