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.38.0"
".": "0.39.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: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9462b3d8f055f8bda06da65583f5aa09a17d35254c5983796d8e84ebb3c62c47.yml
openapi_spec_hash: 1914dd35b8e0e5a21ccec91eac2a616d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d53de581fcac5c3b06940fc93667b9cd2a6a60dd3674da7c1f47484b0f442bf8.yml
openapi_spec_hash: 177d0c537b7e5357c815bb64175e6484
config_hash: c6b88eea9a15840f26130eb8ed3b42a0
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.39.0 (2026-02-25)

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

### Features

* Add proxy hostname bypass hosts ([2b066bf](https://github.com/kernel/kernel-go-sdk/commit/2b066bfd2e42070cbf2551dc6579854de5760807))

## 0.38.0 (2026-02-25)

Full Changelog: [v0.37.0...v0.38.0](https://github.com/kernel/kernel-go-sdk/compare/v0.37.0...v0.38.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.38.0'
go get -u 'github.com/kernel/kernel-go-sdk@v0.39.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.38.0" // x-release-please-version
const PackageVersion = "0.39.0" // x-release-please-version
14 changes: 14 additions & 0 deletions proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ type ProxyNewResponse struct {
// Any of "datacenter", "isp", "residential", "mobile", "custom".
Type ProxyNewResponseType `json:"type" api:"required"`
ID string `json:"id"`
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string `json:"bypass_hosts"`
// Configuration specific to the selected proxy `type`.
Config ProxyNewResponseConfigUnion `json:"config"`
// IP address that the proxy uses when making requests.
Expand All @@ -118,6 +120,7 @@ type ProxyNewResponse struct {
JSON struct {
Type respjson.Field
ID respjson.Field
BypassHosts respjson.Field
Config respjson.Field
IPAddress respjson.Field
LastChecked respjson.Field
Expand Down Expand Up @@ -389,6 +392,8 @@ type ProxyGetResponse struct {
// Any of "datacenter", "isp", "residential", "mobile", "custom".
Type ProxyGetResponseType `json:"type" api:"required"`
ID string `json:"id"`
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string `json:"bypass_hosts"`
// Configuration specific to the selected proxy `type`.
Config ProxyGetResponseConfigUnion `json:"config"`
// IP address that the proxy uses when making requests.
Expand All @@ -409,6 +414,7 @@ type ProxyGetResponse struct {
JSON struct {
Type respjson.Field
ID respjson.Field
BypassHosts respjson.Field
Config respjson.Field
IPAddress respjson.Field
LastChecked respjson.Field
Expand Down Expand Up @@ -680,6 +686,8 @@ type ProxyListResponse struct {
// Any of "datacenter", "isp", "residential", "mobile", "custom".
Type ProxyListResponseType `json:"type" api:"required"`
ID string `json:"id"`
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string `json:"bypass_hosts"`
// Configuration specific to the selected proxy `type`.
Config ProxyListResponseConfigUnion `json:"config"`
// IP address that the proxy uses when making requests.
Expand All @@ -700,6 +708,7 @@ type ProxyListResponse struct {
JSON struct {
Type respjson.Field
ID respjson.Field
BypassHosts respjson.Field
Config respjson.Field
IPAddress respjson.Field
LastChecked respjson.Field
Expand Down Expand Up @@ -971,6 +980,8 @@ type ProxyCheckResponse struct {
// Any of "datacenter", "isp", "residential", "mobile", "custom".
Type ProxyCheckResponseType `json:"type" api:"required"`
ID string `json:"id"`
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string `json:"bypass_hosts"`
// Configuration specific to the selected proxy `type`.
Config ProxyCheckResponseConfigUnion `json:"config"`
// IP address that the proxy uses when making requests.
Expand All @@ -991,6 +1002,7 @@ type ProxyCheckResponse struct {
JSON struct {
Type respjson.Field
ID respjson.Field
BypassHosts respjson.Field
Config respjson.Field
IPAddress respjson.Field
LastChecked respjson.Field
Expand Down Expand Up @@ -1262,6 +1274,8 @@ type ProxyNewParams struct {
Type ProxyNewParamsType `json:"type,omitzero" api:"required"`
// Readable name of the proxy.
Name param.Opt[string] `json:"name,omitzero"`
// Hostnames that should bypass the parent proxy and connect directly.
BypassHosts []string `json:"bypass_hosts,omitzero"`
// Configuration specific to the selected proxy `type`.
Config ProxyNewParamsConfigUnion `json:"config,omitzero"`
// Protocol to use for the proxy connection.
Expand Down
3 changes: 2 additions & 1 deletion proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func TestProxyNewWithOptionalParams(t *testing.T) {
option.WithAPIKey("My API Key"),
)
_, err := client.Proxies.New(context.TODO(), kernel.ProxyNewParams{
Type: kernel.ProxyNewParamsTypeDatacenter,
Type: kernel.ProxyNewParamsTypeDatacenter,
BypassHosts: []string{"string"},
Config: kernel.ProxyNewParamsConfigUnion{
OfProxyNewsConfigDatacenterProxyConfig: &kernel.ProxyNewParamsConfigDatacenterProxyConfig{
Country: kernel.String("US"),
Expand Down