@daytonaio/api-client 0.164.0 → 0.165.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/sandbox-api.d.ts +201 -0
- package/src/api/sandbox-api.js +396 -1
- package/src/api/sandbox-api.js.map +1 -1
- package/src/models/create-sandbox-snapshot.d.ts +24 -0
- package/src/models/create-sandbox-snapshot.js +16 -0
- package/src/models/create-sandbox-snapshot.js.map +1 -0
- package/src/models/fork-sandbox.d.ts +24 -0
- package/src/models/fork-sandbox.js +16 -0
- package/src/models/fork-sandbox.js.map +1 -0
- package/src/models/index.d.ts +3 -0
- package/src/models/index.js +3 -0
- package/src/models/index.js.map +1 -1
- package/src/models/job-type.d.ts +2 -0
- package/src/models/job-type.js +3 -1
- package/src/models/job-type.js.map +1 -1
- package/src/models/runner-class.d.ts +21 -0
- package/src/models/runner-class.js +26 -0
- package/src/models/runner-class.js.map +1 -0
- package/src/models/runner-full.d.ts +7 -0
- package/src/models/runner.d.ts +7 -0
- package/src/models/sandbox-state.d.ts +2 -0
- package/src/models/sandbox-state.js +3 -1
- package/src/models/sandbox-state.js.map +1 -1
- package/src/models/update-sandbox-state-dto.d.ts +2 -0
- package/src/models/update-sandbox-state-dto.js +3 -1
- package/src/models/update-sandbox-state-dto.js.map +1 -1
package/src/api/sandbox-api.js
CHANGED
|
@@ -138,6 +138,48 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
138
138
|
options: localVarRequestOptions,
|
|
139
139
|
};
|
|
140
140
|
},
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @summary Create a snapshot from a sandbox
|
|
144
|
+
* @param {string} sandboxIdOrName
|
|
145
|
+
* @param {CreateSandboxSnapshot} createSandboxSnapshot
|
|
146
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
createSandboxSnapshot: async (sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options = {}) => {
|
|
151
|
+
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
152
|
+
(0, common_1.assertParamExists)('createSandboxSnapshot', 'sandboxIdOrName', sandboxIdOrName);
|
|
153
|
+
// verify required parameter 'createSandboxSnapshot' is not null or undefined
|
|
154
|
+
(0, common_1.assertParamExists)('createSandboxSnapshot', 'createSandboxSnapshot', createSandboxSnapshot);
|
|
155
|
+
const localVarPath = `/sandbox/{sandboxIdOrName}/snapshot`
|
|
156
|
+
.replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
158
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
159
|
+
let baseOptions;
|
|
160
|
+
if (configuration) {
|
|
161
|
+
baseOptions = configuration.baseOptions;
|
|
162
|
+
}
|
|
163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
164
|
+
const localVarHeaderParameter = {};
|
|
165
|
+
const localVarQueryParameter = {};
|
|
166
|
+
// authentication bearer required
|
|
167
|
+
// http bearer authentication required
|
|
168
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
169
|
+
// authentication oauth2 required
|
|
170
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
171
|
+
if (xDaytonaOrganizationID != null) {
|
|
172
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
173
|
+
}
|
|
174
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
177
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSandboxSnapshot, localVarRequestOptions, configuration);
|
|
178
|
+
return {
|
|
179
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
180
|
+
options: localVarRequestOptions,
|
|
181
|
+
};
|
|
182
|
+
},
|
|
141
183
|
/**
|
|
142
184
|
*
|
|
143
185
|
* @summary Create SSH access for sandbox
|
|
@@ -261,6 +303,48 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
261
303
|
options: localVarRequestOptions,
|
|
262
304
|
};
|
|
263
305
|
},
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @summary Fork a sandbox
|
|
309
|
+
* @param {string} sandboxIdOrName
|
|
310
|
+
* @param {ForkSandbox} forkSandbox
|
|
311
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
forkSandbox: async (sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options = {}) => {
|
|
316
|
+
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
317
|
+
(0, common_1.assertParamExists)('forkSandbox', 'sandboxIdOrName', sandboxIdOrName);
|
|
318
|
+
// verify required parameter 'forkSandbox' is not null or undefined
|
|
319
|
+
(0, common_1.assertParamExists)('forkSandbox', 'forkSandbox', forkSandbox);
|
|
320
|
+
const localVarPath = `/sandbox/{sandboxIdOrName}/fork`
|
|
321
|
+
.replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
322
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
323
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
324
|
+
let baseOptions;
|
|
325
|
+
if (configuration) {
|
|
326
|
+
baseOptions = configuration.baseOptions;
|
|
327
|
+
}
|
|
328
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
329
|
+
const localVarHeaderParameter = {};
|
|
330
|
+
const localVarQueryParameter = {};
|
|
331
|
+
// authentication bearer required
|
|
332
|
+
// http bearer authentication required
|
|
333
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
334
|
+
// authentication oauth2 required
|
|
335
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
336
|
+
if (xDaytonaOrganizationID != null) {
|
|
337
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
338
|
+
}
|
|
339
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
340
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
341
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
342
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(forkSandbox, localVarRequestOptions, configuration);
|
|
343
|
+
return {
|
|
344
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
345
|
+
options: localVarRequestOptions,
|
|
346
|
+
};
|
|
347
|
+
},
|
|
264
348
|
/**
|
|
265
349
|
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
266
350
|
* @summary Get build logs
|
|
@@ -496,6 +580,84 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
496
580
|
options: localVarRequestOptions,
|
|
497
581
|
};
|
|
498
582
|
},
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @summary Get sandbox fork ancestor chain
|
|
586
|
+
* @param {string} sandboxIdOrName
|
|
587
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
getSandboxAncestors: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
|
|
592
|
+
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
593
|
+
(0, common_1.assertParamExists)('getSandboxAncestors', 'sandboxIdOrName', sandboxIdOrName);
|
|
594
|
+
const localVarPath = `/sandbox/{sandboxIdOrName}/ancestors`
|
|
595
|
+
.replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
596
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
597
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
598
|
+
let baseOptions;
|
|
599
|
+
if (configuration) {
|
|
600
|
+
baseOptions = configuration.baseOptions;
|
|
601
|
+
}
|
|
602
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
603
|
+
const localVarHeaderParameter = {};
|
|
604
|
+
const localVarQueryParameter = {};
|
|
605
|
+
// authentication bearer required
|
|
606
|
+
// http bearer authentication required
|
|
607
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
608
|
+
// authentication oauth2 required
|
|
609
|
+
if (xDaytonaOrganizationID != null) {
|
|
610
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
611
|
+
}
|
|
612
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
613
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
614
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
615
|
+
return {
|
|
616
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
617
|
+
options: localVarRequestOptions,
|
|
618
|
+
};
|
|
619
|
+
},
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @summary Get sandbox fork children
|
|
623
|
+
* @param {string} sandboxIdOrName
|
|
624
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
625
|
+
* @param {boolean} [includeDestroyed]
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
getSandboxForks: async (sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options = {}) => {
|
|
630
|
+
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
631
|
+
(0, common_1.assertParamExists)('getSandboxForks', 'sandboxIdOrName', sandboxIdOrName);
|
|
632
|
+
const localVarPath = `/sandbox/{sandboxIdOrName}/forks`
|
|
633
|
+
.replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
634
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
635
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
636
|
+
let baseOptions;
|
|
637
|
+
if (configuration) {
|
|
638
|
+
baseOptions = configuration.baseOptions;
|
|
639
|
+
}
|
|
640
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
641
|
+
const localVarHeaderParameter = {};
|
|
642
|
+
const localVarQueryParameter = {};
|
|
643
|
+
// authentication bearer required
|
|
644
|
+
// http bearer authentication required
|
|
645
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
646
|
+
// authentication oauth2 required
|
|
647
|
+
if (includeDestroyed !== undefined) {
|
|
648
|
+
localVarQueryParameter['includeDestroyed'] = includeDestroyed;
|
|
649
|
+
}
|
|
650
|
+
if (xDaytonaOrganizationID != null) {
|
|
651
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
652
|
+
}
|
|
653
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
655
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
656
|
+
return {
|
|
657
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
658
|
+
options: localVarRequestOptions,
|
|
659
|
+
};
|
|
660
|
+
},
|
|
499
661
|
/**
|
|
500
662
|
* Retrieve OTEL logs for a sandbox within a time range
|
|
501
663
|
* @summary Get sandbox logs
|
|
@@ -622,6 +784,43 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
622
784
|
options: localVarRequestOptions,
|
|
623
785
|
};
|
|
624
786
|
},
|
|
787
|
+
/**
|
|
788
|
+
*
|
|
789
|
+
* @summary Get sandbox fork parent
|
|
790
|
+
* @param {string} sandboxIdOrName
|
|
791
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
getSandboxParent: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
|
|
796
|
+
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
797
|
+
(0, common_1.assertParamExists)('getSandboxParent', 'sandboxIdOrName', sandboxIdOrName);
|
|
798
|
+
const localVarPath = `/sandbox/{sandboxIdOrName}/parent`
|
|
799
|
+
.replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
801
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
802
|
+
let baseOptions;
|
|
803
|
+
if (configuration) {
|
|
804
|
+
baseOptions = configuration.baseOptions;
|
|
805
|
+
}
|
|
806
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
807
|
+
const localVarHeaderParameter = {};
|
|
808
|
+
const localVarQueryParameter = {};
|
|
809
|
+
// authentication bearer required
|
|
810
|
+
// http bearer authentication required
|
|
811
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
812
|
+
// authentication oauth2 required
|
|
813
|
+
if (xDaytonaOrganizationID != null) {
|
|
814
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
815
|
+
}
|
|
816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
818
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
819
|
+
return {
|
|
820
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
821
|
+
options: localVarRequestOptions,
|
|
822
|
+
};
|
|
823
|
+
},
|
|
625
824
|
/**
|
|
626
825
|
* Retrieve all spans for a specific trace
|
|
627
826
|
* @summary Get trace spans
|
|
@@ -1579,6 +1778,21 @@ const SandboxApiFp = function (configuration) {
|
|
|
1579
1778
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandbox']?.[localVarOperationServerIndex]?.url;
|
|
1580
1779
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1581
1780
|
},
|
|
1781
|
+
/**
|
|
1782
|
+
*
|
|
1783
|
+
* @summary Create a snapshot from a sandbox
|
|
1784
|
+
* @param {string} sandboxIdOrName
|
|
1785
|
+
* @param {CreateSandboxSnapshot} createSandboxSnapshot
|
|
1786
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1787
|
+
* @param {*} [options] Override http request option.
|
|
1788
|
+
* @throws {RequiredError}
|
|
1789
|
+
*/
|
|
1790
|
+
async createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
|
|
1791
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options);
|
|
1792
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1793
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandboxSnapshot']?.[localVarOperationServerIndex]?.url;
|
|
1794
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1795
|
+
},
|
|
1582
1796
|
/**
|
|
1583
1797
|
*
|
|
1584
1798
|
* @summary Create SSH access for sandbox
|
|
@@ -1624,6 +1838,21 @@ const SandboxApiFp = function (configuration) {
|
|
|
1624
1838
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.expireSignedPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
|
|
1625
1839
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1626
1840
|
},
|
|
1841
|
+
/**
|
|
1842
|
+
*
|
|
1843
|
+
* @summary Fork a sandbox
|
|
1844
|
+
* @param {string} sandboxIdOrName
|
|
1845
|
+
* @param {ForkSandbox} forkSandbox
|
|
1846
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1847
|
+
* @param {*} [options] Override http request option.
|
|
1848
|
+
* @throws {RequiredError}
|
|
1849
|
+
*/
|
|
1850
|
+
async forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options) {
|
|
1851
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options);
|
|
1852
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1853
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.forkSandbox']?.[localVarOperationServerIndex]?.url;
|
|
1854
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1855
|
+
},
|
|
1627
1856
|
/**
|
|
1628
1857
|
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
1629
1858
|
* @summary Get build logs
|
|
@@ -1712,6 +1941,35 @@ const SandboxApiFp = function (configuration) {
|
|
|
1712
1941
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
|
|
1713
1942
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1714
1943
|
},
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @summary Get sandbox fork ancestor chain
|
|
1947
|
+
* @param {string} sandboxIdOrName
|
|
1948
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1949
|
+
* @param {*} [options] Override http request option.
|
|
1950
|
+
* @throws {RequiredError}
|
|
1951
|
+
*/
|
|
1952
|
+
async getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
1953
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options);
|
|
1954
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1955
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxAncestors']?.[localVarOperationServerIndex]?.url;
|
|
1956
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1957
|
+
},
|
|
1958
|
+
/**
|
|
1959
|
+
*
|
|
1960
|
+
* @summary Get sandbox fork children
|
|
1961
|
+
* @param {string} sandboxIdOrName
|
|
1962
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1963
|
+
* @param {boolean} [includeDestroyed]
|
|
1964
|
+
* @param {*} [options] Override http request option.
|
|
1965
|
+
* @throws {RequiredError}
|
|
1966
|
+
*/
|
|
1967
|
+
async getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options) {
|
|
1968
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options);
|
|
1969
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1970
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxForks']?.[localVarOperationServerIndex]?.url;
|
|
1971
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1972
|
+
},
|
|
1715
1973
|
/**
|
|
1716
1974
|
* Retrieve OTEL logs for a sandbox within a time range
|
|
1717
1975
|
* @summary Get sandbox logs
|
|
@@ -1749,6 +2007,20 @@ const SandboxApiFp = function (configuration) {
|
|
|
1749
2007
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxMetrics']?.[localVarOperationServerIndex]?.url;
|
|
1750
2008
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1751
2009
|
},
|
|
2010
|
+
/**
|
|
2011
|
+
*
|
|
2012
|
+
* @summary Get sandbox fork parent
|
|
2013
|
+
* @param {string} sandboxIdOrName
|
|
2014
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2015
|
+
* @param {*} [options] Override http request option.
|
|
2016
|
+
* @throws {RequiredError}
|
|
2017
|
+
*/
|
|
2018
|
+
async getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
2019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options);
|
|
2020
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2021
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxParent']?.[localVarOperationServerIndex]?.url;
|
|
2022
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
+
},
|
|
1752
2024
|
/**
|
|
1753
2025
|
* Retrieve all spans for a specific trace
|
|
1754
2026
|
* @summary Get trace spans
|
|
@@ -2109,6 +2381,18 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
2109
2381
|
createSandbox(createSandbox, xDaytonaOrganizationID, options) {
|
|
2110
2382
|
return localVarFp.createSandbox(createSandbox, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2111
2383
|
},
|
|
2384
|
+
/**
|
|
2385
|
+
*
|
|
2386
|
+
* @summary Create a snapshot from a sandbox
|
|
2387
|
+
* @param {string} sandboxIdOrName
|
|
2388
|
+
* @param {CreateSandboxSnapshot} createSandboxSnapshot
|
|
2389
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2390
|
+
* @param {*} [options] Override http request option.
|
|
2391
|
+
* @throws {RequiredError}
|
|
2392
|
+
*/
|
|
2393
|
+
createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
|
|
2394
|
+
return localVarFp.createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2395
|
+
},
|
|
2112
2396
|
/**
|
|
2113
2397
|
*
|
|
2114
2398
|
* @summary Create SSH access for sandbox
|
|
@@ -2145,6 +2429,18 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
2145
2429
|
expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
|
|
2146
2430
|
return localVarFp.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2147
2431
|
},
|
|
2432
|
+
/**
|
|
2433
|
+
*
|
|
2434
|
+
* @summary Fork a sandbox
|
|
2435
|
+
* @param {string} sandboxIdOrName
|
|
2436
|
+
* @param {ForkSandbox} forkSandbox
|
|
2437
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2438
|
+
* @param {*} [options] Override http request option.
|
|
2439
|
+
* @throws {RequiredError}
|
|
2440
|
+
*/
|
|
2441
|
+
forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options) {
|
|
2442
|
+
return localVarFp.forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2443
|
+
},
|
|
2148
2444
|
/**
|
|
2149
2445
|
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
2150
2446
|
* @summary Get build logs
|
|
@@ -2215,6 +2511,29 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
2215
2511
|
getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
|
|
2216
2512
|
return localVarFp.getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
|
|
2217
2513
|
},
|
|
2514
|
+
/**
|
|
2515
|
+
*
|
|
2516
|
+
* @summary Get sandbox fork ancestor chain
|
|
2517
|
+
* @param {string} sandboxIdOrName
|
|
2518
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
*/
|
|
2522
|
+
getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
2523
|
+
return localVarFp.getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2524
|
+
},
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @summary Get sandbox fork children
|
|
2528
|
+
* @param {string} sandboxIdOrName
|
|
2529
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2530
|
+
* @param {boolean} [includeDestroyed]
|
|
2531
|
+
* @param {*} [options] Override http request option.
|
|
2532
|
+
* @throws {RequiredError}
|
|
2533
|
+
*/
|
|
2534
|
+
getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options) {
|
|
2535
|
+
return localVarFp.getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options).then((request) => request(axios, basePath));
|
|
2536
|
+
},
|
|
2218
2537
|
/**
|
|
2219
2538
|
* Retrieve OTEL logs for a sandbox within a time range
|
|
2220
2539
|
* @summary Get sandbox logs
|
|
@@ -2246,6 +2565,17 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
2246
2565
|
getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
|
|
2247
2566
|
return localVarFp.getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options).then((request) => request(axios, basePath));
|
|
2248
2567
|
},
|
|
2568
|
+
/**
|
|
2569
|
+
*
|
|
2570
|
+
* @summary Get sandbox fork parent
|
|
2571
|
+
* @param {string} sandboxIdOrName
|
|
2572
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
*/
|
|
2576
|
+
getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
2577
|
+
return localVarFp.getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
2578
|
+
},
|
|
2249
2579
|
/**
|
|
2250
2580
|
* Retrieve all spans for a specific trace
|
|
2251
2581
|
* @summary Get trace spans
|
|
@@ -2549,6 +2879,19 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2549
2879
|
createSandbox(createSandbox, xDaytonaOrganizationID, options) {
|
|
2550
2880
|
return (0, exports.SandboxApiFp)(this.configuration).createSandbox(createSandbox, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
2551
2881
|
}
|
|
2882
|
+
/**
|
|
2883
|
+
*
|
|
2884
|
+
* @summary Create a snapshot from a sandbox
|
|
2885
|
+
* @param {string} sandboxIdOrName
|
|
2886
|
+
* @param {CreateSandboxSnapshot} createSandboxSnapshot
|
|
2887
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
* @memberof SandboxApi
|
|
2891
|
+
*/
|
|
2892
|
+
createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options) {
|
|
2893
|
+
return (0, exports.SandboxApiFp)(this.configuration).createSandboxSnapshot(sandboxIdOrName, createSandboxSnapshot, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
2894
|
+
}
|
|
2552
2895
|
/**
|
|
2553
2896
|
*
|
|
2554
2897
|
* @summary Create SSH access for sandbox
|
|
@@ -2588,6 +2931,19 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2588
2931
|
expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
|
|
2589
2932
|
return (0, exports.SandboxApiFp)(this.configuration).expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
2590
2933
|
}
|
|
2934
|
+
/**
|
|
2935
|
+
*
|
|
2936
|
+
* @summary Fork a sandbox
|
|
2937
|
+
* @param {string} sandboxIdOrName
|
|
2938
|
+
* @param {ForkSandbox} forkSandbox
|
|
2939
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2940
|
+
* @param {*} [options] Override http request option.
|
|
2941
|
+
* @throws {RequiredError}
|
|
2942
|
+
* @memberof SandboxApi
|
|
2943
|
+
*/
|
|
2944
|
+
forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options) {
|
|
2945
|
+
return (0, exports.SandboxApiFp)(this.configuration).forkSandbox(sandboxIdOrName, forkSandbox, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
2946
|
+
}
|
|
2591
2947
|
/**
|
|
2592
2948
|
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
2593
2949
|
* @summary Get build logs
|
|
@@ -2664,6 +3020,31 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2664
3020
|
getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
|
|
2665
3021
|
return (0, exports.SandboxApiFp)(this.configuration).getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options).then((request) => request(this.axios, this.basePath));
|
|
2666
3022
|
}
|
|
3023
|
+
/**
|
|
3024
|
+
*
|
|
3025
|
+
* @summary Get sandbox fork ancestor chain
|
|
3026
|
+
* @param {string} sandboxIdOrName
|
|
3027
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3028
|
+
* @param {*} [options] Override http request option.
|
|
3029
|
+
* @throws {RequiredError}
|
|
3030
|
+
* @memberof SandboxApi
|
|
3031
|
+
*/
|
|
3032
|
+
getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
3033
|
+
return (0, exports.SandboxApiFp)(this.configuration).getSandboxAncestors(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
*
|
|
3037
|
+
* @summary Get sandbox fork children
|
|
3038
|
+
* @param {string} sandboxIdOrName
|
|
3039
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3040
|
+
* @param {boolean} [includeDestroyed]
|
|
3041
|
+
* @param {*} [options] Override http request option.
|
|
3042
|
+
* @throws {RequiredError}
|
|
3043
|
+
* @memberof SandboxApi
|
|
3044
|
+
*/
|
|
3045
|
+
getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options) {
|
|
3046
|
+
return (0, exports.SandboxApiFp)(this.configuration).getSandboxForks(sandboxIdOrName, xDaytonaOrganizationID, includeDestroyed, options).then((request) => request(this.axios, this.basePath));
|
|
3047
|
+
}
|
|
2667
3048
|
/**
|
|
2668
3049
|
* Retrieve OTEL logs for a sandbox within a time range
|
|
2669
3050
|
* @summary Get sandbox logs
|
|
@@ -2697,6 +3078,18 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2697
3078
|
getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
|
|
2698
3079
|
return (0, exports.SandboxApiFp)(this.configuration).getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options).then((request) => request(this.axios, this.basePath));
|
|
2699
3080
|
}
|
|
3081
|
+
/**
|
|
3082
|
+
*
|
|
3083
|
+
* @summary Get sandbox fork parent
|
|
3084
|
+
* @param {string} sandboxIdOrName
|
|
3085
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3086
|
+
* @param {*} [options] Override http request option.
|
|
3087
|
+
* @throws {RequiredError}
|
|
3088
|
+
* @memberof SandboxApi
|
|
3089
|
+
*/
|
|
3090
|
+
getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
3091
|
+
return (0, exports.SandboxApiFp)(this.configuration).getSandboxParent(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
3092
|
+
}
|
|
2700
3093
|
/**
|
|
2701
3094
|
* Retrieve all spans for a specific trace
|
|
2702
3095
|
* @summary Get trace spans
|
|
@@ -2995,7 +3388,9 @@ exports.ListSandboxesPaginatedStatesEnum = {
|
|
|
2995
3388
|
PULLING_SNAPSHOT: 'pulling_snapshot',
|
|
2996
3389
|
ARCHIVED: 'archived',
|
|
2997
3390
|
ARCHIVING: 'archiving',
|
|
2998
|
-
RESIZING: 'resizing'
|
|
3391
|
+
RESIZING: 'resizing',
|
|
3392
|
+
SNAPSHOTTING: 'snapshotting',
|
|
3393
|
+
FORKING: 'forking'
|
|
2999
3394
|
};
|
|
3000
3395
|
/**
|
|
3001
3396
|
* @export
|