Add email verification field to user SDK types#74
Merged
Conversation
- Revised comments in `sdk.gen.ts` to enhance clarity regarding shared repositories and their access levels. - Introduced a new optional field `email_verified` in `UserResponse` type within `types.gen.ts` to indicate whether a user's email is verified, improving user data accuracy and completeness. These changes aim to improve the SDK's documentation and enhance the user response structure for better integration and usability.
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.
Summary
This PR introduces an
email_verifiedfield to the user model in the auto-generated SDK, enabling the application to track and utilize email verification status for users.Changes
SDK Type Definitions (
sdk/types.gen.ts)email_verifiedfield to the user type definition, exposing whether a user's email address has been verifiedSDK Client (
sdk/sdk.gen.ts)Key Improvements
Breaking Changes
None. This is an additive change — the new
email_verifiedfield is added to existing types without modifying or removing any existing fields.Testing Notes for Reviewers
email_verifiedis marked as optional or required in the type definition, and ensure consuming code handles both cases appropriately (especially for existing users who may not yet have this field populated)Browser Compatibility
No browser compatibility concerns — these changes are limited to TypeScript type definitions and SDK client code with no DOM, CSS, or browser API dependencies.
🤖 Generated with Claude Code
Branch Info:
feature/user-email-verifiedmainCo-Authored-By: Claude noreply@anthropic.com