@daytonaio/api-client 0.108.1 → 0.109.0-alpha.2

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;
@@ -562,18 +562,18 @@ const SandboxApiAxiosParamCreator = function (configuration) {
562
562
  /**
563
563
  *
564
564
  * @summary Replace sandbox labels
565
- * @param {string} sandboxId ID of the sandbox
565
+ * @param {string} sandboxIdOrName ID or name of the sandbox
566
566
  * @param {SandboxLabels} sandboxLabels
567
567
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
568
568
  * @param {*} [options] Override http request option.
569
569
  * @throws {RequiredError}
570
570
  */
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);
571
+ replaceLabels: async (sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
572
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
573
+ (0, common_1.assertParamExists)('replaceLabels', 'sandboxIdOrName', sandboxIdOrName);
574
574
  // verify required parameter 'sandboxLabels' is not null or undefined
575
575
  (0, common_1.assertParamExists)('replaceLabels', 'sandboxLabels', sandboxLabels);
576
- const localVarPath = `/sandbox/{sandboxId}/labels`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
576
+ const localVarPath = `/sandbox/{sandboxIdOrName}/labels`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
577
577
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
578
578
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
579
579
  let baseOptions;
@@ -603,16 +603,16 @@ const SandboxApiAxiosParamCreator = function (configuration) {
603
603
  /**
604
604
  *
605
605
  * @summary Revoke SSH access for sandbox
606
- * @param {string} sandboxId ID of the sandbox
606
+ * @param {string} sandboxIdOrName ID or name of the sandbox
607
607
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
608
608
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
609
609
  * @param {*} [options] Override http request option.
610
610
  * @throws {RequiredError}
611
611
  */
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)));
612
+ revokeSshAccess: async (sandboxIdOrName, xDaytonaOrganizationID, token, options = {}) => {
613
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
614
+ (0, common_1.assertParamExists)('revokeSshAccess', 'sandboxIdOrName', sandboxIdOrName);
615
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ssh-access`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
616
616
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
617
617
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
618
618
  let baseOptions;
@@ -643,19 +643,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
643
643
  /**
644
644
  *
645
645
  * @summary Set sandbox auto-archive interval
646
- * @param {string} sandboxId ID of the sandbox
646
+ * @param {string} sandboxIdOrName ID or name of the sandbox
647
647
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
648
648
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
649
649
  * @param {*} [options] Override http request option.
650
650
  * @throws {RequiredError}
651
651
  */
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);
652
+ setAutoArchiveInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
653
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
654
+ (0, common_1.assertParamExists)('setAutoArchiveInterval', 'sandboxIdOrName', sandboxIdOrName);
655
655
  // verify required parameter 'interval' is not null or undefined
656
656
  (0, common_1.assertParamExists)('setAutoArchiveInterval', 'interval', interval);
657
- const localVarPath = `/sandbox/{sandboxId}/autoarchive/{interval}`
658
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
657
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autoarchive/{interval}`
658
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
659
659
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
660
660
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
661
661
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -684,19 +684,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
684
684
  /**
685
685
  *
686
686
  * @summary Set sandbox auto-delete interval
687
- * @param {string} sandboxId ID of the sandbox
687
+ * @param {string} sandboxIdOrName ID or name of the sandbox
688
688
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
689
689
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
690
690
  * @param {*} [options] Override http request option.
691
691
  * @throws {RequiredError}
692
692
  */
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);
693
+ setAutoDeleteInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
694
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
695
+ (0, common_1.assertParamExists)('setAutoDeleteInterval', 'sandboxIdOrName', sandboxIdOrName);
696
696
  // verify required parameter 'interval' is not null or undefined
697
697
  (0, common_1.assertParamExists)('setAutoDeleteInterval', 'interval', interval);
698
- const localVarPath = `/sandbox/{sandboxId}/autodelete/{interval}`
699
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
698
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autodelete/{interval}`
699
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
700
700
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
701
701
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
702
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -725,19 +725,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
725
725
  /**
726
726
  *
727
727
  * @summary Set sandbox auto-stop interval
728
- * @param {string} sandboxId ID of the sandbox
728
+ * @param {string} sandboxIdOrName ID or name of the sandbox
729
729
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
730
730
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
731
731
  * @param {*} [options] Override http request option.
732
732
  * @throws {RequiredError}
733
733
  */
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);
734
+ setAutostopInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
735
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
736
+ (0, common_1.assertParamExists)('setAutostopInterval', 'sandboxIdOrName', sandboxIdOrName);
737
737
  // verify required parameter 'interval' is not null or undefined
738
738
  (0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
739
- const localVarPath = `/sandbox/{sandboxId}/autostop/{interval}`
740
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
739
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autostop/{interval}`
740
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
741
741
  .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
