@daytonaio/api-client 0.129.0 → 0.131.0-alpha.1

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.
Files changed (117) hide show
  1. package/package.json +1 -1
  2. package/src/api/admin-api.d.ts +208 -0
  3. package/src/api/admin-api.js +404 -0
  4. package/src/api/admin-api.js.map +1 -0
  5. package/src/api/jobs-api.d.ts +197 -0
  6. package/src/api/jobs-api.js +371 -0
  7. package/src/api/jobs-api.js.map +1 -0
  8. package/src/api/organizations-api.d.ts +222 -0
  9. package/src/api/organizations-api.js +454 -0
  10. package/src/api/organizations-api.js.map +1 -1
  11. package/src/api/regions-api.d.ts +8 -16
  12. package/src/api/regions-api.js +13 -29
  13. package/src/api/regions-api.js.map +1 -1
  14. package/src/api/runners-api.d.ts +144 -22
  15. package/src/api/runners-api.js +270 -25
  16. package/src/api/runners-api.js.map +1 -1
  17. package/src/api/sandbox-api.d.ts +80 -37
  18. package/src/api/sandbox-api.js +162 -77
  19. package/src/api/sandbox-api.js.map +1 -1
  20. package/src/api/snapshots-api.d.ts +38 -0
  21. package/src/api/snapshots-api.js +77 -0
  22. package/src/api/snapshots-api.js.map +1 -1
  23. package/src/api.d.ts +2 -0
  24. package/src/api.js +2 -0
  25. package/src/api.js.map +1 -1
  26. package/src/models/admin-create-runner.d.ts +78 -0
  27. package/src/models/admin-create-runner.js +4 -0
  28. package/src/models/admin-create-runner.js.map +1 -0
  29. package/src/models/api-key-list.d.ts +5 -0
  30. package/src/models/api-key-list.js +5 -0
  31. package/src/models/api-key-list.js.map +1 -1
  32. package/src/models/api-key-response.d.ts +5 -0
  33. package/src/models/api-key-response.js +5 -0
  34. package/src/models/api-key-response.js.map +1 -1
  35. package/src/models/create-api-key.d.ts +5 -0
  36. package/src/models/create-api-key.js +5 -0
  37. package/src/models/create-api-key.js.map +1 -1
  38. package/src/models/create-organization-role.d.ts +5 -0
  39. package/src/models/create-organization-role.js +5 -0
  40. package/src/models/create-organization-role.js.map +1 -1
  41. package/src/models/create-region-response.d.ts +36 -0
  42. package/src/models/create-region-response.js +4 -0
  43. package/src/models/create-region-response.js.map +1 -0
  44. package/src/models/create-region.d.ts +36 -0
  45. package/src/models/create-region.js +4 -0
  46. package/src/models/create-region.js.map +1 -0
  47. package/src/models/create-runner-response.d.ts +30 -0
  48. package/src/models/create-runner-response.js +4 -0
  49. package/src/models/create-runner-response.js.map +1 -0
  50. package/src/models/create-runner.d.ts +2 -68
  51. package/src/models/create-runner.js +0 -6
  52. package/src/models/create-runner.js.map +1 -1
  53. package/src/models/create-sandbox-snapshot.d.ts +30 -0
  54. package/src/models/create-sandbox-snapshot.js +4 -0
  55. package/src/models/create-sandbox-snapshot.js.map +1 -0
  56. package/src/models/create-snapshot.d.ts +6 -0
  57. package/src/models/index.d.ts +19 -1
  58. package/src/models/index.js +19 -1
  59. package/src/models/index.js.map +1 -1
  60. package/src/models/job-status.d.ts +23 -0
  61. package/src/models/job-status.js +27 -0
  62. package/src/models/job-status.js.map +1 -0
  63. package/src/models/job-type.d.ts +29 -0
  64. package/src/models/job-type.js +33 -0
  65. package/src/models/job-type.js.map +1 -0
  66. package/src/models/job.d.ts +88 -0
  67. package/src/models/job.js +22 -0
  68. package/src/models/job.js.map +1 -0
  69. package/src/models/organization-role.d.ts +5 -0
  70. package/src/models/organization-role.js +5 -0
  71. package/src/models/organization-role.js.map +1 -1
  72. package/src/models/paginated-jobs.d.ts +43 -0
  73. package/src/models/paginated-jobs.js +16 -0
  74. package/src/models/paginated-jobs.js.map +1 -0
  75. package/src/models/poll-jobs-response.d.ts +25 -0
  76. package/src/models/poll-jobs-response.js +16 -0
  77. package/src/models/poll-jobs-response.js.map +1 -0
  78. package/src/models/regenerate-api-key-response.d.ts +24 -0
  79. package/src/models/regenerate-api-key-response.js +4 -0
  80. package/src/models/regenerate-api-key-response.js.map +1 -0
  81. package/src/models/region-type.d.ts +22 -0
  82. package/src/models/region-type.js +26 -0
  83. package/src/models/region-type.js.map +1 -0
  84. package/src/models/region.d.ts +19 -0
  85. package/src/models/region.js +12 -0
  86. package/src/models/region.js.map +1 -1
  87. package/src/models/runner-class.d.ts +22 -0
  88. package/src/models/runner-class.js +26 -0
  89. package/src/models/runner-class.js.map +1 -0
  90. package/src/models/runner-full.d.ts +204 -0
  91. package/src/models/runner-full.js +16 -0
  92. package/src/models/runner-full.js.map +1 -0
  93. package/src/models/runner-health-metrics.d.ts +78 -0
  94. package/src/models/runner-health-metrics.js +4 -0
  95. package/src/models/runner-health-metrics.js.map +1 -0
  96. package/src/models/runner-healthcheck.d.ts +43 -0
  97. package/src/models/runner-healthcheck.js +16 -0
  98. package/src/models/runner-healthcheck.js.map +1 -0
  99. package/src/models/runner.d.ts +30 -15
  100. package/src/models/sandbox.d.ts +0 -6
  101. package/src/models/sandbox.js.map +1 -1
  102. package/src/models/snapshot-dto.d.ts +13 -0
  103. package/src/models/snapshot-runner-class-dto.d.ts +25 -0
  104. package/src/models/snapshot-runner-class-dto.js +16 -0
  105. package/src/models/snapshot-runner-class-dto.js.map +1 -0
  106. package/src/models/ssh-access-dto.d.ts +6 -0
  107. package/src/models/toolbox-proxy-url.d.ts +24 -0
  108. package/src/models/toolbox-proxy-url.js +4 -0
  109. package/src/models/toolbox-proxy-url.js.map +1 -0
  110. package/src/models/update-job-status.d.ts +37 -0
  111. package/src/models/update-job-status.js +16 -0
  112. package/src/models/update-job-status.js.map +1 -0
  113. package/src/models/update-organization-role.d.ts +5 -0
  114. package/src/models/update-organization-role.js +5 -0
  115. package/src/models/update-organization-role.js.map +1 -1
  116. package/src/models/workspace.d.ts +0 -6
  117. package/src/models/workspace.js.map +1 -1
