Skip to content

Commit 018cb8c

Browse files
release: 1.22.1 (#806)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 2fdce83 commit 018cb8c

12 files changed

Lines changed: 391 additions & 6 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.22.0"
2+
".": "1.22.1"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-7235763cbdfd60834a897f356688d758b598a1dd723623330ea398dea2abea68.yml
1+
configured_endpoints: 120
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-96b0ac0a148db6fde2e8363ea2dcfaa63f2dc23cf35c30c5fcfffbefc222e5d1.yml
33
openapi_spec_hash: 01b9dbab4b732e4b83952debd108e404
4-
config_hash: 444e00951b440bf92e7548b2807584a4
4+
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.22.1 (2026-06-01)
4+
5+
Full Changelog: [v1.22.0...v1.22.1](https://github.com/runloopai/api-client-python/compare/v1.22.0...v1.22.1)
6+
7+
### Build System
8+
9+
* **stainless:** map /v1/accounts/me to accounts.me in the SDK ([#9569](https://github.com/runloopai/api-client-python/issues/9569)) ([3f9cbe1](https://github.com/runloopai/api-client-python/commit/3f9cbe1e92c2eb9c1696f52cb11419bcafde6bd9))
10+
311
## 1.22.0 (2026-05-27)
412

513
Full Changelog: [v1.21.0...v1.22.0](https://github.com/runloopai/api-client-python/compare/v1.21.0...v1.22.0)

api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,18 @@ from runloop_api_client.types import (
1717
)
1818
```
1919

20+
# Accounts
21+
22+
Types:
23+
24+
```python
25+
from runloop_api_client.types import AccountView
26+
```
27+
28+
Methods:
29+
30+
- <code title="get /v1/accounts/me">client.accounts.<a href="./src/runloop_api_client/resources/accounts.py">me</a>() -> <a href="./src/runloop_api_client/types/account_view.py">AccountView</a></code>
31+
2032
# Benchmarks
2133

2234
Types:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runloop_api_client"
3-
version = "1.22.0"
3+
version = "1.22.1"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"

src/runloop_api_client/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
apikeys,
4343
objects,
4444
secrets,
45+
accounts,
4546
devboxes,
4647
scenarios,
4748
benchmarks,
@@ -58,6 +59,7 @@
5859
from .resources.apikeys import ApikeysResource, AsyncApikeysResource
5960
from .resources.objects import ObjectsResource, AsyncObjectsResource
6061
from .resources.secrets import SecretsResource, AsyncSecretsResource
62+
from .resources.accounts import AccountsResource, AsyncAccountsResource
6163
from .resources.benchmarks import BenchmarksResource, AsyncBenchmarksResource
6264
from .resources.blueprints import BlueprintsResource, AsyncBlueprintsResource
6365
from .resources.axons.axons import AxonsResource, AsyncAxonsResource
@@ -144,6 +146,12 @@ def __init__(
144146

145147
self._idempotency_header = "x-request-id"
146148

149+
@cached_property
150+
def accounts(self) -> AccountsResource:
151+
from .resources.accounts import AccountsResource
152+
153+
return AccountsResource(self)
154+
147155
@cached_property
148156
def benchmarks(self) -> BenchmarksResource:
149157
from .resources.benchmarks import BenchmarksResource
@@ -432,6 +440,12 @@ def __init__(
432440

433441
self._idempotency_header = "x-request-id"
434442

443+
@cached_property
444+
def accounts(self) -> AsyncAccountsResource:
445+
from .resources.accounts import AsyncAccountsResource
446+
447+
return AsyncAccountsResource(self)
448+
435449
@cached_property
436450
def benchmarks(self) -> AsyncBenchmarksResource:
437451
from .resources.benchmarks import AsyncBenchmarksResource
@@ -655,6 +669,12 @@ class RunloopWithRawResponse:
655669
def __init__(self, client: Runloop) -> None:
656670
self._client = client
657671

672+
@cached_property
673+
def accounts(self) -> accounts.AccountsResourceWithRawResponse:
674+
from .resources.accounts import AccountsResourceWithRawResponse
675+
676+
return AccountsResourceWithRawResponse(self._client.accounts)
677+
658678
@cached_property
659679
def benchmarks(self) -> benchmarks.BenchmarksResourceWithRawResponse:
660680
from .resources.benchmarks import BenchmarksResourceWithRawResponse
@@ -758,6 +778,12 @@ class AsyncRunloopWithRawResponse:
758778
def __init__(self, client: AsyncRunloop) -> None:
759779
self._client = client
760780

781+
@cached_property
782+
def accounts(self) -> accounts.AsyncAccountsResourceWithRawResponse:
783+
from .resources.accounts import AsyncAccountsResourceWithRawResponse
784+
785+
return AsyncAccountsResourceWithRawResponse(self._client.accounts)
786+
761787
@cached_property
762788
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithRawResponse:
763789
from .resources.benchmarks import AsyncBenchmarksResourceWithRawResponse
@@ -861,6 +887,12 @@ class RunloopWithStreamedResponse:
861887
def __init__(self, client: Runloop) -> None:
862888
self._client = client
863889

890+
@cached_property
891+
def accounts(self) -> accounts.AccountsResourceWithStreamingResponse:
892+
from .resources.accounts import AccountsResourceWithStreamingResponse
893+
894+
return AccountsResourceWithStreamingResponse(self._client.accounts)
895+
864896
@cached_property
865897
def benchmarks(self) -> benchmarks.BenchmarksResourceWithStreamingResponse:
866898
from .resources.benchmarks import BenchmarksResourceWithStreamingResponse
@@ -964,6 +996,12 @@ class AsyncRunloopWithStreamedResponse:
964996
def __init__(self, client: AsyncRunloop) -> None:
965997
self._client = client
966998

999+
@cached_property
1000+
def accounts(self) -> accounts.AsyncAccountsResourceWithStreamingResponse:
1001+
from .resources.accounts import AsyncAccountsResourceWithStreamingResponse
1002+
1003+
return AsyncAccountsResourceWithStreamingResponse(self._client.accounts)
1004+
9671005
@cached_property
9681006
def benchmarks(self) -> benchmarks.AsyncBenchmarksResourceWithStreamingResponse:
9691007
from .resources.benchmarks import AsyncBenchmarksResourceWithStreamingResponse

src/runloop_api_client/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "runloop_api_client"
4-
__version__ = "1.22.0" # x-release-please-version
4+
__version__ = "1.22.1" # x-release-please-version

src/runloop_api_client/resources/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
SecretsResourceWithStreamingResponse,
4949
AsyncSecretsResourceWithStreamingResponse,
5050
)
51+
from .accounts import (
52+
AccountsResource,
53+
AsyncAccountsResource,
54+
AccountsResourceWithRawResponse,
55+
AsyncAccountsResourceWithRawResponse,
56+
AccountsResourceWithStreamingResponse,
57+
AsyncAccountsResourceWithStreamingResponse,
58+
)
5159
from .devboxes import (
5260
DevboxesResource,
5361
AsyncDevboxesResource,
@@ -130,6 +138,12 @@
130138
)
131139

132140
__all__ = [
141+
"AccountsResource",
142+
"AsyncAccountsResource",
143+
"AccountsResourceWithRawResponse",
144+
"AsyncAccountsResourceWithRawResponse",
145+
"AccountsResourceWithStreamingResponse",
146+
"AsyncAccountsResourceWithStreamingResponse",
133147
"BenchmarksResource",
134148
"AsyncBenchmarksResource",
135149
"BenchmarksResourceWithRawResponse",
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
import httpx
6+
7+
from .._types import Body, Query, Headers, NotGiven, not_given
8+
from .._compat import cached_property
9+
from .._resource import SyncAPIResource, AsyncAPIResource
10+
from .._response import (
11+
to_raw_response_wrapper,
12+
to_streamed_response_wrapper,
13+
async_to_raw_response_wrapper,
14+
async_to_streamed_response_wrapper,
15+
)
16+
from .._base_client import make_request_options
17+
from ..types.account_view import AccountView
18+
19+
__all__ = ["AccountsResource", "AsyncAccountsResource"]
20+
21+
22+
class AccountsResource(SyncAPIResource):
23+
@cached_property
24+
def with_raw_response(self) -> AccountsResourceWithRawResponse:
25+
"""
26+
This property can be used as a prefix for any HTTP method call to return
27+
the raw response object instead of the parsed content.
28+
29+
For more information, see https://www.github.com/runloopai/api-client-python#accessing-raw-response-data-eg-headers
30+
"""
31+
return AccountsResourceWithRawResponse(self)
32+
33+
@cached_property
34+
def with_streaming_response(self) -> AccountsResourceWithStreamingResponse:
35+
"""
36+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37+
38+
For more information, see https://www.github.com/runloopai/api-client-python#with_streaming_response
39+
"""
40+
return AccountsResourceWithStreamingResponse(self)
41+
42+
def me(
43+
self,
44+
*,
45+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46+
# The extra values given here take precedence over values defined on the client or passed to this method.
47+
extra_headers: Headers | None = None,
48+
extra_query: Query | None = None,
49+
extra_body: Body | None = None,
50+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
51+
) -> AccountView:
52+
"""
53+
Returns the account the API key or session is authenticated against, including
54+
id, name, tier, and billing summary.
55+
"""
56+
return self._get(
57+
"/v1/accounts/me",
58+
options=make_request_options(
59+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
60+
),
61+
cast_to=AccountView,
62+
)
63+
64+
65+
class AsyncAccountsResource(AsyncAPIResource):
66+
@cached_property
67+
def with_raw_response(self) -> AsyncAccountsResourceWithRawResponse:
68+
"""
69+
This property can be used as a prefix for any HTTP method call to return
70+
the raw response object instead of the parsed content.
71+
72+
For more information, see https://www.github.com/runloopai/api-client-python#accessing-raw-response-data-eg-headers
73+
"""
74+
return AsyncAccountsResourceWithRawResponse(self)
75+
76+
@cached_property
77+
def with_streaming_response(self) -> AsyncAccountsResourceWithStreamingResponse:
78+
"""
79+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
80+
81+
For more information, see https://www.github.com/runloopai/api-client-python#with_streaming_response
82+
"""
83+
return AsyncAccountsResourceWithStreamingResponse(self)
84+
85+
async def me(
86+
self,
87+
*,
88+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
89+
# The extra values given here take precedence over values defined on the client or passed to this method.
90+
extra_headers: Headers | None = None,
91+
extra_query: Query | None = None,
92+
extra_body: Body | None = None,
93+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
94+
) -> AccountView:
95+
"""
96+
Returns the account the API key or session is authenticated against, including
97+
id, name, tier, and billing summary.
98+
"""
99+
return await self._get(
100+
"/v1/accounts/me",
101+
options=make_request_options(
102+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
103+
),
104+
cast_to=AccountView,
105+
)
106+
107+
108+
class AccountsResourceWithRawResponse:
109+
def __init__(self, accounts: AccountsResource) -> None:
110+
self._accounts = accounts
111+
112+
self.me = to_raw_response_wrapper(
113+
accounts.me,
114+
)
115+
116+
117+
class AsyncAccountsResourceWithRawResponse:
118+
def __init__(self, accounts: AsyncAccountsResource) -> None:
119+
self._accounts = accounts
120+
121+
self.me = async_to_raw_response_wrapper(
122+
accounts.me,
123+
)
124+
125+
126+
class AccountsResourceWithStreamingResponse:
127+
def __init__(self, accounts: AccountsResource) -> None:
128+
self._accounts = accounts
129+
130+
self.me = to_streamed_response_wrapper(
131+
accounts.me,
132+
)
133+
134+
135+
class AsyncAccountsResourceWithStreamingResponse:
136+
def __init__(self, accounts: AsyncAccountsResource) -> None:
137+
self._accounts = accounts
138+
139+
self.me = async_to_streamed_response_wrapper(
140+
accounts.me,
141+
)

src/runloop_api_client/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .object_view import ObjectView as ObjectView
2323
from .secret_view import SecretView as SecretView
2424
from .tunnel_view import TunnelView as TunnelView
25+
from .account_view import AccountView as AccountView
2526
from .input_context import InputContext as InputContext
2627
from .scenario_view import ScenarioView as ScenarioView
2728
from .axon_list_view import AxonListView as AxonListView

0 commit comments

Comments
 (0)