Skip to content

Commit 2afe161

Browse files
feat: Managed auth: free-plan connections (cap 3), credentials, 6h floor (packaging PR 5)
Stainless-Generated-From: 27294af8c209bd0f75875350803cd3ec10f081a9
1 parent bacb44f commit 2afe161

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

src/kernel/resources/auth/connections.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ def create(
137137
138138
health_check_interval: Interval in seconds between automatic health checks. When set, the system
139139
periodically verifies the authentication status and triggers re-authentication
140-
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
141-
depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
142-
Hobbyist: 3600 (1 hour).
140+
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
141+
minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
142+
(5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
143+
hours).
143144
144145
health_checks: Whether to enable periodic health checks. When false, the system will not
145146
automatically verify authentication status, and `auto_reauth` has no effect on
@@ -749,9 +750,10 @@ async def create(
749750
750751
health_check_interval: Interval in seconds between automatic health checks. When set, the system
751752
periodically verifies the authentication status and triggers re-authentication
752-
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
753-
depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
754-
Hobbyist: 3600 (1 hour).
753+
if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
754+
minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
755+
(5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
756+
hours).
755757
756758
health_checks: Whether to enable periodic health checks. When false, the system will not
757759
automatically verify authentication status, and `auto_reauth` has no effect on

src/kernel/types/auth/connection_create_params.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ class ConnectionCreateParams(TypedDict, total=False):
8888
8989
When set, the system periodically verifies the authentication status and
9090
triggers re-authentication if needed. Maximum is 86400 (24 hours). Default is
91-
3600 (1 hour). The minimum depends on your plan: Enterprise: 300 (5 minutes),
92-
Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour).
91+
3600 (1 hour) or your plan minimum, whichever is larger. The minimum depends on
92+
your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes), Hobbyist:
93+
3600 (1 hour), Free: 21600 (6 hours).
9394
"""
9495

9596
health_checks: bool

src/kernel/types/auth/managed_auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,9 @@ class ManagedAuth(BaseModel):
469469
470470
When set, the system periodically verifies the authentication status and
471471
triggers re-authentication if needed. Maximum is 86400 (24 hours). Default is
472-
3600 (1 hour). The minimum depends on your plan: Enterprise: 300 (5 minutes),
473-
Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour).
472+
3600 (1 hour) or your plan minimum, whichever is larger. The minimum depends on
473+
your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes), Hobbyist:
474+
3600 (1 hour), Free: 21600 (6 hours).
474475
"""
475476

476477
health_checks: Optional[bool] = None

0 commit comments

Comments
 (0)