@@ -13,12 +13,14 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { CreateSandbox } from '../models';
16
+ import type { CreateSandboxSnapshot } from '../models';
16
17
  import type { PaginatedSandboxes } from '../models';
17
18
  import type { PortPreviewUrl } from '../models';
18
19
  import type { Sandbox } from '../models';
19
20
  import type { SandboxLabels } from '../models';
20
21
  import type { SshAccessDto } from '../models';
21
22
  import type { SshAccessValidationDto } from '../models';
23
+ import type { ToolboxProxyUrl } from '../models';
22
24
  import type { UpdateSandboxStateDto } from '../models';
23
25
  /**
24
26
  * SandboxApi - axios parameter creator
@@ -52,6 +54,16 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
52
54
  * @throws {RequiredError}
53
55
  */
54
56
  createSandbox: (createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
59
+ * @summary Create a snapshot from a sandbox
60
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
61
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
62
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
63
+ * @param {*} [options] Override http request option.
64
+ * @throws {RequiredError}
65
+ */
66
+ createSandboxSnapshot: (sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
67
  /**
56
68
  *
57
69
  * @summary Create SSH access for sandbox
@@ -111,6 +123,15 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
111
123
  * @throws {RequiredError}
112
124
  */
113
125
  getSandboxesForRunner: (xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
126
+ /**
127
+ *
128
+ * @summary Get toolbox proxy URL for a sandbox
129
+ * @param {string} sandboxId ID of the sandbox
130
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ getToolboxProxyUrl: (sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
114
135
  /**
115
136
  *
116
137
  * @summary List all sandboxes
@@ -149,15 +170,6 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
149
170
  * @throws {RequiredError}
150
171
  */
151
172
  listSandboxesPaginated: (xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
152
- /**
153
- *
154
- * @summary Recover sandbox from error state
155
- * @param {string} sandboxIdOrName ID or name of the sandbox
156
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- */
160
- recoverSandbox: (sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
161
173
  /**
162
174
  *
163
175
  * @summary Replace sandbox labels
@@ -297,6 +309,16 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
297
309
  * @throws {RequiredError}
298
310
  */
299
311
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
312
+ /**
313
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
314
+ * @summary Create a snapshot from a sandbox
315
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
316
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
317
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
300
322
  /**
301
323
  *
302
324
  * @summary Create SSH access for sandbox
@@ -356,6 +378,15 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
356
378
  * @throws {RequiredError}
357
379
  */
358
380
  getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sandbox>>>;
381
+ /**
382
+ *
383
+ * @summary Get toolbox proxy URL for a sandbox
384
+ * @param {string} sandboxId ID of the sandbox
385
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ getToolboxProxyUrl(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ToolboxProxyUrl>>;
359
390
  /**
360
391
  *
361
392
  * @summary List all sandboxes
@@ -394,15 +425,6 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
394
425
  * @throws {RequiredError}
395
426
  */
396
427
  listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedSandboxes>>;
397
- /**
398
- *
399
- * @summary Recover sandbox from error state
400
- * @param {string} sandboxIdOrName ID or name of the sandbox
401
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
402
- * @param {*} [options] Override http request option.
403
- * @throws {RequiredError}
404
- */
405
- recoverSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
406
428
  /**
407
429
  *
408
430
  * @summary Replace sandbox labels
@@ -542,6 +564,16 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
542
564
  * @throws {RequiredError}
543
565
  */
544
566
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
567
+ /**
568
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
569
+ * @summary Create a snapshot from a sandbox
570
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
571
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
572
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
545
577
  /**
546
578
  *
547
579
  * @summary Create SSH access for sandbox
@@ -601,6 +633,15 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
601
633
  * @throws {RequiredError}
602
634
  */
603
635
  getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sandbox>>;
636
+ /**
637
+ *
638
+ * @summary Get toolbox proxy URL for a sandbox
639
+ * @param {string} sandboxId ID of the sandbox
640
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ getToolboxProxyUrl(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ToolboxProxyUrl>;
604
645
  /**
605
646
  *
606
647
  * @summary List all sandboxes
@@ -639,15 +680,6 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
639
680
  * @throws {RequiredError}
640
681
  */
641
682
  listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedSandboxes>;
642
- /**
643
- *
644
- * @summary Recover sandbox from error state
645
- * @param {string} sandboxIdOrName ID or name of the sandbox
646
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
647
- * @param {*} [options] Override http request option.
648
- * @throws {RequiredError}
649
- */
650
- recoverSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
651
683
  /**
652
684
  *
653
685
  * @summary Replace sandbox labels
@@ -792,6 +824,17 @@ export declare class SandboxApi extends BaseAPI {
792
824
  * @memberof SandboxApi
793
825
  */
794
826
  createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
827
+ /**
828
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
829
+ * @summary Create a snapshot from a sandbox
830
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
831
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
832
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
833
+ * @param {*} [options] Override http request option.
834
+ * @throws {RequiredError}
835
+ * @memberof SandboxApi
836
+ */
837
+ createSandboxSnapshot(sandboxIdOrName: string, createSandboxSnapshot: CreateSandboxSnapshot, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
795
838
  /**
796
839
  *
797
840
  * @summary Create SSH access for sandbox
@@ -857,6 +900,16 @@ export declare class SandboxApi extends BaseAPI {
857
900
  * @memberof SandboxApi
858
901
  */
859
902
  getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
903
+ /**
904
+ *
905
+ * @summary Get toolbox proxy URL for a sandbox
906
+ * @param {string} sandboxId ID of the sandbox
907
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ * @memberof SandboxApi
911
+ */
912
+ getToolboxProxyUrl(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ToolboxProxyUrl, any>>;
860
913
  /**
861
914
  *
862
915
  * @summary List all sandboxes
@@ -897,16 +950,6 @@ export declare class SandboxApi extends BaseAPI {
897
950
  * @memberof SandboxApi
898
951
  */
899
952
  listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedSandboxes, any>>;
900
- /**
901
- *
902
- * @summary Recover sandbox from error state
903
- * @param {string} sandboxIdOrName ID or name of the sandbox
904
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
905
- * @param {*} [options] Override http request option.
906
- * @throws {RequiredError}
907
- * @memberof SandboxApi
908
- */
909
- recoverSandbox(sandboxIdOrName: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
910
953
  /**
911
954
  *
912
955
  * @summary Replace sandbox labels
@@ -136,6 +136,47 @@ const SandboxApiAxiosParamCreator = function (configuration) {
136
136
  options: localVarRequestOptions,
137
137
  };
138
138
  },
139
+ /**
140
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
141
+ * @summary Create a snapshot from a sandbox
142
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
143
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
144
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ createSandboxSnapshot: async (sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options = {}) => {
149
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
150
+ (0, common_1.assertParamExists)('createSandboxSnapshot', 'sandboxIdOrName', sandboxIdOrName);
151
+ // verify required parameter 'createSandboxSnapshot' is not null or undefined
152
+ (0, common_1.assertParamExists)('createSandboxSnapshot', 'createSandboxSnapshot', createSandboxSnapshot);
153
+ const localVarPath = `/sandbox/{sandboxIdOrName}/snapshot`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
156
+ let baseOptions;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ }
160
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
161
+ const localVarHeaderParameter = {};
162
+ const localVarQueryParameter = {};
163
+ // authentication bearer required
164
+ // http bearer authentication required
165
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
166
+ // authentication oauth2 required
167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
168
+ if (xDaytonaOrganizationID != null) {
169
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
170
+ }
171
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
174
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSandboxSnapshot, localVarRequestOptions, configuration);
175
+ return {
176
+ url: (0, common_1.toPathString)(localVarUrlObj),
177
+ options: localVarRequestOptions,
178
+ };
179
+ },
139
180
  /**
140
181
  *
141
182
  * @summary Create SSH access for sandbox
@@ -374,6 +415,42 @@ const SandboxApiAxiosParamCreator = function (configuration) {
374
415
  options: localVarRequestOptions,
375
416
  };
376
417
  },
418
+ /**
419
+ *
420
+ * @summary Get toolbox proxy URL for a sandbox
421
+ * @param {string} sandboxId ID of the sandbox
422
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ getToolboxProxyUrl: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
427
+ // verify required parameter 'sandboxId' is not null or undefined
428
+ (0, common_1.assertParamExists)('getToolboxProxyUrl', 'sandboxId', sandboxId);
429
+ const localVarPath = `/sandbox/{sandboxId}/toolbox-proxy-url`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
430
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
431
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
432
+ let baseOptions;
433
+ if (configuration) {
434
+ baseOptions = configuration.baseOptions;
435
+ }
436
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
437
+ const localVarHeaderParameter = {};
438
+ const localVarQueryParameter = {};
439
+ // authentication bearer required
440
+ // http bearer authentication required
441
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
442
+ // authentication oauth2 required
443
+ if (xDaytonaOrganizationID != null) {
444
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
445
+ }
446
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
448
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
449
+ return {
450
+ url: (0, common_1.toPathString)(localVarUrlObj),
451
+ options: localVarRequestOptions,
452
+ };
453
+ },
377
454
  /**
378
455
  *
379
456
  * @summary List all sandboxes
@@ -530,42 +607,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
530
607
  options: localVarRequestOptions,
531
608
  };
532
609
  },
533
- /**
534
- *
535
- * @summary Recover sandbox from error state
536
- * @param {string} sandboxIdOrName ID or name of the sandbox
537
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
538
- * @param {*} [options] Override http request option.
539
- * @throws {RequiredError}
540
- */
541
- recoverSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
542
- // verify required parameter 'sandboxIdOrName' is not null or undefined
543
- (0, common_1.assertParamExists)('recoverSandbox', 'sandboxIdOrName', sandboxIdOrName);
544
- const localVarPath = `/sandbox/{sandboxIdOrName}/recover`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
545
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
546
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
547
- let baseOptions;
548
- if (configuration) {
549
- baseOptions = configuration.baseOptions;
550
- }
551
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
552
- const localVarHeaderParameter = {};
553
- const localVarQueryParameter = {};
554
- // authentication bearer required
555
- // http bearer authentication required
556
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
557
- // authentication oauth2 required
558
- if (xDaytonaOrganizationID != null) {
559
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
560
- }
561
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
562
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
563
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
564
- return {
565
- url: (0, common_1.toPathString)(localVarUrlObj),
566
- options: localVarRequestOptions,
567
- };
568
- },
569
610
  /**
570
611
  *
571
612
  * @summary Replace sandbox labels
@@ -1051,6 +1092,21 @@ const SandboxApiFp = function (configuration) {
1051
1092
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandbox']?.[localVarOperationServerIndex]?.url;
1052
1093
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1053
1094
  },
1095
+ /**
1096
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
1097
+ * @summary Create a snapshot from a sandbox
1098
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
1099
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
1100
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1101
+ * @param {*} [options] Override http request option.
1102
+ * @throws {RequiredError}
1103
+ */
1104
+ async createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
1105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options);
1106
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1107
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandboxSnapshot']?.[localVarOperationServerIndex]?.url;
1108
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1109
+ },
1054
1110
  /**
1055
1111
  *
1056
1112
  * @summary Create SSH access for sandbox
@@ -1140,6 +1196,20 @@ const SandboxApiFp = function (configuration) {
1140
1196
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxesForRunner']?.[localVarOperationServerIndex]?.url;
1141
1197
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1142
1198
  },
1199
+ /**
1200
+ *
1201
+ * @summary Get toolbox proxy URL for a sandbox
1202
+ * @param {string} sandboxId ID of the sandbox
1203
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ async getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
1208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options);
1209
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1210
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getToolboxProxyUrl']?.[localVarOperationServerIndex]?.url;
1211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1212
+ },
1143
1213
  /**
1144
1214
  *
1145
1215
  * @summary List all sandboxes
@@ -1188,20 +1258,6 @@ const SandboxApiFp = function (configuration) {
1188
1258
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginated']?.[localVarOperationServerIndex]?.url;
1189
1259
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1190
1260
  },
1191
- /**
1192
- *
1193
- * @summary Recover sandbox from error state
1194
- * @param {string} sandboxIdOrName ID or name of the sandbox
1195
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1196
- * @param {*} [options] Override http request option.
1197
- * @throws {RequiredError}
1198
- */
1199
- async recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1200
- const localVarAxiosArgs = await localVarAxiosParamCreator.recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1201
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1202
- const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.recoverSandbox']?.[localVarOperationServerIndex]?.url;
1203
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1204
- },
1205
1261
  /**
1206
1262
  *
1207
1263
  * @summary Replace sandbox labels
@@ -1412,6 +1468,20 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1412
1468
  .createSandbox(createSandbox, xDaytonaOrganizationID, options)
1413
1469
  .then((request) => request(axios, basePath));
1414
1470
  },
1471
+ /**
1472
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
1473
+ * @summary Create a snapshot from a sandbox
1474
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
1475
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
1476
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
1481
+ return localVarFp
1482
+ .createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options)
1483
+ .then((request) => request(axios, basePath));
1484
+ },
1415
1485
  /**
1416
1486
  *
1417
1487
  * @summary Create SSH access for sandbox
@@ -1495,6 +1565,19 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1495
1565
  .getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
1496
1566
  .then((request) => request(axios, basePath));
1497
1567
  },
1568
+ /**
1569
+ *
1570
+ * @summary Get toolbox proxy URL for a sandbox
1571
+ * @param {string} sandboxId ID of the sandbox
1572
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1573
+ * @param {*} [options] Override http request option.
1574
+ * @throws {RequiredError}
1575
+ */
1576
+ getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
1577
+ return localVarFp
1578
+ .getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options)
1579
+ .then((request) => request(axios, basePath));
1580
+ },
1498
1581
  /**
1499
1582
  *
1500
1583
  * @summary List all sandboxes
@@ -1541,19 +1624,6 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1541
1624
  .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1542
1625
  .then((request) => request(axios, basePath));
1543
1626
  },
1544
- /**
1545
- *
1546
- * @summary Recover sandbox from error state
1547
- * @param {string} sandboxIdOrName ID or name of the sandbox
1548
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1549
- * @param {*} [options] Override http request option.
1550
- * @throws {RequiredError}
1551
- */
1552
- recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1553
- return localVarFp
1554
- .recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1555
- .then((request) => request(axios, basePath));
1556
- },
1557
1627
  /**
1558
1628
  *
1559
1629
  * @summary Replace sandbox labels
@@ -1756,6 +1826,21 @@ class SandboxApi extends base_1.BaseAPI {
1756
1826
  .createSandbox(createSandbox, xDaytonaOrganizationID, options)
1757
1827
  .then((request) => request(this.axios, this.basePath));
1758
1828
  }
1829
+ /**
1830
+ * Create a new snapshot from an existing sandbox. The snapshot captures the current state of the sandbox filesystem. Supports safe mode (pauses VM during operation) and live mode (no pause, may be inconsistent).
1831
+ * @summary Create a snapshot from a sandbox
1832
+ * @param {string} sandboxIdOrName ID or name of the sandbox to create a snapshot from
1833
+ * @param {CreateSandboxSnapshot} createSandboxSnapshot
1834
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1835
+ * @param {*} [options] Override http request option.
1836
+ * @throws {RequiredError}
1837
+ * @memberof SandboxApi
1838
+ */
1839
+ createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
1840
+ return (0, exports.SandboxApiFp)(this.configuration)
1841
+ .createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options)
1842
+ .then((request) => request(this.axios, this.basePath));
1843
+ }
1759
1844
  /**
1760
1845
  *
1761
1846
  * @summary Create SSH access for sandbox
@@ -1845,6 +1930,20 @@ class SandboxApi extends base_1.BaseAPI {
1845
1930
  .getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
1846
1931
  .then((request) => request(this.axios, this.basePath));
1847
1932
  }
1933
+ /**
1934
+ *
1935
+ * @summary Get toolbox proxy URL for a sandbox
1936
+ * @param {string} sandboxId ID of the sandbox
1937
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ * @memberof SandboxApi
1941
+ */
1942
+ getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
1943
+ return (0, exports.SandboxApiFp)(this.configuration)
1944
+ .getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options)
1945
+ .then((request) => request(this.axios, this.basePath));
1946
+ }
1848
1947
  /**
1849
1948
  *
1850
1949
  * @summary List all sandboxes
@@ -1893,20 +1992,6 @@ class SandboxApi extends base_1.BaseAPI {
1893
1992
  .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1894
1993
  .then((request) => request(this.axios, this.basePath));
1895
1994
  }
1896
- /**
1897
- *
1898
- * @summary Recover sandbox from error state
1899
- * @param {string} sandboxIdOrName ID or name of the sandbox
1900
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1901
- * @param {*} [options] Override http request option.
1902
- * @throws {RequiredError}
1903
- * @memberof SandboxApi
1904
- */
1905
- recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1906
- return (0, exports.SandboxApiFp)(this.configuration)
1907
- .recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1908
- .then((request) => request(this.axios, this.basePath));
1909
- }
1910
1995
  /**
1911
1996
  *
1912
1997
  * @summary Replace sandbox labels