daytona_api_client 0.28.0rc1__py3-none-any.whl → 0.102.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.

@@ -162,7 +162,6 @@ from daytona_api_client.models.update_organization_member_role import UpdateOrga
162
162
  from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
163
163
  from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
164
164
  from daytona_api_client.models.user import User
165
- from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
166
165
  from daytona_api_client.models.user_public_key import UserPublicKey
167
166
  from daytona_api_client.models.volume_dto import VolumeDto
168
167
  from daytona_api_client.models.volume_state import VolumeState
@@ -170,5 +169,4 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
170
169
  from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
171
170
  from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
172
171
  from daytona_api_client.models.windows_response import WindowsResponse
173
- from daytona_api_client.models.work_dir_response import WorkDirResponse
174
172
  from daytona_api_client.models.workspace import Workspace
@@ -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
- ) -> None:
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': None,
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[None]:
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': None,
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': None,
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
@@ -72,9 +72,7 @@ from daytona_api_client.models.search_files_response import SearchFilesResponse
72
72
  from daytona_api_client.models.session import Session
73
73
  from daytona_api_client.models.session_execute_request import SessionExecuteRequest
74
74
  from daytona_api_client.models.session_execute_response import SessionExecuteResponse
75
- from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
76
75
  from daytona_api_client.models.windows_response import WindowsResponse
77
- from daytona_api_client.models.work_dir_response import WorkDirResponse
78
76
 
79
77
  from daytona_api_client.api_client import ApiClient, RequestSerialized
80
78
  from daytona_api_client.api_response import ApiResponse
@@ -5130,7 +5128,7 @@ class ToolboxApi:
5130
5128
  _headers: Optional[Dict[StrictStr, Any]] = None,
5131
5129
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5132
5130
  ) -> ProjectDirResponse:
5133
- """(Deprecated) Get sandbox project dir
5131
+ """Get sandbox project dir
5134
5132
 
5135
5133
 
5136
5134
  :param sandbox_id: (required)
@@ -5158,7 +5156,6 @@ class ToolboxApi:
5158
5156
  :type _host_index: int, optional
5159
5157
  :return: Returns the result object.
5160
5158
  """ # noqa: E501
5161
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5162
5159
 
5163
5160
  _param = self._get_project_dir_serialize(
5164
5161
  sandbox_id=sandbox_id,
@@ -5201,7 +5198,7 @@ class ToolboxApi:
5201
5198
  _headers: Optional[Dict[StrictStr, Any]] = None,
5202
5199
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5203
5200
  ) -> ApiResponse[ProjectDirResponse]:
5204
- """(Deprecated) Get sandbox project dir
5201
+ """Get sandbox project dir
5205
5202
 
5206
5203
 
5207
5204
  :param sandbox_id: (required)
@@ -5229,7 +5226,6 @@ class ToolboxApi:
5229
5226
  :type _host_index: int, optional
5230
5227
  :return: Returns the result object.
5231
5228
  """ # noqa: E501
5232
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5233
5229
 
5234
5230
  _param = self._get_project_dir_serialize(
5235
5231
  sandbox_id=sandbox_id,
@@ -5272,7 +5268,7 @@ class ToolboxApi:
5272
5268
  _headers: Optional[Dict[StrictStr, Any]] = None,
5273
5269
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
5274
5270
  ) -> RESTResponseType:
5275
- """(Deprecated) Get sandbox project dir
5271
+ """Get sandbox project dir
5276
5272
 
5277
5273
 
5278
5274
  :param sandbox_id: (required)
@@ -5300,7 +5296,6 @@ class ToolboxApi:
5300
5296
  :type _host_index: int, optional
5301
5297
  :return: Returns the result object.
