daytona_api_client_async 0.107.0rc1__py3-none-any.whl → 0.107.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_async might be problematic. Click here for more details.

@@ -405,298 +405,6 @@ class ToolboxApi:
405
405
 
406
406
 
407
407
 
408
- @validate_call
409
- async def connect_pty_session(
410
- self,
411
- sandbox_id: StrictStr,
412
- session_id: StrictStr,
413
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
414
- _request_timeout: Union[
415
- None,
416
- Annotated[StrictFloat, Field(gt=0)],
417
- Tuple[
418
- Annotated[StrictFloat, Field(gt=0)],
419
- Annotated[StrictFloat, Field(gt=0)]
420
- ]
421
- ] = None,
422
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
423
- _content_type: Optional[StrictStr] = None,
424
- _headers: Optional[Dict[StrictStr, Any]] = None,
425
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
426
- ) -> None:
427
- """Connect to PTY session via WebSocket
428
-
429
- Upgrade HTTP connection to WebSocket for real-time PTY interaction
430
-
431
- :param sandbox_id: (required)
432
- :type sandbox_id: str
433
- :param session_id: (required)
434
- :type session_id: str
435
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
436
- :type x_daytona_organization_id: str
437
- :param _request_timeout: timeout setting for this request. If one
438
- number provided, it will be total request
439
- timeout. It can also be a pair (tuple) of
440
- (connection, read) timeouts.
441
- :type _request_timeout: int, tuple(int, int), optional
442
- :param _request_auth: set to override the auth_settings for an a single
443
- request; this effectively ignores the
444
- authentication in the spec for a single request.
445
- :type _request_auth: dict, optional
446
- :param _content_type: force content-type for the request.
447
- :type _content_type: str, Optional
448
- :param _headers: set to override the headers for a single
449
- request; this effectively ignores the headers
450
- in the spec for a single request.
451
- :type _headers: dict, optional
452
- :param _host_index: set to override the host_index for a single
453
- request; this effectively ignores the host_index
454
- in the spec for a single request.
455
- :type _host_index: int, optional
456
- :return: Returns the result object.
457
- """ # noqa: E501
458
-
459
- _param = self._connect_pty_session_serialize(
460
- sandbox_id=sandbox_id,
461
- session_id=session_id,
462
- x_daytona_organization_id=x_daytona_organization_id,
463
- _request_auth=_request_auth,
464
- _content_type=_content_type,
465
- _headers=_headers,
466
- _host_index=_host_index
467
- )
468
-
469
- _response_types_map: Dict[str, Optional[str]] = {
470
- '101': "bytearray",
471
- }
472
- response_data = await self.api_client.call_api(
473
- *_param,
474
- _request_timeout=_request_timeout
475
- )
476
- await response_data.read()
477
- return self.api_client.response_deserialize(
478
- response_data=response_data,
479
- response_types_map=_response_types_map,
480
- ).data
481
-
482
-
483
- @validate_call
484
- async def connect_pty_session_with_http_info(
485
- self,
486
- sandbox_id: StrictStr,
487
- session_id: StrictStr,
488
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
489
- _request_timeout: Union[
490
- None,
491
- Annotated[StrictFloat, Field(gt=0)],
492
- Tuple[
493
- Annotated[StrictFloat, Field(gt=0)],
494
- Annotated[StrictFloat, Field(gt=0)]
495
- ]
496
- ] = None,
497
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
498
- _content_type: Optional[StrictStr] = None,
499
- _headers: Optional[Dict[StrictStr, Any]] = None,
500
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
501
- ) -> ApiResponse[None]:
502
- """Connect to PTY session via WebSocket
503
-
504
- Upgrade HTTP connection to WebSocket for real-time PTY interaction
505
-
506
- :param sandbox_id: (required)
507
- :type sandbox_id: str
508
- :param session_id: (required)
509
- :type session_id: str
510
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
511
- :type x_daytona_organization_id: str
512
- :param _request_timeout: timeout setting for this request. If one
513
- number provided, it will be total request
514
- timeout. It can also be a pair (tuple) of
515
- (connection, read) timeouts.
516
- :type _request_timeout: int, tuple(int, int), optional
517
- :param _request_auth: set to override the auth_settings for an a single
518
- request; this effectively ignores the
519
- authentication in the spec for a single request.
520
- :type _request_auth: dict, optional
521
- :param _content_type: force content-type for the request.
522
- :type _content_type: str, Optional
523
- :param _headers: set to override the headers for a single
524
- request; this effectively ignores the headers
525
- in the spec for a single request.
526
- :type _headers: dict, optional
527
- :param _host_index: set to override the host_index for a single
528
- request; this effectively ignores the host_index
529
- in the spec for a single request.
530
- :type _host_index: int, optional
531
- :return: Returns the result object.
532
- """ # noqa: E501
533
-
534
- _param = self._connect_pty_session_serialize(
535
- sandbox_id=sandbox_id,
536
- session_id=session_id,
537
- x_daytona_organization_id=x_daytona_organization_id,
538
- _request_auth=_request_auth,
539
- _content_type=_content_type,
540
- _headers=_headers,
541
- _host_index=_host_index
542
- )
543
-
544
- _response_types_map: Dict[str, Optional[str]] = {
545
- '101': "bytearray",
546
- }
547
- response_data = await self.api_client.call_api(
548
- *_param,
549
- _request_timeout=_request_timeout
550
- )
551
- await response_data.read()
552
- return self.api_client.response_deserialize(
553
- response_data=response_data,
554
- response_types_map=_response_types_map,
555
- )
556
-
557
-
558
- @validate_call
559
- async def connect_pty_session_without_preload_content(
560
- self,
561
- sandbox_id: StrictStr,
562
- session_id: StrictStr,
563
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
564
- _request_timeout: Union[
565
- None,
566
- Annotated[StrictFloat, Field(gt=0)],
567
- Tuple[
568
- Annotated[StrictFloat, Field(gt=0)],
569
- Annotated[StrictFloat, Field(gt=0)]
570
- ]
571
- ] = None,
572
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
573
- _content_type: Optional[StrictStr] = None,
574
- _headers: Optional[Dict[StrictStr, Any]] = None,
575
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
576
- ) -> RESTResponseType:
577
- """Connect to PTY session via WebSocket
578
-
579
- Upgrade HTTP connection to WebSocket for real-time PTY interaction
580
-
581
- :param sandbox_id: (required)
582
- :type sandbox_id: str
583
- :param session_id: (required)
584
- :type session_id: str
585
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
586
- :type x_daytona_organization_id: str
587
- :param _request_timeout: timeout setting for this request. If one
588
- number provided, it will be total request
589
- timeout. It can also be a pair (tuple) of
590
- (connection, read) timeouts.
591
- :type _request_timeout: int, tuple(int, int), optional
592
- :param _request_auth: set to override the auth_settings for an a single
593
- request; this effectively ignores the
594
- authentication in the spec for a single request.
595
- :type _request_auth: dict, optional
596
- :param _content_type: force content-type for the request.
597
- :type _content_type: str, Optional
598
- :param _headers: set to override the headers for a single
599
- request; this effectively ignores the headers
600
- in the spec for a single request.
601
- :type _headers: dict, optional
602
- :param _host_index: set to override the host_index for a single
603
- request; this effectively ignores the host_index
604
- in the spec for a single request.
605
- :type _host_index: int, optional
606
- :return: Returns the result object.
607
- """ # noqa: E501
608
-
609
- _param = self._connect_pty_session_serialize(
610
- sandbox_id=sandbox_id,
611
- session_id=session_id,
612
- x_daytona_organization_id=x_daytona_organization_id,
613
- _request_auth=_request_auth,
614
- _content_type=_content_type,
615
- _headers=_headers,
616
- _host_index=_host_index
617
- )
618
-
619
- _response_types_map: Dict[str, Optional[str]] = {
620
- '101': "bytearray",
621
- }
622
- response_data = await self.api_client.call_api(
623
- *_param,
624
- _request_timeout=_request_timeout
625
- )
626
- return response_data.response
627
-
628
-
629
- def _connect_pty_session_serialize(
630
- self,
631
- sandbox_id,
632
- session_id,
633
- x_daytona_organization_id,
634
- _request_auth,
635
- _content_type,
636
- _headers,
637
- _host_index,
638
- ) -> RequestSerialized:
639
-
640
- _host = None
641
-
642
- _collection_formats: Dict[str, str] = {
643
- }
644
-
645
- _path_params: Dict[str, str] = {}
646
- _query_params: List[Tuple[str, str]] = []
647
- _header_params: Dict[str, Optional[str]] = _headers or {}
648
- _form_params: List[Tuple[str, str]] = []
649
- _files: Dict[
650
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
651
- ] = {}
652
- _body_params: Optional[bytes] = None
653
-
654
- # process the path parameters
655
- if sandbox_id is not None:
656
- _path_params['sandboxId'] = sandbox_id
657
- if session_id is not None:
658
- _path_params['sessionId'] = session_id
659
- # process the query parameters
660
- # process the header parameters
661
- if x_daytona_organization_id is not None:
662
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
663
- # process the form parameters
664
- # process the body parameter
665
-
666
-
667
- # set the HTTP header `Accept`
668
- if 'Accept' not in _header_params:
669
- _header_params['Accept'] = self.api_client.select_header_accept(
670
- [
671
- 'application/octet-stream'
672
- ]
673
- )
674
-
675
-
676
- # authentication setting
677
- _auth_settings: List[str] = [
678
- 'bearer',
679
- 'oauth2'
680
- ]
681
-
682
- return self.api_client.param_serialize(
683
- method='GET',
684
- resource_path='/toolbox/{sandboxId}/toolbox/process/pty/{sessionId}/connect',
685
- path_params=_path_params,
686
- query_params=_query_params,
687
- header_params=_header_params,
688
- body=_body_params,
689
- post_params=_form_params,
690
- files=_files,
691
- auth_settings=_auth_settings,
692
- collection_formats=_collection_formats,
693
- _host=_host,
694
- _request_auth=_request_auth
695
- )
696
-
697
-
698
-
699
-
700
408
  @validate_call
