daytona_api_client_async 0.103.0rc2__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_async might be problematic. Click here for more details.

Files changed (22) hide show
  1. daytona_api_client_async/__init__.py +8 -0
  2. daytona_api_client_async/api/__init__.py +1 -0
  3. daytona_api_client_async/api/config_api.py +279 -0
  4. daytona_api_client_async/api/sandbox_api.py +572 -0
  5. daytona_api_client_async/api/toolbox_api.py +567 -14
  6. daytona_api_client_async/models/__init__.py +7 -0
  7. daytona_api_client_async/models/announcement.py +103 -0
  8. daytona_api_client_async/models/configuration.py +145 -0
  9. daytona_api_client_async/models/create_docker_registry.py +2 -2
  10. daytona_api_client_async/models/daytona_configuration.py +148 -0
  11. daytona_api_client_async/models/docker_registry.py +2 -2
  12. daytona_api_client_async/models/oidc_config.py +105 -0
  13. daytona_api_client_async/models/posthog_config.py +103 -0
  14. daytona_api_client_async/models/update_sandbox_state_dto.py +108 -0
  15. daytona_api_client_async/models/user_home_dir_response.py +101 -0
  16. daytona_api_client_async/models/work_dir_response.py +101 -0
  17. daytona_api_client_async/models/workdir_response.py +101 -0
  18. {daytona_api_client_async-0.103.0rc2.dist-info → daytona_api_client_async-0.104.0rc1.dist-info}/METADATA +1 -1
  19. {daytona_api_client_async-0.103.0rc2.dist-info → daytona_api_client_async-0.104.0rc1.dist-info}/RECORD +22 -12
  20. {daytona_api_client_async-0.103.0rc2.dist-info → daytona_api_client_async-0.104.0rc1.dist-info}/WHEEL +0 -0
  21. {daytona_api_client_async-0.103.0rc2.dist-info → daytona_api_client_async-0.104.0rc1.dist-info}/licenses/LICENSE +0 -0
  22. {daytona_api_client_async-0.103.0rc2.dist-info → daytona_api_client_async-0.104.0rc1.dist-info}/top_level.txt +0 -0
@@ -21,6 +21,7 @@ __version__ = "0.0.0-dev"
21
21
  from daytona_api_client_async.api.health_api import HealthApi
22
22
  from daytona_api_client_async.api.api_keys_api import ApiKeysApi
23
23
  from daytona_api_client_async.api.audit_api import AuditApi
24
+ from daytona_api_client_async.api.config_api import ConfigApi
24
25
  from daytona_api_client_async.api.docker_registry_api import DockerRegistryApi
25
26
  from daytona_api_client_async.api.object_storage_api import ObjectStorageApi
26
27
  from daytona_api_client_async.api.organizations_api import OrganizationsApi
@@ -47,6 +48,7 @@ from daytona_api_client_async.exceptions import ApiException
47
48
 
48
49
  # import models into sdk package
49
50
  from daytona_api_client_async.models.account_provider import AccountProvider
51
+ from daytona_api_client_async.models.announcement import Announcement
50
52
  from daytona_api_client_async.models.api_key_list import ApiKeyList
51
53
  from daytona_api_client_async.models.api_key_response import ApiKeyResponse
52
54
  from daytona_api_client_async.models.audit_log import AuditLog
@@ -75,6 +77,7 @@ from daytona_api_client_async.models.create_snapshot import CreateSnapshot
75
77
  from daytona_api_client_async.models.create_user import CreateUser
76
78
  from daytona_api_client_async.models.create_volume import CreateVolume
77
79
  from daytona_api_client_async.models.create_workspace import CreateWorkspace
80
+ from daytona_api_client_async.models.daytona_configuration import DaytonaConfiguration
78
81
  from daytona_api_client_async.models.display_info_response import DisplayInfoResponse
79
82
  from daytona_api_client_async.models.docker_registry import DockerRegistry
80
83
  from daytona_api_client_async.models.execute_request import ExecuteRequest
