Skip to content

Commit 7974509

Browse files
author
Stytch Codegen Bot
committed
Release user device history
1 parent b62b9dc commit 7974509

31 files changed

Lines changed: 384 additions & 11 deletions

File tree

stytch/src/main/kotlin/com/stytch/java/b2b/api/organizations/Organizations.kt

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,35 @@ public interface Organizations {
162162
): CompletableFuture<StytchResult<DeleteResponse>>
163163

164164
/**
165-
* Search for Organizations. If you send a request with no body params, no filtering will be applied and the endpoint will
166-
* return all Organizations. All fuzzy search filters require a minimum of three characters.
165+
*
166+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
167+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
168+
* requests/second.
169+
*
170+
* Search across your Organizations. Returns an array of Organization objects.
167171
*/
168172
public suspend fun search(data: SearchRequest): StytchResult<SearchResponse>
169173

170174
/**
171-
* Search for Organizations. If you send a request with no body params, no filtering will be applied and the endpoint will
172-
* return all Organizations. All fuzzy search filters require a minimum of three characters.
175+
*
176+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
177+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
178+
* requests/second.
179+
*
180+
* Search across your Organizations. Returns an array of Organization objects.
173181
*/
174182
public fun search(
175183
data: SearchRequest,
176184
callback: (StytchResult<SearchResponse>) -> Unit,
177185
)
178186

179187
/**
180-
* Search for Organizations. If you send a request with no body params, no filtering will be applied and the endpoint will
181-
* return all Organizations. All fuzzy search filters require a minimum of three characters.
188+
*
189+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
190+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
191+
* requests/second.
192+
*
193+
* Search across your Organizations. Returns an array of Organization objects.
182194
*/
183195
public fun searchCompletable(data: SearchRequest): CompletableFuture<StytchResult<SearchResponse>>
184196

stytch/src/main/kotlin/com/stytch/java/b2b/api/organizationsmembers/OrganizationsMembers.kt

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,21 +241,31 @@ public interface Members {
241241
): CompletableFuture<StytchResult<DeleteTOTPResponse>>
242242

243243
/**
244+
*
245+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
246+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
247+
* requests/second.
248+
*
244249
* Search for Members within specified Organizations. An array with at least one `organization_id` is required. Submitting
245250
* an empty `query` returns all non-deleted Members within the specified Organizations.
246251
*
247-
* *All fuzzy search filters require a minimum of three characters.
252+
* All fuzzy search filters require a minimum of three characters.
248253
*/
249254
public suspend fun search(
250255
data: SearchRequest,
251256
methodOptions: SearchRequestOptions? = null,
252257
): StytchResult<SearchResponse>
253258

254259
/**
260+
*
261+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
262+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
263+
* requests/second.
264+
*
255265
* Search for Members within specified Organizations. An array with at least one `organization_id` is required. Submitting
256266
* an empty `query` returns all non-deleted Members within the specified Organizations.
257267
*
258-
* *All fuzzy search filters require a minimum of three characters.
268+
* All fuzzy search filters require a minimum of three characters.
259269
*/
260270
public fun search(
261271
data: SearchRequest,
@@ -264,10 +274,15 @@ public interface Members {
264274
)
265275

266276
/**
277+
*
278+
* **Warning**: This endpoint is not recommended for use in login flows. Scaling issues may occur, as search performance
279+
* may vary from ~150 milliseconds to 9 seconds depending on query complexity and rate limits are set to 100
280+
* requests/second.
281+
*
267282
* Search for Members within specified Organizations. An array with at least one `organization_id` is required. Submitting
268283
* an empty `query` returns all non-deleted Members within the specified Organizations.
269284
*
270-
* *All fuzzy search filters require a minimum of three characters.
285+
* All fuzzy search filters require a minimum of three characters.
271286
*/
272287
public fun searchCompletable(
273288
data: SearchRequest,

stytch/src/main/kotlin/com/stytch/java/b2b/models/discoveryintermediatesessions/DiscoveryIntermediateSessions.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.stytch.java.b2b.models.organizations.Member
1313
import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
16+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1617

1718
@JsonClass(generateAdapter = false)
1819
public enum class ExchangeRequestLocale {
@@ -194,4 +195,11 @@ public data class ExchangeResponse
194195
*/
195196
@Json(name = "primary_required")
196197
val primaryRequired: PrimaryRequired? = null,
198+
/**
199+
* If a valid `telemetry_id` was passed in the request and the
200+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
201+
* response field will contain information about the member's device attributes.
202+
*/
203+
@Json(name = "member_device")
204+
val memberDevice: DeviceInfo? = null,
197205
)

stytch/src/main/kotlin/com/stytch/java/b2b/models/discoveryorganizations/DiscoveryOrganizations.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.stytch.java.b2b.models.organizations.Member
1515
import com.stytch.java.b2b.models.organizations.Organization
1616
import com.stytch.java.b2b.models.sessions.MemberSession
1717
import com.stytch.java.b2b.models.sessions.PrimaryRequired
18+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1819

1920
@JsonClass(generateAdapter = false)
2021
public enum class CreateRequestFirstPartyConnectedAppsAllowedType {
@@ -364,6 +365,13 @@ public data class CreateResponse
364365
*/
365366
@Json(name = "primary_required")
366367
val primaryRequired: PrimaryRequired? = null,
368+
/**
369+
* If a valid `telemetry_id` was passed in the request and the
370+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
371+
* response field will contain information about the member's device attributes.
372+
*/
373+
@Json(name = "member_device")
374+
val memberDevice: DeviceInfo? = null,
367375
)
368376

369377
/**

stytch/src/main/kotlin/com/stytch/java/b2b/models/magiclinks/MagicLinks.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.stytch.java.b2b.models.organizations.Member
1313
import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
16+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1617

1718
@JsonClass(generateAdapter = false)
1819
public enum class AuthenticateRequestLocale {
@@ -209,4 +210,11 @@ public data class AuthenticateResponse
209210
val mfaRequired: MfaRequired? = null,
210211
@Json(name = "primary_required")
211212
val primaryRequired: PrimaryRequired? = null,
213+
/**
214+
* If a valid `telemetry_id` was passed in the request and the
215+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
216+
* response field will contain information about the member's device attributes.
217+
*/
218+
@Json(name = "member_device")
219+
val memberDevice: DeviceInfo? = null,
212220
)

stytch/src/main/kotlin/com/stytch/java/b2b/models/oauth/OAuth.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.stytch.java.b2b.models.organizations.Member
1313
import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
16+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1617
import java.time.Instant
1718

1819
@JsonClass(generateAdapter = false)
@@ -263,4 +264,11 @@ public data class AuthenticateResponse
263264
*/
264265
@Json(name = "primary_required")
265266
val primaryRequired: PrimaryRequired? = null,
267+
/**
268+
* If a valid `telemetry_id` was passed in the request and the
269+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
270+
* response field will contain information about the member's device attributes.
271+
*/
272+
@Json(name = "member_device")
273+
val memberDevice: DeviceInfo? = null,
266274
)

