Skip to content

Commit 558fa64

Browse files
ci-stytchStytch Codegen Botafauci-stytch
authored
Include Session Attest endpoint (#106)
Co-authored-by: Stytch Codegen Bot <support@stytch.com> Co-authored-by: afauci-stytch <afauci@stytch.com>
1 parent b5d7a49 commit 558fa64

16 files changed

Lines changed: 412 additions & 71 deletions

File tree

stytch/src/main/kotlin/com/stytch/java/b2b/api/impersonation/Impersonation.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface Impersonation {
2727
* A Stytch session will be created for the impersonated member with a 60 minute duration. Impersonated sessions cannot be
2828
* extended.
2929
*
30-
* Prior to this step, you can generate an impersonation token by visiting the Stytch dashboard, viewing a member, and
30+
* Prior to this step, you can generate an impersonation token by visiting the Stytch Dashboard, viewing a member, and
3131
* clicking the `Impersonate Member` button.
3232
*/
3333
public suspend fun authenticate(data: AuthenticateRequest): StytchResult<AuthenticateResponse>
@@ -38,7 +38,7 @@ public interface Impersonation {
3838
* A Stytch session will be created for the impersonated member with a 60 minute duration. Impersonated sessions cannot be
3939
* extended.
4040
*
41-
* Prior to this step, you can generate an impersonation token by visiting the Stytch dashboard, viewing a member, and
41+
* Prior to this step, you can generate an impersonation token by visiting the Stytch Dashboard, viewing a member, and
4242
* clicking the `Impersonate Member` button.
4343
*/
4444
public fun authenticate(
@@ -52,7 +52,7 @@ public interface Impersonation {
5252
* A Stytch session will be created for the impersonated member with a 60 minute duration. Impersonated sessions cannot be
5353
* extended.
5454
*
55-
* Prior to this step, you can generate an impersonation token by visiting the Stytch dashboard, viewing a member, and
55+
* Prior to this step, you can generate an impersonation token by visiting the Stytch Dashboard, viewing a member, and
5656
* clicking the `Impersonate Member` button.
5757
*/
5858
public fun authenticateCompletable(data: AuthenticateRequest): CompletableFuture<StytchResult<AuthenticateResponse>>

stytch/src/main/kotlin/com/stytch/java/b2b/api/passwords/Passwords.kt

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,17 @@ public interface Passwords {
4545
* This API allows you to check whether the user’s provided password is valid, and to provide feedback to the user on how
4646
* to increase the strength of their password.
4747
*
48-
* This endpoint adapts to your Project's password strength configuration. If you're using
49-
* [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are considered valid if
50-
* the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
51-
* passwords are considered valid if they meet the requirements that you've set with Stytch. You may update your password
52-
* strength configuration in the [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
48+
* This endpoint adapts to your Project's password strength configuration.
49+
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are
50+
* considered valid if the strength score is >= 3.
51+
* If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your passwords are considered valid
52+
* if they meet the requirements that you've set with Stytch.
53+
* You may update your password strength configuration on the
54+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
5355
*
5456
* ## Password feedback
55-
* The zxcvbn_feedback and luds_feedback objects contains relevant fields for you to relay feedback to users that failed
56-
* to create a strong enough password.
57+
* The `zxcvbn_feedback` and `luds_feedback` objects contains relevant fields for you to relay feedback to users that
58+
* failed to create a strong enough password.
5759
*
5860
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the feedback object will contain
5961
* warning and suggestions for any password that does not meet the
@@ -70,15 +72,17 @@ public interface Passwords {
7072
* This API allows you to check whether the user’s provided password is valid, and to provide feedback to the user on how
7173
* to increase the strength of their password.
7274
*
73-
* This endpoint adapts to your Project's password strength configuration. If you're using
74-
* [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are considered valid if
75-
* the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
76-
* passwords are considered valid if they meet the requirements that you've set with Stytch. You may update your password
77-
* strength configuration in the [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
75+
* This endpoint adapts to your Project's password strength configuration.
76+
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are
77+
* considered valid if the strength score is >= 3.
78+
* If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your passwords are considered valid
79+
* if they meet the requirements that you've set with Stytch.
80+
* You may update your password strength configuration on the
81+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
7882
*
7983
* ## Password feedback
80-
* The zxcvbn_feedback and luds_feedback objects contains relevant fields for you to relay feedback to users that failed
81-
* to create a strong enough password.
84+
* The `zxcvbn_feedback` and `luds_feedback` objects contains relevant fields for you to relay feedback to users that
85+
* failed to create a strong enough password.
8286
*
8387
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the feedback object will contain
8488
* warning and suggestions for any password that does not meet the
@@ -98,15 +102,17 @@ public interface Passwords {
98102
* This API allows you to check whether the user’s provided password is valid, and to provide feedback to the user on how
99103
* to increase the strength of their password.
100104
*
101-
* This endpoint adapts to your Project's password strength configuration. If you're using
102-
* [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are considered valid if
103-
* the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
104-
* passwords are considered valid if they meet the requirements that you've set with Stytch. You may update your password
105-
* strength configuration in the [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
105+
* This endpoint adapts to your Project's password strength configuration.
106+
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the default, your passwords are
107+
* considered valid if the strength score is >= 3.
108+
* If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your passwords are considered valid
109+
* if they meet the requirements that you've set with Stytch.
110+
* You may update your password strength configuration on the
111+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
106112
*
107113
* ## Password feedback
108-
* The zxcvbn_feedback and luds_feedback objects contains relevant fields for you to relay feedback to users that failed
109-
* to create a strong enough password.
114+
* The `zxcvbn_feedback` and `luds_feedback` objects contains relevant fields for you to relay feedback to users that
115+
* failed to create a strong enough password.
110116
*
111117
* If you're using [zxcvbn](https://stytch.com/docs/guides/passwords/strength-policy), the feedback object will contain
112118
* warning and suggestions for any password that does not meet the

stytch/src/main/kotlin/com/stytch/java/b2b/api/passwordsdiscoveryemail/PasswordsDiscoveryEmail.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public interface Email {
3333
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
3434
* passwords are
3535
* considered valid if they meet the requirements that you've set with Stytch.
36-
* You may update your password strength configuration in the
37-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
36+
* You may update your password strength configuration on the
37+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
3838
*/
3939
public suspend fun resetStart(data: ResetStartRequest): StytchResult<ResetStartResponse>
4040

@@ -48,8 +48,8 @@ public interface Email {
4848
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
4949
* passwords are
5050
* considered valid if they meet the requirements that you've set with Stytch.
51-
* You may update your password strength configuration in the
52-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
51+
* You may update your password strength configuration on the
52+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
5353
*/
5454
public fun resetStart(
5555
data: ResetStartRequest,
@@ -66,8 +66,8 @@ public interface Email {
6666
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
6767
* passwords are
6868
* considered valid if they meet the requirements that you've set with Stytch.
69-
* You may update your password strength configuration in the
70-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
69+
* You may update your password strength configuration on the
70+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
7171
*/
7272
public fun resetStartCompletable(data: ResetStartRequest): CompletableFuture<StytchResult<ResetStartResponse>>
7373

stytch/src/main/kotlin/com/stytch/java/b2b/api/passwordsemail/PasswordsEmail.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public interface Email {
3636
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
3737
* passwords are
3838
* considered valid if they meet the requirements that you've set with Stytch.
39-
* You may update your password strength configuration in the
40-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
39+
* You may update your password strength configuration on the
40+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
4141
*/
4242
public suspend fun resetStart(data: ResetStartRequest): StytchResult<ResetStartResponse>
4343

@@ -51,8 +51,8 @@ public interface Email {
5151
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
5252
* passwords are
5353
* considered valid if they meet the requirements that you've set with Stytch.
54-
* You may update your password strength configuration in the
55-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
54+
* You may update your password strength configuration on the
55+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
5656
*/
5757
public fun resetStart(
5858
data: ResetStartRequest,
@@ -69,8 +69,8 @@ public interface Email {
6969
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
7070
* passwords are
7171
* considered valid if they meet the requirements that you've set with Stytch.
72-
* You may update your password strength configuration in the
73-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
72+
* You may update your password strength configuration on the
73+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
7474
*/
7575
public fun resetStartCompletable(data: ResetStartRequest): CompletableFuture<StytchResult<ResetStartResponse>>
7676

stytch/src/main/kotlin/com/stytch/java/b2b/api/passwordsexistingpassword/PasswordsExistingPassword.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public interface ExistingPassword {
3030
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
3131
* passwords are
3232
* considered valid if they meet the requirements that you've set with Stytch.
33-
* You may update your password strength configuration in the
34-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
33+
* You may update your password strength configuration on the
34+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
3535
*
3636
* If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated`
3737
* will be `false`, and an `intermediate_session_token` will be returned.
@@ -55,8 +55,8 @@ public interface ExistingPassword {
5555
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
5656
* passwords are
5757
* considered valid if they meet the requirements that you've set with Stytch.
58-
* You may update your password strength configuration in the
59-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
58+
* You may update your password strength configuration on the
59+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
6060
*
6161
* If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated`
6262
* will be `false`, and an `intermediate_session_token` will be returned.
@@ -83,8 +83,8 @@ public interface ExistingPassword {
8383
* if the strength score is >= 3. If you're using [LUDS](https://stytch.com/docs/guides/passwords/strength-policy), your
8484
* passwords are
8585
* considered valid if they meet the requirements that you've set with Stytch.
86-
* You may update your password strength configuration in the
87-
* [stytch dashboard](https://stytch.com/dashboard/password-strength-config).
86+
* You may update your password strength configuration on the
87+
* [Passwords Policy page](https://stytch.com/dashboard/password-strength-config) in the Stytch Dashboard.
8888
*
8989
* If the Member is required to complete MFA to log in to the Organization, the returned value of `member_authenticated`
9090
* will be `false`, and an `intermediate_session_token` will be returned.

stytch/src/main/kotlin/com/stytch/java/b2b/api/rbac/RBAC.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public interface RBAC {
3131
* extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was
3232
* last updated more than 5 minutes ago.
3333
*
34-
* Resources and Roles can be created and managed within the [Dashboard](https://stytch.com/docs/dashboard/rbac).
34+
* Resources and Roles can be created and managed within the [RBAC page](https://stytch.com/docs/dashboard/rbac) in the
35+
* Dashboard.
3536
* Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically
3637
* managed through certain Stytch API endpoints.
3738
*
@@ -48,7 +49,8 @@ public interface RBAC {
4849
* extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was
4950
* last updated more than 5 minutes ago.
5051
*
51-
* Resources and Roles can be created and managed within the [Dashboard](https://stytch.com/docs/dashboard/rbac).
52+
* Resources and Roles can be created and managed within the [RBAC page](https://stytch.com/docs/dashboard/rbac) in the
53+
* Dashboard.
5254
* Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically
5355
* managed through certain Stytch API endpoints.
5456
*
@@ -68,7 +70,8 @@ public interface RBAC {
6870
* extra request to Stytch. The policy will be refreshed if an authorization check is requested and the RBAC policy was
6971
* last updated more than 5 minutes ago.
7072
*
71-
* Resources and Roles can be created and managed within the [Dashboard](https://stytch.com/docs/dashboard/rbac).
73+
* Resources and Roles can be created and managed within the [RBAC page](https://stytch.com/docs/dashboard/rbac) in the
74+
* Dashboard.
7275
* Additionally, [Role assignment](https://stytch.com/docs/b2b/guides/rbac/role-assignment) can be programmatically
7376
* managed through certain Stytch API endpoints.
7477
*

0 commit comments

Comments
 (0)