Skip to content

Commit 54f4d2e

Browse files
chore: updates (#479)
1 parent ea19b9f commit 54f4d2e

81 files changed

Lines changed: 5461 additions & 3 deletions

File tree

Some content is hidden

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

.stats.yml

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

api.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,88 @@ Methods:
8080
- <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>
8181
- <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>
8282

83+
## Lsp
84+
85+
Types:
86+
87+
```python
88+
from runloop_api_client.types.devboxes import (
89+
BaseCodeAction,
90+
BaseCommand,
91+
BaseDiagnostic,
92+
BaseLocation,
93+
BaseMarkupContent,
94+
BaseParameterInformation,
95+
BaseRange,
96+
BaseSignature,
97+
BaseWorkspaceEdit,
98+
CodeActionApplicationResult,
99+
CodeActionContext,
100+
CodeActionKind,
101+
CodeActionsForDiagnosticRequestBody,
102+
CodeActionsRequestBody,
103+
CodeActionsResponse,
104+
CodeActionTriggerKind,
105+
CodeDescription,
106+
CodeSegmentInfoRequestBody,
107+
CodeSegmentInfoResponse,
108+
Diagnostic,
109+
DiagnosticRelatedInformation,
110+
DiagnosticSeverity,
111+
DiagnosticsResponse,
112+
DiagnosticTag,
113+
DocumentSymbol,
114+
DocumentSymbolResponse,
115+
DocumentUri,
116+
FileContentsResponse,
117+
FileDefinitionRequestBody,
118+
FileDefinitionResponse,
119+
FilePath,
120+
FileRequestBody,
121+
FileUri,
122+
FormattingResponse,
123+
HealthStatusResponse,
124+
Integer,
125+
Location,
126+
LSpAny,
127+
Position,
128+
Range,
129+
RecordStringTextEditArray,
130+
ReferencesRequestBody,
131+
ReferencesResponse,
132+
SetWatchDirectoryRequestBody,
133+
SignatureHelpRequestBody,
134+
SignatureHelpResponse,
135+
SymbolKind,
136+
SymbolTag,
137+
SymbolType,
138+
TextEdit,
139+
Uinteger,
140+
URi,
141+
WatchedFileResponse,
142+
LspFilesResponse,
143+
LspGetCodeActionsForDiagnosticResponse,
144+
LspSetWatchDirectoryResponse,
145+
)
146+
```
147+
148+
Methods:
149+
150+
- <code title="post /v1/devboxes/{id}/lsp/apply-code-action">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">apply_code_action</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_apply_code_action_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/code_action_application_result.py">CodeActionApplicationResult</a></code>
151+
- <code title="post /v1/devboxes/{id}/lsp/code-actions">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">code_actions</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_code_actions_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/code_actions_response.py">object</a></code>
152+
- <code title="post /v1/devboxes/{id}/lsp/diagnostics">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">diagnostics</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_diagnostics_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/diagnostics_response.py">DiagnosticsResponse</a></code>
153+
- <code title="post /v1/devboxes/{id}/lsp/document-symbols">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">document_symbols</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_document_symbols_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/document_symbol_response.py">object</a></code>
154+
- <code title="post /v1/devboxes/{id}/lsp/file">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">file</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/file_contents_response.py">FileContentsResponse</a></code>
155+
- <code title="post /v1/devboxes/{id}/lsp/file-definition">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">file_definition</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_file_definition_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/file_definition_response.py">object</a></code>
156+
- <code title="get /v1/devboxes/{id}/lsp/files">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">files</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/lsp_files_response.py">LspFilesResponse</a></code>
157+
- <code title="post /v1/devboxes/{id}/lsp/formatting">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">formatting</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_formatting_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/formatting_response.py">object</a></code>
158+
- <code title="post /v1/devboxes/{id}/lsp/get-code-actions-for-diagnostic">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">get_code_actions_for_diagnostic</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_get_code_actions_for_diagnostic_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/lsp_get_code_actions_for_diagnostic_response.py">LspGetCodeActionsForDiagnosticResponse</a></code>
159+
- <code title="post /v1/devboxes/{id}/lsp/get-code-segment-info">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">get_code_segment_info</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_get_code_segment_info_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/code_segment_info_response.py">CodeSegmentInfoResponse</a></code>
160+
- <code title="post /v1/devboxes/{id}/lsp/get-signature-help">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">get_signature_help</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_get_signature_help_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/signature_help_response.py">SignatureHelpResponse</a></code>
161+
- <code title="get /v1/devboxes/{id}/lsp/health">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">health</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/health_status_response.py">HealthStatusResponse</a></code>
162+
- <code title="post /v1/devboxes/{id}/lsp/references">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">references</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_references_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/references_response.py">object</a></code>
163+
- <code title="post /v1/devboxes/{id}/lsp/set-watch-directory">client.devboxes.lsp.<a href="./src/runloop_api_client/resources/devboxes/lsp.py">set_watch_directory</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/lsp_set_watch_directory_params.py">params</a>) -> str</code>
164+
83165
## Logs
84166

85167
Types:
@@ -101,6 +183,28 @@ Methods:
101183
- <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/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
102184
- <code title="post /v1/devboxes/{id}/executions/{execution_id}/kill">client.devboxes.executions.<a href="./src/runloop_api_client/resources/devboxes/executions.py">kill</a>(execution_id, \*, id) -> <a href="./src/runloop_api_client/types/devbox_async_execution_detail_view.py">DevboxAsyncExecutionDetailView</a></code>
103185

186+
# Repositories
187+
188+
Types:
189+
190+
```python
191+
from runloop_api_client.types import (
192+
RepositoryConnectionListView,
193+
RepositoryConnectionView,
194+
RepositoryVersionDetails,
195+
RepositoryVersionListView,
196+
RepositoryDeleteResponse,
197+
)
198+
```
199+
200+
Methods:
201+
202+
- <code title="post /v1/repositories">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">create</a>(\*\*<a href="src/runloop_api_client/types/repository_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/repository_connection_view.py">RepositoryConnectionView</a></code>
203+
- <code title="get /v1/repositories/{id}">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/repository_connection_view.py">RepositoryConnectionView</a></code>
204+
- <code title="get /v1/repositories">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">list</a>(\*\*<a href="src/runloop_api_client/types/repository_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/repository_connection_list_view.py">RepositoryConnectionListView</a></code>
205+
- <code title="post /v1/repositories/{id}/delete">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">delete</a>(id) -> <a href="./src/runloop_api_client/types/repository_delete_response.py">object</a></code>
206+
- <code title="get /v1/repositories/{id}/versions">client.repositories.<a href="./src/runloop_api_client/resources/repositories.py">versions</a>(id) -> <a href="./src/runloop_api_client/types/repository_version_list_view.py">RepositoryVersionListView</a></code>
207+
104208
# Functions
105209

106210
Types:

src/runloop_api_client/_client.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
get_async_library,
2525
)
2626
from ._version import __version__
27-
from .resources import blueprints
27+
from .resources import blueprints, repositories
2828
from ._streaming import Stream as Stream, AsyncStream as AsyncStream
2929
from ._exceptions import RunloopError, APIStatusError
3030
from ._base_client import (
@@ -42,6 +42,7 @@
4242
class Runloop(SyncAPIClient):
4343
blueprints: blueprints.BlueprintsResource
4444
devboxes: devboxes.DevboxesResource
45+
repositories: repositories.RepositoriesResource
4546
functions: functions.FunctionsResource
4647
projects: projects.ProjectsResource
4748
with_raw_response: RunloopWithRawResponse
@@ -103,6 +104,7 @@ def __init__(
103104

104105
self.blueprints = blueprints.BlueprintsResource(self)
105106
self.devboxes = devboxes.DevboxesResource(self)
107+
self.repositories = repositories.RepositoriesResource(self)
106108
self.functions = functions.FunctionsResource(self)
107109
self.projects = projects.ProjectsResource(self)
108110
self.with_raw_response = RunloopWithRawResponse(self)
@@ -216,6 +218,7 @@ def _make_status_error(
216218
class AsyncRunloop(AsyncAPIClient):
217219
blueprints: blueprints.AsyncBlueprintsResource
218220
devboxes: devboxes.AsyncDevboxesResource
221+
repositories: repositories.AsyncRepositoriesResource
219222
functions: functions.AsyncFunctionsResource
220223
projects: projects.AsyncProjectsResource
221224
with_raw_response: AsyncRunloopWithRawResponse
@@ -277,6 +280,7 @@ def __init__(
277280

278281
self.blueprints = blueprints.AsyncBlueprintsResource(self)
279282
self.devboxes = devboxes.AsyncDevboxesResource(self)
283+
self.repositories = repositories.AsyncRepositoriesResource(self)
280284
self.functions = functions.AsyncFunctionsResource(self)
281285
self.projects = projects.AsyncProjectsResource(self)
282286
self.with_raw_response = AsyncRunloopWithRawResponse(self)
@@ -391,6 +395,7 @@ class RunloopWithRawResponse:
391395
def __init__(self, client: Runloop) -> None:
392396
self.blueprints = blueprints.BlueprintsResourceWithRawResponse(client.blueprints)
393397
self.devboxes = devboxes.DevboxesResourceWithRawResponse(client.devboxes)
398+
self.repositories = repositories.RepositoriesResourceWithRawResponse(client.repositories)
394399
self.functions = functions.FunctionsResourceWithRawResponse(client.functions)
395400
self.projects = projects.ProjectsResourceWithRawResponse(client.projects)
396401

@@ -399,6 +404,7 @@ class AsyncRunloopWithRawResponse:
399404
def __init__(self, client: AsyncRunloop) -> None:
400405
self.blueprints = blueprints.AsyncBlueprintsResourceWithRawResponse(client.blueprints)
401406
self.devboxes = devboxes.AsyncDevboxesResourceWithRawResponse(client.devboxes)
407+
self.repositories = repositories.AsyncRepositoriesResourceWithRawResponse(client.repositories)
402408
self.functions = functions.AsyncFunctionsResourceWithRawResponse(client.functions)
403409
self.projects = projects.AsyncProjectsResourceWithRawResponse(client.projects)
404410

@@ -407,6 +413,7 @@ class RunloopWithStreamedResponse:
407413
def __init__(self, client: Runloop) -> None:
408414
self.blueprints = blueprints.BlueprintsResourceWithStreamingResponse(client.blueprints)
409415
self.devboxes = devboxes.DevboxesResourceWithStreamingResponse(client.devboxes)
416+
self.repositories = repositories.RepositoriesResourceWithStreamingResponse(client.repositories)
410417
self.functions = functions.FunctionsResourceWithStreamingResponse(client.functions)
411418
self.projects = projects.ProjectsResourceWithStreamingResponse(client.projects)
412419

@@ -415,6 +422,7 @@ class AsyncRunloopWithStreamedResponse:
415422
def __init__(self, client: AsyncRunloop) -> None:
416423
self.blueprints = blueprints.AsyncBlueprintsResourceWithStreamingResponse(client.blueprints)
417424
self.devboxes = devboxes.AsyncDevboxesResourceWithStreamingResponse(client.devboxes)
425+
self.repositories = repositories.AsyncRepositoriesResourceWithStreamingResponse(client.repositories)
418426
self.functions = functions.AsyncFunctionsResourceWithStreamingResponse(client.functions)
419427
self.projects = projects.AsyncProjectsResourceWithStreamingResponse(client.projects)
420428

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 .repositories import (
36+
RepositoriesResource,
37+
AsyncRepositoriesResource,
38+
RepositoriesResourceWithRawResponse,
39+
AsyncRepositoriesResourceWithRawResponse,
40+
RepositoriesResourceWithStreamingResponse,
41+
AsyncRepositoriesResourceWithStreamingResponse,
42+
)
3543

3644
__all__ = [
3745
"BlueprintsResource",
@@ -46,6 +54,12 @@
4654
"AsyncDevboxesResourceWithRawResponse",
4755
"DevboxesResourceWithStreamingResponse",
4856
"AsyncDevboxesResourceWithStreamingResponse",
57+
"RepositoriesResource",
58+
"AsyncRepositoriesResource",
59+
"RepositoriesResourceWithRawResponse",
60+
"AsyncRepositoriesResourceWithRawResponse",
61+
"RepositoriesResourceWithStreamingResponse",
62+
"AsyncRepositoriesResourceWithStreamingResponse",
4963
"FunctionsResource",
5064
"AsyncFunctionsResource",
5165
"FunctionsResourceWithRawResponse",

src/runloop_api_client/resources/devboxes/__init__.py

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

3+
from .lsp import (
4+
LspResource,
5+
AsyncLspResource,
6+
LspResourceWithRawResponse,
7+
AsyncLspResourceWithRawResponse,
8+
LspResourceWithStreamingResponse,
9+
AsyncLspResourceWithStreamingResponse,
10+
)
311
from .logs import (
412
LogsResource,
513
AsyncLogsResource,
@@ -26,6 +34,12 @@
2634
)
2735

2836
__all__ = [
37+
"LspResource",
38+
"AsyncLspResource",
39+
"LspResourceWithRawResponse",
40+
"AsyncLspResourceWithRawResponse",
41+
"LspResourceWithStreamingResponse",
42+
"AsyncLspResourceWithStreamingResponse",
2943
"LogsResource",
3044
"AsyncLogsResource",
3145
"LogsResourceWithRawResponse",

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
import httpx
88

9+
from .lsp import (
10+
LspResource,
11+
AsyncLspResource,
12+
LspResourceWithRawResponse,
13+
AsyncLspResourceWithRawResponse,
14+
LspResourceWithStreamingResponse,
15+
AsyncLspResourceWithStreamingResponse,
16+
)
917
from .logs import (
1018
LogsResource,
1119
AsyncLogsResource,
@@ -74,6 +82,10 @@
7482

7583

7684
class DevboxesResource(SyncAPIResource):
85+
@cached_property
86+
def lsp(self) -> LspResource:
87+
return LspResource(self._client)
88+
7789
@cached_property
7890
def logs(self) -> LogsResource:
7991
return LogsResource(self._client)
@@ -834,6 +846,10 @@ def write_file(
834846

835847

836848
class AsyncDevboxesResource(AsyncAPIResource):
849+
@cached_property
850+
def lsp(self) -> AsyncLspResource:
851+
return AsyncLspResource(self._client)
852+
837853
@cached_property
838854
def logs(self) -> AsyncLogsResource:
839855
return AsyncLogsResource(self._client)
@@ -1650,6 +1666,10 @@ def __init__(self, devboxes: DevboxesResource) -> None:
16501666
devboxes.write_file,
16511667
)
16521668

1669+
@cached_property
1670+
def lsp(self) -> LspResourceWithRawResponse:
1671+
return LspResourceWithRawResponse(self._devboxes.lsp)
1672+
16531673
@cached_property
16541674
def logs(self) -> LogsResourceWithRawResponse:
16551675
return LogsResourceWithRawResponse(self._devboxes.logs)
@@ -1716,6 +1736,10 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
17161736
devboxes.write_file,
17171737
)
17181738

1739+
@cached_property
1740+
def lsp(self) -> AsyncLspResourceWithRawResponse:
1741+
return AsyncLspResourceWithRawResponse(self._devboxes.lsp)
1742+
17191743
@cached_property
17201744
def logs(self) -> AsyncLogsResourceWithRawResponse:
17211745
return AsyncLogsResourceWithRawResponse(self._devboxes.logs)
@@ -1782,6 +1806,10 @@ def __init__(self, devboxes: DevboxesResource) -> None:
17821806
devboxes.write_file,
17831807
)
17841808

1809+
@cached_property
1810+
def lsp(self) -> LspResourceWithStreamingResponse:
1811+
return LspResourceWithStreamingResponse(self._devboxes.lsp)
1812+
17851813
@cached_property
17861814
def logs(self) -> LogsResourceWithStreamingResponse:
17871815
return LogsResourceWithStreamingResponse(self._devboxes.logs)
@@ -1848,6 +1876,10 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
18481876
devboxes.write_file,
18491877
)
18501878

1879+
@cached_property
1880+
def lsp(self) -> AsyncLspResourceWithStreamingResponse:
1881+
return AsyncLspResourceWithStreamingResponse(self._devboxes.lsp)
1882+
18511883
@cached_property
18521884
def logs(self) -> AsyncLogsResourceWithStreamingResponse:
18531885
return AsyncLogsResourceWithStreamingResponse(self._devboxes.logs)

0 commit comments

Comments
 (0)