742
742
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
743
743
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -766,15 +766,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
766
766
  /**
767
767
  *
768
768
  * @summary Start sandbox
769
- * @param {string} sandboxId ID of the sandbox
769
+ * @param {string} sandboxIdOrName ID or name of the sandbox
770
770
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
771
771
  * @param {*} [options] Override http request option.
772
772
  * @throws {RequiredError}
773
773
  */
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)));
774
+ startSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
775
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
776
+ (0, common_1.assertParamExists)('startSandbox', 'sandboxIdOrName', sandboxIdOrName);
777
+ const localVarPath = `/sandbox/{sandboxIdOrName}/start`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
778
778
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
779
779
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
780
780
  let baseOptions;
@@ -802,15 +802,15 @@ const SandboxApiAxiosParamCreator = function (configuration) {
802
802
  /**
803
803
  *
804
804
  * @summary Stop sandbox
805
- * @param {string} sandboxId ID of the sandbox
805
+ * @param {string} sandboxIdOrName ID or name of the sandbox
806
806
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
807
807
  * @param {*} [options] Override http request option.
808
808
  * @throws {RequiredError}
809
809
  */
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)));
810
+ stopSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
811
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
812
+ (0, common_1.assertParamExists)('stopSandbox', 'sandboxIdOrName', sandboxIdOrName);
813
+ const localVarPath = `/sandbox/{sandboxIdOrName}/stop`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
814
814
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
815
815
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
816
816
  let baseOptions;
