daytona_api_client 0.110.2__py3-none-any.whl → 0.111.1__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.

@@ -62,7 +62,6 @@ from daytona_api_client.models.computer_use_start_response import ComputerUseSta
62
62
  from daytona_api_client.models.computer_use_status_response import ComputerUseStatusResponse
63
63
  from daytona_api_client.models.computer_use_stop_response import ComputerUseStopResponse
64
64
  from daytona_api_client.models.create_api_key import CreateApiKey
65
- from daytona_api_client.models.create_audit_log import CreateAuditLog
66
65
  from daytona_api_client.models.create_build_info import CreateBuildInfo
67
66
  from daytona_api_client.models.create_docker_registry import CreateDockerRegistry
68
67
  from daytona_api_client.models.create_linked_account import CreateLinkedAccount
@@ -17,11 +17,10 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
17
  from typing import Any, Dict, List, Optional, Tuple, Union
18
18
  from typing_extensions import Annotated
19
19
 
20
+ from datetime import datetime
20
21
  from pydantic import Field, StrictStr
21
22
  from typing import Optional, Union
22
23
  from typing_extensions import Annotated
23
- from daytona_api_client.models.audit_log import AuditLog
24
- from daytona_api_client.models.create_audit_log import CreateAuditLog
25
24
  from daytona_api_client.models.paginated_audit_logs import PaginatedAuditLogs
26
25
 
27
26
  from daytona_api_client.api_client import ApiClient, RequestSerialized
@@ -42,283 +41,14 @@ class AuditApi:
42
41
  self.api_client = api_client
43
42
 
44
43
 
45
- @validate_call
46
- def create_audit_log(
47
- self,
48
- create_audit_log: CreateAuditLog,
49
- _request_timeout: Union[
50
- None,
51
- Annotated[StrictFloat, Field(gt=0)],
52
- Tuple[
53
- Annotated[StrictFloat, Field(gt=0)],
54
- Annotated[StrictFloat, Field(gt=0)]
55
- ]
56
- ] = None,
57
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
58
- _content_type: Optional[StrictStr] = None,
59
- _headers: Optional[Dict[StrictStr, Any]] = None,
60
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
61
- ) -> AuditLog:
62
- """Create audit log entry
63
-
64
-
65
- :param create_audit_log: (required)
66
- :type create_audit_log: CreateAuditLog
67
- :param _request_timeout: timeout setting for this request. If one
68
- number provided, it will be total request
69
- timeout. It can also be a pair (tuple) of
70
- (connection, read) timeouts.
71
- :type _request_timeout: int, tuple(int, int), optional
72
- :param _request_auth: set to override the auth_settings for an a single
73
- request; this effectively ignores the
74
- authentication in the spec for a single request.
75
- :type _request_auth: dict, optional
76
- :param _content_type: force content-type for the request.
77
- :type _content_type: str, Optional
78
- :param _headers: set to override the headers for a single
79
- request; this effectively ignores the headers
80
- in the spec for a single request.
81
- :type _headers: dict, optional
82
- :param _host_index: set to override the host_index for a single
83
- request; this effectively ignores the host_index
84
- in the spec for a single request.
85
- :type _host_index: int, optional
86
- :return: Returns the result object.
87
- """ # noqa: E501
88
-
89
- _param = self._create_audit_log_serialize(
90
- create_audit_log=create_audit_log,
91
- _request_auth=_request_auth,
92
- _content_type=_content_type,
93
- _headers=_headers,
94
- _host_index=_host_index
95
- )
96
-
97
- _response_types_map: Dict[str, Optional[str]] = {
98
- '201': "AuditLog",
99
- }
100
- response_data = self.api_client.call_api(
101
- *_param,
102
- _request_timeout=_request_timeout
103
- )
104
- response_data.read()
105
- return self.api_client.response_deserialize(
106
- response_data=response_data,
107
- response_types_map=_response_types_map,
108
- ).data
109
-
110
-
111
- @validate_call
112
- def create_audit_log_with_http_info(
113
- self,
114
- create_audit_log: CreateAuditLog,
115
- _request_timeout: Union[
116
- None,
117
- Annotated[StrictFloat, Field(gt=0)],
118
- Tuple[
119
- Annotated[StrictFloat, Field(gt=0)],
120
- Annotated[StrictFloat, Field(gt=0)]
121
- ]
122
- ] = None,
123
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
124
- _content_type: Optional[StrictStr] = None,
125
- _headers: Optional[Dict[StrictStr, Any]] = None,
126
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
127
- ) -> ApiResponse[AuditLog]:
128
- """Create audit log entry
129
-
130
-
131
- :param create_audit_log: (required)
132
- :type create_audit_log: CreateAuditLog
133
- :param _request_timeout: timeout setting for this request. If one
134
- number provided, it will be total request
135
- timeout. It can also be a pair (tuple) of
136
- (connection, read) timeouts.
137
- :type _request_timeout: int, tuple(int, int), optional
138
- :param _request_auth: set to override the auth_settings for an a single
139
- request; this effectively ignores the
140
- authentication in the spec for a single request.
141
- :type _request_auth: dict, optional
142
- :param _content_type: force content-type for the request.
143
- :type _content_type: str, Optional
144
- :param _headers: set to override the headers for a single
145
- request; this effectively ignores the headers
146
- in the spec for a single request.
147
- :type _headers: dict, optional
148
- :param _host_index: set to override the host_index for a single
149
- request; this effectively ignores the host_index
150
- in the spec for a single request.
151
- :type _host_index: int, optional
152
- :return: Returns the result object.
153
- """ # noqa: E501
154
-
155
- _param = self._create_audit_log_serialize(
156
- create_audit_log=create_audit_log,
157
- _request_auth=_request_auth,
158
- _content_type=_content_type,
159
- _headers=_headers,
160
- _host_index=_host_index
161
- )
162
-
163
- _response_types_map: Dict[str, Optional[str]] = {
164
- '201': "AuditLog",
165
- }
166
- response_data = self.api_client.call_api(
167
- *_param,
168
- _request_timeout=_request_timeout
169
- )
170
- response_data.read()
171
- return self.api_client.response_deserialize(
172
- response_data=response_data,
173
- response_types_map=_response_types_map,
174
- )
175
-
176
-
177
- @validate_call
178
- def create_audit_log_without_preload_content(
179
- self,
180
- create_audit_log: CreateAuditLog,
181
- _request_timeout: Union[
182
- None,
183
- Annotated[StrictFloat, Field(gt=0)],
184
- Tuple[
185
- Annotated[StrictFloat, Field(gt=0)],
186
- Annotated[StrictFloat, Field(gt=0)]
187
- ]
188
- ] = None,
189
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
190
- _content_type: Optional[StrictStr] = None,
191
- _headers: Optional[Dict[StrictStr, Any]] = None,
192
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
193
- ) -> RESTResponseType:
194
- """Create audit log entry
195
-
196
-
197
- :param create_audit_log: (required)
198
- :type create_audit_log: CreateAuditLog
199
- :param _request_timeout: timeout setting for this request. If one
200
- number provided, it will be total request
201
- timeout. It can also be a pair (tuple) of
202
- (connection, read) timeouts.
203
- :type _request_timeout: int, tuple(int, int), optional
204
- :param _request_auth: set to override the auth_settings for an a single
205
- request; this effectively ignores the
206
- authentication in the spec for a single request.
207
- :type _request_auth: dict, optional
208
- :param _content_type: force content-type for the request.
209
- :type _content_type: str, Optional
210
- :param _headers: set to override the headers for a single
211
- request; this effectively ignores the headers
212
- in the spec for a single request.
213
- :type _headers: dict, optional
214
- :param _host_index: set to override the host_index for a single
215
- request; this effectively ignores the host_index
216
- in the spec for a single request.
217
- :type _host_index: int, optional
218
- :return: Returns the result object.
219
- """ # noqa: E501
220
-
221
- _param = self._create_audit_log_serialize(
222
- create_audit_log=create_audit_log,
223
- _request_auth=_request_auth,
224
- _content_type=_content_type,
225
- _headers=_headers,
226
- _host_index=_host_index
227
- )
228
-
229
- _response_types_map: Dict[str, Optional[str]] = {
230
- '201': "AuditLog",
231
- }
232
- response_data = self.api_client.call_api(
233
- *_param,
234
- _request_timeout=_request_timeout
235
- )
236
- return response_data.response
237
-
238
-
239
- def _create_audit_log_serialize(
240
- self,
241
- create_audit_log,
242
- _request_auth,
243
- _content_type,
244
- _headers,
245
- _host_index,
246
- ) -> RequestSerialized:
247
-
248
- _host = None
249
-
250
- _collection_formats: Dict[str, str] = {
251
- }
252
-
253
- _path_params: Dict[str, str] = {}
254
- _query_params: List[Tuple[str, str]] = []
255
- _header_params: Dict[str, Optional[str]] = _headers or {}
256
- _form_params: List[Tuple[str, str]] = []
257
- _files: Dict[
258
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
259
- ] = {}
260
- _body_params: Optional[bytes] = None
261
-
262
- # process the path parameters
263
- # process the query parameters
264
- # process the header parameters
265
- # process the form parameters
266
- # process the body parameter
267
- if create_audit_log is not None:
268
- _body_params = create_audit_log
269
-
270
-
271
- # set the HTTP header `Accept`
272
- if 'Accept' not in _header_params:
273
- _header_params['Accept'] = self.api_client.select_header_accept(
274
- [
275
- 'application/json'
276
- ]
277
- )
278
-
279
- # set the HTTP header `Content-Type`
280
- if _content_type:
281
- _header_params['Content-Type'] = _content_type
282
- else:
283
- _default_content_type = (
284
- self.api_client.select_header_content_type(
285
- [
286
- 'application/json'
287
- ]
288
- )
289
- )
290
- if _default_content_type is not None:
291
- _header_params['Content-Type'] = _default_content_type
292
-
293
- # authentication setting
294
- _auth_settings: List[str] = [
295
- 'bearer',
296
- 'oauth2'
297
- ]
298
-
299
- return self.api_client.param_serialize(
300
- method='POST',
301
- resource_path='/audit',
302
- path_params=_path_params,
303
- query_params=_query_params,
304
- header_params=_header_params,
305
- body=_body_params,
306
- post_params=_form_params,
307
- files=_files,
308
- auth_settings=_auth_settings,
309
- collection_formats=_collection_formats,
310
- _host=_host,
311
- _request_auth=_request_auth
312
- )
313
-
314
-
315
-
316
-
317
44
  @validate_call