701
409
  async def create_folder(
702
410
  self,
@@ -37,11 +37,10 @@ class CreateRunner(BaseModel):
37
37
  gpu: Union[StrictFloat, StrictInt]
38
38
  gpu_type: StrictStr = Field(alias="gpuType")
39
39
  var_class: StrictStr = Field(alias="class")
40
- capacity: Union[StrictFloat, StrictInt]
41
40
  region: StrictStr
42
41
  version: StrictStr
43
42
  additional_properties: Dict[str, Any] = {}
44
- __properties: ClassVar[List[str]] = ["domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memoryGiB", "diskGiB", "gpu", "gpuType", "class", "capacity", "region", "version"]
43
+ __properties: ClassVar[List[str]] = ["domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memoryGiB", "diskGiB", "gpu", "gpuType", "class", "region", "version"]
45
44
 
46
45
  @field_validator('var_class')
47
46
  def var_class_validate_enum(cls, value):
@@ -118,7 +117,6 @@ class CreateRunner(BaseModel):
118
117
  "gpu": obj.get("gpu"),
119
118
  "gpuType": obj.get("gpuType"),
120
119
  "class": obj.get("class"),
121
- "capacity": obj.get("capacity"),
122
120
  "region": obj.get("region"),
123
121
  "version": obj.get("version")
124
122
  })
