@daytonaio/api-client 0.131.0-rc.1 → 0.131.0-rc.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.
- package/package.json +1 -1
- package/src/api/docker-registry-api.d.ts +4 -8
- package/src/api/docker-registry-api.js +7 -14
- package/src/api/docker-registry-api.js.map +1 -1
- package/src/api/organizations-api.d.ts +0 -222
- package/src/api/organizations-api.js +0 -454
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/preview-api.d.ts +0 -37
- package/src/api/preview-api.js +0 -74
- package/src/api/preview-api.js.map +1 -1
- package/src/api/regions-api.d.ts +16 -8
- package/src/api/regions-api.js +29 -13
- package/src/api/regions-api.js.map +1 -1
- package/src/api/runners-api.d.ts +22 -177
- package/src/api/runners-api.js +25 -338
- package/src/api/runners-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +0 -171
- package/src/api/sandbox-api.js +0 -342
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +4 -46
- package/src/api/snapshots-api.js +4 -85
- package/src/api/snapshots-api.js.map +1 -1
- package/src/api.d.ts +0 -2
- package/src/api.js +0 -2
- package/src/api.js.map +1 -1
- package/src/models/api-key-list.d.ts +0 -5
- package/src/models/api-key-list.js +0 -5
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +0 -5
- package/src/models/api-key-response.js +0 -5
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/build-info.d.ts +0 -6
- package/src/models/create-api-key.d.ts +0 -5
- package/src/models/create-api-key.js +0 -5
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/create-organization-role.d.ts +0 -5
- package/src/models/create-organization-role.js +0 -5
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/create-runner.d.ts +68 -2
- package/src/models/create-runner.js +6 -0
- package/src/models/create-runner.js.map +1 -1
- package/src/models/create-snapshot.d.ts +0 -6
- package/src/models/index.d.ts +0 -18
- package/src/models/index.js +0 -18
- package/src/models/index.js.map +1 -1
- package/src/models/organization-role.d.ts +0 -5
- package/src/models/organization-role.js +0 -5
- package/src/models/organization-role.js.map +1 -1
- package/src/models/region.d.ts +0 -19
- package/src/models/region.js +0 -12
- package/src/models/region.js.map +1 -1
- package/src/models/runner-snapshot-dto.d.ts +1 -1
- package/src/models/runner.d.ts +12 -27
- package/src/models/sandbox.d.ts +0 -6
- package/src/models/sandbox.js.map +1 -1
- package/src/models/snapshot-dto.d.ts +0 -18
- package/src/models/ssh-access-dto.d.ts +0 -6
- package/src/models/update-organization-role.d.ts +0 -5
- package/src/models/update-organization-role.js +0 -5
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/update-sandbox-state-dto.d.ts +0 -6
- package/src/models/update-sandbox-state-dto.js.map +1 -1
- package/src/models/workspace.d.ts +0 -6
- package/src/models/workspace.js.map +1 -1
- package/src/api/admin-api.d.ts +0 -208
- package/src/api/admin-api.js +0 -404
- package/src/api/admin-api.js.map +0 -1
- package/src/api/jobs-api.d.ts +0 -197
- package/src/api/jobs-api.js +0 -371
- package/src/api/jobs-api.js.map +0 -1
- package/src/models/admin-create-runner.d.ts +0 -78
- package/src/models/admin-create-runner.js +0 -4
- package/src/models/admin-create-runner.js.map +0 -1
- package/src/models/create-region-response.d.ts +0 -48
- package/src/models/create-region-response.js +0 -4
- package/src/models/create-region-response.js.map +0 -1
- package/src/models/create-region.d.ts +0 -42
- package/src/models/create-region.js +0 -4
- package/src/models/create-region.js.map +0 -1
- package/src/models/create-runner-response.d.ts +0 -30
- package/src/models/create-runner-response.js +0 -4
- package/src/models/create-runner-response.js.map +0 -1
- package/src/models/job-status.d.ts +0 -23
- package/src/models/job-status.js +0 -27
- package/src/models/job-status.js.map +0 -1
- package/src/models/job-type.d.ts +0 -30
- package/src/models/job-type.js +0 -34
- package/src/models/job-type.js.map +0 -1
- package/src/models/job.d.ts +0 -88
- package/src/models/job.js +0 -22
- package/src/models/job.js.map +0 -1
- package/src/models/paginated-jobs.d.ts +0 -43
- package/src/models/paginated-jobs.js +0 -16
- package/src/models/paginated-jobs.js.map +0 -1
- package/src/models/poll-jobs-response.d.ts +0 -25
- package/src/models/poll-jobs-response.js +0 -16
- package/src/models/poll-jobs-response.js.map +0 -1
- package/src/models/regenerate-api-key-response.d.ts +0 -24
- package/src/models/regenerate-api-key-response.js +0 -4
- package/src/models/regenerate-api-key-response.js.map +0 -1
- package/src/models/region-type.d.ts +0 -22
- package/src/models/region-type.js +0 -26
- package/src/models/region-type.js.map +0 -1
- package/src/models/runner-full.d.ts +0 -210
- package/src/models/runner-full.js +0 -16
- package/src/models/runner-full.js.map +0 -1
- package/src/models/runner-health-metrics.d.ts +0 -84
- package/src/models/runner-health-metrics.js +0 -4
- package/src/models/runner-health-metrics.js.map +0 -1
- package/src/models/runner-healthcheck.d.ts +0 -49
- package/src/models/runner-healthcheck.js +0 -16
- package/src/models/runner-healthcheck.js.map +0 -1
- package/src/models/signed-port-preview-url.d.ts +0 -42
- package/src/models/signed-port-preview-url.js +0 -4
- package/src/models/signed-port-preview-url.js.map +0 -1
- package/src/models/toolbox-proxy-url.d.ts +0 -24
- package/src/models/toolbox-proxy-url.js +0 -4
- package/src/models/toolbox-proxy-url.js.map +0 -1
- package/src/models/update-job-status.d.ts +0 -37
- package/src/models/update-job-status.js +0 -16
- package/src/models/update-job-status.js.map +0 -1
- package/src/models/url.d.ts +0 -24
- package/src/models/url.js +0 -4
- package/src/models/url.js.map +0 -1
package/src/api/sandbox-api.js
CHANGED
|
@@ -214,57 +214,11 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
214
214
|
},
|
|
215
215
|
/**
|
|
216
216
|
*
|
|
217
|
-
* @summary Expire signed preview URL for a sandbox port
|
|
218
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
219
|
-
* @param {number} port Port number to expire signed preview URL for
|
|
220
|
-
* @param {string} token Token to expire signed preview URL for
|
|
221
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
222
|
-
* @param {*} [options] Override http request option.
|
|
223
|
-
* @throws {RequiredError}
|
|
224
|
-
*/
|
|
225
|
-
expireSignedPortPreviewUrl: async (sandboxIdOrName, port, token, xDaytonaOrganizationID, options = {}) => {
|
|
226
|
-
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
227
|
-
(0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
|
|
228
|
-
// verify required parameter 'port' is not null or undefined
|
|
229
|
-
(0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'port', port);
|
|
230
|
-
// verify required parameter 'token' is not null or undefined
|
|
231
|
-
(0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'token', token);
|
|
232
|
-
const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire`
|
|
233
|
-
.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
|
|
234
|
-
.replace(`{${'port'}}`, encodeURIComponent(String(port)))
|
|
235
|
-
.replace(`{${'token'}}`, encodeURIComponent(String(token)));
|
|
236
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
-
let baseOptions;
|
|
239
|
-
if (configuration) {
|
|
240
|
-
baseOptions = configuration.baseOptions;
|
|
241
|
-
}
|
|
242
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
243
|
-
const localVarHeaderParameter = {};
|
|
244
|
-
const localVarQueryParameter = {};
|
|
245
|
-
// authentication bearer required
|
|
246
|
-
// http bearer authentication required
|
|
247
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
248
|
-
// authentication oauth2 required
|
|
249
|
-
if (xDaytonaOrganizationID != null) {
|
|
250
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
251
|
-
}
|
|
252
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
255
|
-
return {
|
|
256
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
257
|
-
options: localVarRequestOptions,
|
|
258
|
-
};
|
|
259
|
-
},
|
|
260
|
-
/**
|
|
261
|
-
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
262
217
|
* @summary Get build logs
|
|
263
218
|
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
264
219
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
265
220
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
266
221
|
* @param {*} [options] Override http request option.
|
|
267
|
-
* @deprecated
|
|
268
222
|
* @throws {RequiredError}
|
|
269
223
|
*/
|
|
270
224
|
getBuildLogs: async (sandboxIdOrName, xDaytonaOrganizationID, follow, options = {}) => {
|
|
@@ -298,42 +252,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
298
252
|
options: localVarRequestOptions,
|
|
299
253
|
};
|
|
300
254
|
},
|
|
301
|
-
/**
|
|
302
|
-
*
|
|
303
|
-
* @summary Get build logs URL
|
|
304
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
305
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
306
|
-
* @param {*} [options] Override http request option.
|
|
307
|
-
* @throws {RequiredError}
|
|
308
|
-
*/
|
|
309
|
-
getBuildLogsUrl: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
|
|
310
|
-
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
311
|
-
(0, common_1.assertParamExists)('getBuildLogsUrl', 'sandboxIdOrName', sandboxIdOrName);
|
|
312
|
-
const localVarPath = `/sandbox/{sandboxIdOrName}/build-logs-url`.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)));
|
|
313
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
315
|
-
let baseOptions;
|
|
316
|
-
if (configuration) {
|
|
317
|
-
baseOptions = configuration.baseOptions;
|
|
318
|
-
}
|
|
319
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
320
|
-
const localVarHeaderParameter = {};
|
|
321
|
-
const localVarQueryParameter = {};
|
|
322
|
-
// authentication bearer required
|
|
323
|
-
// http bearer authentication required
|
|
324
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
325
|
-
// authentication oauth2 required
|
|
326
|
-
if (xDaytonaOrganizationID != null) {
|
|
327
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
328
|
-
}
|
|
329
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
330
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
331
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
332
|
-
return {
|
|
333
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
334
|
-
options: localVarRequestOptions,
|
|
335
|
-
};
|
|
336
|
-
},
|
|
337
255
|
/**
|
|
338
256
|
*
|
|
339
257
|
* @summary Get preview URL for a sandbox port
|
|
@@ -456,87 +374,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
|
|
|
456
374
|
options: localVarRequestOptions,
|
|
457
375
|
};
|
|
458
376
|
},
|
|
459
|
-
/**
|
|
460
|
-
*
|
|
461
|
-
* @summary Get signed preview URL for a sandbox port
|
|
462
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
463
|
-
* @param {number} port Port number to get signed preview URL for
|
|
464
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
465
|
-
* @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
|
|
466
|
-
* @param {*} [options] Override http request option.
|
|
467
|
-
* @throws {RequiredError}
|
|
468
|
-
*/
|
|
469
|
-
getSignedPortPreviewUrl: async (sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options = {}) => {
|
|
470
|
-
// verify required parameter 'sandboxIdOrName' is not null or undefined
|
|
471
|
-
(0, common_1.assertParamExists)('getSignedPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
|
|
472
|
-
// verify required parameter 'port' is not null or undefined
|
|
473
|
-
(0, common_1.assertParamExists)('getSignedPortPreviewUrl', 'port', port);
|
|
474
|
-
const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url`
|
|
475
|
-
.replace(`{${'sandboxIdOrName'}}`, encodeURIComponent(String(sandboxIdOrName)))
|
|
476
|
-
.replace(`{${'port'}}`, encodeURIComponent(String(port)));
|
|
477
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
478
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
479
|
-
let baseOptions;
|
|
480
|
-
if (configuration) {
|
|
481
|
-
baseOptions = configuration.baseOptions;
|
|
482
|
-
}
|
|
483
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
484
|
-
const localVarHeaderParameter = {};
|
|
485
|
-
const localVarQueryParameter = {};
|
|
486
|
-
// authentication bearer required
|
|
487
|
-
// http bearer authentication required
|
|
488
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
489
|
-
// authentication oauth2 required
|
|
490
|
-
if (expiresInSeconds !== undefined) {
|
|
491
|
-
localVarQueryParameter['expiresInSeconds'] = expiresInSeconds;
|
|
492
|
-
}
|
|
493
|
-
if (xDaytonaOrganizationID != null) {
|
|
494
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
495
|
-
}
|
|
496
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
497
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
498
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
499
|
-
return {
|
|
500
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
501
|
-
options: localVarRequestOptions,
|
|
502
|
-
};
|
|
503
|
-
},
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @summary Get toolbox proxy URL for a sandbox
|
|
507
|
-
* @param {string} sandboxId ID of the sandbox
|
|
508
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
509
|
-
* @param {*} [options] Override http request option.
|
|
510
|
-
* @throws {RequiredError}
|
|
511
|
-
*/
|
|
512
|
-
getToolboxProxyUrl: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
513
|
-
// verify required parameter 'sandboxId' is not null or undefined
|
|
514
|
-
(0, common_1.assertParamExists)('getToolboxProxyUrl', 'sandboxId', sandboxId);
|
|
515
|
-
const localVarPath = `/sandbox/{sandboxId}/toolbox-proxy-url`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
516
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
517
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
518
|
-
let baseOptions;
|
|
519
|
-
if (configuration) {
|
|
520
|
-
baseOptions = configuration.baseOptions;
|
|
521
|
-
}
|
|
522
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
523
|
-
const localVarHeaderParameter = {};
|
|
524
|
-
const localVarQueryParameter = {};
|
|
525
|
-
// authentication bearer required
|
|
526
|
-
// http bearer authentication required
|
|
527
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
528
|
-
// authentication oauth2 required
|
|
529
|
-
if (xDaytonaOrganizationID != null) {
|
|
530
|
-
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
531
|
-
}
|
|
532
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
533
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
534
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
535
|
-
return {
|
|
536
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
537
|
-
options: localVarRequestOptions,
|
|
538
|
-
};
|
|
539
|
-
},
|
|
540
377
|
/**
|
|
541
378
|
*
|
|
542
379
|
* @summary List all sandboxes
|
|
@@ -1245,28 +1082,11 @@ const SandboxApiFp = function (configuration) {
|
|
|
1245
1082
|
},
|
|
1246
1083
|
/**
|
|
1247
1084
|
*
|
|
1248
|
-
* @summary Expire signed preview URL for a sandbox port
|
|
1249
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1250
|
-
* @param {number} port Port number to expire signed preview URL for
|
|
1251
|
-
* @param {string} token Token to expire signed preview URL for
|
|
1252
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1253
|
-
* @param {*} [options] Override http request option.
|
|
1254
|
-
* @throws {RequiredError}
|
|
1255
|
-
*/
|
|
1256
|
-
async expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
|
|
1257
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options);
|
|
1258
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1259
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.expireSignedPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
|
|
1260
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
|
-
},
|
|
1262
|
-
/**
|
|
1263
|
-
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
1264
1085
|
* @summary Get build logs
|
|
1265
1086
|
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1266
1087
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1267
1088
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
1268
1089
|
* @param {*} [options] Override http request option.
|
|
1269
|
-
* @deprecated
|
|
1270
1090
|
* @throws {RequiredError}
|
|
1271
1091
|
*/
|
|
1272
1092
|
async getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
|
|
@@ -1275,20 +1095,6 @@ const SandboxApiFp = function (configuration) {
|
|
|
1275
1095
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
|
|
1276
1096
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1277
1097
|
},
|
|
1278
|
-
/**
|
|
1279
|
-
*
|
|
1280
|
-
* @summary Get build logs URL
|
|
1281
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1282
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1283
|
-
* @param {*} [options] Override http request option.
|
|
1284
|
-
* @throws {RequiredError}
|
|
1285
|
-
*/
|
|
1286
|
-
async getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
1287
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options);
|
|
1288
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1289
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogsUrl']?.[localVarOperationServerIndex]?.url;
|
|
1290
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1291
|
-
},
|
|
1292
1098
|
/**
|
|
1293
1099
|
*
|
|
1294
1100
|
* @summary Get preview URL for a sandbox port
|
|
@@ -1334,36 +1140,6 @@ const SandboxApiFp = function (configuration) {
|
|
|
1334
1140
|
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxesForRunner']?.[localVarOperationServerIndex]?.url;
|
|
1335
1141
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1336
1142
|
},
|
|
1337
|
-
/**
|
|
1338
|
-
*
|
|
1339
|
-
* @summary Get signed preview URL for a sandbox port
|
|
1340
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1341
|
-
* @param {number} port Port number to get signed preview URL for
|
|
1342
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1343
|
-
* @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
|
|
1344
|
-
* @param {*} [options] Override http request option.
|
|
1345
|
-
* @throws {RequiredError}
|
|
1346
|
-
*/
|
|
1347
|
-
async getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
|
|
1348
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options);
|
|
1349
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1350
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSignedPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
|
|
1351
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1352
|
-
},
|
|
1353
|
-
/**
|
|
1354
|
-
*
|
|
1355
|
-
* @summary Get toolbox proxy URL for a sandbox
|
|
1356
|
-
* @param {string} sandboxId ID of the sandbox
|
|
1357
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1358
|
-
* @param {*} [options] Override http request option.
|
|
1359
|
-
* @throws {RequiredError}
|
|
1360
|
-
*/
|
|
1361
|
-
async getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
|
|
1362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options);
|
|
1363
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1364
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getToolboxProxyUrl']?.[localVarOperationServerIndex]?.url;
|
|
1365
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1366
|
-
},
|
|
1367
1143
|
/**
|
|
1368
1144
|
*
|
|
1369
1145
|
* @summary List all sandboxes
|
|
@@ -1665,27 +1441,11 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1665
1441
|
},
|
|
1666
1442
|
/**
|
|
1667
1443
|
*
|
|
1668
|
-
* @summary Expire signed preview URL for a sandbox port
|
|
1669
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1670
|
-
* @param {number} port Port number to expire signed preview URL for
|
|
1671
|
-
* @param {string} token Token to expire signed preview URL for
|
|
1672
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1673
|
-
* @param {*} [options] Override http request option.
|
|
1674
|
-
* @throws {RequiredError}
|
|
1675
|
-
*/
|
|
1676
|
-
expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
|
|
1677
|
-
return localVarFp
|
|
1678
|
-
.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options)
|
|
1679
|
-
.then((request) => request(axios, basePath));
|
|
1680
|
-
},
|
|
1681
|
-
/**
|
|
1682
|
-
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
1683
1444
|
* @summary Get build logs
|
|
1684
1445
|
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1685
1446
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1686
1447
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
1687
1448
|
* @param {*} [options] Override http request option.
|
|
1688
|
-
* @deprecated
|
|
1689
1449
|
* @throws {RequiredError}
|
|
1690
1450
|
*/
|
|
1691
1451
|
getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
|
|
@@ -1693,19 +1453,6 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1693
1453
|
.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
|
|
1694
1454
|
.then((request) => request(axios, basePath));
|
|
1695
1455
|
},
|
|
1696
|
-
/**
|
|
1697
|
-
*
|
|
1698
|
-
* @summary Get build logs URL
|
|
1699
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1700
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1701
|
-
* @param {*} [options] Override http request option.
|
|
1702
|
-
* @throws {RequiredError}
|
|
1703
|
-
*/
|
|
1704
|
-
getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
1705
|
-
return localVarFp
|
|
1706
|
-
.getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options)
|
|
1707
|
-
.then((request) => request(axios, basePath));
|
|
1708
|
-
},
|
|
1709
1456
|
/**
|
|
1710
1457
|
*
|
|
1711
1458
|
* @summary Get preview URL for a sandbox port
|
|
@@ -1748,34 +1495,6 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1748
1495
|
.getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
|
|
1749
1496
|
.then((request) => request(axios, basePath));
|
|
1750
1497
|
},
|
|
1751
|
-
/**
|
|
1752
|
-
*
|
|
1753
|
-
* @summary Get signed preview URL for a sandbox port
|
|
1754
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
1755
|
-
* @param {number} port Port number to get signed preview URL for
|
|
1756
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1757
|
-
* @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
|
|
1758
|
-
* @param {*} [options] Override http request option.
|
|
1759
|
-
* @throws {RequiredError}
|
|
1760
|
-
*/
|
|
1761
|
-
getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
|
|
1762
|
-
return localVarFp
|
|
1763
|
-
.getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options)
|
|
1764
|
-
.then((request) => request(axios, basePath));
|
|
1765
|
-
},
|
|
1766
|
-
/**
|
|
1767
|
-
*
|
|
1768
|
-
* @summary Get toolbox proxy URL for a sandbox
|
|
1769
|
-
* @param {string} sandboxId ID of the sandbox
|
|
1770
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1771
|
-
* @param {*} [options] Override http request option.
|
|
1772
|
-
* @throws {RequiredError}
|
|
1773
|
-
*/
|
|
1774
|
-
getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
|
|
1775
|
-
return localVarFp
|
|
1776
|
-
.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options)
|
|
1777
|
-
.then((request) => request(axios, basePath));
|
|
1778
|
-
},
|
|
1779
1498
|
/**
|
|
1780
1499
|
*
|
|
1781
1500
|
* @summary List all sandboxes
|
|
@@ -2068,28 +1787,11 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2068
1787
|
}
|
|
2069
1788
|
/**
|
|
2070
1789
|
*
|
|
2071
|
-
* @summary Expire signed preview URL for a sandbox port
|
|
2072
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
2073
|
-
* @param {number} port Port number to expire signed preview URL for
|
|
2074
|
-
* @param {string} token Token to expire signed preview URL for
|
|
2075
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2076
|
-
* @param {*} [options] Override http request option.
|
|
2077
|
-
* @throws {RequiredError}
|
|
2078
|
-
* @memberof SandboxApi
|
|
2079
|
-
*/
|
|
2080
|
-
expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
|
|
2081
|
-
return (0, exports.SandboxApiFp)(this.configuration)
|
|
2082
|
-
.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options)
|
|
2083
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2084
|
-
}
|
|
2085
|
-
/**
|
|
2086
|
-
* This endpoint is deprecated. Use `getBuildLogsUrl` instead.
|
|
2087
1790
|
* @summary Get build logs
|
|
2088
1791
|
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
2089
1792
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2090
1793
|
* @param {boolean} [follow] Whether to follow the logs stream
|
|
2091
1794
|
* @param {*} [options] Override http request option.
|
|
2092
|
-
* @deprecated
|
|
2093
1795
|
* @throws {RequiredError}
|
|
2094
1796
|
* @memberof SandboxApi
|
|
2095
1797
|
*/
|
|
@@ -2098,20 +1800,6 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2098
1800
|
.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
|
|
2099
1801
|
.then((request) => request(this.axios, this.basePath));
|
|
2100
1802
|
}
|
|
2101
|
-
/**
|
|
2102
|
-
*
|
|
2103
|
-
* @summary Get build logs URL
|
|
2104
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
2105
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2106
|
-
* @param {*} [options] Override http request option.
|
|
2107
|
-
* @throws {RequiredError}
|
|
2108
|
-
* @memberof SandboxApi
|
|
2109
|
-
*/
|
|
2110
|
-
getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
|
|
2111
|
-
return (0, exports.SandboxApiFp)(this.configuration)
|
|
2112
|
-
.getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options)
|
|
2113
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2114
|
-
}
|
|
2115
1803
|
/**
|
|
2116
1804
|
*
|
|
2117
1805
|
* @summary Get preview URL for a sandbox port
|
|
@@ -2157,36 +1845,6 @@ class SandboxApi extends base_1.BaseAPI {
|
|
|
2157
1845
|
.getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
|
|
2158
1846
|
.then((request) => request(this.axios, this.basePath));
|
|
2159
1847
|
}
|
|
2160
|
-
/**
|
|
2161
|
-
*
|
|
2162
|
-
* @summary Get signed preview URL for a sandbox port
|
|
2163
|
-
* @param {string} sandboxIdOrName ID or name of the sandbox
|
|
2164
|
-
* @param {number} port Port number to get signed preview URL for
|
|
2165
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2166
|
-
* @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
|
|
2167
|
-
* @param {*} [options] Override http request option.
|
|
2168
|
-
* @throws {RequiredError}
|
|
2169
|
-
* @memberof SandboxApi
|
|
2170
|
-
*/
|
|
2171
|
-
getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
|
|
2172
|
-
return (0, exports.SandboxApiFp)(this.configuration)
|
|
2173
|
-
.getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options)
|
|
2174
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2175
|
-
}
|
|
2176
|
-
/**
|
|
2177
|
-
*
|
|
2178
|
-
* @summary Get toolbox proxy URL for a sandbox
|
|
2179
|
-
* @param {string} sandboxId ID of the sandbox
|
|
2180
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2181
|
-
* @param {*} [options] Override http request option.
|
|
2182
|
-
* @throws {RequiredError}
|
|
2183
|
-
* @memberof SandboxApi
|
|
2184
|
-
*/
|
|
2185
|
-
getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
|
|
2186
|
-
return (0, exports.SandboxApiFp)(this.configuration)
|
|
2187
|
-
.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options)
|
|
2188
|
-
.then((request) => request(this.axios, this.basePath));
|
|
2189
|
-
}
|
|
2190
1848
|
/**
|
|
2191
1849
|
*
|
|
2192
1850
|
* @summary List all sandboxes
|