diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f04d089..57dc0c3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.32.0" + ".": "0.33.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ad62343..796d854 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 108 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f967d3024897a6125d5d18c4577dbb2cc22d742d487e6a43165198685f992379.yml -openapi_spec_hash: e1c40ef0aee3a79168eb9cc854a9e403 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-848817f2b20afb49a652952c814b99e27a94090e0770465e9a87748d27e227a7.yml +openapi_spec_hash: 91efb805e45cdd4c73cd8b0950bef019 config_hash: 3b1fbbb6bda0dac7e8b42e155cd7da56 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a99391..3b21bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.33.0 (2026-02-07) + +Full Changelog: [v0.32.0...v0.33.0](https://github.com/kernel/kernel-go-sdk/compare/v0.32.0...v0.33.0) + +### Features + +* Browser API endpoint grouping ([91e975e](https://github.com/kernel/kernel-go-sdk/commit/91e975eccb66baf45a209d6a585dfe5f5ca88b88)) + ## 0.32.0 (2026-02-07) Full Changelog: [v0.31.1...v0.32.0](https://github.com/kernel/kernel-go-sdk/compare/v0.31.1...v0.32.0) diff --git a/README.md b/README.md index 3128dd0..61ceb83 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.32.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.33.0' ``` diff --git a/agentauth.go b/agentauth.go index 52029c9..359ade1 100644 --- a/agentauth.go +++ b/agentauth.go @@ -333,7 +333,7 @@ type AuthAgent struct { CanReauth bool `json:"can_reauth"` // Reason why automatic re-authentication is or is not possible CanReauthReason string `json:"can_reauth_reason"` - // Reference to credentials for managed auth. Use one of: + // Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item @@ -382,7 +382,7 @@ const ( AuthAgentStatusNeedsAuth AuthAgentStatus = "NEEDS_AUTH" ) -// Reference to credentials for managed auth. Use one of: +// Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item diff --git a/authconnection.go b/authconnection.go index 44d3eba..63688bf 100644 --- a/authconnection.go +++ b/authconnection.go @@ -44,8 +44,8 @@ func NewAuthConnectionService(opts ...option.RequestOption) (r AuthConnectionSer return } -// Creates managed authentication for a profile and domain combination. Returns 409 -// Conflict if managed auth already exists for the given profile and domain. +// 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. 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" @@ -53,8 +53,8 @@ func (r *AuthConnectionService) New(ctx context.Context, body AuthConnectionNewP return } -// Retrieve managed auth by its ID. Includes current flow state if a login is in -// progress. +// Retrieve an auth connection by its ID. Includes current flow state if a login is +// in progress. func (r *AuthConnectionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ManagedAuth, err error) { opts = slices.Concat(r.Options, opts) if id == "" { @@ -66,7 +66,7 @@ func (r *AuthConnectionService) Get(ctx context.Context, id string, opts ...opti return } -// List managed auths with optional filters for profile_name and domain. +// List auth connections with optional filters for profile_name and domain. func (r *AuthConnectionService) List(ctx context.Context, query AuthConnectionListParams, opts ...option.RequestOption) (res *pagination.OffsetPagination[ManagedAuth], err error) { var raw *http.Response opts = slices.Concat(r.Options, opts) @@ -84,14 +84,14 @@ func (r *AuthConnectionService) List(ctx context.Context, query AuthConnectionLi return res, nil } -// List managed auths with optional filters for profile_name and domain. +// List auth connections with optional filters for profile_name and domain. func (r *AuthConnectionService) ListAutoPaging(ctx context.Context, query AuthConnectionListParams, opts ...option.RequestOption) *pagination.OffsetPaginationAutoPager[ManagedAuth] { return pagination.NewOffsetPaginationAutoPager(r.List(ctx, query, opts...)) } -// Deletes managed auth and terminates its workflow. This will: +// Deletes an auth connection and terminates its workflow. This will: // -// - Delete the managed auth record +// - Delete the auth connection record // - Terminate the Temporal workflow // - Cancel any in-progress login flows func (r *AuthConnectionService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error) { @@ -125,8 +125,8 @@ func (r *AuthConnectionService) FollowStreaming(ctx context.Context, id string, return ssestream.NewStream[AuthConnectionFollowResponseUnion](ssestream.NewDecoder(raw), err) } -// Starts a login flow for the managed auth. Returns immediately with a hosted URL -// for the user to complete authentication, or triggers automatic re-auth if +// Starts a login flow for the auth connection. Returns immediately with a hosted +// URL for the user to complete authentication, or triggers automatic re-auth if // credentials are stored. func (r *AuthConnectionService) Login(ctx context.Context, id string, body AuthConnectionLoginParams, opts ...option.RequestOption) (res *LoginResponse, err error) { opts = slices.Concat(r.Options, opts) @@ -139,8 +139,8 @@ func (r *AuthConnectionService) Login(ctx context.Context, id string, body AuthC return } -// Submits field values for the login form. Poll the managed auth to track progress -// and get results. +// Submits field values for the login form. Poll the auth connection to track +// progress and get results. func (r *AuthConnectionService) Submit(ctx context.Context, id string, body AuthConnectionSubmitParams, opts ...option.RequestOption) (res *SubmitFieldsResponse, err error) { opts = slices.Concat(r.Options, opts) if id == "" { @@ -169,7 +169,7 @@ func (r *LoginRequestParam) UnmarshalJSON(data []byte) error { // Response from starting a login flow type LoginResponse struct { - // Managed auth ID + // Auth connection ID ID string `json:"id,required"` // When the login flow expires FlowExpiresAt time.Time `json:"flow_expires_at,required" format:"date-time"` @@ -214,11 +214,11 @@ const ( // fields (flow_status, flow_step, discovered_fields, mfa_options) reflect the most // recent login flow and are null when no flow has been initiated. type ManagedAuth struct { - // Unique identifier for the managed auth + // Unique identifier for the auth connection ID string `json:"id,required"` // Target domain for authentication Domain string `json:"domain,required"` - // Name of the profile associated with this managed auth + // Name of the profile associated with this auth connection ProfileName string `json:"profile_name,required"` // Current authentication status of the managed profile // @@ -247,7 +247,7 @@ type ManagedAuth struct { CanReauth bool `json:"can_reauth"` // Reason why automatic re-authentication is or is not possible CanReauthReason string `json:"can_reauth_reason"` - // Reference to credentials for managed auth. Use one of: + // Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item @@ -343,7 +343,7 @@ const ( ManagedAuthStatusNeedsAuth ManagedAuthStatus = "NEEDS_AUTH" ) -// Reference to credentials for managed auth. Use one of: +// Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item @@ -457,7 +457,7 @@ func (r *ManagedAuthPendingSSOButton) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } -// Request to create managed auth for a profile and domain +// Request to create an auth connection for a profile and domain // // The properties Domain, ProfileName are required. type ManagedAuthCreateRequestParam struct { @@ -490,7 +490,7 @@ type ManagedAuthCreateRequestParam struct { // - OneLogin: \*.onelogin.com // - Ping Identity: _.pingone.com, _.pingidentity.com AllowedDomains []string `json:"allowed_domains,omitzero"` - // Reference to credentials for managed auth. Use one of: + // Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item @@ -509,7 +509,7 @@ func (r *ManagedAuthCreateRequestParam) UnmarshalJSON(data []byte) error { return apijson.UnmarshalRoot(data, r) } -// Reference to credentials for managed auth. Use one of: +// Reference to credentials for the auth connection. Use one of: // // - { name } for Kernel credentials // - { provider, path } for external provider item @@ -821,7 +821,7 @@ func (r *AuthConnectionFollowResponseManagedAuthStatePendingSSOButton) Unmarshal } type AuthConnectionNewParams struct { - // Request to create managed auth for a profile and domain + // Request to create an auth connection for a profile and domain ManagedAuthCreateRequest ManagedAuthCreateRequestParam paramObj } diff --git a/internal/version.go b/internal/version.go index 5a62e29..6e4c570 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.32.0" // x-release-please-version +const PackageVersion = "0.33.0" // x-release-please-version