diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 563004f..141e7cd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.46.0" + ".": "0.47.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4bc313e..7f48513 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 104 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f7024f4171c7c4ec558de1c27f338b1089ffddd0d2dbfdb9bb9f9c2abe8f47bf.yml -openapi_spec_hash: ced43682b49e73a2862f99b49abb4fcd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-ac10847d991ef8ed89124b5550922cb5726af2b4a4c3396ee6ff82938302fc25.yml +openapi_spec_hash: 0d902563108fe2461708c05336eab40a config_hash: 16e4457a0bb26e98a335a1c2a572290a diff --git a/CHANGELOG.md b/CHANGELOG.md index cc126cd..b638bfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.47.0 (2026-04-07) + +Full Changelog: [v0.46.0...v0.47.0](https://github.com/kernel/kernel-go-sdk/compare/v0.46.0...v0.47.0) + +### Features + +* Include login_url in managed auth connection response ([795989c](https://github.com/kernel/kernel-go-sdk/commit/795989c703df9fc5bd740eeb69538a4a4cec7cee)) + ## 0.46.0 (2026-04-06) Full Changelog: [v0.45.0...v0.46.0](https://github.com/kernel/kernel-go-sdk/compare/v0.45.0...v0.46.0) diff --git a/README.md b/README.md index 03f632f..2d1b3a4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Or to pin the version: ```sh -go get -u 'github.com/kernel/kernel-go-sdk@v0.46.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.47.0' ``` diff --git a/authconnection.go b/authconnection.go index 7af27d7..21a2af8 100644 --- a/authconnection.go +++ b/authconnection.go @@ -46,8 +46,9 @@ func NewAuthConnectionService(opts ...option.RequestOption) (r AuthConnectionSer return } -// Creates an auth connection for a profile and domain combination. Returns 409 -// Conflict if an auth connection already exists for the given profile and domain. +// Creates an auth connection for a profile and domain combination. If the provided +// profile_name does not exist, it is created automatically. Returns 409 Conflict +// if an auth connection already exists for the given profile and domain. func (r *AuthConnectionService) New(ctx context.Context, body AuthConnectionNewParams, opts ...option.RequestOption) (res *ManagedAuth, err error) { opts = slices.Concat(r.Options, opts) path := "auth/connections" @@ -292,6 +293,8 @@ type ManagedAuth struct { LastAuthAt time.Time `json:"last_auth_at" format:"date-time"` // Browser live view URL for debugging (present when flow in progress) LiveViewURL string `json:"live_view_url" api:"nullable" format:"uri"` + // Optional login page URL to skip discovery + LoginURL string `json:"login_url" format:"uri"` // MFA method options (present when flow_step=awaiting_input and MFA selection // required) MfaOptions []ManagedAuthMfaOption `json:"mfa_options" api:"nullable"` @@ -332,6 +335,7 @@ type ManagedAuth struct { HostedURL respjson.Field LastAuthAt respjson.Field LiveViewURL respjson.Field + LoginURL respjson.Field MfaOptions respjson.Field PendingSSOButtons respjson.Field PostLoginURL respjson.Field @@ -544,7 +548,8 @@ func (r *ManagedAuthSignInOption) UnmarshalJSON(data []byte) error { type ManagedAuthCreateRequestParam struct { // Domain for authentication Domain string `json:"domain" api:"required"` - // Name of the profile to manage authentication for + // Name of the profile to manage authentication for. If the profile does not exist, + // it is created automatically. ProfileName string `json:"profile_name" api:"required"` // Interval in seconds between automatic health checks. When set, the system // periodically verifies the authentication status and triggers re-authentication diff --git a/internal/version.go b/internal/version.go index 75aab7a..7e14e79 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.46.0" // x-release-please-version +const PackageVersion = "0.47.0" // x-release-please-version