Skip to content

Commit 5143126

Browse files
chore(internal): codegen related update (#546)
1 parent 6f547ce commit 5143126

9 files changed

+152
-204
lines changed

src/runloop_api_client/resources/devboxes/lsp.py

+62-15
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@
5454
from ...types.devboxes.base_workspace_edit_param import BaseWorkspaceEditParam
5555
from ...types.devboxes.code_action_context_param import CodeActionContextParam
5656
from ...types.devboxes.code_segment_info_response import CodeSegmentInfoResponse
57-
from ...types.devboxes.references_request_body_param import ReferencesRequestBodyParam
5857
from ...types.devboxes.code_action_application_result import CodeActionApplicationResult
59-
from ...types.devboxes.signature_help_request_body_param import SignatureHelpRequestBodyParam
60-
from ...types.devboxes.file_definition_request_body_param import FileDefinitionRequestBodyParam
6158
from ...types.devboxes.lsp_get_code_actions_for_diagnostic_response import LspGetCodeActionsForDiagnosticResponse
6259

6360
__all__ = ["LspResource", "AsyncLspResource"]
@@ -346,7 +343,9 @@ def file_definition(
346343
self,
347344
id: str,
348345
*,
349-
file_definition_request_body: FileDefinitionRequestBodyParam,
346+
character: float,
347+
line: float,
348+
uri: str,
350349
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
351350
# The extra values given here take precedence over values defined on the client or passed to this method.
352351
extra_headers: Headers | None = None,
@@ -374,7 +373,14 @@ def file_definition(
374373
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
375374
return self._post(
376375
f"/v1/devboxes/{id}/lsp/file-definition",
377-
body=maybe_transform(file_definition_request_body, lsp_file_definition_params.LspFileDefinitionParams),
376+
body=maybe_transform(
377+
{
378+
"character": character,
379+
"line": line,
380+
"uri": uri,
381+
},
382+
lsp_file_definition_params.LspFileDefinitionParams,
383+
),
378384
options=make_request_options(
379385
extra_headers=extra_headers,
380386
extra_query=extra_query,
@@ -566,7 +572,9 @@ def get_signature_help(
566572
self,
567573
id: str,
568574
*,
569-
signature_help_request_body: SignatureHelpRequestBodyParam,
575+
character: float,
576+
line: float,
577+
uri: str,
570578
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
571579
# The extra values given here take precedence over values defined on the client or passed to this method.
572580
extra_headers: Headers | None = None,
@@ -594,7 +602,14 @@ def get_signature_help(
594602
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
595603
return self._post(
596604
f"/v1/devboxes/{id}/lsp/get-signature-help",
597-
body=maybe_transform(signature_help_request_body, lsp_get_signature_help_params.LspGetSignatureHelpParams),
605+
body=maybe_transform(
606+
{
607+
"character": character,
608+
"line": line,
609+
"uri": uri,
610+
},
611+
lsp_get_signature_help_params.LspGetSignatureHelpParams,
612+
),
598613
options=make_request_options(
599614
extra_headers=extra_headers,
600615
extra_query=extra_query,
@@ -643,7 +658,9 @@ def references(
643658
self,
644659
id: str,
645660
*,
646-
references_request_body: ReferencesRequestBodyParam,
661+
character: float,
662+
line: float,
663+
uri: str,
647664
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
648665
# The extra values given here take precedence over values defined on the client or passed to this method.
649666
extra_headers: Headers | None = None,
@@ -674,7 +691,14 @@ def references(
674691
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
675692
return self._post(
676693
f"/v1/devboxes/{id}/lsp/references",
677-
body=maybe_transform(references_request_body, lsp_references_params.LspReferencesParams),
694+
body=maybe_transform(
695+
{
696+
"character": character,
697+
"line": line,
698+
"uri": uri,
699+
},
700+
lsp_references_params.LspReferencesParams,
701+
),
678702
options=make_request_options(
679703
extra_headers=extra_headers,
680704
extra_query=extra_query,
@@ -1012,7 +1036,9 @@ async def file_definition(
10121036
self,
10131037
id: str,
10141038
*,
1015-
file_definition_request_body: FileDefinitionRequestBodyParam,
1039+
character: float,
1040+
line: float,
1041+
uri: str,
10161042
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
10171043
# The extra values given here take precedence over values defined on the client or passed to this method.
10181044
extra_headers: Headers | None = None,
@@ -1041,7 +1067,12 @@ async def file_definition(
10411067
return await self._post(
10421068
f"/v1/devboxes/{id}/lsp/file-definition",
10431069
body=await async_maybe_transform(
1044-
file_definition_request_body, lsp_file_definition_params.LspFileDefinitionParams
1070+
{
1071+
"character": character,
1072+
"line": line,
1073+
"uri": uri,
1074+
},
1075+
lsp_file_definition_params.LspFileDefinitionParams,
10451076
),
10461077
options=make_request_options(
10471078
extra_headers=extra_headers,
@@ -1234,7 +1265,9 @@ async def get_signature_help(
12341265
self,
12351266
id: str,
12361267
*,
1237-
signature_help_request_body: SignatureHelpRequestBodyParam,
1268+
character: float,
1269+
line: float,
1270+
uri: str,
12381271
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
12391272
# The extra values given here take precedence over values defined on the client or passed to this method.
12401273
extra_headers: Headers | None = None,
@@ -1263,7 +1296,12 @@ async def get_signature_help(
12631296
return await self._post(
12641297
f"/v1/devboxes/{id}/lsp/get-signature-help",
12651298
body=await async_maybe_transform(
1266-
signature_help_request_body, lsp_get_signature_help_params.LspGetSignatureHelpParams
1299+
{
1300+
"character": character,
1301+
"line": line,
1302+
"uri": uri,
1303+
},
1304+
lsp_get_signature_help_params.LspGetSignatureHelpParams,
12671305
),
12681306
options=make_request_options(
12691307
extra_headers=extra_headers,
@@ -1313,7 +1351,9 @@ async def references(
13131351
self,
13141352
id: str,
13151353
*,
1316-
references_request_body: ReferencesRequestBodyParam,
1354+
character: float,
1355+
line: float,
1356+
uri: str,
13171357
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
13181358
# The extra values given here take precedence over values defined on the client or passed to this method.
13191359
extra_headers: Headers | None = None,
@@ -1344,7 +1384,14 @@ async def references(
13441384
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
13451385
return await self._post(
13461386
f"/v1/devboxes/{id}/lsp/references",
1347-
body=await async_maybe_transform(references_request_body, lsp_references_params.LspReferencesParams),
1387+
body=await async_maybe_transform(
1388+
{
1389+
"character": character,
1390+
"line": line,
1391+
"uri": uri,
1392+
},
1393+
lsp_references_params.LspReferencesParams,
1394+
),
13481395
options=make_request_options(
13491396
extra_headers=extra_headers,
13501397
extra_query=extra_query,

src/runloop_api_client/types/devboxes/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,13 @@
7272
from .execution_execute_sync_params import ExecutionExecuteSyncParams as ExecutionExecuteSyncParams
7373
from .lsp_get_signature_help_params import LspGetSignatureHelpParams as LspGetSignatureHelpParams
7474
from .record_string_text_edit_array import RecordStringTextEditArray as RecordStringTextEditArray
75-
from .references_request_body_param import ReferencesRequestBodyParam as ReferencesRequestBodyParam
7675
from .code_action_application_result import CodeActionApplicationResult as CodeActionApplicationResult
7776
from .execution_execute_async_params import ExecutionExecuteAsyncParams as ExecutionExecuteAsyncParams
7877
from .lsp_set_watch_directory_params import LspSetWatchDirectoryParams as LspSetWatchDirectoryParams
7978
from .lsp_get_code_segment_info_params import LspGetCodeSegmentInfoParams as LspGetCodeSegmentInfoParams
8079
from .lsp_set_watch_directory_response import LspSetWatchDirectoryResponse as LspSetWatchDirectoryResponse
8180
from .computer_mouse_interaction_params import ComputerMouseInteractionParams as ComputerMouseInteractionParams
82-
from .signature_help_request_body_param import SignatureHelpRequestBodyParam as SignatureHelpRequestBodyParam
8381
from .computer_screen_interaction_params import ComputerScreenInteractionParams as ComputerScreenInteractionParams
84-
from .file_definition_request_body_param import FileDefinitionRequestBodyParam as FileDefinitionRequestBodyParam
8582
from .computer_mouse_interaction_response import ComputerMouseInteractionResponse as ComputerMouseInteractionResponse
8683
from .record_string_text_edit_array_param import RecordStringTextEditArrayParam as RecordStringTextEditArrayParam
8784
from .computer_keyboard_interaction_params import ComputerKeyboardInteractionParams as ComputerKeyboardInteractionParams

src/runloop_api_client/types/devboxes/file_definition_request_body_param.py

-15
This file was deleted.

src/runloop_api_client/types/devboxes/lsp_file_definition_params.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Required, Annotated, TypedDict
6-
7-
from ..._utils import PropertyInfo
8-
from .file_definition_request_body_param import FileDefinitionRequestBodyParam
5+
from typing_extensions import Required, TypedDict
96

107
__all__ = ["LspFileDefinitionParams"]
118

129

1310
class LspFileDefinitionParams(TypedDict, total=False):
14-
file_definition_request_body: Required[
15-
Annotated[FileDefinitionRequestBodyParam, PropertyInfo(alias="fileDefinitionRequestBody")]
16-
]
11+
character: Required[float]
12+
13+
line: Required[float]
14+
15+
uri: Required[str]

src/runloop_api_client/types/devboxes/lsp_get_signature_help_params.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Required, Annotated, TypedDict
6-
7-
from ..._utils import PropertyInfo
8-
from .signature_help_request_body_param import SignatureHelpRequestBodyParam
5+
from typing_extensions import Required, TypedDict
96

107
__all__ = ["LspGetSignatureHelpParams"]
118

129

1310
class LspGetSignatureHelpParams(TypedDict, total=False):
14-
signature_help_request_body: Required[
15-
Annotated[SignatureHelpRequestBodyParam, PropertyInfo(alias="signatureHelpRequestBody")]
16-
]
11+
character: Required[float]
12+
13+
line: Required[float]
14+
15+
uri: Required[str]

src/runloop_api_client/types/devboxes/lsp_references_params.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Required, Annotated, TypedDict
6-
7-
from ..._utils import PropertyInfo
8-
from .references_request_body_param import ReferencesRequestBodyParam
5+
from typing_extensions import Required, TypedDict
96

107
__all__ = ["LspReferencesParams"]
118

129

1310
class LspReferencesParams(TypedDict, total=False):
14-
references_request_body: Required[
15-
Annotated[ReferencesRequestBodyParam, PropertyInfo(alias="referencesRequestBody")]
16-
]
11+
character: Required[float]
12+
13+
line: Required[float]
14+
15+
uri: Required[str]

src/runloop_api_client/types/devboxes/references_request_body_param.py

-15
This file was deleted.

src/runloop_api_client/types/devboxes/signature_help_request_body_param.py

-15
This file was deleted.

0 commit comments

Comments
 (0)