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.52.0"
".": "0.53.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: 112
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-4ce09d1a7546ab36f578cb27d819187eeb90c580b11834c7ff7a375aa22f9a20.yml
openapi_spec_hash: 1043ab2d699f6c828680c3352cd4cece
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-86e061884d273a27064593a0de3a4ba366a12a1001181741addb4f781be18ec9.yml
openapi_spec_hash: e0a4ddf4a3302599376756127099488c
config_hash: 08d55086449943a8fec212b870061a3f
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 0.53.0 (2026-05-02)

Full Changelog: [v0.52.0...v0.53.0](https://github.com/kernel/kernel-go-sdk/compare/v0.52.0...v0.53.0)

### Features

* Add 'switch' MFA option type for generic method-switcher links ([9bed035](https://github.com/kernel/kernel-go-sdk/commit/9bed035e6ab4fe139d1e4cdedfe3d4e4b1dada69))
* **api:** server-side search on GET /projects ([588318c](https://github.com/kernel/kernel-go-sdk/commit/588318ca172dd613cf7afcedbccd0ceca99c90ce))


### Chores

* avoid embedding reflect.Type for dead code elimination ([b3465f1](https://github.com/kernel/kernel-go-sdk/commit/b3465f1174e2136bed8830cc4be18cf464068925))

## 0.52.0 (2026-04-29)

Full Changelog: [v0.51.0...v0.52.0](https://github.com/kernel/kernel-go-sdk/compare/v0.51.0...v0.52.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.52.0'
go get -u 'github.com/kernel/kernel-go-sdk@v0.53.0'
```

<!-- x-release-please-end -->
Expand Down
16 changes: 10 additions & 6 deletions authconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ type ManagedAuthDiscoveredField struct {
// If this field is associated with an MFA option, the type of that option (e.g.,
// password field linked to "Enter password" option)
//
// Any of "sms", "call", "email", "totp", "push", "password".
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
LinkedMfaType string `json:"linked_mfa_type" api:"nullable"`
// Field placeholder
Placeholder string `json:"placeholder"`
Expand Down Expand Up @@ -491,9 +491,11 @@ const (
type ManagedAuthMfaOption struct {
// The visible option text
Label string `json:"label" api:"required"`
// The MFA delivery method type (includes password for auth method selection pages)
// The MFA delivery method type. Includes 'password' for auth method selection
// pages and 'switch' for generic method-switcher links like "Use another method"
// that do not name a specific method.
//
// Any of "sms", "call", "email", "totp", "push", "password".
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
Type string `json:"type" api:"required"`
// Additional instructions from the site
Description string `json:"description" api:"nullable"`
Expand Down Expand Up @@ -992,7 +994,7 @@ type AuthConnectionFollowResponseManagedAuthStateDiscoveredField struct {
// If this field is associated with an MFA option, the type of that option (e.g.,
// password field linked to "Enter password" option)
//
// Any of "sms", "call", "email", "totp", "push", "password".
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
LinkedMfaType string `json:"linked_mfa_type" api:"nullable"`
// Field placeholder
Placeholder string `json:"placeholder"`
Expand Down Expand Up @@ -1025,9 +1027,11 @@ func (r *AuthConnectionFollowResponseManagedAuthStateDiscoveredField) UnmarshalJ
type AuthConnectionFollowResponseManagedAuthStateMfaOption struct {
// The visible option text
Label string `json:"label" api:"required"`
// The MFA delivery method type (includes password for auth method selection pages)
// The MFA delivery method type. Includes 'password' for auth method selection
// pages and 'switch' for generic method-switcher links like "Use another method"
// that do not name a specific method.
//
// Any of "sms", "call", "email", "totp", "push", "password".
// Any of "sms", "call", "email", "totp", "push", "password", "switch".
Type string `json:"type" api:"required"`
// Additional instructions from the site
Description string `json:"description" api:"nullable"`
Expand Down
4 changes: 2 additions & 2 deletions internal/apiform/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ type encoderField struct {
}

type encoderEntry struct {
reflect.Type
typ reflect.Type
dateFormat string
arrayFmt string
root bool
Expand All @@ -76,7 +76,7 @@ func (e *encoder) marshal(value any, writer *multipart.Writer) error {

func (e *encoder) typeEncoder(t reflect.Type) encoderFunc {
entry := encoderEntry{
Type: t,
typ: t,
dateFormat: e.dateFormat,
arrayFmt: e.arrayFmt,
root: e.root,
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type decoderField struct {
}

type decoderEntry struct {
reflect.Type
typ reflect.Type
dateFormat string
root bool
}
Expand Down Expand Up @@ -108,7 +108,7 @@ func (d *decoderBuilder) unmarshalWithExactness(raw []byte, to any) (exactness,

func (d *decoderBuilder) typeDecoder(t reflect.Type) decoderFunc {
entry := decoderEntry{
Type: t,
typ: t,
dateFormat: d.dateFormat,
root: d.root,
}
Expand Down
4 changes: 2 additions & 2 deletions internal/apijson/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type encoderField struct {
}

type encoderEntry struct {
reflect.Type
typ reflect.Type
dateFormat string
root bool
}
Expand All @@ -63,7 +63,7 @@ func (e *encoder) marshal(value any) ([]byte, error) {

func (e *encoder) typeEncoder(t reflect.Type) encoderFunc {
entry := encoderEntry{
Type: t,
typ: t,
dateFormat: e.dateFormat,
root: e.root,
}
Expand Down
4 changes: 2 additions & 2 deletions internal/apiquery/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type encoderField struct {
}

type encoderEntry struct {
reflect.Type
typ reflect.Type
dateFormat string
root bool
settings QuerySettings
Expand All @@ -42,7 +42,7 @@ type Pair struct {

func (e *encoder) typeEncoder(t reflect.Type) encoderFunc {
entry := encoderEntry{
Type: t,
typ: t,
dateFormat: e.dateFormat,
root: e.root,
settings: e.settings,
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.52.0" // x-release-please-version
const PackageVersion = "0.53.0" // x-release-please-version
2 changes: 2 additions & 0 deletions project.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ type ProjectListParams struct {
Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
// Number of results to skip
Offset param.Opt[int64] `query:"offset,omitzero" json:"-"`
// Case-insensitive substring match against project name
Query param.Opt[string] `query:"query,omitzero" json:"-"`
paramObj
}

Expand Down
1 change: 1 addition & 0 deletions project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func TestProjectListWithOptionalParams(t *testing.T) {
_, err := client.Projects.List(context.TODO(), kernel.ProjectListParams{
Limit: kernel.Int(100),
Offset: kernel.Int(0),
Query: kernel.String("query"),
})
if err != nil {
var apierr *kernel.Error
Expand Down
Loading