318
45
  def get_all_audit_logs(
319
46
  self,
320
47
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
321
48
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
49
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
50
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
51
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
322
52
  _request_timeout: Union[
323
53
  None,
324
54
  Annotated[StrictFloat, Field(gt=0)],
@@ -339,6 +69,12 @@ class AuditApi:
339
69
  :type page: float
340
70
  :param limit: Number of results per page
341
71
  :type limit: float
72
+ :param var_from: From date (ISO 8601 format)
73
+ :type var_from: datetime
74
+ :param to: To date (ISO 8601 format)
75
+ :type to: datetime
76
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
77
+ :type next_token: str
342
78
  :param _request_timeout: timeout setting for this request. If one
343
79
  number provided, it will be total request
344
80
  timeout. It can also be a pair (tuple) of
@@ -364,6 +100,9 @@ class AuditApi:
364
100
  _param = self._get_all_audit_logs_serialize(
365
101
  page=page,
366
102
  limit=limit,
103
+ var_from=var_from,
104
+ to=to,
105
+ next_token=next_token,
367
106
  _request_auth=_request_auth,
368
107
  _content_type=_content_type,
369
108
  _headers=_headers,
@@ -389,6 +128,9 @@ class AuditApi:
389
128
  self,
390
129
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
391
130
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
131
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
132
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
133
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
392
134
  _request_timeout: Union[
393
135
  None,
394
136
  Annotated[StrictFloat, Field(gt=0)],
@@ -409,6 +151,12 @@ class AuditApi:
409
151
  :type page: float
410
152
  :param limit: Number of results per page
411
153
  :type limit: float
154
+ :param var_from: From date (ISO 8601 format)
155
+ :type var_from: datetime
156
+ :param to: To date (ISO 8601 format)
157
+ :type to: datetime
158
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
159
+ :type next_token: str
412
160
  :param _request_timeout: timeout setting for this request. If one
413
161
  number provided, it will be total request
414
162
  timeout. It can also be a pair (tuple) of
@@ -434,6 +182,9 @@ class AuditApi:
434
182
  _param = self._get_all_audit_logs_serialize(
435
183
  page=page,
436
184
  limit=limit,
185
+ var_from=var_from,
186
+ to=to,
187
+ next_token=next_token,
437
188
  _request_auth=_request_auth,
438
189
  _content_type=_content_type,
439
190
  _headers=_headers,
@@ -459,6 +210,9 @@ class AuditApi:
459
210
  self,
460
211
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
461
212
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
213
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
214
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
215
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
462
216
  _request_timeout: Union[
463
217
  None,
464
218
  Annotated[StrictFloat, Field(gt=0)],
@@ -479,6 +233,12 @@ class AuditApi:
479
233
  :type page: float
480
234
  :param limit: Number of results per page
481
235
  :type limit: float
236
+ :param var_from: From date (ISO 8601 format)
237
+ :type var_from: datetime
238
+ :param to: To date (ISO 8601 format)
239
+ :type to: datetime
240
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
241
+ :type next_token: str
482
242
  :param _request_timeout: timeout setting for this request. If one
483
243
  number provided, it will be total request
484
244
  timeout. It can also be a pair (tuple) of
@@ -504,6 +264,9 @@ class AuditApi:
504
264
  _param = self._get_all_audit_logs_serialize(
505
265
  page=page,
506
266
  limit=limit,
267
+ var_from=var_from,
268
+ to=to,
269
+ next_token=next_token,
507
270
  _request_auth=_request_auth,
508
271
  _content_type=_content_type,
509
272
  _headers=_headers,
@@ -524,6 +287,9 @@ class AuditApi:
524
287
  self,
525
288
  page,
526
289
  limit,
290
+ var_from,
291
+ to,
292
+ next_token,
527
293
  _request_auth,
528
294
  _content_type,
529
295
  _headers,
@@ -554,6 +320,36 @@ class AuditApi:
554
320
 
555
321
  _query_params.append(('limit', limit))
556
322
 
323
+ if var_from is not None:
324
+ if isinstance(var_from, datetime):
325
+ _query_params.append(
326
+ (
327
+ 'from',
328
+ var_from.strftime(
329
+ self.api_client.configuration.datetime_format
330
+ )
331
+ )
332
+ )
333
+ else:
334
+ _query_params.append(('from', var_from))
335
+
336
+ if to is not None:
337
+ if isinstance(to, datetime):
338
+ _query_params.append(
339
+ (
340
+ 'to',
341
+ to.strftime(
342
+ self.api_client.configuration.datetime_format
343
+ )
344
+ )
345
+ )
346
+ else:
347
+ _query_params.append(('to', to))
348
+
349
+ if next_token is not None:
350
+
351
+ _query_params.append(('nextToken', next_token))
352
+
557
353
  # process the header parameters
558
354
  # process the form parameters
559
355
  # process the body parameter
@@ -598,6 +394,9 @@ class AuditApi:
598
394
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
599
395
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
600
396
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
397
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
398
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
399
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
601
400
  _request_timeout: Union[
602
401
  None,
603
402
  Annotated[StrictFloat, Field(gt=0)],
@@ -620,6 +419,12 @@ class AuditApi:
620
419
  :type page: float
621
420
  :param limit: Number of results per page
622
421
  :type limit: float
422
+ :param var_from: From date (ISO 8601 format)
423
+ :type var_from: datetime
424
+ :param to: To date (ISO 8601 format)
425
+ :type to: datetime
426
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
427
+ :type next_token: str
623
428
  :param _request_timeout: timeout setting for this request. If one
624
429
  number provided, it will be total request
625
430
  timeout. It can also be a pair (tuple) of
@@ -646,6 +451,9 @@ class AuditApi:
646
451
  organization_id=organization_id,
647
452
  page=page,
648
453
  limit=limit,
454
+ var_from=var_from,
455
+ to=to,
456
+ next_token=next_token,
649
457
  _request_auth=_request_auth,
650
458
  _content_type=_content_type,
651
459
  _headers=_headers,
@@ -672,6 +480,9 @@ class AuditApi:
672
480
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
673
481
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
674
482
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
483
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
484
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
485
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
675
486
  _request_timeout: Union[
676
487
  None,
677
488
  Annotated[StrictFloat, Field(gt=0)],
@@ -694,6 +505,12 @@ class AuditApi:
694
505
  :type page: float
695
506
  :param limit: Number of results per page
696
507
  :type limit: float
508
+ :param var_from: From date (ISO 8601 format)
509
+ :type var_from: datetime
510
+ :param to: To date (ISO 8601 format)
511
+ :type to: datetime
512
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
513
+ :type next_token: str
697
514
  :param _request_timeout: timeout setting for this request. If one
698
515
  number provided, it will be total request
699
516
  timeout. It can also be a pair (tuple) of
@@ -720,6 +537,9 @@ class AuditApi:
720
537
  organization_id=organization_id,
721
538
  page=page,
722
539
  limit=limit,
540
+ var_from=var_from,
541
+ to=to,
542
+ next_token=next_token,
723
543
  _request_auth=_request_auth,
724
544
  _content_type=_content_type,
725
545
  _headers=_headers,
@@ -746,6 +566,9 @@ class AuditApi:
746
566
  organization_id: Annotated[StrictStr, Field(description="Organization ID")],
747
567
  page: Annotated[Optional[Union[Annotated[float, Field(strict=True, ge=1)], Annotated[int, Field(strict=True, ge=1)]]], Field(description="Page number of the results")] = None,
748
568
  limit: Annotated[Optional[Union[Annotated[float, Field(le=200, strict=True, ge=1)], Annotated[int, Field(le=200, strict=True, ge=1)]]], Field(description="Number of results per page")] = None,
569
+ var_from: Annotated[Optional[datetime], Field(description="From date (ISO 8601 format)")] = None,
570
+ to: Annotated[Optional[datetime], Field(description="To date (ISO 8601 format)")] = None,
571
+ next_token: Annotated[Optional[StrictStr], Field(description="Token for cursor-based pagination. When provided, takes precedence over page parameter.")] = None,
749
572
  _request_timeout: Union[
750
573
  None,
751
574
  Annotated[StrictFloat, Field(gt=0)],
@@ -768,6 +591,12 @@ class AuditApi:
768
591
  :type page: float
769
592
  :param limit: Number of results per page
770
593
  :type limit: float
594
+ :param var_from: From date (ISO 8601 format)
595
+ :type var_from: datetime
596
+ :param to: To date (ISO 8601 format)
597
+ :type to: datetime
598
+ :param next_token: Token for cursor-based pagination. When provided, takes precedence over page parameter.
599
+ :type next_token: str
771
600
  :param _request_timeout: timeout setting for this request. If one
772
601
  number provided, it will be total request
773
602
  timeout. It can also be a pair (tuple) of
@@ -794,6 +623,9 @@ class AuditApi:
794
623
  organization_id=organization_id,
795
624
  page=page,
796
625
  limit=limit,
626
+ var_from=var_from,
627
+ to=to,
628
+ next_token=next_token,
797
629
  _request_auth=_request_auth,
798
630
  _content_type=_content_type,
799
631
  _headers=_headers,
@@ -815,6 +647,9 @@ class AuditApi:
815
647
  organization_id,
816
648
  page,
817
649
  limit,
650
+ var_from,
651
+ to,
652
+ next_token,
818
653
  _request_auth,
819
654
  _content_type,
820
655
  _headers,
@@ -847,6 +682,36 @@ class AuditApi:
847
682
 
848
683
  _query_params.append(('limit', limit))
849
684
 
685
+ if var_from is not None:
686
+ if isinstance(var_from, datetime):
687
+ _query_params.append(
688
+ (
689
+ 'from',
690
+ var_from.strftime(
691
+ self.api_client.configuration.datetime_format
692
+ )
693
+ )
694
+ )
695
+ else:
696
+ _query_params.append(('from', var_from))
697
+
698
+ if to is not None:
699
+ if isinstance(to, datetime):
700
+ _query_params.append(
701
+ (
702
+ 'to',
703
+ to.strftime(
704
+ self.api_client.configuration.datetime_format
705
+ )
706
+ )
707
+ )
708
+ else:
709
+ _query_params.append(('to', to))
710
+
711
+ if next_token is not None:
712
+
713
+ _query_params.append(('nextToken', next_token))
714
+
850
715
  # process the header parameters
851
716
  # process the form parameters
852
717
  # process the body parameter
@@ -69,7 +69,7 @@ class OrganizationsApi:
69
69
  _content_type: Optional[StrictStr] = None,
70
70
  _headers: Optional[Dict[StrictStr, Any]] = None,
71
71
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
72
- ) -> None:
72
+ ) -> OrganizationInvitation:
73
73
  """Accept organization invitation
74
74
 
75
75
 
@@ -106,7 +106,7 @@ class OrganizationsApi:
106
106
  )
107
107
 
108
108
  _response_types_map: Dict[str, Optional[str]] = {
109
- '200': None,
109
+ '200': "OrganizationInvitation",
110
110
  }
111
111
  response_data = self.api_client.call_api(
112
112
  *_param,
@@ -135,7 +135,7 @@ class OrganizationsApi:
135
135
  _content_type: Optional[StrictStr] = None,
136
136
  _headers: Optional[Dict[StrictStr, Any]] = None,
137
137
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
138
- ) -> ApiResponse[None]:
138
+ ) -> ApiResponse[OrganizationInvitation]:
139
139
  """Accept organization invitation
140
140
 
141
141
 
@@ -172,7 +172,7 @@ class OrganizationsApi:
172
172
  )
173
173
 
174
174
  _response_types_map: Dict[str, Optional[str]] = {
175
- '200': None,
175
+ '200': "OrganizationInvitation",
176
176
  }
177
177
  response_data = self.api_client.call_api(
178
178
  *_param,
@@ -238,7 +238,7 @@ class OrganizationsApi:
238
238
  )
239
239
 
240
240
  _response_types_map: Dict[str, Optional[str]] = {
241
- '200': None,
241
+ '200': "OrganizationInvitation",
242
242
  }
243
243
  response_data = self.api_client.call_api(
244
244
  *_param,
@@ -279,6 +279,13 @@ class OrganizationsApi:
279
279
  # process the body parameter
280
280
 
281
281
 
282
+ # set the HTTP header `Accept`
283
+ if 'Accept' not in _header_params:
284
+ _header_params['Accept'] = self.api_client.select_header_accept(
285
+ [
286
+ 'application/json'
287
+ ]
288
+ )
282
289
 
283
290
 
284
291
  # authentication setting
@@ -307,6 +307,250 @@ class RunnersApi:
307
307
 
308
308
 
309
309
 
310
+ @validate_call
311
+ def get_info_for_authenticated_runner(
312
+ self,
313
+ _request_timeout: Union[
314
+ None,
315
+ Annotated[StrictFloat, Field(gt=0)],
316
+ Tuple[
317
+ Annotated[StrictFloat, Field(gt=0)],
318
+ Annotated[StrictFloat, Field(gt=0)]
319
+ ]
320
+ ] = None,
321
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
322
+ _content_type: Optional[StrictStr] = None,
323
+ _headers: Optional[Dict[StrictStr, Any]] = None,
324
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
325
+ ) -> Runner:
326
+ """Get info for authenticated runner
327
+
328
+
329
+ :param _request_timeout: timeout setting for this request. If one
330
+ number provided, it will be total request
331
+ timeout. It can also be a pair (tuple) of
332
+ (connection, read) timeouts.
333
+ :type _request_timeout: int, tuple(int, int), optional
334
+ :param _request_auth: set to override the auth_settings for an a single
335
+ request; this effectively ignores the
336
+ authentication in the spec for a single request.
337
+ :type _request_auth: dict, optional
338
+ :param _content_type: force content-type for the request.
339
+ :type _content_type: str, Optional
340
+ :param _headers: set to override the headers for a single
341
+ request; this effectively ignores the headers
342
+ in the spec for a single request.
343
+ :type _headers: dict, optional
344
+ :param _host_index: set to override the host_index for a single
345
+ request; this effectively ignores the host_index
346
+ in the spec for a single request.
347
+ :type _host_index: int, optional
348
+ :return: Returns the result object.
349
+ """ # noqa: E501
350
+
351
+ _param = self._get_info_for_authenticated_runner_serialize(
352
+ _request_auth=_request_auth,
353
+ _content_type=_content_type,
354
+ _headers=_headers,
355
+ _host_index=_host_index
356
+ )
357
+
358
+ _response_types_map: Dict[str, Optional[str]] = {
359
+ '200': "Runner",
360
+ }
361
+ response_data = self.api_client.call_api(
362
+ *_param,
363
+ _request_timeout=_request_timeout
364
+ )
365
+ response_data.read()
366
+ return self.api_client.response_deserialize(
367
+ response_data=response_data,
368
+ response_types_map=_response_types_map,
369
+ ).data
370
+
371
+
372
+ @validate_call
373
+ def get_info_for_authenticated_runner_with_http_info(
374
+ self,
375
+ _request_timeout: Union[
376
+ None,
377
+ Annotated[StrictFloat, Field(gt=0)],
378
+ Tuple[
379
+ Annotated[StrictFloat, Field(gt=0)],
380
+ Annotated[StrictFloat, Field(gt=0)]
381
+ ]
382
+ ] = None,
383
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
384
+ _content_type: Optional[StrictStr] = None,
385
+ _headers: Optional[Dict[StrictStr, Any]] = None,
386
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
387
+ ) -> ApiResponse[Runner]:
388
+ """Get info for authenticated runner
389
+
390
+
391
+ :param _request_timeout: timeout setting for this request. If one
392
+ number provided, it will be total request
393
+ timeout. It can also be a pair (tuple) of
394
+ (connection, read) timeouts.
395
+ :type _request_timeout: int, tuple(int, int), optional
396
+ :param _request_auth: set to override the auth_settings for an a single
397
+ request; this effectively ignores the
398
+ authentication in the spec for a single request.
399
+ :type _request_auth: dict, optional
400
+ :param _content_type: force content-type for the request.
401
+ :type _content_type: str, Optional
402
+ :param _headers: set to override the headers for a single
403
+ request; this effectively ignores the headers
404
+ in the spec for a single request.
405
+ :type _headers: dict, optional
406
+ :param _host_index: set to override the host_index for a single
407
+ request; this effectively ignores the host_index
408
+ in the spec for a single request.
409
+ :type _host_index: int, optional
410
+ :return: Returns the result object.
411
+ """ # noqa: E501
412
+
413
+ _param = self._get_info_for_authenticated_runner_serialize(
414
+ _request_auth=_request_auth,
415
+ _content_type=_content_type,
416
+ _headers=_headers,
417
+ _host_index=_host_index
418
+ )
419
+
420
+ _response_types_map: Dict[str, Optional[str]] = {
421
+ '200': "Runner",
422
+ }
423
+ response_data = self.api_client.call_api(
424
+ *_param,
425
+ _request_timeout=_request_timeout
426
+ )
427
+ response_data.read()
428
+ return self.api_client.response_deserialize(
429
+ response_data=response_data,
430
+ response_types_map=_response_types_map,
431
+ )
432
+
433
+
434
+ @validate_call
435
+ def get_info_for_authenticated_runner_without_preload_content(
436
+ self,
437
+ _request_timeout: Union[
438
+ None,
439
+ Annotated[StrictFloat, Field(gt=0)],
440
+ Tuple[
441
+ Annotated[StrictFloat, Field(gt=0)],
442
+ Annotated[StrictFloat, Field(gt=0)]
443
+ ]
444
+ ] = None,
445
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
446
+ _content_type: Optional[StrictStr] = None,
447
+ _headers: Optional[Dict[StrictStr, Any]] = None,
448
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
449
+ ) -> RESTResponseType:
450
+ """Get info for authenticated runner
451
+
452
+
453
+ :param _request_timeout: timeout setting for this request. If one
454
+ number provided, it will be total request
455
+ timeout. It can also be a pair (tuple) of
456
+ (connection, read) timeouts.
457
+ :type _request_timeout: int, tuple(int, int), optional
458
+ :param _request_auth: set to override the auth_settings for an a single
459
+ request; this effectively ignores the
460
+ authentication in the spec for a single request.
461
+ :type _request_auth: dict, optional
462
+ :param _content_type: force content-type for the request.
463
+ :type _content_type: str, Optional
464
+ :param _headers: set to override the headers for a single
465
+ request; this effectively ignores the headers
466
+ in the spec for a single request.
467
+ :type _headers: dict, optional
468
+ :param _host_index: set to override the host_index for a single
469
+ request; this effectively ignores the host_index
470
+ in the spec for a single request.
471
+ :type _host_index: int, optional
472
+ :return: Returns the result object.
473
+ """ # noqa: E501
474
+
475
+ _param = self._get_info_for_authenticated_runner_serialize(
476
+ _request_auth=_request_auth,
477
+ _content_type=_content_type,
478
+ _headers=_headers,
479
+ _host_index=_host_index
480
+ )
481
+
482
+ _response_types_map: Dict[str, Optional[str]] = {
483
+ '200': "Runner",
484
+ }
485
+ response_data = self.api_client.call_api(
486
+ *_param,
487
+ _request_timeout=_request_timeout
488
+ )
489
+ return response_data.response
490
+
491
+
492
+ def _get_info_for_authenticated_runner_serialize(
493
+ self,
494
+ _request_auth,
495
+ _content_type,
496
+ _headers,
497
+ _host_index,
498
+ ) -> RequestSerialized:
499
+
500
+ _host = None
501
+
502
+ _collection_formats: Dict[str, str] = {
503
+ }
504
+
505
+ _path_params: Dict[str, str] = {}
506
+ _query_params: List[Tuple[str, str]] = []
507
+ _header_params: Dict[str, Optional[str]] = _headers or {}
508
+ _form_params: List[Tuple[str, str]] = []
509
+ _files: Dict[
510
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
511
+ ] = {}
512
+ _body_params: Optional[bytes] = None
513
+
514
+ # process the path parameters
515
+ # process the query parameters
516
+ # process the header parameters
517
+ # process the form parameters
518
+ # process the body parameter
519
+
520
+
521
+ # set the HTTP header `Accept`
522
+ if 'Accept' not in _header_params:
523
+ _header_params['Accept'] = self.api_client.select_header_accept(
524
+ [
525
+ 'application/json'
526
+ ]
527
+ )
528
+
529
+
530
+ # authentication setting
531
+ _auth_settings: List[str] = [
532
+ 'bearer',
533
+ 'oauth2'
534
+ ]
535
+
536
+ return self.api_client.param_serialize(
537
+ method='GET',
538
+ resource_path='/runners/me',
539
+ path_params=_path_params,
540
+ query_params=_query_params,
541
+ header_params=_header_params,
542
+ body=_body_params,
543
+ post_params=_form_params,
544
+ files=_files,
545
+ auth_settings=_auth_settings,
546
+ collection_formats=_collection_formats,
547
+ _host=_host,
548
+ _request_auth=_request_auth
549
+ )
550
+
551
+
552
+
553
+
310
554
  @validate_call
311
555
  def get_runner_by_sandbox_id(
312
556
  self,
@@ -30,7 +30,6 @@ from daytona_api_client.models.computer_use_start_response import ComputerUseSta
30
30
  from daytona_api_client.models.computer_use_status_response import ComputerUseStatusResponse
31
31
  from daytona_api_client.models.computer_use_stop_response import ComputerUseStopResponse
32
32
  from daytona_api_client.models.create_api_key import CreateApiKey
33
- from daytona_api_client.models.create_audit_log import CreateAuditLog
34
33
  from daytona_api_client.models.create_build_info import CreateBuildInfo
35
34
  from daytona_api_client.models.create_docker_registry import CreateDockerRegistry
36
35
  from daytona_api_client.models.create_linked_account import CreateLinkedAccount
@@ -39,8 +39,8 @@ class CreateAuditLog(BaseModel):
39
39
  @field_validator('action')
40
40
  def action_validate_enum(cls, value):
41
41
  """Validates the enum"""
42
- if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
43
- raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
42
+ if value not in set(['create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process']):
43
+ raise ValueError("must be one of enum values ('create', 'read', 'update', 'delete', 'login', 'set_default', 'update_access', 'update_quota', 'suspend', 'unsuspend', 'accept', 'decline', 'link_account', 'unlink_account', 'leave_organization', 'regenerate_key_pair', 'update_scheduling', 'start', 'stop', 'replace_labels', 'create_backup', 'update_public_status', 'set_auto_stop_interval', 'set_auto_archive_interval', 'set_auto_delete_interval', 'archive', 'get_port_preview_url', 'set_general_status', 'activate', 'deactivate', 'update_network_settings', 'get_webhook_app_portal_access', 'send_webhook_message', 'initialize_webhooks', 'update_sandbox_default_limited_network_egress', 'create_ssh_access', 'revoke_ssh_access', 'toolbox_delete_file', 'toolbox_download_file', 'toolbox_create_folder', 'toolbox_move_file', 'toolbox_set_file_permissions', 'toolbox_replace_in_files', 'toolbox_upload_file', 'toolbox_bulk_upload_files', 'toolbox_git_add_files', 'toolbox_git_create_branch', 'toolbox_git_delete_branch', 'toolbox_git_clone_repository', 'toolbox_git_commit_changes', 'toolbox_git_pull_changes', 'toolbox_git_push_changes', 'toolbox_git_checkout_branch', 'toolbox_execute_command', 'toolbox_create_session', 'toolbox_session_execute_command', 'toolbox_delete_session', 'toolbox_computer_use_start', 'toolbox_computer_use_stop', 'toolbox_computer_use_restart_process')")
44
44
  return value
45
45
 
46
46
  @field_validator('target_type')
@@ -18,8 +18,8 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import json
20
20
 
21
- from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt
22
- from typing import Any, ClassVar, Dict, List, Union
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional, Union
23
23
  from daytona_api_client.models.audit_log import AuditLog
24
24
  from typing import Optional, Set
25
25
  from typing_extensions import Self
@@ -32,8 +32,9 @@ class PaginatedAuditLogs(BaseModel):
32
32
  total: Union[StrictFloat, StrictInt]
33
33
  page: Union[StrictFloat, StrictInt]
34
34
  total_pages: Union[StrictFloat, StrictInt] = Field(alias="totalPages")
35
+ next_token: Optional[StrictStr] = Field(default=None, description="Token for next page in cursor-based pagination", alias="nextToken")
35
36
  additional_properties: Dict[str, Any] = {}
36
- __properties: ClassVar[List[str]] = ["items", "total", "page", "totalPages"]
37
+ __properties: ClassVar[List[str]] = ["items", "total", "page", "totalPages", "nextToken"]
37
38
 
38
39
  model_config = ConfigDict(
39
40
  populate_by_name=True,
@@ -103,7 +104,8 @@ class PaginatedAuditLogs(BaseModel):
103
104
  "items": [AuditLog.from_dict(_item) for _item in obj["items"]] if obj.get("items") is not None else None,
104
105
  "total": obj.get("total"),
105
106
  "page": obj.get("page"),
106
- "totalPages": obj.get("totalPages")
107
+ "totalPages": obj.get("totalPages"),
108
+ "nextToken": obj.get("nextToken")
107
109
  })
108
110
  # store additional fields in additional_properties
109
111
  for _key in obj.keys():
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
@@ -30,9 +30,8 @@ class PortPreviewUrl(BaseModel):
30
30
  sandbox_id: StrictStr = Field(description="ID of the sandbox", alias="sandboxId")
31
31
  url: StrictStr = Field(description="Preview url")
32
32
  token: StrictStr = Field(description="Access token")
33
- legacy_proxy_url: Optional[StrictStr] = Field(default=None, description="Legacy preview url using runner domain", alias="legacyProxyUrl")
34
33
  additional_properties: Dict[str, Any] = {}
35
- __properties: ClassVar[List[str]] = ["sandboxId", "url", "token", "legacyProxyUrl"]
34
+ __properties: ClassVar[List[str]] = ["sandboxId", "url", "token"]
36
35
 
37
36
  model_config = ConfigDict(
38
37
  populate_by_name=True,
@@ -94,8 +93,7 @@ class PortPreviewUrl(BaseModel):
94
93
  _obj = cls.model_validate({
95
94
  "sandboxId": obj.get("sandboxId"),
96
95
  "url": obj.get("url"),
97
- "token": obj.get("token"),
98
- "legacyProxyUrl": obj.get("legacyProxyUrl")
96
+ "token": obj.get("token")
99
97
  })
100
98
  # store additional fields in additional_properties
101
99
  for _key in obj.keys():
@@ -54,7 +54,6 @@ class Sandbox(BaseModel):
54
54
  auto_stop_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-stop interval in minutes (0 means disabled)", alias="autoStopInterval")
55
55
  auto_archive_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-archive interval in minutes", alias="autoArchiveInterval")
56
56
  auto_delete_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)", alias="autoDeleteInterval")
57
- runner_domain: Optional[StrictStr] = Field(default=None, description="The domain name of the runner", alias="runnerDomain")
58
57
  volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes attached to the sandbox")
59
58
  build_info: Optional[BuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
60
59
  created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the sandbox", alias="createdAt")
@@ -62,7 +61,7 @@ class Sandbox(BaseModel):
62
61
  var_class: Optional[StrictStr] = Field(default=None, description="The class of the sandbox", alias="class")
63
62
  daemon_version: Optional[StrictStr] = Field(default=None, description="The version of the daemon running in the sandbox", alias="daemonVersion")
64
63
  additional_properties: Dict[str, Any] = {}
65
- __properties: ClassVar[List[str]] = ["id", "organizationId", "name", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
64
+ __properties: ClassVar[List[str]] = ["id", "organizationId", "name", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion"]
66
65
 
67
66
  @field_validator('backup_state')
68
67
  def backup_state_validate_enum(cls, value):
@@ -175,7 +174,6 @@ class Sandbox(BaseModel):
175
174
  "autoStopInterval": obj.get("autoStopInterval"),
176
175
  "autoArchiveInterval": obj.get("autoArchiveInterval"),
177
176
  "autoDeleteInterval": obj.get("autoDeleteInterval"),
178
- "runnerDomain": obj.get("runnerDomain"),
179
177
  "volumes": [SandboxVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None,
180
178
  "buildInfo": BuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None,
181
179
  "createdAt": obj.get("createdAt"),
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
@@ -29,10 +29,8 @@ class SshAccessValidationDto(BaseModel):
29
29
  """ # noqa: E501
30
30
  valid: StrictBool = Field(description="Whether the SSH access token is valid")
31
31
  sandbox_id: StrictStr = Field(description="ID of the sandbox this SSH access is for", alias="sandboxId")
32
- runner_id: Optional[StrictStr] = Field(default=None, description="ID of the runner hosting the sandbox", alias="runnerId")
33
- runner_domain: Optional[StrictStr] = Field(default=None, description="Domain of the runner hosting the sandbox", alias="runnerDomain")
34
32
  additional_properties: Dict[str, Any] = {}
35
- __properties: ClassVar[List[str]] = ["valid", "sandboxId", "runnerId", "runnerDomain"]
33
+ __properties: ClassVar[List[str]] = ["valid", "sandboxId"]
36
34
 
37
35
  model_config = ConfigDict(
38
36
  populate_by_name=True,
@@ -93,9 +91,7 @@ class SshAccessValidationDto(BaseModel):
93
91
 
94
92
  _obj = cls.model_validate({
95
93
  "valid": obj.get("valid"),
96
- "sandboxId": obj.get("sandboxId"),
97
- "runnerId": obj.get("runnerId"),
98
- "runnerDomain": obj.get("runnerDomain")
94
+ "sandboxId": obj.get("sandboxId")
99
95
  })
100
96
  # store additional fields in additional_properties
101
97
  for _key in obj.keys():
@@ -55,7 +55,6 @@ class Workspace(BaseModel):
55
55
  auto_stop_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-stop interval in minutes (0 means disabled)", alias="autoStopInterval")
56
56
  auto_archive_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-archive interval in minutes", alias="autoArchiveInterval")
57
57
  auto_delete_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)", alias="autoDeleteInterval")
58
- runner_domain: Optional[StrictStr] = Field(default=None, description="The domain name of the runner", alias="runnerDomain")
59
58
  volumes: Optional[List[SandboxVolume]] = Field(default=None, description="Array of volumes attached to the sandbox")
60
59
  build_info: Optional[BuildInfo] = Field(default=None, description="Build information for the sandbox", alias="buildInfo")
61
60
  created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the sandbox", alias="createdAt")
@@ -67,7 +66,7 @@ class Workspace(BaseModel):
67
66
  snapshot_created_at: Optional[StrictStr] = Field(default=None, description="The creation timestamp of the last snapshot", alias="snapshotCreatedAt")
68
67
  info: Optional[SandboxInfo] = Field(default=None, description="Additional information about the sandbox")
69
68
  additional_properties: Dict[str, Any] = {}
70
- __properties: ClassVar[List[str]] = ["id", "organizationId", "name", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "runnerDomain", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "image", "snapshotState", "snapshotCreatedAt", "info"]
69
+ __properties: ClassVar[List[str]] = ["id", "organizationId", "name", "snapshot", "user", "env", "labels", "public", "networkBlockAll", "networkAllowList", "target", "cpu", "gpu", "memory", "disk", "state", "desiredState", "errorReason", "backupState", "backupCreatedAt", "autoStopInterval", "autoArchiveInterval", "autoDeleteInterval", "volumes", "buildInfo", "createdAt", "updatedAt", "class", "daemonVersion", "image", "snapshotState", "snapshotCreatedAt", "info"]
71
70
 
72
71
  @field_validator('backup_state')
73
72
  def backup_state_validate_enum(cls, value):
@@ -193,7 +192,6 @@ class Workspace(BaseModel):
193
192
  "autoStopInterval": obj.get("autoStopInterval"),
194
193
  "autoArchiveInterval": obj.get("autoArchiveInterval"),
195
194
  "autoDeleteInterval": obj.get("autoDeleteInterval"),
196
- "runnerDomain": obj.get("runnerDomain"),
197
195
  "volumes": [SandboxVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None,
198
196
  "buildInfo": BuildInfo.from_dict(obj["buildInfo"]) if obj.get("buildInfo") is not None else None,
199
197
  "createdAt": obj.get("createdAt"),
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import json
20
20
 
21
21
  from pydantic import BaseModel, ConfigDict, Field, StrictStr
22
- from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Any, ClassVar, Dict, List
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
25
25
 
@@ -29,9 +29,8 @@ class WorkspacePortPreviewUrl(BaseModel):
29
29
  """ # noqa: E501
30
30
  url: StrictStr = Field(description="Preview url")
31
31
  token: StrictStr = Field(description="Access token")
32
- legacy_proxy_url: Optional[StrictStr] = Field(default=None, description="Legacy preview url using runner domain", alias="legacyProxyUrl")
33
32
  additional_properties: Dict[str, Any] = {}
34
- __properties: ClassVar[List[str]] = ["url", "token", "legacyProxyUrl"]
33
+ __properties: ClassVar[List[str]] = ["url", "token"]
35
34
 
36
35
  model_config = ConfigDict(
37
36
  populate_by_name=True,
@@ -92,8 +91,7 @@ class WorkspacePortPreviewUrl(BaseModel):
92
91
 
93
92
  _obj = cls.model_validate({
94
93
  "url": obj.get("url"),
95
- "token": obj.get("token"),
96
- "legacyProxyUrl": obj.get("legacyProxyUrl")
94
+ "token": obj.get("token")
97
95
  })
98
96
  # store additional fields in additional_properties
99
97
  for _key in obj.keys():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client
3
- Version: 0.110.2
3
+ Version: 0.111.1
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -8,7 +8,7 @@ Author-email: support@daytona.com
8
8
  Keywords: OpenAPI,OpenAPI-Generator,Daytona
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE
11
- Requires-Dist: urllib3<3.0.0,>=1.25.3
11
+ Requires-Dist: urllib3<3.0.0,>=2.1.0
12
12
  Requires-Dist: python-dateutil>=2.8.2
13
13
  Requires-Dist: pydantic>=2
14
14
  Requires-Dist: typing-extensions>=4.7.1
@@ -1,4 +1,4 @@
1
- daytona_api_client/__init__.py,sha256=5W91nrQVKIRlO-_k2_BuhQJmUwblsc5l8e-D8RO4lbU,12417
1
+ daytona_api_client/__init__.py,sha256=_k6LHetTgVY6ZK_3Gu8268HQ6wPfDEabSqxwUFc9KvM,12347
2
2
  daytona_api_client/api_client.py,sha256=9EKcRsveS2okE5kTbp212LVTY6LJATDZEqA8Rj77vXY,27455
3
3
  daytona_api_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
4
  daytona_api_client/configuration.py,sha256=Dz7AXjEZ4BCCCUoGQZLfXUTtuH1PUuo3KrlwLO5Dlsk,18241
@@ -7,15 +7,15 @@ daytona_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  daytona_api_client/rest.py,sha256=H40AJj0ztQ4zkYCrH7-rJXFZ59kQUFm79CHO7UA5bgQ,9425
8
8
  daytona_api_client/api/__init__.py,sha256=3fWn1epDo94muacOWWdUt1Keqy5k2uhrS87I-CYYqEg,1015
9
9
  daytona_api_client/api/api_keys_api.py,sha256=ukjLCI7795BzYYiSBtq1oeWPyDaHY-G4_xCDFbHcxv0,65578
10
- daytona_api_client/api/audit_api.py,sha256=5kEams6y6fkxpXxVgHMIuDuO2hmnnuh6TCVsA8O7crc,34904
10
+ daytona_api_client/api/audit_api.py,sha256=QcyTW2o0XvlSxGUgtBeq_gF3hJBr2vaUWn0jS7S4rJM,31143
11
11
  daytona_api_client/api/config_api.py,sha256=yI2MFFZrMThchVBYQGrGrsmaOLHs7cksnHbt7CcwZvk,10278
12
12
  daytona_api_client/api/default_api.py,sha256=4-VA8V8k3HRRMrs94ANAwkyDKVAZWmNlm2g1X87WOrA,74162
13
13
  daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzdYa7nK9wOPQ5rgB8U,78838
14
14
  daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogNoUPzFsc,10533
15
15
  daytona_api_client/api/object_storage_api.py,sha256=aliX_Jj8omBsm-H82lf10L4jnPvFpnovQTSScVaEtko,11628
16
- daytona_api_client/api/organizations_api.py,sha256=ve8cb9Oa6fAeKgcysbl4MVZ6I6_0pI51vYs_3g9Yn4g,276339
16
+ daytona_api_client/api/organizations_api.py,sha256=w7DfApcRCMka5zCONSALz3ksGUoLeE9XVA8F0Rpja58,276683
17
17
  daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
18
- daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
18
+ daytona_api_client/api/runners_api.py,sha256=yp0CMZzo1FfHGOlOU0EoLu7GcHIjFDzsg-iEFPX1H7o,58319
19
19
  daytona_api_client/api/sandbox_api.py,sha256=i_aVfhcKxSJFeecXi3PWyOywzsE5fTxqjJtZtvjqnAo,280196
20
20
  daytona_api_client/api/snapshots_api.py,sha256=I95ano5XaE6EOMX40lIuhC1JTBtHO-ktwye4JwD6nd0,105729
21
21
  daytona_api_client/api/toolbox_api.py,sha256=Vf1ADiXdmlQ2O76ZnJlfj3BXNRvlL8I7SzvkKV1Mbkg,815056
@@ -23,7 +23,7 @@ daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGR
23
23
  daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
24
24
  daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
25
25
  daytona_api_client/api/workspace_api.py,sha256=3zBOCWxNrOqktkdRw655uGVqbl3CfT7dWdov3D86Fpg,169392
26
- daytona_api_client/models/__init__.py,sha256=sa4hM8FEWhGqGKGigjiD4R7cqT2nbqiD1ZFaPTVKYF8,10866
26
+ daytona_api_client/models/__init__.py,sha256=Xv_DcJApTmKgvp5_fQyVBBeQVmPF6o3mdKNwGQRd1V0,10796
27
27
  daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
28
28
  daytona_api_client/models/announcement.py,sha256=zO3Wa5yUYP2BDJ_3Weemiob_eMNXUZ1B_np-lQSLSgM,3283
29
29
  daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
@@ -39,7 +39,7 @@ daytona_api_client/models/computer_use_start_response.py,sha256=9VYe5UMBU-0EpGaw
39
39
  daytona_api_client/models/computer_use_status_response.py,sha256=P2dNSx1Ot-szu4y5gk1GCEJixCxsXrVnMNetxeYMh54,3489
40
40
  daytona_api_client/models/computer_use_stop_response.py,sha256=FUpPYsIMPXqCGKYqdvVozjHHthg5j0o8NOMCYXjp5lY,3332
41
41
  daytona_api_client/models/create_api_key.py,sha256=GFv3d-rA2Mbr9UhP-0O0DKm-gvln_JSGFJjMyoSAc8A,4351
42
- daytona_api_client/models/create_audit_log.py,sha256=Hkt8o4LtfbcckOZ6Nico-b_hkOvCMFTKJAZMwC1RP3M,7129
42
+ daytona_api_client/models/create_audit_log.py,sha256=c8Mr7c8CvzPmq7jeyaBleVtQWbWB9gYcnH45TqQIt68,7213
43
43
  daytona_api_client/models/create_build_info.py,sha256=hepmmgcZn199sgLksLm3ksJNSv-XLSgqL2BPdFnNAdg,3402
44
44
  daytona_api_client/models/create_docker_registry.py,sha256=1OY_X334xhZsevKHZj3VbRSHFQDkkPXMo-2zB5PCNdw,4337
45
45
  daytona_api_client/models/create_linked_account.py,sha256=ar_cK_7Ep9iQ6zKeYDEMhQ5m3jc5EuomXj9SpdtWtSE,3289
@@ -107,11 +107,11 @@ daytona_api_client/models/organization_sandbox_default_network_block_all.py,sha2
107
107
  daytona_api_client/models/organization_suspension.py,sha256=Pd6oBCKzlvI7xAfjDamyte2eHJKOZBFgG3GXMUVOe2A,3586
108
108
  daytona_api_client/models/organization_usage_overview.py,sha256=49A5lhlQf30c2i5YdEZ17VCnFp_35zhVHBC76Eju_R0,4736
109
109
  daytona_api_client/models/organization_user.py,sha256=t4rkA-cpCRLgLqDMplg1yv2JYUu7jrRBLPL1xkcjaJI,4889
110
- daytona_api_client/models/paginated_audit_logs.py,sha256=CThN80Prqq93G6w6GqFxAA6zlWfcZREPG4T0r8obhgw,3835
110
+ daytona_api_client/models/paginated_audit_logs.py,sha256=vTt5tgFl9NNWUUub1ITbHOdklgBSGXU4iF4DvrLS5ps,4055
111
111
  daytona_api_client/models/paginated_sandboxes.py,sha256=W4c3DkdTecRNGwA_JcsRUyTliuzOc3tq85IoDpCLw4w,3830
112
112
  daytona_api_client/models/paginated_snapshots.py,sha256=JR1uNBGE_GhCWSROnpL1BRxQt4FaOOb56yDfYLUh5O0,3847
113
113
  daytona_api_client/models/paginated_snapshots_dto.py,sha256=v0b9U3XZUjQ2AVJE0Vv-2Do9rCuy2aN4ZwU8s_L8fUw,3859
114
- daytona_api_client/models/port_preview_url.py,sha256=8g3D1bSUfrczpDST0ykV3W0-Sc6L8GN4n9NgbR-Zqcg,3536
114
+ daytona_api_client/models/port_preview_url.py,sha256=k7hDachl3cgItHO3Tfd-YrdM1VaT34aF25oNpgDLLuQ,3309
115
115
  daytona_api_client/models/position.py,sha256=cdJuHMmQrTCxYhKwFbi7NODF7W4fbIxuu4rjw5pJjF0,3141
116
116
  daytona_api_client/models/posthog_config.py,sha256=G_bxf3xbxeikp1jbtJbfFCsjHl8CI61DyTc-VSjOmP4,3192
117
117
  daytona_api_client/models/process_errors_response.py,sha256=VOT39yX9nhISVfqW4v690bxW0u7wYebUu1cWH8S9uwg,3336
@@ -134,7 +134,7 @@ daytona_api_client/models/runner.py,sha256=LMarXEdCzSJUg7A6OKMiyO7tlDHPdMBLKF5gT
134
134
  daytona_api_client/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
135
135
  daytona_api_client/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
136
136
  daytona_api_client/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
137
- daytona_api_client/models/sandbox.py,sha256=n-xDR9NjVN0n6GeXU8TdEKSwYkMU8SKg2bwGllfbZz0,10027
137
+ daytona_api_client/models/sandbox.py,sha256=V69OqPdq8SwSN4SlPTBmnvOdhDwHtpu6JiXbvrbVv3s,9830
138
138
  daytona_api_client/models/sandbox_class.py,sha256=Suwn9F4jLgtEdLtCWV86PpCtcfZ653h4bMYrmzrwBBc,731
139
139
  daytona_api_client/models/sandbox_created_post_request.py,sha256=V1WO2DYyN96kvSum-MbokTw70QpwR3bM_03xGmsVb0g,3661
140
140
  daytona_api_client/models/sandbox_created_post_request_data.py,sha256=Z0YpC0MPxUIhghxqY3dXSG-HSCXStiY4QK3l29SXts0,5931
@@ -163,7 +163,7 @@ daytona_api_client/models/snapshot_state_updated_post_request.py,sha256=JyIRjsip
163
163
  daytona_api_client/models/snapshot_state_updated_post_request_data.py,sha256=8fGICg10-_oTNDGxqqeZBAUzn0kaVtT_ZALJQiS5fy8,5004
164
164
  daytona_api_client/models/snapshot_state_updated_post_request_data_snapshot.py,sha256=0V1cjyZoVDhAoxaD0mhCpXWw6obOqkpeK6S0FY4dUmE,3988
165
165
  daytona_api_client/models/ssh_access_dto.py,sha256=SlKSwrMITp1Gs84p4g9Jo8jOp7pyXgZM-DSj1ywTnUc,3857
166
- daytona_api_client/models/ssh_access_validation_dto.py,sha256=pZPI4xS3fV-FqdH6KbPSAWToTjR4Gmv8KnXbOIXZ7-w,3708
166
+ daytona_api_client/models/ssh_access_validation_dto.py,sha256=eMrFUOTh-F3aIsdrplQ1Wr-oWp_SOb3d7kP9B8_Q9zs,3306
167
167
  daytona_api_client/models/storage_access_dto.py,sha256=aivW_3ewAA5jcevSPyvsTaqqY5nUeaW8_2OPUeih614,3879
168
168
  daytona_api_client/models/update_docker_registry.py,sha256=ya9FuZ3xvkUr0Dt69umaIJZjnH3Fy882qs82pt2iytw,3604
169
169
  daytona_api_client/models/update_organization_invitation.py,sha256=_98DviKjGYq1h_zKngy0WphVyvi19d6kO8yiMgviX5A,3809
@@ -189,10 +189,10 @@ daytona_api_client/models/webhook_initialization_status.py,sha256=zmw2g68mZfYXND
189
189
  daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcEyawzwtnWnwGngsFs,3295
190
190
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
191
191
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
192
- daytona_api_client/models/workspace.py,sha256=ZevUloA5J3RQtq3IW_6_nCGnSg6O-3yN3U7Z-8g9ca4,11447
193
- daytona_api_client/models/workspace_port_preview_url.py,sha256=4PwSkVyEBwmi40NJXJCUJT63b5g5-wpD54ezDZ0QwKM,3426
194
- daytona_api_client-0.110.2.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
195
- daytona_api_client-0.110.2.dist-info/METADATA,sha256=avAGnPb9EhhyEfHXLLfkYbCSctW3XcTF_klvNtRFvT8,619
196
- daytona_api_client-0.110.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
197
- daytona_api_client-0.110.2.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
198
- daytona_api_client-0.110.2.dist-info/RECORD,,
192
+ daytona_api_client/models/workspace.py,sha256=GHMcBgT1QeutcJrH8o-34ZX-ITVL7wtUhtk-K8kFJFU,11250
193
+ daytona_api_client/models/workspace_port_preview_url.py,sha256=WoNoKEFK2sitDp9Np5icJO8ZdqiM4G9iws8z6LZKkiA,3199
194
+ daytona_api_client-0.111.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
195
+ daytona_api_client-0.111.1.dist-info/METADATA,sha256=4L3tLS6mobtiUsF_rj154ek292rUNBlZLAXSyOIbSC4,618
196
+ daytona_api_client-0.111.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
197
+ daytona_api_client-0.111.1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
198
+ daytona_api_client-0.111.1.dist-info/RECORD,,