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.
- daytona_daemon_api_client/__init__.py +102 -0
- daytona_daemon_api_client/api/__init__.py +11 -0
- daytona_daemon_api_client/api/computer_use_api.py +6077 -0
- daytona_daemon_api_client/api/file_system_api.py +3463 -0
- daytona_daemon_api_client/api/git_api.py +3052 -0
- daytona_daemon_api_client/api/info_api.py +528 -0
- daytona_daemon_api_client/api/lsp_api.py +2027 -0
- daytona_daemon_api_client/api/port_api.py +547 -0
- daytona_daemon_api_client/api/process_api.py +2262 -0
- daytona_daemon_api_client/api_client.py +797 -0
- daytona_daemon_api_client/api_response.py +21 -0
- daytona_daemon_api_client/configuration.py +572 -0
- daytona_daemon_api_client/exceptions.py +216 -0
- daytona_daemon_api_client/models/__init__.py +79 -0
- daytona_daemon_api_client/models/command.py +104 -0
- daytona_daemon_api_client/models/completion_context.py +102 -0
- daytona_daemon_api_client/models/completion_item.py +112 -0
- daytona_daemon_api_client/models/completion_list.py +110 -0
- daytona_daemon_api_client/models/computer_use_start_response.py +115 -0
- daytona_daemon_api_client/models/computer_use_status_response.py +100 -0
- daytona_daemon_api_client/models/computer_use_stop_response.py +115 -0
- daytona_daemon_api_client/models/create_session_request.py +100 -0
- daytona_daemon_api_client/models/display_info.py +110 -0
- daytona_daemon_api_client/models/display_info_response.py +108 -0
- daytona_daemon_api_client/models/execute_request.py +104 -0
- daytona_daemon_api_client/models/execute_response.py +102 -0
- daytona_daemon_api_client/models/file_info.py +114 -0
- daytona_daemon_api_client/models/file_status.py +107 -0
- daytona_daemon_api_client/models/git_add_request.py +102 -0
- daytona_daemon_api_client/models/git_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_checkout_request.py +102 -0
- daytona_daemon_api_client/models/git_clone_request.py +110 -0
- daytona_daemon_api_client/models/git_commit_info.py +108 -0
- daytona_daemon_api_client/models/git_commit_request.py +108 -0
- daytona_daemon_api_client/models/git_commit_response.py +100 -0
- daytona_daemon_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_daemon_api_client/models/git_repo_request.py +104 -0
- daytona_daemon_api_client/models/git_status.py +116 -0
- daytona_daemon_api_client/models/is_port_in_use_response.py +100 -0
- daytona_daemon_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_daemon_api_client/models/keyboard_press_request.py +102 -0
- daytona_daemon_api_client/models/keyboard_type_request.py +102 -0
- daytona_daemon_api_client/models/list_branch_response.py +100 -0
- daytona_daemon_api_client/models/lsp_completion_params.py +116 -0
- daytona_daemon_api_client/models/lsp_document_request.py +104 -0
- daytona_daemon_api_client/models/lsp_location.py +106 -0
- daytona_daemon_api_client/models/lsp_position.py +102 -0
- daytona_daemon_api_client/models/lsp_range.py +109 -0
- daytona_daemon_api_client/models/lsp_server_request.py +102 -0
- daytona_daemon_api_client/models/lsp_symbol.py +108 -0
- daytona_daemon_api_client/models/match.py +104 -0
- daytona_daemon_api_client/models/mouse_click_request.py +106 -0
- daytona_daemon_api_client/models/mouse_click_response.py +102 -0
- daytona_daemon_api_client/models/mouse_drag_request.py +108 -0
- daytona_daemon_api_client/models/mouse_drag_response.py +102 -0
- daytona_daemon_api_client/models/mouse_move_request.py +102 -0
- daytona_daemon_api_client/models/mouse_position_response.py +102 -0
- daytona_daemon_api_client/models/mouse_scroll_request.py +106 -0
- daytona_daemon_api_client/models/port_list.py +100 -0
- daytona_daemon_api_client/models/position.py +102 -0
- daytona_daemon_api_client/models/process_errors_response.py +102 -0
- daytona_daemon_api_client/models/process_logs_response.py +102 -0
- daytona_daemon_api_client/models/process_restart_response.py +102 -0
- daytona_daemon_api_client/models/process_status.py +106 -0
- daytona_daemon_api_client/models/process_status_response.py +102 -0
- daytona_daemon_api_client/models/project_dir_response.py +100 -0
- daytona_daemon_api_client/models/replace_request.py +104 -0
- daytona_daemon_api_client/models/replace_result.py +104 -0
- daytona_daemon_api_client/models/screenshot_response.py +108 -0
- daytona_daemon_api_client/models/scroll_response.py +100 -0
- daytona_daemon_api_client/models/search_files_response.py +100 -0
- daytona_daemon_api_client/models/session.py +110 -0
- daytona_daemon_api_client/models/session_execute_request.py +104 -0
- daytona_daemon_api_client/models/session_execute_response.py +108 -0
- daytona_daemon_api_client/models/status.py +43 -0
- daytona_daemon_api_client/models/window_info.py +112 -0
- daytona_daemon_api_client/models/windows_response.py +108 -0
- daytona_daemon_api_client/py.typed +0 -0
- daytona_daemon_api_client/rest.py +258 -0
- daytona_toolbox_api_client/__init__.py +102 -0
- daytona_toolbox_api_client/api/__init__.py +11 -0
- daytona_toolbox_api_client/api/computer_use_api.py +6011 -0
- daytona_toolbox_api_client/api/file_system_api.py +3310 -0
- daytona_toolbox_api_client/api/git_api.py +2970 -0
- daytona_toolbox_api_client/api/info_api.py +528 -0
- daytona_toolbox_api_client/api/lsp_api.py +1972 -0
- daytona_toolbox_api_client/api/port_api.py +544 -0
- daytona_toolbox_api_client/api/process_api.py +2200 -0
- daytona_toolbox_api_client/api_client.py +797 -0
- daytona_toolbox_api_client/api_response.py +21 -0
- daytona_toolbox_api_client/configuration.py +572 -0
- daytona_toolbox_api_client/exceptions.py +216 -0
- daytona_toolbox_api_client/models/__init__.py +79 -0
- daytona_toolbox_api_client/models/command.py +104 -0
- daytona_toolbox_api_client/models/completion_context.py +102 -0
- daytona_toolbox_api_client/models/completion_item.py +112 -0
- daytona_toolbox_api_client/models/completion_list.py +110 -0
- daytona_toolbox_api_client/models/computer_use_start_response.py +115 -0
- daytona_toolbox_api_client/models/computer_use_status_response.py +100 -0
- daytona_toolbox_api_client/models/computer_use_stop_response.py +115 -0
- daytona_toolbox_api_client/models/create_session_request.py +100 -0
- daytona_toolbox_api_client/models/display_info.py +110 -0
- daytona_toolbox_api_client/models/display_info_response.py +108 -0
- daytona_toolbox_api_client/models/execute_request.py +104 -0
- daytona_toolbox_api_client/models/execute_response.py +102 -0
- daytona_toolbox_api_client/models/file_info.py +114 -0
- daytona_toolbox_api_client/models/file_status.py +107 -0
- daytona_toolbox_api_client/models/git_add_request.py +102 -0
- daytona_toolbox_api_client/models/git_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_checkout_request.py +102 -0
- daytona_toolbox_api_client/models/git_clone_request.py +110 -0
- daytona_toolbox_api_client/models/git_commit_info.py +108 -0
- daytona_toolbox_api_client/models/git_commit_request.py +108 -0
- daytona_toolbox_api_client/models/git_commit_response.py +100 -0
- daytona_toolbox_api_client/models/git_git_delete_branch_request.py +102 -0
- daytona_toolbox_api_client/models/git_repo_request.py +104 -0
- daytona_toolbox_api_client/models/git_status.py +116 -0
- daytona_toolbox_api_client/models/is_port_in_use_response.py +100 -0
- daytona_toolbox_api_client/models/keyboard_hotkey_request.py +100 -0
- daytona_toolbox_api_client/models/keyboard_press_request.py +102 -0
- daytona_toolbox_api_client/models/keyboard_type_request.py +102 -0
- daytona_toolbox_api_client/models/list_branch_response.py +100 -0
- daytona_toolbox_api_client/models/lsp_completion_params.py +116 -0
- daytona_toolbox_api_client/models/lsp_document_request.py +104 -0
- daytona_toolbox_api_client/models/lsp_location.py +106 -0
- daytona_toolbox_api_client/models/lsp_position.py +102 -0
- daytona_toolbox_api_client/models/lsp_range.py +109 -0
- daytona_toolbox_api_client/models/lsp_server_request.py +102 -0
- daytona_toolbox_api_client/models/lsp_symbol.py +108 -0
- daytona_toolbox_api_client/models/match.py +104 -0
- daytona_toolbox_api_client/models/mouse_click_request.py +106 -0
- daytona_toolbox_api_client/models/mouse_click_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_drag_request.py +108 -0
- daytona_toolbox_api_client/models/mouse_drag_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_move_request.py +102 -0
- daytona_toolbox_api_client/models/mouse_position_response.py +102 -0
- daytona_toolbox_api_client/models/mouse_scroll_request.py +106 -0
- daytona_toolbox_api_client/models/port_list.py +100 -0
- daytona_toolbox_api_client/models/position.py +102 -0
- daytona_toolbox_api_client/models/process_errors_response.py +102 -0
- daytona_toolbox_api_client/models/process_logs_response.py +102 -0
- daytona_toolbox_api_client/models/process_restart_response.py +102 -0
- daytona_toolbox_api_client/models/process_status.py +106 -0
- daytona_toolbox_api_client/models/process_status_response.py +102 -0
- daytona_toolbox_api_client/models/project_dir_response.py +100 -0
- daytona_toolbox_api_client/models/replace_request.py +104 -0
- daytona_toolbox_api_client/models/replace_result.py +104 -0
- daytona_toolbox_api_client/models/screenshot_response.py +108 -0
- daytona_toolbox_api_client/models/scroll_response.py +100 -0
- daytona_toolbox_api_client/models/search_files_response.py +100 -0
- daytona_toolbox_api_client/models/session.py +110 -0
- daytona_toolbox_api_client/models/session_execute_request.py +104 -0
- daytona_toolbox_api_client/models/session_execute_response.py +108 -0
- daytona_toolbox_api_client/models/status.py +43 -0
- daytona_toolbox_api_client/models/window_info.py +112 -0
- daytona_toolbox_api_client/models/windows_response.py +108 -0
- daytona_toolbox_api_client/py.typed +0 -0
- daytona_toolbox_api_client/rest.py +258 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/METADATA +25 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/RECORD +163 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/WHEEL +5 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/licenses/LICENSE +190 -0
- daytona_toolbox_api_client-0.102.0rc2.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.
|
|
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
|
+
from typing import Any, Optional
|
|
15
|
+
from typing_extensions import Self
|
|
16
|
+
|
|
17
|
+
class OpenApiException(Exception):
|
|
18
|
+
"""The base exception class for all OpenAPIExceptions"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ApiTypeError(OpenApiException, TypeError):
|
|
22
|
+
def __init__(self, msg, path_to_item=None, valid_classes=None,
|
|
23
|
+
key_type=None) -> None:
|
|
24
|
+
""" Raises an exception for TypeErrors
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
msg (str): the exception message
|
|
28
|
+
|
|
29
|
+
Keyword Args:
|
|
30
|
+
path_to_item (list): a list of keys an indices to get to the
|
|
31
|
+
current_item
|
|
32
|
+
None if unset
|
|
33
|
+
valid_classes (tuple): the primitive classes that current item
|
|
34
|
+
should be an instance of
|
|
35
|
+
None if unset
|
|
36
|
+
key_type (bool): False if our value is a value in a dict
|
|
37
|
+
True if it is a key in a dict
|
|
38
|
+
False if our item is an item in a list
|
|
39
|
+
None if unset
|
|
40
|
+
"""
|
|
41
|
+
self.path_to_item = path_to_item
|
|
42
|
+
self.valid_classes = valid_classes
|
|
43
|
+
self.key_type = key_type
|
|
44
|
+
full_msg = msg
|
|
45
|
+
if path_to_item:
|
|
46
|
+
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
|
47
|
+
super(ApiTypeError, self).__init__(full_msg)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class ApiValueError(OpenApiException, ValueError):
|
|
51
|
+
def __init__(self, msg, path_to_item=None) -> None:
|
|
52
|
+
"""
|
|
53
|
+
Args:
|
|
54
|
+
msg (str): the exception message
|
|
55
|
+
|
|
56
|
+
Keyword Args:
|
|
57
|
+
path_to_item (list) the path to the exception in the
|
|
58
|
+
received_data dict. None if unset
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
self.path_to_item = path_to_item
|
|
62
|
+
full_msg = msg
|
|
63
|
+
if path_to_item:
|
|
64
|
+
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
|
65
|
+
super(ApiValueError, self).__init__(full_msg)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class ApiAttributeError(OpenApiException, AttributeError):
|
|
69
|
+
def __init__(self, msg, path_to_item=None) -> None:
|
|
70
|
+
"""
|
|
71
|
+
Raised when an attribute reference or assignment fails.
|
|
72
|
+
|
|
73
|
+
Args:
|
|
74
|
+
msg (str): the exception message
|
|
75
|
+
|
|
76
|
+
Keyword Args:
|
|
77
|
+
path_to_item (None/list) the path to the exception in the
|
|
78
|
+
received_data dict
|
|
79
|
+
"""
|
|
80
|
+
self.path_to_item = path_to_item
|
|
81
|
+
full_msg = msg
|
|
82
|
+
if path_to_item:
|
|
83
|
+
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
|
84
|
+
super(ApiAttributeError, self).__init__(full_msg)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
class ApiKeyError(OpenApiException, KeyError):
|
|
88
|
+
def __init__(self, msg, path_to_item=None) -> None:
|
|
89
|
+
"""
|
|
90
|
+
Args:
|
|
91
|
+
msg (str): the exception message
|
|
92
|
+
|
|
93
|
+
Keyword Args:
|
|
94
|
+
path_to_item (None/list) the path to the exception in the
|
|
95
|
+
received_data dict
|
|
96
|
+
"""
|
|
97
|
+
self.path_to_item = path_to_item
|
|
98
|
+
full_msg = msg
|
|
99
|
+
if path_to_item:
|
|
100
|
+
full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
|
|
101
|
+
super(ApiKeyError, self).__init__(full_msg)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class ApiException(OpenApiException):
|
|
105
|
+
|
|
106
|
+
def __init__(
|
|
107
|
+
self,
|
|
108
|
+
status=None,
|
|
109
|
+
reason=None,
|
|
110
|
+
http_resp=None,
|
|
111
|
+
*,
|
|
112
|
+
body: Optional[str] = None,
|
|
113
|
+
data: Optional[Any] = None,
|
|
114
|
+
) -> None:
|
|
115
|
+
self.status = status
|
|
116
|
+
self.reason = reason
|
|
117
|
+
self.body = body
|
|
118
|
+
self.data = data
|
|
119
|
+
self.headers = None
|
|
120
|
+
|
|
121
|
+
if http_resp:
|
|
122
|
+
if self.status is None:
|
|
123
|
+
self.status = http_resp.status
|
|
124
|
+
if self.reason is None:
|
|
125
|
+
self.reason = http_resp.reason
|
|
126
|
+
if self.body is None:
|
|
127
|
+
try:
|
|
128
|
+
self.body = http_resp.data.decode('utf-8')
|
|
129
|
+
except Exception:
|
|
130
|
+
pass
|
|
131
|
+
self.headers = http_resp.getheaders()
|
|
132
|
+
|
|
133
|
+
@classmethod
|
|
134
|
+
def from_response(
|
|
135
|
+
cls,
|
|
136
|
+
*,
|
|
137
|
+
http_resp,
|
|
138
|
+
body: Optional[str],
|
|
139
|
+
data: Optional[Any],
|
|
140
|
+
) -> Self:
|
|
141
|
+
if http_resp.status == 400:
|
|
142
|
+
raise BadRequestException(http_resp=http_resp, body=body, data=data)
|
|
143
|
+
|
|
144
|
+
if http_resp.status == 401:
|
|
145
|
+
raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
|
|
146
|
+
|
|
147
|
+
if http_resp.status == 403:
|
|
148
|
+
raise ForbiddenException(http_resp=http_resp, body=body, data=data)
|
|
149
|
+
|
|
150
|
+
if http_resp.status == 404:
|
|
151
|
+
raise NotFoundException(http_resp=http_resp, body=body, data=data)
|
|
152
|
+
|
|
153
|
+
# Added new conditions for 409 and 422
|
|
154
|
+
if http_resp.status == 409:
|
|
155
|
+
raise ConflictException(http_resp=http_resp, body=body, data=data)
|
|
156
|
+
|
|
157
|
+
if http_resp.status == 422:
|
|
158
|
+
raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
|
|
159
|
+
|
|
160
|
+
if 500 <= http_resp.status <= 599:
|
|
161
|
+
raise ServiceException(http_resp=http_resp, body=body, data=data)
|
|
162
|
+
raise ApiException(http_resp=http_resp, body=body, data=data)
|
|
163
|
+
|
|
164
|
+
def __str__(self):
|
|
165
|
+
"""Custom error messages for exception"""
|
|
166
|
+
error_message = "({0})\n"\
|
|
167
|
+
"Reason: {1}\n".format(self.status, self.reason)
|
|
168
|
+
if self.headers:
|
|
169
|
+
error_message += "HTTP response headers: {0}\n".format(
|
|
170
|
+
self.headers)
|
|
171
|
+
|
|
172
|
+
if self.data or self.body:
|
|
173
|
+
error_message += "HTTP response body: {0}\n".format(self.data or self.body)
|
|
174
|
+
|
|
175
|
+
return error_message
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
class BadRequestException(ApiException):
|
|
179
|
+
pass
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
class NotFoundException(ApiException):
|
|
183
|
+
pass
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
class UnauthorizedException(ApiException):
|
|
187
|
+
pass
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
class ForbiddenException(ApiException):
|
|
191
|
+
pass
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
class ServiceException(ApiException):
|
|
195
|
+
pass
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class ConflictException(ApiException):
|
|
199
|
+
"""Exception for HTTP 409 Conflict."""
|
|
200
|
+
pass
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class UnprocessableEntityException(ApiException):
|
|
204
|
+
"""Exception for HTTP 422 Unprocessable Entity."""
|
|
205
|
+
pass
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
def render_path(path_to_item):
|
|
209
|
+
"""Returns a string representation of a path"""
|
|
210
|
+
result = ""
|
|
211
|
+
for pth in path_to_item:
|
|
212
|
+
if isinstance(pth, int):
|
|
213
|
+
result += "[{0}]".format(pth)
|
|
214
|
+
else:
|
|
215
|
+
result += "['{0}']".format(pth)
|
|
216
|
+
return result
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
"""
|
|
5
|
+
Daytona Daemon API
|
|
6
|
+
|
|
7
|
+
Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.
|
|
8
|
+
|
|
9
|
+
The version of the OpenAPI document: v0.0.0-dev
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
# import models into model package
|
|
17
|
+
from daytona_toolbox_api_client.models.command import Command
|
|
18
|
+
from daytona_toolbox_api_client.models.completion_context import CompletionContext
|
|
19
|
+
from daytona_toolbox_api_client.models.completion_item import CompletionItem
|
|
20
|
+
from daytona_toolbox_api_client.models.completion_list import CompletionList
|
|
21
|
+
from daytona_toolbox_api_client.models.computer_use_start_response import ComputerUseStartResponse
|
|
22
|
+
from daytona_toolbox_api_client.models.computer_use_status_response import ComputerUseStatusResponse
|
|
23
|
+
from daytona_toolbox_api_client.models.computer_use_stop_response import ComputerUseStopResponse
|
|
24
|
+
from daytona_toolbox_api_client.models.create_session_request import CreateSessionRequest
|
|
25
|
+
from daytona_toolbox_api_client.models.display_info import DisplayInfo
|
|
26
|
+
from daytona_toolbox_api_client.models.display_info_response import DisplayInfoResponse
|
|
27
|
+
from daytona_toolbox_api_client.models.execute_request import ExecuteRequest
|
|
28
|
+
from daytona_toolbox_api_client.models.execute_response import ExecuteResponse
|
|
29
|
+
from daytona_toolbox_api_client.models.file_info import FileInfo
|
|
30
|
+
from daytona_toolbox_api_client.models.file_status import FileStatus
|
|
31
|
+
from daytona_toolbox_api_client.models.git_add_request import GitAddRequest
|
|
32
|
+
from daytona_toolbox_api_client.models.git_branch_request import GitBranchRequest
|
|
33
|
+
from daytona_toolbox_api_client.models.git_checkout_request import GitCheckoutRequest
|
|
34
|
+
from daytona_toolbox_api_client.models.git_clone_request import GitCloneRequest
|
|
35
|
+
from daytona_toolbox_api_client.models.git_commit_info import GitCommitInfo
|
|
36
|
+
from daytona_toolbox_api_client.models.git_commit_request import GitCommitRequest
|
|
37
|
+
from daytona_toolbox_api_client.models.git_commit_response import GitCommitResponse
|
|
38
|
+
from daytona_toolbox_api_client.models.git_git_delete_branch_request import GitGitDeleteBranchRequest
|
|
39
|
+
from daytona_toolbox_api_client.models.git_repo_request import GitRepoRequest
|
|
40
|
+
from daytona_toolbox_api_client.models.git_status import GitStatus
|
|
41
|
+
from daytona_toolbox_api_client.models.is_port_in_use_response import IsPortInUseResponse
|
|
42
|
+
from daytona_toolbox_api_client.models.keyboard_hotkey_request import KeyboardHotkeyRequest
|
|
43
|
+
from daytona_toolbox_api_client.models.keyboard_press_request import KeyboardPressRequest
|
|
44
|
+
from daytona_toolbox_api_client.models.keyboard_type_request import KeyboardTypeRequest
|
|
45
|
+
from daytona_toolbox_api_client.models.list_branch_response import ListBranchResponse
|
|
46
|
+
from daytona_toolbox_api_client.models.lsp_completion_params import LspCompletionParams
|
|
47
|
+
from daytona_toolbox_api_client.models.lsp_document_request import LspDocumentRequest
|
|
48
|
+
from daytona_toolbox_api_client.models.lsp_location import LspLocation
|
|
49
|
+
from daytona_toolbox_api_client.models.lsp_position import LspPosition
|
|
50
|
+
from daytona_toolbox_api_client.models.lsp_range import LspRange
|
|
51
|
+
from daytona_toolbox_api_client.models.lsp_server_request import LspServerRequest
|
|
52
|
+
from daytona_toolbox_api_client.models.lsp_symbol import LspSymbol
|
|
53
|
+
from daytona_toolbox_api_client.models.match import Match
|
|
54
|
+
from daytona_toolbox_api_client.models.mouse_click_request import MouseClickRequest
|
|
55
|
+
from daytona_toolbox_api_client.models.mouse_click_response import MouseClickResponse
|
|
56
|
+
from daytona_toolbox_api_client.models.mouse_drag_request import MouseDragRequest
|
|
57
|
+
from daytona_toolbox_api_client.models.mouse_drag_response import MouseDragResponse
|
|
58
|
+
from daytona_toolbox_api_client.models.mouse_move_request import MouseMoveRequest
|
|
59
|
+
from daytona_toolbox_api_client.models.mouse_position_response import MousePositionResponse
|
|
60
|
+
from daytona_toolbox_api_client.models.mouse_scroll_request import MouseScrollRequest
|
|
61
|
+
from daytona_toolbox_api_client.models.port_list import PortList
|
|
62
|
+
from daytona_toolbox_api_client.models.position import Position
|
|
63
|
+
from daytona_toolbox_api_client.models.process_errors_response import ProcessErrorsResponse
|
|
64
|
+
from daytona_toolbox_api_client.models.process_logs_response import ProcessLogsResponse
|
|
65
|
+
from daytona_toolbox_api_client.models.process_restart_response import ProcessRestartResponse
|
|
66
|
+
from daytona_toolbox_api_client.models.process_status import ProcessStatus
|
|
67
|
+
from daytona_toolbox_api_client.models.process_status_response import ProcessStatusResponse
|
|
68
|
+
from daytona_toolbox_api_client.models.project_dir_response import ProjectDirResponse
|
|
69
|
+
from daytona_toolbox_api_client.models.replace_request import ReplaceRequest
|
|
70
|
+
from daytona_toolbox_api_client.models.replace_result import ReplaceResult
|
|
71
|
+
from daytona_toolbox_api_client.models.screenshot_response import ScreenshotResponse
|
|
72
|
+
from daytona_toolbox_api_client.models.scroll_response import ScrollResponse
|
|
73
|
+
from daytona_toolbox_api_client.models.search_files_response import SearchFilesResponse
|
|
74
|
+
from daytona_toolbox_api_client.models.session import Session
|
|
75
|
+
from daytona_toolbox_api_client.models.session_execute_request import SessionExecuteRequest
|
|
76
|
+
from daytona_toolbox_api_client.models.session_execute_response import SessionExecuteResponse
|
|
77
|
+
from daytona_toolbox_api_client.models.status import Status
|
|
78
|
+
from daytona_toolbox_api_client.models.window_info import WindowInfo
|
|
79
|
+
from daytona_toolbox_api_client.models.windows_response import WindowsResponse
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class Command(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
Command
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
command: StrictStr
|
|
30
|
+
exit_code: Optional[StrictInt] = Field(default=None, alias="exitCode")
|
|
31
|
+
id: StrictStr
|
|
32
|
+
additional_properties: Dict[str, Any] = {}
|
|
33
|
+
__properties: ClassVar[List[str]] = ["command", "exitCode", "id"]
|
|
34
|
+
|
|
35
|
+
model_config = ConfigDict(
|
|
36
|
+
populate_by_name=True,
|
|
37
|
+
validate_assignment=True,
|
|
38
|
+
protected_namespaces=(),
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
53
|
+
"""Create an instance of Command from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
57
|
+
"""Return the dictionary representation of the model using alias.
|
|
58
|
+
|
|
59
|
+
This has the following differences from calling pydantic's
|
|
60
|
+
`self.model_dump(by_alias=True)`:
|
|
61
|
+
|
|
62
|
+
* `None` is only added to the output dict for nullable fields that
|
|
63
|
+
were set at model initialization. Other fields with value `None`
|
|
64
|
+
are ignored.
|
|
65
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
66
|
+
"""
|
|
67
|
+
excluded_fields: Set[str] = set([
|
|
68
|
+
"additional_properties",
|
|
69
|
+
])
|
|
70
|
+
|
|
71
|
+
_dict = self.model_dump(
|
|
72
|
+
by_alias=True,
|
|
73
|
+
exclude=excluded_fields,
|
|
74
|
+
exclude_none=True,
|
|
75
|
+
)
|
|
76
|
+
# puts key-value pairs in additional_properties in the top level
|
|
77
|
+
if self.additional_properties is not None:
|
|
78
|
+
for _key, _value in self.additional_properties.items():
|
|
79
|
+
_dict[_key] = _value
|
|
80
|
+
|
|
81
|
+
return _dict
|
|
82
|
+
|
|
83
|
+
@classmethod
|
|
84
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
85
|
+
"""Create an instance of Command from a dict"""
|
|
86
|
+
if obj is None:
|
|
87
|
+
return None
|
|
88
|
+
|
|
89
|
+
if not isinstance(obj, dict):
|
|
90
|
+
return cls.model_validate(obj)
|
|
91
|
+
|
|
92
|
+
_obj = cls.model_validate({
|
|
93
|
+
"command": obj.get("command"),
|
|
94
|
+
"exitCode": obj.get("exitCode"),
|
|
95
|
+
"id": obj.get("id")
|
|
96
|
+
})
|
|
97
|
+
# store additional fields in additional_properties
|
|
98
|
+
for _key in obj.keys():
|
|
99
|
+
if _key not in cls.__properties:
|
|
100
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
101
|
+
|
|
102
|
+
return _obj
|
|
103
|
+
|
|
104
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CompletionContext(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CompletionContext
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
trigger_character: Optional[StrictStr] = Field(default=None, alias="triggerCharacter")
|
|
30
|
+
trigger_kind: StrictInt = Field(alias="triggerKind")
|
|
31
|
+
additional_properties: Dict[str, Any] = {}
|
|
32
|
+
__properties: ClassVar[List[str]] = ["triggerCharacter", "triggerKind"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of CompletionContext from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
65
|
+
"""
|
|
66
|
+
excluded_fields: Set[str] = set([
|
|
67
|
+
"additional_properties",
|
|
68
|
+
])
|
|
69
|
+
|
|
70
|
+
_dict = self.model_dump(
|
|
71
|
+
by_alias=True,
|
|
72
|
+
exclude=excluded_fields,
|
|
73
|
+
exclude_none=True,
|
|
74
|
+
)
|
|
75
|
+
# puts key-value pairs in additional_properties in the top level
|
|
76
|
+
if self.additional_properties is not None:
|
|
77
|
+
for _key, _value in self.additional_properties.items():
|
|
78
|
+
_dict[_key] = _value
|
|
79
|
+
|
|
80
|
+
return _dict
|
|
81
|
+
|
|
82
|
+
@classmethod
|
|
83
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
84
|
+
"""Create an instance of CompletionContext from a dict"""
|
|
85
|
+
if obj is None:
|
|
86
|
+
return None
|
|
87
|
+
|
|
88
|
+
if not isinstance(obj, dict):
|
|
89
|
+
return cls.model_validate(obj)
|
|
90
|
+
|
|
91
|
+
_obj = cls.model_validate({
|
|
92
|
+
"triggerCharacter": obj.get("triggerCharacter"),
|
|
93
|
+
"triggerKind": obj.get("triggerKind")
|
|
94
|
+
})
|
|
95
|
+
# store additional fields in additional_properties
|
|
96
|
+
for _key in obj.keys():
|
|
97
|
+
if _key not in cls.__properties:
|
|
98
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
99
|
+
|
|
100
|
+
return _obj
|
|
101
|
+
|
|
102
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona Daemon API
|
|
5
|
+
|
|
6
|
+
Daytona Daemon Toolbox API for file operations, process execution, git operations, LSP, computer use, and more.
|
|
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
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
|
|
21
|
+
from typing import Any, ClassVar, Dict, List, Optional
|
|
22
|
+
from typing import Optional, Set
|
|
23
|
+
from typing_extensions import Self
|
|
24
|
+
|
|
25
|
+
class CompletionItem(BaseModel):
|
|
26
|
+
"""
|
|
27
|
+
CompletionItem
|
|
28
|
+
""" # noqa: E501
|
|
29
|
+
detail: Optional[StrictStr] = None
|
|
30
|
+
documentation: Optional[Dict[str, Any]] = None
|
|
31
|
+
filter_text: Optional[StrictStr] = Field(default=None, alias="filterText")
|
|
32
|
+
insert_text: Optional[StrictStr] = Field(default=None, alias="insertText")
|
|
33
|
+
kind: Optional[StrictInt] = None
|
|
34
|
+
label: StrictStr
|
|
35
|
+
sort_text: Optional[StrictStr] = Field(default=None, alias="sortText")
|
|
36
|
+
additional_properties: Dict[str, Any] = {}
|
|
37
|
+
__properties: ClassVar[List[str]] = ["detail", "documentation", "filterText", "insertText", "kind", "label", "sortText"]
|
|
38
|
+
|
|
39
|
+
model_config = ConfigDict(
|
|
40
|
+
populate_by_name=True,
|
|
41
|
+
validate_assignment=True,
|
|
42
|
+
protected_namespaces=(),
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def to_str(self) -> str:
|
|
47
|
+
"""Returns the string representation of the model using alias"""
|
|
48
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
49
|
+
|
|
50
|
+
def to_json(self) -> str:
|
|
51
|
+
"""Returns the JSON representation of the model using alias"""
|
|
52
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
53
|
+
return json.dumps(self.to_dict())
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
57
|
+
"""Create an instance of CompletionItem from a JSON string"""
|
|
58
|
+
return cls.from_dict(json.loads(json_str))
|
|
59
|
+
|
|
60
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
61
|
+
"""Return the dictionary representation of the model using alias.
|
|
62
|
+
|
|
63
|
+
This has the following differences from calling pydantic's
|
|
64
|
+
`self.model_dump(by_alias=True)`:
|
|
65
|
+
|
|
66
|
+
* `None` is only added to the output dict for nullable fields that
|
|
67
|
+
were set at model initialization. Other fields with value `None`
|
|
68
|
+
are ignored.
|
|
69
|
+
* Fields in `self.additional_properties` are added to the output dict.
|
|
70
|
+
"""
|
|
71
|
+
excluded_fields: Set[str] = set([
|
|
72
|
+
"additional_properties",
|
|
73
|
+
])
|
|
74
|
+
|
|
75
|
+
_dict = self.model_dump(
|
|
76
|
+
by_alias=True,
|
|
77
|
+
exclude=excluded_fields,
|
|
78
|
+
exclude_none=True,
|
|
79
|
+
)
|
|
80
|
+
# puts key-value pairs in additional_properties in the top level
|
|
81
|
+
if self.additional_properties is not None:
|
|
82
|
+
for _key, _value in self.additional_properties.items():
|
|
83
|
+
_dict[_key] = _value
|
|
84
|
+
|
|
85
|
+
return _dict
|
|
86
|
+
|
|
87
|
+
@classmethod
|
|
88
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
89
|
+
"""Create an instance of CompletionItem from a dict"""
|
|
90
|
+
if obj is None:
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
if not isinstance(obj, dict):
|
|
94
|
+
return cls.model_validate(obj)
|
|
95
|
+
|
|
96
|
+
_obj = cls.model_validate({
|
|
97
|
+
"detail": obj.get("detail"),
|
|
98
|
+
"documentation": obj.get("documentation"),
|
|
99
|
+
"filterText": obj.get("filterText"),
|
|
100
|
+
"insertText": obj.get("insertText"),
|
|
101
|
+
"kind": obj.get("kind"),
|
|
102
|
+
"label": obj.get("label"),
|
|
103
|
+
"sortText": obj.get("sortText")
|
|
104
|
+
})
|
|
105
|
+
# store additional fields in additional_properties
|
|
106
|
+
for _key in obj.keys():
|
|
107
|
+
if _key not in cls.__properties:
|
|
108
|
+
_obj.additional_properties[_key] = obj.get(_key)
|
|
109
|
+
|
|
110
|
+
return _obj
|
|
111
|
+
|
|
112
|
+
|