Skip to content

Commit 74dbad8

Browse files
feat: Expose missing managed auth check URL as verification unavailable
Stainless-Generated-From: 1995c3fd399a0dc1dbc1a88983b6bb0d0673d0f8
1 parent 2ff8d4a commit 74dbad8

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎src/kernel/types/auth/managed_auth.py‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,11 @@ class ManagedAuth(BaseModel):
324324
"""
325325

326326
status: Literal["AUTHENTICATED", "NEEDS_AUTH"]
327-
"""Current authentication status of the managed profile"""
327+
"""Last known authentication status of the managed profile.
328+
329+
An inconclusive health check preserves this status and does not verify the
330+
current session.
331+
"""
328332

329333
allowed_domains: Optional[List[str]] = None
330334
"""Additional hostname roots valid for this auth flow, besides the primary domain.
@@ -519,6 +523,13 @@ class ManagedAuth(BaseModel):
519523
3600 (1 hour), Free: 21600 (6 hours).
520524
"""
521525

526+
health_check_unavailable_reason: Optional[Literal["no_auth_check_url"]] = None
527+
"""Why health checks cannot verify this connection.
528+
529+
Present when health checks are enabled but no auth check URL is available; a
530+
recent last_auth_check_at is not evidence of a valid session.
531+
"""
532+
522533
health_checks: Optional[bool] = None
523534
"""Whether periodic health checks are enabled for this connection.
524535

0 commit comments

Comments
 (0)