Skip to content

Commit c305501

Browse files
feat: Add proxy hostname bypass hosts
1 parent e9f231c commit c305501

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 101
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-9462b3d8f055f8bda06da65583f5aa09a17d35254c5983796d8e84ebb3c62c47.yml
3-
openapi_spec_hash: 1914dd35b8e0e5a21ccec91eac2a616d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d53de581fcac5c3b06940fc93667b9cd2a6a60dd3674da7c1f47484b0f442bf8.yml
3+
openapi_spec_hash: 177d0c537b7e5357c815bb64175e6484
44
config_hash: c6b88eea9a15840f26130eb8ed3b42a0

src/resources/proxies.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export interface ProxyCreateResponse {
5858

5959
id?: string;
6060

61+
/**
62+
* Hostnames that should bypass the parent proxy and connect directly.
63+
*/
64+
bypass_hosts?: Array<string>;
65+
6166
/**
6267
* Configuration specific to the selected proxy `type`.
6368
*/
@@ -283,6 +288,11 @@ export interface ProxyRetrieveResponse {
283288

284289
id?: string;
285290

291+
/**
292+
* Hostnames that should bypass the parent proxy and connect directly.
293+
*/
294+
bypass_hosts?: Array<string>;
295+
286296
/**
287297
* Configuration specific to the selected proxy `type`.
288298
*/
@@ -511,6 +521,11 @@ export namespace ProxyListResponse {
511521

512522
id?: string;
513523

524+
/**
525+
* Hostnames that should bypass the parent proxy and connect directly.
526+
*/
527+
bypass_hosts?: Array<string>;
528+
514529
/**
515530
* Configuration specific to the selected proxy `type`.
516531
*/
@@ -737,6 +752,11 @@ export interface ProxyCheckResponse {
737752

738753
id?: string;
739754

755+
/**
756+
* Hostnames that should bypass the parent proxy and connect directly.
757+
*/
758+
bypass_hosts?: Array<string>;
759+
740760
/**
741761
* Configuration specific to the selected proxy `type`.
742762
*/
@@ -957,6 +977,11 @@ export interface ProxyCreateParams {
957977
*/
958978
type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
959979

980+
/**
981+
* Hostnames that should bypass the parent proxy and connect directly.
982+
*/
983+
bypass_hosts?: Array<string>;
984+
960985
/**
961986
* Configuration specific to the selected proxy `type`.
962987
*/

tests/api-resources/proxies.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ describe('resource proxies', () => {
2424
test.skip('create: required and optional params', async () => {
2525
const response = await client.proxies.create({
2626
type: 'datacenter',
27+
bypass_hosts: ['string'],
2728
config: { country: 'US' },
2829
name: 'name',
2930
protocol: 'http',

0 commit comments

Comments
 (0)