5302
5298
  """ # noqa: E501
5303
- warnings.warn("GET /toolbox/{sandboxId}/toolbox/project-dir is deprecated.", DeprecationWarning)
5304
5299
 
5305
5300
  _param = self._get_project_dir_serialize(
5306
5301
  sandbox_id=sandbox_id,
@@ -6313,352 +6308,7 @@ class ToolboxApi:
6313
6308
 
6314
6309
 
6315
6310
  @validate_call
6316
- def get_user_home_dir(
6317
- self,
6318
- sandbox_id: StrictStr,
6319
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6320
- _request_timeout: Union[
6321
- None,
6322
- Annotated[StrictFloat, Field(gt=0)],
6323
- Tuple[
6324
- Annotated[StrictFloat, Field(gt=0)],
6325
- Annotated[StrictFloat, Field(gt=0)]
6326
- ]
6327
- ] = None,
6328
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6329
- _content_type: Optional[StrictStr] = None,
6330
- _headers: Optional[Dict[StrictStr, Any]] = None,
6331
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6332
- ) -> UserHomeDirResponse:
6333
- """Get sandbox user home dir
6334
-
6335
-
6336
- :param sandbox_id: (required)
6337
- :type sandbox_id: str
6338
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6339
- :type x_daytona_organization_id: str
6340
- :param _request_timeout: timeout setting for this request. If one
6341
- number provided, it will be total request
6342
- timeout. It can also be a pair (tuple) of
6343
- (connection, read) timeouts.
6344
- :type _request_timeout: int, tuple(int, int), optional
6345
- :param _request_auth: set to override the auth_settings for an a single
6346
- request; this effectively ignores the
6347
- authentication in the spec for a single request.
6348
- :type _request_auth: dict, optional
6349
- :param _content_type: force content-type for the request.
6350
- :type _content_type: str, Optional
6351
- :param _headers: set to override the headers for a single
6352
- request; this effectively ignores the headers
6353
- in the spec for a single request.
6354
- :type _headers: dict, optional
6355
- :param _host_index: set to override the host_index for a single
6356
- request; this effectively ignores the host_index
6357
- in the spec for a single request.
6358
- :type _host_index: int, optional
6359
- :return: Returns the result object.
6360
- """ # noqa: E501
6361
-
6362
- _param = self._get_user_home_dir_serialize(
6363
- sandbox_id=sandbox_id,
6364
- x_daytona_organization_id=x_daytona_organization_id,
6365
- _request_auth=_request_auth,
6366
- _content_type=_content_type,
6367
- _headers=_headers,
6368
- _host_index=_host_index
6369
- )
6370
-
6371
- _response_types_map: Dict[str, Optional[str]] = {
6372
- '200': "UserHomeDirResponse",
6373
- }
6374
- response_data = self.api_client.call_api(
6375
- *_param,
6376
- _request_timeout=_request_timeout
6377
- )
6378
- response_data.read()
6379
- return self.api_client.response_deserialize(
6380
- response_data=response_data,
6381
- response_types_map=_response_types_map,
6382
- ).data
6383
-
6384
-
6385
- @validate_call
6386
- def get_user_home_dir_with_http_info(
6387
- self,
6388
- sandbox_id: StrictStr,
6389
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6390
- _request_timeout: Union[
6391
- None,
6392
- Annotated[StrictFloat, Field(gt=0)],
6393
- Tuple[
6394
- Annotated[StrictFloat, Field(gt=0)],
6395
- Annotated[StrictFloat, Field(gt=0)]
6396
- ]
6397
- ] = None,
6398
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6399
- _content_type: Optional[StrictStr] = None,
6400
- _headers: Optional[Dict[StrictStr, Any]] = None,
6401
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6402
- ) -> ApiResponse[UserHomeDirResponse]:
6403
- """Get sandbox user home dir
6404
-
6405
-
6406
- :param sandbox_id: (required)
6407
- :type sandbox_id: str
6408
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6409
- :type x_daytona_organization_id: str
6410
- :param _request_timeout: timeout setting for this request. If one
6411
- number provided, it will be total request
6412
- timeout. It can also be a pair (tuple) of
6413
- (connection, read) timeouts.
6414
- :type _request_timeout: int, tuple(int, int), optional
6415
- :param _request_auth: set to override the auth_settings for an a single
6416
- request; this effectively ignores the
6417
- authentication in the spec for a single request.
6418
- :type _request_auth: dict, optional
6419
- :param _content_type: force content-type for the request.
6420
- :type _content_type: str, Optional
6421
- :param _headers: set to override the headers for a single
6422
- request; this effectively ignores the headers
6423
- in the spec for a single request.
6424
- :type _headers: dict, optional
6425
- :param _host_index: set to override the host_index for a single
6426
- request; this effectively ignores the host_index
6427
- in the spec for a single request.
6428
- :type _host_index: int, optional
6429
- :return: Returns the result object.
6430
- """ # noqa: E501
6431
-
6432
- _param = self._get_user_home_dir_serialize(
6433
- sandbox_id=sandbox_id,
6434
- x_daytona_organization_id=x_daytona_organization_id,
6435
- _request_auth=_request_auth,
6436
- _content_type=_content_type,
6437
- _headers=_headers,
6438
- _host_index=_host_index
6439
- )
6440
-
6441
- _response_types_map: Dict[str, Optional[str]] = {
6442
- '200': "UserHomeDirResponse",
6443
- }
6444
- response_data = self.api_client.call_api(
6445
- *_param,
6446
- _request_timeout=_request_timeout
6447
- )
6448
- response_data.read()
6449
- return self.api_client.response_deserialize(
6450
- response_data=response_data,
6451
- response_types_map=_response_types_map,
6452
- )
6453
-
6454
-
6455
- @validate_call
6456
- def get_user_home_dir_without_preload_content(
6457
- self,
6458
- sandbox_id: StrictStr,
6459
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6460
- _request_timeout: Union[
6461
- None,
6462
- Annotated[StrictFloat, Field(gt=0)],
6463
- Tuple[
6464
- Annotated[StrictFloat, Field(gt=0)],
6465
- Annotated[StrictFloat, Field(gt=0)]
6466
- ]
6467
- ] = None,
6468
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6469
- _content_type: Optional[StrictStr] = None,
6470
- _headers: Optional[Dict[StrictStr, Any]] = None,
6471
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6472
- ) -> RESTResponseType:
6473
- """Get sandbox user home dir
6474
-
6475
-
6476
- :param sandbox_id: (required)
6477
- :type sandbox_id: str
6478
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6479
- :type x_daytona_organization_id: str
6480
- :param _request_timeout: timeout setting for this request. If one
6481
- number provided, it will be total request
6482
- timeout. It can also be a pair (tuple) of
6483
- (connection, read) timeouts.
6484
- :type _request_timeout: int, tuple(int, int), optional
6485
- :param _request_auth: set to override the auth_settings for an a single
6486
- request; this effectively ignores the
6487
- authentication in the spec for a single request.
6488
- :type _request_auth: dict, optional
6489
- :param _content_type: force content-type for the request.
6490
- :type _content_type: str, Optional
6491
- :param _headers: set to override the headers for a single
6492
- request; this effectively ignores the headers
6493
- in the spec for a single request.
6494
- :type _headers: dict, optional
6495
- :param _host_index: set to override the host_index for a single
6496
- request; this effectively ignores the host_index
6497
- in the spec for a single request.
6498
- :type _host_index: int, optional
6499
- :return: Returns the result object.
6500
- """ # noqa: E501
6501
-
6502
- _param = self._get_user_home_dir_serialize(
6503
- sandbox_id=sandbox_id,
6504
- x_daytona_organization_id=x_daytona_organization_id,
6505
- _request_auth=_request_auth,
6506
- _content_type=_content_type,
6507
- _headers=_headers,
6508
- _host_index=_host_index
6509
- )
6510
-
6511
- _response_types_map: Dict[str, Optional[str]] = {
6512
- '200': "UserHomeDirResponse",
6513
- }
6514
- response_data = self.api_client.call_api(
6515
- *_param,
6516
- _request_timeout=_request_timeout
6517
- )
6518
- return response_data.response
6519
-
6520
-
6521
- def _get_user_home_dir_serialize(
6522
- self,
6523
- sandbox_id,
6524
- x_daytona_organization_id,
6525
- _request_auth,
6526
- _content_type,
6527
- _headers,
6528
- _host_index,
6529
- ) -> RequestSerialized:
6530
-
6531
- _host = None
6532
-
6533
- _collection_formats: Dict[str, str] = {
6534
- }
6535
-
6536
- _path_params: Dict[str, str] = {}
6537
- _query_params: List[Tuple[str, str]] = []
6538
- _header_params: Dict[str, Optional[str]] = _headers or {}
6539
- _form_params: List[Tuple[str, str]] = []
6540
- _files: Dict[
6541
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
6542
- ] = {}
6543
- _body_params: Optional[bytes] = None
6544
-
6545
- # process the path parameters
6546
- if sandbox_id is not None:
6547
- _path_params['sandboxId'] = sandbox_id
6548
- # process the query parameters
6549
- # process the header parameters
6550
- if x_daytona_organization_id is not None:
6551
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
6552
- # process the form parameters
6553
- # process the body parameter
6554
-
6555
-
6556
- # set the HTTP header `Accept`
6557
- if 'Accept' not in _header_params:
6558
- _header_params['Accept'] = self.api_client.select_header_accept(
6559
- [
6560
- 'application/json'
6561
- ]
6562
- )
6563
-
6564
-
6565
- # authentication setting
6566
- _auth_settings: List[str] = [
6567
- 'bearer',
6568
- 'oauth2'
6569
- ]
6570
-
6571
- return self.api_client.param_serialize(
6572
- method='GET',
6573
- resource_path='/toolbox/{sandboxId}/toolbox/user-home-dir',
6574
- path_params=_path_params,
6575
- query_params=_query_params,
6576
- header_params=_header_params,
6577
- body=_body_params,
6578
- post_params=_form_params,
6579
- files=_files,
6580
- auth_settings=_auth_settings,
6581
- collection_formats=_collection_formats,
6582
- _host=_host,
6583
- _request_auth=_request_auth
6584
- )
6585
-
6586
-
6587
-
6588
-
6589
- @validate_call
6590
- def get_windows(
6591
- self,
6592
- sandbox_id: StrictStr,
6593
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6594
- _request_timeout: Union[
6595
- None,
6596
- Annotated[StrictFloat, Field(gt=0)],
6597
- Tuple[
6598
- Annotated[StrictFloat, Field(gt=0)],
6599
- Annotated[StrictFloat, Field(gt=0)]
6600
- ]
6601
- ] = None,
6602
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6603
- _content_type: Optional[StrictStr] = None,
6604
- _headers: Optional[Dict[StrictStr, Any]] = None,
6605
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6606
- ) -> WindowsResponse:
6607
- """Get windows
6608
-
6609
- Get list of open windows
6610
-
6611
- :param sandbox_id: (required)
6612
- :type sandbox_id: str
6613
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6614
- :type x_daytona_organization_id: str
6615
- :param _request_timeout: timeout setting for this request. If one
6616
- number provided, it will be total request
6617
- timeout. It can also be a pair (tuple) of
6618
- (connection, read) timeouts.
6619
- :type _request_timeout: int, tuple(int, int), optional
6620
- :param _request_auth: set to override the auth_settings for an a single
6621
- request; this effectively ignores the
6622
- authentication in the spec for a single request.
6623
- :type _request_auth: dict, optional
6624
- :param _content_type: force content-type for the request.
6625
- :type _content_type: str, Optional
6626
- :param _headers: set to override the headers for a single
6627
- request; this effectively ignores the headers
6628
- in the spec for a single request.
6629
- :type _headers: dict, optional
6630
- :param _host_index: set to override the host_index for a single
6631
- request; this effectively ignores the host_index
6632
- in the spec for a single request.
6633
- :type _host_index: int, optional
6634
- :return: Returns the result object.
6635
- """ # noqa: E501
6636
-
6637
- _param = self._get_windows_serialize(
6638
- sandbox_id=sandbox_id,
6639
- x_daytona_organization_id=x_daytona_organization_id,
6640
- _request_auth=_request_auth,
6641
- _content_type=_content_type,
6642
- _headers=_headers,
6643
- _host_index=_host_index
6644
- )
6645
-
6646
- _response_types_map: Dict[str, Optional[str]] = {
6647
- '200': "WindowsResponse",
6648
- }
6649
- response_data = self.api_client.call_api(
6650
- *_param,
6651
- _request_timeout=_request_timeout
6652
- )
6653
- response_data.read()
6654
- return self.api_client.response_deserialize(
6655
- response_data=response_data,
6656
- response_types_map=_response_types_map,
6657
- ).data
6658
-
6659
-
6660
- @validate_call
6661
- def get_windows_with_http_info(
6311
+ def get_windows(
6662
6312
  self,
6663
6313
  sandbox_id: StrictStr,
6664
6314
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -6674,7 +6324,7 @@ class ToolboxApi:
6674
6324
  _content_type: Optional[StrictStr] = None,
6675
6325
  _headers: Optional[Dict[StrictStr, Any]] = None,
6676
6326
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6677
- ) -> ApiResponse[WindowsResponse]:
6327
+ ) -> WindowsResponse:
6678
6328
  """Get windows
