diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 8ea07c9..1b5dc40 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.38.0" + ".": "0.39.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 3e385c4..9538870 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7866e9d..bf03ebb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index c1ec58b..f569e37 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.38.0' +go get -u 'github.com/kernel/kernel-go-sdk@v0.39.0' ``` diff --git a/internal/version.go b/internal/version.go index 5b058ce..375c52d 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "0.38.0" // x-release-please-version +const PackageVersion = "0.39.0" // x-release-please-version diff --git a/proxy.go b/proxy.go index a3f2c87..c3077b6 100644 --- a/proxy.go +++ b/proxy.go @@ -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. @@ -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 @@ -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. @@ -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 @@ -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. @@ -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 @@ -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. @@ -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 @@ -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. diff --git a/proxy_test.go b/proxy_test.go index 2672196..5624d4d 100644 --- a/proxy_test.go +++ b/proxy_test.go @@ -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"),