Skip to content

Commit d4b2e07

Browse files
feat: Update oAPI and data model for proxy status
1 parent 4594372 commit d4b2e07

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-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-d0090ff3ef876c554e7a1281d5cbe1666cf68aebfc60e05cb7f4302ee377b372.yml
3-
openapi_spec_hash: 33fef541c420a28125f18cd1efc0d585
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-a880f2209deafc4a011da42eb52f1dac0308d18ae1daa1d7253edc3385c9b1c4.yml
3+
openapi_spec_hash: ae5af3810d28e49a68b12f2bb2d2af0e
44
config_hash: 49c2ff978aaa5ccb4ce324a72f116010

src/resources/proxies.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,20 @@ export interface ProxyCreateResponse {
6161
| ProxyCreateResponse.MobileProxyConfig
6262
| ProxyCreateResponse.CustomProxyConfig;
6363

64+
/**
65+
* Timestamp of the last health check performed on this proxy.
66+
*/
67+
last_checked?: string;
68+
6469
/**
6570
* Readable name of the proxy.
6671
*/
6772
name?: string;
73+
74+
/**
75+
* Current health status of the proxy.
76+
*/
77+
status?: 'available' | 'unavailable';
6878
}
6979

7080
export namespace ProxyCreateResponse {
@@ -268,10 +278,20 @@ export interface ProxyRetrieveResponse {
268278
| ProxyRetrieveResponse.MobileProxyConfig
269279
| ProxyRetrieveResponse.CustomProxyConfig;
270280

281+
/**
282+
* Timestamp of the last health check performed on this proxy.
283+
*/
284+
last_checked?: string;
285+
271286
/**
272287
* Readable name of the proxy.
273288
*/
274289
name?: string;
290+
291+
/**
292+
* Current health status of the proxy.
293+
*/
294+
status?: 'available' | 'unavailable';
275295
}
276296

277297
export namespace ProxyRetrieveResponse {
@@ -478,10 +498,20 @@ export namespace ProxyListResponse {
478498
| ProxyListResponseItem.MobileProxyConfig
479499
| ProxyListResponseItem.CustomProxyConfig;
480500

501+
/**
502+
* Timestamp of the last health check performed on this proxy.
503+
*/
504+
last_checked?: string;
505+
481506
/**
482507
* Readable name of the proxy.
483508
*/
484509
name?: string;
510+
511+
/**
512+
* Current health status of the proxy.
513+
*/
514+
status?: 'available' | 'unavailable';
485515
}
486516

487517
export namespace ProxyListResponseItem {

0 commit comments

Comments
 (0)