6679
6329
 
6680
6330
  Get list of open windows
@@ -6725,11 +6375,11 @@ class ToolboxApi:
6725
6375
  return self.api_client.response_deserialize(
6726
6376
  response_data=response_data,
6727
6377
  response_types_map=_response_types_map,
6728
- )
6378
+ ).data
6729
6379
 
6730
6380
 
6731
6381
  @validate_call
6732
- def get_windows_without_preload_content(
6382
+ def get_windows_with_http_info(
6733
6383
  self,
6734
6384
  sandbox_id: StrictStr,
6735
6385
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -6745,7 +6395,7 @@ class ToolboxApi:
6745
6395
  _content_type: Optional[StrictStr] = None,
6746
6396
  _headers: Optional[Dict[StrictStr, Any]] = None,
6747
6397
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6748
- ) -> RESTResponseType:
6398
+ ) -> ApiResponse[WindowsResponse]:
6749
6399
  """Get windows
6750
6400
 
6751
6401
  Get list of open windows
@@ -6792,210 +6442,6 @@ class ToolboxApi:
6792
6442
  *_param,
6793
6443
  _request_timeout=_request_timeout
6794
6444
  )
6795
- return response_data.response
6796
-
6797
-
6798
- def _get_windows_serialize(
6799
- self,
6800
- sandbox_id,
6801
- x_daytona_organization_id,
6802
- _request_auth,
6803
- _content_type,
6804
- _headers,
6805
- _host_index,
6806
- ) -> RequestSerialized:
6807
-
6808
- _host = None
6809
-
6810
- _collection_formats: Dict[str, str] = {
6811
- }
6812
-
6813
- _path_params: Dict[str, str] = {}
6814
- _query_params: List[Tuple[str, str]] = []
6815
- _header_params: Dict[str, Optional[str]] = _headers or {}
6816
- _form_params: List[Tuple[str, str]] = []
6817
- _files: Dict[
6818
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
6819
- ] = {}
6820
- _body_params: Optional[bytes] = None
6821
-
6822
- # process the path parameters
6823
- if sandbox_id is not None:
6824
- _path_params['sandboxId'] = sandbox_id
6825
- # process the query parameters
6826
- # process the header parameters
6827
- if x_daytona_organization_id is not None:
6828
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
6829
- # process the form parameters
6830
- # process the body parameter
6831
-
6832
-
6833
- # set the HTTP header `Accept`
6834
- if 'Accept' not in _header_params:
6835
- _header_params['Accept'] = self.api_client.select_header_accept(
6836
- [
6837
- 'application/json'
6838
- ]
6839
- )
6840
-
6841
-
6842
- # authentication setting
6843
- _auth_settings: List[str] = [
6844
- 'bearer',
6845
- 'oauth2'
6846
- ]
6847
-
6848
- return self.api_client.param_serialize(
6849
- method='GET',
6850
- resource_path='/toolbox/{sandboxId}/toolbox/computeruse/display/windows',
6851
- path_params=_path_params,
6852
- query_params=_query_params,
6853
- header_params=_header_params,
6854
- body=_body_params,
6855
- post_params=_form_params,
6856
- files=_files,
6857
- auth_settings=_auth_settings,
6858
- collection_formats=_collection_formats,
6859
- _host=_host,
6860
- _request_auth=_request_auth
6861
- )
6862
-
6863
-
6864
-
6865
-
6866
- @validate_call
6867
- def get_work_dir(
6868
- self,
6869
- sandbox_id: StrictStr,
6870
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6871
- _request_timeout: Union[
6872
- None,
6873
- Annotated[StrictFloat, Field(gt=0)],
6874
- Tuple[
6875
- Annotated[StrictFloat, Field(gt=0)],
6876
- Annotated[StrictFloat, Field(gt=0)]
6877
- ]
6878
- ] = None,
6879
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6880
- _content_type: Optional[StrictStr] = None,
6881
- _headers: Optional[Dict[StrictStr, Any]] = None,
6882
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6883
- ) -> WorkDirResponse:
6884
- """Get sandbox work-dir
6885
-
6886
-
6887
- :param sandbox_id: (required)
6888
- :type sandbox_id: str
6889
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6890
- :type x_daytona_organization_id: str
6891
- :param _request_timeout: timeout setting for this request. If one
6892
- number provided, it will be total request
6893
- timeout. It can also be a pair (tuple) of
6894
- (connection, read) timeouts.
6895
- :type _request_timeout: int, tuple(int, int), optional
6896
- :param _request_auth: set to override the auth_settings for an a single
6897
- request; this effectively ignores the
6898
- authentication in the spec for a single request.
6899
- :type _request_auth: dict, optional
6900
- :param _content_type: force content-type for the request.
6901
- :type _content_type: str, Optional
6902
- :param _headers: set to override the headers for a single
6903
- request; this effectively ignores the headers
6904
- in the spec for a single request.
6905
- :type _headers: dict, optional
6906
- :param _host_index: set to override the host_index for a single
6907
- request; this effectively ignores the host_index
6908
- in the spec for a single request.
6909
- :type _host_index: int, optional
6910
- :return: Returns the result object.
6911
- """ # noqa: E501
6912
-
6913
- _param = self._get_work_dir_serialize(
6914
- sandbox_id=sandbox_id,
6915
- x_daytona_organization_id=x_daytona_organization_id,
6916
- _request_auth=_request_auth,
6917
- _content_type=_content_type,
6918
- _headers=_headers,
6919
- _host_index=_host_index
6920
- )
6921
-
6922
- _response_types_map: Dict[str, Optional[str]] = {
6923
- '200': "WorkDirResponse",
6924
- }
6925
- response_data = self.api_client.call_api(
6926
- *_param,
6927
- _request_timeout=_request_timeout
6928
- )
6929
- response_data.read()
6930
- return self.api_client.response_deserialize(
6931
- response_data=response_data,
6932
- response_types_map=_response_types_map,
6933
- ).data
6934
-
6935
-
6936
- @validate_call
6937
- def get_work_dir_with_http_info(
6938
- self,
6939
- sandbox_id: StrictStr,
6940
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
6941
- _request_timeout: Union[
6942
- None,
6943
- Annotated[StrictFloat, Field(gt=0)],
6944
- Tuple[
6945
- Annotated[StrictFloat, Field(gt=0)],
6946
- Annotated[StrictFloat, Field(gt=0)]
6947
- ]
6948
- ] = None,
6949
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
6950
- _content_type: Optional[StrictStr] = None,
6951
- _headers: Optional[Dict[StrictStr, Any]] = None,
6952
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
6953
- ) -> ApiResponse[WorkDirResponse]:
6954
- """Get sandbox work-dir
6955
-
6956
-
6957
- :param sandbox_id: (required)
6958
- :type sandbox_id: str
6959
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
6960
- :type x_daytona_organization_id: str
6961
- :param _request_timeout: timeout setting for this request. If one
6962
- number provided, it will be total request
6963
- timeout. It can also be a pair (tuple) of
6964
- (connection, read) timeouts.
6965
- :type _request_timeout: int, tuple(int, int), optional
6966
- :param _request_auth: set to override the auth_settings for an a single
6967
- request; this effectively ignores the
6968
- authentication in the spec for a single request.
6969
- :type _request_auth: dict, optional
6970
- :param _content_type: force content-type for the request.
6971
- :type _content_type: str, Optional
6972
- :param _headers: set to override the headers for a single
6973
- request; this effectively ignores the headers
6974
- in the spec for a single request.
6975
- :type _headers: dict, optional
6976
- :param _host_index: set to override the host_index for a single
6977
- request; this effectively ignores the host_index
6978
- in the spec for a single request.
6979
- :type _host_index: int, optional
6980
- :return: Returns the result object.
6981
- """ # noqa: E501
6982
-
6983
- _param = self._get_work_dir_serialize(
6984
- sandbox_id=sandbox_id,
6985
- x_daytona_organization_id=x_daytona_organization_id,
6986
- _request_auth=_request_auth,
6987
- _content_type=_content_type,
6988
- _headers=_headers,
6989
- _host_index=_host_index
6990
- )
6991
-
6992
- _response_types_map: Dict[str, Optional[str]] = {
6993
- '200': "WorkDirResponse",
6994
- }
6995
- response_data = self.api_client.call_api(
6996
- *_param,
6997
- _request_timeout=_request_timeout
6998
- )
6999
6445
  response_data.read()
7000
6446
  return self.api_client.response_deserialize(
7001
6447
  response_data=response_data,
@@ -7004,7 +6450,7 @@ class ToolboxApi:
7004
6450
 
7005
6451
 
7006
6452
  @validate_call
7007
- def get_work_dir_without_preload_content(
6453
+ def get_windows_without_preload_content(
7008
6454
  self,
7009
6455
  sandbox_id: StrictStr,
7010
6456
  x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
@@ -7021,8 +6467,9 @@ class ToolboxApi:
7021
6467
  _headers: Optional[Dict[StrictStr, Any]] = None,
7022
6468
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
7023
6469
  ) -> RESTResponseType:
7024
- """Get sandbox work-dir
6470
+ """Get windows
7025
6471
 
6472
+ Get list of open windows
7026
6473
 
7027
6474
  :param sandbox_id: (required)
7028
6475
  :type sandbox_id: str
@@ -7050,7 +6497,7 @@ class ToolboxApi:
7050
6497
  :return: Returns the result object.
7051
6498
  """ # noqa: E501
