Skip to content

Commit 917dc3d

Browse files
feat(auth): add reauth circuit breaker logic
1 parent 403d222 commit 917dc3d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-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/resources/agents/auth/auth.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ export interface AuthAgent {
271271
*/
272272
can_reauth?: boolean;
273273

274+
/**
275+
* Reason why automatic re-authentication is or is not possible
276+
*/
277+
can_reauth_reason?: string;
278+
274279
/**
275280
* Reference to credentials for managed auth. Use one of:
276281
*

src/resources/auth/connections.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ export interface ManagedAuth {
241241
*/
242242
can_reauth?: boolean;
243243

244+
/**
245+
* Reason why automatic re-authentication is or is not possible
246+
*/
247+
can_reauth_reason?: string;
248+
244249
/**
245250
* Reference to credentials for managed auth. Use one of:
246251
*

0 commit comments

Comments
 (0)