-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: user management support API types #944
Draft
deepjyoti30-st
wants to merge
12
commits into
21.0
Choose a base branch
from
feat/user-management-support
base: 21.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6a2450a
Add API type definition for updating user details (name)
deepjyoti30-st 224c0d2
Add API type definitions for phone/email related user details
deepjyoti30-st c5c4a88
Add API type definitions for getting connected accounts and removing …
deepjyoti30-st 3f4d86d
Add password related API type definitions
deepjyoti30-st ab7ea52
Add API type definitions for session related functions
deepjyoti30-st 1aeb9fe
Add multifactor related API type definitions
deepjyoti30-st 24cd569
Rename interface function name for regenerating backup codes
deepjyoti30-st 0f982c8
Add user details get interface definition
deepjyoti30-st b70a8ab
Update type definitions based on requested/discussed changes
deepjyoti30-st 81cb0c3
Update user details update endpoint to accept inputs
deepjyoti30-st 848c8a8
Remove all changes in user metadata
deepjyoti30-st ed648ed
Update multifactorauth endpoints
deepjyoti30-st File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -325,6 +325,40 @@ export type APIInterface = { | |
} | ||
| GeneralErrorResponse | ||
>); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding a new email will entail adding a passwordless flow |
||
updatePasswordPOST: | ||
| undefined | ||
| ((input: { | ||
newPassword: string; | ||
oldPassword: string; | ||
session: SessionContainerInterface; | ||
options: APIOptions; | ||
userContext: UserContext; | ||
}) => Promise< | ||
| { | ||
status: "OK"; | ||
} | ||
| { status: "WRONG_CREDENTIALS_ERROR" } | ||
| { status: "PASSWORD_POLICY_VIOLATED_ERROR"; failureReason: string } | ||
| GeneralErrorResponse | ||
>); | ||
|
||
deepjyoti30-st marked this conversation as resolved.
Show resolved
Hide resolved
|
||
changeEmailPOST: | ||
| undefined | ||
| ((input: { | ||
email: string; | ||
session: SessionContainerInterface; | ||
options: APIOptions; | ||
userContext: UserContext; | ||
}) => Promise< | ||
| { | ||
status: "OK"; | ||
} | ||
| { status: "EMAIL_VERIFICATION_SENT" } | ||
| { status: "EMAIL_ALREADY_EXISTS_ERROR" } | ||
| { status: "EMAIL_CHANGE_NOT_ALLOWED_ERROR" } | ||
| GeneralErrorResponse | ||
>); | ||
}; | ||
|
||
deepjyoti30-st marked this conversation as resolved.
Show resolved
Hide resolved
deepjyoti30-st marked this conversation as resolved.
Show resolved
Hide resolved
|
||
export type TypeEmailPasswordPasswordResetEmailDeliveryInput = { | ||
deepjyoti30-st marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try out (emailverification in required mode, and account linking switched on):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This API can be called when setting a password for an existing account that has no email password login method.