daytona_api_client_async 0.25.6__py3-none-any.whl → 0.26.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of daytona_api_client_async might be problematic. Click here for more details.

Files changed (43) hide show
  1. daytona_api_client_async/__init__.py +11 -0
  2. daytona_api_client_async/api/__init__.py +2 -0
  3. daytona_api_client_async/api/{images_api.py → default_api.py} +258 -724
  4. daytona_api_client_async/api/health_api.py +282 -0
  5. daytona_api_client_async/api/sandbox_api.py +855 -2
  6. daytona_api_client_async/api/webhooks_api.py +1704 -0
  7. daytona_api_client_async/models/__init__.py +9 -0
  8. daytona_api_client_async/models/create_audit_log.py +2 -2
  9. daytona_api_client_async/models/health_controller_check200_response.py +154 -0
  10. daytona_api_client_async/models/{set_image_general_status.py → health_controller_check200_response_info_value.py} +8 -8
  11. daytona_api_client_async/models/health_controller_check503_response.py +154 -0
  12. daytona_api_client_async/models/{build_image.py → sandbox_created_post_request.py} +18 -15
  13. daytona_api_client_async/models/sandbox_created_post_request_data.py +152 -0
  14. daytona_api_client_async/models/sandbox_state_updated_post_request.py +110 -0
  15. daytona_api_client_async/models/sandbox_state_updated_post_request_data.py +129 -0
  16. daytona_api_client_async/models/sandbox_state_updated_post_request_data_sandbox.py +115 -0
  17. daytona_api_client_async/models/{workspace_info.py → send_webhook_dto.py} +11 -11
  18. daytona_api_client_async/models/snapshot_created_post_request.py +110 -0
  19. daytona_api_client_async/models/{image_dto.py → snapshot_created_post_request_data.py} +34 -43
  20. daytona_api_client_async/models/{workspace_volume.py → snapshot_removed_post_request.py} +13 -10
  21. daytona_api_client_async/models/snapshot_state_updated_post_request.py +110 -0
  22. daytona_api_client_async/models/snapshot_state_updated_post_request_data.py +129 -0
  23. daytona_api_client_async/models/snapshot_state_updated_post_request_data_snapshot.py +115 -0
  24. daytona_api_client_async/models/ssh_access_dto.py +112 -0
  25. daytona_api_client_async/models/ssh_access_validation_dto.py +107 -0
  26. daytona_api_client_async/models/{create_image.py → volume_created_post_request.py} +17 -12
  27. daytona_api_client_async/models/{build_snapshot.py → volume_created_post_request_data.py} +32 -21
  28. daytona_api_client_async/models/volume_state_updated_post_request.py +110 -0
  29. daytona_api_client_async/models/{create_node.py → volume_state_updated_post_request_data.py} +31 -37
  30. daytona_api_client_async/models/{paginated_images_dto.py → volume_state_updated_post_request_data_volume.py} +23 -23
  31. daytona_api_client_async/models/{workspace_labels.py → webhook_app_portal_access.py} +7 -7
  32. daytona_api_client_async/models/{download_files.py → webhook_controller_get_app_portal_access200_response.py} +8 -8
  33. daytona_api_client_async/models/{usage_overview.py → webhook_controller_get_initialization_status200_response.py} +26 -21
  34. daytona_api_client_async/models/{toggle_state.py → webhook_controller_get_status200_response.py} +7 -7
  35. daytona_api_client_async/models/webhook_initialization_status.py +121 -0
  36. {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/METADATA +1 -1
  37. {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/RECORD +40 -27
  38. daytona_api_client_async/api/nodes_api.py +0 -792
  39. daytona_api_client_async/models/image_state.py +0 -45
  40. daytona_api_client_async/models/workspace_state.py +0 -51
  41. {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/WHEEL +0 -0
  42. {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/licenses/LICENSE +0 -0
  43. {daytona_api_client_async-0.25.6.dist-info → daytona_api_client_async-0.26.0.dist-info}/top_level.txt +0 -0
@@ -17,22 +17,20 @@ 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 pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
21
- from typing import Optional, Union
22
- from typing_extensions import Annotated
23
- from daytona_api_client_async.models.build_image import BuildImage
24
- from daytona_api_client_async.models.create_image import CreateImage
25
- from daytona_api_client_async.models.image_dto import ImageDto
26
- from daytona_api_client_async.models.paginated_images_dto import PaginatedImagesDto
27
- from daytona_api_client_async.models.set_image_general_status import SetImageGeneralStatus
28
- from daytona_api_client_async.models.toggle_state import ToggleState
20
+ from daytona_api_client_async.models.sandbox_created_post_request import SandboxCreatedPostRequest
21
+ from daytona_api_client_async.models.sandbox_state_updated_post_request import SandboxStateUpdatedPostRequest
22
+ from daytona_api_client_async.models.snapshot_created_post_request import SnapshotCreatedPostRequest
23
+ from daytona_api_client_async.models.snapshot_removed_post_request import SnapshotRemovedPostRequest
24
+ from daytona_api_client_async.models.snapshot_state_updated_post_request import SnapshotStateUpdatedPostRequest
25
+ from daytona_api_client_async.models.volume_created_post_request import VolumeCreatedPostRequest
26
+ from daytona_api_client_async.models.volume_state_updated_post_request import VolumeStateUpdatedPostRequest
29
27
 
30
28
  from daytona_api_client_async.api_client import ApiClient, RequestSerialized
31
29
  from daytona_api_client_async.api_response import ApiResponse
32
30
  from daytona_api_client_async.rest import RESTResponseType
33
31
 
34
32
 
35
- class ImagesApi:
33
+ class DefaultApi:
36
34
  """NOTE: This class is auto generated by OpenAPI Generator
37
35
  Ref: https://openapi-generator.tech
38
36
 
@@ -46,10 +44,9 @@ class ImagesApi:
46
44
 
47
45
 
48
46
  @validate_call
49
- async def build_image(
47
+ async def sandbox_created_post(
50
48
  self,
51
- build_image: BuildImage,
52
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
49
+ sandbox_created_post_request: = None,
53
50
  _request_timeout: Union[
54
51
  None,
55
52
  Annotated[StrictFloat, Field(gt=0)],
@@ -62,14 +59,12 @@ class ImagesApi:
62
59
  _content_type: Optional[StrictStr] = None,
63
60
  _headers: Optional[Dict[StrictStr, Any]] = None,
64
61
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
65
- ) -> ImageDto:
66
- """Build a Docker image
62
+ ) -> None:
63
+ """sandbox_created_post
67
64
 
68
65
 
69
- :param build_image: (required)
70
- :type build_image: BuildImage
71
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
72
- :type x_daytona_organization_id: str
66
+ :param sandbox_created_post_request: Sandbox created event
67
+ :type sandbox_created_post_request: SandboxCreatedPostRequest
73
68
  :param _request_timeout: timeout setting for this request. If one
74
69
  number provided, it will be total request
75
70
  timeout. It can also be a pair (tuple) of
@@ -92,9 +87,8 @@ class ImagesApi:
92
87
  :return: Returns the result object.
93
88
  """ # noqa: E501
94
89
 
95
- _param = self._build_image_serialize(
96
- build_image=build_image,
97
- x_daytona_organization_id=x_daytona_organization_id,
90
+ _param = self._sandbox_created_post_serialize(
91
+ sandbox_created_post_request=sandbox_created_post_request,
98
92
  _request_auth=_request_auth,
99
93
  _content_type=_content_type,
100
94
  _headers=_headers,
@@ -102,8 +96,7 @@ class ImagesApi:
102
96
  )
103
97
 
104
98
  _response_types_map: Dict[str, Optional[str]] = {
105
- '200': "ImageDto",
106
- '400': None,
99
+ '200': None,
107
100
  }
108
101
  response_data = await self.api_client.call_api(
109
102
  *_param,
@@ -117,10 +110,9 @@ class ImagesApi:
117
110
 
118
111
 
119
112
  @validate_call
120
- async def build_image_with_http_info(
113
+ async def sandbox_created_post_with_http_info(
121
114
  self,
122
- build_image: BuildImage,
123
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
115
+ sandbox_created_post_request: = None,
124
116
  _request_timeout: Union[
125
117
  None,
126
118
  Annotated[StrictFloat, Field(gt=0)],
@@ -133,14 +125,12 @@ class ImagesApi:
133
125
  _content_type: Optional[StrictStr] = None,
134
126
  _headers: Optional[Dict[StrictStr, Any]] = None,
135
127
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
136
- ) -> ApiResponse[ImageDto]:
137
- """Build a Docker image
128
+ ) -> ApiResponse[None]:
129
+ """sandbox_created_post
138
130
 
139
131
 
140
- :param build_image: (required)
141
- :type build_image: BuildImage
142
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
143
- :type x_daytona_organization_id: str
132
+ :param sandbox_created_post_request: Sandbox created event
133
+ :type sandbox_created_post_request: SandboxCreatedPostRequest
144
134
  :param _request_timeout: timeout setting for this request. If one
145
135
  number provided, it will be total request
146
136
  timeout. It can also be a pair (tuple) of
@@ -163,9 +153,8 @@ class ImagesApi:
163
153
  :return: Returns the result object.
164
154
  """ # noqa: E501
165
155
 
166
- _param = self._build_image_serialize(
167
- build_image=build_image,
168
- x_daytona_organization_id=x_daytona_organization_id,
156
+ _param = self._sandbox_created_post_serialize(
157
+ sandbox_created_post_request=sandbox_created_post_request,
169
158
  _request_auth=_request_auth,
170
159
  _content_type=_content_type,
171
160
  _headers=_headers,
@@ -173,8 +162,7 @@ class ImagesApi:
173
162
  )
174
163
 
175
164
  _response_types_map: Dict[str, Optional[str]] = {
176
- '200': "ImageDto",
177
- '400': None,
165
+ '200': None,
178
166
  }
179
167
  response_data = await self.api_client.call_api(
180
168
  *_param,
@@ -188,10 +176,9 @@ class ImagesApi:
188
176
 
189
177
 
190
178
  @validate_call
191
- async def build_image_without_preload_content(
179
+ async def sandbox_created_post_without_preload_content(
192
180
  self,
193
- build_image: BuildImage,
194
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
181
+ sandbox_created_post_request: = None,
195
182
  _request_timeout: Union[
196
183
  None,
197
184
  Annotated[StrictFloat, Field(gt=0)],
@@ -205,13 +192,11 @@ class ImagesApi:
205
192
  _headers: Optional[Dict[StrictStr, Any]] = None,
206
193
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
207
194
  ) -> RESTResponseType:
208
- """Build a Docker image
195
+ """sandbox_created_post
209
196
 
210
197
 
211
- :param build_image: (required)
212
- :type build_image: BuildImage
213
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
214
- :type x_daytona_organization_id: str
198
+ :param sandbox_created_post_request: Sandbox created event
199
+ :type sandbox_created_post_request: SandboxCreatedPostRequest
215
200
  :param _request_timeout: timeout setting for this request. If one
216
201
  number provided, it will be total request
217
202
  timeout. It can also be a pair (tuple) of
@@ -234,9 +219,8 @@ class ImagesApi:
234
219
  :return: Returns the result object.
235
220
  """ # noqa: E501
236
221
 
237
- _param = self._build_image_serialize(
238
- build_image=build_image,
239
- x_daytona_organization_id=x_daytona_organization_id,
222
+ _param = self._sandbox_created_post_serialize(
223
+ sandbox_created_post_request=sandbox_created_post_request,
240
224
  _request_auth=_request_auth,
241
225
  _content_type=_content_type,
242
226
  _headers=_headers,
@@ -244,8 +228,7 @@ class ImagesApi:
244
228
  )
245
229
 
246
230
  _response_types_map: Dict[str, Optional[str]] = {
247
- '200': "ImageDto",
248
- '400': None,
231
+ '200': None,
249
232
  }
250
233
  response_data = await self.api_client.call_api(
251
234
  *_param,
@@ -254,10 +237,9 @@ class ImagesApi:
254
237
  return response_data.response
255
238
 
256
239
 
257
- def _build_image_serialize(
240
+ def _sandbox_created_post_serialize(
258
241
  self,
259
- build_image,
260
- x_daytona_organization_id,
242
+ sandbox_created_post_request,
261
243
  _request_auth,
262
244
  _content_type,
263
245
  _headers,
@@ -281,21 +263,12 @@ class ImagesApi:
281
263
  # process the path parameters
282
264
  # process the query parameters
283
265
  # process the header parameters
284
- if x_daytona_organization_id is not None:
285
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
286
266
  # process the form parameters
287
267
  # process the body parameter
288
- if build_image is not None:
289
- _body_params = build_image
268
+ if sandbox_created_post_request is not None:
269
+ _body_params = sandbox_created_post_request
290
270
 
291
271
 
292
- # set the HTTP header `Accept`
293
- if 'Accept' not in _header_params:
294
- _header_params['Accept'] = self.api_client.select_header_accept(
295
- [
296
- 'application/json'
297
- ]
298
- )
299
272
 
300
273
  # set the HTTP header `Content-Type`
301
274
  if _content_type:
@@ -313,13 +286,11 @@ class ImagesApi:
313
286
 
314
287
  # authentication setting
315
288
  _auth_settings: List[str] = [
316
- 'bearer',
317
- 'oauth2'
318
289
  ]
319
290
 
320
291
  return self.api_client.param_serialize(
321
292
  method='POST',
322
- resource_path='/images/build',
293
+ resource_path='/sandbox.created',
323
294
  path_params=_path_params,
324
295
  query_params=_query_params,
325
296
  header_params=_header_params,
@@ -336,10 +307,9 @@ class ImagesApi:
336
307
 
337
308
 
338
309
  @validate_call
339
- async def create_image(
310
+ async def sandbox_state_updated_post(
340
311
  self,
341
- create_image: CreateImage,
342
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
312
+ sandbox_state_updated_post_request: = None,
343
313
  _request_timeout: Union[
344
314
  None,
345
315
  Annotated[StrictFloat, Field(gt=0)],
@@ -352,14 +322,12 @@ class ImagesApi:
352
322
  _content_type: Optional[StrictStr] = None,
353
323
  _headers: Optional[Dict[StrictStr, Any]] = None,
354
324
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
355
- ) -> ImageDto:
356
- """Create a new image
325
+ ) -> None:
326
+ """sandbox_state_updated_post
357
327
 
358
328
 
359
- :param create_image: (required)
360
- :type create_image: CreateImage
361
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
362
- :type x_daytona_organization_id: str
329
+ :param sandbox_state_updated_post_request: Sandbox state updated event
330
+ :type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
363
331
  :param _request_timeout: timeout setting for this request. If one
364
332
  number provided, it will be total request
365
333
  timeout. It can also be a pair (tuple) of
@@ -382,9 +350,8 @@ class ImagesApi:
382
350
  :return: Returns the result object.
383
351
  """ # noqa: E501
384
352
 
385
- _param = self._create_image_serialize(
386
- create_image=create_image,
387
- x_daytona_organization_id=x_daytona_organization_id,
353
+ _param = self._sandbox_state_updated_post_serialize(
354
+ sandbox_state_updated_post_request=sandbox_state_updated_post_request,
388
355
  _request_auth=_request_auth,
389
356
  _content_type=_content_type,
390
357
  _headers=_headers,
@@ -392,8 +359,7 @@ class ImagesApi:
392
359
  )
393
360
 
394
361
  _response_types_map: Dict[str, Optional[str]] = {
395
- '200': "ImageDto",
396
- '400': None,
362
+ '200': None,
397
363
  }
398
364
  response_data = await self.api_client.call_api(
399
365
  *_param,
@@ -407,10 +373,9 @@ class ImagesApi:
407
373
 
408
374
 
409
375
  @validate_call
410
- async def create_image_with_http_info(
376
+ async def sandbox_state_updated_post_with_http_info(
411
377
  self,
412
- create_image: CreateImage,
413
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
378
+ sandbox_state_updated_post_request: = None,
414
379
  _request_timeout: Union[
415
380
  None,
416
381
  Annotated[StrictFloat, Field(gt=0)],
@@ -423,14 +388,12 @@ class ImagesApi:
423
388
  _content_type: Optional[StrictStr] = None,
424
389
  _headers: Optional[Dict[StrictStr, Any]] = None,
425
390
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
426
- ) -> ApiResponse[ImageDto]:
427
- """Create a new image
391
+ ) -> ApiResponse[None]:
392
+ """sandbox_state_updated_post
428
393
 
429
394
 
430
- :param create_image: (required)
431
- :type create_image: CreateImage
432
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
433
- :type x_daytona_organization_id: str
395
+ :param sandbox_state_updated_post_request: Sandbox state updated event
396
+ :type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
434
397
  :param _request_timeout: timeout setting for this request. If one
435
398
  number provided, it will be total request
436
399
  timeout. It can also be a pair (tuple) of
@@ -453,9 +416,8 @@ class ImagesApi:
453
416
  :return: Returns the result object.
454
417
  """ # noqa: E501
455
418
 
456
- _param = self._create_image_serialize(
457
- create_image=create_image,
458
- x_daytona_organization_id=x_daytona_organization_id,
419
+ _param = self._sandbox_state_updated_post_serialize(
420
+ sandbox_state_updated_post_request=sandbox_state_updated_post_request,
459
421
  _request_auth=_request_auth,
460
422
  _content_type=_content_type,
461
423
  _headers=_headers,
@@ -463,8 +425,7 @@ class ImagesApi:
463
425
  )
464
426
 
465
427
  _response_types_map: Dict[str, Optional[str]] = {
466
- '200': "ImageDto",
467
- '400': None,
428
+ '200': None,
468
429
  }
469
430
  response_data = await self.api_client.call_api(
470
431
  *_param,
@@ -478,10 +439,9 @@ class ImagesApi:
478
439
 
479
440
 
480
441
  @validate_call
481
- async def create_image_without_preload_content(
442
+ async def sandbox_state_updated_post_without_preload_content(
482
443
  self,
483
- create_image: CreateImage,
484
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
444
+ sandbox_state_updated_post_request: = None,
485
445
  _request_timeout: Union[
486
446
  None,
487
447
  Annotated[StrictFloat, Field(gt=0)],
@@ -495,13 +455,11 @@ class ImagesApi:
495
455
  _headers: Optional[Dict[StrictStr, Any]] = None,
496
456
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
497
457
  ) -> RESTResponseType:
498
- """Create a new image
458
+ """sandbox_state_updated_post
499
459
 
500
460
 
501
- :param create_image: (required)
502
- :type create_image: CreateImage
503
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
504
- :type x_daytona_organization_id: str
461
+ :param sandbox_state_updated_post_request: Sandbox state updated event
462
+ :type sandbox_state_updated_post_request: SandboxStateUpdatedPostRequest
505
463
  :param _request_timeout: timeout setting for this request. If one
506
464
  number provided, it will be total request
507
465
  timeout. It can also be a pair (tuple) of
@@ -524,9 +482,8 @@ class ImagesApi:
524
482
  :return: Returns the result object.
525
483
  """ # noqa: E501
526
484
 
527
- _param = self._create_image_serialize(
528
- create_image=create_image,
529
- x_daytona_organization_id=x_daytona_organization_id,
485
+ _param = self._sandbox_state_updated_post_serialize(
486
+ sandbox_state_updated_post_request=sandbox_state_updated_post_request,
530
487
  _request_auth=_request_auth,
531
488
  _content_type=_content_type,
532
489
  _headers=_headers,
@@ -534,8 +491,7 @@ class ImagesApi:
534
491
  )
535
492
 
536
493
  _response_types_map: Dict[str, Optional[str]] = {
537
- '200': "ImageDto",
538
- '400': None,
494
+ '200': None,
539
495
  }
540
496
  response_data = await self.api_client.call_api(
541
497
  *_param,
@@ -544,10 +500,9 @@ class ImagesApi:
544
500
  return response_data.response
545
501
 
546
502
 
547
- def _create_image_serialize(
503
+ def _sandbox_state_updated_post_serialize(
548
504
  self,
549
- create_image,
550
- x_daytona_organization_id,
505
+ sandbox_state_updated_post_request,
551
506
  _request_auth,
552
507
  _content_type,
553
508
  _headers,
@@ -571,21 +526,12 @@ class ImagesApi:
571
526
  # process the path parameters
572
527
  # process the query parameters
573
528
  # process the header parameters
574
- if x_daytona_organization_id is not None:
575
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
576
529
  # process the form parameters
577
530
  # process the body parameter
578
- if create_image is not None:
579
- _body_params = create_image
531
+ if sandbox_state_updated_post_request is not None:
532
+ _body_params = sandbox_state_updated_post_request
580
533
 
581
534
 
582
- # set the HTTP header `Accept`
583
- if 'Accept' not in _header_params:
584
- _header_params['Accept'] = self.api_client.select_header_accept(
585
- [
586
- 'application/json'
587
- ]
588
- )
589
535
 
590
536
  # set the HTTP header `Content-Type`
591
537
  if _content_type:
@@ -603,13 +549,11 @@ class ImagesApi:
603
549
 
604
550
  # authentication setting
605
551
  _auth_settings: List[str] = [
606
- 'bearer',
607
- 'oauth2'
608
552
  ]
609
553
 
610
554
  return self.api_client.param_serialize(
611
555
  method='POST',
612
- resource_path='/images',
556
+ resource_path='/sandbox.state.updated',
613
557
  path_params=_path_params,
614
558
  query_params=_query_params,
615
559
  header_params=_header_params,
@@ -626,11 +570,9 @@ class ImagesApi:
626
570
 
627
571
 
628
572
  @validate_call
629
- async def get_all_images(
573
+ async def snapshot_created_post(
630
574
  self,
631
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
632
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
633
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
575
+ snapshot_created_post_request: = None,
634
576
  _request_timeout: Union[
635
577
  None,
636
578
  Annotated[StrictFloat, Field(gt=0)],
@@ -643,16 +585,12 @@ class ImagesApi:
643
585
  _content_type: Optional[StrictStr] = None,
644
586
  _headers: Optional[Dict[StrictStr, Any]] = None,
645
587
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
646
- ) -> PaginatedImagesDto:
647
- """List all images
588
+ ) -> None:
589
+ """snapshot_created_post
648
590
 
649
591
 
650
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
651
- :type x_daytona_organization_id: str
652
- :param limit: Number of items per page
653
- :type limit: float
654
- :param page: Page number
655
- :type page: float
592
+ :param snapshot_created_post_request: Snapshot created event
593
+ :type snapshot_created_post_request: SnapshotCreatedPostRequest
656
594
  :param _request_timeout: timeout setting for this request. If one
657
595
  number provided, it will be total request
658
596
  timeout. It can also be a pair (tuple) of
@@ -675,10 +613,8 @@ class ImagesApi:
675
613
  :return: Returns the result object.
676
614
  """ # noqa: E501
677
615
 
678
- _param = self._get_all_images_serialize(
679
- x_daytona_organization_id=x_daytona_organization_id,
680
- limit=limit,
681
- page=page,
616
+ _param = self._snapshot_created_post_serialize(
617
+ snapshot_created_post_request=snapshot_created_post_request,
682
618
  _request_auth=_request_auth,
683
619
  _content_type=_content_type,
684
620
  _headers=_headers,
@@ -686,7 +622,7 @@ class ImagesApi:
686
622
  )
687
623
 
688
624
  _response_types_map: Dict[str, Optional[str]] = {
689
- '200': "PaginatedImagesDto",
625
+ '200': None,
690
626
  }
691
627
  response_data = await self.api_client.call_api(
692
628
  *_param,
@@ -700,11 +636,9 @@ class ImagesApi:
700
636
 
701
637
 
702
638
  @validate_call
703
- async def get_all_images_with_http_info(
639
+ async def snapshot_created_post_with_http_info(
704
640
  self,
705
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
706
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
707
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
641
+ snapshot_created_post_request: = None,
708
642
  _request_timeout: Union[
709
643
  None,
710
644
  Annotated[StrictFloat, Field(gt=0)],
@@ -717,16 +651,12 @@ class ImagesApi:
717
651
  _content_type: Optional[StrictStr] = None,
718
652
  _headers: Optional[Dict[StrictStr, Any]] = None,
719
653
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
720
- ) -> ApiResponse[PaginatedImagesDto]:
721
- """List all images
654
+ ) -> ApiResponse[None]:
655
+ """snapshot_created_post
722
656
 
723
657
 
724
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
725
- :type x_daytona_organization_id: str
726
- :param limit: Number of items per page
727
- :type limit: float
728
- :param page: Page number
729
- :type page: float
658
+ :param snapshot_created_post_request: Snapshot created event
659
+ :type snapshot_created_post_request: SnapshotCreatedPostRequest
730
660
  :param _request_timeout: timeout setting for this request. If one
731
661
  number provided, it will be total request
732
662
  timeout. It can also be a pair (tuple) of
@@ -749,10 +679,8 @@ class ImagesApi:
749
679
  :return: Returns the result object.
750
680
  """ # noqa: E501
751
681
 
752
- _param = self._get_all_images_serialize(
753
- x_daytona_organization_id=x_daytona_organization_id,
754
- limit=limit,
755
- page=page,
682
+ _param = self._snapshot_created_post_serialize(
683
+ snapshot_created_post_request=snapshot_created_post_request,
756
684
  _request_auth=_request_auth,
757
685
  _content_type=_content_type,
758
686
  _headers=_headers,
@@ -760,7 +688,7 @@ class ImagesApi:
760
688
  )
761
689
 
762
690
  _response_types_map: Dict[str, Optional[str]] = {
763
- '200': "PaginatedImagesDto",
691
+ '200': None,
764
692
  }
765
693
  response_data = await self.api_client.call_api(
766
694
  *_param,
@@ -774,11 +702,9 @@ class ImagesApi:
774
702
 
775
703
 
776
704
  @validate_call
777
- async def get_all_images_without_preload_content(
705
+ async def snapshot_created_post_without_preload_content(
778
706
  self,
779
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
780
- limit: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Number of items per page")] = None,
781
- page: Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Page number")] = None,
707
+ snapshot_created_post_request: = None,
782
708
  _request_timeout: Union[
783
709
  None,
784
710
  Annotated[StrictFloat, Field(gt=0)],
@@ -792,15 +718,11 @@ class ImagesApi:
792
718
  _headers: Optional[Dict[StrictStr, Any]] = None,
793
719
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
794
720
  ) -> RESTResponseType:
795
- """List all images
721
+ """snapshot_created_post
796
722
 
797
723
 
798
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
799
- :type x_daytona_organization_id: str
800
- :param limit: Number of items per page
801
- :type limit: float
802
- :param page: Page number
803
- :type page: float
724
+ :param snapshot_created_post_request: Snapshot created event
725
+ :type snapshot_created_post_request: SnapshotCreatedPostRequest
804
726
  :param _request_timeout: timeout setting for this request. If one
805
727
  number provided, it will be total request
806
728
  timeout. It can also be a pair (tuple) of
@@ -823,10 +745,8 @@ class ImagesApi:
823
745
  :return: Returns the result object.
824
746
  """ # noqa: E501
825
747
 
826
- _param = self._get_all_images_serialize(
827
- x_daytona_organization_id=x_daytona_organization_id,
828
- limit=limit,
829
- page=page,
748
+ _param = self._snapshot_created_post_serialize(
749
+ snapshot_created_post_request=snapshot_created_post_request,
830
750
  _request_auth=_request_auth,
831
751
  _content_type=_content_type,
832
752
  _headers=_headers,
@@ -834,7 +754,7 @@ class ImagesApi:
834
754
  )
835
755
 
836
756
  _response_types_map: Dict[str, Optional[str]] = {
837
- '200': "PaginatedImagesDto",
757
+ '200': None,
838
758
  }
839
759
  response_data = await self.api_client.call_api(
840
760
  *_param,
@@ -843,11 +763,9 @@ class ImagesApi:
843
763
  return response_data.response
844
764
 
845
765
 
846
- def _get_all_images_serialize(
766
+ def _snapshot_created_post_serialize(
847
767
  self,
848
- x_daytona_organization_id,
849
- limit,
850
- page,
768
+ snapshot_created_post_request,
851
769
  _request_auth,
852
770
  _content_type,
853
771
  _headers,
@@ -870,316 +788,35 @@ class ImagesApi:
870
788
 
871
789
  # process the path parameters
872
790
  # process the query parameters
873
- if limit is not None:
874
-
875
- _query_params.append(('limit', limit))
876
-
877
- if page is not None:
878
-
879
- _query_params.append(('page', page))
880
-
881
791
  # process the header parameters
882
- if x_daytona_organization_id is not None:
883
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
884
792
  # process the form parameters
885
793
  # process the body parameter
794
+ if snapshot_created_post_request is not None:
795
+ _body_params = snapshot_created_post_request
886
796
 
887
797
 
888
- # set the HTTP header `Accept`
889
- if 'Accept' not in _header_params:
890
- _header_params['Accept'] = self.api_client.select_header_accept(
891
- [
892
- 'application/json'
893
- ]
894
- )
895
-
896
-
897
- # authentication setting
898
- _auth_settings: List[str] = [
899
- 'bearer',
900
- 'oauth2'
901
- ]
902
-
903
- return self.api_client.param_serialize(
904
- method='GET',
905
- resource_path='/images',
906
- path_params=_path_params,
907
- query_params=_query_params,
908
- header_params=_header_params,
909
- body=_body_params,
910
- post_params=_form_params,
911
- files=_files,
912
- auth_settings=_auth_settings,
913
- collection_formats=_collection_formats,
914
- _host=_host,
915
- _request_auth=_request_auth
916
- )
917
-
918
-
919
-
920
-
921
- @validate_call
922
- async def get_image(
923
- self,
924
- id: Annotated[StrictStr, Field(description="Image ID")],
925
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
926
- _request_timeout: Union[
927
- None,
928
- Annotated[StrictFloat, Field(gt=0)],
929
- Tuple[
930
- Annotated[StrictFloat, Field(gt=0)],
931
- Annotated[StrictFloat, Field(gt=0)]
932
- ]
933
- ] = None,
934
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
935
- _content_type: Optional[StrictStr] = None,
936
- _headers: Optional[Dict[StrictStr, Any]] = None,
937
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
938
- ) -> ImageDto:
939
- """Get image by ID
940
-
941
-
942
- :param id: Image ID (required)
943
- :type id: str
944
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
945
- :type x_daytona_organization_id: str
946
- :param _request_timeout: timeout setting for this request. If one
947
- number provided, it will be total request
948
- timeout. It can also be a pair (tuple) of
949
- (connection, read) timeouts.
950
- :type _request_timeout: int, tuple(int, int), optional
951
- :param _request_auth: set to override the auth_settings for an a single
952
- request; this effectively ignores the
953
- authentication in the spec for a single request.
954
- :type _request_auth: dict, optional
955
- :param _content_type: force content-type for the request.
956
- :type _content_type: str, Optional
957
- :param _headers: set to override the headers for a single
958
- request; this effectively ignores the headers
959
- in the spec for a single request.
960
- :type _headers: dict, optional
961
- :param _host_index: set to override the host_index for a single
962
- request; this effectively ignores the host_index
963
- in the spec for a single request.
964
- :type _host_index: int, optional
965
- :return: Returns the result object.
966
- """ # noqa: E501
967
-
968
- _param = self._get_image_serialize(
969
- id=id,
970
- x_daytona_organization_id=x_daytona_organization_id,
971
- _request_auth=_request_auth,
972
- _content_type=_content_type,
973
- _headers=_headers,
974
- _host_index=_host_index
975
- )
976
-
977
- _response_types_map: Dict[str, Optional[str]] = {
978
- '200': "ImageDto",
979
- '404': None,
980
- }
981
- response_data = await self.api_client.call_api(
982
- *_param,
983
- _request_timeout=_request_timeout
984
- )
985
- await response_data.read()
986
- return self.api_client.response_deserialize(
987
- response_data=response_data,
988
- response_types_map=_response_types_map,
989
- ).data
990
-
991
-
992
- @validate_call
993
- async def get_image_with_http_info(
994
- self,
995
- id: Annotated[StrictStr, Field(description="Image ID")],
996
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
997
- _request_timeout: Union[
998
- None,
999
- Annotated[StrictFloat, Field(gt=0)],
1000
- Tuple[
1001
- Annotated[StrictFloat, Field(gt=0)],
1002
- Annotated[StrictFloat, Field(gt=0)]
1003
- ]
1004
- ] = None,
1005
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1006
- _content_type: Optional[StrictStr] = None,
1007
- _headers: Optional[Dict[StrictStr, Any]] = None,
1008
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1009
- ) -> ApiResponse[ImageDto]:
1010
- """Get image by ID
1011
-
1012
-
1013
- :param id: Image ID (required)
1014
- :type id: str
1015
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1016
- :type x_daytona_organization_id: str
1017
- :param _request_timeout: timeout setting for this request. If one
1018
- number provided, it will be total request
1019
- timeout. It can also be a pair (tuple) of
1020
- (connection, read) timeouts.
1021
- :type _request_timeout: int, tuple(int, int), optional
1022
- :param _request_auth: set to override the auth_settings for an a single
1023
- request; this effectively ignores the
1024
- authentication in the spec for a single request.
1025
- :type _request_auth: dict, optional
1026
- :param _content_type: force content-type for the request.
1027
- :type _content_type: str, Optional
1028
- :param _headers: set to override the headers for a single
1029
- request; this effectively ignores the headers
1030
- in the spec for a single request.
1031
- :type _headers: dict, optional
1032
- :param _host_index: set to override the host_index for a single
1033
- request; this effectively ignores the host_index
1034
- in the spec for a single request.
1035
- :type _host_index: int, optional
1036
- :return: Returns the result object.
1037
- """ # noqa: E501
1038
-
1039
- _param = self._get_image_serialize(
1040
- id=id,
1041
- x_daytona_organization_id=x_daytona_organization_id,
1042
- _request_auth=_request_auth,
1043
- _content_type=_content_type,
1044
- _headers=_headers,
1045
- _host_index=_host_index
1046
- )
1047
-
1048
- _response_types_map: Dict[str, Optional[str]] = {
1049
- '200': "ImageDto",
1050
- '404': None,
1051
- }
1052
- response_data = await self.api_client.call_api(
1053
- *_param,
1054
- _request_timeout=_request_timeout
1055
- )
1056
- await response_data.read()
1057
- return self.api_client.response_deserialize(
1058
- response_data=response_data,
1059
- response_types_map=_response_types_map,
1060
- )
1061
-
1062
-
1063
- @validate_call
1064
- async def get_image_without_preload_content(
1065
- self,
1066
- id: Annotated[StrictStr, Field(description="Image ID")],
1067
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1068
- _request_timeout: Union[
1069
- None,
1070
- Annotated[StrictFloat, Field(gt=0)],
1071
- Tuple[
1072
- Annotated[StrictFloat, Field(gt=0)],
1073
- Annotated[StrictFloat, Field(gt=0)]
1074
- ]
1075
- ] = None,
1076
- _request_auth: Optional[Dict[StrictStr, Any]] = None,
1077
- _content_type: Optional[StrictStr] = None,
1078
- _headers: Optional[Dict[StrictStr, Any]] = None,
1079
- _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1080
- ) -> RESTResponseType:
1081
- """Get image by ID
1082
-
1083
-
1084
- :param id: Image ID (required)
1085
- :type id: str
1086
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1087
- :type x_daytona_organization_id: str
1088
- :param _request_timeout: timeout setting for this request. If one
1089
- number provided, it will be total request
1090
- timeout. It can also be a pair (tuple) of
1091
- (connection, read) timeouts.
1092
- :type _request_timeout: int, tuple(int, int), optional
1093
- :param _request_auth: set to override the auth_settings for an a single
1094
- request; this effectively ignores the
1095
- authentication in the spec for a single request.
1096
- :type _request_auth: dict, optional
1097
- :param _content_type: force content-type for the request.
1098
- :type _content_type: str, Optional
1099
- :param _headers: set to override the headers for a single
1100
- request; this effectively ignores the headers
1101
- in the spec for a single request.
1102
- :type _headers: dict, optional
1103
- :param _host_index: set to override the host_index for a single
1104
- request; this effectively ignores the host_index
1105
- in the spec for a single request.
1106
- :type _host_index: int, optional
1107
- :return: Returns the result object.
1108
- """ # noqa: E501
1109
-
1110
- _param = self._get_image_serialize(
1111
- id=id,
1112
- x_daytona_organization_id=x_daytona_organization_id,
1113
- _request_auth=_request_auth,
1114
- _content_type=_content_type,
1115
- _headers=_headers,
1116
- _host_index=_host_index
1117
- )
1118
-
1119
- _response_types_map: Dict[str, Optional[str]] = {
1120
- '200': "ImageDto",
1121
- '404': None,
1122
- }
1123
- response_data = await self.api_client.call_api(
1124
- *_param,
1125
- _request_timeout=_request_timeout
1126
- )
1127
- return response_data.response
1128
-
1129
-
1130
- def _get_image_serialize(
1131
- self,
1132
- id,
1133
- x_daytona_organization_id,
1134
- _request_auth,
1135
- _content_type,
1136
- _headers,
1137
- _host_index,
1138
- ) -> RequestSerialized:
1139
-
1140
- _host = None
1141
-
1142
- _collection_formats: Dict[str, str] = {
1143
- }
1144
-
1145
- _path_params: Dict[str, str] = {}
1146
- _query_params: List[Tuple[str, str]] = []
1147
- _header_params: Dict[str, Optional[str]] = _headers or {}
1148
- _form_params: List[Tuple[str, str]] = []
1149
- _files: Dict[
1150
- str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1151
- ] = {}
1152
- _body_params: Optional[bytes] = None
1153
798
 
1154
- # process the path parameters
1155
- if id is not None:
1156
- _path_params['id'] = id
1157
- # process the query parameters
1158
- # process the header parameters
1159
- if x_daytona_organization_id is not None:
1160
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1161
- # process the form parameters
1162
- # process the body parameter
1163
-
1164
-
1165
- # set the HTTP header `Accept`
1166
- if 'Accept' not in _header_params:
1167
- _header_params['Accept'] = self.api_client.select_header_accept(
1168
- [
1169
- 'application/json'
1170
- ]
799
+ # set the HTTP header `Content-Type`
800
+ if _content_type:
801
+ _header_params['Content-Type'] = _content_type
802
+ else:
803
+ _default_content_type = (
804
+ self.api_client.select_header_content_type(
805
+ [
806
+ 'application/json'
807
+ ]
808
+ )
1171
809
  )
1172
-
810
+ if _default_content_type is not None:
811
+ _header_params['Content-Type'] = _default_content_type
1173
812
 
1174
813
  # authentication setting
1175
814
  _auth_settings: List[str] = [
1176
- 'bearer',
1177
- 'oauth2'
1178
815
  ]
1179
816
 
1180
817
  return self.api_client.param_serialize(
1181
- method='GET',
1182
- resource_path='/images/{id}',
818
+ method='POST',
819
+ resource_path='/snapshot.created',
1183
820
  path_params=_path_params,
1184
821
  query_params=_query_params,
1185
822
  header_params=_header_params,
@@ -1196,11 +833,9 @@ class ImagesApi:
1196
833
 
1197
834
 
1198
835
  @validate_call
1199
- async def get_image_build_logs(
836
+ async def snapshot_removed_post(
1200
837
  self,
1201
- id: Annotated[StrictStr, Field(description="Image ID")],
1202
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1203
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
838
+ snapshot_removed_post_request: = None,
1204
839
  _request_timeout: Union[
1205
840
  None,
1206
841
  Annotated[StrictFloat, Field(gt=0)],
@@ -1214,15 +849,11 @@ class ImagesApi:
1214
849
  _headers: Optional[Dict[StrictStr, Any]] = None,
1215
850
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1216
851
  ) -> None:
1217
- """Get image build logs
852
+ """snapshot_removed_post
1218
853
 
1219
854
 
1220
- :param id: Image ID (required)
1221
- :type id: str
1222
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1223
- :type x_daytona_organization_id: str
1224
- :param follow: Whether to follow the logs stream
1225
- :type follow: bool
855
+ :param snapshot_removed_post_request: Snapshot removed event
856
+ :type snapshot_removed_post_request: SnapshotRemovedPostRequest
1226
857
  :param _request_timeout: timeout setting for this request. If one
1227
858
  number provided, it will be total request
1228
859
  timeout. It can also be a pair (tuple) of
@@ -1245,10 +876,8 @@ class ImagesApi:
1245
876
  :return: Returns the result object.
1246
877
  """ # noqa: E501
1247
878
 
1248
- _param = self._get_image_build_logs_serialize(
1249
- id=id,
1250
- x_daytona_organization_id=x_daytona_organization_id,
1251
- follow=follow,
879
+ _param = self._snapshot_removed_post_serialize(
880
+ snapshot_removed_post_request=snapshot_removed_post_request,
1252
881
  _request_auth=_request_auth,
1253
882
  _content_type=_content_type,
1254
883
  _headers=_headers,
@@ -1270,11 +899,9 @@ class ImagesApi:
1270
899
 
1271
900
 
1272
901
  @validate_call
1273
- async def get_image_build_logs_with_http_info(
902
+ async def snapshot_removed_post_with_http_info(
1274
903
  self,
1275
- id: Annotated[StrictStr, Field(description="Image ID")],
1276
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1277
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
904
+ snapshot_removed_post_request: = None,
1278
905
  _request_timeout: Union[
1279
906
  None,
1280
907
  Annotated[StrictFloat, Field(gt=0)],
@@ -1288,15 +915,11 @@ class ImagesApi:
1288
915
  _headers: Optional[Dict[StrictStr, Any]] = None,
1289
916
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
917
  ) -> ApiResponse[None]:
1291
- """Get image build logs
918
+ """snapshot_removed_post
1292
919
 
1293
920
 
1294
- :param id: Image ID (required)
1295
- :type id: str
1296
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1297
- :type x_daytona_organization_id: str
1298
- :param follow: Whether to follow the logs stream
1299
- :type follow: bool
921
+ :param snapshot_removed_post_request: Snapshot removed event
922
+ :type snapshot_removed_post_request: SnapshotRemovedPostRequest
1300
923
  :param _request_timeout: timeout setting for this request. If one
1301
924
  number provided, it will be total request
1302
925
  timeout. It can also be a pair (tuple) of
@@ -1319,10 +942,8 @@ class ImagesApi:
1319
942
  :return: Returns the result object.
1320
943
  """ # noqa: E501
1321
944
 
1322
- _param = self._get_image_build_logs_serialize(
1323
- id=id,
1324
- x_daytona_organization_id=x_daytona_organization_id,
1325
- follow=follow,
945
+ _param = self._snapshot_removed_post_serialize(
946
+ snapshot_removed_post_request=snapshot_removed_post_request,
1326
947
  _request_auth=_request_auth,
1327
948
  _content_type=_content_type,
1328
949
  _headers=_headers,
@@ -1344,11 +965,9 @@ class ImagesApi:
1344
965
 
1345
966
 
1346
967
  @validate_call
1347
- async def get_image_build_logs_without_preload_content(
968
+ async def snapshot_removed_post_without_preload_content(
1348
969
  self,
1349
- id: Annotated[StrictStr, Field(description="Image ID")],
1350
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1351
- follow: Annotated[Optional[StrictBool], Field(description="Whether to follow the logs stream")] = None,
970
+ snapshot_removed_post_request: = None,
1352
971
  _request_timeout: Union[
1353
972
  None,
1354
973
  Annotated[StrictFloat, Field(gt=0)],
@@ -1362,15 +981,11 @@ class ImagesApi:
1362
981
  _headers: Optional[Dict[StrictStr, Any]] = None,
1363
982
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1364
983
  ) -> RESTResponseType:
1365
- """Get image build logs
984
+ """snapshot_removed_post
1366
985
 
1367
986
 
1368
- :param id: Image ID (required)
1369
- :type id: str
1370
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1371
- :type x_daytona_organization_id: str
1372
- :param follow: Whether to follow the logs stream
1373
- :type follow: bool
987
+ :param snapshot_removed_post_request: Snapshot removed event
988
+ :type snapshot_removed_post_request: SnapshotRemovedPostRequest
1374
989
  :param _request_timeout: timeout setting for this request. If one
1375
990
  number provided, it will be total request
1376
991
  timeout. It can also be a pair (tuple) of
@@ -1393,10 +1008,8 @@ class ImagesApi:
1393
1008
  :return: Returns the result object.
1394
1009
  """ # noqa: E501
1395
1010
 
1396
- _param = self._get_image_build_logs_serialize(
1397
- id=id,
1398
- x_daytona_organization_id=x_daytona_organization_id,
1399
- follow=follow,
1011
+ _param = self._snapshot_removed_post_serialize(
1012
+ snapshot_removed_post_request=snapshot_removed_post_request,
1400
1013
  _request_auth=_request_auth,
1401
1014
  _content_type=_content_type,
1402
1015
  _headers=_headers,
@@ -1413,11 +1026,9 @@ class ImagesApi:
1413
1026
  return response_data.response
1414
1027
 
1415
1028
 
1416
- def _get_image_build_logs_serialize(
1029
+ def _snapshot_removed_post_serialize(
1417
1030
  self,
1418
- id,
1419
- x_daytona_organization_id,
1420
- follow,
1031
+ snapshot_removed_post_request,
1421
1032
  _request_auth,
1422
1033
  _content_type,
1423
1034
  _headers,
@@ -1439,31 +1050,36 @@ class ImagesApi:
1439
1050
  _body_params: Optional[bytes] = None
1440
1051
 
1441
1052
  # process the path parameters
1442
- if id is not None:
1443
- _path_params['id'] = id
1444
1053
  # process the query parameters
1445
- if follow is not None:
1446
-
1447
- _query_params.append(('follow', follow))
1448
-
1449
1054
  # process the header parameters
1450
- if x_daytona_organization_id is not None:
1451
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1452
1055
  # process the form parameters
1453
1056
  # process the body parameter
1057
+ if snapshot_removed_post_request is not None:
1058
+ _body_params = snapshot_removed_post_request
1454
1059
 
1455
1060
 
1456
1061
 
1062
+ # set the HTTP header `Content-Type`
1063
+ if _content_type:
1064
+ _header_params['Content-Type'] = _content_type
1065
+ else:
1066
+ _default_content_type = (
1067
+ self.api_client.select_header_content_type(
1068
+ [
1069
+ 'application/json'
1070
+ ]
1071
+ )
1072
+ )
1073
+ if _default_content_type is not None:
1074
+ _header_params['Content-Type'] = _default_content_type
1457
1075
 
1458
1076
  # authentication setting
1459
1077
  _auth_settings: List[str] = [
1460
- 'bearer',
1461
- 'oauth2'
1462
1078
  ]
1463
1079
 
1464
1080
  return self.api_client.param_serialize(
1465
- method='GET',
1466
- resource_path='/images/{id}/build-logs',
1081
+ method='POST',
1082
+ resource_path='/snapshot.removed',
1467
1083
  path_params=_path_params,
1468
1084
  query_params=_query_params,
1469
1085
  header_params=_header_params,
@@ -1480,10 +1096,9 @@ class ImagesApi:
1480
1096
 
1481
1097
 
1482
1098
  @validate_call
1483
- async def remove_image(
1099
+ async def snapshot_state_updated_post(
1484
1100
  self,
1485
- id: Annotated[StrictStr, Field(description="Image ID")],
1486
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1101
+ snapshot_state_updated_post_request: = None,
1487
1102
  _request_timeout: Union[
1488
1103
  None,
1489
1104
  Annotated[StrictFloat, Field(gt=0)],
@@ -1497,13 +1112,11 @@ class ImagesApi:
1497
1112
  _headers: Optional[Dict[StrictStr, Any]] = None,
1498
1113
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1499
1114
  ) -> None:
1500
- """Delete image
1115
+ """snapshot_state_updated_post
1501
1116
 
1502
1117
 
1503
- :param id: Image ID (required)
1504
- :type id: str
1505
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1506
- :type x_daytona_organization_id: str
1118
+ :param snapshot_state_updated_post_request: Snapshot state updated event
1119
+ :type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
1507
1120
  :param _request_timeout: timeout setting for this request. If one
1508
1121
  number provided, it will be total request
1509
1122
  timeout. It can also be a pair (tuple) of
@@ -1526,9 +1139,8 @@ class ImagesApi:
1526
1139
  :return: Returns the result object.
1527
1140
  """ # noqa: E501
1528
1141
 
1529
- _param = self._remove_image_serialize(
1530
- id=id,
1531
- x_daytona_organization_id=x_daytona_organization_id,
1142
+ _param = self._snapshot_state_updated_post_serialize(
1143
+ snapshot_state_updated_post_request=snapshot_state_updated_post_request,
1532
1144
  _request_auth=_request_auth,
1533
1145
  _content_type=_content_type,
1534
1146
  _headers=_headers,
@@ -1550,10 +1162,9 @@ class ImagesApi:
1550
1162
 
1551
1163
 
1552
1164
  @validate_call
1553
- async def remove_image_with_http_info(
1165
+ async def snapshot_state_updated_post_with_http_info(
1554
1166
  self,
1555
- id: Annotated[StrictStr, Field(description="Image ID")],
1556
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1167
+ snapshot_state_updated_post_request: = None,
1557
1168
  _request_timeout: Union[
1558
1169
  None,
1559
1170
  Annotated[StrictFloat, Field(gt=0)],
@@ -1567,13 +1178,11 @@ class ImagesApi:
1567
1178
  _headers: Optional[Dict[StrictStr, Any]] = None,
1568
1179
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1569
1180
  ) -> ApiResponse[None]:
1570
- """Delete image
1181
+ """snapshot_state_updated_post
1571
1182
 
1572
1183
 
1573
- :param id: Image ID (required)
1574
- :type id: str
1575
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1576
- :type x_daytona_organization_id: str
1184
+ :param snapshot_state_updated_post_request: Snapshot state updated event
1185
+ :type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
1577
1186
  :param _request_timeout: timeout setting for this request. If one
1578
1187
  number provided, it will be total request
1579
1188
  timeout. It can also be a pair (tuple) of
@@ -1596,9 +1205,8 @@ class ImagesApi:
1596
1205
  :return: Returns the result object.
1597
1206
  """ # noqa: E501
1598
1207
 
1599
- _param = self._remove_image_serialize(
1600
- id=id,
1601
- x_daytona_organization_id=x_daytona_organization_id,
1208
+ _param = self._snapshot_state_updated_post_serialize(
1209
+ snapshot_state_updated_post_request=snapshot_state_updated_post_request,
1602
1210
  _request_auth=_request_auth,
1603
1211
  _content_type=_content_type,
1604
1212
  _headers=_headers,
@@ -1620,10 +1228,9 @@ class ImagesApi:
1620
1228
 
1621
1229
 
1622
1230
  @validate_call
1623
- async def remove_image_without_preload_content(
1231
+ async def snapshot_state_updated_post_without_preload_content(
1624
1232
  self,
1625
- id: Annotated[StrictStr, Field(description="Image ID")],
1626
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1233
+ snapshot_state_updated_post_request: = None,
1627
1234
  _request_timeout: Union[
1628
1235
  None,
1629
1236
  Annotated[StrictFloat, Field(gt=0)],
@@ -1637,13 +1244,11 @@ class ImagesApi:
1637
1244
  _headers: Optional[Dict[StrictStr, Any]] = None,
1638
1245
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1639
1246
  ) -> RESTResponseType:
1640
- """Delete image
1247
+ """snapshot_state_updated_post
1641
1248
 
1642
1249
 
1643
- :param id: Image ID (required)
1644
- :type id: str
1645
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1646
- :type x_daytona_organization_id: str
1250
+ :param snapshot_state_updated_post_request: Snapshot state updated event
1251
+ :type snapshot_state_updated_post_request: SnapshotStateUpdatedPostRequest
1647
1252
  :param _request_timeout: timeout setting for this request. If one
1648
1253
  number provided, it will be total request
1649
1254
  timeout. It can also be a pair (tuple) of
@@ -1666,9 +1271,8 @@ class ImagesApi:
1666
1271
  :return: Returns the result object.
1667
1272
  """ # noqa: E501
1668
1273
 
1669
- _param = self._remove_image_serialize(
1670
- id=id,
1671
- x_daytona_organization_id=x_daytona_organization_id,
1274
+ _param = self._snapshot_state_updated_post_serialize(
1275
+ snapshot_state_updated_post_request=snapshot_state_updated_post_request,
1672
1276
  _request_auth=_request_auth,
1673
1277
  _content_type=_content_type,
1674
1278
  _headers=_headers,
@@ -1685,10 +1289,9 @@ class ImagesApi:
1685
1289
  return response_data.response
1686
1290
 
1687
1291
 
1688
- def _remove_image_serialize(
1292
+ def _snapshot_state_updated_post_serialize(
1689
1293
  self,
1690
- id,
1691
- x_daytona_organization_id,
1294
+ snapshot_state_updated_post_request,
1692
1295
  _request_auth,
1693
1296
  _content_type,
1694
1297
  _headers,
@@ -1710,27 +1313,36 @@ class ImagesApi:
1710
1313
  _body_params: Optional[bytes] = None
1711
1314
 
1712
1315
  # process the path parameters
1713
- if id is not None:
1714
- _path_params['id'] = id
1715
1316
  # process the query parameters
1716
1317
  # process the header parameters
1717
- if x_daytona_organization_id is not None:
1718
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1719
1318
  # process the form parameters
1720
1319
  # process the body parameter
1320
+ if snapshot_state_updated_post_request is not None:
1321
+ _body_params = snapshot_state_updated_post_request
1721
1322
 
1722
1323
 
1723
1324
 
1325
+ # set the HTTP header `Content-Type`
1326
+ if _content_type:
1327
+ _header_params['Content-Type'] = _content_type
1328
+ else:
1329
+ _default_content_type = (
1330
+ self.api_client.select_header_content_type(
1331
+ [
1332
+ 'application/json'
1333
+ ]
1334
+ )
1335
+ )
1336
+ if _default_content_type is not None:
1337
+ _header_params['Content-Type'] = _default_content_type
1724
1338
 
1725
1339
  # authentication setting
1726
1340
  _auth_settings: List[str] = [
1727
- 'bearer',
1728
- 'oauth2'
1729
1341
  ]
1730
1342
 
1731
1343
  return self.api_client.param_serialize(
1732
- method='DELETE',
1733
- resource_path='/images/{id}',
1344
+ method='POST',
1345
+ resource_path='/snapshot.state.updated',
1734
1346
  path_params=_path_params,
1735
1347
  query_params=_query_params,
1736
1348
  header_params=_header_params,
@@ -1747,11 +1359,9 @@ class ImagesApi:
1747
1359
 
1748
1360
 
1749
1361
  @validate_call
1750
- async def set_image_general_status(
1362
+ async def volume_created_post(
1751
1363
  self,
1752
- id: Annotated[StrictStr, Field(description="Image ID")],
1753
- set_image_general_status: SetImageGeneralStatus,
1754
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1364
+ volume_created_post_request: = None,
1755
1365
  _request_timeout: Union[
1756
1366
  None,
1757
1367
  Annotated[StrictFloat, Field(gt=0)],
@@ -1764,16 +1374,12 @@ class ImagesApi:
1764
1374
  _content_type: Optional[StrictStr] = None,
1765
1375
  _headers: Optional[Dict[StrictStr, Any]] = None,
1766
1376
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1767
- ) -> ImageDto:
1768
- """Set image general status
1377
+ ) -> None:
1378
+ """volume_created_post
1769
1379
 
1770
1380
 
1771
- :param id: Image ID (required)
1772
- :type id: str
1773
- :param set_image_general_status: (required)
1774
- :type set_image_general_status: SetImageGeneralStatus
1775
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1776
- :type x_daytona_organization_id: str
1381
+ :param volume_created_post_request: Volume created event
1382
+ :type volume_created_post_request: VolumeCreatedPostRequest
1777
1383
  :param _request_timeout: timeout setting for this request. If one
1778
1384
  number provided, it will be total request
1779
1385
  timeout. It can also be a pair (tuple) of
@@ -1796,10 +1402,8 @@ class ImagesApi:
1796
1402
  :return: Returns the result object.
1797
1403
  """ # noqa: E501
1798
1404
 
1799
- _param = self._set_image_general_status_serialize(
1800
- id=id,
1801
- set_image_general_status=set_image_general_status,
1802
- x_daytona_organization_id=x_daytona_organization_id,
1405
+ _param = self._volume_created_post_serialize(
1406
+ volume_created_post_request=volume_created_post_request,
1803
1407
  _request_auth=_request_auth,
1804
1408
  _content_type=_content_type,
1805
1409
  _headers=_headers,
@@ -1807,7 +1411,7 @@ class ImagesApi:
1807
1411
  )
1808
1412
 
1809
1413
  _response_types_map: Dict[str, Optional[str]] = {
1810
- '200': "ImageDto",
1414
+ '200': None,
1811
1415
  }
1812
1416
  response_data = await self.api_client.call_api(
1813
1417
  *_param,
@@ -1821,11 +1425,9 @@ class ImagesApi:
1821
1425
 
1822
1426
 
1823
1427
  @validate_call
1824
- async def set_image_general_status_with_http_info(
1428
+ async def volume_created_post_with_http_info(
1825
1429
  self,
1826
- id: Annotated[StrictStr, Field(description="Image ID")],
1827
- set_image_general_status: SetImageGeneralStatus,
1828
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1430
+ volume_created_post_request: = None,
1829
1431
  _request_timeout: Union[
1830
1432
  None,
1831
1433
  Annotated[StrictFloat, Field(gt=0)],
@@ -1838,16 +1440,12 @@ class ImagesApi:
1838
1440
  _content_type: Optional[StrictStr] = None,
1839
1441
  _headers: Optional[Dict[StrictStr, Any]] = None,
1840
1442
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1841
- ) -> ApiResponse[ImageDto]:
1842
- """Set image general status
1443
+ ) -> ApiResponse[None]:
1444
+ """volume_created_post
1843
1445
 
1844
1446
 
1845
- :param id: Image ID (required)
1846
- :type id: str
1847
- :param set_image_general_status: (required)
1848
- :type set_image_general_status: SetImageGeneralStatus
1849
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1850
- :type x_daytona_organization_id: str
1447
+ :param volume_created_post_request: Volume created event
1448
+ :type volume_created_post_request: VolumeCreatedPostRequest
1851
1449
  :param _request_timeout: timeout setting for this request. If one
1852
1450
  number provided, it will be total request
1853
1451
  timeout. It can also be a pair (tuple) of
@@ -1870,10 +1468,8 @@ class ImagesApi:
1870
1468
  :return: Returns the result object.
1871
1469
  """ # noqa: E501
1872
1470
 
1873
- _param = self._set_image_general_status_serialize(
1874
- id=id,
1875
- set_image_general_status=set_image_general_status,
1876
- x_daytona_organization_id=x_daytona_organization_id,
1471
+ _param = self._volume_created_post_serialize(
1472
+ volume_created_post_request=volume_created_post_request,
1877
1473
  _request_auth=_request_auth,
1878
1474
  _content_type=_content_type,
1879
1475
  _headers=_headers,
@@ -1881,7 +1477,7 @@ class ImagesApi:
1881
1477
  )
1882
1478
 
1883
1479
  _response_types_map: Dict[str, Optional[str]] = {
1884
- '200': "ImageDto",
1480
+ '200': None,
1885
1481
  }
1886
1482
  response_data = await self.api_client.call_api(
1887
1483
  *_param,
@@ -1895,11 +1491,9 @@ class ImagesApi:
1895
1491
 
1896
1492
 
1897
1493
  @validate_call
1898
- async def set_image_general_status_without_preload_content(
1494
+ async def volume_created_post_without_preload_content(
1899
1495
  self,
1900
- id: Annotated[StrictStr, Field(description="Image ID")],
1901
- set_image_general_status: SetImageGeneralStatus,
1902
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1496
+ volume_created_post_request: = None,
1903
1497
  _request_timeout: Union[
1904
1498
  None,
1905
1499
  Annotated[StrictFloat, Field(gt=0)],
@@ -1913,15 +1507,11 @@ class ImagesApi:
1913
1507
  _headers: Optional[Dict[StrictStr, Any]] = None,
1914
1508
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1915
1509
  ) -> RESTResponseType:
1916
- """Set image general status
1510
+ """volume_created_post
1917
1511
 
1918
1512
 
1919
- :param id: Image ID (required)
1920
- :type id: str
1921
- :param set_image_general_status: (required)
1922
- :type set_image_general_status: SetImageGeneralStatus
1923
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
1924
- :type x_daytona_organization_id: str
1513
+ :param volume_created_post_request: Volume created event
1514
+ :type volume_created_post_request: VolumeCreatedPostRequest
1925
1515
  :param _request_timeout: timeout setting for this request. If one
1926
1516
  number provided, it will be total request
1927
1517
  timeout. It can also be a pair (tuple) of
@@ -1944,10 +1534,8 @@ class ImagesApi:
1944
1534
  :return: Returns the result object.
1945
1535
  """ # noqa: E501
1946
1536
 
1947
- _param = self._set_image_general_status_serialize(
1948
- id=id,
1949
- set_image_general_status=set_image_general_status,
1950
- x_daytona_organization_id=x_daytona_organization_id,
1537
+ _param = self._volume_created_post_serialize(
1538
+ volume_created_post_request=volume_created_post_request,
1951
1539
  _request_auth=_request_auth,
1952
1540
  _content_type=_content_type,
1953
1541
  _headers=_headers,
@@ -1955,7 +1543,7 @@ class ImagesApi:
1955
1543
  )
1956
1544
 
1957
1545
  _response_types_map: Dict[str, Optional[str]] = {
1958
- '200': "ImageDto",
1546
+ '200': None,
1959
1547
  }
1960
1548
  response_data = await self.api_client.call_api(
1961
1549
  *_param,
@@ -1964,11 +1552,9 @@ class ImagesApi:
1964
1552
  return response_data.response
1965
1553
 
1966
1554
 
1967
- def _set_image_general_status_serialize(
1555
+ def _volume_created_post_serialize(
1968
1556
  self,
1969
- id,
1970
- set_image_general_status,
1971
- x_daytona_organization_id,
1557
+ volume_created_post_request,
1972
1558
  _request_auth,
1973
1559
  _content_type,
1974
1560
  _headers,
@@ -1990,25 +1576,14 @@ class ImagesApi:
1990
1576
  _body_params: Optional[bytes] = None
1991
1577
 
1992
1578
  # process the path parameters
1993
- if id is not None:
1994
- _path_params['id'] = id
1995
1579
  # process the query parameters
1996
1580
  # process the header parameters
1997
- if x_daytona_organization_id is not None:
1998
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
1999
1581
  # process the form parameters
2000
1582
  # process the body parameter
2001
- if set_image_general_status is not None:
2002
- _body_params = set_image_general_status
1583
+ if volume_created_post_request is not None:
1584
+ _body_params = volume_created_post_request
2003
1585
 
2004
1586
 
2005
- # set the HTTP header `Accept`
2006
- if 'Accept' not in _header_params:
2007
- _header_params['Accept'] = self.api_client.select_header_accept(
2008
- [
2009
- 'application/json'
2010
- ]
2011
- )
2012
1587
 
2013
1588
  # set the HTTP header `Content-Type`
2014
1589
  if _content_type:
@@ -2026,13 +1601,11 @@ class ImagesApi:
2026
1601
 
2027
1602
  # authentication setting
2028
1603
  _auth_settings: List[str] = [
2029
- 'bearer',
2030
- 'oauth2'
2031
1604
  ]
2032
1605
 
2033
1606
  return self.api_client.param_serialize(
2034
- method='PATCH',
2035
- resource_path='/images/{id}/general',
1607
+ method='POST',
1608
+ resource_path='/volume.created',
2036
1609
  path_params=_path_params,
2037
1610
  query_params=_query_params,
2038
1611
  header_params=_header_params,
@@ -2049,11 +1622,9 @@ class ImagesApi:
2049
1622
 
2050
1623
 
2051
1624
  @validate_call
2052
- async def toggle_image_state(
1625
+ async def volume_state_updated_post(
2053
1626
  self,
2054
- id: Annotated[StrictStr, Field(description="Image ID")],
2055
- toggle_state: ToggleState,
2056
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1627
+ volume_state_updated_post_request: = None,
2057
1628
  _request_timeout: Union[
2058
1629
  None,
2059
1630
  Annotated[StrictFloat, Field(gt=0)],
@@ -2066,16 +1637,12 @@ class ImagesApi:
2066
1637
  _content_type: Optional[StrictStr] = None,
2067
1638
  _headers: Optional[Dict[StrictStr, Any]] = None,
2068
1639
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2069
- ) -> ImageDto:
2070
- """Toggle image state
1640
+ ) -> None:
1641
+ """volume_state_updated_post
2071
1642
 
2072
1643
 
2073
- :param id: Image ID (required)
2074
- :type id: str
2075
- :param toggle_state: (required)
2076
- :type toggle_state: ToggleState
2077
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
2078
- :type x_daytona_organization_id: str
1644
+ :param volume_state_updated_post_request: Volume state updated event
1645
+ :type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
2079
1646
  :param _request_timeout: timeout setting for this request. If one
2080
1647
  number provided, it will be total request
2081
1648
  timeout. It can also be a pair (tuple) of
@@ -2098,10 +1665,8 @@ class ImagesApi:
2098
1665
  :return: Returns the result object.
2099
1666
  """ # noqa: E501
2100
1667
 
2101
- _param = self._toggle_image_state_serialize(
2102
- id=id,
2103
- toggle_state=toggle_state,
2104
- x_daytona_organization_id=x_daytona_organization_id,
1668
+ _param = self._volume_state_updated_post_serialize(
1669
+ volume_state_updated_post_request=volume_state_updated_post_request,
2105
1670
  _request_auth=_request_auth,
2106
1671
  _content_type=_content_type,
2107
1672
  _headers=_headers,
@@ -2109,7 +1674,7 @@ class ImagesApi:
2109
1674
  )
2110
1675
 
2111
1676
  _response_types_map: Dict[str, Optional[str]] = {
2112
- '200': "ImageDto",
1677
+ '200': None,
2113
1678
  }
2114
1679
  response_data = await self.api_client.call_api(
2115
1680
  *_param,
@@ -2123,11 +1688,9 @@ class ImagesApi:
2123
1688
 
2124
1689
 
2125
1690
  @validate_call
2126
- async def toggle_image_state_with_http_info(
1691
+ async def volume_state_updated_post_with_http_info(
2127
1692
  self,
2128
- id: Annotated[StrictStr, Field(description="Image ID")],
2129
- toggle_state: ToggleState,
2130
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1693
+ volume_state_updated_post_request: = None,
2131
1694
  _request_timeout: Union[
2132
1695
  None,
2133
1696
  Annotated[StrictFloat, Field(gt=0)],
@@ -2140,16 +1703,12 @@ class ImagesApi:
2140
1703
  _content_type: Optional[StrictStr] = None,
2141
1704
  _headers: Optional[Dict[StrictStr, Any]] = None,
2142
1705
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2143
- ) -> ApiResponse[ImageDto]:
2144
- """Toggle image state
1706
+ ) -> ApiResponse[None]:
1707
+ """volume_state_updated_post
2145
1708
 
2146
1709
 
2147
- :param id: Image ID (required)
2148
- :type id: str
2149
- :param toggle_state: (required)
2150
- :type toggle_state: ToggleState
2151
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
2152
- :type x_daytona_organization_id: str
1710
+ :param volume_state_updated_post_request: Volume state updated event
1711
+ :type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
2153
1712
  :param _request_timeout: timeout setting for this request. If one
2154
1713
  number provided, it will be total request
2155
1714
  timeout. It can also be a pair (tuple) of
@@ -2172,10 +1731,8 @@ class ImagesApi:
2172
1731
  :return: Returns the result object.
2173
1732
  """ # noqa: E501
2174
1733
 
2175
- _param = self._toggle_image_state_serialize(
2176
- id=id,
2177
- toggle_state=toggle_state,
2178
- x_daytona_organization_id=x_daytona_organization_id,
1734
+ _param = self._volume_state_updated_post_serialize(
1735
+ volume_state_updated_post_request=volume_state_updated_post_request,
2179
1736
  _request_auth=_request_auth,
2180
1737
  _content_type=_content_type,
2181
1738
  _headers=_headers,
@@ -2183,7 +1740,7 @@ class ImagesApi:
2183
1740
  )
2184
1741
 
2185
1742
  _response_types_map: Dict[str, Optional[str]] = {
2186
- '200': "ImageDto",
1743
+ '200': None,
2187
1744
  }
2188
1745
  response_data = await self.api_client.call_api(
2189
1746
  *_param,
@@ -2197,11 +1754,9 @@ class ImagesApi:
2197
1754
 
2198
1755
 
2199
1756
  @validate_call
2200
- async def toggle_image_state_without_preload_content(
1757
+ async def volume_state_updated_post_without_preload_content(
2201
1758
  self,
2202
- id: Annotated[StrictStr, Field(description="Image ID")],
2203
- toggle_state: ToggleState,
2204
- x_daytona_organization_id: Annotated[Optional[StrictStr], Field(description="Use with JWT to specify the organization ID")] = None,
1759
+ volume_state_updated_post_request: = None,
2205
1760
  _request_timeout: Union[
2206
1761
  None,
2207
1762
  Annotated[StrictFloat, Field(gt=0)],
@@ -2215,15 +1770,11 @@ class ImagesApi:
2215
1770
  _headers: Optional[Dict[StrictStr, Any]] = None,
2216
1771
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2217
1772
  ) -> RESTResponseType:
2218
- """Toggle image state
1773
+ """volume_state_updated_post
2219
1774
 
2220
1775
 
2221
- :param id: Image ID (required)
2222
- :type id: str
2223
- :param toggle_state: (required)
2224
- :type toggle_state: ToggleState
2225
- :param x_daytona_organization_id: Use with JWT to specify the organization ID
2226
- :type x_daytona_organization_id: str
1776
+ :param volume_state_updated_post_request: Volume state updated event
1777
+ :type volume_state_updated_post_request: VolumeStateUpdatedPostRequest
2227
1778
  :param _request_timeout: timeout setting for this request. If one
2228
1779
  number provided, it will be total request
2229
1780
  timeout. It can also be a pair (tuple) of
@@ -2246,10 +1797,8 @@ class ImagesApi:
2246
1797
  :return: Returns the result object.
2247
1798
  """ # noqa: E501
2248
1799
 
2249
- _param = self._toggle_image_state_serialize(
2250
- id=id,
2251
- toggle_state=toggle_state,
2252
- x_daytona_organization_id=x_daytona_organization_id,
1800
+ _param = self._volume_state_updated_post_serialize(
1801
+ volume_state_updated_post_request=volume_state_updated_post_request,
2253
1802
  _request_auth=_request_auth,
2254
1803
  _content_type=_content_type,
2255
1804
  _headers=_headers,
@@ -2257,7 +1806,7 @@ class ImagesApi:
2257
1806
  )
2258
1807
 
2259
1808
  _response_types_map: Dict[str, Optional[str]] = {
2260
- '200': "ImageDto",
1809
+ '200': None,
2261
1810
  }
2262
1811
  response_data = await self.api_client.call_api(
2263
1812
  *_param,
@@ -2266,11 +1815,9 @@ class ImagesApi:
2266
1815
  return response_data.response
2267
1816
 
2268
1817
 
2269
- def _toggle_image_state_serialize(
1818
+ def _volume_state_updated_post_serialize(
2270
1819
  self,
2271
- id,
2272
- toggle_state,
2273
- x_daytona_organization_id,
1820
+ volume_state_updated_post_request,
2274
1821
  _request_auth,
2275
1822
  _content_type,
2276
1823
  _headers,
@@ -2292,25 +1839,14 @@ class ImagesApi:
2292
1839
  _body_params: Optional[bytes] = None
2293
1840
 
2294
1841
  # process the path parameters
2295
- if id is not None:
2296
- _path_params['id'] = id
2297
1842
  # process the query parameters
2298
1843
  # process the header parameters
2299
- if x_daytona_organization_id is not None:
2300
- _header_params['X-Daytona-Organization-ID'] = x_daytona_organization_id
2301
1844
  # process the form parameters
2302
1845
  # process the body parameter
2303
- if toggle_state is not None:
2304
- _body_params = toggle_state
1846
+ if volume_state_updated_post_request is not None:
1847
+ _body_params = volume_state_updated_post_request
2305
1848
 
2306
1849
 
2307
- # set the HTTP header `Accept`
2308
- if 'Accept' not in _header_params:
2309
- _header_params['Accept'] = self.api_client.select_header_accept(
2310
- [
2311
- 'application/json'
2312
- ]
2313
- )
2314
1850
 
2315
1851
  # set the HTTP header `Content-Type`
2316
1852
  if _content_type:
@@ -2328,13 +1864,11 @@ class ImagesApi:
2328
1864
 
2329
1865
  # authentication setting
2330
1866
  _auth_settings: List[str] = [
2331
- 'bearer',
2332
- 'oauth2'
2333
1867
  ]
2334
1868
 
2335
1869
  return self.api_client.param_serialize(
2336
- method='PATCH',
2337
- resource_path='/images/{id}/toggle',
1870
+ method='POST',
1871
+ resource_path='/volume.state.updated',
2338
1872
  path_params=_path_params,
2339
1873
  query_params=_query_params,
2340
1874
  header_params=_header_params,