Skip to content

Commit 88939b3

Browse files
committed
feat(api): update via SDK Studio
1 parent 134f28f commit 88939b3

66 files changed

Lines changed: 958 additions & 1440 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish-pypi.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.release-please-manifest.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 18
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-4ab9f1a3f003af273e162d93a86042a8c482a935bc904259aac18bd459ab687e.yml
1+
configured_endpoints: 17
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-d2f2163594415a1ffc47be29ef38f12e9702098cbfe2cc92b8b8d24bad1e938f.yml

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you’d like to use the repository from source, you can either install from g
5959
To install via git:
6060

6161
```bash
62-
pip install git+ssh://git@github.com/runloopai/api-client-python.git
62+
pip install git+ssh://git@github.com/stainless-sdks/runloop-python.git
6363
```
6464

6565
Alternatively, you can build from source and install the wheel file:
@@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
117117

118118
### Publish with a GitHub workflow
119119

120-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/runloopai/api-client-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
120+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/runloop-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
121121

122122
### Publish manually
123123

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The REST API documentation can be found [on runloop.ai](https://runloop.ai). The
1515
## Installation
1616

1717
```sh
18-
# install from the production repo
19-
pip install git+ssh://git@github.com/runloopai/api-client-python.git
18+
# install from this staging repo
19+
pip install git+ssh://git@github.com/stainless-sdks/runloop-python.git
2020
```
2121

2222
> [!NOTE]
@@ -35,8 +35,8 @@ client = Runloop(
3535
bearer_token=os.environ.get("RUNLOOP_BEARER_TOKEN"),
3636
)
3737

38-
code_handle = client.code_handles.create()
39-
print(code_handle.id)
38+
code_handle_view = client.code_handles.create()
39+
print(code_handle_view.id)
4040
```
4141

4242
While you can provide a `bearer_token` keyword argument,
@@ -60,8 +60,8 @@ client = AsyncRunloop(
6060

6161

6262
async def main() -> None:
63-
code_handle = await client.code_handles.create()
64-
print(code_handle.id)
63+
code_handle_view = await client.code_handles.create()
64+
print(code_handle_view.id)
6565

6666

6767
asyncio.run(main())
@@ -206,9 +206,9 @@ code_handle = response.parse() # get the object that `code_handles.create()` wo
206206
print(code_handle.id)
207207
```
208208

209-
These methods return an [`APIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop/_response.py) object.
209+
These methods return an [`APIResponse`](https://github.com/stainless-sdks/runloop-python/tree/main/src/runloop/_response.py) object.
210210

211-
The async client returns an [`AsyncAPIResponse`](https://github.com/runloopai/api-client-python/tree/main/src/runloop/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
211+
The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/runloop-python/tree/main/src/runloop/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
212212

213213
#### `.with_streaming_response`
214214

@@ -296,7 +296,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
296296

297297
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
298298

299-
We are keen for your feedback; please open an [issue](https://www.github.com/runloopai/api-client-python/issues) with questions, bugs, or suggestions.
299+
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/runloop-python/issues) with questions, bugs, or suggestions.
300300

301301
## Requirements
302302

api.md

Lines changed: 24 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,154 +1,104 @@
11
# Shared Types
22

33
```python
4-
from runloop.types import FunctionInvocationDetail
4+
from runloop.types import EmptyRecord, FunctionInvocationDetailView, ProjectLogsView
55
```
66

77
# CodeHandles
88

99
Types:
1010

1111
```python
12-
from runloop.types import CodeHandle, CodeHandleList
12+
from runloop.types import CodeHandleListView, CodeHandleView
1313
```
1414

1515
Methods:
1616

17-
- <code title="post /v1/code_handles">client.code_handles.<a href="./src/runloop/resources/code_handles.py">create</a>(\*\*<a href="src/runloop/types/code_handle_create_params.py">params</a>) -> <a href="./src/runloop/types/code_handle.py">CodeHandle</a></code>
18-
- <code title="get /v1/code_handles">client.code_handles.<a href="./src/runloop/resources/code_handles.py">list</a>(\*\*<a href="src/runloop/types/code_handle_list_params.py">params</a>) -> <a href="./src/runloop/types/code_handle_list.py">CodeHandleList</a></code>
17+
- <code title="post /v1/code_handles">client.code_handles.<a href="./src/runloop/resources/code_handles.py">create</a>(\*\*<a href="src/runloop/types/code_handle_create_params.py">params</a>) -> <a href="./src/runloop/types/code_handle_view.py">CodeHandleView</a></code>
18+
- <code title="get /v1/code_handles">client.code_handles.<a href="./src/runloop/resources/code_handles.py">list</a>(\*\*<a href="src/runloop/types/code_handle_list_params.py">params</a>) -> <a href="./src/runloop/types/code_handle_list_view.py">CodeHandleListView</a></code>
1919

2020
# Devboxes
2121

2222
Types:
2323

2424
```python
25-
from runloop.types import Devbox, DevboxList
25+
from runloop.types import DevboxExecutionDetailView, DevboxListView, DevboxView
2626
```
2727

2828
Methods:
2929

30-
- <code title="post /v1/devboxes">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">create</a>(\*\*<a href="src/runloop/types/devbox_create_params.py">params</a>) -> <a href="./src/runloop/types/devbox.py">Devbox</a></code>
31-
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop/types/devbox.py">Devbox</a></code>
32-
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop/types/devbox_list.py">DevboxList</a></code>
33-
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop/types/devbox.py">Devbox</a></code>
30+
- <code title="post /v1/devboxes">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">create</a>(\*\*<a href="src/runloop/types/devbox_create_params.py">params</a>) -> <a href="./src/runloop/types/devbox_view.py">DevboxView</a></code>
31+
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop/types/devbox_view.py">DevboxView</a></code>
32+
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop/types/devbox_list_view.py">DevboxListView</a></code>
33+
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">execute_sync</a>(id) -> <a href="./src/runloop/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
34+
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop/types/devbox_view.py">DevboxView</a></code>
3435

3536
## Logs
3637

3738
Types:
3839

3940
```python
40-
from runloop.types.devboxes import DevboxLogsList
41+
from runloop.types.devboxes import DevboxLogsListView
4142
```
4243

4344
Methods:
4445

45-
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop/types/devboxes/devbox_logs_list.py">DevboxLogsList</a></code>
46+
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
4647

4748
# Functions
4849

4950
Types:
5051

5152
```python
52-
from runloop.types import FunctionList
53+
from runloop.types import FunctionListView
5354
```
5455

5556
Methods:
5657

57-
- <code title="get /v1/functions">client.functions.<a href="./src/runloop/resources/functions/functions.py">list</a>() -> <a href="./src/runloop/types/function_list.py">FunctionList</a></code>
58+
- <code title="get /v1/functions">client.functions.<a href="./src/runloop/resources/functions/functions.py">list</a>() -> <a href="./src/runloop/types/function_list_view.py">FunctionListView</a></code>
59+
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_async">client.functions.<a href="./src/runloop/resources/functions/functions.py">invoke_async</a>(function_name, \*, project_name, \*\*<a href="src/runloop/types/function_invoke_async_params.py">params</a>) -> <a href="./src/runloop/types/shared/function_invocation_detail_view.py">FunctionInvocationDetailView</a></code>
60+
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_sync">client.functions.<a href="./src/runloop/resources/functions/functions.py">invoke_sync</a>(function_name, \*, project_name, \*\*<a href="src/runloop/types/function_invoke_sync_params.py">params</a>) -> <a href="./src/runloop/types/shared/function_invocation_detail_view.py">FunctionInvocationDetailView</a></code>
5861

5962
## Invocations
6063

6164
Types:
6265

6366
```python
64-
from runloop.types.functions import FunctionInvocationList, KillOperationResponse
67+
from runloop.types.functions import FunctionInvocationListView, KillOperationResponse
6568
```
6669

6770
Methods:
6871

69-
- <code title="get /v1/functions/invocations/{invocationId}">client.functions.invocations.<a href="./src/runloop/resources/functions/invocations/invocations.py">retrieve</a>(invocation_id) -> <a href="./src/runloop/types/shared/function_invocation_detail.py">FunctionInvocationDetail</a></code>
70-
- <code title="get /v1/functions/invocations">client.functions.invocations.<a href="./src/runloop/resources/functions/invocations/invocations.py">list</a>() -> <a href="./src/runloop/types/functions/function_invocation_list.py">FunctionInvocationList</a></code>
72+
- <code title="get /v1/functions/invocations/{invocationId}">client.functions.invocations.<a href="./src/runloop/resources/functions/invocations/invocations.py">retrieve</a>(invocation_id) -> <a href="./src/runloop/types/shared/function_invocation_detail_view.py">FunctionInvocationDetailView</a></code>
73+
- <code title="get /v1/functions/invocations">client.functions.invocations.<a href="./src/runloop/resources/functions/invocations/invocations.py">list</a>() -> <a href="./src/runloop/types/functions/function_invocation_list_view.py">FunctionInvocationListView</a></code>
7174
- <code title="post /v1/functions/invocations/{invocationId}/kill">client.functions.invocations.<a href="./src/runloop/resources/functions/invocations/invocations.py">kill</a>(invocation_id) -> <a href="./src/runloop/types/functions/kill_operation_response.py">object</a></code>
7275

7376
### Spans
7477

7578
Types:
7679

7780
```python
78-
from runloop.types.functions.invocations import InvocationSpanList
81+
from runloop.types.functions.invocations import InvocationSpanListView
7982
```
8083

8184
Methods:
8285

83-
- <code title="get /v1/functions/invocations/{invocationId}/spans">client.functions.invocations.spans.<a href="./src/runloop/resources/functions/invocations/spans.py">list</a>(invocation_id) -> <a href="./src/runloop/types/functions/invocations/invocation_span_list.py">InvocationSpanList</a></code>
84-
85-
## OpenAPI
86-
87-
Types:
88-
89-
```python
90-
from runloop.types.functions import OpenAPIRetrieveResponse
91-
```
92-
93-
Methods:
94-
95-
- <code title="get /v1/functions/openapi">client.functions.openapi.<a href="./src/runloop/resources/functions/openapi.py">retrieve</a>() -> <a href="./src/runloop/types/functions/openapi_retrieve_response.py">object</a></code>
96-
97-
# Latches
98-
99-
Types:
100-
101-
```python
102-
from runloop.types import EmptyRecord
103-
```
104-
105-
Methods:
106-
107-
- <code title="post /v1/latches/{latchId}">client.latches.<a href="./src/runloop/resources/latches.py">fulfill</a>(latch_id, \*\*<a href="src/runloop/types/latch_fulfill_params.py">params</a>) -> <a href="./src/runloop/types/empty_record.py">object</a></code>
86+
- <code title="get /v1/functions/invocations/{invocationId}/spans">client.functions.invocations.spans.<a href="./src/runloop/resources/functions/invocations/spans.py">list</a>(invocation_id) -> <a href="./src/runloop/types/functions/invocations/invocation_span_list_view.py">InvocationSpanListView</a></code>
10887

10988
# Projects
11089

11190
Types:
11291

11392
```python
114-
from runloop.types import ProjectList
93+
from runloop.types import ProjectListView
11594
```
11695

11796
Methods:
11897

119-
- <code title="get /v1/projects">client.projects.<a href="./src/runloop/resources/projects/projects.py">list</a>() -> <a href="./src/runloop/types/project_list.py">ProjectList</a></code>
98+
- <code title="get /v1/projects">client.projects.<a href="./src/runloop/resources/projects/projects.py">list</a>() -> <a href="./src/runloop/types/project_list_view.py">ProjectListView</a></code>
12099

121100
## Logs
122101

123-
Types:
124-
125-
```python
126-
from runloop.types.projects import ProjectLogs
127-
```
128-
129102
Methods:
130103

131-
- <code title="get /v1/projects/{id}/logs">client.projects.logs.<a href="./src/runloop/resources/projects/logs.py">list</a>(id) -> <a href="./src/runloop/types/projects/project_logs.py">ProjectLogs</a></code>
132-
133-
# Sessions
134-
135-
## Sessions
136-
137-
Types:
138-
139-
```python
140-
from runloop.types.sessions import Session, SessionList
141-
```
142-
143-
Methods:
144-
145-
- <code title="post /v1/sessions/sessions">client.sessions.sessions.<a href="./src/runloop/resources/sessions/sessions/sessions.py">create</a>() -> <a href="./src/runloop/types/sessions/session.py">Session</a></code>
146-
- <code title="get /v1/sessions/sessions">client.sessions.sessions.<a href="./src/runloop/resources/sessions/sessions/sessions.py">list</a>() -> <a href="./src/runloop/types/sessions/session_list.py">SessionList</a></code>
147-
148-
### Kv
149-
150-
Types:
151-
152-
```python
153-
from runloop.types.sessions.sessions import SessionKv
154-
```
104+
- <code title="get /v1/projects/{id}/logs">client.projects.logs.<a href="./src/runloop/resources/projects/logs.py">list</a>(id) -> <a href="./src/runloop/types/shared/project_logs_view.py">ProjectLogsView</a></code>

bin/check-release-environment

Lines changed: 0 additions & 32 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ classifiers = [
3939

4040

4141
[project.urls]
42-
Homepage = "https://github.com/runloopai/api-client-python"
43-
Repository = "https://github.com/runloopai/api-client-python"
42+
Homepage = "https://github.com/stainless-sdks/runloop-python"
43+
Repository = "https://github.com/stainless-sdks/runloop-python"
4444

4545

4646

@@ -108,7 +108,7 @@ path = "README.md"
108108
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
109109
# replace relative links with absolute links
110110
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
111-
replacement = '[\1](https://github.com/runloopai/api-client-python/tree/main/\g<2>)'
111+
replacement = '[\1](https://github.com/stainless-sdks/runloop-python/tree/main/\g<2>)'
112112

113113
[tool.black]
114114
line-length = 120

0 commit comments

Comments
 (0)