Skip to content

Commit e5b9e65

Browse files
feat(api): manual updates (#117)
1 parent e9ae45f commit e5b9e65

42 files changed

Lines changed: 3443 additions & 64 deletions

Some content is hidden

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

.release-please-manifest.json

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

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8c7e1b2377a7a76ebd891bda5df65c28f1574bae085e0460b8f614811bb193fe.yml
1+
configured_endpoints: 36
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-ea589851f2dbba35fea6c010ac4c577cad56aa44e1d5bd4e5b472c802b2f13c4.yml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Error codes are as followed:
118118

119119
### Retries
120120

121-
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
121+
Certain errors are automatically retried 2 times by default, with a short exponential backoff.
122122
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
123123
429 Rate Limit, and >=500 Internal errors are all retried by default.
124124

api.md

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,37 @@ Types:
4343
from runloop_api_client.types import CodeMountParameters
4444
```
4545

46+
# Deployments
47+
48+
Types:
49+
50+
```python
51+
from runloop_api_client.types import (
52+
DeploymentRetrieveResponse,
53+
DeploymentGetResponse,
54+
DeploymentLogsResponse,
55+
DeploymentRedeployResponse,
56+
DeploymentTailResponse,
57+
)
58+
```
59+
60+
Methods:
61+
62+
- <code title="get /v1/deployments/{deployment_id}">client.deployments.<a href="./src/runloop_api_client/resources/deployments.py">retrieve</a>(deployment_id) -> <a href="./src/runloop_api_client/types/deployment_retrieve_response.py">DeploymentRetrieveResponse</a></code>
63+
- <code title="get /v1/deployments">client.deployments.<a href="./src/runloop_api_client/resources/deployments.py">get</a>(\*\*<a href="src/runloop_api_client/types/deployment_get_params.py">params</a>) -> <a href="./src/runloop_api_client/types/deployment_get_response.py">DeploymentGetResponse</a></code>
64+
- <code title="get /v1/deployments/{deployment_id}/logs">client.deployments.<a href="./src/runloop_api_client/resources/deployments.py">logs</a>(deployment_id) -> <a href="./src/runloop_api_client/types/deployment_logs_response.py">DeploymentLogsResponse</a></code>
65+
- <code title="post /v1/deployments/{deployment_id}/redeploy">client.deployments.<a href="./src/runloop_api_client/resources/deployments.py">redeploy</a>(deployment_id) -> <a href="./src/runloop_api_client/types/deployment_redeploy_response.py">DeploymentRedeployResponse</a></code>
66+
- <code title="get /v1/deployments/{deployment_id}/logs/tail">client.deployments.<a href="./src/runloop_api_client/resources/deployments.py">tail</a>(deployment_id) -> <a href="./src/runloop_api_client/types/deployment_tail_response.py">DeploymentTailResponse</a></code>
67+
4668
# Devboxes
4769

4870
Types:
4971

5072
```python
5173
from runloop_api_client.types import (
52-
DevboxExecutionDetailView,
53-
DevboxListView,
5474
DevboxView,
75+
DevboxListResponse,
76+
DevboxCreateSSHKeyResponse,
5577
DevboxReadFileContentsResponse,
5678
DevboxUploadFileResponse,
5779
)
@@ -61,52 +83,76 @@ Methods:
6183

6284
- <code title="post /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create</a>(\*\*<a href="src/runloop_api_client/types/devbox_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
6385
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
64-
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_list_view.py">DevboxListView</a></code>
65-
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
86+
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_list_response.py">DevboxListResponse</a></code>
87+
- <code title="post /v1/devboxes/{id}/create_ssh_key">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create_ssh_key</a>(id) -> <a href="./src/runloop_api_client/types/devbox_create_ssh_key_response.py">DevboxCreateSSHKeyResponse</a></code>
88+
- <code title="post /v1/devboxes/{id}/executions/execute_async">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
89+
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6690
- <code title="post /v1/devboxes/{id}/read_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_contents_params.py">params</a>) -> str</code>
6791
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
6892
- <code title="post /v1/devboxes/{id}/upload_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">upload_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_upload_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_upload_file_response.py">object</a></code>
69-
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
93+
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
7094

7195
## Logs
7296

97+
Methods:
98+
99+
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
100+
- <code title="get /v1/devboxes/{id}/logs/tail">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">tail</a>(id) -> None</code>
101+
102+
## Executions
103+
73104
Types:
74105

75106
```python
76-
from runloop_api_client.types.devboxes import DevboxLogsListView
107+
from runloop_api_client.types.devboxes import (
108+
DevboxAsyncExecutionDetailView,
109+
DevboxExecutionDetailView,
110+
DevboxLogsListView,
111+
)
77112
```
78113

79114
Methods:
80115

