Commit f1e0ba5
Add email_verified field to user response and update shared repo docs (#68)
## Summary
This PR introduces the `email_verified` field to the `UserResponse`
model and updates documentation for shared repository endpoints across
the graphs and service offerings APIs.
## Key Accomplishments
- **User Response Model Enhancement**: Extended `UserResponse` model
with a new `email_verified` attribute, providing visibility into whether
a user's email address has been verified. This adds an important field
for downstream consumers that need to make authorization or display
decisions based on email verification status.
- **Documentation Updates for Shared Repositories**: Updated docstrings
and parameter documentation in both `get_graphs` and
`get_service_offerings` API modules to clarify behavior related to
shared repositories, ensuring consistency and accuracy across the client
library.
## Changes Breakdown
| Area | Change |
|------|--------|
| `models/user_response.py` | Added `email_verified` field (+13/-2
lines), including type annotation and serialization support |
| `api/graphs/get_graphs.py` | Updated documentation for shared
repository parameters (+4/-4 lines) |
| `api/service_offerings/get_service_offerings.py` | Updated
documentation for shared repository parameters (+4/-4 lines) |
## Breaking Changes
- **Potential minor impact**: Consumers that perform strict schema
validation on `UserResponse` may need to account for the new
`email_verified` field. However, since this is an additive change, most
clients should handle it gracefully.
## Testing Notes
- Verify that the `UserResponse` model correctly deserializes API
responses that include the `email_verified` field
- Confirm backward compatibility when the field is absent from older API
responses (ensure proper default/optional handling)
- Validate that the graphs and service offerings endpoints continue to
function correctly with the updated parameter documentation
## Infrastructure Considerations
- No infrastructure changes required
- API consumers should be aware of the new field availability for any
email verification workflows
- Client library version should be bumped appropriately to signal the
model enhancement to downstream users
---
🤖 Generated with [Claude Code](https://claude.ai/code)
**Branch Info:**
- Source: `feature/user-email-verified`
- Target: `main`
- Type: feature
Co-Authored-By: Claude <noreply@anthropic.com>File tree
3 files changed
+19
-10
lines changed- robosystems_client
- api
- graphs
- service_offerings
- models
3 files changed
+19
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| 109 | + | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| 124 | + | |
116 | 125 | | |
117 | 126 | | |
118 | 127 | | |
| |||
0 commit comments