@daytonaio/api-client 0.130.0 → 0.131.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/package.json +1 -1
  2. package/src/api/admin-api.d.ts +208 -0
  3. package/src/api/admin-api.js +404 -0
  4. package/src/api/admin-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +8 -4
  6. package/src/api/docker-registry-api.js +14 -7
  7. package/src/api/docker-registry-api.js.map +1 -1
  8. package/src/api/jobs-api.d.ts +197 -0
  9. package/src/api/jobs-api.js +371 -0
  10. package/src/api/jobs-api.js.map +1 -0
  11. package/src/api/organizations-api.d.ts +222 -0
  12. package/src/api/organizations-api.js +454 -0
  13. package/src/api/organizations-api.js.map +1 -1
  14. package/src/api/preview-api.d.ts +37 -0
  15. package/src/api/preview-api.js +74 -0
  16. package/src/api/preview-api.js.map +1 -1
  17. package/src/api/regions-api.d.ts +8 -16
  18. package/src/api/regions-api.js +13 -29
  19. package/src/api/regions-api.js.map +1 -1
  20. package/src/api/runners-api.d.ts +177 -22
  21. package/src/api/runners-api.js +338 -25
  22. package/src/api/runners-api.js.map +1 -1
  23. package/src/api/sandbox-api.d.ts +171 -0
  24. package/src/api/sandbox-api.js +342 -0
  25. package/src/api/sandbox-api.js.map +1 -1
  26. package/src/api/snapshots-api.d.ts +46 -4
  27. package/src/api/snapshots-api.js +85 -4
  28. package/src/api/snapshots-api.js.map +1 -1
  29. package/src/api.d.ts +2 -0
  30. package/src/api.js +2 -0
  31. package/src/api.js.map +1 -1
  32. package/src/models/admin-create-runner.d.ts +78 -0
  33. package/src/models/admin-create-runner.js +4 -0
  34. package/src/models/admin-create-runner.js.map +1 -0
  35. package/src/models/api-key-list.d.ts +5 -0
  36. package/src/models/api-key-list.js +5 -0
  37. package/src/models/api-key-list.js.map +1 -1
  38. package/src/models/api-key-response.d.ts +5 -0
  39. package/src/models/api-key-response.js +5 -0
  40. package/src/models/api-key-response.js.map +1 -1
  41. package/src/models/build-info.d.ts +6 -0
  42. package/src/models/create-api-key.d.ts +5 -0
  43. package/src/models/create-api-key.js +5 -0
  44. package/src/models/create-api-key.js.map +1 -1
  45. package/src/models/create-organization-role.d.ts +5 -0
  46. package/src/models/create-organization-role.js +5 -0
  47. package/src/models/create-organization-role.js.map +1 -1
  48. package/src/models/create-region-response.d.ts +48 -0
  49. package/src/models/create-region-response.js +4 -0
  50. package/src/models/create-region-response.js.map +1 -0
  51. package/src/models/create-region.d.ts +42 -0
  52. package/src/models/create-region.js +4 -0
  53. package/src/models/create-region.js.map +1 -0
  54. package/src/models/create-runner-response.d.ts +30 -0
  55. package/src/models/create-runner-response.js +4 -0
  56. package/src/models/create-runner-response.js.map +1 -0
  57. package/src/models/create-runner.d.ts +2 -68
  58. package/src/models/create-runner.js +0 -6
  59. package/src/models/create-runner.js.map +1 -1
  60. package/src/models/create-snapshot.d.ts +6 -0
  61. package/src/models/index.d.ts +18 -0
  62. package/src/models/index.js +18 -0
  63. package/src/models/index.js.map +1 -1
  64. package/src/models/job-status.d.ts +23 -0
  65. package/src/models/job-status.js +27 -0
  66. package/src/models/job-status.js.map +1 -0
  67. package/src/models/job-type.d.ts +30 -0
  68. package/src/models/job-type.js +34 -0
  69. package/src/models/job-type.js.map +1 -0
  70. package/src/models/job.d.ts +88 -0
  71. package/src/models/job.js +22 -0
  72. package/src/models/job.js.map +1 -0
  73. package/src/models/organization-role.d.ts +5 -0
  74. package/src/models/organization-role.js +5 -0
  75. package/src/models/organization-role.js.map +1 -1
  76. package/src/models/paginated-jobs.d.ts +43 -0
  77. package/src/models/paginated-jobs.js +16 -0
  78. package/src/models/paginated-jobs.js.map +1 -0
  79. package/src/models/poll-jobs-response.d.ts +25 -0
  80. package/src/models/poll-jobs-response.js +16 -0
  81. package/src/models/poll-jobs-response.js.map +1 -0
  82. package/src/models/regenerate-api-key-response.d.ts +24 -0
  83. package/src/models/regenerate-api-key-response.js +4 -0
  84. package/src/models/regenerate-api-key-response.js.map +1 -0
  85. package/src/models/region-type.d.ts +22 -0
  86. package/src/models/region-type.js +26 -0
  87. package/src/models/region-type.js.map +1 -0
  88. package/src/models/region.d.ts +19 -0
  89. package/src/models/region.js +12 -0
  90. package/src/models/region.js.map +1 -1
  91. package/src/models/runner-full.d.ts +210 -0
  92. package/src/models/runner-full.js +16 -0
  93. package/src/models/runner-full.js.map +1 -0
  94. package/src/models/runner-health-metrics.d.ts +84 -0
  95. package/src/models/runner-health-metrics.js +4 -0
  96. package/src/models/runner-health-metrics.js.map +1 -0
  97. package/src/models/runner-healthcheck.d.ts +49 -0
  98. package/src/models/runner-healthcheck.js +16 -0
  99. package/src/models/runner-healthcheck.js.map +1 -0
  100. package/src/models/runner-snapshot-dto.d.ts +1 -1
  101. package/src/models/runner.d.ts +27 -12
  102. package/src/models/sandbox.d.ts +6 -0
  103. package/src/models/sandbox.js.map +1 -1
  104. package/src/models/signed-port-preview-url.d.ts +42 -0
  105. package/src/models/signed-port-preview-url.js +4 -0
  106. package/src/models/signed-port-preview-url.js.map +1 -0
  107. package/src/models/snapshot-dto.d.ts +18 -0
  108. package/src/models/ssh-access-dto.d.ts +6 -0
  109. package/src/models/toolbox-proxy-url.d.ts +24 -0
  110. package/src/models/toolbox-proxy-url.js +4 -0
  111. package/src/models/toolbox-proxy-url.js.map +1 -0
  112. package/src/models/update-job-status.d.ts +37 -0
  113. package/src/models/update-job-status.js +16 -0
  114. package/src/models/update-job-status.js.map +1 -0
  115. package/src/models/update-organization-role.d.ts +5 -0
  116. package/src/models/update-organization-role.js +5 -0
  117. package/src/models/update-organization-role.js.map +1 -1
  118. package/src/models/update-sandbox-state-dto.d.ts +6 -0
  119. package/src/models/update-sandbox-state-dto.js.map +1 -1
  120. package/src/models/url.d.ts +24 -0
  121. package/src/models/url.js +4 -0
  122. package/src/models/url.js.map +1 -0
  123. package/src/models/workspace.d.ts +6 -0
  124. package/src/models/workspace.js.map +1 -1
