Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.32.0"
".": "0.33.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Or to pin the version:
<!-- x-release-please-start-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'
```

<!-- x-release-please-end -->
Expand Down
4 changes: 2 additions & 2 deletions agentauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
42 changes: 21 additions & 21 deletions authconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ 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"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
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 == "" {
Expand All @@ -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)
Expand All @@ -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) {
Expand Down Expand Up @@ -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)
Expand All @@ -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 == "" {
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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
//
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "0.32.0" // x-release-please-version
const PackageVersion = "0.33.0" // x-release-please-version