Skip to content

Commit 758e884

Browse files
feat(auth): plan-based min health check intervals
1 parent 0a2dff1 commit 758e884

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
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: 100
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-eaf23b9711c16c82563be76641c9c89988288307278dcd630a36f4f186f85afa.yml
3-
openapi_spec_hash: 369570222f4f725e1de11285422837cc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-92e99f12ad95d7c00047c3f8226cd705174c68c555b42f137f3051768fdf76ae.yml
3+
openapi_spec_hash: 886e96ba621aecde2a3920825771f260
44
config_hash: 82f0a04081a3ab7111d3a9c68cd3ff2b

src/kernel/resources/auth/connections.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ def create(
107107
108108
health_check_interval: Interval in seconds between automatic health checks. When set, the system
109109
periodically verifies the authentication status and triggers re-authentication
110-
if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
111-
(1 hour).
110+
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
111+
depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
112+
Hobbyist: 3600 (1 hour).
112113
113114
login_url: Optional login page URL to skip discovery
114115
@@ -489,8 +490,9 @@ async def create(
489490
490491
health_check_interval: Interval in seconds between automatic health checks. When set, the system
491492
periodically verifies the authentication status and triggers re-authentication
492-
if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
493-
(1 hour).
493+
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
494+
depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
495+
Hobbyist: 3600 (1 hour).
494496
495497
login_url: Optional login page URL to skip discovery
496498

src/kernel/types/auth/connection_create_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ class ConnectionCreateParams(TypedDict, total=False):
4949
"""Interval in seconds between automatic health checks.
5050
5151
When set, the system periodically verifies the authentication status and
52-
triggers re-authentication if needed. Must be between 300 (5 minutes) and 86400
53-
(24 hours). Default is 3600 (1 hour).
52+
triggers re-authentication if needed. Maximum is 86400 (24 hours). Default is
53+
3600 (1 hour). The minimum depends on your plan: Enterprise: 300 (5 minutes),
54+
Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour).
5455
"""
5556

5657
login_url: str

src/kernel/types/auth/managed_auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ class ManagedAuth(BaseModel):
176176
"""Interval in seconds between automatic health checks.
177177
178178
When set, the system periodically verifies the authentication status and
179-
triggers re-authentication if needed. Must be between 300 (5 minutes) and 86400
180-
(24 hours). Default is 3600 (1 hour).
179+
triggers re-authentication if needed. Maximum is 86400 (24 hours). Default is
180+
3600 (1 hour). The minimum depends on your plan: Enterprise: 300 (5 minutes),
181+
Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour).
181182
"""
182183

183184
hosted_url: Optional[str] = None

0 commit comments

Comments
 (0)