From 81c2551edae56f3128a372d6695c59df4fe6c27d Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 5 Aug 2024 13:19:52 +0100 Subject: [PATCH 1/2] fix: [#22] update settings endpoint --- src/types/settings.ts | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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 From 8a9a70cc1697fd7c98236ff163f51c8cf20f909d Mon Sep 17 00:00:00 2001 From: Jose Celano Date: Mon, 5 Aug 2024 13:20:37 +0100 Subject: [PATCH 2/2] feat: release 1.0.0-alpha.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",