feat: Add locale param to send/resend invitation methods#1460
Merged
jasonbarry merged 4 commits intomainfrom Feb 3, 2026
Merged
feat: Add locale param to send/resend invitation methods#1460jasonbarry merged 4 commits intomainfrom
locale param to send/resend invitation methods#1460jasonbarry merged 4 commits intomainfrom
Conversation
locale param to send/resend invitation methodslocale param to send/resend invitation methods
Contributor
Greptile OverviewGreptile SummaryThis PR adds support for the optional Key Changes:
Implementation Quality:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant UserManagement
participant Serializer
participant API
Note over Client,API: Send Invitation Flow
Client->>UserManagement: sendInvitation({email, locale})
UserManagement->>Serializer: serializeSendInvitationOptions(options)
Serializer-->>UserManagement: {email, locale, ...}
UserManagement->>API: POST /user_management/invitations
API-->>UserManagement: InvitationResponse
UserManagement-->>Client: Invitation
Note over Client,API: Resend Invitation Flow
Client->>UserManagement: resendInvitation(id, {locale})
UserManagement->>Serializer: serializeResendInvitationOptions(options)
Serializer-->>UserManagement: {locale}
UserManagement->>API: POST /user_management/invitations/{id}/resend
API-->>UserManagement: InvitationResponse
UserManagement-->>Client: Invitation
Note over Client,API: Backward Compatible Flow
Client->>UserManagement: resendInvitation(id)
UserManagement->>API: POST /user_management/invitations/{id}/resend
Note right of UserManagement: Empty object {} sent when no options
API-->>UserManagement: InvitationResponse
UserManagement-->>Client: Invitation
|
gjtorikian
approved these changes
Feb 3, 2026
Merged
gjtorikian
added a commit
that referenced
this pull request
Feb 3, 2026
## Description This release has two new features: * #1458 * #1460 and one bug fix: * #1461 ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [ ] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds node SDK support for the
localeprop insendInvitation()andresendInvitation()user management methods. This recently landed in the API here.Documentation
Docs are ready to go here: https://github.com/workos/workos/pull/51227