81-
- <code title="get /v1/devboxes/{id}/logs">client.devboxes.logs.<a href="./src/runloop_api_client/resources/devboxes/logs.py">list</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
116+
- <code title="post /v1/devboxes/{id}/executions/{exeId}">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">retrieve</a>(exe_id, \*, id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_retrieve_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
117+
- <code title="post /v1/devboxes/{id}/executions/execute_async">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_async</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
118+
- <code title="post /v1/devboxes/{id}/execute_sync">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">execute_sync</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/execution_execute_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
119+
- <code title="post /v1/devboxes/{id}/executions/{exeId}/kill">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">kill</a>(exe_id, \*, id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
120+
- <code title="get /v1/devboxes/{id}/executions/{execution_id}/logs">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">logs</a>(execution_id, \*, id) -> <a href="./src/runloop_api_client/types/devboxes/devbox_logs_list_view.py">DevboxLogsListView</a></code>
121+
- <code title="get /v1/devboxes/{id}/executions/{execution_id}/logs/tail">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">tail</a>(execution_id, \*, id) -> None</code>
82122

83123
# Functions
84124

85125
Types:
86126

87127
```python
88-
from runloop_api_client.types import FunctionListView
128+
from runloop_api_client.types import FunctionListView, FunctionListOpenAPIResponse
89129
```
90130

91131
Methods:
92132

93133
- <code title="get /v1/functions">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">list</a>() -> <a href="./src/runloop_api_client/types/function_list_view.py">FunctionListView</a></code>
94134
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_async">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_async</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_async_params.py">params</a>) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
95135
- <code title="post /v1/functions/{project_name}/{function_name}/invoke_sync">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">invoke_sync</a>(function_name, \*, project_name, \*\*<a href="src/runloop_api_client/types/function_invoke_sync_params.py">params</a>) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
136+
- <code title="get /v1/functions/openapi">client.functions.<a href="./src/runloop_api_client/resources/functions/functions.py">list_openapi</a>() -> <a href="./src/runloop_api_client/types/function_list_openapi_response.py">object</a></code>
96137

97138
## Invocations
98139

99140
Types:
100141

101142
```python
102-
from runloop_api_client.types.functions import FunctionInvocationListView, KillOperationResponse
143+
from runloop_api_client.types.functions import (
144+
FunctionInvocationListView,
145+
KillOperationResponse,
146+
InvocationLogsResponse,
147+
)
103148
```
104149

105150
Methods:
106151

107152
- <code title="get /v1/functions/invocations/{invocationId}">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">retrieve</a>(invocation_id) -> <a href="./src/runloop_api_client/types/shared/function_invocation_execution_detail_view.py">FunctionInvocationExecutionDetailView</a></code>
108153
- <code title="get /v1/functions/invocations">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">list</a>(\*\*<a href="src/runloop_api_client/types/functions/invocation_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/functions/function_invocation_list_view.py">FunctionInvocationListView</a></code>
109154
- <code title="post /v1/functions/invocations/{invocationId}/kill">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">kill</a>(invocation_id) -> <a href="./src/runloop_api_client/types/functions/kill_operation_response.py">object</a></code>
155+
- <code title="get /v1/functions/invocations/{invocation_id}/logs">client.functions.invocations.<a href="./src/runloop_api_client/resources/functions/invocations.py">logs</a>(invocation_id) -> <a href="./src/runloop_api_client/types/functions/invocation_logs_response.py">InvocationLogsResponse</a></code>
110156

111157
# Projects
112158

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 = "0.1.0-alpha.13"
3+
version = "0.1.0-alpha.14"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"

src/runloop_api_client/_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
class Runloop(SyncAPIClient):
4949
blueprints: resources.BlueprintsResource
50+
deployments: resources.DeploymentsResource
5051
devboxes: resources.DevboxesResource
5152
functions: resources.FunctionsResource
5253
projects: resources.ProjectsResource
@@ -108,6 +109,7 @@ def __init__(
108109
)
109110

