daytona_api_client 0.103.0rc3__py3-none-any.whl → 0.104.0rc1__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_api_client might be problematic. Click here for more details.
- daytona_api_client/__init__.py +6 -0
- daytona_api_client/api/__init__.py +1 -0
- daytona_api_client/api/config_api.py +279 -0
- daytona_api_client/api/preview_api.py +12 -5
- daytona_api_client/api/sandbox_api.py +572 -0
- daytona_api_client/models/__init__.py +5 -0
- daytona_api_client/models/announcement.py +103 -0
- daytona_api_client/models/create_docker_registry.py +2 -2
- daytona_api_client/models/daytona_configuration.py +148 -0
- daytona_api_client/models/docker_registry.py +2 -2
- daytona_api_client/models/oidc_config.py +105 -0
- daytona_api_client/models/posthog_config.py +103 -0
- daytona_api_client/models/update_sandbox_state_dto.py +108 -0
- {daytona_api_client-0.103.0rc3.dist-info → daytona_api_client-0.104.0rc1.dist-info}/METADATA +1 -1
- {daytona_api_client-0.103.0rc3.dist-info → daytona_api_client-0.104.0rc1.dist-info}/RECORD +18 -12
- {daytona_api_client-0.103.0rc3.dist-info → daytona_api_client-0.104.0rc1.dist-info}/WHEEL +0 -0
- {daytona_api_client-0.103.0rc3.dist-info → daytona_api_client-0.104.0rc1.dist-info}/licenses/LICENSE +0 -0
- {daytona_api_client-0.103.0rc3.dist-info → daytona_api_client-0.104.0rc1.dist-info}/top_level.txt +0 -0
daytona_api_client/__init__.py
CHANGED
|
@@ -21,6 +21,7 @@ __version__ = "0.0.0-dev"
|
|
|
21
21
|
from daytona_api_client.api.health_api import HealthApi
|
|
22
22
|
from daytona_api_client.api.api_keys_api import ApiKeysApi
|
|
23
23
|
from daytona_api_client.api.audit_api import AuditApi
|
|
24
|
+
from daytona_api_client.api.config_api import ConfigApi
|
|
24
25
|
from daytona_api_client.api.docker_registry_api import DockerRegistryApi
|
|
25
26
|
from daytona_api_client.api.object_storage_api import ObjectStorageApi
|
|
26
27
|
from daytona_api_client.api.organizations_api import OrganizationsApi
|
|
@@ -47,6 +48,7 @@ from daytona_api_client.exceptions import ApiException
|
|
|
47
48
|
|
|
48
49
|
# import models into sdk package
|
|
49
50
|
from daytona_api_client.models.account_provider import AccountProvider
|
|
51
|
+
from daytona_api_client.models.announcement import Announcement
|
|
50
52
|
from daytona_api_client.models.api_key_list import ApiKeyList
|
|
51
53
|
from daytona_api_client.models.api_key_response import ApiKeyResponse
|
|
52
54
|
from daytona_api_client.models.audit_log import AuditLog
|
|
@@ -75,6 +77,7 @@ from daytona_api_client.models.create_snapshot import CreateSnapshot
|
|
|
75
77
|
from daytona_api_client.models.create_user import CreateUser
|
|
76
78
|
from daytona_api_client.models.create_volume import CreateVolume
|
|
77
79
|
from daytona_api_client.models.create_workspace import CreateWorkspace
|
|
80
|
+
from daytona_api_client.models.daytona_configuration import DaytonaConfiguration
|
|
78
81
|
from daytona_api_client.models.display_info_response import DisplayInfoResponse
|
|
79
82
|
from daytona_api_client.models.docker_registry import DockerRegistry
|
|
80
83
|
from daytona_api_client.models.execute_request import ExecuteRequest
|
|
@@ -113,6 +116,7 @@ from daytona_api_client.models.mouse_move_response import MouseMoveResponse
|
|
|
113
116
|
from daytona_api_client.models.mouse_position import MousePosition
|
|
114
117
|
from daytona_api_client.models.mouse_scroll_request import MouseScrollRequest
|
|
115
118
|
from daytona_api_client.models.mouse_scroll_response import MouseScrollResponse
|
|
119
|
+
from daytona_api_client.models.oidc_config import OidcConfig
|
|
116
120
|
from daytona_api_client.models.organization import Organization
|
|
117
121
|
from daytona_api_client.models.organization_invitation import OrganizationInvitation
|
|
118
122
|
from daytona_api_client.models.organization_role import OrganizationRole
|
|
@@ -124,6 +128,7 @@ from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
|
|
|
124
128
|
from daytona_api_client.models.paginated_snapshots_dto import PaginatedSnapshotsDto
|
|
125
129
|
from daytona_api_client.models.port_preview_url import PortPreviewUrl
|
|
126
130
|
from daytona_api_client.models.position import Position
|
|
131
|
+
from daytona_api_client.models.posthog_config import PosthogConfig
|
|
127
132
|
from daytona_api_client.models.process_errors_response import ProcessErrorsResponse
|
|
128
133
|
from daytona_api_client.models.process_logs_response import ProcessLogsResponse
|
|
129
134
|
from daytona_api_client.models.process_restart_response import ProcessRestartResponse
|
|
@@ -161,6 +166,7 @@ from daytona_api_client.models.update_organization_invitation import UpdateOrgan
|
|
|
161
166
|
from daytona_api_client.models.update_organization_member_access import UpdateOrganizationMemberAccess
|
|
162
167
|
from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
|
|
163
168
|
from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
|
|
169
|
+
from daytona_api_client.models.update_sandbox_state_dto import UpdateSandboxStateDto
|
|
164
170
|
from daytona_api_client.models.user import User
|
|
165
171
|
from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
|
|
166
172
|
from daytona_api_client.models.user_public_key import UserPublicKey
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
from daytona_api_client.api.health_api import HealthApi
|
|
5
5
|
from daytona_api_client.api.api_keys_api import ApiKeysApi
|
|
6
6
|
from daytona_api_client.api.audit_api import AuditApi
|
|
7
|
+
from daytona_api_client.api.config_api import ConfigApi
|
|
7
8
|
from daytona_api_client.api.docker_registry_api import DockerRegistryApi
|
|
8
9
|
from daytona_api_client.api.object_storage_api import ObjectStorageApi
|
|
9
10
|
from daytona_api_client.api.organizations_api import OrganizationsApi
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Daytona
|
|
5
|
+
|
|
6
|
+
Daytona AI platform API Docs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: support@daytona.com
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
18
|
+
from typing_extensions import Annotated
|
|
19
|
+
|
|
20
|
+
from daytona_api_client.models.daytona_configuration import DaytonaConfiguration
|
|
21
|
+
|
|
22
|
+
from daytona_api_client.api_client import ApiClient, RequestSerialized
|
|
23
|
+
from daytona_api_client.api_response import ApiResponse
|
|
24
|
+
from daytona_api_client.rest import RESTResponseType
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ConfigApi:
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None) -> None:
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient.get_default()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@validate_call
|
|
41
|
+
def config_controller_get_config(
|
|
42
|
+
self,
|
|
43
|
+
_request_timeout: Union[
|
|
44
|
+
None,
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Tuple[
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
49
|
+
]
|
|
50
|
+
] = None,
|
|
51
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_content_type: Optional[StrictStr] = None,
|
|
53
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
55
|
+
) -> DaytonaConfiguration:
|
|
56
|
+
"""Get config
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
60
|
+
number provided, it will be total request
|
|
61
|
+
timeout. It can also be a pair (tuple) of
|
|
62
|
+
(connection, read) timeouts.
|
|
63
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
64
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
65
|
+
request; this effectively ignores the
|
|
66
|
+
authentication in the spec for a single request.
|
|
67
|
+
:type _request_auth: dict, optional
|
|
68
|
+
:param _content_type: force content-type for the request.
|
|
69
|
+
:type _content_type: str, Optional
|
|
70
|
+
:param _headers: set to override the headers for a single
|
|
71
|
+
request; this effectively ignores the headers
|
|
72
|
+
in the spec for a single request.
|
|
73
|
+
:type _headers: dict, optional
|
|
74
|
+
:param _host_index: set to override the host_index for a single
|
|
75
|
+
request; this effectively ignores the host_index
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _host_index: int, optional
|
|
78
|
+
:return: Returns the result object.
|
|
79
|
+
""" # noqa: E501
|
|
80
|
+
|
|
81
|
+
_param = self._config_controller_get_config_serialize(
|
|
82
|
+
_request_auth=_request_auth,
|
|
83
|
+
_content_type=_content_type,
|
|
84
|
+
_headers=_headers,
|
|
85
|
+
_host_index=_host_index
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
89
|
+
'200': "DaytonaConfiguration",
|
|
90
|
+
}
|
|
91
|
+
response_data = self.api_client.call_api(
|
|
92
|
+
*_param,
|
|
93
|
+
_request_timeout=_request_timeout
|
|
94
|
+
)
|
|
95
|
+
response_data.read()
|
|
96
|
+
return self.api_client.response_deserialize(
|
|
97
|
+
response_data=response_data,
|
|
98
|
+
response_types_map=_response_types_map,
|
|
99
|
+
).data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@validate_call
|
|
103
|
+
def config_controller_get_config_with_http_info(
|
|
104
|
+
self,
|
|
105
|
+
_request_timeout: Union[
|
|
106
|
+
None,
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Tuple[
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_content_type: Optional[StrictStr] = None,
|
|
115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
|
+
) -> ApiResponse[DaytonaConfiguration]:
|
|
118
|
+
"""Get config
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
122
|
+
number provided, it will be total request
|
|
123
|
+
timeout. It can also be a pair (tuple) of
|
|
124
|
+
(connection, read) timeouts.
|
|
125
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
126
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
127
|
+
request; this effectively ignores the
|
|
128
|
+
authentication in the spec for a single request.
|
|
129
|
+
:type _request_auth: dict, optional
|
|
130
|
+
:param _content_type: force content-type for the request.
|
|
131
|
+
:type _content_type: str, Optional
|
|
132
|
+
:param _headers: set to override the headers for a single
|
|
133
|
+
request; this effectively ignores the headers
|
|
134
|
+
in the spec for a single request.
|
|
135
|
+
:type _headers: dict, optional
|
|
136
|
+
:param _host_index: set to override the host_index for a single
|
|
137
|
+
request; this effectively ignores the host_index
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
:type _host_index: int, optional
|
|
140
|
+
:return: Returns the result object.
|
|
141
|
+
""" # noqa: E501
|
|
142
|
+
|
|
143
|
+
_param = self._config_controller_get_config_serialize(
|
|
144
|
+
_request_auth=_request_auth,
|
|
145
|
+
_content_type=_content_type,
|
|
146
|
+
_headers=_headers,
|
|
147
|
+
_host_index=_host_index
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
151
|
+
'200': "DaytonaConfiguration",
|
|
152
|
+
}
|
|
153
|
+
response_data = self.api_client.call_api(
|
|
154
|
+
*_param,
|
|
155
|
+
_request_timeout=_request_timeout
|
|
156
|
+
)
|
|
157
|
+
response_data.read()
|
|
158
|
+
return self.api_client.response_deserialize(
|
|
159
|
+
response_data=response_data,
|
|
160
|
+
response_types_map=_response_types_map,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
@validate_call
|
|
165
|
+
def config_controller_get_config_without_preload_content(
|
|
166
|
+
self,
|
|
167
|
+
_request_timeout: Union[
|
|
168
|
+
None,
|
|
169
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
170
|
+
Tuple[
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
173
|
+
]
|
|
174
|
+
] = None,
|
|
175
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
176
|
+
_content_type: Optional[StrictStr] = None,
|
|
177
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
179
|
+
) -> RESTResponseType:
|
|
180
|
+
"""Get config
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
184
|
+
number provided, it will be total request
|
|
185
|
+
timeout. It can also be a pair (tuple) of
|
|
186
|
+
(connection, read) timeouts.
|
|
187
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
188
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
189
|
+
request; this effectively ignores the
|
|
190
|
+
authentication in the spec for a single request.
|
|
191
|
+
:type _request_auth: dict, optional
|
|
192
|
+
:param _content_type: force content-type for the request.
|
|
193
|
+
:type _content_type: str, Optional
|
|
194
|
+
:param _headers: set to override the headers for a single
|
|
195
|
+
request; this effectively ignores the headers
|
|
196
|
+
in the spec for a single request.
|
|
197
|
+
:type _headers: dict, optional
|
|
198
|
+
:param _host_index: set to override the host_index for a single
|
|
199
|
+
request; this effectively ignores the host_index
|
|
200
|
+
in the spec for a single request.
|
|
201
|
+
:type _host_index: int, optional
|
|
202
|
+
:return: Returns the result object.
|
|
203
|
+
""" # noqa: E501
|
|
204
|
+
|
|
205
|
+
_param = self._config_controller_get_config_serialize(
|
|
206
|
+
_request_auth=_request_auth,
|
|
207
|
+
_content_type=_content_type,
|
|
208
|
+
_headers=_headers,
|
|
209
|
+
_host_index=_host_index
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
213
|
+
'200': "DaytonaConfiguration",
|
|
214
|
+
}
|
|
215
|
+
response_data = self.api_client.call_api(
|
|
216
|
+
*_param,
|
|
217
|
+
_request_timeout=_request_timeout
|
|
218
|
+
)
|
|
219
|
+
return response_data.response
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def _config_controller_get_config_serialize(
|
|
223
|
+
self,
|
|
224
|
+
_request_auth,
|
|
225
|
+
_content_type,
|
|
226
|
+
_headers,
|
|
227
|
+
_host_index,
|
|
228
|
+
) -> RequestSerialized:
|
|
229
|
+
|
|
230
|
+
_host = None
|
|
231
|
+
|
|
232
|
+
_collection_formats: Dict[str, str] = {
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
_path_params: Dict[str, str] = {}
|
|
236
|
+
_query_params: List[Tuple[str, str]] = []
|
|
237
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
238
|
+
_form_params: List[Tuple[str, str]] = []
|
|
239
|
+
_files: Dict[
|
|
240
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
241
|
+
] = {}
|
|
242
|
+
_body_params: Optional[bytes] = None
|
|
243
|
+
|
|
244
|
+
# process the path parameters
|
|
245
|
+
# process the query parameters
|
|
246
|
+
# process the header parameters
|
|
247
|
+
# process the form parameters
|
|
248
|
+
# process the body parameter
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
# set the HTTP header `Accept`
|
|
252
|
+
if 'Accept' not in _header_params:
|
|
253
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
254
|
+
[
|
|
255
|
+
'application/json'
|
|
256
|
+
]
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
# authentication setting
|
|
261
|
+
_auth_settings: List[str] = [
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
return self.api_client.param_serialize(
|
|
265
|
+
method='GET',
|
|
266
|
+
resource_path='/config',
|
|
267
|
+
path_params=_path_params,
|
|
268
|
+
query_params=_query_params,
|
|
269
|
+
header_params=_header_params,
|
|
270
|
+
body=_body_params,
|
|
271
|
+
post_params=_form_params,
|
|
272
|
+
files=_files,
|
|
273
|
+
auth_settings=_auth_settings,
|
|
274
|
+
collection_formats=_collection_formats,
|
|
275
|
+
_host=_host,
|
|
276
|
+
_request_auth=_request_auth
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
|
|
@@ -54,7 +54,7 @@ class PreviewApi:
|
|
|
54
54
|
_content_type: Optional[StrictStr] = None,
|
|
55
55
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
56
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
-
) ->
|
|
57
|
+
) -> bool:
|
|
58
58
|
"""Check if user has access to the sandbox
|
|
59
59
|
|
|
60
60
|
|
|
@@ -91,7 +91,7 @@ class PreviewApi:
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
-
'200':
|
|
94
|
+
'200': "bool",
|
|
95
95
|
}
|
|
96
96
|
response_data = self.api_client.call_api(
|
|
97
97
|
*_param,
|
|
@@ -120,7 +120,7 @@ class PreviewApi:
|
|
|
120
120
|
_content_type: Optional[StrictStr] = None,
|
|
121
121
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
122
122
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
123
|
-
) -> ApiResponse[
|
|
123
|
+
) -> ApiResponse[bool]:
|
|
124
124
|
"""Check if user has access to the sandbox
|
|
125
125
|
|
|
126
126
|
|
|
@@ -157,7 +157,7 @@ class PreviewApi:
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
160
|
-
'200':
|
|
160
|
+
'200': "bool",
|
|
161
161
|
}
|
|
162
162
|
response_data = self.api_client.call_api(
|
|
163
163
|
*_param,
|
|
@@ -223,7 +223,7 @@ class PreviewApi:
|
|
|
223
223
|
)
|
|
224
224
|
|
|
225
225
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
226
|
-
'200':
|
|
226
|
+
'200': "bool",
|
|
227
227
|
}
|
|
228
228
|
response_data = self.api_client.call_api(
|
|
229
229
|
*_param,
|
|
@@ -264,6 +264,13 @@ class PreviewApi:
|
|
|
264
264
|
# process the body parameter
|
|
265
265
|
|
|
266
266
|
|
|
267
|
+
# set the HTTP header `Accept`
|
|
268
|
+
if 'Accept' not in _header_params:
|
|
269
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
270
|
+
[
|
|
271
|
+
'application/json'
|
|
272
|
+
]
|
|
273
|
+
)
|
|
267
274
|
|
|
268
275
|
|
|
269
276
|
# authentication setting
|