4141from ...types .devboxes .symbol_type import SymbolType
4242from ...types .devboxes .base_command_param import BaseCommandParam
4343from ...types .devboxes .lsp_files_response import LspFilesResponse
44+ from ...types .devboxes .formatting_response import FormattingResponse
45+ from ...types .devboxes .references_response import ReferencesResponse
4446from ...types .devboxes .diagnostics_response import DiagnosticsResponse
4547from ...types .devboxes .base_diagnostic_param import BaseDiagnosticParam
48+ from ...types .devboxes .code_actions_response import CodeActionsResponse
4649from ...types .devboxes .file_contents_response import FileContentsResponse
4750from ...types .devboxes .health_status_response import HealthStatusResponse
4851from ...types .devboxes .signature_help_response import SignatureHelpResponse
52+ from ...types .devboxes .document_symbol_response import DocumentSymbolResponse
53+ from ...types .devboxes .file_definition_response import FileDefinitionResponse
4954from ...types .devboxes .base_workspace_edit_param import BaseWorkspaceEditParam
5055from ...types .devboxes .code_action_context_param import CodeActionContextParam
5156from ...types .devboxes .code_segment_info_response import CodeSegmentInfoResponse
@@ -83,6 +88,7 @@ def apply_code_action(
8388 command : BaseCommandParam | NotGiven = NOT_GIVEN ,
8489 edit : BaseWorkspaceEditParam | NotGiven = NOT_GIVEN ,
8590 is_preferred : bool | NotGiven = NOT_GIVEN ,
91+ kind : str | NotGiven = NOT_GIVEN ,
8692 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
8793 # The extra values given here take precedence over values defined on the client or passed to this method.
8894 extra_headers : Headers | None = None ,
@@ -116,6 +122,7 @@ def apply_code_action(
116122 "command" : command ,
117123 "edit" : edit ,
118124 "is_preferred" : is_preferred ,
125+ "kind" : kind ,
119126 },
120127 lsp_apply_code_action_params .LspApplyCodeActionParams ,
121128 ),
@@ -143,7 +150,7 @@ def code_actions(
143150 extra_body : Body | None = None ,
144151 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
145152 idempotency_key : str | None = None ,
146- ) -> object :
153+ ) -> CodeActionsResponse :
147154 """Get code actions for a part of a document.
148155
149156 This method calls the
@@ -203,7 +210,7 @@ def code_actions(
203210 timeout = timeout ,
204211 idempotency_key = idempotency_key ,
205212 ),
206- cast_to = object ,
213+ cast_to = CodeActionsResponse ,
207214 )
208215
209216 def diagnostics (
@@ -260,7 +267,7 @@ def document_symbols(
260267 extra_body : Body | None = None ,
261268 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
262269 idempotency_key : str | None = None ,
263- ) -> object :
270+ ) -> DocumentSymbolResponse :
264271 """
265272 Get document symbols for a given document.
266273
@@ -287,7 +294,7 @@ def document_symbols(
287294 timeout = timeout ,
288295 idempotency_key = idempotency_key ,
289296 ),
290- cast_to = object ,
297+ cast_to = DocumentSymbolResponse ,
291298 )
292299
293300 def file (
@@ -346,7 +353,7 @@ def file_definition(
346353 extra_body : Body | None = None ,
347354 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
348355 idempotency_key : str | None = None ,
349- ) -> object :
356+ ) -> FileDefinitionResponse :
350357 """
351358 Get the definition of a symbol at a given position in a file
352359 https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition
@@ -381,7 +388,7 @@ def file_definition(
381388 timeout = timeout ,
382389 idempotency_key = idempotency_key ,
383390 ),
384- cast_to = object ,
391+ cast_to = FileDefinitionResponse ,
385392 )
386393
387394 def files (
@@ -429,7 +436,7 @@ def formatting(
429436 extra_body : Body | None = None ,
430437 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
431438 idempotency_key : str | None = None ,
432- ) -> object :
439+ ) -> FormattingResponse :
433440 """
434441 Get formatting changes for a given document.
435442 https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_formatting
@@ -457,7 +464,7 @@ def formatting(
457464 timeout = timeout ,
458465 idempotency_key = idempotency_key ,
459466 ),
460- cast_to = object ,
467+ cast_to = FormattingResponse ,
461468 )
462469
463470 def get_code_actions_for_diagnostic (
@@ -661,7 +668,7 @@ def references(
661668 extra_body : Body | None = None ,
662669 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
663670 idempotency_key : str | None = None ,
664- ) -> object :
671+ ) -> ReferencesResponse :
665672 """Get references for a given symbol.
666673
667674 This method calls the `getReferences` method
@@ -699,7 +706,7 @@ def references(
699706 timeout = timeout ,
700707 idempotency_key = idempotency_key ,
701708 ),
702- cast_to = object ,
709+ cast_to = ReferencesResponse ,
703710 )
704711
705712 def set_watch_directory (
@@ -774,6 +781,7 @@ async def apply_code_action(
774781 command : BaseCommandParam | NotGiven = NOT_GIVEN ,
775782 edit : BaseWorkspaceEditParam | NotGiven = NOT_GIVEN ,
776783 is_preferred : bool | NotGiven = NOT_GIVEN ,
784+ kind : str | NotGiven = NOT_GIVEN ,
777785 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
778786 # The extra values given here take precedence over values defined on the client or passed to this method.
779787 extra_headers : Headers | None = None ,
@@ -807,6 +815,7 @@ async def apply_code_action(
807815 "command" : command ,
808816 "edit" : edit ,
809817 "is_preferred" : is_preferred ,
818+ "kind" : kind ,
810819 },
811820 lsp_apply_code_action_params .LspApplyCodeActionParams ,
812821 ),
@@ -834,7 +843,7 @@ async def code_actions(
834843 extra_body : Body | None = None ,
835844 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
836845 idempotency_key : str | None = None ,
837- ) -> object :
846+ ) -> CodeActionsResponse :
838847 """Get code actions for a part of a document.
839848
840849 This method calls the
@@ -894,7 +903,7 @@ async def code_actions(
894903 timeout = timeout ,
895904 idempotency_key = idempotency_key ,
896905 ),
897- cast_to = object ,
906+ cast_to = CodeActionsResponse ,
898907 )
899908
900909 async def diagnostics (
@@ -951,7 +960,7 @@ async def document_symbols(
951960 extra_body : Body | None = None ,
952961 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
953962 idempotency_key : str | None = None ,
954- ) -> object :
963+ ) -> DocumentSymbolResponse :
955964 """
956965 Get document symbols for a given document.
957966
@@ -978,7 +987,7 @@ async def document_symbols(
978987 timeout = timeout ,
979988 idempotency_key = idempotency_key ,
980989 ),
981- cast_to = object ,
990+ cast_to = DocumentSymbolResponse ,
982991 )
983992
984993 async def file (
@@ -1037,7 +1046,7 @@ async def file_definition(
10371046 extra_body : Body | None = None ,
10381047 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
10391048 idempotency_key : str | None = None ,
1040- ) -> object :
1049+ ) -> FileDefinitionResponse :
10411050 """
10421051 Get the definition of a symbol at a given position in a file
10431052 https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_definition
@@ -1072,7 +1081,7 @@ async def file_definition(
10721081 timeout = timeout ,
10731082 idempotency_key = idempotency_key ,
10741083 ),
1075- cast_to = object ,
1084+ cast_to = FileDefinitionResponse ,
10761085 )
10771086
10781087 async def files (
@@ -1120,7 +1129,7 @@ async def formatting(
11201129 extra_body : Body | None = None ,
11211130 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
11221131 idempotency_key : str | None = None ,
1123- ) -> object :
1132+ ) -> FormattingResponse :
11241133 """
11251134 Get formatting changes for a given document.
11261135 https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_formatting
@@ -1148,7 +1157,7 @@ async def formatting(
11481157 timeout = timeout ,
11491158 idempotency_key = idempotency_key ,
11501159 ),
1151- cast_to = object ,
1160+ cast_to = FormattingResponse ,
11521161 )
11531162
11541163 async def get_code_actions_for_diagnostic (
@@ -1352,7 +1361,7 @@ async def references(
13521361 extra_body : Body | None = None ,
13531362 timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
13541363 idempotency_key : str | None = None ,
1355- ) -> object :
1364+ ) -> ReferencesResponse :
13561365 """Get references for a given symbol.
13571366
13581367 This method calls the `getReferences` method
@@ -1390,7 +1399,7 @@ async def references(
13901399 timeout = timeout ,
13911400 idempotency_key = idempotency_key ,
13921401 ),
1393- cast_to = object ,
1402+ cast_to = ReferencesResponse ,
13941403 )
13951404
13961405 async def set_watch_directory (
0 commit comments