110111
self.blueprints = resources.BlueprintsResource(self)
112+
self.deployments = resources.DeploymentsResource(self)
111113
self.devboxes = resources.DevboxesResource(self)
112114
self.functions = resources.FunctionsResource(self)
113115
self.projects = resources.ProjectsResource(self)
@@ -221,6 +223,7 @@ def _make_status_error(
221223

222224
class AsyncRunloop(AsyncAPIClient):
223225
blueprints: resources.AsyncBlueprintsResource
226+
deployments: resources.AsyncDeploymentsResource
224227
devboxes: resources.AsyncDevboxesResource
225228
functions: resources.AsyncFunctionsResource
226229
projects: resources.AsyncProjectsResource
@@ -282,6 +285,7 @@ def __init__(
282285
)
283286

284287
self.blueprints = resources.AsyncBlueprintsResource(self)
288+
self.deployments = resources.AsyncDeploymentsResource(self)
285289
self.devboxes = resources.AsyncDevboxesResource(self)
286290
self.functions = resources.AsyncFunctionsResource(self)
287291
self.projects = resources.AsyncProjectsResource(self)
@@ -396,6 +400,7 @@ def _make_status_error(
396400
class RunloopWithRawResponse:
397401
def __init__(self, client: Runloop) -> None:
398402
self.blueprints = resources.BlueprintsResourceWithRawResponse(client.blueprints)
403+
self.deployments = resources.DeploymentsResourceWithRawResponse(client.deployments)
399404
self.devboxes = resources.DevboxesResourceWithRawResponse(client.devboxes)
400405
self.functions = resources.FunctionsResourceWithRawResponse(client.functions)
401406
self.projects = resources.ProjectsResourceWithRawResponse(client.projects)
@@ -404,6 +409,7 @@ def __init__(self, client: Runloop) -> None:
404409
class AsyncRunloopWithRawResponse:
405410
def __init__(self, client: AsyncRunloop) -> None:
406411
self.blueprints = resources.AsyncBlueprintsResourceWithRawResponse(client.blueprints)
412+
self.deployments = resources.AsyncDeploymentsResourceWithRawResponse(client.deployments)
407413
self.devboxes = resources.AsyncDevboxesResourceWithRawResponse(client.devboxes)
408414
self.functions = resources.AsyncFunctionsResourceWithRawResponse(client.functions)
409415
self.projects = resources.AsyncProjectsResourceWithRawResponse(client.projects)
@@ -412,6 +418,7 @@ def __init__(self, client: AsyncRunloop) -> None:
412418
class RunloopWithStreamedResponse:
413419
def __init__(self, client: Runloop) -> None:
414420
self.blueprints = resources.BlueprintsResourceWithStreamingResponse(client.blueprints)
421+
self.deployments = resources.DeploymentsResourceWithStreamingResponse(client.deployments)
415422
self.devboxes = resources.DevboxesResourceWithStreamingResponse(client.devboxes)
416423
self.functions = resources.FunctionsResourceWithStreamingResponse(client.functions)
417424
self.projects = resources.ProjectsResourceWithStreamingResponse(client.projects)
@@ -420,6 +427,7 @@ def __init__(self, client: Runloop) -> None:
420427
class AsyncRunloopWithStreamedResponse:
421428
def __init__(self, client: AsyncRunloop) -> None:
422429
self.blueprints = resources.AsyncBlueprintsResourceWithStreamingResponse(client.blueprints)
430+
self.deployments = resources.AsyncDeploymentsResourceWithStreamingResponse(client.deployments)
423431
self.devboxes = resources.AsyncDevboxesResourceWithStreamingResponse(client.devboxes)
424432
self.functions = resources.AsyncFunctionsResourceWithStreamingResponse(client.functions)
425433
self.projects = resources.AsyncProjectsResourceWithStreamingResponse(client.projects)

src/runloop_api_client/_constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
# default timeout is 1 minute
99
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0)
10-
DEFAULT_MAX_RETRIES = 0
10+
DEFAULT_MAX_RETRIES = 2
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

13-
INITIAL_RETRY_DELAY = 1.0
14-
MAX_RETRY_DELAY = 5.0
13+
INITIAL_RETRY_DELAY = 0.5
14+
MAX_RETRY_DELAY = 8.0

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__ = "0.1.0-alpha.13" # x-release-please-version
4+
__version__ = "0.1.0-alpha.14" # 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
@@ -32,6 +32,14 @@
3232
BlueprintsResourceWithStreamingResponse,
3333
AsyncBlueprintsResourceWithStreamingResponse,
3434
)
35+
from .deployments import (
36+
DeploymentsResource,
37+
AsyncDeploymentsResource,
38+
DeploymentsResourceWithRawResponse,
39+
AsyncDeploymentsResourceWithRawResponse,
40+
DeploymentsResourceWithStreamingResponse,
41+
AsyncDeploymentsResourceWithStreamingResponse,
42+
)
3543

3644
__all__ = [
3745
"BlueprintsResource",
@@ -40,6 +48,12 @@
4048
"AsyncBlueprintsResourceWithRawResponse",
4149
"BlueprintsResourceWithStreamingResponse",
4250
"AsyncBlueprintsResourceWithStreamingResponse",
51+
"DeploymentsResource",
52+
"AsyncDeploymentsResource",
53+
"DeploymentsResourceWithRawResponse",
54+
"AsyncDeploymentsResourceWithRawResponse",
55+
"DeploymentsResourceWithStreamingResponse",
56+
"AsyncDeploymentsResourceWithStreamingResponse",
4357
"DevboxesResource",
4458
"AsyncDevboxesResource",
4559
"DevboxesResourceWithRawResponse",

0 commit comments

Comments
 (0)