Skip to content

Commit c01fd51

Browse files
committed
Merge #23: Update settings endpoint
8a9a70c feat: release 1.0.0-alpha.7 (Jose Celano) 81c2551 fix: [#22] update settings endpoint (Jose Celano) Pull request description: Update settings endpoint. ACKs for top commit: josecelano: ACK 8a9a70c Tree-SHA512: 2cfa1119d5126b5a470c22221eef9e14b8cb9d672d097c064bfd0376fb92e9961502e531e7d5d73fd4910de9e72eecbd9ea749843a1b90835e684454934d7b03
2 parents 3400f4b + 8a9a70c commit c01fd51

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "torrust-index-types-lib",
3-
"version": "3.0.0-alpha.6",
3+
"version": "3.0.0-alpha.7",
44
"description": "Contains common types for the Torrust project.",
55
"repository": {
66
"type": "git",

src/types/settings.ts

+18-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export type Settings = {
33
logging: Logging,
44
website: Website,
55
tracker: Tracker,
6-
net: Network,
6+
net: Net,
77
auth: Auth,
88
database: Database,
99
mail: Mail,
@@ -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)