Skip to content

Commit

Permalink
autogen(docs): generate cli docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ory-bot committed Sep 4, 2024
1 parent 6ca03f3 commit ac91457
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 37 deletions.
41 changes: 27 additions & 14 deletions docs/kratos/concepts/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"text": "Sign in with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
"provider": "{provider}",
"provider_id": "{providerID}"
}
},
{
Expand Down Expand Up @@ -79,7 +80,7 @@
},
{
"id": 1010016,
"text": "Signing in will link your account to \"{duplicateIdentifier}\" at provider \"{provider}\". If you do not wish to link that account, please start a new login flow.",
"text": "You tried to sign in with \"{duplicateIdentifier}\", but that email is already used by another account. Sign in to your account with one of the options below to add your account \"{duplicateIdentifier}\" at \"{provider}\" as another way to sign in.",
"type": "info",
"context": {
"duplicateIdentifier": "{duplicateIdentifier}",
Expand All @@ -94,25 +95,17 @@
},
{
"id": 1010018,
"text": "Sign in with {provider} and link credential",
"text": "Confirm with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
}
},
{
"id": 1010019,
"text": "Continue with code",
"text": "Request code to continue",
"type": "info"
},
{
"id": 1010020,
"text": "We will send a code to {maskedIdentifier}. To verify that this is your address please enter it here.",
"type": "info",
"context": {
"masked_to": "{maskedIdentifier}"
}
},
{
"id": 1010021,
"text": "Sign in with passkey",
Expand All @@ -123,6 +116,15 @@
"text": "Sign in with password",
"type": "info"
},
{
"id": 1010023,
"text": "Send code to {address}",
"type": "info",
"context": {
"address": "{address}",
"channel": "{channel}"
}
},
{
"id": 1040001,
"text": "Sign up",
Expand All @@ -133,7 +135,8 @@
"text": "Sign up with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
"provider": "{provider}",
"provider_id": "{providerID}"
}
},
{
Expand All @@ -153,7 +156,7 @@
},
{
"id": 1040006,
"text": "Sign up with code",
"text": "Send sign up code",
"type": "info"
},
{
Expand Down Expand Up @@ -411,6 +414,11 @@
"text": "Login and link credential",
"type": "info"
},
{
"id": 1070015,
"text": "Please complete the captcha challenge to continue.",
"type": "info"
},
{
"id": 1080001,
"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.",
Expand Down Expand Up @@ -686,6 +694,11 @@
"text": "This account does not exist or has no login method configured.",
"type": "error"
},
{
"id": 4000038,
"text": "Captcha verification failed, please try again.",
"type": "error"
},
{
"id": 4010001,
"text": "The login flow expired 1.00 minutes ago, please try again.",
Expand Down
69 changes: 46 additions & 23 deletions docs/kratos/concepts/ui-messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"text": "Sign in with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
"provider": "{provider}",
"provider_id": "{providerID}"
}
}
```
Expand Down Expand Up @@ -153,12 +154,12 @@
}
```

###### Signing in will link your account to "{duplicateIdentifier}" at provider "{provider}". If you do not wish to link that account, please start a new login flow. (1010016)
###### You tried to sign in with "{duplicateIdentifier}", but that email is already used by another account. Sign in to your account with one of the options below to add your account "{duplicateIdentifier}" at "{provider}" as another way to sign in. (1010016)

```json
{
"id": 1010016,
"text": "Signing in will link your account to \"{duplicateIdentifier}\" at provider \"{provider}\". If you do not wish to link that account, please start a new login flow.",
"text": "You tried to sign in with \"{duplicateIdentifier}\", but that email is already used by another account. Sign in to your account with one of the options below to add your account \"{duplicateIdentifier}\" at \"{provider}\" as another way to sign in.",
"type": "info",
"context": {
"duplicateIdentifier": "{duplicateIdentifier}",
Expand All @@ -178,42 +179,29 @@
}
```

###### Sign in with {provider} and link credential (1010018)
###### Confirm with {provider} (1010018)

```json
{
"id": 1010018,
"text": "Sign in with {provider} and link credential",
"text": "Confirm with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
}
}
```

###### Continue with code (1010019)
###### Request code to continue (1010019)

```json
{
"id": 1010019,
"text": "Continue with code",
"text": "Request code to continue",
"type": "info"
}
```

###### We will send a code to {maskedIdentifier}. To verify that this is your address please enter it here. (1010020)

```json
{
"id": 1010020,
"text": "We will send a code to {maskedIdentifier}. To verify that this is your address please enter it here.",
"type": "info",
"context": {
"masked_to": "{maskedIdentifier}"
}
}
```

###### Sign in with passkey (1010021)

```json
Expand All @@ -234,6 +222,20 @@
}
```

###### Send code to {address} (1010023)

```json
{
"id": 1010023,
"text": "Send code to {address}",
"type": "info",
"context": {
"address": "{address}",
"channel": "{channel}"
}
}
```

###### Sign up (1040001)

```json
Expand All @@ -252,7 +254,8 @@
"text": "Sign up with {provider}",
"type": "info",
"context": {
"provider": "{provider}"
"provider": "{provider}",
"provider_id": "{providerID}"
}
}
```
Expand Down Expand Up @@ -287,12 +290,12 @@
}
```

###### Sign up with code (1040006)
###### Send sign up code (1040006)

```json
{
"id": 1040006,
"text": "Sign up with code",
"text": "Send sign up code",
"type": "info"
}
```
Expand Down Expand Up @@ -752,6 +755,16 @@
}
```

###### Please complete the captcha challenge to continue. (1070015)

```json
{
"id": 1070015,
"text": "Please complete the captcha challenge to continue.",
"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
Expand Down Expand Up @@ -1227,6 +1240,16 @@
}
```

###### Captcha verification failed, please try again. (4000038)

```json
{
"id": 4000038,
"text": "Captcha verification failed, please try again.",
"type": "error"
}
```

###### The login flow expired 1.00 minutes ago, please try again. (4010001)

```json
Expand Down

0 comments on commit ac91457

Please sign in to comment.