Skip to content

Commit 6c9ba20

Browse files
feat(api): api update
1 parent d5ba1be commit 6c9ba20

82 files changed

Lines changed: 200 additions & 4820 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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 104
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-0cb966ca566f4f3d7f8b4d3c37b24b4a117760dba194cb2c4f2bb4e3620027de.yml
3-
openapi_spec_hash: c969887eb721b42a423e662127270d57
4-
config_hash: 3a4634de0976f3fbd7f3a5c4911d2add
1+
configured_endpoints: 90
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1749c364b895f7e1551fbb4037d18c64f89948017f56eaf68b6cb0e978250944.yml
3+
openapi_spec_hash: 0623287e228035fbeca1a66c3253b9b1
4+
config_hash: 4c7b6a602579b69f9d533f0f0fef5ded

api.md

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -161,88 +161,6 @@ Methods:
161161
- <code title="post /v1/devboxes/computers/{id}/mouse_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">mouse_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_mouse_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_mouse_interaction_response.py">ComputerMouseInteractionResponse</a></code>
162162
- <code title="post /v1/devboxes/computers/{id}/screen_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">screen_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_screen_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_screen_interaction_response.py">ComputerScreenInteractionResponse</a></code>
163163

164-
## Lsp
165-
166-
Types:
167-
168-
```python
169-
from runloop_api_client.types.devboxes import (
170-
BaseCodeAction,
171-
BaseCommand,
172-
BaseDiagnostic,
173-
BaseLocation,
174-
BaseMarkupContent,
175-
BaseParameterInformation,
176-
BaseRange,
177-
BaseSignature,
178-
BaseWorkspaceEdit,
179-
CodeActionApplicationResult,
180-
CodeActionContext,
181-
CodeActionKind,
182-
CodeActionsForDiagnosticRequestBody,
183-
CodeActionsRequestBody,
184-
CodeActionsResponse,
185-
CodeActionTriggerKind,
186-
CodeDescription,
187-
CodeSegmentInfoRequestBody,
188-
CodeSegmentInfoResponse,
189-
Diagnostic,
190-
DiagnosticRelatedInformation,
191-
DiagnosticSeverity,
192-
DiagnosticsResponse,
193-
DiagnosticTag,
194-
DocumentSymbol,
195-
DocumentSymbolResponse,
196-
DocumentUri,
197-
FileContentsResponse,
198-
FileDefinitionRequestBody,
199-
FileDefinitionResponse,
200-
FilePath,
201-
FileRequestBody,
202-
FileUri,
203-
FormattingResponse,
204-
HealthStatusResponse,
205-
Integer,
206-
Location,
207-
LSpAny,
208-
Position,
209-
Range,
210-
RecordStringTextEditArray,
211-
ReferencesRequestBody,
212-
ReferencesResponse,
213-
SetWatchDirectoryRequestBody,
214-
SignatureHelpRequestBody,
215-
SignatureHelpResponse,
216-
SymbolKind,
217-
SymbolTag,
218-
SymbolType,
219-
TextEdit,
220-
Uinteger,
221-
URi,
222-
WatchedFileResponse,
223-
LspFilesResponse,
224-
LspGetCodeActionsForDiagnosticResponse,
225-
LspSetWatchDirectoryResponse,
226-
)
227-
```
228-
229-
Methods:
230-
231-
- <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>
232-
- <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">CodeActionsResponse</a></code>
233-
- <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>
234-
- <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">DocumentSymbolResponse</a></code>
235-
- <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>
236-
- <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">FileDefinitionResponse</a></code>
237-
- <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>
238-
- <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">FormattingResponse</a></code>
239-
- <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>
240-
- <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>
241-
- <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>
242-
- <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>
243-
- <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">ReferencesResponse</a></code>
244-
- <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>
245-
246164
## Logs
247165

248166
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,
@@ -76,12 +68,6 @@
7668
"AsyncComputersResourceWithRawResponse",
7769
"ComputersResourceWithStreamingResponse",
7870
"AsyncComputersResourceWithStreamingResponse",
79-
"LspResource",
80-
"AsyncLspResource",
81-
"LspResourceWithRawResponse",
82-
"AsyncLspResourceWithRawResponse",
83-
"LspResourceWithStreamingResponse",
84-
"AsyncLspResourceWithStreamingResponse",
8571
"LogsResource",
8672
"AsyncLogsResource",
8773
"LogsResourceWithRawResponse",

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 29 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import typing_extensions
56
from typing import Dict, List, Mapping, Iterable, Optional, TypedDict, cast
67
from typing_extensions import Literal
78