7052
6499
 
7053
- _param = self._get_work_dir_serialize(
6500
+ _param = self._get_windows_serialize(
7054
6501
  sandbox_id=sandbox_id,
7055
6502
  x_daytona_organization_id=x_daytona_organization_id,
7056
6503
  _request_auth=_request_auth,
@@ -7060,7 +6507,7 @@ class ToolboxApi:
7060
6507
  )
7061
6508
 
7062
6509
  _response_types_map: Dict[str, Optional[str]] = {
7063
- '200': "WorkDirResponse",
6510
+ '200': "WindowsResponse",
7064
6511
  }
7065
6512
  response_data = self.api_client.call_api(
7066
6513
  *_param,
@@ -7069,7 +6516,7 @@ class ToolboxApi:
7069
6516
  return response_data.response
7070
6517
 
7071
6518
 
7072
- def _get_work_dir_serialize(
6519
+ def _get_windows_serialize(
7073
6520
  self,
7074
6521
  sandbox_id,
7075
6522
  x_daytona_organization_id,
@@ -7121,7 +6568,7 @@ class ToolboxApi:
7121
6568
 
7122
6569
  return self.api_client.param_serialize(
7123
6570
  method='GET',
7124
- resource_path='/toolbox/{sandboxId}/toolbox/work-dir',
6571
+ resource_path='/toolbox/{sandboxId}/toolbox/computeruse/display/windows',
7125
6572
  path_params=_path_params,
7126
6573
  query_params=_query_params,
7127
6574
  header_params=_header_params,
@@ -131,7 +131,6 @@ from daytona_api_client.models.update_organization_member_role import UpdateOrga
131
131
  from daytona_api_client.models.update_organization_quota import UpdateOrganizationQuota
132
132
  from daytona_api_client.models.update_organization_role import UpdateOrganizationRole
133
133
  from daytona_api_client.models.user import User
134
- from daytona_api_client.models.user_home_dir_response import UserHomeDirResponse
135
134
  from daytona_api_client.models.user_public_key import UserPublicKey
136
135
  from daytona_api_client.models.volume_dto import VolumeDto
137
136
  from daytona_api_client.models.volume_state import VolumeState
@@ -139,5 +138,4 @@ from daytona_api_client.models.webhook_app_portal_access import WebhookAppPortal
139
138
  from daytona_api_client.models.webhook_controller_get_status200_response import WebhookControllerGetStatus200Response
140
139
  from daytona_api_client.models.webhook_initialization_status import WebhookInitializationStatus
141
140
  from daytona_api_client.models.windows_response import WindowsResponse
142
- from daytona_api_client.models.work_dir_response import WorkDirResponse
143
141
  from daytona_api_client.models.workspace import Workspace
@@ -0,0 +1,110 @@
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
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
+ from typing import Any, ClassVar, Dict, List
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class UpdateOrganizationMemberAccess(BaseModel):
27
+ """
28
+ UpdateOrganizationMemberAccess
29
+ """ # noqa: E501
30
+ role: StrictStr = Field(description="Organization member role")
31
+ assigned_role_ids: List[StrictStr] = Field(description="Array of assigned role IDs", alias="assignedRoleIds")
32
+ additional_properties: Dict[str, Any] = {}
33
+ __properties: ClassVar[List[str]] = ["role", "assignedRoleIds"]
34
+
35
+ @field_validator('role')
36
+ def role_validate_enum(cls, value):
37
+ """Validates the enum"""
38
+ if value not in set(['owner', 'member']):
39
+ raise ValueError("must be one of enum values ('owner', 'member')")
40
+ return value
41
+
42
+ model_config = ConfigDict(
43
+ populate_by_name=True,
44
+ validate_assignment=True,
45
+ protected_namespaces=(),
46
+ )
47
+
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.model_dump(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Returns the JSON representation of the model using alias"""
55
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
56
+ return json.dumps(self.to_dict())
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> Optional[Self]:
60
+ """Create an instance of UpdateOrganizationMemberAccess from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self) -> Dict[str, Any]:
64
+ """Return the dictionary representation of the model using alias.
65
+
66
+ This has the following differences from calling pydantic's
67
+ `self.model_dump(by_alias=True)`:
68
+
69
+ * `None` is only added to the output dict for nullable fields that
70
+ were set at model initialization. Other fields with value `None`
71
+ are ignored.
72
+ * Fields in `self.additional_properties` are added to the output dict.
73
+ """
74
+ excluded_fields: Set[str] = set([
75
+ "additional_properties",
76
+ ])
77
+
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ # puts key-value pairs in additional_properties in the top level
84
+ if self.additional_properties is not None:
85
+ for _key, _value in self.additional_properties.items():
86
+ _dict[_key] = _value
87
+
88
+ return _dict
89
+
90
+ @classmethod
91
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
92
+ """Create an instance of UpdateOrganizationMemberAccess from a dict"""
93
+ if obj is None:
94
+ return None
95
+
96
+ if not isinstance(obj, dict):
97
+ return cls.model_validate(obj)
98
+
99
+ _obj = cls.model_validate({
100
+ "role": obj.get("role") if obj.get("role") is not None else 'member',
101
+ "assignedRoleIds": obj.get("assignedRoleIds")
102
+ })
103
+ # store additional fields in additional_properties
104
+ for _key in obj.keys():
105
+ if _key not in cls.__properties:
106
+ _obj.additional_properties[_key] = obj.get(_key)
107
+
108
+ return _obj
109
+
110
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client
3
- Version: 0.28.0rc1
3
+ Version: 0.102.0rc1
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -1,4 +1,4 @@
1
- daytona_api_client/__init__.py,sha256=Ko0xRwSWfxRWK3EBEYQ63i6HKvNGuKogtVhseklgw5Y,11323
1
+ daytona_api_client/__init__.py,sha256=Z_CzxV9a4oC0lKb4_Wzb3aEvceGXAPl4Zh6tulSqHTk,11170
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
@@ -13,16 +13,16 @@ daytona_api_client/api/docker_registry_api.py,sha256=ids7YUbqX4s2uwv7ROhqFqNzHzd
13
13
  daytona_api_client/api/health_api.py,sha256=alnAhh9vQkpx2OmVre6dHmHTlcFldBfqsogNoUPzFsc,10533
14
14
  daytona_api_client/api/object_storage_api.py,sha256=wvOdTUjvlChxzwwzA-49iwjl46F0uFt06Axfcb_BX4Q,11605
15
15
  daytona_api_client/api/organizations_api.py,sha256=ImQo7nBxtzgIiRXMBdyVxrjC-u8dPLKDa3BLqirGn0Y,276660
16
- daytona_api_client/api/preview_api.py,sha256=_cYR0xaBKtYBFUKIRezvR0d6swN7yKkmVkJ5yBLk_ro,31054
16
+ daytona_api_client/api/preview_api.py,sha256=_RrF6vmSegN0twpljDooLykhh6MbUVvkFHKOOC7IHJg,31308
17
17
  daytona_api_client/api/runners_api.py,sha256=kl74Mg19G71Kcj9dNK9xeJCaZ2upk4z-DS7Ul70n-Ww,49018
18
18
  daytona_api_client/api/sandbox_api.py,sha256=yr4s9iuEYpu2mspxJC4WfkVJMpAlEAa1NEI38IwW6R4,210810
19
19
  daytona_api_client/api/snapshots_api.py,sha256=rt0h_XOyGay-JEaqw69-JqiJEq0GbG1U-MKJtg3Ez0c,103174
20
- daytona_api_client/api/toolbox_api.py,sha256=V1jvHhdbonxzpQViZZgPX0MZ6RpeXZ7X08krogkkoFc,742679
20
+ daytona_api_client/api/toolbox_api.py,sha256=Ib_CPZnrmzG3isQ1W8KjGFwjL4er7ydyBUzhcRnW0lM,720355
21
21
  daytona_api_client/api/users_api.py,sha256=KR4cw2mfRp06QV2b0UXXQ1Jcx59TyuS0c7yGRr2Sodk,86402
22
22
  daytona_api_client/api/volumes_api.py,sha256=N9kxZzhfaZxC_YQ-Vi1QksoTIzqp_dFADywgQup1oSk,56613
23
23
  daytona_api_client/api/webhooks_api.py,sha256=epxKIYqZfebDapzSvqUVlJct1KfVr_T3ZnAc9YyiZX8,69516
24
24
  daytona_api_client/api/workspace_api.py,sha256=mjn4jlTtMbKfuqxcr9goo-01RJX-hFjVLT1rF8K5uKI,169328
25
- daytona_api_client/models/__init__.py,sha256=jzbYfYKXRWLQM93YgRcwkTp-yc4aap-KNOoPZ6Dl2hA,9828
25
+ daytona_api_client/models/__init__.py,sha256=aZVCM5puP19O7aIUbnNFBYyTVFyLPurQNt5m-V76_Vk,9675
26
26
  daytona_api_client/models/account_provider.py,sha256=yKJ_dMGnxGalNYuVTmo4CoFHpj1PIssSE1rnUaQeOKY,3154
27
27
  daytona_api_client/models/api_key_list.py,sha256=Q0NYG_KlqZgscz7WpkhTns6z1hYUaZH8yut8X40mQ1A,5166
28
28
  daytona_api_client/models/api_key_response.py,sha256=XWqJdKTMp1w8uoUpmeKn0tKeXeImTJElnTvLunZGX5Y,4611
@@ -152,6 +152,7 @@ daytona_api_client/models/storage_access_dto.py,sha256=aivW_3ewAA5jcevSPyvsTaqqY
152
152
  daytona_api_client/models/update_assigned_organization_roles.py,sha256=G8-T_36mlvj5o0QGO5rhXcMed86NaWyEc8kvhRm4Uho,3172
153
153
  daytona_api_client/models/update_docker_registry.py,sha256=ya9FuZ3xvkUr0Dt69umaIJZjnH3Fy882qs82pt2iytw,3604
154
154
  daytona_api_client/models/update_organization_invitation.py,sha256=_98DviKjGYq1h_zKngy0WphVyvi19d6kO8yiMgviX5A,3809
155
+ daytona_api_client/models/update_organization_member_access.py,sha256=I0q60678RqxDc_-ZWqNf2drqEmEB1FMPpJ60ZL7-MbY,3646
155
156
  daytona_api_client/models/update_organization_member_role.py,sha256=-B8wsTJgQSkQTiYqD0nuc8yUXRRzIX5U0z5z94CTc5Q,3401
156
157
  daytona_api_client/models/update_organization_quota.py,sha256=qfwgYkEKBJHhksdhbC0_LZUt5fBBFehQdtfq5seFSGc,6830
157
158
  daytona_api_client/models/update_organization_role.py,sha256=-Z8oRpO3ebQRtlzMaeYKyfyNiFARD76kGvY_9-mF4os,4069
@@ -174,8 +175,8 @@ daytona_api_client/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2MjfhUlcE
174
175
  daytona_api_client/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
175
176
  daytona_api_client/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
176
177
  daytona_api_client/models/workspace.py,sha256=uwAStXOLrVJzbxdTfPZokrcMr4Dp4ghgH8V5fy5r0gY,11488
177
- daytona_api_client-0.28.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
178
- daytona_api_client-0.28.0rc1.dist-info/METADATA,sha256=Niyqr-YqbVtRhgxpli99hSzPElLHKsaayj_OPVVN0jA,621
179
- daytona_api_client-0.28.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
180
- daytona_api_client-0.28.0rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
181
- daytona_api_client-0.28.0rc1.dist-info/RECORD,,
178
+ daytona_api_client-0.102.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
179
+ daytona_api_client-0.102.0rc1.dist-info/METADATA,sha256=KA-b5lxaY1jUVL14nf6ax3SR7n7mm5DvfLUt-yTebOs,622
180
+ daytona_api_client-0.102.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
181
+ daytona_api_client-0.102.0rc1.dist-info/top_level.txt,sha256=sDZKAfxKnAQYvOLS9vAOx88EYH3wV5Wx897pODDupuE,19
182
+ daytona_api_client-0.102.0rc1.dist-info/RECORD,,