@@ -838,19 +838,19 @@ const SandboxApiAxiosParamCreator = function (configuration) {
838
838
  /**
839
839
  *
840
840
  * @summary Update public status
841
- * @param {string} sandboxId ID of the sandbox
841
+ * @param {string} sandboxIdOrName ID or name of the sandbox
842
842
  * @param {boolean} isPublic Public status to set
843
843
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
844
844
  * @param {*} [options] Override http request option.
845
845
  * @throws {RequiredError}
846
846
  */
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);
847
+ updatePublicStatus: async (sandboxIdOrName, isPublic, xDaytonaOrganizationID, options = {}) => {
848
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
849
+ (0, common_1.assertParamExists)('updatePublicStatus', 'sandboxIdOrName', sandboxIdOrName);
850
850
  // verify required parameter 'isPublic' is not null or undefined
851
851
  (0, common_1.assertParamExists)('updatePublicStatus', 'isPublic', isPublic);
852
- const localVarPath = `/sandbox/{sandboxId}/public/{isPublic}`
853
- .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
852
+ const localVarPath = `/sandbox/{sandboxIdOrName}/public/{isPublic}`
853
+ .replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
854
854
  .replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
855
855
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
856
856
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -879,18 +879,18 @@ const SandboxApiAxiosParamCreator = function (configuration) {
879
879
  /**
880
880
  *
881
881
  * @summary Update sandbox state
882
- * @param {string} sandboxId ID of the sandbox
882
+ * @param {string} sandboxIdOrName ID or name of the sandbox
883
883
  * @param {UpdateSandboxStateDto} updateSandboxStateDto
884
884
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
885
885
  * @param {*} [options] Override http request option.
886
886
  * @throws {RequiredError}
887
887
  */
888
- updateSandboxState: async (sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options = {}) => {
889
- // verify required parameter 'sandboxId' is not null or undefined
890
- (0, common_1.assertParamExists)('updateSandboxState', 'sandboxId', sandboxId);
888
+ updateSandboxState: async (sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options = {}) => {
889
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
890
+ (0, common_1.assertParamExists)('updateSandboxState', 'sandboxIdOrName', sandboxIdOrName);
891
891
  // verify required parameter 'updateSandboxStateDto' is not null or undefined
892
892
  (0, common_1.assertParamExists)('updateSandboxState', 'updateSandboxStateDto', updateSandboxStateDto);
893
- const localVarPath = `/sandbox/{sandboxId}/state`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
893
+ const localVarPath = `/sandbox/{sandboxIdOrName}/state`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
894
894
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
895
895
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
896
896
  let baseOptions;
@@ -969,13 +969,13 @@ const SandboxApiFp = function (configuration) {
969
969
  /**
970
970
  *
971
971
  * @summary Archive sandbox
972
- * @param {string} sandboxId
972
+ * @param {string} sandboxIdOrName
973
973
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
974
974
  * @param {*} [options] Override http request option.
975
975
  * @throws {RequiredError}
976
976
  */
977
- async archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
978
- const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxId, xDaytonaOrganizationID, options);
977
+ async archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
978
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
979
979
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
980
980
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.archiveSandbox']?.[localVarOperationServerIndex]?.url;
981
981
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -983,13 +983,13 @@ const SandboxApiFp = function (configuration) {
983
983
  /**
984
984
  *
985
985
  * @summary Create sandbox backup
986
- * @param {string} sandboxId ID of the sandbox
986
+ * @param {string} sandboxIdOrName ID or name of the sandbox
987
987
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
988
988
  * @param {*} [options] Override http request option.
989
989
  * @throws {RequiredError}
990
990
  */
991
- async createBackup(sandboxId, xDaytonaOrganizationID, options) {
992
- const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxId, xDaytonaOrganizationID, options);
991
+ async createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxIdOrName, xDaytonaOrganizationID, options);
993
993
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
994
994
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createBackup']?.[localVarOperationServerIndex]?.url;
995
995
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1011,14 +1011,14 @@ const SandboxApiFp = function (configuration) {
1011
1011
  /**
1012
1012
  *
1013
1013
  * @summary Create SSH access for sandbox
1014
- * @param {string} sandboxId ID of the sandbox
1014
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1015
1015
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1016
1016
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1017
1017
  * @param {*} [options] Override http request option.
1018
1018
  * @throws {RequiredError}
1019
1019
  */
1020
- async createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1021
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options);
1020
+ async createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options);
1022
1022
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1023
1023
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSshAccess']?.[localVarOperationServerIndex]?.url;
1024
1024
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1026,13 +1026,13 @@ const SandboxApiFp = function (configuration) {
1026
1026
  /**
1027
1027
  *
1028
1028
  * @summary Delete sandbox
1029
- * @param {string} sandboxId ID of the sandbox
1029
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1030
1030
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1031
1031
  * @param {*} [options] Override http request option.
1032
1032
  * @throws {RequiredError}
1033
1033
  */
1034
- async deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1035
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxId, xDaytonaOrganizationID, options);
1034
+ async deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1035
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1036
1036
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1037
1037
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.deleteSandbox']?.[localVarOperationServerIndex]?.url;
1038
1038
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1040,14 +1040,14 @@ const SandboxApiFp = function (configuration) {
1040
1040
  /**
1041
1041
  *
1042
1042
  * @summary Get build logs
1043
- * @param {string} sandboxId ID of the sandbox
1043
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1044
1044
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1045
1045
  * @param {boolean} [follow] Whether to follow the logs stream
1046
1046
  * @param {*} [options] Override http request option.
1047
1047
  * @throws {RequiredError}
1048
1048
  */
1049
- async getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1050
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options);
1049
+ async getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options);
1051
1051
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1052
1052
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
1053
1053
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1055,14 +1055,14 @@ const SandboxApiFp = function (configuration) {
1055
1055
  /**
1056
1056
  *
1057
1057
  * @summary Get preview URL for a sandbox port
1058
- * @param {string} sandboxId ID of the sandbox
1058
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1059
1059
  * @param {number} port Port number to get preview URL for
1060
1060
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1061
1061
  * @param {*} [options] Override http request option.
1062
1062
  * @throws {RequiredError}
1063
1063
  */
1064
- async getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1065
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options);
1064
+ async getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1065
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options);
1066
1066
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1067
1067
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
1068
1068
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1070,14 +1070,14 @@ const SandboxApiFp = function (configuration) {
1070
1070
  /**
1071
1071
  *
1072
1072
  * @summary Get sandbox details
1073
- * @param {string} sandboxId ID of the sandbox
1073
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1074
1074
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1075
1075
  * @param {boolean} [verbose] Include verbose output
1076
1076
  * @param {*} [options] Override http request option.
1077
1077
  * @throws {RequiredError}
1078
1078
  */
1079
- async getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1080
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options);
1079
+ async getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1080
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options);
1081
1081
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1082
1082
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
1083
1083
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1160,14 +1160,14 @@ const SandboxApiFp = function (configuration) {
1160
1160
  /**
1161
1161
  *
1162
1162
  * @summary Replace sandbox labels
1163
- * @param {string} sandboxId ID of the sandbox
1163
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1164
1164
  * @param {SandboxLabels} sandboxLabels
1165
1165
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1166
1166
  * @param {*} [options] Override http request option.
1167
1167
  * @throws {RequiredError}
1168
1168
  */
1169
- async replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1170
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options);
1169
+ async replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1170
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options);
1171
1171
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1172
1172
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
1173
1173
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1175,14 +1175,14 @@ const SandboxApiFp = function (configuration) {
1175
1175
  /**
1176
1176
  *
1177
1177
  * @summary Revoke SSH access for sandbox
1178
- * @param {string} sandboxId ID of the sandbox
1178
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1179
1179
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1180
1180
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1181
1181
  * @param {*} [options] Override http request option.
1182
1182
  * @throws {RequiredError}
1183
1183
  */
1184
- async revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1185
- const localVarAxiosArgs = await localVarAxiosParamCreator.revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options);
1184
+ async revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options);
1186
1186
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1187
1187
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.revokeSshAccess']?.[localVarOperationServerIndex]?.url;
1188
1188
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1190,14 +1190,14 @@ const SandboxApiFp = function (configuration) {
1190
1190
  /**
1191
1191
  *
1192
1192
  * @summary Set sandbox auto-archive interval
1193
- * @param {string} sandboxId ID of the sandbox
1193
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1194
1194
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1195
1195
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1196
1196
  * @param {*} [options] Override http request option.
1197
1197
  * @throws {RequiredError}
1198
1198
  */
1199
- async setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1200
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1199
+ async setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1200
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1201
1201
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1202
1202
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoArchiveInterval']?.[localVarOperationServerIndex]?.url;
1203
1203
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1205,14 +1205,14 @@ const SandboxApiFp = function (configuration) {
1205
1205
  /**
1206
1206
  *
1207
1207
  * @summary Set sandbox auto-delete interval
1208
- * @param {string} sandboxId ID of the sandbox
1208
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1209
1209
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1210
1210
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1211
1211
  * @param {*} [options] Override http request option.
1212
1212
  * @throws {RequiredError}
1213
1213
  */
1214
- async setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1215
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1214
+ async setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1215
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1216
1216
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1217
1217
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoDeleteInterval']?.[localVarOperationServerIndex]?.url;
1218
1218
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1220,14 +1220,14 @@ const SandboxApiFp = function (configuration) {
1220
1220
  /**
1221
1221
  *
1222
1222
  * @summary Set sandbox auto-stop interval
1223
- * @param {string} sandboxId ID of the sandbox
1223
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1224
1224
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1225
1225
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1226
1226
  * @param {*} [options] Override http request option.
1227
1227
  * @throws {RequiredError}
1228
1228
  */
1229
- async setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1230
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options);
1229
+ async setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1230
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1231
1231
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1232
1232
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
1233
1233
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1235,13 +1235,13 @@ const SandboxApiFp = function (configuration) {
1235
1235
  /**
1236
1236
  *
1237
1237
  * @summary Start sandbox
1238
- * @param {string} sandboxId ID of the sandbox
1238
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1239
1239
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1240
1240
  * @param {*} [options] Override http request option.
1241
1241
  * @throws {RequiredError}
1242
1242
  */
1243
- async startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1244
- const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxId, xDaytonaOrganizationID, options);
1243
+ async startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1245
1245
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1246
1246
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.startSandbox']?.[localVarOperationServerIndex]?.url;
1247
1247
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1249,13 +1249,13 @@ const SandboxApiFp = function (configuration) {
1249
1249
  /**
1250
1250
  *
1251
1251
  * @summary Stop sandbox
1252
- * @param {string} sandboxId ID of the sandbox
1252
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1253
1253
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1254
1254
  * @param {*} [options] Override http request option.
1255
1255
  * @throws {RequiredError}
1256
1256
  */
1257
- async stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1258
- const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxId, xDaytonaOrganizationID, options);
1257
+ async stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1259
1259
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1260
1260
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.stopSandbox']?.[localVarOperationServerIndex]?.url;
1261
1261
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1263,14 +1263,14 @@ const SandboxApiFp = function (configuration) {
1263
1263
  /**
1264
1264
  *
1265
1265
  * @summary Update public status
1266
- * @param {string} sandboxId ID of the sandbox
1266
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1267
1267
  * @param {boolean} isPublic Public status to set
1268
1268
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1269
1269
  * @param {*} [options] Override http request option.
1270
1270
  * @throws {RequiredError}
1271
1271
  */
1272
- async updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1273
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options);
1272
+ async updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options);
1274
1274
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1275
1275
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
1276
1276
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1278,14 +1278,14 @@ const SandboxApiFp = function (configuration) {
1278
1278
  /**
1279
1279
  *
1280
1280
  * @summary Update sandbox state
1281
- * @param {string} sandboxId ID of the sandbox
1281
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1282
1282
  * @param {UpdateSandboxStateDto} updateSandboxStateDto
1283
1283
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1284
1284
  * @param {*} [options] Override http request option.
1285
1285
  * @throws {RequiredError}
1286
1286
  */
1287
- async updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1288
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options);
1287
+ async updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options);
1289
1289
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1290
1290
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updateSandboxState']?.[localVarOperationServerIndex]?.url;
1291
1291
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1317,27 +1317,27 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1317
1317
  /**
1318
1318
  *
1319
1319
  * @summary Archive sandbox
1320
- * @param {string} sandboxId
1320
+ * @param {string} sandboxIdOrName
1321
1321
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1322
1322
  * @param {*} [options] Override http request option.
1323
1323
  * @throws {RequiredError}
1324
1324
  */