@@ -214,11 +214,57 @@ 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.
217
262
  * @summary Get build logs
218
263
  * @param {string} sandboxIdOrName ID or name of the sandbox
219
264
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
220
265
  * @param {boolean} [follow] Whether to follow the logs stream
221
266
  * @param {*} [options] Override http request option.
267
+ * @deprecated
222
268
  * @throws {RequiredError}
223
269
  */
224
270
  getBuildLogs: async (sandboxIdOrName, xDaytonaOrganizationID, follow, options = {}) => {
@@ -252,6 +298,42 @@ const SandboxApiAxiosParamCreator = function (configuration) {
252
298
  options: localVarRequestOptions,
253
299
  };
254
300
  },
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
+ },
255
337
  /**
256
338
  *
257
339
  * @summary Get preview URL for a sandbox port
@@ -374,6 +456,87 @@ const SandboxApiAxiosParamCreator = function (configuration) {
374
456
  options: localVarRequestOptions,
375
457
  };
376
458
  },
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
+ },
377
540
  /**
378
541
  *
379
542
  * @summary List all sandboxes
@@ -1082,11 +1245,28 @@ const SandboxApiFp = function (configuration) {
1082
1245
  },
1083
1246
  /**
1084
1247
  *
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.
1085
1264
  * @summary Get build logs
1086
1265
  * @param {string} sandboxIdOrName ID or name of the sandbox
1087
1266
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1088
1267
  * @param {boolean} [follow] Whether to follow the logs stream
1089
1268
  * @param {*} [options] Override http request option.
1269
+ * @deprecated
1090
1270
  * @throws {RequiredError}
1091
1271
  */