stytch/src/main/kotlin/com/stytch/java/b2b/models/otpemail/OTPEmail.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.stytch.java.b2b.models.organizations.Member
1313
import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
16+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1617

1718
@JsonClass(generateAdapter = false)
1819
public enum class AuthenticateRequestLocale {
@@ -222,6 +223,13 @@ public data class AuthenticateResponse
222223
val mfaRequired: MfaRequired? = null,
223224
@Json(name = "primary_required")
224225
val primaryRequired: PrimaryRequired? = null,
226+
/**
227+
* If a valid `telemetry_id` was passed in the request and the
228+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
229+
* response field will contain information about the member's device attributes.
230+
*/
231+
@Json(name = "member_device")
232+
val memberDevice: DeviceInfo? = null,
225233
)
226234

227235
/**

stytch/src/main/kotlin/com/stytch/java/b2b/models/otpsms/OTPSms.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.squareup.moshi.JsonClass
1111
import com.stytch.java.b2b.models.organizations.Member
1212
import com.stytch.java.b2b.models.organizations.Organization
1313
import com.stytch.java.b2b.models.sessions.MemberSession
14+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1415

1516
@JsonClass(generateAdapter = false)
1617
public enum class SendRequestLocale {
@@ -183,6 +184,13 @@ public data class AuthenticateResponse
183184
*/
184185
@Json(name = "member_session")
185186
val memberSession: MemberSession? = null,
187+
/**
188+
* If a valid `telemetry_id` was passed in the request and the
189+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
190+
* response field will contain information about the member's device attributes.
191+
*/
192+
@Json(name = "member_device")
193+
val memberDevice: DeviceInfo? = null,
186194
)
187195

188196
/**

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import com.stytch.java.b2b.models.organizations.Member
1313
import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
16+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1617
import com.stytch.java.consumer.models.passwords.Argon2Config
1718
import com.stytch.java.consumer.models.passwords.MD5Config
1819
import com.stytch.java.consumer.models.passwords.PBKDF2Config
@@ -287,6 +288,13 @@ public data class AuthenticateResponse
287288
*/
288289
@Json(name = "primary_required")
289290
val primaryRequired: PrimaryRequired? = null,
291+
/**
292+
* If a valid `telemetry_id` was passed in the request and the
293+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
294+
* response field will contain information about the member's device attributes.
295+
*/
296+
@Json(name = "member_device")
297+
val memberDevice: DeviceInfo? = null,
290298
)
291299

292300
/**

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import com.stytch.java.b2b.models.organizations.Organization
1414
import com.stytch.java.b2b.models.sessions.MemberSession
1515
import com.stytch.java.b2b.models.sessions.PrimaryRequired
1616
import com.stytch.java.common.methodoptions.Authorization
17+
import com.stytch.java.consumer.models.devicehistory.DeviceInfo
1718

1819
@JsonClass(generateAdapter = false)
1920
public enum class ResetRequestLocale {
@@ -308,6 +309,13 @@ public data class ResetResponse
308309
*/
309310
@Json(name = "primary_required")
310311
val primaryRequired: PrimaryRequired? = null,
312+
/**
313+
* If a valid `telemetry_id` was passed in the request and the
314+
* [Fingerprint Lookup API](https://stytch.com/docs/fraud/api/fingerprint-lookup) returned results, the `member_device`
315+
* response field will contain information about the member's device attributes.
316+
*/
317+
@Json(name = "member_device")
318+
val memberDevice: DeviceInfo? = null,
311319
)
312320

313321
/**

0 commit comments

Comments
 (0)