diff --git a/package.json b/package.json index a76c21a..afc6ed5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "torrust-index-types-lib", - "version": "3.0.0-alpha.6", + "version": "3.0.0-alpha.7", "description": "Contains common types for the Torrust project.", "repository": { "type": "git", diff --git a/src/types/settings.ts b/src/types/settings.ts index 38f13c5..28ab0c0 100644 --- a/src/types/settings.ts +++ b/src/types/settings.ts @@ -3,7 +3,7 @@ export type Settings = { logging: Logging, website: Website, tracker: Tracker, - net: Network, + net: Net, auth: Auth, database: Database, mail: Mail, @@ -12,6 +12,12 @@ export type Settings = { tracker_statistics_importer: TrackerStatisticsImporter } +export type Metadata = { + app: string, + purpose: string, + schema_version: string, +} + export type Logging = { threshold: Threshold, } @@ -29,7 +35,7 @@ export type Tracker = { url: string } -export type Network = { +export type Net = { base_url: string | null bind_address: string tsl: Tsl | null @@ -37,7 +43,7 @@ export type Network = { export type Auth = { email_on_signup: EmailOnSignup - secret_key: string + user_claim_token_pepper: string password_constraints: PasswordConstraints } @@ -46,7 +52,6 @@ export type Database = { } export type Mail = { - email_verification_enabled: boolean from: string reply_to: string smtp: Smtp @@ -65,6 +70,10 @@ export type Api = { max_torrent_page_size: number } +export type Registration = { + email: Email +} + export type TrackerStatisticsImporter = { port: number torrent_info_update_interval: number @@ -112,4 +121,9 @@ export enum Threshold { Info = "info", Debug = "debug", Trace = "trace", +} + +export type Email = { + required: boolean + verification_required: boolean } \ No newline at end of file