From 2c790a0296ff7941e22b7ad84114501736b698dc Mon Sep 17 00:00:00 2001 From: Mohammed Alosayli Date: Tue, 5 Nov 2024 16:29:08 +0300 Subject: [PATCH] chore: new config to schema json file --- .schema/version.schema.json | 17 +++++++++++++++++ .schemastore/config.schema.json | 14 ++++++++++++++ embedx/config.schema.json | 2 ++ 3 files changed, 33 insertions(+) diff --git a/.schema/version.schema.json b/.schema/version.schema.json index 72c2cc617d6b..2064e0208006 100644 --- a/.schema/version.schema.json +++ b/.schema/version.schema.json @@ -2,6 +2,23 @@ "$id": "https://github.com/ory/kratos/.schema/versions.config.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "oneOf": [ + { + "allOf": [ + { + "properties": { + "version": { + "const": "v1.5.0" + } + }, + "required": [ + "version" + ] + }, + { + "$ref": "https://raw.githubusercontent.com/nayla-finance/kratos/v1.5.0/.schemastore/config.schema.json" + } + ] + }, { "allOf": [ { diff --git a/.schemastore/config.schema.json b/.schemastore/config.schema.json index 7ce3c6f8800d..4332e52a66f9 100644 --- a/.schemastore/config.schema.json +++ b/.schemastore/config.schema.json @@ -1310,12 +1310,14 @@ "properties": { "attempt_window": { "type": "string", + "description": "The time window in which login attempts are considered. After this window, failed attempts are forgotten.", "pattern": "^([0-9]+(s|m|h))+$", "default": "5m", "examples": ["1h", "1m", "30s"] }, "max_attempts": { "type": "number", + "description": "The maximum number of failed login attempts (within the attempt window) before a user is blocked.", "default": "3", "examples": ["3", "5"] } @@ -2060,6 +2062,9 @@ "properties": { "email": { "$ref": "#/definitions/emailCourierTemplate" + }, + "sms": { + "$ref": "#/definitions/smsCourierTemplate" } }, "required": ["email"] @@ -2644,6 +2649,15 @@ }, "required": ["id", "url"] } + }, + "inactivity_threshold_in_months": { + "title": "Identity Inactivity Threshold", + "description": "The period (in months) after which an identity is considered inactive if there are no active sessions for it.", + "type": "integer", + "minimum": 1, + "maximum": 12, + "default": 6, + "examples": [1, 6, 12] } }, "required": ["schemas"], diff --git a/embedx/config.schema.json b/embedx/config.schema.json index e8f06daef2f3..5c8a9151ff7c 100644 --- a/embedx/config.schema.json +++ b/embedx/config.schema.json @@ -1310,12 +1310,14 @@ "properties": { "attempt_window": { "type": "string", + "description": "The time window in which login attempts are considered. After this window, failed attempts are forgotten.", "pattern": "^([0-9]+(s|m|h))+$", "default": "5m", "examples": ["1h", "1m", "1s"] }, "max_attempts": { "type": "number", + "description": "The maximum number of failed login attempts (within the attempt window) before a user is blocked.", "default": "3", "examples": ["3", "5"] }