1325
- archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
1325
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1326
1326
  return localVarFp
1327
- .archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
1327
+ .archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1328
1328
  .then((request) => request(axios, basePath));
1329
1329
  },
1330
1330
  /**
1331
1331
  *
1332
1332
  * @summary Create sandbox backup
1333
- * @param {string} sandboxId ID of the sandbox
1333
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1334
1334
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1335
1335
  * @param {*} [options] Override http request option.
1336
1336
  * @throws {RequiredError}
1337
1337
  */
1338
- createBackup(sandboxId, xDaytonaOrganizationID, options) {
1338
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1339
1339
  return localVarFp
1340
- .createBackup(sandboxId, xDaytonaOrganizationID, options)
1340
+ .createBackup(sandboxIdOrName, xDaytonaOrganizationID, options)
1341
1341
  .then((request) => request(axios, basePath));
1342
1342
  },
1343
1343
  /**
@@ -1356,70 +1356,70 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1356
1356
  /**
1357
1357
  *
1358
1358
  * @summary Create SSH access for sandbox
1359
- * @param {string} sandboxId ID of the sandbox
1359
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1360
1360
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1361
1361
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1362
1362
  * @param {*} [options] Override http request option.
1363
1363
  * @throws {RequiredError}
1364
1364
  */
1365
- createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1365
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1366
1366
  return localVarFp
1367
- .createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options)
1367
+ .createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options)
1368
1368
  .then((request) => request(axios, basePath));
1369
1369
  },
1370
1370
  /**
1371
1371
  *
1372
1372
  * @summary Delete sandbox
1373
- * @param {string} sandboxId ID of the sandbox
1373
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1374
1374
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1375
1375
  * @param {*} [options] Override http request option.
1376
1376
  * @throws {RequiredError}
1377
1377
  */
1378
- deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1378
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1379
1379
  return localVarFp
1380
- .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1380
+ .deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1381
1381
  .then((request) => request(axios, basePath));
1382
1382
  },
1383
1383
  /**
1384
1384
  *
1385
1385
  * @summary Get build logs
1386
- * @param {string} sandboxId ID of the sandbox
1386
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1387
1387
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1388
1388
  * @param {boolean} [follow] Whether to follow the logs stream
1389
1389
  * @param {*} [options] Override http request option.
1390
1390
  * @throws {RequiredError}
1391
1391
  */
1392
- getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1392
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1393
1393
  return localVarFp
1394
- .getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
1394
+ .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1395
1395
  .then((request) => request(axios, basePath));
1396
1396
  },
1397
1397
  /**
1398
1398
  *
1399
1399
  * @summary Get preview URL for a sandbox port
1400
- * @param {string} sandboxId ID of the sandbox
1400
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1401
1401
  * @param {number} port Port number to get preview URL for
1402
1402
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1403
1403
  * @param {*} [options] Override http request option.
1404
1404
  * @throws {RequiredError}
1405
1405
  */
1406
- getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1406
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1407
1407
  return localVarFp
1408
- .getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
1408
+ .getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options)
1409
1409
  .then((request) => request(axios, basePath));
1410
1410
  },
1411
1411
  /**
1412
1412
  *
1413
1413
  * @summary Get sandbox details
1414
- * @param {string} sandboxId ID of the sandbox
1414
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1415
1415
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1416
1416
  * @param {boolean} [verbose] Include verbose output
1417
1417
  * @param {*} [options] Override http request option.
1418
1418
  * @throws {RequiredError}
1419
1419
  */
1420
- getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1420
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1421
1421
  return localVarFp
1422
- .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1422
+ .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
1423
1423
  .then((request) => request(axios, basePath));
1424
1424
  },
1425
1425
  /**
@@ -1494,125 +1494,125 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1494
1494
  /**
1495
1495
  *
1496
1496
  * @summary Replace sandbox labels
1497
- * @param {string} sandboxId ID of the sandbox
1497
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1498
1498
  * @param {SandboxLabels} sandboxLabels
1499
1499
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1500
1500
  * @param {*} [options] Override http request option.
1501
1501
  * @throws {RequiredError}
1502
1502
  */
1503
- replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1503
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1504
1504
  return localVarFp
1505
- .replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
1505
+ .replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options)
1506
1506
  .then((request) => request(axios, basePath));
1507
1507
  },
1508
1508
  /**
1509
1509
  *
1510
1510
  * @summary Revoke SSH access for sandbox
1511
- * @param {string} sandboxId ID of the sandbox
1511
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1512
1512
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1513
1513
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1514
1514
  * @param {*} [options] Override http request option.
1515
1515
  * @throws {RequiredError}
1516
1516
  */
1517
- revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1517
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1518
1518
  return localVarFp
1519
- .revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options)
1519
+ .revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options)
1520
1520
  .then((request) => request(axios, basePath));
1521
1521
  },
1522
1522
  /**
1523
1523
  *
1524
1524
  * @summary Set sandbox auto-archive interval
1525
- * @param {string} sandboxId ID of the sandbox
1525
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1526
1526
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1527
1527
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1528
1528
  * @param {*} [options] Override http request option.
1529
1529
  * @throws {RequiredError}
1530
1530
  */
1531
- setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1531
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1532
1532
  return localVarFp
1533
- .setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1533
+ .setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1534
1534
  .then((request) => request(axios, basePath));
1535
1535
  },
1536
1536
  /**
1537
1537
  *
1538
1538
  * @summary Set sandbox auto-delete interval
1539
- * @param {string} sandboxId ID of the sandbox
1539
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1540
1540
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1541
1541
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1542
1542
  * @param {*} [options] Override http request option.
1543
1543
  * @throws {RequiredError}
1544
1544
  */
1545
- setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1545
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1546
1546
  return localVarFp
1547
- .setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1547
+ .setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1548
1548
  .then((request) => request(axios, basePath));
1549
1549
  },
1550
1550
  /**
1551
1551
  *
1552
1552
  * @summary Set sandbox auto-stop interval
1553
- * @param {string} sandboxId ID of the sandbox
1553
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1554
1554
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1555
1555
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1556
1556
  * @param {*} [options] Override http request option.
1557
1557
  * @throws {RequiredError}
1558
1558
  */
1559
- setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1559
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1560
1560
  return localVarFp
1561
- .setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1561
+ .setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1562
1562
  .then((request) => request(axios, basePath));
1563
1563
  },
1564
1564
  /**
1565
1565
  *
1566
1566
  * @summary Start sandbox
1567
- * @param {string} sandboxId ID of the sandbox
1567
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1568
1568
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1569
1569
  * @param {*} [options] Override http request option.
1570
1570
  * @throws {RequiredError}
1571
1571
  */
1572
- startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1572
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1573
1573
  return localVarFp
1574
- .startSandbox(sandboxId, xDaytonaOrganizationID, options)
1574
+ .startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1575
1575
  .then((request) => request(axios, basePath));
1576
1576
  },
1577
1577
  /**
1578
1578
  *
1579
1579
  * @summary Stop sandbox
1580
- * @param {string} sandboxId ID of the sandbox
1580
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1581
1581
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1582
1582
  * @param {*} [options] Override http request option.
1583
1583
  * @throws {RequiredError}
1584
1584
  */
1585
- stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1585
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1586
1586
  return localVarFp
1587
- .stopSandbox(sandboxId, xDaytonaOrganizationID, options)
1587
+ .stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1588
1588
  .then((request) => request(axios, basePath));
1589
1589
  },
1590
1590
  /**
1591
1591
  *
1592
1592
  * @summary Update public status
1593
- * @param {string} sandboxId ID of the sandbox
1593
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1594
1594
  * @param {boolean} isPublic Public status to set
1595
1595
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1596
1596
  * @param {*} [options] Override http request option.
1597
1597
  * @throws {RequiredError}
1598
1598
  */
1599
- updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1599
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1600
1600
  return localVarFp
1601
- .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1601
+ .updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options)
1602
1602
  .then((request) => request(axios, basePath));
1603
1603
  },
1604
1604
  /**
1605
1605
  *
1606
1606
  * @summary Update sandbox state
1607
- * @param {string} sandboxId ID of the sandbox
1607
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1608
1608
  * @param {UpdateSandboxStateDto} updateSandboxStateDto
1609
1609
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1610
1610
  * @param {*} [options] Override http request option.
1611
1611
  * @throws {RequiredError}
1612
1612
  */
1613
- updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1613
+ updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1614
1614
  return localVarFp
1615
- .updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options)
1615
+ .updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options)
1616
1616
  .then((request) => request(axios, basePath));
1617
1617
  },
1618
1618
  /**
@@ -1641,29 +1641,29 @@ class SandboxApi extends base_1.BaseAPI {
1641
1641
  /**
1642
1642
  *
1643
1643
  * @summary Archive sandbox
1644
- * @param {string} sandboxId
1644
+ * @param {string} sandboxIdOrName
1645
1645
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1646
1646
  * @param {*} [options] Override http request option.
1647
1647
  * @throws {RequiredError}
1648
1648
  * @memberof SandboxApi
1649
1649
  */
1650
- archiveSandbox(sandboxId, xDaytonaOrganizationID, options) {
1650
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1651
1651
  return (0, exports.SandboxApiFp)(this.configuration)
1652
- .archiveSandbox(sandboxId, xDaytonaOrganizationID, options)
1652
+ .archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1653
1653
  .then((request) => request(this.axios, this.basePath));
1654
1654
  }
1655
1655
  /**
1656
1656
  *
1657
1657
  * @summary Create sandbox backup
1658
- * @param {string} sandboxId ID of the sandbox
1658
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1659
1659
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1660
1660
  * @param {*} [options] Override http request option.
1661
1661
  * @throws {RequiredError}
1662
1662
  * @memberof SandboxApi
1663
1663
  */
1664
- createBackup(sandboxId, xDaytonaOrganizationID, options) {
1664
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1665
1665
  return (0, exports.SandboxApiFp)(this.configuration)
1666
- .createBackup(sandboxId, xDaytonaOrganizationID, options)
1666
+ .createBackup(sandboxIdOrName, xDaytonaOrganizationID, options)
1667
1667
  .then((request) => request(this.axios, this.basePath));
1668
1668
  }
1669
1669
  /**
@@ -1683,75 +1683,75 @@ class SandboxApi extends base_1.BaseAPI {
1683
1683
  /**
1684
1684
  *
1685
1685
  * @summary Create SSH access for sandbox
1686
- * @param {string} sandboxId ID of the sandbox
1686
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1687
1687
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1688
1688
  * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1689
1689
  * @param {*} [options] Override http request option.
1690
1690
  * @throws {RequiredError}
1691
1691
  * @memberof SandboxApi
1692
1692
  */
1693
- createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options) {
1693
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1694
1694
  return (0, exports.SandboxApiFp)(this.configuration)
1695
- .createSshAccess(sandboxId, xDaytonaOrganizationID, expiresInMinutes, options)
1695
+ .createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options)
1696
1696
  .then((request) => request(this.axios, this.basePath));
1697
1697
  }
1698
1698
  /**
1699
1699
  *
1700
1700
  * @summary Delete sandbox
1701
- * @param {string} sandboxId ID of the sandbox
1701
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1702
1702
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1703
1703
  * @param {*} [options] Override http request option.
1704
1704
  * @throws {RequiredError}
1705
1705
  * @memberof SandboxApi
1706
1706
  */
1707
- deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1707
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1708
1708
  return (0, exports.SandboxApiFp)(this.configuration)
1709
- .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1709
+ .deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1710
1710
  .then((request) => request(this.axios, this.basePath));
1711
1711
  }
1712
1712
  /**
1713
1713
  *
1714
1714
  * @summary Get build logs
1715
- * @param {string} sandboxId ID of the sandbox
1715
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1716
1716
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1717
1717
  * @param {boolean} [follow] Whether to follow the logs stream
1718
1718
  * @param {*} [options] Override http request option.
1719
1719
  * @throws {RequiredError}
1720
1720
  * @memberof SandboxApi
1721
1721
  */
1722
- getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options) {
1722
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1723
1723
  return (0, exports.SandboxApiFp)(this.configuration)
1724
- .getBuildLogs(sandboxId, xDaytonaOrganizationID, follow, options)
1724
+ .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1725
1725
  .then((request) => request(this.axios, this.basePath));
1726
1726
  }
1727
1727
  /**
1728
1728
  *
1729
1729
  * @summary Get preview URL for a sandbox port
1730
- * @param {string} sandboxId ID of the sandbox
1730
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1731
1731
  * @param {number} port Port number to get preview URL for
1732
1732
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1733
1733
  * @param {*} [options] Override http request option.
1734
1734
  * @throws {RequiredError}
1735
1735
  * @memberof SandboxApi
1736
1736
  */
1737
- getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options) {
1737
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1738
1738
  return (0, exports.SandboxApiFp)(this.configuration)
1739
- .getPortPreviewUrl(sandboxId, port, xDaytonaOrganizationID, options)
1739
+ .getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options)
1740
1740
  .then((request) => request(this.axios, this.basePath));
1741
1741
  }
1742
1742
  /**
1743
1743
  *
1744
1744
  * @summary Get sandbox details
1745
- * @param {string} sandboxId ID of the sandbox
1745
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1746
1746
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1747
1747
  * @param {boolean} [verbose] Include verbose output
1748
1748
  * @param {*} [options] Override http request option.
1749
1749
  * @throws {RequiredError}
1750
1750
  * @memberof SandboxApi
1751
1751
  */
1752
- getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options) {
1752
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1753
1753
  return (0, exports.SandboxApiFp)(this.configuration)
1754
- .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1754
+ .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
1755
1755
  .then((request) => request(this.axios, this.basePath));
1756
1756
  }
1757
1757
  /**
@@ -1832,134 +1832,134 @@ class SandboxApi extends base_1.BaseAPI {
1832
1832
  /**
1833
1833
  *
1834
1834
  * @summary Replace sandbox labels
1835
- * @param {string} sandboxId ID of the sandbox
1835
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1836
1836
  * @param {SandboxLabels} sandboxLabels
1837
1837
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1838
1838
  * @param {*} [options] Override http request option.
1839
1839
  * @throws {RequiredError}
1840
1840
  * @memberof SandboxApi
1841
1841
  */
1842
- replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options) {
1842
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1843
1843
  return (0, exports.SandboxApiFp)(this.configuration)
1844
- .replaceLabels(sandboxId, sandboxLabels, xDaytonaOrganizationID, options)
1844
+ .replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options)
1845
1845
  .then((request) => request(this.axios, this.basePath));
1846
1846
  }
1847
1847
  /**
1848
1848
  *
1849
1849
  * @summary Revoke SSH access for sandbox
1850
- * @param {string} sandboxId ID of the sandbox
1850
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1851
1851
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1852
1852
  * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1853
1853
  * @param {*} [options] Override http request option.
1854
1854
  * @throws {RequiredError}
1855
1855
  * @memberof SandboxApi
1856
1856
  */
1857
- revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options) {
1857
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1858
1858
  return (0, exports.SandboxApiFp)(this.configuration)
1859
- .revokeSshAccess(sandboxId, xDaytonaOrganizationID, token, options)
1859
+ .revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options)
1860
1860
  .then((request) => request(this.axios, this.basePath));
1861
1861
  }
1862
1862
  /**
1863
1863
  *
1864
1864
  * @summary Set sandbox auto-archive interval
1865
- * @param {string} sandboxId ID of the sandbox
1865
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1866
1866
  * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1867
1867
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1868
1868
  * @param {*} [options] Override http request option.
1869
1869
  * @throws {RequiredError}
1870
1870
  * @memberof SandboxApi
1871
1871
  */
1872
- setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1872
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1873
1873
  return (0, exports.SandboxApiFp)(this.configuration)
1874
- .setAutoArchiveInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1874
+ .setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1875
1875
  .then((request) => request(this.axios, this.basePath));
1876
1876
  }
1877
1877
  /**
1878
1878
  *
1879
1879
  * @summary Set sandbox auto-delete interval
1880
- * @param {string} sandboxId ID of the sandbox
1880
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1881
1881
  * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1882
1882
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1883
1883
  * @param {*} [options] Override http request option.
1884
1884
  * @throws {RequiredError}
1885
1885
  * @memberof SandboxApi
1886
1886
  */
1887
- setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1887
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1888
1888
  return (0, exports.SandboxApiFp)(this.configuration)
1889
- .setAutoDeleteInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1889
+ .setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1890
1890
  .then((request) => request(this.axios, this.basePath));
1891
1891
  }
1892
1892
  /**
1893
1893
  *
1894
1894
  * @summary Set sandbox auto-stop interval
1895
- * @param {string} sandboxId ID of the sandbox
1895
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1896
1896
  * @param {number} interval Auto-stop interval in minutes (0 to disable)
1897
1897
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1898
1898
  * @param {*} [options] Override http request option.
1899
1899
  * @throws {RequiredError}
1900
1900
  * @memberof SandboxApi
1901
1901
  */
1902
- setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options) {
1902
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1903
1903
  return (0, exports.SandboxApiFp)(this.configuration)
1904
- .setAutostopInterval(sandboxId, interval, xDaytonaOrganizationID, options)
1904
+ .setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options)
1905
1905
  .then((request) => request(this.axios, this.basePath));
1906
1906
  }
1907
1907
  /**
1908
1908
  *
1909
1909
  * @summary Start sandbox
1910
- * @param {string} sandboxId ID of the sandbox
1910
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1911
1911
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1912
1912
  * @param {*} [options] Override http request option.
1913
1913
  * @throws {RequiredError}
1914
1914
  * @memberof SandboxApi
1915
1915
  */
1916
- startSandbox(sandboxId, xDaytonaOrganizationID, options) {
1916
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1917
1917
  return (0, exports.SandboxApiFp)(this.configuration)
1918
- .startSandbox(sandboxId, xDaytonaOrganizationID, options)
1918
+ .startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1919
1919
  .then((request) => request(this.axios, this.basePath));
1920
1920
  }
1921
1921
  /**
1922
1922
  *
1923
1923
  * @summary Stop sandbox
1924
- * @param {string} sandboxId ID of the sandbox
1924
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1925
1925
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1926
1926
  * @param {*} [options] Override http request option.
1927
1927
  * @throws {RequiredError}
1928
1928
  * @memberof SandboxApi
1929
1929
  */
1930
- stopSandbox(sandboxId, xDaytonaOrganizationID, options) {
1930
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1931
1931
  return (0, exports.SandboxApiFp)(this.configuration)
1932
- .stopSandbox(sandboxId, xDaytonaOrganizationID, options)
1932
+ .stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, options)
1933
1933
  .then((request) => request(this.axios, this.basePath));
1934
1934
  }
1935
1935
  /**
1936
1936
  *
1937
1937
  * @summary Update public status
1938
- * @param {string} sandboxId ID of the sandbox
1938
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1939
1939
  * @param {boolean} isPublic Public status to set
1940
1940
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1941
1941
  * @param {*} [options] Override http request option.
1942
1942
  * @throws {RequiredError}
1943
1943
  * @memberof SandboxApi
1944
1944
  */
1945
- updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options) {
1945
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1946
1946
  return (0, exports.SandboxApiFp)(this.configuration)
1947
- .updatePublicStatus(sandboxId, isPublic, xDaytonaOrganizationID, options)
1947
+ .updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options)
1948
1948
  .then((request) => request(this.axios, this.basePath));
1949
1949
  }
1950
1950
  /**
1951
1951
  *
1952
1952
  * @summary Update sandbox state
1953
- * @param {string} sandboxId ID of the sandbox
1953
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1954
1954
  * @param {UpdateSandboxStateDto} updateSandboxStateDto
1955
1955
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1956
1956
  * @param {*} [options] Override http request option.
1957
1957
  * @throws {RequiredError}
1958
1958
  * @memberof SandboxApi
1959
1959
  */
1960
- updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1960
+ updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1961
1961
  return (0, exports.SandboxApiFp)(this.configuration)
1962
- .updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options)
1962
+ .updateSandboxState(sandboxIdOrName, updateSandboxStateDto, xDaytonaOrganizationID, options)
1963
1963
  .then((request) => request(this.axios, this.basePath));
1964
1964
  }
1965
1965
  /**