daytona_toolbox_api_client 0.102.0rc2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of daytona_toolbox_api_client might be problematic. Click here for more details.

Files changed (163) hide show
  1. daytona_daemon_api_client/__init__.py +102 -0
  2. daytona_daemon_api_client/api/__init__.py +11 -0
  3. daytona_daemon_api_client/api/computer_use_api.py +6077 -0
  4. daytona_daemon_api_client/api/file_system_api.py +3463 -0
  5. daytona_daemon_api_client/api/git_api.py +3052 -0
  6. daytona_daemon_api_client/api/info_api.py +528 -0
  7. daytona_daemon_api_client/api/lsp_api.py +2027 -0
  8. daytona_daemon_api_client/api/port_api.py +547 -0
  9. daytona_daemon_api_client/api/process_api.py +2262 -0
  10. daytona_daemon_api_client/api_client.py +797 -0
  11. daytona_daemon_api_client/api_response.py +21 -0
  12. daytona_daemon_api_client/configuration.py +572 -0
  13. daytona_daemon_api_client/exceptions.py +216 -0
  14. daytona_daemon_api_client/models/__init__.py +79 -0
  15. daytona_daemon_api_client/models/command.py +104 -0
  16. daytona_daemon_api_client/models/completion_context.py +102 -0
  17. daytona_daemon_api_client/models/completion_item.py +112 -0
  18. daytona_daemon_api_client/models/completion_list.py +110 -0
  19. daytona_daemon_api_client/models/computer_use_start_response.py +115 -0
  20. daytona_daemon_api_client/models/computer_use_status_response.py +100 -0
  21. daytona_daemon_api_client/models/computer_use_stop_response.py +115 -0
  22. daytona_daemon_api_client/models/create_session_request.py +100 -0
  23. daytona_daemon_api_client/models/display_info.py +110 -0
  24. daytona_daemon_api_client/models/display_info_response.py +108 -0
  25. daytona_daemon_api_client/models/execute_request.py +104 -0
  26. daytona_daemon_api_client/models/execute_response.py +102 -0
  27. daytona_daemon_api_client/models/file_info.py +114 -0
  28. daytona_daemon_api_client/models/file_status.py +107 -0
  29. daytona_daemon_api_client/models/git_add_request.py +102 -0
  30. daytona_daemon_api_client/models/git_branch_request.py +102 -0
  31. daytona_daemon_api_client/models/git_checkout_request.py +102 -0
  32. daytona_daemon_api_client/models/git_clone_request.py +110 -0
  33. daytona_daemon_api_client/models/git_commit_info.py +108 -0
  34. daytona_daemon_api_client/models/git_commit_request.py +108 -0
  35. daytona_daemon_api_client/models/git_commit_response.py +100 -0
  36. daytona_daemon_api_client/models/git_git_delete_branch_request.py +102 -0
  37. daytona_daemon_api_client/models/git_repo_request.py +104 -0
  38. daytona_daemon_api_client/models/git_status.py +116 -0
  39. daytona_daemon_api_client/models/is_port_in_use_response.py +100 -0
  40. daytona_daemon_api_client/models/keyboard_hotkey_request.py +100 -0
  41. daytona_daemon_api_client/models/keyboard_press_request.py +102 -0
  42. daytona_daemon_api_client/models/keyboard_type_request.py +102 -0
  43. daytona_daemon_api_client/models/list_branch_response.py +100 -0
  44. daytona_daemon_api_client/models/lsp_completion_params.py +116 -0
  45. daytona_daemon_api_client/models/lsp_document_request.py +104 -0
  46. daytona_daemon_api_client/models/lsp_location.py +106 -0
  47. daytona_daemon_api_client/models/lsp_position.py +102 -0
  48. daytona_daemon_api_client/models/lsp_range.py +109 -0
  49. daytona_daemon_api_client/models/lsp_server_request.py +102 -0
  50. daytona_daemon_api_client/models/lsp_symbol.py +108 -0
  51. daytona_daemon_api_client/models/match.py +104 -0
  52. daytona_daemon_api_client/models/mouse_click_request.py +106 -0
  53. daytona_daemon_api_client/models/mouse_click_response.py +102 -0
  54. daytona_daemon_api_client/models/mouse_drag_request.py +108 -0
  55. daytona_daemon_api_client/models/mouse_drag_response.py +102 -0
  56. daytona_daemon_api_client/models/mouse_move_request.py +102 -0
  57. daytona_daemon_api_client/models/mouse_position_response.py +102 -0
  58. daytona_daemon_api_client/models/mouse_scroll_request.py +106 -0
  59. daytona_daemon_api_client/models/port_list.py +100 -0
  60. daytona_daemon_api_client/models/position.py +102 -0
  61. daytona_daemon_api_client/models/process_errors_response.py +102 -0
  62. daytona_daemon_api_client/models/process_logs_response.py +102 -0
  63. daytona_daemon_api_client/models/process_restart_response.py +102 -0
  64. daytona_daemon_api_client/models/process_status.py +106 -0
  65. daytona_daemon_api_client/models/process_status_response.py +102 -0
  66. daytona_daemon_api_client/models/project_dir_response.py +100 -0
  67. daytona_daemon_api_client/models/replace_request.py +104 -0
  68. daytona_daemon_api_client/models/replace_result.py +104 -0
  69. daytona_daemon_api_client/models/screenshot_response.py +108 -0
  70. daytona_daemon_api_client/models/scroll_response.py +100 -0
  71. daytona_daemon_api_client/models/search_files_response.py +100 -0
  72. daytona_daemon_api_client/models/session.py +110 -0
  73. daytona_daemon_api_client/models/session_execute_request.py +104 -0
  74. daytona_daemon_api_client/models/session_execute_response.py +108 -0
  75. daytona_daemon_api_client/models/status.py +43 -0
  76. daytona_daemon_api_client/models/window_info.py +112 -0
  77. daytona_daemon_api_client/models/windows_response.py +108 -0
  78. daytona_daemon_api_client/py.typed +0 -0
  79. daytona_daemon_api_client/rest.py +258 -0
  80. daytona_toolbox_api_client/__init__.py +102 -0
  81. daytona_toolbox_api_client/api/__init__.py +11 -0
  82. daytona_toolbox_api_client/api/computer_use_api.py +6011 -0
  83. daytona_toolbox_api_client/api/file_system_api.py +3310 -0
  84. daytona_toolbox_api_client/api/git_api.py +2970 -0
  85. daytona_toolbox_api_client/api/info_api.py +528 -0
  86. daytona_toolbox_api_client/api/lsp_api.py +1972 -0
  87. daytona_toolbox_api_client/api/port_api.py +544 -0
  88. daytona_toolbox_api_client/api/process_api.py +2200 -0
  89. daytona_toolbox_api_client/api_client.py +797 -0
  90. daytona_toolbox_api_client/api_response.py +21 -0
  91. daytona_toolbox_api_client/configuration.py +572 -0
  92. daytona_toolbox_api_client/exceptions.py +216 -0
  93. daytona_toolbox_api_client/models/__init__.py +79 -0
  94. daytona_toolbox_api_client/models/command.py +104 -0
  95. daytona_toolbox_api_client/models/completion_context.py +102 -0
  96. daytona_toolbox_api_client/models/completion_item.py +112 -0
  97. daytona_toolbox_api_client/models/completion_list.py +110 -0
  98. daytona_toolbox_api_client/models/computer_use_start_response.py +115 -0
  99. daytona_toolbox_api_client/models/computer_use_status_response.py +100 -0
  100. daytona_toolbox_api_client/models/computer_use_stop_response.py +115 -0
  101. daytona_toolbox_api_client/models/create_session_request.py +100 -0
  102. daytona_toolbox_api_client/models/display_info.py +110 -0
  103. daytona_toolbox_api_client/models/display_info_response.py +108 -0
  104. daytona_toolbox_api_client/models/execute_request.py +104 -0
  105. daytona_toolbox_api_client/models/execute_response.py +102 -0
  106. daytona_toolbox_api_client/models/file_info.py +114 -0
  107. daytona_toolbox_api_client/models/file_status.py +107 -0
  108. daytona_toolbox_api_client/models/git_add_request.py +102 -0
  109. daytona_toolbox_api_client/models/git_branch_request.py +102 -0
  110. daytona_toolbox_api_client/models/git_checkout_request.py +102 -0
  111. daytona_toolbox_api_client/models/git_clone_request.py +110 -0
  112. daytona_toolbox_api_client/models/git_commit_info.py +108 -0
  113. daytona_toolbox_api_client/models/git_commit_request.py +108 -0
  114. daytona_toolbox_api_client/models/git_commit_response.py +100 -0
  115. daytona_toolbox_api_client/models/git_git_delete_branch_request.py +102 -0
  116. daytona_toolbox_api_client/models/git_repo_request.py +104 -0
  117. daytona_toolbox_api_client/models/git_status.py +116 -0
  118. daytona_toolbox_api_client/models/is_port_in_use_response.py +100 -0
  119. daytona_toolbox_api_client/models/keyboard_hotkey_request.py +100 -0
  120. daytona_toolbox_api_client/models/keyboard_press_request.py +102 -0
  121. daytona_toolbox_api_client/models/keyboard_type_request.py +102 -0
  122. daytona_toolbox_api_client/models/list_branch_response.py +100 -0
  123. daytona_toolbox_api_client/models/lsp_completion_params.py +116 -0
  124. daytona_toolbox_api_client/models/lsp_document_request.py +104 -0
  125. daytona_toolbox_api_client/models/lsp_location.py +106 -0
  126. daytona_toolbox_api_client/models/lsp_position.py +102 -0
  127. daytona_toolbox_api_client/models/lsp_range.py +109 -0
  128. daytona_toolbox_api_client/models/lsp_server_request.py +102 -0
  129. daytona_toolbox_api_client/models/lsp_symbol.py +108 -0
  130. daytona_toolbox_api_client/models/match.py +104 -0
  131. daytona_toolbox_api_client/models/mouse_click_request.py +106 -0
  132. daytona_toolbox_api_client/models/mouse_click_response.py +102 -0
  133. daytona_toolbox_api_client/models/mouse_drag_request.py +108 -0
  134. daytona_toolbox_api_client/models/mouse_drag_response.py +102 -0
  135. daytona_toolbox_api_client/models/mouse_move_request.py +102 -0
  136. daytona_toolbox_api_client/models/mouse_position_response.py +102 -0
  137. daytona_toolbox_api_client/models/mouse_scroll_request.py +106 -0
  138. daytona_toolbox_api_client/models/port_list.py +100 -0
  139. daytona_toolbox_api_client/models/position.py +102 -0
  140. daytona_toolbox_api_client/models/process_errors_response.py +102 -0
  141. daytona_toolbox_api_client/models/process_logs_response.py +102 -0
  142. daytona_toolbox_api_client/models/process_restart_response.py +102 -0
  143. daytona_toolbox_api_client/models/process_status.py +106 -0
  144. daytona_toolbox_api_client/models/process_status_response.py +102 -0
  145. daytona_toolbox_api_client/models/project_dir_response.py +100 -0
  146. daytona_toolbox_api_client/models/replace_request.py +104 -0
  147. daytona_toolbox_api_client/models/replace_result.py +104 -0
  148. daytona_toolbox_api_client/models/screenshot_response.py +108 -0
  149. daytona_toolbox_api_client/models/scroll_response.py +100 -0
  150. daytona_toolbox_api_client/models/search_files_response.py +100 -0
  151. daytona_toolbox_api_client/models/session.py +110 -0
  152. daytona_toolbox_api_client/models/session_execute_request.py +104 -0
  153. daytona_toolbox_api_client/models/session_execute_response.py +108 -0
  154. daytona_toolbox_api_client/models/status.py +43 -0
  155. daytona_toolbox_api_client/models/window_info.py +112 -0
  156. daytona_toolbox_api_client/models/windows_response.py +108 -0
  157. daytona_toolbox_api_client/py.typed +0 -0
  158. daytona_toolbox_api_client/rest.py +258 -0
  159. daytona_toolbox_api_client-0.102.0rc2.dist-info/METADATA +25 -0
  160. daytona_toolbox_api_client-0.102.0rc2.dist-info/RECORD +163 -0
  161. daytona_toolbox_api_client-0.102.0rc2.dist-info/WHEEL +5 -0
  162. daytona_toolbox_api_client-0.102.0rc2.dist-info/licenses/LICENSE +190 -0
  163. daytona_toolbox_api_client-0.102.0rc2.dist-info/top_level.txt +2 -0
