Skip to content

Commit

Permalink
Bump SDK from codegen workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Stytch Codegen Bot committed Jan 3, 2025
1 parent 06c4d43 commit 7a8e6f0
Show file tree
Hide file tree
Showing 16 changed files with 77 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public interface Organizations {
*
* When an Intermediate Session is passed in, all relationship types - `active_member`, `pending_member`,
* `invited_member`,
* and `eligible_to_join_by_email_domain` - will be returned,
* `eligible_to_join_by_email_domain`, and `eligible_to_join_by_oauth_tenant` - will be returned,
* and any membership can be assumed by calling the
* [Exchange Intermediate Session](https://stytch.com/docs/b2b/api/exchange-intermediate-session) endpoint.
*
Expand All @@ -139,7 +139,7 @@ public interface Organizations {
*
* When an Intermediate Session is passed in, all relationship types - `active_member`, `pending_member`,
* `invited_member`,
* and `eligible_to_join_by_email_domain` - will be returned,
* `eligible_to_join_by_email_domain`, and `eligible_to_join_by_oauth_tenant` - will be returned,
* and any membership can be assumed by calling the
* [Exchange Intermediate Session](https://stytch.com/docs/b2b/api/exchange-intermediate-session) endpoint.
*
Expand All @@ -164,7 +164,7 @@ public interface Organizations {
*
* When an Intermediate Session is passed in, all relationship types - `active_member`, `pending_member`,
* `invited_member`,
* and `eligible_to_join_by_email_domain` - will be returned,
* `eligible_to_join_by_email_domain`, and `eligible_to_join_by_oauth_tenant` - will be returned,
* and any membership can be assumed by calling the
* [Exchange Intermediate Session](https://stytch.com/docs/b2b/api/exchange-intermediate-session) endpoint.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public data class Membership
@JvmOverloads
constructor(
/**
* Either `active_member`, `pending_member`, `invited_member`, or `eligible_to_join_by_email_domain`
* Either `active_member`, `pending_member`, `invited_member`, `eligible_to_join_by_email_domain`, or
* `eligible_to_join_by_oauth_tenant`
*/
@Json(name = "type")
val type: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ public data class AuthenticateResponse
@Json(name = "method_id")
val methodId: String,
/**
* Indicates if all Sessions linked to the Member need to be reset. You should check this field if you aren't using
* Stytch's Session product. If you are using Stytch's Session product, we revoke the Member’s other Sessions for you.
* This field is deprecated.
*/
@Json(name = "reset_sessions")
val resetSessions: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ public data class AuthenticateResponse
*/
@Json(name = "organization")
val organization: Organization,
/**
* This field is deprecated.
*/
@Json(name = "reset_sessions")
val resetSessions: Boolean,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ public data class ResultsMetadata
@JvmOverloads
constructor(
/**
* The total number of results returned by your search query.
* The total number of results returned by your search query. If totals have been disabled for your Stytch Workspace to
* improve search performance, the value will always be -1.
*/
@Json(name = "total")
val total: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,28 @@ public data class ResetResponse
*/
@Json(name = "intermediate_session_token")
val intermediateSessionToken: String,
/**
* The email address.
*/
@Json(name = "email_address")
val emailAddress: String,
/**
* An array of `discovered_organization` objects tied to the `intermediate_session_token`, `session_token`, or
* `session_jwt`. See the [Discovered Organization Object](https://stytch.com/docs/b2b/api/discovered-organization-object)
* for complete details.
*
* Note that Organizations will only appear here under any of the following conditions:
* 1. The end user is already a Member of the Organization.
* 2. The end user is invited to the Organization.
* 3. The end user can join the Organization because:
*
* a) The Organization allows JIT provisioning.
*
* b) The Organizations' allowed domains list contains the Member's email domain.
*
* c) The Organization has at least one other Member with a verified email address with the same domain as the end
* user (to prevent phishing attacks).
*/
@Json(name = "discovered_organizations")
val discoveredOrganizations: List<DiscoveredOrganization>,
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,10 @@ public data class GetResponse
*/
@Json(name = "status_code")
val statusCode: Int,
/**
* A [SCIM Connection](https://stytch.com/docs/b2b/api/scim-connection-object) connection belonging to the organization
* (currently limited to one).
*/
@Json(name = "connection")
val connection: SCIMConnection? = null,
)
Expand Down
3 changes: 1 addition & 2 deletions stytch/src/main/kotlin/com/stytch/java/b2b/models/sso/SSO.kt
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ public data class AuthenticateResponse
@Json(name = "session_jwt")
val sessionJwt: String,
/**
* Indicates if all Sessions linked to the Member need to be reset. You should check this field if you aren't using
* Stytch's Session product. If you are using Stytch's Session product, we revoke the Member’s other Sessions for you.
* This field is deprecated.
*/
@Json(name = "reset_session")
val resetSession: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion stytch/src/main/kotlin/com/stytch/java/common/Version.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.stytch.java.common

internal const val VERSION = "6.7.0"
internal const val VERSION = "6.8.0"
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public data class ResultsMetadata
@JvmOverloads
constructor(
/**
* The total number of results returned by your search query.
* The total number of results returned by your search query. If totals have been disabled for your Stytch Workspace to
* improve search performance, the value will always be -1.
*/
@Json(name = "total")
val total: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public data class AuthenticateRequest
* `https://example.com/authenticate?stytch_token_type=magic_links&token=rM_kw42CWBhsHLF62V75jELMbvJ87njMe3tFVj7Qupu7`
*
* In the redirect URL, the `stytch_token_type` will be `magic_link`. See
* [here](https://stytch.com/docs/guides/dashboard/redirect-urls) for more detail.
* [here](/workspace-management/redirect-urls) for more detail.
*/
@Json(name = "token")
val token: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ public data class AuthenticateRequest
* The redirect URL will look like
* `https://example.com/authenticate?stytch_token_type=oauth&token=rM_kw42CWBhsHLF62V75jELMbvJ87njMe3tFVj7Qupu7`
*
* In the redirect URL, the `stytch_token_type` will be `oauth`. See
* [here](https://stytch.com/docs/guides/dashboard/redirect-urls) for more detail.
* In the redirect URL, the `stytch_token_type` will be `oauth`. See [here](/workspace-management/redirect-urls) for
* more detail.
*/
@Json(name = "token")
val token: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public data class ResetRequest
*
* In the redirect URL, the `stytch_token_type` will be `login` or `reset_password`.
*
* See examples and read more about redirect URLs [here](https://stytch.com/docs/guides/dashboard/redirect-urls).
* See examples and read more about redirect URLs [here](/workspace-management/redirect-urls).
*/
@Json(name = "token")
val token: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ public enum class AuthenticationFactorDeliveryMethod {

@Json(name = "oauth_exchange_github")
OAUTH_EXCHANGE_GITHUB,

@Json(name = "oauth_exchange_google")
OAUTH_EXCHANGE_GOOGLE,

@Json(name = "impersonation")
IMPERSONATION,
}

@JsonClass(generateAdapter = false)
Expand Down Expand Up @@ -172,6 +178,9 @@ public enum class AuthenticationFactorType {

@Json(name = "email_otp")
EMAIL_OTP,

@Json(name = "impersonated")
IMPERSONATED,
}

@JsonClass(generateAdapter = true)
Expand Down Expand Up @@ -334,6 +343,10 @@ public data class AuthenticationFactor
val hubspotOAuthExchangeFactor: HubspotOAuthExchangeFactor? = null,
@Json(name = "github_oauth_exchange_factor")
val githubOAuthExchangeFactor: GithubOAuthExchangeFactor? = null,
@Json(name = "google_oauth_exchange_factor")
val googleOAuthExchangeFactor: GoogleOAuthExchangeFactor? = null,
@Json(name = "impersonated_factor")
val impersonatedFactor: ImpersonatedFactor? = null,
)

@JsonClass(generateAdapter = true)
Expand Down Expand Up @@ -483,6 +496,14 @@ public data class GithubOAuthFactor
val emailId: String? = null,
)

@JsonClass(generateAdapter = true)
public data class GoogleOAuthExchangeFactor
@JvmOverloads
constructor(
@Json(name = "email_id")
val emailId: String,
)

@JsonClass(generateAdapter = true)
public data class GoogleOAuthFactor
@JvmOverloads
Expand Down Expand Up @@ -525,6 +546,16 @@ public data class HubspotOAuthFactor
val emailId: String? = null,
)

@JsonClass(generateAdapter = true)
public data class ImpersonatedFactor
@JvmOverloads
constructor(
@Json(name = "impersonator_id")
val impersonatorId: String,
@Json(name = "impersonator_email_address")
val impersonatorEmailAddress: String,
)

@JsonClass(generateAdapter = true)
public data class InstagramOAuthFactor
@JvmOverloads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ public data class ResultsMetadata
@JvmOverloads
constructor(
/**
* The total number of results returned by your search query.
* The total number of results returned by your search query. If totals have been disabled for your Stytch Workspace to
* improve search performance, the value will always be -1.
*/
@Json(name = "total")
val total: Int,
Expand Down
2 changes: 1 addition & 1 deletion version.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "6.7.0"
version = "6.8.0"

0 comments on commit 7a8e6f0

Please sign in to comment.