Update entity and user schemas to include ID and roles#44
Conversation
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
00df5fa to
b62fca0
Compare
This change updates the
/auth/infoendpoint schema to return the authenticated entity's ID, associated roles, and organization role (specifically for users). It implements a discriminated union between users and agents for theGetEntityInfo200Responseto safely handle the entity-specific properties.Additionally, the
/users/:idresponse (Userschema) has been updated to include therolesproperty. Appropriate backend TypeScript validation models and associated test suites have been updated to ensure the changes are safely enforced.PR created automatically by Jules for task 6439272386163006731 started by @giovannibaratta