Skip to content

Commit 4944e49

Browse files
feat(api): api update (#476)
1 parent 5a154a9 commit 4944e49

70 files changed

Lines changed: 2 additions & 4365 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: 47
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-a71d0205c834c186effd4995a795320d06d40b0078cd2ccfbbd1026730fb9a14.yml
1+
configured_endpoints: 33
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-eb0f4c286298e89e0db9188a3f70bd5ef9c3ea84dd26f23c1fe3e9f4498d845e.yml

api.md

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -80,88 +80,6 @@ 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-
16583
## Logs
16684

16785
Types:

src/runloop_api_client/resources/devboxes/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
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-
)
113
from .logs import (
124
LogsResource,
135
AsyncLogsResource,
@@ -34,12 +26,6 @@
3426
)
3527

3628
__all__ = [
37-
"LspResource",
38-
"AsyncLspResource",
39-
"LspResourceWithRawResponse",
40-
"AsyncLspResourceWithRawResponse",
41-
"LspResourceWithStreamingResponse",
42-
"AsyncLspResourceWithStreamingResponse",
4329
"LogsResource",
4430
"AsyncLogsResource",
4531
"LogsResourceWithRawResponse",

src/runloop_api_client/resources/devboxes/devboxes.py

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

77
import httpx
88

9-
from .lsp import (
10-
LspResource,
11-
AsyncLspResource,
12-
LspResourceWithRawResponse,
13-
AsyncLspResourceWithRawResponse,
14-
LspResourceWithStreamingResponse,
15-
AsyncLspResourceWithStreamingResponse,
16-
)
179
from .logs import (
1810
LogsResource,
1911
AsyncLogsResource,
@@ -82,10 +74,6 @@
8274

8375

8476
class DevboxesResource(SyncAPIResource):
85-
@cached_property
86-
def lsp(self) -> LspResource:
87-
return LspResource(self._client)
88-
8977
@cached_property
9078
def logs(self) -> LogsResource:
9179
return LogsResource(self._client)
@@ -846,10 +834,6 @@ def write_file(
846834

847835

848836
class AsyncDevboxesResource(AsyncAPIResource):
849-
@cached_property
850-
def lsp(self) -> AsyncLspResource:
851-
return AsyncLspResource(self._client)
852-
853837
@cached_property
854838
def logs(self) -> AsyncLogsResource:
855839
return AsyncLogsResource(self._client)
@@ -1666,10 +1650,6 @@ def __init__(self, devboxes: DevboxesResource) -> None:
16661650
devboxes.write_file,
16671651
)
16681652

1669-
@cached_property
1670-
def lsp(self) -> LspResourceWithRawResponse:
1671-
return LspResourceWithRawResponse(self._devboxes.lsp)
1672-
16731653
@cached_property
16741654
def logs(self) -> LogsResourceWithRawResponse:
16751655
return LogsResourceWithRawResponse(self._devboxes.logs)
@@ -1736,10 +1716,6 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
17361716
devboxes.write_file,
17371717
)
17381718

1739-
@cached_property
1740-
def lsp(self) -> AsyncLspResourceWithRawResponse:
1741-
return AsyncLspResourceWithRawResponse(self._devboxes.lsp)
1742-
17431719
@cached_property
17441720
def logs(self) -> AsyncLogsResourceWithRawResponse:
17451721
return AsyncLogsResourceWithRawResponse(self._devboxes.logs)
@@ -1806,10 +1782,6 @@ def __init__(self, devboxes: DevboxesResource) -> None:
18061782
devboxes.write_file,
18071783
)
18081784

1809-
@cached_property
1810-
def lsp(self) -> LspResourceWithStreamingResponse:
1811-
return LspResourceWithStreamingResponse(self._devboxes.lsp)
1812-
18131785
@cached_property
18141786
def logs(self) -> LogsResourceWithStreamingResponse:
18151787
return LogsResourceWithStreamingResponse(self._devboxes.logs)
@@ -1876,10 +1848,6 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
18761848
devboxes.write_file,
18771849
)
18781850

1879-
@cached_property
1880-
def lsp(self) -> AsyncLspResourceWithStreamingResponse:
1881-
return AsyncLspResourceWithStreamingResponse(self._devboxes.lsp)
1882-
18831851
@cached_property
18841852
def logs(self) -> AsyncLogsResourceWithStreamingResponse:
18851853
return AsyncLogsResourceWithStreamingResponse(self._devboxes.logs)

0 commit comments

Comments
 (0)