@@ -113,6 +116,7 @@ from daytona_api_client_async.models.mouse_move_response import MouseMoveRespons
113
116
  from daytona_api_client_async.models.mouse_position import MousePosition
114
117
  from daytona_api_client_async.models.mouse_scroll_request import MouseScrollRequest
115
118
  from daytona_api_client_async.models.mouse_scroll_response import MouseScrollResponse
119
+ from daytona_api_client_async.models.oidc_config import OidcConfig
116
120
  from daytona_api_client_async.models.organization import Organization
117
121
  from daytona_api_client_async.models.organization_invitation import OrganizationInvitation
118
122
  from daytona_api_client_async.models.organization_role import OrganizationRole
@@ -124,6 +128,7 @@ from daytona_api_client_async.models.paginated_audit_logs import PaginatedAuditL
124
128
  from daytona_api_client_async.models.paginated_snapshots_dto import PaginatedSnapshotsDto
125
129
  from daytona_api_client_async.models.port_preview_url import PortPreviewUrl
126
130
  from daytona_api_client_async.models.position import Position
131
+ from daytona_api_client_async.models.posthog_config import PosthogConfig
127
132
  from daytona_api_client_async.models.process_errors_response import ProcessErrorsResponse
128
133
  from daytona_api_client_async.models.process_logs_response import ProcessLogsResponse
129
134
  from daytona_api_client_async.models.process_restart_response import ProcessRestartResponse
@@ -161,7 +166,9 @@ from daytona_api_client_async.models.update_organization_invitation import Updat
161
166
  from daytona_api_client_async.models.update_organization_member_access import UpdateOrganizationMemberAccess
162
167
  from daytona_api_client_async.models.update_organization_quota import UpdateOrganizationQuota
163
168
  from daytona_api_client_async.models.update_organization_role import UpdateOrganizationRole
169
+ from daytona_api_client_async.models.update_sandbox_state_dto import UpdateSandboxStateDto
164
170
  from daytona_api_client_async.models.user import User
171
+ from daytona_api_client_async.models.user_home_dir_response import UserHomeDirResponse
165
172
  from daytona_api_client_async.models.user_public_key import UserPublicKey
166
173
  from daytona_api_client_async.models.volume_dto import VolumeDto
167
174
  from daytona_api_client_async.models.volume_state import VolumeState
@@ -169,4 +176,5 @@ from daytona_api_client_async.models.webhook_app_portal_access import WebhookApp
169
176
  from daytona_api_client_async.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
170
177
  from daytona_api_client_async.models.webhook_initialization_status import WebhookInitializationStatus
171
178
  from daytona_api_client_async.models.windows_response import WindowsResponse
179
+ from daytona_api_client_async.models.work_dir_response import WorkDirResponse
172
180
  from daytona_api_client_async.models.workspace import Workspace
@@ -4,6 +4,7 @@
4
4
  from daytona_api_client_async.api.health_api import HealthApi
5
5
  from daytona_api_client_async.api.api_keys_api import ApiKeysApi
6
6
  from daytona_api_client_async.api.audit_api import AuditApi
7
+ from daytona_api_client_async.api.config_api import ConfigApi
7
8
  from daytona_api_client_async.api.docker_registry_api import DockerRegistryApi
8
9
  from daytona_api_client_async.api.object_storage_api import ObjectStorageApi
9
10
  from daytona_api_client_async.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_async.models.daytona_configuration import DaytonaConfiguration
21
+
22
+ from daytona_api_client_async.api_client import ApiClient, RequestSerialized
23
+ from daytona_api_client_async.api_response import ApiResponse
24
+ from daytona_api_client_async.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
+ async 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 = await self.api_client.call_api(
92
+ *_param,
93
+ _request_timeout=_request_timeout
94
+ )
95
+ await 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
+ async 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 = await self.api_client.call_api(
154
+ *_param,
155
+ _request_timeout=_request_timeout
156
+ )
157
+ await 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
+ async 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 = await 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
+