Skip to content

Commit 6ef80ee

Browse files
ci-stytchStytch Codegen Bot
andauthored
Add external_id to create endpoints (#89)
Co-authored-by: Stytch Codegen Bot <support@stytch.com>
1 parent 1293981 commit 6ef80ee

9 files changed

Lines changed: 51 additions & 4 deletions

File tree

stytch/src/main/kotlin/com/stytch/java/b2b/models/oauthdiscovery/OAuthDiscovery.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ public data class AuthenticateResponse
111111
*/
112112
@Json(name = "provider_tenant_ids")
113113
val providerTenantIds: List<String>,
114+
/**
115+
* The full name of the authenticated end user, if available.
116+
*/
117+
@Json(name = "full_name")
118+
val fullName: String,
114119
/**
115120
* The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values
116121
* equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,13 @@ public data class CreateRequest
256256
*/
257257
@Json(name = "roles")
258258
val roles: List<String>? = emptyList(),
259+
/**
260+
* An identifier that can be used in API calls wherever a member_id is expected. This is a string consisting of
261+
* alphanumeric, `.`, `_`, or `-` characters with a maximum length of 128 characters. External IDs must be unique within
262+
* an organization, but may be reused across different organizations in the same project.
263+
*/
264+
@Json(name = "external_id")
265+
val externalId: String? = null,
259266
)
260267

261268
/**

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
@@ -375,6 +375,14 @@ public data class MigrateRequest
375375
val mfaPhoneNumber: String? = null,
376376
@Json(name = "set_phone_number_verified")
377377
val setPhoneNumberVerified: Boolean? = null,
378+
/**
379+
* If a new member is created, this will set an identifier that can be used in API calls wherever a member_id is expected.
380+
* This is a string consisting of alphanumeric, `.`, `_`, or `-` characters with a maximum length of 128 characters.
381+
* External IDs must be unique within an organization, but may be reused across different organizations in the same
382+
* project. Note that if a member already exists, this field will be ignored.
383+
*/
384+
@Json(name = "external_id")
385+
val externalId: String? = null,
378386
)
379387

380388
/**

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public data class ResetStartRequest
121121
val discoveryRedirectURL: String? = null,
122122
/**
123123
* Use a custom template for reset password emails. By default, it will use your default email template. The template must
124-
* be a template using our built-in customizations or a custom HTML email for Magic Links - Reset Password.
124+
* be a template using our built-in customizations or a custom HTML email for Passwords - Reset Password.
125125
*/
126126
@Json(name = "reset_password_template_id")
127127
val resetPasswordTemplateId: String? = null,
@@ -145,6 +145,12 @@ public data class ResetStartRequest
145145
*/
146146
@Json(name = "locale")
147147
val locale: String? = null,
148+
/**
149+
* Use a custom template for verification emails sent during password reset flows. This template will be used the first
150+
* time a user sets a password via a
151+
* password reset flow. By default, it will use your default email template. The template must be a template using our
152+
* built-in customizations or a custom HTML email for Passwords - Email Verification.
153+
*/
148154
@Json(name = "verify_email_template_id")
149155
val verifyEmailTemplateId: String? = null,
150156
)

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,16 @@ public data class ResetStartRequest
356356
val locale: ResetStartRequestLocale? = null,
357357
/**
358358
* Use a custom template for reset password emails. By default, it will use your default email template. The template must
359-
* be a template using our built-in customizations or a custom HTML email for Magic Links - Reset Password.
359+
* be a template using our built-in customizations or a custom HTML email for Passwords - Reset Password.
360360
*/
361361
@Json(name = "reset_password_template_id")
362362
val resetPasswordTemplateId: String? = null,
363+
/**
364+
* Use a custom template for verification emails sent during password reset flows. This template will be used the first
365+
* time a user sets a password via a
366+
* password reset flow. By default, it will use your default email template. The template must be a template using our
367+
* built-in customizations or a custom HTML email for Passwords - Email Verification.
368+
*/
363369
@Json(name = "verify_email_template_id")
364370
val verifyEmailTemplateId: String? = null,
365371
)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package com.stytch.java.common
22

3-
internal const val VERSION = "7.11.0"
3+
internal const val VERSION = "7.12.0"

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,14 @@ public data class MigrateRequest
529529
*/
530530
@Json(name = "set_phone_number_verified")
531531
val setPhoneNumberVerified: Boolean? = null,
532+
/**
533+
* If a new user is created, this will set an identifier that can be used in API calls wherever a user_id is expected.
534+
* This is a string consisting of alphanumeric, `.`, `_`, or `-` characters with a maximum length of 128 characters.
535+
* External IDs must be unique within an organization, but may be reused across different organizations in the same
536+
* project. Note that if a user already exists, this field will be ignored.
537+
*/
538+
@Json(name = "external_id")
539+
val externalId: String? = null,
532540
)
533541

534542
/**

stytch/src/main/kotlin/com/stytch/java/consumer/models/users/Users.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,13 @@ public data class CreateRequest
404404
*/
405405
@Json(name = "untrusted_metadata")
406406
val untrustedMetadata: Map<String, Any?>? = emptyMap(),
407+
/**
408+
* An identifier that can be used in API calls wherever a user_id is expected. This is a string consisting of
409+
* alphanumeric, `.`, `_`, or `-` characters with a maximum length of 128 characters. External IDs must be unique within
410+
* an organization, but may be reused across different organizations in the same project.
411+
*/
412+
@Json(name = "external_id")
413+
val externalId: String? = null,
407414
)
408415

409416
/**

version.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "7.11.0"
1+
version = "7.12.0"

0 commit comments

Comments
 (0)