1092
1272
  async getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
@@ -1095,6 +1275,20 @@ const SandboxApiFp = function (configuration) {
1095
1275
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
1096
1276
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1097
1277
  },
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
+ },
1098
1292
  /**
1099
1293
  *
1100
1294
  * @summary Get preview URL for a sandbox port
@@ -1140,6 +1334,36 @@ const SandboxApiFp = function (configuration) {
1140
1334
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxesForRunner']?.[localVarOperationServerIndex]?.url;
1141
1335
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1142
1336
  },
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
+ },
1143
1367
  /**
1144
1368
  *
1145
1369
  * @summary List all sandboxes
@@ -1441,11 +1665,27 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1441
1665
  },
1442
1666
  /**
1443
1667
  *
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.
1444
1683
  * @summary Get build logs
1445
1684
  * @param {string} sandboxIdOrName ID or name of the sandbox
1446
1685
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1447
1686
  * @param {boolean} [follow] Whether to follow the logs stream
1448
1687
  * @param {*} [options] Override http request option.
1688
+ * @deprecated
1449
1689
  * @throws {RequiredError}
1450
1690
  */
1451
1691
  getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
@@ -1453,6 +1693,19 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1453
1693
  .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1454
1694
  .then((request) => request(axios, basePath));
1455
1695
  },
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
+ },
1456
1709
  /**
1457
1710
  *
1458
1711
  * @summary Get preview URL for a sandbox port
@@ -1495,6 +1748,34 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1495
1748
  .getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
1496
1749
  .then((request) => request(axios, basePath));
1497
1750
  },
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
+ },
1498
1779
  /**
1499
1780
  *
1500
1781
  * @summary List all sandboxes
@@ -1787,11 +2068,28 @@ class SandboxApi extends base_1.BaseAPI {
1787
2068
  }
1788
2069
  /**
1789
2070
  *
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.
1790
2087
  * @summary Get build logs
1791
2088
  * @param {string} sandboxIdOrName ID or name of the sandbox
1792
2089
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1793
2090
  * @param {boolean} [follow] Whether to follow the logs stream
1794
2091
  * @param {*} [options] Override http request option.
2092
+ * @deprecated
1795
2093
  * @throws {RequiredError}
1796
2094
  * @memberof SandboxApi
1797
2095
  */
@@ -1800,6 +2098,20 @@ class SandboxApi extends base_1.BaseAPI {
1800
2098
  .getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options)
1801
2099
  .then((request) => request(this.axios, this.basePath));
1802
2100
  }
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
+ }
1803
2115
  /**
1804
2116
  *
1805
2117
  * @summary Get preview URL for a sandbox port
@@ -1845,6 +2157,36 @@ class SandboxApi extends base_1.BaseAPI {
1845
2157
  .getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options)
1846
2158
  .then((request) => request(this.axios, this.basePath));
1847
2159
  }
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
+ }
1848
2190
  /**
1849
2191
  *
1850
2192
  * @summary List all sandboxes