Skip to content
Merged
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.13.0"
".": "0.14.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: 51
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a880f2209deafc4a011da42eb52f1dac0308d18ae1daa1d7253edc3385c9b1c4.yml
openapi_spec_hash: ae5af3810d28e49a68b12f2bb2d2af0e
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-8a6175a75caa75c3de5400edf97a34e526ac3f62c63955375437461581deb0c2.yml
openapi_spec_hash: 1a880e4ce337a0e44630e6d87ef5162a
config_hash: 49c2ff978aaa5ccb4ce324a72f116010
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.14.0 (2025-10-03)

Full Changelog: [v0.13.0...v0.14.0](https://github.com/onkernel/kernel-go-sdk/compare/v0.13.0...v0.14.0)

### Features

* Http proxy ([0ebe5f1](https://github.com/onkernel/kernel-go-sdk/commit/0ebe5f1f007fd53267ac096e044f9fd513c28d7b))

## 0.13.0 (2025-10-01)

Full Changelog: [v0.12.0...v0.13.0](https://github.com/onkernel/kernel-go-sdk/compare/v0.12.0...v0.13.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/onkernel/kernel-go-sdk@v0.13.0'
go get -u 'github.com/onkernel/kernel-go-sdk@v0.14.0'
```

<!-- x-release-please-end -->
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.13.0" // x-release-please-version
const PackageVersion = "0.14.0" // x-release-please-version
51 changes: 51 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ type ProxyNewResponse struct {
LastChecked time.Time `json:"last_checked" format:"date-time"`
// Readable name of the proxy.
Name string `json:"name"`
// Protocol to use for the proxy connection.
//
// Any of "http", "https".
Protocol ProxyNewResponseProtocol `json:"protocol"`
// Current health status of the proxy.
//
// Any of "available", "unavailable".
Expand All @@ -103,6 +107,7 @@ type ProxyNewResponse struct {
Config respjson.Field
LastChecked respjson.Field
Name respjson.Field
Protocol respjson.Field
Status respjson.Field
ExtraFields map[string]respjson.Field
raw string
Expand Down Expand Up @@ -345,6 +350,14 @@ func (r *ProxyNewResponseConfigCustomProxyConfig) UnmarshalJSON(data []byte) err
return apijson.UnmarshalRoot(data, r)
}

// Protocol to use for the proxy connection.
type ProxyNewResponseProtocol string

const (
ProxyNewResponseProtocolHTTP ProxyNewResponseProtocol = "http"
ProxyNewResponseProtocolHTTPS ProxyNewResponseProtocol = "https"
)

// Current health status of the proxy.
type ProxyNewResponseStatus string

Expand All @@ -367,6 +380,10 @@ type ProxyGetResponse struct {
LastChecked time.Time `json:"last_checked" format:"date-time"`
// Readable name of the proxy.
Name string `json:"name"`
// Protocol to use for the proxy connection.
//
// Any of "http", "https".
Protocol ProxyGetResponseProtocol `json:"protocol"`
// Current health status of the proxy.
//
// Any of "available", "unavailable".
Expand All @@ -378,6 +395,7 @@ type ProxyGetResponse struct {
Config respjson.Field
LastChecked respjson.Field
Name respjson.Field
Protocol respjson.Field
Status respjson.Field
ExtraFields map[string]respjson.Field
raw string
Expand Down Expand Up @@ -620,6 +638,14 @@ func (r *ProxyGetResponseConfigCustomProxyConfig) UnmarshalJSON(data []byte) err
return apijson.UnmarshalRoot(data, r)
}

// Protocol to use for the proxy connection.
type ProxyGetResponseProtocol string

const (
ProxyGetResponseProtocolHTTP ProxyGetResponseProtocol = "http"
ProxyGetResponseProtocolHTTPS ProxyGetResponseProtocol = "https"
)

// Current health status of the proxy.
type ProxyGetResponseStatus string

Expand All @@ -642,6 +668,10 @@ type ProxyListResponse struct {
LastChecked time.Time `json:"last_checked" format:"date-time"`
// Readable name of the proxy.
Name string `json:"name"`
// Protocol to use for the proxy connection.
//
// Any of "http", "https".
Protocol ProxyListResponseProtocol `json:"protocol"`
// Current health status of the proxy.
//
// Any of "available", "unavailable".
Expand All @@ -653,6 +683,7 @@ type ProxyListResponse struct {
Config respjson.Field
LastChecked respjson.Field
Name respjson.Field
Protocol respjson.Field
Status respjson.Field
ExtraFields map[string]respjson.Field
raw string
Expand Down Expand Up @@ -895,6 +926,14 @@ func (r *ProxyListResponseConfigCustomProxyConfig) UnmarshalJSON(data []byte) er
return apijson.UnmarshalRoot(data, r)
}

// Protocol to use for the proxy connection.
type ProxyListResponseProtocol string

const (
ProxyListResponseProtocolHTTP ProxyListResponseProtocol = "http"
ProxyListResponseProtocolHTTPS ProxyListResponseProtocol = "https"
)

// Current health status of the proxy.
type ProxyListResponseStatus string

Expand All @@ -913,6 +952,10 @@ type ProxyNewParams struct {
Name param.Opt[string] `json:"name,omitzero"`
// Configuration specific to the selected proxy `type`.
Config ProxyNewParamsConfigUnion `json:"config,omitzero"`
// Protocol to use for the proxy connection.
//
// Any of "http", "https".
Protocol ProxyNewParamsProtocol `json:"protocol,omitzero"`
paramObj
}

Expand Down Expand Up @@ -1209,3 +1252,11 @@ func (r ProxyNewParamsConfigCreateCustomProxyConfig) MarshalJSON() (data []byte,
func (r *ProxyNewParamsConfigCreateCustomProxyConfig) UnmarshalJSON(data []byte) error {
return apijson.UnmarshalRoot(data, r)
}

// Protocol to use for the proxy connection.
type ProxyNewParamsProtocol string

const (
ProxyNewParamsProtocolHTTP ProxyNewParamsProtocol = "http"
ProxyNewParamsProtocolHTTPS ProxyNewParamsProtocol = "https"
)
3 changes: 2 additions & 1 deletion proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func TestProxyNewWithOptionalParams(t *testing.T) {
Country: "US",
},
},
Name: kernel.String("name"),
Name: kernel.String("name"),
Protocol: kernel.ProxyNewParamsProtocolHTTP,
})
if err != nil {
var apierr *kernel.Error
Expand Down