Skip to content

Commit 600faca

Browse files
feat: Update oAPI and data model for proxy status
1 parent 6d87563 commit 600faca

File tree

4 files changed

+23
-2
lines changed

4 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-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/kernel/types/proxy_create_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Union, Optional
4+
from datetime import datetime
45
from typing_extensions import Literal, TypeAlias
56

67
from .._models import BaseModel
@@ -175,5 +176,11 @@ class ProxyCreateResponse(BaseModel):
175176
config: Optional[Config] = None
176177
"""Configuration specific to the selected proxy `type`."""
177178

179+
last_checked: Optional[datetime] = None
180+
"""Timestamp of the last health check performed on this proxy."""
181+
178182
name: Optional[str] = None
179183
"""Readable name of the proxy."""
184+
185+
status: Optional[Literal["available", "unavailable"]] = None
186+
"""Current health status of the proxy."""

src/kernel/types/proxy_list_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Union, Optional
4+
from datetime import datetime
45
from typing_extensions import Literal, TypeAlias
56

67
from .._models import BaseModel
@@ -176,8 +177,14 @@ class ProxyListResponseItem(BaseModel):
176177
config: Optional[ProxyListResponseItemConfig] = None
177178
"""Configuration specific to the selected proxy `type`."""
178179

180+
last_checked: Optional[datetime] = None
181+
"""Timestamp of the last health check performed on this proxy."""
182+
179183
name: Optional[str] = None
180184
"""Readable name of the proxy."""
181185

186+
status: Optional[Literal["available", "unavailable"]] = None
187+
"""Current health status of the proxy."""
188+
182189

183190
ProxyListResponse: TypeAlias = List[ProxyListResponseItem]

src/kernel/types/proxy_retrieve_response.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import Union, Optional
4+
from datetime import datetime
45
from typing_extensions import Literal, TypeAlias
56

67
from .._models import BaseModel
@@ -175,5 +176,11 @@ class ProxyRetrieveResponse(BaseModel):
175176
config: Optional[Config] = None
176177
"""Configuration specific to the selected proxy `type`."""
177178

179+
last_checked: Optional[datetime] = None
180+
"""Timestamp of the last health check performed on this proxy."""
181+
178182
name: Optional[str] = None
179183
"""Readable name of the proxy."""
184+
185+
status: Optional[Literal["available", "unavailable"]] = None
186+
"""Current health status of the proxy."""

0 commit comments

Comments
 (0)