Skip to content

Update entity and user schemas to include ID and roles#44

Merged
giovannibaratta merged 1 commit into
mainfrom
update-entity-info-schemas-6439272386163006731
May 17, 2026
Merged

Update entity and user schemas to include ID and roles#44
giovannibaratta merged 1 commit into
mainfrom
update-entity-info-schemas-6439272386163006731

Conversation

@giovannibaratta

Copy link
Copy Markdown
Owner

This change updates the /auth/info endpoint 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 the GetEntityInfo200Response to safely handle the entity-specific properties.
Additionally, the /users/:id response (User schema) has been updated to include the roles property. 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

@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@giovannibaratta giovannibaratta force-pushed the update-entity-info-schemas-6439272386163006731 branch from 00df5fa to b62fca0 Compare May 17, 2026 09:03
@giovannibaratta giovannibaratta marked this pull request as ready for review May 17, 2026 09:05
@giovannibaratta giovannibaratta merged commit e5ec668 into main May 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant