@daytonaio/api-client 0.109.0 → 0.110.0

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.
@@ -29,15 +29,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
29
29
  /**
30
30
  *
31
31
  * @summary Archive sandbox
32
- * @param {string} sandboxId
32
+ * @param {string} sandboxIdOrName
33
33
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
34
34
  * @param {*} [options] Override http request option.
35
35
  * @throws {RequiredError}
36
36
  */
37
- archiveSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
38
- // verify required parameter 'sandboxId' is not null or undefined
39
- (0, common_1.assertParamExists)('archiveSandbox', 'sandboxId', sandboxId);
40
- const localVarPath = `/sandbox/{sandboxId}/archive`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
37
+ archiveSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
38
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
39
+ (0, common_1.assertParamExists)('archiveSandbox', 'sandboxIdOrName', sandboxIdOrName);
40
+ const localVarPath = `/sandbox/{sandboxIdOrName}/archive`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
41
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
42
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
43
43
  let baseOptions;
@@ -65,15 +65,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
65
65
  /**
66
66
  *
67
67
  * @summary Create sandbox backup
68
- * @param {string} sandboxId ID of the sandbox
68
+ * @param {string} sandboxIdOrName ID or name of the sandbox
69
69
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
70
70
  * @param {*} [options] Override http request option.
71
71
  * @throws {RequiredError}
72
72
  */
73
- createBackup: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
74
- // verify required parameter 'sandboxId' is not null or undefined
75
- (0, common_1.assertParamExists)('createBackup', 'sandboxId', sandboxId);
76
- const localVarPath = `/sandbox/{sandboxId}/backup`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
73
+ createBackup: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
74
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
75
+ (0, common_1.assertParamExists)('createBackup', 'sandboxIdOrName', sandboxIdOrName);
76
+ const localVarPath = `/sandbox/{sandboxIdOrName}/backup`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
77
77
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
78
78
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
79
79
  let baseOptions;
@@ -139,16 +139,16 @@ const SandboxApiAxiosParamCreator = function (configuration) {
139
139
  /**
140
140
  *
141
141
  * @summary Create SSH access for sandbox
142
- * @param {string} sandboxId ID of the sandbox
142
+ * @param {string} sandboxIdOrName ID or name of the sandbox
143
143
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
144
144
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
145
145
  * @param {*} [options] Override http request option.
146
146
  * @throws {RequiredError}
147
147
  */
148
- createSshAccess: async (sandboxId, xDaytonaOrganizationID, expiresInMinutes, options = {}) => {
149
- // verify required parameter 'sandboxId' is not null or undefined
150
- (0, common_1.assertParamExists)('createSshAccess', 'sandboxId', sandboxId);
151
- const localVarPath = `/sandbox/{sandboxId}/ssh-access`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
148
+ createSshAccess: async (sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options = {}) => {
149
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
150
+ (0, common_1.assertParamExists)('createSshAccess', 'sandboxIdOrName', sandboxIdOrName);
151
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ssh-access`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
152
152
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
153
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
154
  let baseOptions;
@@ -179,15 +179,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
179
179
  /**
180
180
  *
181
181
  * @summary Delete sandbox
182
- * @param {string} sandboxId ID of the sandbox
182
+ * @param {string} sandboxIdOrName ID or name of the sandbox
183
183
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
184
184
  * @param {*} [options] Override http request option.
185
185
  * @throws {RequiredError}
186
186
  */
187
- deleteSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
188
- // verify required parameter 'sandboxId' is not null or undefined
189
- (0, common_1.assertParamExists)('deleteSandbox', 'sandboxId', sandboxId);
190
- const localVarPath = `/sandbox/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
187
+ deleteSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
188
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
189
+ (0, common_1.assertParamExists)('deleteSandbox', 'sandboxIdOrName', sandboxIdOrName);
190
+ const localVarPath = `/sandbox/{sandboxIdOrName}`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
191
191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
192
192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
193
193
  let baseOptions;
@@ -215,16 +215,16 @@ const SandboxApiAxiosParamCreator = function (configuration) {
215
215
  /**
216
216
  *
217
217
  * @summary Get build logs
218
- * @param {string} sandboxId ID of the sandbox
218
+ * @param {string} sandboxIdOrName ID or name of the sandbox
219
219
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
220
220
  * @param {boolean} [follow] Whether to follow the logs stream
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
223
223
  */
224
- getBuildLogs: async (sandboxId, xDaytonaOrganizationID, follow, options = {}) => {
225
- // verify required parameter 'sandboxId' is not null or undefined
226
- (0, common_1.assertParamExists)('getBuildLogs', 'sandboxId', sandboxId);
227
- const localVarPath = `/sandbox/{sandboxId}/build-logs`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
224
+ getBuildLogs: async (sandboxIdOrName, xDaytonaOrganizationID, follow, options = {}) => {
225
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
226
+ (0, common_1.assertParamExists)('getBuildLogs', 'sandboxIdOrName', sandboxIdOrName);
227
+ const localVarPath = `/sandbox/{sandboxIdOrName}/build-logs`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
228
228
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
229
229
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
230
230
  let baseOptions;
@@ -255,19 +255,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
255
255
  /**
256
256
  *
257
257
  * @summary Get preview URL for a sandbox port
258
- * @param {string} sandboxId ID of the sandbox
258
+ * @param {string} sandboxIdOrName ID or name of the sandbox
259
259
  * @param {number} port Port number to get preview URL for
260
260
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
261
261
  * @param {*} [options] Override http request option.
262
262
  * @throws {RequiredError}
263
263
  */
264
- getPortPreviewUrl: async (sandboxId, port, xDaytonaOrganizationID, options = {}) => {
265
- // verify required parameter 'sandboxId' is not null or undefined
266
- (0, common_1.assertParamExists)('getPortPreviewUrl', 'sandboxId', sandboxId);
264
+ getPortPreviewUrl: async (sandboxIdOrName, port, xDaytonaOrganizationID, options = {}) => {
265
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
266
+ (0, common_1.assertParamExists)('getPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
267
267
  // verify required parameter 'port' is not null or undefined
268
268
  (0, common_1.assertParamExists)('getPortPreviewUrl', 'port', port);
269
- const localVarPath = `/sandbox/{sandboxId}/ports/{port}/preview-url`
270
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
269
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/preview-url`
270
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
271
271
  .replace(`{${'port'}}`, encodeURIComponent(String(port)));
272
272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
273
273
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -296,16 +296,16 @@ const SandboxApiAxiosParamCreator = function (configuration) {
296
296
  /**
297
297
  *
298
298
  * @summary Get sandbox details
299
- * @param {string} sandboxId ID of the sandbox
299
+ * @param {string} sandboxIdOrName ID or name of the sandbox
300
300
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
301
301
  * @param {boolean} [verbose] Include verbose output
302
302
  * @param {*} [options] Override http request option.
303
303
  * @throws {RequiredError}
304
304
  */
305
- getSandbox: async (sandboxId, xDaytonaOrganizationID, verbose, options = {}) => {
306
- // verify required parameter 'sandboxId' is not null or undefined
307
- (0, common_1.assertParamExists)('getSandbox', 'sandboxId', sandboxId);
308
- const localVarPath = `/sandbox/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
305
+ getSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, verbose, options = {}) => {
306
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
307
+ (0, common_1.assertParamExists)('getSandbox', 'sandboxIdOrName', sandboxIdOrName);
308
+ const localVarPath = `/sandbox/{sandboxIdOrName}`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
309
309
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
310
310
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
311
  let baseOptions;
@@ -459,6 +459,7 @@ const SandboxApiAxiosParamCreator = function (configuration) {
459
459
  * @param {number} [page] Page number of the results
460
460
  * @param {number} [limit] Number of results per page
461
461
  * @param {string} [id] Filter by partial ID match
462
+ * @param {string} [name] Filter by partial name match
462
463
  * @param {string} [labels] JSON encoded labels to filter by
463
464
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
464
465
  * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
@@ -477,7 +478,7 @@ const SandboxApiAxiosParamCreator = function (configuration) {
477
478
  * @param {*} [options] Override http request option.
478
479
  * @throws {RequiredError}
479
480
  */
480
- listSandboxesPaginated: async (xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
481
+ listSandboxesPaginated: async (xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
481
482
  const localVarPath = `/sandbox/paginated`;
482
483
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
484
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -501,6 +502,9 @@ const SandboxApiAxiosParamCreator = function (configuration) {
501
502
  if (id !== undefined) {
502
503
  localVarQueryParameter['id'] = id;
503
504
  }
505
+ if (name !== undefined) {
506
+ localVarQueryParameter['name'] = name;
507
+ }
504
508
  if (labels !== undefined) {
505
509
  localVarQueryParameter['labels'] = labels;
506
510
  }
@@ -562,18 +566,18 @@ const SandboxApiAxiosParamCreator = function (configuration) {
562
566
  /**
563
567
  *
564
568
  * @summary Replace sandbox labels
565
- * @param {string} sandboxId ID of the sandbox
569
+ * @param {string} sandboxIdOrName ID or name of the sandbox
566
570
  * @param {SandboxLabels} sandboxLabels
567
571
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
568
572
  * @param {*} [options] Override http request option.
569
573
  * @throws {RequiredError}
570
574
  */
571
- replaceLabels: async (sandboxId, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
572
- // verify required parameter 'sandboxId' is not null or undefined
573
- (0, common_1.assertParamExists)('replaceLabels', 'sandboxId', sandboxId);
575
+ replaceLabels: async (sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
576
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
577
+ (0, common_1.assertParamExists)('replaceLabels', 'sandboxIdOrName', sandboxIdOrName);
574
578
  // verify required parameter 'sandboxLabels' is not null or undefined
575
579
  (0, common_1.assertParamExists)('replaceLabels', 'sandboxLabels', sandboxLabels);
576
- const localVarPath = `/sandbox/{sandboxId}/labels`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
580
+ const localVarPath = `/sandbox/{sandboxIdOrName}/labels`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
577
581
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
578
582
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
579
583
  let baseOptions;
@@ -603,16 +607,16 @@ const SandboxApiAxiosParamCreator = function (configuration) {
603
607
  /**
604
608
  *
605
609
  * @summary Revoke SSH access for sandbox
606
- * @param {string} sandboxId ID of the sandbox
610
+ * @param {string} sandboxIdOrName ID or name of the sandbox
607
611
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
608
612
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
609
613
  * @param {*} [options] Override http request option.
610
614
  * @throws {RequiredError}
611
615
  */
612
- revokeSshAccess: async (sandboxId, xDaytonaOrganizationID, token, options = {}) => {
613
- // verify required parameter 'sandboxId' is not null or undefined
614
- (0, common_1.assertParamExists)('revokeSshAccess', 'sandboxId', sandboxId);
615
- const localVarPath = `/sandbox/{sandboxId}/ssh-access`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
616
+ revokeSshAccess: async (sandboxIdOrName, xDaytonaOrganizationID, token, options = {}) => {
617
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
618
+ (0, common_1.assertParamExists)('revokeSshAccess', 'sandboxIdOrName', sandboxIdOrName);
619
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ssh-access`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
616
620
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
617
621
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
618
622
  let baseOptions;
@@ -643,19 +647,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
643
647
  /**
644
648
  *
645
649
  * @summary Set sandbox auto-archive interval
646
- * @param {string} sandboxId ID of the sandbox
650
+ * @param {string} sandboxIdOrName ID or name of the sandbox
647
651
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
648
652
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
649
653
  * @param {*} [options] Override http request option.
650
654
  * @throws {RequiredError}
651
655
  */
652
- setAutoArchiveInterval: async (sandboxId, interval, xDaytonaOrganizationID, options = {}) => {
653
- // verify required parameter 'sandboxId' is not null or undefined
654
- (0, common_1.assertParamExists)('setAutoArchiveInterval', 'sandboxId', sandboxId);
656
+ setAutoArchiveInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
657
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
658
+ (0, common_1.assertParamExists)('setAutoArchiveInterval', 'sandboxIdOrName', sandboxIdOrName);
655
659
  // verify required parameter 'interval' is not null or undefined
656
660
  (0, common_1.assertParamExists)('setAutoArchiveInterval', 'interval', interval);
657
- const localVarPath = `/sandbox/{sandboxId}/autoarchive/{interval}`
658
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
661
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autoarchive/{interval}`
662
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
659
663
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
660
664
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
661
665
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -684,19 +688,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
684
688
  /**
685
689
  *
686
690
  * @summary Set sandbox auto-delete interval
687
- * @param {string} sandboxId ID of the sandbox
691
+ * @param {string} sandboxIdOrName ID or name of the sandbox
688
692
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
689
693
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
690
694
  * @param {*} [options] Override http request option.
691
695
  * @throws {RequiredError}
692
696
  */
693
- setAutoDeleteInterval: async (sandboxId, interval, xDaytonaOrganizationID, options = {}) => {
694
- // verify required parameter 'sandboxId' is not null or undefined
695
- (0, common_1.assertParamExists)('setAutoDeleteInterval', 'sandboxId', sandboxId);
697
+ setAutoDeleteInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
698
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
699
+ (0, common_1.assertParamExists)('setAutoDeleteInterval', 'sandboxIdOrName', sandboxIdOrName);
696
700
  // verify required parameter 'interval' is not null or undefined
697
701
  (0, common_1.assertParamExists)('setAutoDeleteInterval', 'interval', interval);
698
- const localVarPath = `/sandbox/{sandboxId}/autodelete/{interval}`
699
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
702
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autodelete/{interval}`
703
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
700
704
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
701
705
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
706
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -725,19 +729,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
725
729
  /**
726
730
  *
727
731
  * @summary Set sandbox auto-stop interval
728
- * @param {string} sandboxId ID of the sandbox
732
+ * @param {string} sandboxIdOrName ID or name of the sandbox
729
733
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
730
734
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
731
735
  * @param {*} [options] Override http request option.
732
736
  * @throws {RequiredError}
733
737
  */
734
- setAutostopInterval: async (sandboxId, interval, xDaytonaOrganizationID, options = {}) => {
735
- // verify required parameter 'sandboxId' is not null or undefined
736
- (0, common_1.assertParamExists)('setAutostopInterval', 'sandboxId', sandboxId);
738
+ setAutostopInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
739
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
740
+ (0, common_1.assertParamExists)('setAutostopInterval', 'sandboxIdOrName', sandboxIdOrName);
737
741
  // verify required parameter 'interval' is not null or undefined
738
742
  (0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
739
- const localVarPath = `/sandbox/{sandboxId}/autostop/{interval}`
740
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
743
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autostop/{interval}`
744
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
741
745
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
742
746
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
743
747
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -766,15 +770,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
766
770
  /**
767
771
  *
768
772
  * @summary Start sandbox
769
- * @param {string} sandboxId ID of the sandbox
773
+ * @param {string} sandboxIdOrName ID or name of the sandbox
770
774
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
771
775
  * @param {*} [options] Override http request option.
772
776
  * @throws {RequiredError}
773
777
  */
774
- startSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
775
- // verify required parameter 'sandboxId' is not null or undefined
776
- (0, common_1.assertParamExists)('startSandbox', 'sandboxId', sandboxId);
777
- const localVarPath = `/sandbox/{sandboxId}/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
778
+ startSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
779
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
780
+ (0, common_1.assertParamExists)('startSandbox', 'sandboxIdOrName', sandboxIdOrName);
781
+ const localVarPath = `/sandbox/{sandboxIdOrName}/start`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
778
782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
779
783
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
780
784
  let baseOptions;
@@ -802,15 +806,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
802
806
  /**
803
807
  *
804
808
  * @summary Stop sandbox
805
- * @param {string} sandboxId ID of the sandbox
809
+ * @param {string} sandboxIdOrName ID or name of the sandbox
806
810
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
807
811
  * @param {*} [options] Override http request option.
808
812
  * @throws {RequiredError}
809
813
  */
810
- stopSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
811
- // verify required parameter 'sandboxId' is not null or undefined
812
- (0, common_1.assertParamExists)('stopSandbox', 'sandboxId', sandboxId);
813
- const localVarPath = `/sandbox/{sandboxId}/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
814
+ stopSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
815
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
816
+ (0, common_1.assertParamExists)('stopSandbox', 'sandboxIdOrName', sandboxIdOrName);
817
+ const localVarPath = `/sandbox/{sandboxIdOrName}/stop`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
814
818
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
815
819
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
816
820
  let baseOptions;
@@ -838,19 +842,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
838
842
  /**
839
843
  *
840
844
  * @summary Update public status
841
- * @param {string} sandboxId ID of the sandbox
845
+ * @param {string} sandboxIdOrName ID or name of the sandbox
842
846
  * @param {boolean} isPublic Public status to set
843
847
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
844
848
  * @param {*} [options] Override http request option.
845
849
  * @throws {RequiredError}
846
850
  */
847
- updatePublicStatus: async (sandboxId, isPublic, xDaytonaOrganizationID, options = {}) => {
848
- // verify required parameter 'sandboxId' is not null or undefined
849
- (0, common_1.assertParamExists)('updatePublicStatus', 'sandboxId', sandboxId);
851
+ updatePublicStatus: async (sandboxIdOrName, isPublic, xDaytonaOrganizationID, options = {}) => {
852
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
853
+ (0, common_1.assertParamExists)('updatePublicStatus', 'sandboxIdOrName', sandboxIdOrName);
850
854
  // verify required parameter 'isPublic' is not null or undefined
851
855
  (0, common_1.assertParamExists)('updatePublicStatus', 'isPublic', isPublic);
852
- const localVarPath = `/sandbox/{sandboxId}/public/{isPublic}`
853
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
856
+ const localVarPath = `/sandbox/{sandboxIdOrName}/public/{isPublic}`
857
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
854
858
  .replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
855
859
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
856
860
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -969,13 +973,13 @@ const SandboxApiFp = function (configuration) {
969
973
  /**
970
974
  *
971
975
  * @summary Archive sandbox
972
- * @param {string} sandboxId
976
+ * @param {string} sandboxIdOrName
973
977
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
974
978
  * @param {*} [options] Override http request option.
975
979
  * @throws {RequiredError}
976
980
  */
977
- async archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
978
- const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxId, xDaytonaOrganizationID, options);
981
+ async archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
982
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
979
983
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
980
984
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.archiveSandbox']?.[localVarOperationServerIndex]?.url;
981
985
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -983,13 +987,13 @@ const SandboxApiFp = function (configuration) {
983
987
  /**
984
988
  *
985
989
  * @summary Create sandbox backup
986
- * @param {string} sandboxId ID of the sandbox
990
+ * @param {string} sandboxIdOrName ID or name of the sandbox
987
991
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
988
992
  * @param {*} [options] Override http request option.
989
993
  * @throws {RequiredError}
990
994
  */
991
- async createBackup(sandboxId, xDaytonaOrganizationID, options) {
992
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxId, xDaytonaOrganizationID, options);
995
+ async createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxIdOrName, xDaytonaOrganizationID, options);
993
997
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
994
998
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createBackup']?.[localVarOperationServerIndex]?.url;
995
999
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1011,14 +1015,14 @@ const SandboxApiFp = function (configuration) {
1011
1015
  /**
1012
1016
  *
1013
1017
  * @summary Create SSH access for sandbox
1014
- * @param {string} sandboxId ID of the sandbox
1018
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1015
1019
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1016
1020
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1017
1021
  * @param {*} [options] Override http request option.
1018
1022
  * @throws {RequiredError}
1019
1023
  */
1020
- async createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1021
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options);
1024
+ async createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1025
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options);
1022
1026
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1023
1027
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSshAccess']?.[localVarOperationServerIndex]?.url;
1024
1028
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1026,13 +1030,13 @@ const SandboxApiFp = function (configuration) {
1026
1030
  /**
1027
1031
  *
1028
1032
  * @summary Delete sandbox
1029
- * @param {string} sandboxId ID of the sandbox
1033
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1030
1034
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1031
1035
  * @param {*} [options] Override http request option.
1032
1036
  * @throws {RequiredError}
1033
1037
  */
1034
- async deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1035
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxId, xDaytonaOrganizationID, options);
1038
+ async deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1039
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1036
1040
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1037
1041
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.deleteSandbox']?.[localVarOperationServerIndex]?.url;
1038
1042
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1040,14 +1044,14 @@ const SandboxApiFp = function (configuration) {
1040
1044
  /**
1041
1045
  *
1042
1046
  * @summary Get build logs
1043
- * @param {string} sandboxId ID of the sandbox
1047
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1044
1048
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1045
1049
  * @param {boolean} [follow] Whether to follow the logs stream
1046
1050
  * @param {*} [options] Override http request option.
1047
1051
  * @throws {RequiredError}
1048
1052
  */
1049
- async getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1050
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options);
1053
+ async getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1054
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options);
1051
1055
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1052
1056
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
1053
1057
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1055,14 +1059,14 @@ const SandboxApiFp = function (configuration) {
1055
1059
  /**
1056
1060
  *
1057
1061
  * @summary Get preview URL for a sandbox port
1058
- * @param {string} sandboxId ID of the sandbox
1062
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1059
1063
  * @param {number} port Port number to get preview URL for
1060
1064
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1061
1065
  * @param {*} [options] Override http request option.
1062
1066
  * @throws {RequiredError}
1063
1067
  */
1064
- async getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1065
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options);
1068
+ async getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1069
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options);
1066
1070
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1067
1071
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
1068
1072
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1070,14 +1074,14 @@ const SandboxApiFp = function (configuration) {
1070
1074
  /**
1071
1075
  *
1072
1076
  * @summary Get sandbox details
1073
- * @param {string} sandboxId ID of the sandbox
1077
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1074
1078
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1075
1079
  * @param {boolean} [verbose] Include verbose output
1076
1080
  * @param {*} [options] Override http request option.
1077
1081
  * @throws {RequiredError}
1078
1082
  */
1079
- async getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1080
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options);
1083
+ async getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options);
1081
1085
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1082
1086
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
1083
1087
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1133,6 +1137,7 @@ const SandboxApiFp = function (configuration) {
1133
1137
  * @param {number} [page] Page number of the results
1134
1138
  * @param {number} [limit] Number of results per page
1135
1139
  * @param {string} [id] Filter by partial ID match
1140
+ * @param {string} [name] Filter by partial name match
1136
1141
  * @param {string} [labels] JSON encoded labels to filter by
1137
1142
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1138
1143
  * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
@@ -1151,8 +1156,8 @@ const SandboxApiFp = function (configuration) {
1151
1156
  * @param {*} [options] Override http request option.
1152
1157
  * @throws {RequiredError}
1153
1158
  */
1154
- async listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1155
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
1159
+ async listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1160
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
1156
1161
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1157
1162
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginated']?.[localVarOperationServerIndex]?.url;
1158
1163
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1160,14 +1165,14 @@ const SandboxApiFp = function (configuration) {
1160
1165
  /**
1161
1166
  *
1162
1167
  * @summary Replace sandbox labels
1163
- * @param {string} sandboxId ID of the sandbox
1168
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1164
1169
  * @param {SandboxLabels} sandboxLabels
1165
1170
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1166
1171
  * @param {*} [options] Override http request option.
1167
1172
  * @throws {RequiredError}
1168
1173
  */
1169
- async replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1170
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options);
1174
+ async replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1175
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options);
1171
1176
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1172
1177
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
1173
1178
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1175,14 +1180,14 @@ const SandboxApiFp = function (configuration) {
1175
1180
  /**
1176
1181
  *
1177
1182
  * @summary Revoke SSH access for sandbox
1178
- * @param {string} sandboxId ID of the sandbox
1183
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1179
1184
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1180
1185
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1181
1186
  * @param {*} [options] Override http request option.
1182
1187
  * @throws {RequiredError}
1183
1188
  */
1184
- async revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1185
- const localVarAxiosArgs = await localVarAxiosParamCreator.revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options);
1189
+ async revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options);
1186
1191
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1187
1192
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.revokeSshAccess']?.[localVarOperationServerIndex]?.url;
1188
1193
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1190,14 +1195,14 @@ const SandboxApiFp = function (configuration) {
1190
1195
  /**
1191
1196
  *
1192
1197
  * @summary Set sandbox auto-archive interval
1193
- * @param {string} sandboxId ID of the sandbox
1198
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1194
1199
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1195
1200
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1196
1201
  * @param {*} [options] Override http request option.
1197
1202
  * @throws {RequiredError}
1198
1203
  */
1199
- async setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1200
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1204
+ async setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1201
1206
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1202
1207
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoArchiveInterval']?.[localVarOperationServerIndex]?.url;
1203
1208
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1205,14 +1210,14 @@ const SandboxApiFp = function (configuration) {
1205
1210
  /**
1206
1211
  *
1207
1212
  * @summary Set sandbox auto-delete interval
1208
- * @param {string} sandboxId ID of the sandbox
1213
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1209
1214
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1210
1215
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1211
1216
  * @param {*} [options] Override http request option.
1212
1217
  * @throws {RequiredError}
1213
1218
  */
1214
- async setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1215
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1219
+ async setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1216
1221
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1217
1222
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoDeleteInterval']?.[localVarOperationServerIndex]?.url;
1218
1223
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1220,14 +1225,14 @@ const SandboxApiFp = function (configuration) {
1220
1225
  /**
1221
1226
  *
1222
1227
  * @summary Set sandbox auto-stop interval
1223
- * @param {string} sandboxId ID of the sandbox
1228
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1224
1229
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1225
1230
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1226
1231
  * @param {*} [options] Override http request option.
1227
1232
  * @throws {RequiredError}
1228
1233
  */
1229
- async setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1230
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1234
+ async setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1231
1236
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1232
1237
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
1233
1238
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1235,13 +1240,13 @@ const SandboxApiFp = function (configuration) {
1235
1240
  /**
1236
1241
  *
1237
1242
  * @summary Start sandbox
1238
- * @param {string} sandboxId ID of the sandbox
1243
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1239
1244
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1240
1245
  * @param {*} [options] Override http request option.
1241
1246
  * @throws {RequiredError}
1242
1247
  */
1243
- async startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1244
- const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxId, xDaytonaOrganizationID, options);
1248
+ async startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1245
1250
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1246
1251
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.startSandbox']?.[localVarOperationServerIndex]?.url;
1247
1252
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1249,13 +1254,13 @@ const SandboxApiFp = function (configuration) {
1249
1254
  /**
1250
1255
  *
1251
1256
  * @summary Stop sandbox
1252
- * @param {string} sandboxId ID of the sandbox
1257
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1253
1258
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1254
1259
  * @param {*} [options] Override http request option.
1255
1260
  * @throws {RequiredError}
1256
1261
  */
1257
- async stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1258
- const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxId, xDaytonaOrganizationID, options);
1262
+ async stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1263
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1259
1264
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1260
1265
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.stopSandbox']?.[localVarOperationServerIndex]?.url;
1261
1266
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1263,14 +1268,14 @@ const SandboxApiFp = function (configuration) {
1263
1268
  /**
1264
1269
  *
1265
1270
  * @summary Update public status
1266
- * @param {string} sandboxId ID of the sandbox
1271
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1267
1272
  * @param {boolean} isPublic Public status to set
1268
1273
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1269
1274
  * @param {*} [options] Override http request option.
1270
1275
  * @throws {RequiredError}
1271
1276
  */
1272
- async updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1273
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options);
1277
+ async updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options);
1274
1279
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1275
1280
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
1276
1281
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1317,27 +1322,27 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1317
1322
  /**
1318
1323
  *
1319
1324
  * @summary Archive sandbox
1320
- * @param {string} sandboxId
1325
+ * @param {string} sandboxIdOrName
1321
1326
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1322
1327
  * @param {*} [options] Override http request option.
1323
1328
  * @throws {RequiredError}
1324
1329
  */
1325
- archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
1330
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1326
1331
  return localVarFp
1327
- .archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
1332
+ .archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1328
1333
  .then((request) => request(axios, basePath));
1329
1334
  },
1330
1335
  /**
1331
1336
  *
1332
1337
  * @summary Create sandbox backup
1333
- * @param {string} sandboxId ID of the sandbox
1338
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1334
1339
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1335
1340
  * @param {*} [options] Override http request option.
1336
1341
  * @throws {RequiredError}
1337
1342
  */
1338
- createBackup(sandboxId, xDaytonaOrganizationID, options) {
1343
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1339
1344
  return localVarFp
1340
- .createBackup(sandboxId, xDaytonaOrganizationID, options)
1345
+ .createBackup(sandboxIdOrName, xDaytonaOrganizationID, options)
1341
1346
  .then((request) => request(axios, basePath));
1342
1347
  },
1343
1348
  /**
@@ -1356,70 +1361,70 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1356
1361
  /**
1357
1362
  *
1358
1363
  * @summary Create SSH access for sandbox
1359
- * @param {string} sandboxId ID of the sandbox
1364
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1360
1365
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1361
1366
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1362
1367
  * @param {*} [options] Override http request option.
1363
1368
  * @throws {RequiredError}
1364
1369
  */
1365
- createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1370
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1366
1371
  return localVarFp
1367
- .createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options)
1372
+ .createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options)
1368
1373
  .then((request) => request(axios, basePath));
1369
1374
  },
1370
1375
  /**
1371
1376
  *
1372
1377
  * @summary Delete sandbox
1373
- * @param {string} sandboxId ID of the sandbox
1378
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1374
1379
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1375
1380
  * @param {*} [options] Override http request option.
1376
1381
  * @throws {RequiredError}
1377
1382
  */
1378
- deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1383
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1379
1384
  return localVarFp
1380
- .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1385
+ .deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1381
1386
  .then((request) => request(axios, basePath));
1382
1387
  },
1383
1388
  /**
1384
1389
  *
1385
1390
  * @summary Get build logs
1386
- * @param {string} sandboxId ID of the sandbox
1391
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1387
1392
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1388
1393
  * @param {boolean} [follow] Whether to follow the logs stream
1389
1394
  * @param {*} [options] Override http request option.
1390
1395
  * @throws {RequiredError}
1391
1396
  */
1392
- getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1397
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1393
1398
  return localVarFp
1394
- .getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
1399
+ .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1395
1400
  .then((request) => request(axios, basePath));
1396
1401
  },
1397
1402
  /**
1398
1403
  *
1399
1404
  * @summary Get preview URL for a sandbox port
1400
- * @param {string} sandboxId ID of the sandbox
1405
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1401
1406
  * @param {number} port Port number to get preview URL for
1402
1407
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1403
1408
  * @param {*} [options] Override http request option.
1404
1409
  * @throws {RequiredError}
1405
1410
  */
1406
- getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1411
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1407
1412
  return localVarFp
1408
- .getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
1413
+ .getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options)
1409
1414
  .then((request) => request(axios, basePath));
1410
1415
  },
1411
1416
  /**
1412
1417
  *
1413
1418
  * @summary Get sandbox details
1414
- * @param {string} sandboxId ID of the sandbox
1419
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1415
1420
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1416
1421
  * @param {boolean} [verbose] Include verbose output
1417
1422
  * @param {*} [options] Override http request option.
1418
1423
  * @throws {RequiredError}
1419
1424
  */
1420
- getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1425
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1421
1426
  return localVarFp
1422
- .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1427
+ .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
1423
1428
  .then((request) => request(axios, basePath));
1424
1429
  },
1425
1430
  /**
@@ -1468,6 +1473,7 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1468
1473
  * @param {number} [page] Page number of the results
1469
1474
  * @param {number} [limit] Number of results per page
1470
1475
  * @param {string} [id] Filter by partial ID match
1476
+ * @param {string} [name] Filter by partial name match
1471
1477
  * @param {string} [labels] JSON encoded labels to filter by
1472
1478
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1473
1479
  * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
@@ -1486,119 +1492,119 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1486
1492
  * @param {*} [options] Override http request option.
1487
1493
  * @throws {RequiredError}
1488
1494
  */
1489
- listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1495
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1490
1496
  return localVarFp
1491
- .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1497
+ .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1492
1498
  .then((request) => request(axios, basePath));
1493
1499
  },
1494
1500
  /**
1495
1501
  *
1496
1502
  * @summary Replace sandbox labels
1497
- * @param {string} sandboxId ID of the sandbox
1503
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1498
1504
  * @param {SandboxLabels} sandboxLabels
1499
1505
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1500
1506
  * @param {*} [options] Override http request option.
1501
1507
  * @throws {RequiredError}
1502
1508
  */
1503
- replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1509
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1504
1510
  return localVarFp
1505
- .replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
1511
+ .replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options)
1506
1512
  .then((request) => request(axios, basePath));
1507
1513
  },
1508
1514
  /**
1509
1515
  *
1510
1516
  * @summary Revoke SSH access for sandbox
1511
- * @param {string} sandboxId ID of the sandbox
1517
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1512
1518
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1513
1519
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1514
1520
  * @param {*} [options] Override http request option.
1515
1521
  * @throws {RequiredError}
1516
1522
  */
1517
- revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1523
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1518
1524
  return localVarFp
1519
- .revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options)
1525
+ .revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options)
1520
1526
  .then((request) => request(axios, basePath));
1521
1527
  },
1522
1528
  /**
1523
1529
  *
1524
1530
  * @summary Set sandbox auto-archive interval
1525
- * @param {string} sandboxId ID of the sandbox
1531
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1526
1532
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1527
1533
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1528
1534
  * @param {*} [options] Override http request option.
1529
1535
  * @throws {RequiredError}
1530
1536
  */
1531
- setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1537
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1532
1538
  return localVarFp
1533
- .setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1539
+ .setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1534
1540
  .then((request) => request(axios, basePath));
1535
1541
  },
1536
1542
  /**
1537
1543
  *
1538
1544
  * @summary Set sandbox auto-delete interval
1539
- * @param {string} sandboxId ID of the sandbox
1545
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1540
1546
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1541
1547
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1542
1548
  * @param {*} [options] Override http request option.
1543
1549
  * @throws {RequiredError}
1544
1550
  */
1545
- setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1551
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1546
1552
  return localVarFp
1547
- .setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1553
+ .setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1548
1554
  .then((request) => request(axios, basePath));
1549
1555
  },
1550
1556
  /**
1551
1557
  *
1552
1558
  * @summary Set sandbox auto-stop interval
1553
- * @param {string} sandboxId ID of the sandbox
1559
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1554
1560
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1555
1561
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1556
1562
  * @param {*} [options] Override http request option.
1557
1563
  * @throws {RequiredError}
1558
1564
  */
1559
- setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1565
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1560
1566
  return localVarFp
1561
- .setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1567
+ .setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1562
1568
  .then((request) => request(axios, basePath));
1563
1569
  },
1564
1570
  /**
1565
1571
  *
1566
1572
  * @summary Start sandbox
1567
- * @param {string} sandboxId ID of the sandbox
1573
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1568
1574
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1569
1575
  * @param {*} [options] Override http request option.
1570
1576
  * @throws {RequiredError}
1571
1577
  */
1572
- startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1578
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1573
1579
  return localVarFp
1574
- .startSandbox(sandboxId, xDaytonaOrganizationID, options)
1580
+ .startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1575
1581
  .then((request) => request(axios, basePath));
1576
1582
  },
1577
1583
  /**
1578
1584
  *
1579
1585
  * @summary Stop sandbox
1580
- * @param {string} sandboxId ID of the sandbox
1586
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1581
1587
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1582
1588
  * @param {*} [options] Override http request option.
1583
1589
  * @throws {RequiredError}
1584
1590
  */
1585
- stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1591
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1586
1592
  return localVarFp
1587
- .stopSandbox(sandboxId, xDaytonaOrganizationID, options)
1593
+ .stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1588
1594
  .then((request) => request(axios, basePath));
1589
1595
  },
1590
1596
  /**
1591
1597
  *
1592
1598
  * @summary Update public status
1593
- * @param {string} sandboxId ID of the sandbox
1599
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1594
1600
  * @param {boolean} isPublic Public status to set
1595
1601
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1596
1602
  * @param {*} [options] Override http request option.
1597
1603
  * @throws {RequiredError}
1598
1604
  */
1599
- updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1605
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1600
1606
  return localVarFp
1601
- .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1607
+ .updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options)
1602
1608
  .then((request) => request(axios, basePath));
1603
1609
  },
1604
1610
  /**
@@ -1641,29 +1647,29 @@ class SandboxApi extends base_1.BaseAPI {
1641
1647
  /**
1642
1648
  *
1643
1649
  * @summary Archive sandbox
1644
- * @param {string} sandboxId
1650
+ * @param {string} sandboxIdOrName
1645
1651
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1646
1652
  * @param {*} [options] Override http request option.
1647
1653
  * @throws {RequiredError}
1648
1654
  * @memberof SandboxApi
1649
1655
  */
1650
- archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
1656
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1651
1657
  return (0, exports.SandboxApiFp)(this.configuration)
1652
- .archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
1658
+ .archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1653
1659
  .then((request) => request(this.axios, this.basePath));
1654
1660
  }
1655
1661
  /**
1656
1662
  *
1657
1663
  * @summary Create sandbox backup
1658
- * @param {string} sandboxId ID of the sandbox
1664
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1659
1665
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1660
1666
  * @param {*} [options] Override http request option.
1661
1667
  * @throws {RequiredError}
1662
1668
  * @memberof SandboxApi
1663
1669
  */
1664
- createBackup(sandboxId, xDaytonaOrganizationID, options) {
1670
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1665
1671
  return (0, exports.SandboxApiFp)(this.configuration)
1666
- .createBackup(sandboxId, xDaytonaOrganizationID, options)
1672
+ .createBackup(sandboxIdOrName, xDaytonaOrganizationID, options)
1667
1673
  .then((request) => request(this.axios, this.basePath));
1668
1674
  }
1669
1675
  /**
@@ -1683,75 +1689,75 @@ class SandboxApi extends base_1.BaseAPI {
1683
1689
  /**
1684
1690
  *
1685
1691
  * @summary Create SSH access for sandbox
1686
- * @param {string} sandboxId ID of the sandbox
1692
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1687
1693
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1688
1694
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1689
1695
  * @param {*} [options] Override http request option.
1690
1696
  * @throws {RequiredError}
1691
1697
  * @memberof SandboxApi
1692
1698
  */
1693
- createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1699
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1694
1700
  return (0, exports.SandboxApiFp)(this.configuration)
1695
- .createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options)
1701
+ .createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options)
1696
1702
  .then((request) => request(this.axios, this.basePath));
1697
1703
  }
1698
1704
  /**
1699
1705
  *
1700
1706
  * @summary Delete sandbox
1701
- * @param {string} sandboxId ID of the sandbox
1707
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1702
1708
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1703
1709
  * @param {*} [options] Override http request option.
1704
1710
  * @throws {RequiredError}
1705
1711
  * @memberof SandboxApi
1706
1712
  */
1707
- deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1713
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1708
1714
  return (0, exports.SandboxApiFp)(this.configuration)
1709
- .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1715
+ .deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1710
1716
  .then((request) => request(this.axios, this.basePath));
1711
1717
  }
1712
1718
  /**
1713
1719
  *
1714
1720
  * @summary Get build logs
1715
- * @param {string} sandboxId ID of the sandbox
1721
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1716
1722
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1717
1723
  * @param {boolean} [follow] Whether to follow the logs stream
1718
1724
  * @param {*} [options] Override http request option.
1719
1725
  * @throws {RequiredError}
1720
1726
  * @memberof SandboxApi
1721
1727
  */
1722
- getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1728
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1723
1729
  return (0, exports.SandboxApiFp)(this.configuration)
1724
- .getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
1730
+ .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1725
1731
  .then((request) => request(this.axios, this.basePath));
1726
1732
  }
1727
1733
  /**
1728
1734
  *
1729
1735
  * @summary Get preview URL for a sandbox port
1730
- * @param {string} sandboxId ID of the sandbox
1736
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1731
1737
  * @param {number} port Port number to get preview URL for
1732
1738
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1733
1739
  * @param {*} [options] Override http request option.
1734
1740
  * @throws {RequiredError}
1735
1741
  * @memberof SandboxApi
1736
1742
  */
1737
- getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1743
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1738
1744
  return (0, exports.SandboxApiFp)(this.configuration)
1739
- .getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
1745
+ .getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options)
1740
1746
  .then((request) => request(this.axios, this.basePath));
1741
1747
  }
1742
1748
  /**
1743
1749
  *
1744
1750
  * @summary Get sandbox details
1745
- * @param {string} sandboxId ID of the sandbox
1751
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1746
1752
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1747
1753
  * @param {boolean} [verbose] Include verbose output
1748
1754
  * @param {*} [options] Override http request option.
1749
1755
  * @throws {RequiredError}
1750
1756
  * @memberof SandboxApi
1751
1757
  */
1752
- getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1758
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1753
1759
  return (0, exports.SandboxApiFp)(this.configuration)
1754
- .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1760
+ .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
1755
1761
  .then((request) => request(this.axios, this.basePath));
1756
1762
  }
1757
1763
  /**
@@ -1805,6 +1811,7 @@ class SandboxApi extends base_1.BaseAPI {
1805
1811
  * @param {number} [page] Page number of the results
1806
1812
  * @param {number} [limit] Number of results per page
1807
1813
  * @param {string} [id] Filter by partial ID match
1814
+ * @param {string} [name] Filter by partial name match
1808
1815
  * @param {string} [labels] JSON encoded labels to filter by
1809
1816
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1810
1817
  * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
@@ -1824,127 +1831,127 @@ class SandboxApi extends base_1.BaseAPI {
1824
1831
  * @throws {RequiredError}
1825
1832
  * @memberof SandboxApi
1826
1833
  */
1827
- listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1834
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1828
1835
  return (0, exports.SandboxApiFp)(this.configuration)
1829
- .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1836
+ .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1830
1837
  .then((request) => request(this.axios, this.basePath));
1831
1838
  }
1832
1839
  /**
1833
1840
  *
1834
1841
  * @summary Replace sandbox labels
1835
- * @param {string} sandboxId ID of the sandbox
1842
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1836
1843
  * @param {SandboxLabels} sandboxLabels
1837
1844
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1838
1845
  * @param {*} [options] Override http request option.
1839
1846
  * @throws {RequiredError}
1840
1847
  * @memberof SandboxApi
1841
1848
  */
1842
- replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1849
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1843
1850
  return (0, exports.SandboxApiFp)(this.configuration)
1844
- .replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
1851
+ .replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options)
1845
1852
  .then((request) => request(this.axios, this.basePath));
1846
1853
  }
1847
1854
  /**
1848
1855
  *
1849
1856
  * @summary Revoke SSH access for sandbox
1850
- * @param {string} sandboxId ID of the sandbox
1857
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1851
1858
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1852
1859
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1853
1860
  * @param {*} [options] Override http request option.
1854
1861
  * @throws {RequiredError}
1855
1862
  * @memberof SandboxApi
1856
1863
  */
1857
- revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1864
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1858
1865
  return (0, exports.SandboxApiFp)(this.configuration)
1859
- .revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options)
1866
+ .revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options)
1860
1867
  .then((request) => request(this.axios, this.basePath));
1861
1868
  }
1862
1869
  /**
1863
1870
  *
1864
1871
  * @summary Set sandbox auto-archive interval
1865
- * @param {string} sandboxId ID of the sandbox
1872
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1866
1873
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1867
1874
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1868
1875
  * @param {*} [options] Override http request option.
1869
1876
  * @throws {RequiredError}
1870
1877
  * @memberof SandboxApi
1871
1878
  */
1872
- setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1879
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1873
1880
  return (0, exports.SandboxApiFp)(this.configuration)
1874
- .setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1881
+ .setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1875
1882
  .then((request) => request(this.axios, this.basePath));
1876
1883
  }
1877
1884
  /**
1878
1885
  *
1879
1886
  * @summary Set sandbox auto-delete interval
1880
- * @param {string} sandboxId ID of the sandbox
1887
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1881
1888
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1882
1889
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1883
1890
  * @param {*} [options] Override http request option.
1884
1891
  * @throws {RequiredError}
1885
1892
  * @memberof SandboxApi
1886
1893
  */
1887
- setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1894
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1888
1895
  return (0, exports.SandboxApiFp)(this.configuration)
1889
- .setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1896
+ .setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1890
1897
  .then((request) => request(this.axios, this.basePath));
1891
1898
  }
1892
1899
  /**
1893
1900
  *
1894
1901
  * @summary Set sandbox auto-stop interval
1895
- * @param {string} sandboxId ID of the sandbox
1902
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1896
1903
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1897
1904
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1898
1905
  * @param {*} [options] Override http request option.
1899
1906
  * @throws {RequiredError}
1900
1907
  * @memberof SandboxApi
1901
1908
  */
1902
- setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1909
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1903
1910
  return (0, exports.SandboxApiFp)(this.configuration)
1904
- .setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1911
+ .setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1905
1912
  .then((request) => request(this.axios, this.basePath));
1906
1913
  }
1907
1914
  /**
1908
1915
  *
1909
1916
  * @summary Start sandbox
1910
- * @param {string} sandboxId ID of the sandbox
1917
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1911
1918
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1912
1919
  * @param {*} [options] Override http request option.
1913
1920
  * @throws {RequiredError}
1914
1921
  * @memberof SandboxApi
1915
1922
  */
1916
- startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1923
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1917
1924
  return (0, exports.SandboxApiFp)(this.configuration)
1918
- .startSandbox(sandboxId, xDaytonaOrganizationID, options)
1925
+ .startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1919
1926
  .then((request) => request(this.axios, this.basePath));
1920
1927
  }
1921
1928
  /**
1922
1929
  *
1923
1930
  * @summary Stop sandbox
1924
- * @param {string} sandboxId ID of the sandbox
1931
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1925
1932
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1926
1933
  * @param {*} [options] Override http request option.
1927
1934
  * @throws {RequiredError}
1928
1935
  * @memberof SandboxApi
1929
1936
  */
1930
- stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1937
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1931
1938
  return (0, exports.SandboxApiFp)(this.configuration)
1932
- .stopSandbox(sandboxId, xDaytonaOrganizationID, options)
1939
+ .stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1933
1940
  .then((request) => request(this.axios, this.basePath));
1934
1941
  }
1935
1942
  /**
1936
1943
  *
1937
1944
  * @summary Update public status
1938
- * @param {string} sandboxId ID of the sandbox
1945
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1939
1946
  * @param {boolean} isPublic Public status to set
1940
1947
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1941
1948
  * @param {*} [options] Override http request option.
1942
1949
  * @throws {RequiredError}
1943
1950
  * @memberof SandboxApi
1944
1951
  */
1945
- updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1952
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1946
1953
  return (0, exports.SandboxApiFp)(this.configuration)
1947
- .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1954
+ .updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options)
1948
1955
  .then((request) => request(this.axios, this.basePath));
1949
1956
  }
1950
1957
  /**
@@ -2003,6 +2010,7 @@ exports.ListSandboxesPaginatedStatesEnum = {
2003
2010
  */
2004
2011
  exports.ListSandboxesPaginatedSortEnum = {
2005
2012
  ID: 'id',
2013
+ NAME: 'name',
2006
2014
  STATE: 'state',
2007
2015
  SNAPSHOT: 'snapshot',
2008
2016
  REGION: 'region',