Skip to content

Commit 031fa5a

Browse files
feat(api): manual updates
1 parent e32d66e commit 031fa5a

11 files changed

Lines changed: 802 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 16
1+
configured_endpoints: 17
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/benchify%2Fbenchify-c83cb9f0e06e67bacd6372092fddcb3945ea7304d95f0f7fc7dfc59b51c02fac.yml
33
openapi_spec_hash: c7d11dcfe395d74f29d1381f416b648f
4-
config_hash: 99768c4e65527503e252e84b760a22a3
4+
config_hash: 9e3589cced73245bbfec1822095109b8

api.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,16 @@ from benchify.types import FixCreateAIFallbackResponse
8989

9090
Methods:
9191

92-
- <code title="post /v1/fix/ai-fallback">client.fix.<a href="./src/benchify/resources/fix.py">create_ai_fallback</a>(\*\*<a href="src/benchify/types/fix_create_ai_fallback_params.py">params</a>) -> <a href="./src/benchify/types/fix_create_ai_fallback_response.py">FixCreateAIFallbackResponse</a></code>
92+
- <code title="post /v1/fix/ai-fallback">client.fix.<a href="./src/benchify/resources/fix/fix.py">create_ai_fallback</a>(\*\*<a href="src/benchify/types/fix_create_ai_fallback_params.py">params</a>) -> <a href="./src/benchify/types/fix_create_ai_fallback_response.py">FixCreateAIFallbackResponse</a></code>
93+
94+
## Standard
95+
96+
Types:
97+
98+
```python
99+
from benchify.types.fix import StandardCreateResponse
100+
```
101+
102+
Methods:
103+
104+
- <code title="post /v1/fix-standard">client.fix.standard.<a href="./src/benchify/resources/fix/standard.py">create</a>(\*\*<a href="src/benchify/types/fix/standard_create_params.py">params</a>) -> <a href="./src/benchify/types/fix/standard_create_response.py">StandardCreateResponse</a></code>

src/benchify/_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@
2222
)
2323
from ._utils import is_given, get_async_library
2424
from ._version import __version__
25-
from .resources import fix, fixer, stacks, validate_template, fix_string_literals, fix_parsing_and_diagnose
25+
from .resources import fixer, stacks, validate_template, fix_string_literals, fix_parsing_and_diagnose
2626
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2727
from ._exceptions import APIStatusError
2828
from ._base_client import (
2929
DEFAULT_MAX_RETRIES,
3030
SyncAPIClient,
3131
AsyncAPIClient,
3232
)
33+
from .resources.fix import fix
3334

3435
__all__ = [
3536
"Timeout",
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .fix import (
4+
FixResource,
5+
AsyncFixResource,
6+
FixResourceWithRawResponse,
7+
AsyncFixResourceWithRawResponse,
8+
FixResourceWithStreamingResponse,
9+
AsyncFixResourceWithStreamingResponse,
10+
)
11+
from .standard import (
12+
StandardResource,
13+
AsyncStandardResource,
14+
StandardResourceWithRawResponse,
15+
AsyncStandardResourceWithRawResponse,
16+
StandardResourceWithStreamingResponse,
17+
AsyncStandardResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"StandardResource",
22+
"AsyncStandardResource",
23+
"StandardResourceWithRawResponse",
24+
"AsyncStandardResourceWithRawResponse",
25+
"StandardResourceWithStreamingResponse",
26+
"AsyncStandardResourceWithStreamingResponse",
27+
"FixResource",
28+
"AsyncFixResource",
29+
"FixResourceWithRawResponse",
30+
"AsyncFixResourceWithRawResponse",
31+
"FixResourceWithStreamingResponse",
32+
"AsyncFixResourceWithStreamingResponse",
33+
]
Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,36 @@
66

77
import httpx
88

9-
from ..types import fix_create_ai_fallback_params
10-
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11-
from .._utils import maybe_transform, async_maybe_transform
12-
from .._compat import cached_property
13-
from .._resource import SyncAPIResource, AsyncAPIResource
14-
from .._response import (
9+
from ...types import fix_create_ai_fallback_params
10+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
11+
from ..._utils import maybe_transform, async_maybe_transform
12+
from .standard import (
13+
StandardResource,
14+
AsyncStandardResource,
15+
StandardResourceWithRawResponse,
16+
AsyncStandardResourceWithRawResponse,
17+
StandardResourceWithStreamingResponse,
18+
AsyncStandardResourceWithStreamingResponse,
19+
)
20+
from ..._compat import cached_property
21+
from ..._resource import SyncAPIResource, AsyncAPIResource
22+
from ..._response import (
1523
to_raw_response_wrapper,
1624
to_streamed_response_wrapper,
1725
async_to_raw_response_wrapper,
1826
async_to_streamed_response_wrapper,
1927
)
20-
from .._base_client import make_request_options
21-
from ..types.fix_create_ai_fallback_response import FixCreateAIFallbackResponse
28+
from ..._base_client import make_request_options
29+
from ...types.fix_create_ai_fallback_response import FixCreateAIFallbackResponse
2230

2331
__all__ = ["FixResource", "AsyncFixResource"]
2432

2533

2634
class FixResource(SyncAPIResource):
35+
@cached_property
36+
def standard(self) -> StandardResource:
37+
return StandardResource(self._client)
38+
2739
@cached_property
2840
def with_raw_response(self) -> FixResourceWithRawResponse:
2941
"""
@@ -111,6 +123,10 @@ def create_ai_fallback(
111123

112124

113125
class AsyncFixResource(AsyncAPIResource):
126+
@cached_property
127+
def standard(self) -> AsyncStandardResource:
128+
return AsyncStandardResource(self._client)
129+
114130
@cached_property
115131
def with_raw_response(self) -> AsyncFixResourceWithRawResponse:
116132
"""
@@ -205,6 +221,10 @@ def __init__(self, fix: FixResource) -> None:
205221
fix.create_ai_fallback,
206222
)
207223

224+
@cached_property
225+
def standard(self) -> StandardResourceWithRawResponse:
226+
return StandardResourceWithRawResponse(self._fix.standard)
227+
208228

209229
class AsyncFixResourceWithRawResponse:
210230
def __init__(self, fix: AsyncFixResource) -> None:
@@ -214,6 +234,10 @@ def __init__(self, fix: AsyncFixResource) -> None:
214234
fix.create_ai_fallback,
215235
)
216236

237+
@cached_property
238+
def standard(self) -> AsyncStandardResourceWithRawResponse:
239+
return AsyncStandardResourceWithRawResponse(self._fix.standard)
240+
217241

218242
class FixResourceWithStreamingResponse:
219243
def __init__(self, fix: FixResource) -> None:
@@ -223,6 +247,10 @@ def __init__(self, fix: FixResource) -> None:
223247
fix.create_ai_fallback,
224248
)
225249

250+
@cached_property
251+
def standard(self) -> StandardResourceWithStreamingResponse:
252+
return StandardResourceWithStreamingResponse(self._fix.standard)
253+
226254

227255
class AsyncFixResourceWithStreamingResponse:
228256
def __init__(self, fix: AsyncFixResource) -> None:
@@ -231,3 +259,7 @@ def __init__(self, fix: AsyncFixResource) -> None:
231259
self.create_ai_fallback = async_to_streamed_response_wrapper(
232260
fix.create_ai_fallback,
233261
)
262+
263+
@cached_property
264+
def standard(self) -> AsyncStandardResourceWithStreamingResponse:
265+
return AsyncStandardResourceWithStreamingResponse(self._fix.standard)

0 commit comments

Comments
 (0)