Skip to content

Commit b2f5bc2

Browse files
feat(auth): plan-based min health check intervals
1 parent 85ac49d commit b2f5bc2

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

.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

authconnection.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ type ManagedAuth struct {
298298
FlowType ManagedAuthFlowType `json:"flow_type,nullable"`
299299
// Interval in seconds between automatic health checks. When set, the system
300300
// periodically verifies the authentication status and triggers re-authentication
301-
// if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
302-
// (1 hour).
301+
// if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
302+
// depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
303+
// Hobbyist: 3600 (1 hour).
303304
HealthCheckInterval int64 `json:"health_check_interval,nullable"`
304305
// URL to redirect user to for hosted login (present when flow in progress)
305306
HostedURL string `json:"hosted_url,nullable" format:"uri"`
@@ -529,8 +530,9 @@ type ManagedAuthCreateRequestParam struct {
529530
ProfileName string `json:"profile_name,required"`
530531
// Interval in seconds between automatic health checks. When set, the system
531532
// periodically verifies the authentication status and triggers re-authentication
532-
// if needed. Must be between 300 (5 minutes) and 86400 (24 hours). Default is 3600
533-
// (1 hour).
533+
// if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
534+
// depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
535+
// Hobbyist: 3600 (1 hour).
534536
HealthCheckInterval param.Opt[int64] `json:"health_check_interval,omitzero"`
535537
// Optional login page URL to skip discovery
536538
LoginURL param.Opt[string] `json:"login_url,omitzero" format:"uri"`

0 commit comments

Comments
 (0)