@@ -40,8 +40,6 @@ class Runner(BaseModel):
40
40
  gpu: Union[StrictFloat, StrictInt] = Field(description="The GPU capacity of the runner")
41
41
  gpu_type: StrictStr = Field(description="The type of GPU", alias="gpuType")
42
42
  var_class: SandboxClass = Field(description="The class of the runner", alias="class")
43
- used: Union[StrictFloat, StrictInt] = Field(description="The current usage of the runner")
44
- capacity: Union[StrictFloat, StrictInt] = Field(description="The capacity of the runner")
45
43
  current_cpu_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current CPU usage percentage", alias="currentCpuUsagePercentage")
46
44
  current_memory_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current RAM usage percentage", alias="currentMemoryUsagePercentage")
47
45
  current_disk_usage_percentage: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="Current disk usage percentage", alias="currentDiskUsagePercentage")
@@ -58,7 +56,7 @@ class Runner(BaseModel):
58
56
  updated_at: StrictStr = Field(description="The last update timestamp of the runner", alias="updatedAt")
59
57
  version: StrictStr = Field(description="The version of the runner")
60
58
  additional_properties: Dict[str, Any] = {}
61
- __properties: ClassVar[List[str]] = ["id", "domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "used", "capacity", "currentCpuUsagePercentage", "currentMemoryUsagePercentage", "currentDiskUsagePercentage", "currentAllocatedCpu", "currentAllocatedMemoryGiB", "currentAllocatedDiskGiB", "currentSnapshotCount", "availabilityScore", "region", "state", "lastChecked", "unschedulable", "createdAt", "updatedAt", "version"]
59
+ __properties: ClassVar[List[str]] = ["id", "domain", "apiUrl", "proxyUrl", "apiKey", "cpu", "memory", "disk", "gpu", "gpuType", "class", "currentCpuUsagePercentage", "currentMemoryUsagePercentage", "currentDiskUsagePercentage", "currentAllocatedCpu", "currentAllocatedMemoryGiB", "currentAllocatedDiskGiB", "currentSnapshotCount", "availabilityScore", "region", "state", "lastChecked", "unschedulable", "createdAt", "updatedAt", "version"]
62
60
 
63
61
  model_config = ConfigDict(
64
62
  populate_by_name=True,
@@ -129,8 +127,6 @@ class Runner(BaseModel):
129
127
  "gpu": obj.get("gpu"),
130
128
  "gpuType": obj.get("gpuType"),
131
129
  "class": obj.get("class"),
132
- "used": obj.get("used"),
133
- "capacity": obj.get("capacity"),
134
130
  "currentCpuUsagePercentage": obj.get("currentCpuUsagePercentage"),
135
131
  "currentMemoryUsagePercentage": obj.get("currentMemoryUsagePercentage"),
136
132
  "currentDiskUsagePercentage": obj.get("currentDiskUsagePercentage"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daytona_api_client_async
3
- Version: 0.107.0rc1
3
+ Version: 0.107.1
4
4
  Summary: Daytona
5
5
  Home-page:
6
6
  Author: Daytona Platforms Inc.
@@ -18,7 +18,7 @@ daytona_api_client_async/api/preview_api.py,sha256=tflnMN3QXSTx-tI1GZf70VY714MQT
18
18
  daytona_api_client_async/api/runners_api.py,sha256=DjL55SHmiIG1CkNrhiNGiiW9tBMrkLo1DiqAmNhpDoI,49294
19
19
  daytona_api_client_async/api/sandbox_api.py,sha256=SQbk3ykEkGE2IfwqXRh4eSRTDo5pMwfG3vY_W0oP3nM,236723
20
20
  daytona_api_client_async/api/snapshots_api.py,sha256=8e6q5AKAhheGbJoMriLG_7-LmAuJoA_xafZtWh2nKPQ,103648
21
- daytona_api_client_async/api/toolbox_api.py,sha256=qWj1c9lFJEmJSpQBCX9wWnjBS6FzeaoKauZk-Ha_CNc,830444
21
+ daytona_api_client_async/api/toolbox_api.py,sha256=fOCSs_qjpBeBBqR91-bS_xYMfbsBPwEE8hi4yZN9Z2Y,818704
22
22
  daytona_api_client_async/api/users_api.py,sha256=5vpJFiutNo-ygzejbkOz3iPMT4mLjNyvBZdNWTaQSFw,86876
23
23
  daytona_api_client_async/api/volumes_api.py,sha256=Hhmny-51SBZhvm3Vztaud1ImEY3p14c3VdjeZN8SP7M,56883
24
24
  daytona_api_client_async/api/webhooks_api.py,sha256=JTMBBtbcPLpy1OsUX9aELWu67iA8HR-UsLRGSPCKav4,69846
@@ -48,7 +48,7 @@ daytona_api_client_async/models/create_organization.py,sha256=0sDPZBYWzMT5pc0edR
48
48
  daytona_api_client_async/models/create_organization_invitation.py,sha256=U5uLVrI3b5kfVqffuwzuqaAsZ-Ml-1xGM5RndmIz-Gk,4016
49
49
  daytona_api_client_async/models/create_organization_quota.py,sha256=HERVvV6pRerMtV05dPTwEec82HcSJ_tKFpEcYfLlLrQ,4716
50
50
  daytona_api_client_async/models/create_organization_role.py,sha256=vQai9U9x82hVCfRCotP1UKtaDz3yehtHxOqVEIhG_Ds,4069
51
- daytona_api_client_async/models/create_runner.py,sha256=vbNmuFuefPIdhatTu6qALi8GUT0AyP6quf-ZhL1jzdc,4530
51
+ daytona_api_client_async/models/create_runner.py,sha256=1dGs6EB7BhoGrMwMQPFMfZMwbGyHj08hTINLJlhb1ok,4429
52
52
  daytona_api_client_async/models/create_sandbox.py,sha256=bZnN9zmtlR9XpQyn2jtvpojvsoL-aBmjoGKnlFCZ2O4,7583
53
53
  daytona_api_client_async/models/create_session_request.py,sha256=8Zv23ZXzrW6v2GmygwTUz5bTugAikCT-T8eHwwYRLxc,3136
54
54
  daytona_api_client_async/models/create_snapshot.py,sha256=wBhM3BVLDM_zUIcnln0tU0MDARjzHp3fSfRmeAtgVXc,4774
@@ -132,7 +132,7 @@ daytona_api_client_async/models/region_screenshot_response.py,sha256=SCWHyJSAwC2
132
132
  daytona_api_client_async/models/registry_push_access_dto.py,sha256=gTWfFynNH4DTuenBBp6C6CZDABa7lAVtUrP9qYHe4Rs,3862
133
133
  daytona_api_client_async/models/replace_request.py,sha256=6y6osWGrtr3flOYYW5LK0PCw6dV2QthRlKlwFWoCTWs,3222
134
134
  daytona_api_client_async/models/replace_result.py,sha256=yqqFWHo2NgsOqTPR-xcOxBPEIVkkSh8Rjzs1rtdoEek,3236
135
- daytona_api_client_async/models/runner.py,sha256=f06I4M5klVGVtU0kysR6BaZYDRf9DUW6bEzIx_vNvhg,8136
135
+ daytona_api_client_async/models/runner.py,sha256=kZehQBmOj7uc3f5zdjjmTfC3N9VYbM81uzIKI6z_2WA,7845
136
136
  daytona_api_client_async/models/runner_region.py,sha256=Lkxx3kYTx8m4w3ntEiaOafMrUknhtNMfk00oD92kXZE,716
137
137
  daytona_api_client_async/models/runner_snapshot_dto.py,sha256=ZBv1j3_4huI-z4GWbCqxOOT85OSyNYX3FHVAHQU6rbo,3447
138
138
  daytona_api_client_async/models/runner_state.py,sha256=_cGjUiDdFZtUQjPc76YKgawOdxV1BDq0ehyKqWFMjD4,819
@@ -194,8 +194,8 @@ daytona_api_client_async/models/windows_response.py,sha256=1fW2GYVSjFbipfQupU2Mj
194
194
  daytona_api_client_async/models/work_dir_response.py,sha256=1dndjWYnDSMDeLiY8pxQDX1viESoAGF_fegSiMx3i40,3047
195
195
  daytona_api_client_async/models/workdir_response.py,sha256=geBhfQDR7LK0uPlmJF6Ple1eQMCzhSb4qK-9UfhqV7k,3047
196
196
  daytona_api_client_async/models/workspace.py,sha256=OaLAKPDmeJ0mRoisZg62smbc4GBBTYUZkLqQbIaCHZY,11518
197
- daytona_api_client_async-0.107.0rc1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
198
- daytona_api_client_async-0.107.0rc1.dist-info/METADATA,sha256=Hu4D4R9z0W03VERvLB0Vf_BHqge3L1z2Moig4em_4Dg,694
199
- daytona_api_client_async-0.107.0rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
200
- daytona_api_client_async-0.107.0rc1.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
201
- daytona_api_client_async-0.107.0rc1.dist-info/RECORD,,
197
+ daytona_api_client_async-0.107.1.dist-info/licenses/LICENSE,sha256=Qrw_9vreBpJ9mUMcB5B7ALDecZHgRciuOqS0BPfpihc,10752
198
+ daytona_api_client_async-0.107.1.dist-info/METADATA,sha256=shfLEqW4InG14CXIR1qQgn3AaRIh0unqjZa0xP3r2Zg,691
199
+ daytona_api_client_async-0.107.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
200
+ daytona_api_client_async-0.107.1.dist-info/top_level.txt,sha256=PdOUDLVBJmZNDB8ak8FMMwmlyfRqUhQQ9SUDgNnbdZo,25
201
+ daytona_api_client_async-0.107.1.dist-info/RECORD,,