Skip to content

Commit 7c8ad13

Browse files
feat: Http proxy
1 parent d4b2e07 commit 7c8ad13

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-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: 51
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a880f2209deafc4a011da42eb52f1dac0308d18ae1daa1d7253edc3385c9b1c4.yml
3-
openapi_spec_hash: ae5af3810d28e49a68b12f2bb2d2af0e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-8a6175a75caa75c3de5400edf97a34e526ac3f62c63955375437461581deb0c2.yml
3+
openapi_spec_hash: 1a880e4ce337a0e44630e6d87ef5162a
44
config_hash: 49c2ff978aaa5ccb4ce324a72f116010

src/resources/proxies.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export interface ProxyCreateResponse {
7171
*/
7272
name?: string;
7373

74+
/**
75+
* Protocol to use for the proxy connection.
76+
*/
77+
protocol?: 'http' | 'https';
78+
7479
/**
7580
* Current health status of the proxy.
7681
*/
@@ -288,6 +293,11 @@ export interface ProxyRetrieveResponse {
288293
*/
289294
name?: string;
290295

296+
/**
297+
* Protocol to use for the proxy connection.
298+
*/
299+
protocol?: 'http' | 'https';
300+
291301
/**
292302
* Current health status of the proxy.
293303
*/
@@ -508,6 +518,11 @@ export namespace ProxyListResponse {
508518
*/
509519
name?: string;
510520

521+
/**
522+
* Protocol to use for the proxy connection.
523+
*/
524+
protocol?: 'http' | 'https';
525+
511526
/**
512527
* Current health status of the proxy.
513528
*/
@@ -715,6 +730,11 @@ export interface ProxyCreateParams {
715730
* Readable name of the proxy.
716731
*/
717732
name?: string;
733+
734+
/**
735+
* Protocol to use for the proxy connection.
736+
*/
737+
protocol?: 'http' | 'https';
718738
}
719739

720740
export namespace ProxyCreateParams {

tests/api-resources/proxies.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ describe('resource proxies', () => {
2626
type: 'datacenter',
2727
config: { country: 'US' },
2828
name: 'name',
29+
protocol: 'http',
2930
});
3031
});
3132

0 commit comments

Comments
 (0)