@@ -197,7 +197,12 @@ class ManagedAuth(BaseModel):
197197 """
198198
199199 flow_expires_at : Optional [datetime ] = None
200- """When the current flow expires (null when no flow in progress)"""
200+ """When the current flow expires (null when no flow in progress).
201+
202+ A flow past this timestamp is no longer valid and its `flow_status` will be
203+ `EXPIRED`. Clients may start a new login to supersede a stale `IN_PROGRESS` flow
204+ past this timestamp.
205+ """
201206
202207 flow_status : Optional [Literal ["IN_PROGRESS" , "SUCCESS" , "FAILED" , "EXPIRED" , "CANCELED" ]] = None
203208 """Current flow status (null when no flow in progress)"""
@@ -223,7 +228,20 @@ class ManagedAuth(BaseModel):
223228 """URL to redirect user to for hosted login (present when flow in progress)"""
224229
225230 last_auth_at : Optional [datetime ] = None
226- """When the profile was last successfully authenticated"""
231+ """Deprecated alias for `last_auth_check_at`.
232+
233+ Despite the name, this is the last health-check timestamp, not the last
234+ successful authentication. Use `last_auth_check_at` instead.
235+ """
236+
237+ last_auth_check_at : Optional [datetime ] = None
238+ """
239+ When the most recent auth health check ran for this connection, regardless of
240+ outcome. Updated on every health check and does not by itself indicate that the
241+ profile is currently authenticated - use `status` for that. May be newer than
242+ `flow_expires_at` when a flow is still in progress because health checks
243+ continue to run in parallel.
244+ """
227245
228246 live_view_url : Optional [str ] = None
229247 """Browser live view URL for debugging (present when flow in progress)"""
0 commit comments