@@ -10,14 +11,6 @@
1011
# uuid_utils is not typed
1112
from uuid_utils import uuid7 # type: ignore
1213

13-
from .lsp import (
14-
LspResource,
15-
AsyncLspResource,
16-
LspResourceWithRawResponse,
17-
AsyncLspResourceWithRawResponse,
18-
LspResourceWithStreamingResponse,
19-
AsyncLspResourceWithStreamingResponse,
20-
)
2114
from .logs import (
2215
LogsResource,
2316
AsyncLogsResource,
@@ -154,10 +147,6 @@ def browsers(self) -> BrowsersResource:
154147
def computers(self) -> ComputersResource:
155148
return ComputersResource(self._client)
156149

157-
@cached_property
158-
def lsp(self) -> LspResource:
159-
return LspResource(self._client)
160-
161150
@cached_property
162151
def logs(self) -> LogsResource:
163152
return LogsResource(self._client)
@@ -730,6 +719,7 @@ def execute(
730719
*,
731720
command: str,
732721
command_id: str,
722+
optimistic_timeout: Optional[int] | Omit = omit,
733723
shell_name: Optional[str] | Omit = omit,
734724
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
735725
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -752,6 +742,9 @@ def execute(
752742
753743
command_id: The command ID for idempotency and tracking
754744
745+
optimistic_timeout: Timeout in seconds to wait for command completion. Operation is not killed. Max
746+
is 600 seconds.
747+
755748
shell_name: The name of the persistent shell to create or use if already created. When using
756749
a persistent shell, the command will run from the directory at the end of the
757750
previous command and environment variables will be preserved.
@@ -776,6 +769,7 @@ def execute(
776769
{
777770
"command": command,
778771
"command_id": command_id,
772+
"optimistic_timeout": optimistic_timeout,
779773
"shell_name": shell_name,
780774
},
781775
devbox_execute_params.DevboxExecuteParams,
@@ -902,6 +896,7 @@ def execute_async(
902896
cast_to=DevboxAsyncExecutionDetailView,
903897
)
904898

899+
@typing_extensions.deprecated("deprecated")
905900
def execute_sync(
906901
self,
907902
id: str,
@@ -1596,10 +1591,6 @@ def browsers(self) -> AsyncBrowsersResource:
15961591
def computers(self) -> AsyncComputersResource:
15971592
return AsyncComputersResource(self._client)
15981593

1599-
@cached_property
1600-
def lsp(self) -> AsyncLspResource:
1601-
return AsyncLspResource(self._client)
1602-
16031594
@cached_property
16041595
def logs(self) -> AsyncLogsResource:
16051596
return AsyncLogsResource(self._client)
@@ -2171,6 +2162,7 @@ async def execute(
21712162
*,
21722163
command: str,
21732164
command_id: str,
2165+
optimistic_timeout: Optional[int] | Omit = omit,
21742166
shell_name: Optional[str] | Omit = omit,
21752167
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
21762168
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2193,6 +2185,9 @@ async def execute(
21932185
21942186
command_id: The command ID for idempotency and tracking
21952187
2188+
optimistic_timeout: Timeout in seconds to wait for command completion. Operation is not killed. Max
2189+
is 600 seconds.
2190+
21962191
shell_name: The name of the persistent shell to create or use if already created. When using
21972192
a persistent shell, the command will run from the directory at the end of the
21982193
previous command and environment variables will be preserved.
@@ -2217,6 +2212,7 @@ async def execute(
22172212
{
22182213
"command": command,
22192214
"command_id": command_id,
2215+
"optimistic_timeout": optimistic_timeout,
22202216
"shell_name": shell_name,
22212217
},
22222218
devbox_execute_params.DevboxExecuteParams,
@@ -2344,6 +2340,7 @@ async def execute_async(
23442340
cast_to=DevboxAsyncExecutionDetailView,
23452341
)
23462342

2343+
@typing_extensions.deprecated("deprecated")
23472344
async def execute_sync(
23482345
self,
23492346
id: str,
@@ -3060,8 +3057,10 @@ def __init__(self, devboxes: DevboxesResource) -> None:
30603057
self.execute_async = to_raw_response_wrapper(
30613058
devboxes.execute_async,
30623059
)
3063-
self.execute_sync = to_raw_response_wrapper(
3064-
devboxes.execute_sync,
3060+
self.execute_sync = ( # pyright: ignore[reportDeprecated]
3061+
to_raw_response_wrapper(
3062+
devboxes.execute_sync, # pyright: ignore[reportDeprecated],
3063+
)
30653064
)
30663065
self.keep_alive = to_raw_response_wrapper(
30673066
devboxes.keep_alive,
@@ -3112,10 +3111,6 @@ def browsers(self) -> BrowsersResourceWithRawResponse:
31123111
def computers(self) -> ComputersResourceWithRawResponse:
31133112
return ComputersResourceWithRawResponse(self._devboxes.computers)
31143113

3115-
@cached_property
3116-
def lsp(self) -> LspResourceWithRawResponse:
3117-
return LspResourceWithRawResponse(self._devboxes.lsp)
3118-
31193114
@cached_property
31203115
def logs(self) -> LogsResourceWithRawResponse:
31213116
return LogsResourceWithRawResponse(self._devboxes.logs)
@@ -3160,8 +3155,10 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
31603155
self.execute_async = async_to_raw_response_wrapper(
31613156
devboxes.execute_async,
31623157
)
3163-
self.execute_sync = async_to_raw_response_wrapper(
3164-
devboxes.execute_sync,
3158+
self.execute_sync = ( # pyright: ignore[reportDeprecated]
3159+
async_to_raw_response_wrapper(
3160+
devboxes.execute_sync, # pyright: ignore[reportDeprecated],
3161+
)
31653162
)
31663163
self.keep_alive = async_to_raw_response_wrapper(
31673164
devboxes.keep_alive,
@@ -3212,10 +3209,6 @@ def browsers(self) -> AsyncBrowsersResourceWithRawResponse:
32123209
def computers(self) -> AsyncComputersResourceWithRawResponse:
32133210
return AsyncComputersResourceWithRawResponse(self._devboxes.computers)
32143211

3215-
@cached_property
3216-
def lsp(self) -> AsyncLspResourceWithRawResponse:
3217-
return AsyncLspResourceWithRawResponse(self._devboxes.lsp)
3218-
32193212
@cached_property
32203213
def logs(self) -> AsyncLogsResourceWithRawResponse:
32213214
return AsyncLogsResourceWithRawResponse(self._devboxes.logs)
@@ -3260,8 +3253,10 @@ def __init__(self, devboxes: DevboxesResource) -> None:
32603253
self.execute_async = to_streamed_response_wrapper(
32613254
devboxes.execute_async,
32623255
)
3263-
self.execute_sync = to_streamed_response_wrapper(
3264-
devboxes.execute_sync,
3256+
self.execute_sync = ( # pyright: ignore[reportDeprecated]
3257+
to_streamed_response_wrapper(
3258+
devboxes.execute_sync, # pyright: ignore[reportDeprecated],
3259+
)
32653260
)
32663261
self.keep_alive = to_streamed_response_wrapper(
32673262
devboxes.keep_alive,
@@ -3312,10 +3307,6 @@ def browsers(self) -> BrowsersResourceWithStreamingResponse:
33123307
def computers(self) -> ComputersResourceWithStreamingResponse:
33133308
return ComputersResourceWithStreamingResponse(self._devboxes.computers)
33143309

3315-
@cached_property
3316-
def lsp(self) -> LspResourceWithStreamingResponse:
3317-
return LspResourceWithStreamingResponse(self._devboxes.lsp)
3318-
33193310
@cached_property
33203311
def logs(self) -> LogsResourceWithStreamingResponse:
33213312
return LogsResourceWithStreamingResponse(self._devboxes.logs)
@@ -3360,8 +3351,10 @@ def __init__(self, devboxes: AsyncDevboxesResource) -> None:
33603351
self.execute_async = async_to_streamed_response_wrapper(
33613352
devboxes.execute_async,
33623353
)
3363-
self.execute_sync = async_to_streamed_response_wrapper(
3364-
devboxes.execute_sync,
3354+
self.execute_sync = ( # pyright: ignore[reportDeprecated]
3355+
async_to_streamed_response_wrapper(
3356+
devboxes.execute_sync, # pyright: ignore[reportDeprecated],
3357+
)
33653358
)
33663359
self.keep_alive = async_to_streamed_response_wrapper(
33673360
devboxes.keep_alive,
@@ -3412,10 +3405,6 @@ def browsers(self) -> AsyncBrowsersResourceWithStreamingResponse:
34123405
def computers(self) -> AsyncComputersResourceWithStreamingResponse:
34133406
return AsyncComputersResourceWithStreamingResponse(self._devboxes.computers)
34143407

3415-
@cached_property
3416-
def lsp(self) -> AsyncLspResourceWithStreamingResponse:
3417-
return AsyncLspResourceWithStreamingResponse(self._devboxes.lsp)
3418-
34193408
@cached_property
34203409
def logs(self) -> AsyncLogsResourceWithStreamingResponse:
34213410
return AsyncLogsResourceWithStreamingResponse(self._devboxes.logs)

0 commit comments

Comments
 (0)