Skip to content

Commit b65b6b6

Browse files
feat(auth): add reauth circuit breaker logic
1 parent 7128fd7 commit b65b6b6

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 108
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-3fbe762c99e8a120c426ac22bc1fa257c9127d631b12a38a6440a37f52935543.yml
3-
openapi_spec_hash: 5a190df210ed90b20a71c5061ff43917
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f967d3024897a6125d5d18c4577dbb2cc22d742d487e6a43165198685f992379.yml
3+
openapi_spec_hash: e1c40ef0aee3a79168eb9cc854a9e403
44
config_hash: 3b1fbbb6bda0dac7e8b42e155cd7da56

src/kernel/types/agents/auth_agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class AuthAgent(BaseModel):
7676
and login_url)
7777
"""
7878

79+
can_reauth_reason: Optional[str] = None
80+
"""Reason why automatic re-authentication is or is not possible"""
81+
7982
credential: Optional[Credential] = None
8083
"""Reference to credentials for managed auth. Use one of:
8184

src/kernel/types/auth/managed_auth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ class ManagedAuth(BaseModel):
108108
login_url)
109109
"""
110110

111+
can_reauth_reason: Optional[str] = None
112+
"""Reason why automatic re-authentication is or is not possible"""
113+
111114
credential: Optional[Credential] = None
112115
"""Reference to credentials for managed auth. Use one of:
113116

0 commit comments

Comments
 (0)