From a0b51fb111bd275d84f96002505ddf8b82dba340 Mon Sep 17 00:00:00 2001 From: ory-bot <60093411+ory-bot@users.noreply.github.com> Date: Thu, 14 Sep 2023 09:17:03 +0000 Subject: [PATCH] autogen(docs): generate cli docs --- docs/kratos/cli/kratos-delete-identity.md | 4 +- docs/kratos/cli/kratos-delete.md | 2 +- docs/kratos/cli/kratos-get-identity.md | 4 +- docs/kratos/cli/kratos-get.md | 2 +- .../cli/kratos-hashers-argon2-calibrate.md | 2 +- .../cli/kratos-hashers-argon2-load-test.md | 2 +- docs/kratos/cli/kratos-import-identities.md | 6 +- docs/kratos/cli/kratos-import.md | 2 +- docs/kratos/cli/kratos-list-identities.md | 12 +- docs/kratos/cli/kratos-list.md | 2 +- docs/kratos/cli/kratos-remote-status.md | 2 +- docs/kratos/cli/kratos-remote-version.md | 2 +- docs/kratos/cli/kratos-remote.md | 2 +- docs/kratos/cli/kratos-validate-identity.md | 2 +- docs/kratos/cli/kratos-validate.md | 2 +- docs/kratos/concepts/messages.json | 408 +++++++++--- docs/kratos/concepts/ui-user-interface.mdx | 610 ++++++++++++++---- 17 files changed, 803 insertions(+), 263 deletions(-) diff --git a/docs/kratos/cli/kratos-delete-identity.md b/docs/kratos/cli/kratos-delete-identity.md index 2d4dc13af..5d9c401bf 100644 --- a/docs/kratos/cli/kratos-delete-identity.md +++ b/docs/kratos/cli/kratos-delete-identity.md @@ -28,7 +28,7 @@ kratos delete identity id-0 [id-1] [id-2] [id-n] [flags] ``` To delete the identity with the recovery email address "foo@bar.com", run: - {{ .CommandPath }} $({{ .Root.Name }} list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "foo@bar.com")) | .[].id') + kratos delete identity $(kratos list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "foo@bar.com")) | .[].id') ``` ### Options @@ -41,7 +41,7 @@ To delete the identity with the recovery email address "foo@bar.com", run: ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-delete.md b/docs/kratos/cli/kratos-delete.md index 65624f3fd..dc509ac89 100644 --- a/docs/kratos/cli/kratos-delete.md +++ b/docs/kratos/cli/kratos-delete.md @@ -17,7 +17,7 @@ Delete resources ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for delete -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-get-identity.md b/docs/kratos/cli/kratos-get-identity.md index 6a0770359..860ff3af8 100644 --- a/docs/kratos/cli/kratos-get-identity.md +++ b/docs/kratos/cli/kratos-get-identity.md @@ -28,7 +28,7 @@ kratos get identity [id-1] [id-2] [id-n] [flags] ``` To get the identities with the recovery email address at the domain "ory.sh", run: - {{ .CommandPath }} $({{ .Root.Name }} ls identities --format json | jq -r 'map(select(.recovery_addresses[].value | endswith("@ory.sh"))) | .[].id') + kratos get identity $(kratos ls identities --format json | jq -r 'map(select(.recovery_addresses[].value | endswith("@ory.sh"))) | .[].id') ``` ### Options @@ -42,7 +42,7 @@ To get the identities with the recovery email address at the domain "ory.sh", ru ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-get.md b/docs/kratos/cli/kratos-get.md index aaeee4eab..ab73abf5a 100644 --- a/docs/kratos/cli/kratos-get.md +++ b/docs/kratos/cli/kratos-get.md @@ -17,7 +17,7 @@ Get resources ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for get -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-hashers-argon2-calibrate.md b/docs/kratos/cli/kratos-hashers-argon2-calibrate.md index 142407bd8..6940aeb10 100644 --- a/docs/kratos/cli/kratos-hashers-argon2-calibrate.md +++ b/docs/kratos/cli/kratos-hashers-argon2-calibrate.md @@ -32,7 +32,7 @@ kratos hashers argon2 calibrate [flags] -c, --config strings Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file. --dedicated-memory byte_size Amount of memory dedicated for password hashing. Kratos will try to not consume more memory. (default 1.00GB) --expected-deviation duration Expected deviation of the time a hashing operation (~login request) takes. (default 500ms) - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for calibrate --key-length uint32 Length of the key in bytes. (default 32) --max-concurrent uint8 Maximum number of concurrent hashing operations. (default 16) diff --git a/docs/kratos/cli/kratos-hashers-argon2-load-test.md b/docs/kratos/cli/kratos-hashers-argon2-load-test.md index f5c34a5d4..6e4e2ae29 100644 --- a/docs/kratos/cli/kratos-hashers-argon2-load-test.md +++ b/docs/kratos/cli/kratos-hashers-argon2-load-test.md @@ -27,7 +27,7 @@ kratos hashers argon2 load-test [flags] -c, --config strings Path to one or more .json, .yaml, .yml, .toml config files. Values are loaded in the order provided, meaning that the last config file overwrites values from the previous config file. --dedicated-memory byte_size Amount of memory dedicated for password hashing. Kratos will try to not consume more memory. (default 1.00GB) --expected-deviation duration Expected deviation of the time a hashing operation (~login request) takes. (default 500ms) - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for load-test --iterations uint32 Number of iterations to start probing at. (default 1) --key-length uint32 Length of the key in bytes. (default 32) diff --git a/docs/kratos/cli/kratos-import-identities.md b/docs/kratos/cli/kratos-import-identities.md index 9590d64c5..e1a1108f8 100644 --- a/docs/kratos/cli/kratos-import-identities.md +++ b/docs/kratos/cli/kratos-import-identities.md @@ -37,11 +37,11 @@ Create an example identity: } EOF - {{ .CommandPath }} file.json + kratos import identities file.json Alternatively: - cat file.json | {{ .CommandPath }} + cat file.json | kratos import identities ``` ### Options @@ -54,7 +54,7 @@ Alternatively: ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-import.md b/docs/kratos/cli/kratos-import.md index 7faa5098c..bdbf20624 100644 --- a/docs/kratos/cli/kratos-import.md +++ b/docs/kratos/cli/kratos-import.md @@ -17,7 +17,7 @@ Import resources ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for import -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-list-identities.md b/docs/kratos/cli/kratos-list-identities.md index d00e07531..13cc38d98 100644 --- a/docs/kratos/cli/kratos-list-identities.md +++ b/docs/kratos/cli/kratos-list-identities.md @@ -15,29 +15,31 @@ List identities ### Synopsis -List identities (paginated) +Return a list of identities. ``` -kratos list identities [ ] [flags] +kratos list identities [flags] ``` ### Examples ``` -{{ .CommandPath }} 100 1 +kratos list identities --page-size 100 ``` ### Options ``` - -h, --help help for identities + -h, --help help for identities + --page-size int maximum number of items to return (default 100) + --page-token string page token acquired from a previous response ``` ### Options inherited from parent commands ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-list.md b/docs/kratos/cli/kratos-list.md index ea3c17daf..266254d17 100644 --- a/docs/kratos/cli/kratos-list.md +++ b/docs/kratos/cli/kratos-list.md @@ -17,7 +17,7 @@ List resources ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for list -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-remote-status.md b/docs/kratos/cli/kratos-remote-status.md index 622314fd1..6b8bb47d3 100644 --- a/docs/kratos/cli/kratos-remote-status.md +++ b/docs/kratos/cli/kratos-remote-status.md @@ -27,7 +27,7 @@ kratos remote status [flags] ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-remote-version.md b/docs/kratos/cli/kratos-remote-version.md index 31b5f2d5d..3406c67b0 100644 --- a/docs/kratos/cli/kratos-remote-version.md +++ b/docs/kratos/cli/kratos-remote-version.md @@ -27,7 +27,7 @@ kratos remote version [flags] ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-remote.md b/docs/kratos/cli/kratos-remote.md index 55d5ac4fa..c3e8ded92 100644 --- a/docs/kratos/cli/kratos-remote.md +++ b/docs/kratos/cli/kratos-remote.md @@ -17,7 +17,7 @@ Helpers and management for remote Ory Kratos instances ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for remote -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-validate-identity.md b/docs/kratos/cli/kratos-validate-identity.md index 33c3d02da..75469dc0b 100644 --- a/docs/kratos/cli/kratos-validate-identity.md +++ b/docs/kratos/cli/kratos-validate-identity.md @@ -33,7 +33,7 @@ kratos validate identity file.json [file-2.json] [file-3.json] [file-n.json] [fl ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/cli/kratos-validate.md b/docs/kratos/cli/kratos-validate.md index 034ae9eaf..99b182ad9 100644 --- a/docs/kratos/cli/kratos-validate.md +++ b/docs/kratos/cli/kratos-validate.md @@ -17,7 +17,7 @@ Validate resources ``` -e, --endpoint string The URL of Ory Kratos' Admin API. Alternatively set using the KRATOS_ADMIN_URL environmental variable. - --format string Set the output format. One of table, json, yaml, json-pretty, and jsonpath. (default "default") + --format string Set the output format. One of table, json, yaml, json-pretty, jsonpath and jsonpointer. (default "default") -h, --help help for validate -q, --quiet Be quiet with output printing. ``` diff --git a/docs/kratos/concepts/messages.json b/docs/kratos/concepts/messages.json index 105e1030a..0f06213e9 100755 --- a/docs/kratos/concepts/messages.json +++ b/docs/kratos/concepts/messages.json @@ -2,14 +2,7 @@ { "id": 1010001, "text": "Sign in", - "type": "info", - "context": {} - }, - { - "id": 1010001, - "text": "Sign in with security key", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010002, @@ -22,32 +15,27 @@ { "id": 1010003, "text": "Please confirm this action by verifying that it is you.", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010004, "text": "Please complete the second authentication challenge.", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010005, "text": "Verify", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010006, "text": "Authentication code", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010007, "text": "Backup recovery code", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010008, @@ -57,14 +45,12 @@ { "id": 1010009, "text": "Use Authenticator", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010010, "text": "Use backup recovery code", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010011, @@ -74,19 +60,27 @@ { "id": 1010012, "text": "Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.", - "type": "info", - "context": {} + "type": "info" }, { "id": 1010013, "text": "Continue", "type": "info" }, + { + "id": 1010014, + "text": "An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the login.", + "type": "info" + }, + { + "id": 1010015, + "text": "Sign in with code", + "type": "info" + }, { "id": 1040001, "text": "Sign up", - "type": "info", - "context": {} + "type": "info" }, { "id": 1040002, @@ -106,6 +100,16 @@ "text": "Sign up with security key", "type": "info" }, + { + "id": 1040005, + "text": "An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the registration.", + "type": "info" + }, + { + "id": 1040006, + "text": "Sign up with code", + "type": "info" + }, { "id": 1050001, "text": "Your changes have been saved!", @@ -178,11 +182,6 @@ "text": "Add security key", "type": "info" }, - { - "id": 1050012, - "text": "Add security key", - "type": "info" - }, { "id": 1050013, "text": "Name of the security key", @@ -193,21 +192,22 @@ "text": "Secret was used at 2020-01-01 00:59:59 +0000 UTC", "type": "info", "context": { - "used_at": "2020-01-01T00:59:59Z" + "used_at": "2020-01-01T00:59:59Z", + "used_at_unix": 1577840399 } }, { "id": 1050015, - "text": "{code-1}, {code-2}", + "text": "{secrets_list}", "type": "info", "context": { "secrets": [ { "id": 1050009, - "text": "{code}", + "text": "{secret}", "type": "info", "context": { - "secret": "{code}" + "secret": "{secret}" } }, { @@ -215,7 +215,8 @@ "text": "Secret was used at 2020-01-01 00:59:59 +0000 UTC", "type": "info", "context": { - "used_at": "2020-01-01T00:59:59Z" + "used_at": "2020-01-01T00:59:59Z", + "used_at_unix": 1577840399 } } ] @@ -233,32 +234,33 @@ }, { "id": 1050018, - "text": "Remove security key \"{name}\"", + "text": "Remove security key \"{display_name}\"", "type": "info", "context": { "added_at": "2020-01-01T00:59:59Z", - "display_name": "{name}" + "added_at_unix": 1577840399, + "display_name": "{display_name}" } }, { "id": 1060001, - "text": "You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 0.02 minutes.", + "text": "You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 1.00 minutes.", "type": "success", "context": { - "privilegedSessionExpiresAt": "2020-01-01T01:01:00Z" + "privilegedSessionExpiresAt": "2020-01-01T01:01:00Z", + "privileged_session_expires_at": "2020-01-01T01:01:00Z", + "privileged_session_expires_at_unix": 1577840460 } }, { "id": 1060002, - "text": "An email containing a recovery link has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a recovery link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" }, { "id": 1060003, - "text": "An email containing a recovery code has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a recovery code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" }, { "id": 1070001, @@ -268,7 +270,10 @@ { "id": 1070002, "text": "{title}", - "type": "info" + "type": "info", + "context": { + "title": "{title}" + } }, { "id": 1070003, @@ -296,7 +301,7 @@ "type": "info" }, { - "id": 1070007, + "id": 1070008, "text": "Resend code", "type": "info" }, @@ -305,11 +310,30 @@ "text": "Continue", "type": "info" }, + { + "id": 1070010, + "text": "Recovery code", + "type": "info" + }, + { + "id": 1070011, + "text": "Verification code", + "type": "info" + }, + { + "id": 1070012, + "text": "Registration code", + "type": "info" + }, + { + "id": 1070013, + "text": "Login code", + "type": "info" + }, { "id": 1080001, - "text": "An email containing a verification link has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a verification link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" }, { "id": 1080002, @@ -318,39 +342,40 @@ }, { "id": 1080003, - "text": "An email containing a verification code has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a verification code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" }, { "id": 4000001, "text": "{reason}", - "type": "error" + "type": "error", + "context": { + "reason": "{reason}" + } }, { "id": 4000002, - "text": "Property {field} is missing.", + "text": "Property {property} is missing.", "type": "error", "context": { - "property": "{field}" + "property": "{property}" } }, { "id": 4000003, - "text": "Length must be \u003e= 1, but got 2.", + "text": "length must be \u003e= 5, but got 3", "type": "error", "context": { - "actual_length": 2, - "expected_length": 1 + "actual_length": 3, + "min_length": 5 } }, { "id": 4000004, - "text": "\"{value}\" is not valid \"{format}\"", + "text": "does not match pattern \"{pattern}\"", "type": "error", "context": { - "actual_value": "{value}", - "expected_format": "{format}" + "pattern": "{pattern}" } }, { @@ -364,20 +389,17 @@ { "id": 4000006, "text": "The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000007, "text": "An account with the same identifier (email, phone, username, ...) exists already.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000008, "text": "The provided authentication code is invalid, please try again.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000009, @@ -392,45 +414,199 @@ { "id": 4000011, "text": "You have no TOTP device set up.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000012, "text": "This backup recovery code has already been used.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000013, "text": "You have no WebAuthn device set up.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000014, "text": "You have no backup recovery codes set up.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000015, "text": "This account does not exist or has no security key set up.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4000016, "text": "The backup recovery code is not valid.", + "type": "error" + }, + { + "id": 4000017, + "text": "length must be \u003c= 5, but got 6", + "type": "error", + "context": { + "actual_length": 6, + "max_length": 5 + } + }, + { + "id": 4000018, + "text": "must be \u003e= 5 but found 3", + "type": "error", + "context": { + "actual": 3, + "minimum": 5 + } + }, + { + "id": 4000019, + "text": "must be \u003e 5 but found 5", + "type": "error", + "context": { + "actual": 5, + "minimum": 5 + } + }, + { + "id": 4000020, + "text": "must be \u003c= 5 but found 6", "type": "error", - "context": {} + "context": { + "actual": 6, + "maximum": 5 + } + }, + { + "id": 4000021, + "text": "must be \u003c 5 but found 5", + "type": "error", + "context": { + "actual": 5, + "maximum": 5 + } + }, + { + "id": 4000022, + "text": "3 not multipleOf 7", + "type": "error", + "context": { + "actual": 3, + "base": 7 + } + }, + { + "id": 4000023, + "text": "maximum 3 items allowed, but found 4 items", + "type": "error", + "context": { + "actual_items": 4, + "max_items": 3 + } + }, + { + "id": 4000024, + "text": "minimum 3 items allowed, but found 2 items", + "type": "error", + "context": { + "actual_items": 2, + "min_items": 3 + } + }, + { + "id": 4000025, + "text": "items at index 0 and 2 are equal", + "type": "error", + "context": { + "index_a": 0, + "index_b": 2 + } + }, + { + "id": 4000026, + "text": "expected {allowed_types_list}, but got {actual_type}", + "type": "error", + "context": { + "actual_type": "{actual_type}", + "allowed_types": ["{allowed_types_list}"] + } + }, + { + "id": 4000027, + "text": "An account with the same identifier (email, phone, username, ...) exists already. Please sign in to your existing account and link your social profile in the settings page.", + "type": "error" + }, + { + "id": 4000028, + "text": "You tried signing in with {credential_identifier_hint} which is already in use by another account. You can sign in using {available_credential_types_list}. You can sign in using one of the following social sign in providers: {Available_oidc_providers_list}.", + "type": "error", + "context": { + "available_credential_types": ["{available_credential_types_list}"], + "available_oidc_providers": ["{available_oidc_providers_list}"], + "credential_identifier_hint": "{credential_identifier_hint}" + } + }, + { + "id": 4000029, + "text": "must be equal to constant {expected}", + "type": "error", + "context": { + "expected": "{expected}" + } + }, + { + "id": 4000030, + "text": "const failed", + "type": "error" + }, + { + "id": 4000031, + "text": "The password can not be used because it is too similar to the identifier.", + "type": "error" + }, + { + "id": 4000032, + "text": "The password must be at least 6 characters long, but got 5.", + "type": "error", + "context": { + "actual_length": 5, + "min_length": 6 + } + }, + { + "id": 4000033, + "text": "The password must be at most 72 characters long, but got 80.", + "type": "error", + "context": { + "actual_length": 80, + "max_length": 72 + } + }, + { + "id": 4000034, + "text": "The password has been found in data breaches and must no longer be used.", + "type": "error", + "context": { + "breaches": 101 + } + }, + { + "id": 4000035, + "text": "This account does not exist or has not setup sign in with code.", + "type": "error" + }, + { + "id": 4000036, + "text": "The provided traits do not match the traits previously associated with this flow.", + "type": "error" }, { "id": 4010001, - "text": "The login flow expired 1.02 minutes ago, please try again.", + "text": "The login flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } }, { @@ -458,90 +634,108 @@ "text": "Could not find a strategy to verify your account with. Did you fill out the form correctly?", "type": "error" }, + { + "id": 4010007, + "text": "The request was already completed successfully and can not be retried.", + "type": "error" + }, + { + "id": 4010008, + "text": "The login code is invalid or has already been used. Please try again.", + "type": "error" + }, { "id": 4040001, - "text": "The registration flow expired -0.02 minutes ago, please try again.", + "text": "The registration flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } }, + { + "id": 4040002, + "text": "The request was already completed successfully and can not be retried.", + "type": "error" + }, + { + "id": 4040003, + "text": "The registration code is invalid or has already been used. Please try again.", + "type": "error" + }, { "id": 4050001, - "text": "The settings flow expired -0.02 minutes ago, please try again.", + "text": "The settings flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } }, { "id": 4060001, "text": "The request was already completed successfully and can not be retried.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4060002, "text": "The recovery flow reached a failure state and must be retried.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4060004, "text": "The recovery token is invalid or has already been used. Please retry the flow.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4060005, - "text": "The recovery flow expired -0.02 minutes ago, please try again.", + "text": "The recovery flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } }, { "id": 4060006, "text": "The recovery code is invalid or has already been used. Please try again.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4070001, "text": "The verification token is invalid or has already been used. Please retry the flow.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4070002, "text": "The request was already completed successfully and can not be retried.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4070003, "text": "The verification flow reached a failure state and must be retried.", - "type": "error", - "context": {} + "type": "error" }, { "id": 4070005, - "text": "The verification flow expired -0.02 minutes ago, please try again.", + "text": "The verification flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } }, { "id": 4070006, "text": "The verification code is invalid or has already been used. Please try again.", - "type": "error", - "context": {} + "type": "error" }, { "id": 5000001, "text": "{reason}", "type": "error", - "context": {} + "context": { + "reason": "{reason}" + } } ] diff --git a/docs/kratos/concepts/ui-user-interface.mdx b/docs/kratos/concepts/ui-user-interface.mdx index 4c2897625..f0865a0ca 100644 --- a/docs/kratos/concepts/ui-user-interface.mdx +++ b/docs/kratos/concepts/ui-user-interface.mdx @@ -1024,19 +1024,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010001, "text": "Sign in", - "type": "info", - "context": {} -} -``` - -###### Sign in with security key (1010001) - -```json -{ - "id": 1010001, - "text": "Sign in with security key", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1059,8 +1047,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010003, "text": "Please confirm this action by verifying that it is you.", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1070,8 +1057,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010004, "text": "Please complete the second authentication challenge.", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1081,8 +1067,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010005, "text": "Verify", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1092,8 +1077,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010006, "text": "Authentication code", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1103,8 +1087,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010007, "text": "Backup recovery code", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1124,8 +1107,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010009, "text": "Use Authenticator", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1135,8 +1117,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010010, "text": "Use backup recovery code", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1156,8 +1137,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1010012, "text": "Prepare your WebAuthn device (e.g. security key, biometrics scanner, ...) and press continue.", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1171,14 +1151,33 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` +###### An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the login. (1010014) + +```json +{ + "id": 1010014, + "text": "An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the login.", + "type": "info" +} +``` + +###### Sign in with code (1010015) + +```json +{ + "id": 1010015, + "text": "Sign in with code", + "type": "info" +} +``` + ###### Sign up (1040001) ```json { "id": 1040001, "text": "Sign up", - "type": "info", - "context": {} + "type": "info" } ``` @@ -1215,6 +1214,26 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` +###### An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the registration. (1040005) + +```json +{ + "id": 1040005, + "text": "An email containing a code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and retry the registration.", + "type": "info" +} +``` + +###### Sign up with code (1040006) + +```json +{ + "id": 1040006, + "text": "Sign up with code", + "type": "info" +} +``` + ###### Your changes have been saved! (1050001) ```json @@ -1347,16 +1366,6 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### Add security key (1050012) - -```json -{ - "id": 1050012, - "text": "Add security key", - "type": "info" -} -``` - ###### Name of the security key (1050013) ```json @@ -1375,26 +1384,27 @@ The section below is auto-generated. Changing it has no effect as any changes wi "text": "Secret was used at 2020-01-01 00:59:59 +0000 UTC", "type": "info", "context": { - "used_at": "2020-01-01T00:59:59Z" + "used_at": "2020-01-01T00:59:59Z", + "used_at_unix": 1577840399 } } ``` -###### {code-1}, {code-2} (1050015) +###### {secrets_list} (1050015) ```json { "id": 1050015, - "text": "{code-1}, {code-2}", + "text": "{secrets_list}", "type": "info", "context": { "secrets": [ { "id": 1050009, - "text": "{code}", + "text": "{secret}", "type": "info", "context": { - "secret": "{code}" + "secret": "{secret}" } }, { @@ -1402,7 +1412,8 @@ The section below is auto-generated. Changing it has no effect as any changes wi "text": "Secret was used at 2020-01-01 00:59:59 +0000 UTC", "type": "info", "context": { - "used_at": "2020-01-01T00:59:59Z" + "used_at": "2020-01-01T00:59:59Z", + "used_at_unix": 1577840399 } } ] @@ -1430,52 +1441,53 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### Remove security key "{name}" (1050018) +###### Remove security key "{display_name}" (1050018) ```json { "id": 1050018, - "text": "Remove security key \"{name}\"", + "text": "Remove security key \"{display_name}\"", "type": "info", "context": { "added_at": "2020-01-01T00:59:59Z", - "display_name": "{name}" + "added_at_unix": 1577840399, + "display_name": "{display_name}" } } ``` -###### You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 0.02 minutes. (1060001) +###### You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 1.00 minutes. (1060001) ```json { "id": 1060001, - "text": "You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 0.02 minutes.", + "text": "You successfully recovered your account. Please change your password or set up an alternative login method (e.g. social sign in) within the next 1.00 minutes.", "type": "success", "context": { - "privilegedSessionExpiresAt": "2020-01-01T01:01:00Z" + "privilegedSessionExpiresAt": "2020-01-01T01:01:00Z", + "privileged_session_expires_at": "2020-01-01T01:01:00Z", + "privileged_session_expires_at_unix": 1577840460 } } ``` -###### An email containing a recovery link has been sent to the email address you provided. (1060002) +###### An email containing a recovery link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with. (1060002) ```json { "id": 1060002, - "text": "An email containing a recovery link has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a recovery link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" } ``` -###### An email containing a recovery code has been sent to the email address you provided. (1060003) +###### An email containing a recovery code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with. (1060003) ```json { "id": 1060003, - "text": "An email containing a recovery code has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a recovery code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" } ``` @@ -1495,7 +1507,10 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 1070002, "text": "{title}", - "type": "info" + "type": "info", + "context": { + "title": "{title}" + } } ``` @@ -1549,11 +1564,11 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### Resend code (1070007) +###### Resend code (1070008) ```json { - "id": 1070007, + "id": 1070008, "text": "Resend code", "type": "info" } @@ -1569,14 +1584,53 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### An email containing a verification link has been sent to the email address you provided. (1080001) +###### Recovery code (1070010) + +```json +{ + "id": 1070010, + "text": "Recovery code", + "type": "info" +} +``` + +###### Verification code (1070011) + +```json +{ + "id": 1070011, + "text": "Verification code", + "type": "info" +} +``` + +###### Registration code (1070012) + +```json +{ + "id": 1070012, + "text": "Registration code", + "type": "info" +} +``` + +###### Login code (1070013) + +```json +{ + "id": 1070013, + "text": "Login code", + "type": "info" +} +``` + +###### An email containing a verification link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with. (1080001) ```json { "id": 1080001, - "text": "An email containing a verification link has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a verification link has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" } ``` @@ -1590,14 +1644,13 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### An email containing a verification code has been sent to the email address you provided. (1080003) +###### An email containing a verification code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with. (1080003) ```json { "id": 1080003, - "text": "An email containing a verification code has been sent to the email address you provided.", - "type": "info", - "context": {} + "text": "An email containing a verification code has been sent to the email address you provided. If you have not received an email, check the spelling of the address and make sure to use the address you registered with.", + "type": "info" } ``` @@ -1607,47 +1660,49 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000001, "text": "{reason}", - "type": "error" + "type": "error", + "context": { + "reason": "{reason}" + } } ``` -###### Property {field} is missing. (4000002) +###### Property {property} is missing. (4000002) ```json { "id": 4000002, - "text": "Property {field} is missing.", + "text": "Property {property} is missing.", "type": "error", "context": { - "property": "{field}" + "property": "{property}" } } ``` -###### Length must be >= 1, but got 2. (4000003) +###### length must be >= 5, but got 3 (4000003) ```json { "id": 4000003, - "text": "Length must be \u003e= 1, but got 2.", + "text": "length must be \u003e= 5, but got 3", "type": "error", "context": { - "actual_length": 2, - "expected_length": 1 + "actual_length": 3, + "min_length": 5 } } ``` -###### "{value}" is not valid "{format}" (4000004) +###### does not match pattern "{pattern}" (4000004) ```json { "id": 4000004, - "text": "\"{value}\" is not valid \"{format}\"", + "text": "does not match pattern \"{pattern}\"", "type": "error", "context": { - "actual_value": "{value}", - "expected_format": "{format}" + "pattern": "{pattern}" } } ``` @@ -1671,8 +1726,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000006, "text": "The provided credentials are invalid, check for spelling mistakes in your password or username, email address, or phone number.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1682,8 +1736,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000007, "text": "An account with the same identifier (email, phone, username, ...) exists already.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1693,8 +1746,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000008, "text": "The provided authentication code is invalid, please try again.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1724,8 +1776,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000011, "text": "You have no TOTP device set up.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1735,8 +1786,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000012, "text": "This backup recovery code has already been used.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1746,8 +1796,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000013, "text": "You have no WebAuthn device set up.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1757,8 +1806,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000014, "text": "You have no backup recovery codes set up.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1768,8 +1816,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000015, "text": "This account does not exist or has no security key set up.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1779,20 +1826,279 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4000016, "text": "The backup recovery code is not valid.", + "type": "error" +} +``` + +###### length must be <= 5, but got 6 (4000017) + +```json +{ + "id": 4000017, + "text": "length must be \u003c= 5, but got 6", + "type": "error", + "context": { + "actual_length": 6, + "max_length": 5 + } +} +``` + +###### must be >= 5 but found 3 (4000018) + +```json +{ + "id": 4000018, + "text": "must be \u003e= 5 but found 3", "type": "error", - "context": {} + "context": { + "actual": 3, + "minimum": 5 + } } ``` -###### The login flow expired 1.02 minutes ago, please try again. (4010001) +###### must be > 5 but found 5 (4000019) + +```json +{ + "id": 4000019, + "text": "must be \u003e 5 but found 5", + "type": "error", + "context": { + "actual": 5, + "minimum": 5 + } +} +``` + +###### must be <= 5 but found 6 (4000020) + +```json +{ + "id": 4000020, + "text": "must be \u003c= 5 but found 6", + "type": "error", + "context": { + "actual": 6, + "maximum": 5 + } +} +``` + +###### must be < 5 but found 5 (4000021) + +```json +{ + "id": 4000021, + "text": "must be \u003c 5 but found 5", + "type": "error", + "context": { + "actual": 5, + "maximum": 5 + } +} +``` + +###### 3 not multipleOf 7 (4000022) + +```json +{ + "id": 4000022, + "text": "3 not multipleOf 7", + "type": "error", + "context": { + "actual": 3, + "base": 7 + } +} +``` + +###### maximum 3 items allowed, but found 4 items (4000023) + +```json +{ + "id": 4000023, + "text": "maximum 3 items allowed, but found 4 items", + "type": "error", + "context": { + "actual_items": 4, + "max_items": 3 + } +} +``` + +###### minimum 3 items allowed, but found 2 items (4000024) + +```json +{ + "id": 4000024, + "text": "minimum 3 items allowed, but found 2 items", + "type": "error", + "context": { + "actual_items": 2, + "min_items": 3 + } +} +``` + +###### items at index 0 and 2 are equal (4000025) + +```json +{ + "id": 4000025, + "text": "items at index 0 and 2 are equal", + "type": "error", + "context": { + "index_a": 0, + "index_b": 2 + } +} +``` + +###### expected {allowed_types_list}, but got {actual_type} (4000026) + +```json +{ + "id": 4000026, + "text": "expected {allowed_types_list}, but got {actual_type}", + "type": "error", + "context": { + "actual_type": "{actual_type}", + "allowed_types": ["{allowed_types_list}"] + } +} +``` + +###### An account with the same identifier (email, phone, username, ...) exists already. Please sign in to your existing account and link your social profile in the settings page. (4000027) + +```json +{ + "id": 4000027, + "text": "An account with the same identifier (email, phone, username, ...) exists already. Please sign in to your existing account and link your social profile in the settings page.", + "type": "error" +} +``` + +###### You tried signing in with {credential_identifier_hint} which is already in use by another account. You can sign in using {available_credential_types_list}. You can sign in using one of the following social sign in providers: {Available_oidc_providers_list}. (4000028) + +```json +{ + "id": 4000028, + "text": "You tried signing in with {credential_identifier_hint} which is already in use by another account. You can sign in using {available_credential_types_list}. You can sign in using one of the following social sign in providers: {Available_oidc_providers_list}.", + "type": "error", + "context": { + "available_credential_types": ["{available_credential_types_list}"], + "available_oidc_providers": ["{available_oidc_providers_list}"], + "credential_identifier_hint": "{credential_identifier_hint}" + } +} +``` + +###### must be equal to constant {expected} (4000029) + +```json +{ + "id": 4000029, + "text": "must be equal to constant {expected}", + "type": "error", + "context": { + "expected": "{expected}" + } +} +``` + +###### const failed (4000030) + +```json +{ + "id": 4000030, + "text": "const failed", + "type": "error" +} +``` + +###### The password can not be used because it is too similar to the identifier. (4000031) + +```json +{ + "id": 4000031, + "text": "The password can not be used because it is too similar to the identifier.", + "type": "error" +} +``` + +###### The password must be at least 6 characters long, but got 5. (4000032) + +```json +{ + "id": 4000032, + "text": "The password must be at least 6 characters long, but got 5.", + "type": "error", + "context": { + "actual_length": 5, + "min_length": 6 + } +} +``` + +###### The password must be at most 72 characters long, but got 80. (4000033) + +```json +{ + "id": 4000033, + "text": "The password must be at most 72 characters long, but got 80.", + "type": "error", + "context": { + "actual_length": 80, + "max_length": 72 + } +} +``` + +###### The password has been found in data breaches and must no longer be used. (4000034) + +```json +{ + "id": 4000034, + "text": "The password has been found in data breaches and must no longer be used.", + "type": "error", + "context": { + "breaches": 101 + } +} +``` + +###### This account does not exist or has not setup sign in with code. (4000035) + +```json +{ + "id": 4000035, + "text": "This account does not exist or has not setup sign in with code.", + "type": "error" +} +``` + +###### The provided traits do not match the traits previously associated with this flow. (4000036) + +```json +{ + "id": 4000036, + "text": "The provided traits do not match the traits previously associated with this flow.", + "type": "error" +} +``` + +###### The login flow expired 1.00 minutes ago, please try again. (4010001) ```json { "id": 4010001, - "text": "The login flow expired 1.02 minutes ago, please try again.", + "text": "The login flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } } ``` @@ -1847,28 +2153,70 @@ The section below is auto-generated. Changing it has no effect as any changes wi } ``` -###### The registration flow expired -0.02 minutes ago, please try again. (4040001) +###### The request was already completed successfully and can not be retried. (4010007) + +```json +{ + "id": 4010007, + "text": "The request was already completed successfully and can not be retried.", + "type": "error" +} +``` + +###### The login code is invalid or has already been used. Please try again. (4010008) + +```json +{ + "id": 4010008, + "text": "The login code is invalid or has already been used. Please try again.", + "type": "error" +} +``` + +###### The registration flow expired 1.00 minutes ago, please try again. (4040001) ```json { "id": 4040001, - "text": "The registration flow expired -0.02 minutes ago, please try again.", + "text": "The registration flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } } ``` -###### The settings flow expired -0.02 minutes ago, please try again. (4050001) +###### The request was already completed successfully and can not be retried. (4040002) + +```json +{ + "id": 4040002, + "text": "The request was already completed successfully and can not be retried.", + "type": "error" +} +``` + +###### The registration code is invalid or has already been used. Please try again. (4040003) + +```json +{ + "id": 4040003, + "text": "The registration code is invalid or has already been used. Please try again.", + "type": "error" +} +``` + +###### The settings flow expired 1.00 minutes ago, please try again. (4050001) ```json { "id": 4050001, - "text": "The settings flow expired -0.02 minutes ago, please try again.", + "text": "The settings flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } } ``` @@ -1879,8 +2227,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4060001, "text": "The request was already completed successfully and can not be retried.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1890,8 +2237,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4060002, "text": "The recovery flow reached a failure state and must be retried.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1901,20 +2247,20 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4060004, "text": "The recovery token is invalid or has already been used. Please retry the flow.", - "type": "error", - "context": {} + "type": "error" } ``` -###### The recovery flow expired -0.02 minutes ago, please try again. (4060005) +###### The recovery flow expired 1.00 minutes ago, please try again. (4060005) ```json { "id": 4060005, - "text": "The recovery flow expired -0.02 minutes ago, please try again.", + "text": "The recovery flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } } ``` @@ -1925,8 +2271,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4060006, "text": "The recovery code is invalid or has already been used. Please try again.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1936,8 +2281,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4070001, "text": "The verification token is invalid or has already been used. Please retry the flow.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1947,8 +2291,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4070002, "text": "The request was already completed successfully and can not be retried.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1958,20 +2301,20 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4070003, "text": "The verification flow reached a failure state and must be retried.", - "type": "error", - "context": {} + "type": "error" } ``` -###### The verification flow expired -0.02 minutes ago, please try again. (4070005) +###### The verification flow expired 1.00 minutes ago, please try again. (4070005) ```json { "id": 4070005, - "text": "The verification flow expired -0.02 minutes ago, please try again.", + "text": "The verification flow expired 1.00 minutes ago, please try again.", "type": "error", "context": { - "expired_at": "2020-01-01T00:59:59Z" + "expired_at": "2020-01-01T00:59:59Z", + "expired_at_unix": 1577840399 } } ``` @@ -1982,8 +2325,7 @@ The section below is auto-generated. Changing it has no effect as any changes wi { "id": 4070006, "text": "The verification code is invalid or has already been used. Please try again.", - "type": "error", - "context": {} + "type": "error" } ``` @@ -1994,7 +2336,9 @@ The section below is auto-generated. Changing it has no effect as any changes wi "id": 5000001, "text": "{reason}", "type": "error", - "context": {} + "context": { + "reason": "{reason}" + } } ```