@@ -0,0 +1,1972 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Daytona Daemon API
5
+
6
+ Daytona Daemon API
7
+
8
+ The version of the OpenAPI document: v0.0.0-dev
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictStr
20
+ from typing import List
21
+ from typing_extensions import Annotated
22
+ from daytona_toolbox_api_client.models.completion_list import CompletionList
23
+ from daytona_toolbox_api_client.models.lsp_completion_params import LspCompletionParams
24
+ from daytona_toolbox_api_client.models.lsp_document_request import LspDocumentRequest
25
+ from daytona_toolbox_api_client.models.lsp_server_request import LspServerRequest
26
+ from daytona_toolbox_api_client.models.lsp_symbol import LspSymbol
27
+
28
+ from daytona_toolbox_api_client.api_client import ApiClient, RequestSerialized
29
+ from daytona_toolbox_api_client.api_response import ApiResponse
30
+ from daytona_toolbox_api_client.rest import RESTResponseType
31
+
32
+
33
+ class LspApi:
34
+ """NOTE: This class is auto generated by OpenAPI Generator
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+ """
39
+
40
+ def __init__(self, api_client=None) -> None:
41
+ if api_client is None:
42
+ api_client = ApiClient.get_default()
43
+ self.api_client = api_client
44
+
45
+
46
+ @validate_call
47
+ def completions(
48
+ self,
49
+ request: Annotated[LspCompletionParams, Field(description="Completion request")],
50
+ _request_timeout: Union[
51
+ None,
52
+ Annotated[StrictFloat, Field(gt=0)],
53
+ Tuple[
54
+ Annotated[StrictFloat, Field(gt=0)],
55
+ Annotated[StrictFloat, Field(gt=0)]
56
+ ]
57
+ ] = None,
58
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
59
+ _content_type: Optional[StrictStr] = None,
60
+ _headers: Optional[Dict[StrictStr, Any]] = None,
61
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
62
+ ) -> CompletionList:
63
+ """Get code completions
64
+
65
+ Get code completion suggestions from the LSP server
66
+
67
+ :param request: Completion request (required)
68
+ :type request: LspCompletionParams
69
+ :param _request_timeout: timeout setting for this request. If one
70
+ number provided, it will be total request
71
+ timeout. It can also be a pair (tuple) of
72
+ (connection, read) timeouts.
73
+ :type _request_timeout: int, tuple(int, int), optional
74
+ :param _request_auth: set to override the auth_settings for an a single
75
+ request; this effectively ignores the
76
+ authentication in the spec for a single request.
77
+ :type _request_auth: dict, optional
78
+ :param _content_type: force content-type for the request.
79
+ :type _content_type: str, Optional
80
+ :param _headers: set to override the headers for a single
81
+ request; this effectively ignores the headers
82
+ in the spec for a single request.
83
+ :type _headers: dict, optional
84
+ :param _host_index: set to override the host_index for a single
85
+ request; this effectively ignores the host_index
86
+ in the spec for a single request.
87
+ :type _host_index: int, optional
88
+ :return: Returns the result object.
89
+ """ # noqa: E501
90
+
91
+ _param = self._completions_serialize(
92
+ request=request,
93
+ _request_auth=_request_auth,
94
+ _content_type=_content_type,
95
+ _headers=_headers,
96
+ _host_index=_host_index
97
+ )
98
+
99
+ _response_types_map: Dict[str, Optional[str]] = {
100
+ '200': "CompletionList",
101
+ }
102
+ response_data = self.api_client.call_api(
103
+ *_param,
104
+ _request_timeout=_request_timeout
105
+ )
106
+ response_data.read()
107
+ return self.api_client.response_deserialize(
108
+ response_data=response_data,
109
+ response_types_map=_response_types_map,
110
+ ).data
111
+
112
+
113
+ @validate_call
114
+ def completions_with_http_info(
115
+ self,
116
+ request: Annotated[LspCompletionParams, Field(description="Completion request")],
117
+ _request_timeout: Union[
118
+ None,
119
+ Annotated[StrictFloat, Field(gt=0)],
120
+ Tuple[
121
+ Annotated[StrictFloat, Field(gt=0)],
122
+ Annotated[StrictFloat, Field(gt=0)]
123
+ ]
124
+ ] = None,
125
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
126
+ _content_type: Optional[StrictStr] = None,
127
+ _headers: Optional[Dict[StrictStr, Any]] = None,
128
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
129
+ ) -> ApiResponse[CompletionList]:
130
+ """Get code completions
131
+
132
+ Get code completion suggestions from the LSP server
133
+
134
+ :param request: Completion request (required)
135
+ :type request: LspCompletionParams
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._completions_serialize(
159
+ request=request,
160
+ _request_auth=_request_auth,
161
+ _content_type=_content_type,
162
+ _headers=_headers,
163
+ _host_index=_host_index
164
+ )
165
+
166
+ _response_types_map: Dict[str, Optional[str]] = {
167
+ '200': "CompletionList",
168
+ }
169
+ response_data = self.api_client.call_api(
170
+ *_param,
171
+ _request_timeout=_request_timeout
172
+ )
173
+ response_data.read()
174
+ return self.api_client.response_deserialize(
175
+ response_data=response_data,
176
+ response_types_map=_response_types_map,
177
+ )
178
+
179
+
180
+ @validate_call
181
+ def completions_without_preload_content(
182
+ self,
183
+ request: Annotated[LspCompletionParams, Field(description="Completion request")],
184
+ _request_timeout: Union[
185
+ None,
186
+ Annotated[StrictFloat, Field(gt=0)],
187
+ Tuple[
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Annotated[StrictFloat, Field(gt=0)]
190
+ ]
191
+ ] = None,
192
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
193
+ _content_type: Optional[StrictStr] = None,
194
+ _headers: Optional[Dict[StrictStr, Any]] = None,
195
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
196
+ ) -> RESTResponseType:
197
+ """Get code completions
198
+
199
+ Get code completion suggestions from the LSP server
200
+
201
+ :param request: Completion request (required)
202
+ :type request: LspCompletionParams
203
+ :param _request_timeout: timeout setting for this request. If one
204
+ number provided, it will be total request
205
+ timeout. It can also be a pair (tuple) of
206
+ (connection, read) timeouts.
207
+ :type _request_timeout: int, tuple(int, int), optional
208
+ :param _request_auth: set to override the auth_settings for an a single
209
+ request; this effectively ignores the
210
+ authentication in the spec for a single request.
211
+ :type _request_auth: dict, optional
212
+ :param _content_type: force content-type for the request.
213
+ :type _content_type: str, Optional
214
+ :param _headers: set to override the headers for a single
215
+ request; this effectively ignores the headers
216
+ in the spec for a single request.
217
+ :type _headers: dict, optional
218
+ :param _host_index: set to override the host_index for a single
219
+ request; this effectively ignores the host_index
220
+ in the spec for a single request.
221
+ :type _host_index: int, optional
222
+ :return: Returns the result object.
223
+ """ # noqa: E501
224
+
225
+ _param = self._completions_serialize(
226
+ request=request,
227
+ _request_auth=_request_auth,
228
+ _content_type=_content_type,
229
+ _headers=_headers,
230
+ _host_index=_host_index
231
+ )
232
+
233
+ _response_types_map: Dict[str, Optional[str]] = {
234
+ '200': "CompletionList",
235
+ }
236
+ response_data = self.api_client.call_api(
237
+ *_param,
238
+ _request_timeout=_request_timeout
239
+ )
240
+ return response_data.response
241
+
242
+
243
+ def _completions_serialize(
244
+ self,
245
+ request,
246
+ _request_auth,
247
+ _content_type,
248
+ _headers,
249
+ _host_index,
250
+ ) -> RequestSerialized:
251
+
252
+ _host = None
253
+
254
+ _collection_formats: Dict[str, str] = {
255
+ }
256
+
257
+ _path_params: Dict[str, str] = {}
258
+ _query_params: List[Tuple[str, str]] = []
259
+ _header_params: Dict[str, Optional[str]] = _headers or {}
260
+ _form_params: List[Tuple[str, str]] = []
261
+ _files: Dict[
262
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
263
+ ] = {}
264
+ _body_params: Optional[bytes] = None
265
+
266
+ # process the path parameters
267
+ # process the query parameters
268
+ # process the header parameters
269
+ # process the form parameters
270
+ # process the body parameter
271
+ if request is not None:
272
+ _body_params = request
273
+
274
+
275
+ # set the HTTP header `Accept`
276
+ if 'Accept' not in _header_params:
277
+ _header_params['Accept'] = self.api_client.select_header_accept(
278
+ [
279
+ 'application/json'
280
+ ]
281
+ )
282
+
283
+ # set the HTTP header `Content-Type`
284
+ if _content_type:
285
+ _header_params['Content-Type'] = _content_type
286
+ else:
287
+ _default_content_type = (
288
+ self.api_client.select_header_content_type(
289
+ [
290
+ 'application/json'
291
+ ]
292
+ )
293
+ )
294
+ if _default_content_type is not None:
295
+ _header_params['Content-Type'] = _default_content_type
296
+
297
+ # authentication setting
298
+ _auth_settings: List[str] = [
299
+ ]
300
+
301
+ return self.api_client.param_serialize(
302
+ method='POST',
303
+ resource_path='/lsp/completions',
304
+ path_params=_path_params,
305
+ query_params=_query_params,
306
+ header_params=_header_params,
307
+ body=_body_params,
308
+ post_params=_form_params,
309
+ files=_files,
310
+ auth_settings=_auth_settings,
311
+ collection_formats=_collection_formats,
312
+ _host=_host,
313
+ _request_auth=_request_auth
314
+ )
315
+
316
+
317
+
318
+
319
+ @validate_call
320
+ def did_close(
321
+ self,
322
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
323
+ _request_timeout: Union[
324
+ None,
325
+ Annotated[StrictFloat, Field(gt=0)],
326
+ Tuple[
327
+ Annotated[StrictFloat, Field(gt=0)],
328
+ Annotated[StrictFloat, Field(gt=0)]
329
+ ]
330
+ ] = None,
331
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
332
+ _content_type: Optional[StrictStr] = None,
333
+ _headers: Optional[Dict[StrictStr, Any]] = None,
334
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
335
+ ) -> None:
336
+ """Notify document closed
337
+
338
+ Notify the LSP server that a document has been closed
339
+
340
+ :param request: Document request (required)
341
+ :type request: LspDocumentRequest
342
+ :param _request_timeout: timeout setting for this request. If one
343
+ number provided, it will be total request
344
+ timeout. It can also be a pair (tuple) of
345
+ (connection, read) timeouts.
346
+ :type _request_timeout: int, tuple(int, int), optional
347
+ :param _request_auth: set to override the auth_settings for an a single
348
+ request; this effectively ignores the
349
+ authentication in the spec for a single request.
350
+ :type _request_auth: dict, optional
351
+ :param _content_type: force content-type for the request.
352
+ :type _content_type: str, Optional
353
+ :param _headers: set to override the headers for a single
354
+ request; this effectively ignores the headers
355
+ in the spec for a single request.
356
+ :type _headers: dict, optional
357
+ :param _host_index: set to override the host_index for a single
358
+ request; this effectively ignores the host_index
359
+ in the spec for a single request.
360
+ :type _host_index: int, optional
361
+ :return: Returns the result object.
362
+ """ # noqa: E501
363
+
364
+ _param = self._did_close_serialize(
365
+ request=request,
366
+ _request_auth=_request_auth,
367
+ _content_type=_content_type,
368
+ _headers=_headers,
369
+ _host_index=_host_index
370
+ )
371
+
372
+ _response_types_map: Dict[str, Optional[str]] = {
373
+ '200': None,
374
+ }
375
+ response_data = self.api_client.call_api(
376
+ *_param,
377
+ _request_timeout=_request_timeout
378
+ )
379
+ response_data.read()
380
+ return self.api_client.response_deserialize(
381
+ response_data=response_data,
382
+ response_types_map=_response_types_map,
383
+ ).data
384
+
385
+
386
+ @validate_call
387
+ def did_close_with_http_info(
388
+ self,
389
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
390
+ _request_timeout: Union[
391
+ None,
392
+ Annotated[StrictFloat, Field(gt=0)],
393
+ Tuple[
394
+ Annotated[StrictFloat, Field(gt=0)],
395
+ Annotated[StrictFloat, Field(gt=0)]
396
+ ]
397
+ ] = None,
398
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
399
+ _content_type: Optional[StrictStr] = None,
400
+ _headers: Optional[Dict[StrictStr, Any]] = None,
401
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
402
+ ) -> ApiResponse[None]:
403
+ """Notify document closed
404
+
405
+ Notify the LSP server that a document has been closed
406
+
407
+ :param request: Document request (required)
408
+ :type request: LspDocumentRequest
409
+ :param _request_timeout: timeout setting for this request. If one
410
+ number provided, it will be total request
411
+ timeout. It can also be a pair (tuple) of
412
+ (connection, read) timeouts.
413
+ :type _request_timeout: int, tuple(int, int), optional
414
+ :param _request_auth: set to override the auth_settings for an a single
415
+ request; this effectively ignores the
416
+ authentication in the spec for a single request.
417
+ :type _request_auth: dict, optional
418
+ :param _content_type: force content-type for the request.
419
+ :type _content_type: str, Optional
420
+ :param _headers: set to override the headers for a single
421
+ request; this effectively ignores the headers
422
+ in the spec for a single request.
423
+ :type _headers: dict, optional
424
+ :param _host_index: set to override the host_index for a single
425
+ request; this effectively ignores the host_index
426
+ in the spec for a single request.
427
+ :type _host_index: int, optional
428
+ :return: Returns the result object.
429
+ """ # noqa: E501
430
+
431
+ _param = self._did_close_serialize(
432
+ request=request,
433
+ _request_auth=_request_auth,
434
+ _content_type=_content_type,
435
+ _headers=_headers,
436
+ _host_index=_host_index
437
+ )
438
+
439
+ _response_types_map: Dict[str, Optional[str]] = {
440
+ '200': None,
441
+ }
442
+ response_data = self.api_client.call_api(
443
+ *_param,
444
+ _request_timeout=_request_timeout
445
+ )
446
+ response_data.read()
447
+ return self.api_client.response_deserialize(
448
+ response_data=response_data,
449
+ response_types_map=_response_types_map,
450
+ )
451
+
452
+
453
+ @validate_call
454
+ def did_close_without_preload_content(
455
+ self,
456
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
457
+ _request_timeout: Union[
458
+ None,
459
+ Annotated[StrictFloat, Field(gt=0)],
460
+ Tuple[
461
+ Annotated[StrictFloat, Field(gt=0)],
462
+ Annotated[StrictFloat, Field(gt=0)]
463
+ ]
464
+ ] = None,
465
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
466
+ _content_type: Optional[StrictStr] = None,
467
+ _headers: Optional[Dict[StrictStr, Any]] = None,
468
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
469
+ ) -> RESTResponseType:
470
+ """Notify document closed
471
+
472
+ Notify the LSP server that a document has been closed
473
+
474
+ :param request: Document request (required)
475
+ :type request: LspDocumentRequest
476
+ :param _request_timeout: timeout setting for this request. If one
477
+ number provided, it will be total request
478
+ timeout. It can also be a pair (tuple) of
479
+ (connection, read) timeouts.
480
+ :type _request_timeout: int, tuple(int, int), optional
481
+ :param _request_auth: set to override the auth_settings for an a single
482
+ request; this effectively ignores the
483
+ authentication in the spec for a single request.
484
+ :type _request_auth: dict, optional
485
+ :param _content_type: force content-type for the request.
486
+ :type _content_type: str, Optional
487
+ :param _headers: set to override the headers for a single
488
+ request; this effectively ignores the headers
489
+ in the spec for a single request.
490
+ :type _headers: dict, optional
491
+ :param _host_index: set to override the host_index for a single
492
+ request; this effectively ignores the host_index
493
+ in the spec for a single request.
494
+ :type _host_index: int, optional
495
+ :return: Returns the result object.
496
+ """ # noqa: E501
497
+
498
+ _param = self._did_close_serialize(
499
+ request=request,
500
+ _request_auth=_request_auth,
501
+ _content_type=_content_type,
502
+ _headers=_headers,
503
+ _host_index=_host_index
504
+ )
505
+
506
+ _response_types_map: Dict[str, Optional[str]] = {
507
+ '200': None,
508
+ }
509
+ response_data = self.api_client.call_api(
510
+ *_param,
511
+ _request_timeout=_request_timeout
512
+ )
513
+ return response_data.response
514
+
515
+
516
+ def _did_close_serialize(
517
+ self,
518
+ request,
519
+ _request_auth,
520
+ _content_type,
521
+ _headers,
522
+ _host_index,
523
+ ) -> RequestSerialized:
524
+
525
+ _host = None
526
+
527
+ _collection_formats: Dict[str, str] = {
528
+ }
529
+
530
+ _path_params: Dict[str, str] = {}
531
+ _query_params: List[Tuple[str, str]] = []
532
+ _header_params: Dict[str, Optional[str]] = _headers or {}
533
+ _form_params: List[Tuple[str, str]] = []
534
+ _files: Dict[
535
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
536
+ ] = {}
537
+ _body_params: Optional[bytes] = None
538
+
539
+ # process the path parameters
540
+ # process the query parameters
541
+ # process the header parameters
542
+ # process the form parameters
543
+ # process the body parameter
544
+ if request is not None:
545
+ _body_params = request
546
+
547
+
548
+
549
+ # set the HTTP header `Content-Type`
550
+ if _content_type:
551
+ _header_params['Content-Type'] = _content_type
552
+ else:
553
+ _default_content_type = (
554
+ self.api_client.select_header_content_type(
555
+ [
556
+ 'application/json'
557
+ ]
558
+ )
559
+ )
560
+ if _default_content_type is not None:
561
+ _header_params['Content-Type'] = _default_content_type
562
+
563
+ # authentication setting
564
+ _auth_settings: List[str] = [
565
+ ]
566
+
567
+ return self.api_client.param_serialize(
568
+ method='POST',
569
+ resource_path='/lsp/did-close',
570
+ path_params=_path_params,
571
+ query_params=_query_params,
572
+ header_params=_header_params,
573
+ body=_body_params,
574
+ post_params=_form_params,
575
+ files=_files,
576
+ auth_settings=_auth_settings,
577
+ collection_formats=_collection_formats,
578
+ _host=_host,
579
+ _request_auth=_request_auth
580
+ )
581
+
582
+
583
+
584
+
585
+ @validate_call
586
+ def did_open(
587
+ self,
588
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
589
+ _request_timeout: Union[
590
+ None,
591
+ Annotated[StrictFloat, Field(gt=0)],
592
+ Tuple[
593
+ Annotated[StrictFloat, Field(gt=0)],
594
+ Annotated[StrictFloat, Field(gt=0)]
595
+ ]
596
+ ] = None,
597
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
598
+ _content_type: Optional[StrictStr] = None,
599
+ _headers: Optional[Dict[StrictStr, Any]] = None,
600
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
601
+ ) -> None:
602
+ """Notify document opened
603
+
604
+ Notify the LSP server that a document has been opened
605
+
606
+ :param request: Document request (required)
607
+ :type request: LspDocumentRequest
608
+ :param _request_timeout: timeout setting for this request. If one
609
+ number provided, it will be total request
610
+ timeout. It can also be a pair (tuple) of
611
+ (connection, read) timeouts.
612
+ :type _request_timeout: int, tuple(int, int), optional
613
+ :param _request_auth: set to override the auth_settings for an a single
614
+ request; this effectively ignores the
615
+ authentication in the spec for a single request.
616
+ :type _request_auth: dict, optional
617
+ :param _content_type: force content-type for the request.
618
+ :type _content_type: str, Optional
619
+ :param _headers: set to override the headers for a single
620
+ request; this effectively ignores the headers
621
+ in the spec for a single request.
622
+ :type _headers: dict, optional
623
+ :param _host_index: set to override the host_index for a single
624
+ request; this effectively ignores the host_index
625
+ in the spec for a single request.
626
+ :type _host_index: int, optional
627
+ :return: Returns the result object.
628
+ """ # noqa: E501
629
+
630
+ _param = self._did_open_serialize(
631
+ request=request,
632
+ _request_auth=_request_auth,
633
+ _content_type=_content_type,
634
+ _headers=_headers,
635
+ _host_index=_host_index
636
+ )
637
+
638
+ _response_types_map: Dict[str, Optional[str]] = {
639
+ '200': None,
640
+ }
641
+ response_data = self.api_client.call_api(
642
+ *_param,
643
+ _request_timeout=_request_timeout
644
+ )
645
+ response_data.read()
646
+ return self.api_client.response_deserialize(
647
+ response_data=response_data,
648
+ response_types_map=_response_types_map,
649
+ ).data
650
+
651
+
652
+ @validate_call
653
+ def did_open_with_http_info(
654
+ self,
655
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
656
+ _request_timeout: Union[
657
+ None,
658
+ Annotated[StrictFloat, Field(gt=0)],
659
+ Tuple[
660
+ Annotated[StrictFloat, Field(gt=0)],
661
+ Annotated[StrictFloat, Field(gt=0)]
662
+ ]
663
+ ] = None,
664
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
665
+ _content_type: Optional[StrictStr] = None,
666
+ _headers: Optional[Dict[StrictStr, Any]] = None,
667
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
668
+ ) -> ApiResponse[None]:
669
+ """Notify document opened
670
+
671
+ Notify the LSP server that a document has been opened
672
+
673
+ :param request: Document request (required)
674
+ :type request: LspDocumentRequest
675
+ :param _request_timeout: timeout setting for this request. If one
676
+ number provided, it will be total request
677
+ timeout. It can also be a pair (tuple) of
678
+ (connection, read) timeouts.
679
+ :type _request_timeout: int, tuple(int, int), optional
680
+ :param _request_auth: set to override the auth_settings for an a single
681
+ request; this effectively ignores the
682
+ authentication in the spec for a single request.
683
+ :type _request_auth: dict, optional
684
+ :param _content_type: force content-type for the request.
685
+ :type _content_type: str, Optional
686
+ :param _headers: set to override the headers for a single
687
+ request; this effectively ignores the headers
688
+ in the spec for a single request.
689
+ :type _headers: dict, optional
690
+ :param _host_index: set to override the host_index for a single
691
+ request; this effectively ignores the host_index
692
+ in the spec for a single request.
693
+ :type _host_index: int, optional
694
+ :return: Returns the result object.
695
+ """ # noqa: E501
696
+
697
+ _param = self._did_open_serialize(
698
+ request=request,
699
+ _request_auth=_request_auth,
700
+ _content_type=_content_type,
701
+ _headers=_headers,
702
+ _host_index=_host_index
703
+ )
704
+
705
+ _response_types_map: Dict[str, Optional[str]] = {
706
+ '200': None,
707
+ }
708
+ response_data = self.api_client.call_api(
709
+ *_param,
710
+ _request_timeout=_request_timeout
711
+ )
712
+ response_data.read()
713
+ return self.api_client.response_deserialize(
714
+ response_data=response_data,
715
+ response_types_map=_response_types_map,
716
+ )
717
+
718
+
719
+ @validate_call
720
+ def did_open_without_preload_content(
721
+ self,
722
+ request: Annotated[LspDocumentRequest, Field(description="Document request")],
723
+ _request_timeout: Union[
724
+ None,
725
+ Annotated[StrictFloat, Field(gt=0)],
726
+ Tuple[
727
+ Annotated[StrictFloat, Field(gt=0)],
728
+ Annotated[StrictFloat, Field(gt=0)]
729
+ ]
730
+ ] = None,
731
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
732
+ _content_type: Optional[StrictStr] = None,
733
+ _headers: Optional[Dict[StrictStr, Any]] = None,
734
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
735
+ ) -> RESTResponseType:
736
+ """Notify document opened
737
+
738
+ Notify the LSP server that a document has been opened
739
+
740
+ :param request: Document request (required)
741
+ :type request: LspDocumentRequest
742
+ :param _request_timeout: timeout setting for this request. If one
743
+ number provided, it will be total request
744
+ timeout. It can also be a pair (tuple) of
745
+ (connection, read) timeouts.
746
+ :type _request_timeout: int, tuple(int, int), optional
747
+ :param _request_auth: set to override the auth_settings for an a single
748
+ request; this effectively ignores the
749
+ authentication in the spec for a single request.
750
+ :type _request_auth: dict, optional
751
+ :param _content_type: force content-type for the request.
752
+ :type _content_type: str, Optional
753
+ :param _headers: set to override the headers for a single
754
+ request; this effectively ignores the headers
755
+ in the spec for a single request.
756
+ :type _headers: dict, optional
757
+ :param _host_index: set to override the host_index for a single
758
+ request; this effectively ignores the host_index
759
+ in the spec for a single request.
760
+ :type _host_index: int, optional
761
+ :return: Returns the result object.
762
+ """ # noqa: E501
763
+
764
+ _param = self._did_open_serialize(
765
+ request=request,
766
+ _request_auth=_request_auth,
767
+ _content_type=_content_type,
768
+ _headers=_headers,
769
+ _host_index=_host_index
770
+ )
771
+
772
+ _response_types_map: Dict[str, Optional[str]] = {
773
+ '200': None,
774
+ }
775
+ response_data = self.api_client.call_api(
776
+ *_param,
777
+ _request_timeout=_request_timeout
778
+ )
779
+ return response_data.response
780
+
781
+
782
+ def _did_open_serialize(
783
+ self,
784
+ request,
785
+ _request_auth,
786
+ _content_type,
787
+ _headers,
788
+ _host_index,
789
+ ) -> RequestSerialized:
790
+
791
+ _host = None
792
+
793
+ _collection_formats: Dict[str, str] = {
794
+ }
795
+
796
+ _path_params: Dict[str, str] = {}
797
+ _query_params: List[Tuple[str, str]] = []
798
+ _header_params: Dict[str, Optional[str]] = _headers or {}
799
+ _form_params: List[Tuple[str, str]] = []
800
+ _files: Dict[
801
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
802
+ ] = {}
803
+ _body_params: Optional[bytes] = None
804
+
805
+ # process the path parameters
806
+ # process the query parameters
807
+ # process the header parameters
808
+ # process the form parameters
809
+ # process the body parameter
810
+ if request is not None:
811
+ _body_params = request
812
+
813
+
814
+
815
+ # set the HTTP header `Content-Type`
816
+ if _content_type:
817
+ _header_params['Content-Type'] = _content_type
818
+ else:
819
+ _default_content_type = (
820
+ self.api_client.select_header_content_type(
821
+ [
822
+ 'application/json'
823
+ ]
824
+ )
825
+ )
826
+ if _default_content_type is not None:
827
+ _header_params['Content-Type'] = _default_content_type
828
+
829
+ # authentication setting
830
+ _auth_settings: List[str] = [
831
+ ]
832
+
833
+ return self.api_client.param_serialize(
834
+ method='POST',
835
+ resource_path='/lsp/did-open',
836
+ path_params=_path_params,
837
+ query_params=_query_params,
838
+ header_params=_header_params,
839
+ body=_body_params,
840
+ post_params=_form_params,
841
+ files=_files,
842
+ auth_settings=_auth_settings,
843
+ collection_formats=_collection_formats,
844
+ _host=_host,
845
+ _request_auth=_request_auth
846
+ )
847
+
848
+
849
+
850
+
851
+ @validate_call
852
+ def document_symbols(
853
+ self,
854
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
855
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
856
+ uri: Annotated[StrictStr, Field(description="Document URI")],
857
+ _request_timeout: Union[
858
+ None,
859
+ Annotated[StrictFloat, Field(gt=0)],
860
+ Tuple[
861
+ Annotated[StrictFloat, Field(gt=0)],
862
+ Annotated[StrictFloat, Field(gt=0)]
863
+ ]
864
+ ] = None,
865
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
866
+ _content_type: Optional[StrictStr] = None,
867
+ _headers: Optional[Dict[StrictStr, Any]] = None,
868
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
869
+ ) -> List[LspSymbol]:
870
+ """Get document symbols
871
+
872
+ Get symbols (functions, classes, etc.) from a document
873
+
874
+ :param language_id: Language ID (e.g., python, typescript) (required)
875
+ :type language_id: str
876
+ :param path_to_project: Path to project (required)
877
+ :type path_to_project: str
878
+ :param uri: Document URI (required)
879
+ :type uri: str
880
+ :param _request_timeout: timeout setting for this request. If one
881
+ number provided, it will be total request
882
+ timeout. It can also be a pair (tuple) of
883
+ (connection, read) timeouts.
884
+ :type _request_timeout: int, tuple(int, int), optional
885
+ :param _request_auth: set to override the auth_settings for an a single
886
+ request; this effectively ignores the
887
+ authentication in the spec for a single request.
888
+ :type _request_auth: dict, optional
889
+ :param _content_type: force content-type for the request.
890
+ :type _content_type: str, Optional
891
+ :param _headers: set to override the headers for a single
892
+ request; this effectively ignores the headers
893
+ in the spec for a single request.
894
+ :type _headers: dict, optional
895
+ :param _host_index: set to override the host_index for a single
896
+ request; this effectively ignores the host_index
897
+ in the spec for a single request.
898
+ :type _host_index: int, optional
899
+ :return: Returns the result object.
900
+ """ # noqa: E501
901
+
902
+ _param = self._document_symbols_serialize(
903
+ language_id=language_id,
904
+ path_to_project=path_to_project,
905
+ uri=uri,
906
+ _request_auth=_request_auth,
907
+ _content_type=_content_type,
908
+ _headers=_headers,
909
+ _host_index=_host_index
910
+ )
911
+
912
+ _response_types_map: Dict[str, Optional[str]] = {
913
+ '200': "List[LspSymbol]",
914
+ }
915
+ response_data = self.api_client.call_api(
916
+ *_param,
917
+ _request_timeout=_request_timeout
918
+ )
919
+ response_data.read()
920
+ return self.api_client.response_deserialize(
921
+ response_data=response_data,
922
+ response_types_map=_response_types_map,
923
+ ).data
924
+
925
+
926
+ @validate_call
927
+ def document_symbols_with_http_info(
928
+ self,
929
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
930
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
931
+ uri: Annotated[StrictStr, Field(description="Document URI")],
932
+ _request_timeout: Union[
933
+ None,
934
+ Annotated[StrictFloat, Field(gt=0)],
935
+ Tuple[
936
+ Annotated[StrictFloat, Field(gt=0)],
937
+ Annotated[StrictFloat, Field(gt=0)]
938
+ ]
939
+ ] = None,
940
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
941
+ _content_type: Optional[StrictStr] = None,
942
+ _headers: Optional[Dict[StrictStr, Any]] = None,
943
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
944
+ ) -> ApiResponse[List[LspSymbol]]:
945
+ """Get document symbols
946
+
947
+ Get symbols (functions, classes, etc.) from a document
948
+
949
+ :param language_id: Language ID (e.g., python, typescript) (required)
950
+ :type language_id: str
951
+ :param path_to_project: Path to project (required)
952
+ :type path_to_project: str
953
+ :param uri: Document URI (required)
954
+ :type uri: str
955
+ :param _request_timeout: timeout setting for this request. If one
956
+ number provided, it will be total request
957
+ timeout. It can also be a pair (tuple) of
958
+ (connection, read) timeouts.
959
+ :type _request_timeout: int, tuple(int, int), optional
960
+ :param _request_auth: set to override the auth_settings for an a single
961
+ request; this effectively ignores the
962
+ authentication in the spec for a single request.
963
+ :type _request_auth: dict, optional
964
+ :param _content_type: force content-type for the request.
965
+ :type _content_type: str, Optional
966
+ :param _headers: set to override the headers for a single
967
+ request; this effectively ignores the headers
968
+ in the spec for a single request.
969
+ :type _headers: dict, optional
970
+ :param _host_index: set to override the host_index for a single
971
+ request; this effectively ignores the host_index
972
+ in the spec for a single request.
973
+ :type _host_index: int, optional
974
+ :return: Returns the result object.
975
+ """ # noqa: E501
976
+
977
+ _param = self._document_symbols_serialize(
978
+ language_id=language_id,
979
+ path_to_project=path_to_project,
980
+ uri=uri,
981
+ _request_auth=_request_auth,
982
+ _content_type=_content_type,
983
+ _headers=_headers,
984
+ _host_index=_host_index
985
+ )
986
+
987
+ _response_types_map: Dict[str, Optional[str]] = {
988
+ '200': "List[LspSymbol]",
989
+ }
990
+ response_data = self.api_client.call_api(
991
+ *_param,
992
+ _request_timeout=_request_timeout
993
+ )
994
+ response_data.read()
995
+ return self.api_client.response_deserialize(
996
+ response_data=response_data,
997
+ response_types_map=_response_types_map,
998
+ )
999
+
1000
+
1001
+ @validate_call
1002
+ def document_symbols_without_preload_content(
1003
+ self,
1004
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
1005
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
1006
+ uri: Annotated[StrictStr, Field(description="Document URI")],
1007
+ _request_timeout: Union[
1008
+ None,
1009
+ Annotated[StrictFloat, Field(gt=0)],
1010
+ Tuple[
1011
+ Annotated[StrictFloat, Field(gt=0)],
1012
+ Annotated[StrictFloat, Field(gt=0)]
1013
+ ]
1014
+ ] = None,
1015
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1016
+ _content_type: Optional[StrictStr] = None,
1017
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1018
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1019
+ ) -> RESTResponseType:
1020
+ """Get document symbols
1021
+
1022
+ Get symbols (functions, classes, etc.) from a document
1023
+
1024
+ :param language_id: Language ID (e.g., python, typescript) (required)
1025
+ :type language_id: str
1026
+ :param path_to_project: Path to project (required)
1027
+ :type path_to_project: str
1028
+ :param uri: Document URI (required)
1029
+ :type uri: str
1030
+ :param _request_timeout: timeout setting for this request. If one
1031
+ number provided, it will be total request
1032
+ timeout. It can also be a pair (tuple) of
1033
+ (connection, read) timeouts.
1034
+ :type _request_timeout: int, tuple(int, int), optional
1035
+ :param _request_auth: set to override the auth_settings for an a single
1036
+ request; this effectively ignores the
1037
+ authentication in the spec for a single request.
1038
+ :type _request_auth: dict, optional
1039
+ :param _content_type: force content-type for the request.
1040
+ :type _content_type: str, Optional
1041
+ :param _headers: set to override the headers for a single
1042
+ request; this effectively ignores the headers
1043
+ in the spec for a single request.
1044
+ :type _headers: dict, optional
1045
+ :param _host_index: set to override the host_index for a single
1046
+ request; this effectively ignores the host_index
1047
+ in the spec for a single request.
1048
+ :type _host_index: int, optional
1049
+ :return: Returns the result object.
1050
+ """ # noqa: E501
1051
+
1052
+ _param = self._document_symbols_serialize(
1053
+ language_id=language_id,
1054
+ path_to_project=path_to_project,
1055
+ uri=uri,
1056
+ _request_auth=_request_auth,
1057
+ _content_type=_content_type,
1058
+ _headers=_headers,
1059
+ _host_index=_host_index
1060
+ )
1061
+
1062
+ _response_types_map: Dict[str, Optional[str]] = {
1063
+ '200': "List[LspSymbol]",
1064
+ }
1065
+ response_data = self.api_client.call_api(
1066
+ *_param,
1067
+ _request_timeout=_request_timeout
1068
+ )
1069
+ return response_data.response
1070
+
1071
+
1072
+ def _document_symbols_serialize(
1073
+ self,
1074
+ language_id,
1075
+ path_to_project,
1076
+ uri,
1077
+ _request_auth,
1078
+ _content_type,
1079
+ _headers,
1080
+ _host_index,
1081
+ ) -> RequestSerialized:
1082
+
1083
+ _host = None
1084
+
1085
+ _collection_formats: Dict[str, str] = {
1086
+ }
1087
+
1088
+ _path_params: Dict[str, str] = {}
1089
+ _query_params: List[Tuple[str, str]] = []
1090
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1091
+ _form_params: List[Tuple[str, str]] = []
1092
+ _files: Dict[
1093
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1094
+ ] = {}
1095
+ _body_params: Optional[bytes] = None
1096
+
1097
+ # process the path parameters
1098
+ # process the query parameters
1099
+ if language_id is not None:
1100
+
1101
+ _query_params.append(('languageId', language_id))
1102
+
1103
+ if path_to_project is not None:
1104
+
1105
+ _query_params.append(('pathToProject', path_to_project))
1106
+
1107
+ if uri is not None:
1108
+
1109
+ _query_params.append(('uri', uri))
1110
+
1111
+ # process the header parameters
1112
+ # process the form parameters
1113
+ # process the body parameter
1114
+
1115
+
1116
+ # set the HTTP header `Accept`
1117
+ if 'Accept' not in _header_params:
1118
+ _header_params['Accept'] = self.api_client.select_header_accept(
1119
+ [
1120
+ 'application/json'
1121
+ ]
1122
+ )
1123
+
1124
+
1125
+ # authentication setting
1126
+ _auth_settings: List[str] = [
1127
+ ]
1128
+
1129
+ return self.api_client.param_serialize(
1130
+ method='GET',
1131
+ resource_path='/lsp/document-symbols',
1132
+ path_params=_path_params,
1133
+ query_params=_query_params,
1134
+ header_params=_header_params,
1135
+ body=_body_params,
1136
+ post_params=_form_params,
1137
+ files=_files,
1138
+ auth_settings=_auth_settings,
1139
+ collection_formats=_collection_formats,
1140
+ _host=_host,
1141
+ _request_auth=_request_auth
1142
+ )
1143
+
1144
+
1145
+
1146
+
1147
+ @validate_call
1148
+ def start(
1149
+ self,
1150
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1151
+ _request_timeout: Union[
1152
+ None,
1153
+ Annotated[StrictFloat, Field(gt=0)],
1154
+ Tuple[
1155
+ Annotated[StrictFloat, Field(gt=0)],
1156
+ Annotated[StrictFloat, Field(gt=0)]
1157
+ ]
1158
+ ] = None,
1159
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1160
+ _content_type: Optional[StrictStr] = None,
1161
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1162
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1163
+ ) -> None:
1164
+ """Start LSP server
1165
+
1166
+ Start a Language Server Protocol server for the specified language
1167
+
1168
+ :param request: LSP server request (required)
1169
+ :type request: LspServerRequest
1170
+ :param _request_timeout: timeout setting for this request. If one
1171
+ number provided, it will be total request
1172
+ timeout. It can also be a pair (tuple) of
1173
+ (connection, read) timeouts.
1174
+ :type _request_timeout: int, tuple(int, int), optional
1175
+ :param _request_auth: set to override the auth_settings for an a single
1176
+ request; this effectively ignores the
1177
+ authentication in the spec for a single request.
1178
+ :type _request_auth: dict, optional
1179
+ :param _content_type: force content-type for the request.
1180
+ :type _content_type: str, Optional
1181
+ :param _headers: set to override the headers for a single
1182
+ request; this effectively ignores the headers
1183
+ in the spec for a single request.
1184
+ :type _headers: dict, optional
1185
+ :param _host_index: set to override the host_index for a single
1186
+ request; this effectively ignores the host_index
1187
+ in the spec for a single request.
1188
+ :type _host_index: int, optional
1189
+ :return: Returns the result object.
1190
+ """ # noqa: E501
1191
+
1192
+ _param = self._start_serialize(
1193
+ request=request,
1194
+ _request_auth=_request_auth,
1195
+ _content_type=_content_type,
1196
+ _headers=_headers,
1197
+ _host_index=_host_index
1198
+ )
1199
+
1200
+ _response_types_map: Dict[str, Optional[str]] = {
1201
+ '200': None,
1202
+ }
1203
+ response_data = self.api_client.call_api(
1204
+ *_param,
1205
+ _request_timeout=_request_timeout
1206
+ )
1207
+ response_data.read()
1208
+ return self.api_client.response_deserialize(
1209
+ response_data=response_data,
1210
+ response_types_map=_response_types_map,
1211
+ ).data
1212
+
1213
+
1214
+ @validate_call
1215
+ def start_with_http_info(
1216
+ self,
1217
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1218
+ _request_timeout: Union[
1219
+ None,
1220
+ Annotated[StrictFloat, Field(gt=0)],
1221
+ Tuple[
1222
+ Annotated[StrictFloat, Field(gt=0)],
1223
+ Annotated[StrictFloat, Field(gt=0)]
1224
+ ]
1225
+ ] = None,
1226
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1227
+ _content_type: Optional[StrictStr] = None,
1228
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1229
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1230
+ ) -> ApiResponse[None]:
1231
+ """Start LSP server
1232
+
1233
+ Start a Language Server Protocol server for the specified language
1234
+
1235
+ :param request: LSP server request (required)
1236
+ :type request: LspServerRequest
1237
+ :param _request_timeout: timeout setting for this request. If one
1238
+ number provided, it will be total request
1239
+ timeout. It can also be a pair (tuple) of
1240
+ (connection, read) timeouts.
1241
+ :type _request_timeout: int, tuple(int, int), optional
1242
+ :param _request_auth: set to override the auth_settings for an a single
1243
+ request; this effectively ignores the
1244
+ authentication in the spec for a single request.
1245
+ :type _request_auth: dict, optional
1246
+ :param _content_type: force content-type for the request.
1247
+ :type _content_type: str, Optional
1248
+ :param _headers: set to override the headers for a single
1249
+ request; this effectively ignores the headers
1250
+ in the spec for a single request.
1251
+ :type _headers: dict, optional
1252
+ :param _host_index: set to override the host_index for a single
1253
+ request; this effectively ignores the host_index
1254
+ in the spec for a single request.
1255
+ :type _host_index: int, optional
1256
+ :return: Returns the result object.
1257
+ """ # noqa: E501
1258
+
1259
+ _param = self._start_serialize(
1260
+ request=request,
1261
+ _request_auth=_request_auth,
1262
+ _content_type=_content_type,
1263
+ _headers=_headers,
1264
+ _host_index=_host_index
1265
+ )
1266
+
1267
+ _response_types_map: Dict[str, Optional[str]] = {
1268
+ '200': None,
1269
+ }
1270
+ response_data = self.api_client.call_api(
1271
+ *_param,
1272
+ _request_timeout=_request_timeout
1273
+ )
1274
+ response_data.read()
1275
+ return self.api_client.response_deserialize(
1276
+ response_data=response_data,
1277
+ response_types_map=_response_types_map,
1278
+ )
1279
+
1280
+
1281
+ @validate_call
1282
+ def start_without_preload_content(
1283
+ self,
1284
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1285
+ _request_timeout: Union[
1286
+ None,
1287
+ Annotated[StrictFloat, Field(gt=0)],
1288
+ Tuple[
1289
+ Annotated[StrictFloat, Field(gt=0)],
1290
+ Annotated[StrictFloat, Field(gt=0)]
1291
+ ]
1292
+ ] = None,
1293
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1294
+ _content_type: Optional[StrictStr] = None,
1295
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1296
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1297
+ ) -> RESTResponseType:
1298
+ """Start LSP server
1299
+
1300
+ Start a Language Server Protocol server for the specified language
1301
+
1302
+ :param request: LSP server request (required)
1303
+ :type request: LspServerRequest
1304
+ :param _request_timeout: timeout setting for this request. If one
1305
+ number provided, it will be total request
1306
+ timeout. It can also be a pair (tuple) of
1307
+ (connection, read) timeouts.
1308
+ :type _request_timeout: int, tuple(int, int), optional
1309
+ :param _request_auth: set to override the auth_settings for an a single
1310
+ request; this effectively ignores the
1311
+ authentication in the spec for a single request.
1312
+ :type _request_auth: dict, optional
1313
+ :param _content_type: force content-type for the request.
1314
+ :type _content_type: str, Optional
1315
+ :param _headers: set to override the headers for a single
1316
+ request; this effectively ignores the headers
1317
+ in the spec for a single request.
1318
+ :type _headers: dict, optional
1319
+ :param _host_index: set to override the host_index for a single
1320
+ request; this effectively ignores the host_index
1321
+ in the spec for a single request.
1322
+ :type _host_index: int, optional
1323
+ :return: Returns the result object.
1324
+ """ # noqa: E501
1325
+
1326
+ _param = self._start_serialize(
1327
+ request=request,
1328
+ _request_auth=_request_auth,
1329
+ _content_type=_content_type,
1330
+ _headers=_headers,
1331
+ _host_index=_host_index
1332
+ )
1333
+
1334
+ _response_types_map: Dict[str, Optional[str]] = {
1335
+ '200': None,
1336
+ }
1337
+ response_data = self.api_client.call_api(
1338
+ *_param,
1339
+ _request_timeout=_request_timeout
1340
+ )
1341
+ return response_data.response
1342
+
1343
+
1344
+ def _start_serialize(
1345
+ self,
1346
+ request,
1347
+ _request_auth,
1348
+ _content_type,
1349
+ _headers,
1350
+ _host_index,
1351
+ ) -> RequestSerialized:
1352
+
1353
+ _host = None
1354
+
1355
+ _collection_formats: Dict[str, str] = {
1356
+ }
1357
+
1358
+ _path_params: Dict[str, str] = {}
1359
+ _query_params: List[Tuple[str, str]] = []
1360
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1361
+ _form_params: List[Tuple[str, str]] = []
1362
+ _files: Dict[
1363
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1364
+ ] = {}
1365
+ _body_params: Optional[bytes] = None
1366
+
1367
+ # process the path parameters
1368
+ # process the query parameters
1369
+ # process the header parameters
1370
+ # process the form parameters
1371
+ # process the body parameter
1372
+ if request is not None:
1373
+ _body_params = request
1374
+
1375
+
1376
+
1377
+ # set the HTTP header `Content-Type`
1378
+ if _content_type:
1379
+ _header_params['Content-Type'] = _content_type
1380
+ else:
1381
+ _default_content_type = (
1382
+ self.api_client.select_header_content_type(
1383
+ [
1384
+ 'application/json'
1385
+ ]
1386
+ )
1387
+ )
1388
+ if _default_content_type is not None:
1389
+ _header_params['Content-Type'] = _default_content_type
1390
+
1391
+ # authentication setting
1392
+ _auth_settings: List[str] = [
1393
+ ]
1394
+
1395
+ return self.api_client.param_serialize(
1396
+ method='POST',
1397
+ resource_path='/lsp/start',
1398
+ path_params=_path_params,
1399
+ query_params=_query_params,
1400
+ header_params=_header_params,
1401
+ body=_body_params,
1402
+ post_params=_form_params,
1403
+ files=_files,
1404
+ auth_settings=_auth_settings,
1405
+ collection_formats=_collection_formats,
1406
+ _host=_host,
1407
+ _request_auth=_request_auth
1408
+ )
1409
+
1410
+
1411
+
1412
+
1413
+ @validate_call
1414
+ def stop(
1415
+ self,
1416
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1417
+ _request_timeout: Union[
1418
+ None,
1419
+ Annotated[StrictFloat, Field(gt=0)],
1420
+ Tuple[
1421
+ Annotated[StrictFloat, Field(gt=0)],
1422
+ Annotated[StrictFloat, Field(gt=0)]
1423
+ ]
1424
+ ] = None,
1425
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1426
+ _content_type: Optional[StrictStr] = None,
1427
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1428
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1429
+ ) -> None:
1430
+ """Stop LSP server
1431
+
1432
+ Stop a Language Server Protocol server
1433
+
1434
+ :param request: LSP server request (required)
1435
+ :type request: LspServerRequest
1436
+ :param _request_timeout: timeout setting for this request. If one
1437
+ number provided, it will be total request
1438
+ timeout. It can also be a pair (tuple) of
1439
+ (connection, read) timeouts.
1440
+ :type _request_timeout: int, tuple(int, int), optional
1441
+ :param _request_auth: set to override the auth_settings for an a single
1442
+ request; this effectively ignores the
1443
+ authentication in the spec for a single request.
1444
+ :type _request_auth: dict, optional
1445
+ :param _content_type: force content-type for the request.
1446
+ :type _content_type: str, Optional
1447
+ :param _headers: set to override the headers for a single
1448
+ request; this effectively ignores the headers
1449
+ in the spec for a single request.
1450
+ :type _headers: dict, optional
1451
+ :param _host_index: set to override the host_index for a single
1452
+ request; this effectively ignores the host_index
1453
+ in the spec for a single request.
1454
+ :type _host_index: int, optional
1455
+ :return: Returns the result object.
1456
+ """ # noqa: E501
1457
+
1458
+ _param = self._stop_serialize(
1459
+ request=request,
1460
+ _request_auth=_request_auth,
1461
+ _content_type=_content_type,
1462
+ _headers=_headers,
1463
+ _host_index=_host_index
1464
+ )
1465
+
1466
+ _response_types_map: Dict[str, Optional[str]] = {
1467
+ '200': None,
1468
+ }
1469
+ response_data = self.api_client.call_api(
1470
+ *_param,
1471
+ _request_timeout=_request_timeout
1472
+ )
1473
+ response_data.read()
1474
+ return self.api_client.response_deserialize(
1475
+ response_data=response_data,
1476
+ response_types_map=_response_types_map,
1477
+ ).data
1478
+
1479
+
1480
+ @validate_call
1481
+ def stop_with_http_info(
1482
+ self,
1483
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1484
+ _request_timeout: Union[
1485
+ None,
1486
+ Annotated[StrictFloat, Field(gt=0)],
1487
+ Tuple[
1488
+ Annotated[StrictFloat, Field(gt=0)],
1489
+ Annotated[StrictFloat, Field(gt=0)]
1490
+ ]
1491
+ ] = None,
1492
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1493
+ _content_type: Optional[StrictStr] = None,
1494
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1495
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1496
+ ) -> ApiResponse[None]:
1497
+ """Stop LSP server
1498
+
1499
+ Stop a Language Server Protocol server
1500
+
1501
+ :param request: LSP server request (required)
1502
+ :type request: LspServerRequest
1503
+ :param _request_timeout: timeout setting for this request. If one
1504
+ number provided, it will be total request
1505
+ timeout. It can also be a pair (tuple) of
1506
+ (connection, read) timeouts.
1507
+ :type _request_timeout: int, tuple(int, int), optional
1508
+ :param _request_auth: set to override the auth_settings for an a single
1509
+ request; this effectively ignores the
1510
+ authentication in the spec for a single request.
1511
+ :type _request_auth: dict, optional
1512
+ :param _content_type: force content-type for the request.
1513
+ :type _content_type: str, Optional
1514
+ :param _headers: set to override the headers for a single
1515
+ request; this effectively ignores the headers
1516
+ in the spec for a single request.
1517
+ :type _headers: dict, optional
1518
+ :param _host_index: set to override the host_index for a single
1519
+ request; this effectively ignores the host_index
1520
+ in the spec for a single request.
1521
+ :type _host_index: int, optional
1522
+ :return: Returns the result object.
1523
+ """ # noqa: E501
1524
+
1525
+ _param = self._stop_serialize(
1526
+ request=request,
1527
+ _request_auth=_request_auth,
1528
+ _content_type=_content_type,
1529
+ _headers=_headers,
1530
+ _host_index=_host_index
1531
+ )
1532
+
1533
+ _response_types_map: Dict[str, Optional[str]] = {
1534
+ '200': None,
1535
+ }
1536
+ response_data = self.api_client.call_api(
1537
+ *_param,
1538
+ _request_timeout=_request_timeout
1539
+ )
1540
+ response_data.read()
1541
+ return self.api_client.response_deserialize(
1542
+ response_data=response_data,
1543
+ response_types_map=_response_types_map,
1544
+ )
1545
+
1546
+
1547
+ @validate_call
1548
+ def stop_without_preload_content(
1549
+ self,
1550
+ request: Annotated[LspServerRequest, Field(description="LSP server request")],
1551
+ _request_timeout: Union[
1552
+ None,
1553
+ Annotated[StrictFloat, Field(gt=0)],
1554
+ Tuple[
1555
+ Annotated[StrictFloat, Field(gt=0)],
1556
+ Annotated[StrictFloat, Field(gt=0)]
1557
+ ]
1558
+ ] = None,
1559
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1560
+ _content_type: Optional[StrictStr] = None,
1561
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1562
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1563
+ ) -> RESTResponseType:
1564
+ """Stop LSP server
1565
+
1566
+ Stop a Language Server Protocol server
1567
+
1568
+ :param request: LSP server request (required)
1569
+ :type request: LspServerRequest
1570
+ :param _request_timeout: timeout setting for this request. If one
1571
+ number provided, it will be total request
1572
+ timeout. It can also be a pair (tuple) of
1573
+ (connection, read) timeouts.
1574
+ :type _request_timeout: int, tuple(int, int), optional
1575
+ :param _request_auth: set to override the auth_settings for an a single
1576
+ request; this effectively ignores the
1577
+ authentication in the spec for a single request.
1578
+ :type _request_auth: dict, optional
1579
+ :param _content_type: force content-type for the request.
1580
+ :type _content_type: str, Optional
1581
+ :param _headers: set to override the headers for a single
1582
+ request; this effectively ignores the headers
1583
+ in the spec for a single request.
1584
+ :type _headers: dict, optional
1585
+ :param _host_index: set to override the host_index for a single
1586
+ request; this effectively ignores the host_index
1587
+ in the spec for a single request.
1588
+ :type _host_index: int, optional
1589
+ :return: Returns the result object.
1590
+ """ # noqa: E501
1591
+
1592
+ _param = self._stop_serialize(
1593
+ request=request,
1594
+ _request_auth=_request_auth,
1595
+ _content_type=_content_type,
1596
+ _headers=_headers,
1597
+ _host_index=_host_index
1598
+ )
1599
+
1600
+ _response_types_map: Dict[str, Optional[str]] = {
1601
+ '200': None,
1602
+ }
1603
+ response_data = self.api_client.call_api(
1604
+ *_param,
1605
+ _request_timeout=_request_timeout
1606
+ )
1607
+ return response_data.response
1608
+
1609
+
1610
+ def _stop_serialize(
1611
+ self,
1612
+ request,
1613
+ _request_auth,
1614
+ _content_type,
1615
+ _headers,
1616
+ _host_index,
1617
+ ) -> RequestSerialized:
1618
+
1619
+ _host = None
1620
+
1621
+ _collection_formats: Dict[str, str] = {
1622
+ }
1623
+
1624
+ _path_params: Dict[str, str] = {}
1625
+ _query_params: List[Tuple[str, str]] = []
1626
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1627
+ _form_params: List[Tuple[str, str]] = []
1628
+ _files: Dict[
1629
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1630
+ ] = {}
1631
+ _body_params: Optional[bytes] = None
1632
+
1633
+ # process the path parameters
1634
+ # process the query parameters
1635
+ # process the header parameters
1636
+ # process the form parameters
1637
+ # process the body parameter
1638
+ if request is not None:
1639
+ _body_params = request
1640
+
1641
+
1642
+
1643
+ # set the HTTP header `Content-Type`
1644
+ if _content_type:
1645
+ _header_params['Content-Type'] = _content_type
1646
+ else:
1647
+ _default_content_type = (
1648
+ self.api_client.select_header_content_type(
1649
+ [
1650
+ 'application/json'
1651
+ ]
1652
+ )
1653
+ )
1654
+ if _default_content_type is not None:
1655
+ _header_params['Content-Type'] = _default_content_type
1656
+
1657
+ # authentication setting
1658
+ _auth_settings: List[str] = [
1659
+ ]
1660
+
1661
+ return self.api_client.param_serialize(
1662
+ method='POST',
1663
+ resource_path='/lsp/stop',
1664
+ path_params=_path_params,
1665
+ query_params=_query_params,
1666
+ header_params=_header_params,
1667
+ body=_body_params,
1668
+ post_params=_form_params,
1669
+ files=_files,
1670
+ auth_settings=_auth_settings,
1671
+ collection_formats=_collection_formats,
1672
+ _host=_host,
1673
+ _request_auth=_request_auth
1674
+ )
1675
+
1676
+
1677
+
1678
+
1679
+ @validate_call
1680
+ def workspace_symbols(
1681
+ self,
1682
+ query: Annotated[StrictStr, Field(description="Search query")],
1683
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
1684
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
1685
+ _request_timeout: Union[
1686
+ None,
1687
+ Annotated[StrictFloat, Field(gt=0)],
1688
+ Tuple[
1689
+ Annotated[StrictFloat, Field(gt=0)],
1690
+ Annotated[StrictFloat, Field(gt=0)]
1691
+ ]
1692
+ ] = None,
1693
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1694
+ _content_type: Optional[StrictStr] = None,
1695
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1696
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1697
+ ) -> List[LspSymbol]:
1698
+ """Get workspace symbols
1699
+
1700
+ Search for symbols across the entire workspace
1701
+
1702
+ :param query: Search query (required)
1703
+ :type query: str
1704
+ :param language_id: Language ID (e.g., python, typescript) (required)
1705
+ :type language_id: str
1706
+ :param path_to_project: Path to project (required)
1707
+ :type path_to_project: str
1708
+ :param _request_timeout: timeout setting for this request. If one
1709
+ number provided, it will be total request
1710
+ timeout. It can also be a pair (tuple) of
1711
+ (connection, read) timeouts.
1712
+ :type _request_timeout: int, tuple(int, int), optional
1713
+ :param _request_auth: set to override the auth_settings for an a single
1714
+ request; this effectively ignores the
1715
+ authentication in the spec for a single request.
1716
+ :type _request_auth: dict, optional
1717
+ :param _content_type: force content-type for the request.
1718
+ :type _content_type: str, Optional
1719
+ :param _headers: set to override the headers for a single
1720
+ request; this effectively ignores the headers
1721
+ in the spec for a single request.
1722
+ :type _headers: dict, optional
1723
+ :param _host_index: set to override the host_index for a single
1724
+ request; this effectively ignores the host_index
1725
+ in the spec for a single request.
1726
+ :type _host_index: int, optional
1727
+ :return: Returns the result object.
1728
+ """ # noqa: E501
1729
+
1730
+ _param = self._workspace_symbols_serialize(
1731
+ query=query,
1732
+ language_id=language_id,
1733
+ path_to_project=path_to_project,
1734
+ _request_auth=_request_auth,
1735
+ _content_type=_content_type,
1736
+ _headers=_headers,
1737
+ _host_index=_host_index
1738
+ )
1739
+
1740
+ _response_types_map: Dict[str, Optional[str]] = {
1741
+ '200': "List[LspSymbol]",
1742
+ }
1743
+ response_data = self.api_client.call_api(
1744
+ *_param,
1745
+ _request_timeout=_request_timeout
1746
+ )
1747
+ response_data.read()
1748
+ return self.api_client.response_deserialize(
1749
+ response_data=response_data,
1750
+ response_types_map=_response_types_map,
1751
+ ).data
1752
+
1753
+
1754
+ @validate_call
1755
+ def workspace_symbols_with_http_info(
1756
+ self,
1757
+ query: Annotated[StrictStr, Field(description="Search query")],
1758
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
1759
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
1760
+ _request_timeout: Union[
1761
+ None,
1762
+ Annotated[StrictFloat, Field(gt=0)],
1763
+ Tuple[
1764
+ Annotated[StrictFloat, Field(gt=0)],
1765
+ Annotated[StrictFloat, Field(gt=0)]
1766
+ ]
1767
+ ] = None,
1768
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1769
+ _content_type: Optional[StrictStr] = None,
1770
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1771
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1772
+ ) -> ApiResponse[List[LspSymbol]]:
1773
+ """Get workspace symbols
1774
+
1775
+ Search for symbols across the entire workspace
1776
+
1777
+ :param query: Search query (required)
1778
+ :type query: str
1779
+ :param language_id: Language ID (e.g., python, typescript) (required)
1780
+ :type language_id: str
1781
+ :param path_to_project: Path to project (required)
1782
+ :type path_to_project: str
1783
+ :param _request_timeout: timeout setting for this request. If one
1784
+ number provided, it will be total request
1785
+ timeout. It can also be a pair (tuple) of
1786
+ (connection, read) timeouts.
1787
+ :type _request_timeout: int, tuple(int, int), optional
1788
+ :param _request_auth: set to override the auth_settings for an a single
1789
+ request; this effectively ignores the
1790
+ authentication in the spec for a single request.
1791
+ :type _request_auth: dict, optional
1792
+ :param _content_type: force content-type for the request.
1793
+ :type _content_type: str, Optional
1794
+ :param _headers: set to override the headers for a single
1795
+ request; this effectively ignores the headers
1796
+ in the spec for a single request.
1797
+ :type _headers: dict, optional
1798
+ :param _host_index: set to override the host_index for a single
1799
+ request; this effectively ignores the host_index
1800
+ in the spec for a single request.
1801
+ :type _host_index: int, optional
1802
+ :return: Returns the result object.
1803
+ """ # noqa: E501
1804
+
1805
+ _param = self._workspace_symbols_serialize(
1806
+ query=query,
1807
+ language_id=language_id,
1808
+ path_to_project=path_to_project,
1809
+ _request_auth=_request_auth,
1810
+ _content_type=_content_type,
1811
+ _headers=_headers,
1812
+ _host_index=_host_index
1813
+ )
1814
+
1815
+ _response_types_map: Dict[str, Optional[str]] = {
1816
+ '200': "List[LspSymbol]",
1817
+ }
1818
+ response_data = self.api_client.call_api(
1819
+ *_param,
1820
+ _request_timeout=_request_timeout
1821
+ )
1822
+ response_data.read()
1823
+ return self.api_client.response_deserialize(
1824
+ response_data=response_data,
1825
+ response_types_map=_response_types_map,
1826
+ )
1827
+
1828
+
1829
+ @validate_call
1830
+ def workspace_symbols_without_preload_content(
1831
+ self,
1832
+ query: Annotated[StrictStr, Field(description="Search query")],
1833
+ language_id: Annotated[StrictStr, Field(description="Language ID (e.g., python, typescript)")],
1834
+ path_to_project: Annotated[StrictStr, Field(description="Path to project")],
1835
+ _request_timeout: Union[
1836
+ None,
1837
+ Annotated[StrictFloat, Field(gt=0)],
1838
+ Tuple[
1839
+ Annotated[StrictFloat, Field(gt=0)],
1840
+ Annotated[StrictFloat, Field(gt=0)]
1841
+ ]
1842
+ ] = None,
1843
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1844
+ _content_type: Optional[StrictStr] = None,
1845
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1846
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1847
+ ) -> RESTResponseType:
1848
+ """Get workspace symbols
1849
+
1850
+ Search for symbols across the entire workspace
1851
+
1852
+ :param query: Search query (required)
1853
+ :type query: str
1854
+ :param language_id: Language ID (e.g., python, typescript) (required)
1855
+ :type language_id: str
1856
+ :param path_to_project: Path to project (required)
1857
+ :type path_to_project: str
1858
+ :param _request_timeout: timeout setting for this request. If one
1859
+ number provided, it will be total request
1860
+ timeout. It can also be a pair (tuple) of
1861
+ (connection, read) timeouts.
1862
+ :type _request_timeout: int, tuple(int, int), optional
1863
+ :param _request_auth: set to override the auth_settings for an a single
1864
+ request; this effectively ignores the
1865
+ authentication in the spec for a single request.
1866
+ :type _request_auth: dict, optional
1867
+ :param _content_type: force content-type for the request.
1868
+ :type _content_type: str, Optional
1869
+ :param _headers: set to override the headers for a single
1870
+ request; this effectively ignores the headers
1871
+ in the spec for a single request.
1872
+ :type _headers: dict, optional
1873
+ :param _host_index: set to override the host_index for a single
1874
+ request; this effectively ignores the host_index
1875
+ in the spec for a single request.
1876
+ :type _host_index: int, optional
1877
+ :return: Returns the result object.
1878
+ """ # noqa: E501
1879
+
1880
+ _param = self._workspace_symbols_serialize(
1881
+ query=query,
1882
+ language_id=language_id,
1883
+ path_to_project=path_to_project,
1884
+ _request_auth=_request_auth,
1885
+ _content_type=_content_type,
1886
+ _headers=_headers,
1887
+ _host_index=_host_index
1888
+ )
1889
+
1890
+ _response_types_map: Dict[str, Optional[str]] = {
1891
+ '200': "List[LspSymbol]",
1892
+ }
1893
+ response_data = self.api_client.call_api(
1894
+ *_param,
1895
+ _request_timeout=_request_timeout
1896
+ )
1897
+ return response_data.response
1898
+
1899
+
1900
+ def _workspace_symbols_serialize(
1901
+ self,
1902
+ query,
1903
+ language_id,
1904
+ path_to_project,
1905
+ _request_auth,
1906
+ _content_type,
1907
+ _headers,
1908
+ _host_index,
1909
+ ) -> RequestSerialized:
1910
+
1911
+ _host = None
1912
+
1913
+ _collection_formats: Dict[str, str] = {
1914
+ }
1915
+
1916
+ _path_params: Dict[str, str] = {}
1917
+ _query_params: List[Tuple[str, str]] = []
1918
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1919
+ _form_params: List[Tuple[str, str]] = []
1920
+ _files: Dict[
1921
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1922
+ ] = {}
1923
+ _body_params: Optional[bytes] = None
1924
+
1925
+ # process the path parameters
1926
+ # process the query parameters
1927
+ if query is not None:
1928
+
1929
+ _query_params.append(('query', query))
1930
+
1931
+ if language_id is not None:
1932
+
1933
+ _query_params.append(('languageId', language_id))
1934
+
1935
+ if path_to_project is not None:
1936
+
1937
+ _query_params.append(('pathToProject', path_to_project))
1938
+
1939
+ # process the header parameters
1940
+ # process the form parameters
1941
+ # process the body parameter
1942
+
1943
+
1944
+ # set the HTTP header `Accept`
1945
+ if 'Accept' not in _header_params:
1946
+ _header_params['Accept'] = self.api_client.select_header_accept(
1947
+ [
1948
+ 'application/json'
1949
+ ]
1950
+ )
1951
+
1952
+
1953
+ # authentication setting
1954
+ _auth_settings: List[str] = [
1955
+ ]
1956
+
1957
+ return self.api_client.param_serialize(
1958
+ method='GET',
1959
+ resource_path='/lsp/workspaceSymbols',
1960
+ path_params=_path_params,
1961
+ query_params=_query_params,
1962
+ header_params=_header_params,
1963
+ body=_body_params,
1964
+ post_params=_form_params,
1965
+ files=_files,
1966
+ auth_settings=_auth_settings,
1967
+ collection_formats=_collection_formats,
1968
+ _host=_host,
1969
+ _request_auth=_request_auth
1970
+ )
1971
+
1972
+