Skip to content

Commit 6b8cede

Browse files
feat(auth): plan-based min health check intervals
1 parent 8184e98 commit 6b8cede

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
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/resources/auth/connections.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,9 @@ export interface ManagedAuth {
323323
/**
324324
* Interval in seconds between automatic health checks. When set, the system
325325
* periodically verifies the authentication status and triggers re-authentication
326-
* if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
327-
* (1 hour).
326+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
327+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
328+
* Hobbyist: 3600 (1 hour).
328329
*/
329330
health_check_interval?: number | null;
330331

@@ -535,8 +536,9 @@ export interface ManagedAuthCreateRequest {
535536
/**
536537
* Interval in seconds between automatic health checks. When set, the system
537538
* periodically verifies the authentication status and triggers re-authentication
538-
* if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
539-
* (1 hour).
539+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
540+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
541+
* Hobbyist: 3600 (1 hour).
540542
*/
541543
health_check_interval?: number;
542544

@@ -849,8 +851,9 @@ export interface ConnectionCreateParams {
849851
/**
850852
* Interval in seconds between automatic health checks. When set, the system
851853
* periodically verifies the authentication status and triggers re-authentication
852-
* if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
853-
* (1 hour).
854+
* if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
855+
* depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
856+
* Hobbyist: 3600 (1 hour).
854857
*/
855858
health_check_interval?: number;
856859

0 commit comments

Comments
 (0)