@daytonaio/api-client 0.105.1 → 0.106.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/api/api-keys-api.d.ts +6 -6
  3. package/src/api/audit-api.d.ts +25 -25
  4. package/src/api/audit-api.js +36 -36
  5. package/src/api/audit-api.js.map +1 -1
  6. package/src/api/config-api.d.ts +1 -1
  7. package/src/api/default-api.d.ts +7 -7
  8. package/src/api/docker-registry-api.d.ts +7 -7
  9. package/src/api/health-api.d.ts +1 -1
  10. package/src/api/object-storage-api.d.ts +1 -1
  11. package/src/api/organizations-api.d.ts +26 -26
  12. package/src/api/preview-api.d.ts +3 -3
  13. package/src/api/runners-api.d.ts +5 -5
  14. package/src/api/sandbox-api.d.ts +204 -27
  15. package/src/api/sandbox-api.js +314 -17
  16. package/src/api/sandbox-api.js.map +1 -1
  17. package/src/api/snapshots-api.d.ts +51 -21
  18. package/src/api/snapshots-api.js +55 -18
  19. package/src/api/snapshots-api.js.map +1 -1
  20. package/src/api/toolbox-api.d.ts +63 -63
  21. package/src/api/users-api.d.ts +9 -9
  22. package/src/api/volumes-api.d.ts +5 -5
  23. package/src/api/webhooks-api.d.ts +6 -6
  24. package/src/api/workspace-api.d.ts +14 -14
  25. package/src/models/index.d.ts +3 -1
  26. package/src/models/index.js +3 -1
  27. package/src/models/index.js.map +1 -1
  28. package/src/models/paginated-sandboxes.d.ts +43 -0
  29. package/src/models/paginated-sandboxes.js +16 -0
  30. package/src/models/paginated-sandboxes.js.map +1 -0
  31. package/src/models/paginated-snapshots.d.ts +43 -0
  32. package/src/models/paginated-snapshots.js +16 -0
  33. package/src/models/paginated-snapshots.js.map +1 -0
  34. package/src/models/region.d.ts +24 -0
  35. package/src/models/region.js +4 -0
  36. package/src/models/region.js.map +1 -0
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SandboxApi = exports.SandboxApiFactory = exports.SandboxApiFp = exports.SandboxApiAxiosParamCreator = void 0;
16
+ exports.ListSandboxesPaginatedOrderEnum = exports.ListSandboxesPaginatedSortEnum = exports.ListSandboxesPaginatedStatesEnum = exports.SandboxApi = exports.SandboxApiFactory = exports.SandboxApiFp = exports.SandboxApiAxiosParamCreator = void 0;
17
17
  const axios_1 = require("axios");
18
18
  // Some imports not used depending on template conditions
19
19
  // @ts-ignore
@@ -180,16 +180,13 @@ const SandboxApiAxiosParamCreator = function (configuration) {
180
180
  *
181
181
  * @summary Delete sandbox
182
182
  * @param {string} sandboxId ID of the sandbox
183
- * @param {boolean} force
184
183
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
185
184
  * @param {*} [options] Override http request option.
186
185
  * @throws {RequiredError}
187
186
  */
188
- deleteSandbox: async (sandboxId, force, xDaytonaOrganizationID, options = {}) => {
187
+ deleteSandbox: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
189
188
  // verify required parameter 'sandboxId' is not null or undefined
190
189
  (0, common_1.assertParamExists)('deleteSandbox', 'sandboxId', sandboxId);
191
- // verify required parameter 'force' is not null or undefined
192
- (0, common_1.assertParamExists)('deleteSandbox', 'force', force);
193
190
  const localVarPath = `/sandbox/{sandboxId}`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
194
191
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
195
192
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -204,9 +201,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
204
201
  // http bearer authentication required
205
202
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
206
203
  // authentication oauth2 required
207
- if (force !== undefined) {
208
- localVarQueryParameter['force'] = force;
209
- }
210
204
  if (xDaytonaOrganizationID != null) {
211
205
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
212
206
  }
@@ -339,6 +333,39 @@ const SandboxApiAxiosParamCreator = function (configuration) {
339
333
  options: localVarRequestOptions,
340
334
  };
341
335
  },
336
+ /**
337
+ *
338
+ * @summary List all regions where sandboxes have been created
339
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ getSandboxRegions: async (xDaytonaOrganizationID, options = {}) => {
344
+ const localVarPath = `/sandbox/regions`;
345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
346
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
347
+ let baseOptions;
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ }
351
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
352
+ const localVarHeaderParameter = {};
353
+ const localVarQueryParameter = {};
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
357
+ // authentication oauth2 required
358
+ if (xDaytonaOrganizationID != null) {
359
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
360
+ }
361
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
364
+ return {
365
+ url: (0, common_1.toPathString)(localVarUrlObj),
366
+ options: localVarRequestOptions,
367
+ };
368
+ },
342
369
  /**
343
370
  *
344
371
  * @summary Get sandboxes for the authenticated runner
@@ -425,6 +452,113 @@ const SandboxApiAxiosParamCreator = function (configuration) {
425
452
  options: localVarRequestOptions,
426
453
  };
427
454
  },
455
+ /**
456
+ *
457
+ * @summary List all sandboxes paginated
458
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
459
+ * @param {number} [page] Page number of the results
460
+ * @param {number} [limit] Number of results per page
461
+ * @param {string} [id] Filter by partial ID match
462
+ * @param {string} [labels] JSON encoded labels to filter by
463
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
464
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
465
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
466
+ * @param {Array<string>} [regions] List of regions to filter by
467
+ * @param {number} [minCpu] Minimum CPU
468
+ * @param {number} [maxCpu] Maximum CPU
469
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
470
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
471
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
472
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
473
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
474
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
475
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
476
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ listSandboxesPaginated: async (xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
481
+ const localVarPath = `/sandbox/paginated`;
482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
484
+ let baseOptions;
485
+ if (configuration) {
486
+ baseOptions = configuration.baseOptions;
487
+ }
488
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
489
+ const localVarHeaderParameter = {};
490
+ const localVarQueryParameter = {};
491
+ // authentication bearer required
492
+ // http bearer authentication required
493
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
494
+ // authentication oauth2 required
495
+ if (page !== undefined) {
496
+ localVarQueryParameter['page'] = page;
497
+ }
498
+ if (limit !== undefined) {
499
+ localVarQueryParameter['limit'] = limit;
500
+ }
501
+ if (id !== undefined) {
502
+ localVarQueryParameter['id'] = id;
503
+ }
504
+ if (labels !== undefined) {
505
+ localVarQueryParameter['labels'] = labels;
506
+ }
507
+ if (includeErroredDeleted !== undefined) {
508
+ localVarQueryParameter['includeErroredDeleted'] = includeErroredDeleted;
509
+ }
510
+ if (states) {
511
+ localVarQueryParameter['states'] = states;
512
+ }
513
+ if (snapshots) {
514
+ localVarQueryParameter['snapshots'] = snapshots;
515
+ }
516
+ if (regions) {
517
+ localVarQueryParameter['regions'] = regions;
518
+ }
519
+ if (minCpu !== undefined) {
520
+ localVarQueryParameter['minCpu'] = minCpu;
521
+ }
522
+ if (maxCpu !== undefined) {
523
+ localVarQueryParameter['maxCpu'] = maxCpu;
524
+ }
525
+ if (minMemoryGiB !== undefined) {
526
+ localVarQueryParameter['minMemoryGiB'] = minMemoryGiB;
527
+ }
528
+ if (maxMemoryGiB !== undefined) {
529
+ localVarQueryParameter['maxMemoryGiB'] = maxMemoryGiB;
530
+ }
531
+ if (minDiskGiB !== undefined) {
532
+ localVarQueryParameter['minDiskGiB'] = minDiskGiB;
533
+ }
534
+ if (maxDiskGiB !== undefined) {
535
+ localVarQueryParameter['maxDiskGiB'] = maxDiskGiB;
536
+ }
537
+ if (lastEventAfter !== undefined) {
538
+ localVarQueryParameter['lastEventAfter'] =
539
+ lastEventAfter instanceof Date ? lastEventAfter.toISOString() : lastEventAfter;
540
+ }
541
+ if (lastEventBefore !== undefined) {
542
+ localVarQueryParameter['lastEventBefore'] =
543
+ lastEventBefore instanceof Date ? lastEventBefore.toISOString() : lastEventBefore;
544
+ }
545
+ if (sort !== undefined) {
546
+ localVarQueryParameter['sort'] = sort;
547
+ }
548
+ if (order !== undefined) {
549
+ localVarQueryParameter['order'] = order;
550
+ }
551
+ if (xDaytonaOrganizationID != null) {
552
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
553
+ }
554
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
557
+ return {
558
+ url: (0, common_1.toPathString)(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ };
561
+ },
428
562
  /**
429
563
  *
430
564
  * @summary Replace sandbox labels
@@ -893,13 +1027,12 @@ const SandboxApiFp = function (configuration) {
893
1027
  *
894
1028
  * @summary Delete sandbox
895
1029
  * @param {string} sandboxId ID of the sandbox
896
- * @param {boolean} force
897
1030
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
898
1031
  * @param {*} [options] Override http request option.
899
1032
  * @throws {RequiredError}
900
1033
  */
901
- async deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
902
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options);
1034
+ async deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1035
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxId, xDaytonaOrganizationID, options);
903
1036
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
904
1037
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.deleteSandbox']?.[localVarOperationServerIndex]?.url;
905
1038
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -949,6 +1082,19 @@ const SandboxApiFp = function (configuration) {
949
1082
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
950
1083
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
951
1084
  },
1085
+ /**
1086
+ *
1087
+ * @summary List all regions where sandboxes have been created
1088
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ async getSandboxRegions(xDaytonaOrganizationID, options) {
1093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxRegions(xDaytonaOrganizationID, options);
1094
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1095
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxRegions']?.[localVarOperationServerIndex]?.url;
1096
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1097
+ },
952
1098
  /**
953
1099
  *
954
1100
  * @summary Get sandboxes for the authenticated runner
@@ -980,6 +1126,37 @@ const SandboxApiFp = function (configuration) {
980
1126
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxes']?.[localVarOperationServerIndex]?.url;
981
1127
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
982
1128
  },
1129
+ /**
1130
+ *
1131
+ * @summary List all sandboxes paginated
1132
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1133
+ * @param {number} [page] Page number of the results
1134
+ * @param {number} [limit] Number of results per page
1135
+ * @param {string} [id] Filter by partial ID match
1136
+ * @param {string} [labels] JSON encoded labels to filter by
1137
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1138
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
1139
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
1140
+ * @param {Array<string>} [regions] List of regions to filter by
1141
+ * @param {number} [minCpu] Minimum CPU
1142
+ * @param {number} [maxCpu] Maximum CPU
1143
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
1144
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
1145
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
1146
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
1147
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1148
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1149
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
1150
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
1151
+ * @param {*} [options] Override http request option.
1152
+ * @throws {RequiredError}
1153
+ */
1154
+ async listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
1156
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1157
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginated']?.[localVarOperationServerIndex]?.url;
1158
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1159
+ },
983
1160
  /**
984
1161
  *
985
1162
  * @summary Replace sandbox labels
@@ -1194,14 +1371,13 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1194
1371
  *
1195
1372
  * @summary Delete sandbox
1196
1373
  * @param {string} sandboxId ID of the sandbox
1197
- * @param {boolean} force
1198
1374
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1199
1375
  * @param {*} [options] Override http request option.
1200
1376
  * @throws {RequiredError}
1201
1377
  */
1202
- deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
1378
+ deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1203
1379
  return localVarFp
1204
- .deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options)
1380
+ .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1205
1381
  .then((request) => request(axios, basePath));
1206
1382
  },
1207
1383
  /**
@@ -1246,6 +1422,16 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1246
1422
  .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1247
1423
  .then((request) => request(axios, basePath));
1248
1424
  },
1425
+ /**
1426
+ *
1427
+ * @summary List all regions where sandboxes have been created
1428
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ getSandboxRegions(xDaytonaOrganizationID, options) {
1433
+ return localVarFp.getSandboxRegions(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
1434
+ },
1249
1435
  /**
1250
1436
  *
1251
1437
  * @summary Get sandboxes for the authenticated runner
@@ -1275,6 +1461,36 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1275
1461
  .listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options)
1276
1462
  .then((request) => request(axios, basePath));
1277
1463
  },
1464
+ /**
1465
+ *
1466
+ * @summary List all sandboxes paginated
1467
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1468
+ * @param {number} [page] Page number of the results
1469
+ * @param {number} [limit] Number of results per page
1470
+ * @param {string} [id] Filter by partial ID match
1471
+ * @param {string} [labels] JSON encoded labels to filter by
1472
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1473
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
1474
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
1475
+ * @param {Array<string>} [regions] List of regions to filter by
1476
+ * @param {number} [minCpu] Minimum CPU
1477
+ * @param {number} [maxCpu] Maximum CPU
1478
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
1479
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
1480
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
1481
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
1482
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1483
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1484
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
1485
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1490
+ return localVarFp
1491
+ .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1492
+ .then((request) => request(axios, basePath));
1493
+ },
1278
1494
  /**
1279
1495
  *
1280
1496
  * @summary Replace sandbox labels
@@ -1483,15 +1699,14 @@ class SandboxApi extends base_1.BaseAPI {
1483
1699
  *
1484
1700
  * @summary Delete sandbox
1485
1701
  * @param {string} sandboxId ID of the sandbox
1486
- * @param {boolean} force
1487
1702
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1488
1703
  * @param {*} [options] Override http request option.
1489
1704
  * @throws {RequiredError}
1490
1705
  * @memberof SandboxApi
1491
1706
  */
1492
- deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options) {
1707
+ deleteSandbox(sandboxId, xDaytonaOrganizationID, options) {
1493
1708
  return (0, exports.SandboxApiFp)(this.configuration)
1494
- .deleteSandbox(sandboxId, force, xDaytonaOrganizationID, options)
1709
+ .deleteSandbox(sandboxId, xDaytonaOrganizationID, options)
1495
1710
  .then((request) => request(this.axios, this.basePath));
1496
1711
  }
1497
1712
  /**
@@ -1539,6 +1754,19 @@ class SandboxApi extends base_1.BaseAPI {
1539
1754
  .getSandbox(sandboxId, xDaytonaOrganizationID, verbose, options)
1540
1755
  .then((request) => request(this.axios, this.basePath));
1541
1756
  }
1757
+ /**
1758
+ *
1759
+ * @summary List all regions where sandboxes have been created
1760
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1761
+ * @param {*} [options] Override http request option.
1762
+ * @throws {RequiredError}
1763
+ * @memberof SandboxApi
1764
+ */
1765
+ getSandboxRegions(xDaytonaOrganizationID, options) {
1766
+ return (0, exports.SandboxApiFp)(this.configuration)
1767
+ .getSandboxRegions(xDaytonaOrganizationID, options)
1768
+ .then((request) => request(this.axios, this.basePath));
1769
+ }
1542
1770
  /**
1543
1771
  *
1544
1772
  * @summary Get sandboxes for the authenticated runner
@@ -1570,6 +1798,37 @@ class SandboxApi extends base_1.BaseAPI {
1570
1798
  .listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options)
1571
1799
  .then((request) => request(this.axios, this.basePath));
1572
1800
  }
1801
+ /**
1802
+ *
1803
+ * @summary List all sandboxes paginated
1804
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1805
+ * @param {number} [page] Page number of the results
1806
+ * @param {number} [limit] Number of results per page
1807
+ * @param {string} [id] Filter by partial ID match
1808
+ * @param {string} [labels] JSON encoded labels to filter by
1809
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1810
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
1811
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
1812
+ * @param {Array<string>} [regions] List of regions to filter by
1813
+ * @param {number} [minCpu] Minimum CPU
1814
+ * @param {number} [maxCpu] Maximum CPU
1815
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
1816
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
1817
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
1818
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
1819
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1820
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1821
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
1822
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ * @memberof SandboxApi
1826
+ */
1827
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1828
+ return (0, exports.SandboxApiFp)(this.configuration)
1829
+ .listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options)
1830
+ .then((request) => request(this.axios, this.basePath));
1831
+ }
1573
1832
  /**
1574
1833
  *
1575
1834
  * @summary Replace sandbox labels
@@ -1719,4 +1978,42 @@ class SandboxApi extends base_1.BaseAPI {
1719
1978
  }
1720
1979
  }
1721
1980
  exports.SandboxApi = SandboxApi;
1981
+ /**
1982
+ * @export
1983
+ */
1984
+ exports.ListSandboxesPaginatedStatesEnum = {
1985
+ CREATING: 'creating',
1986
+ RESTORING: 'restoring',
1987
+ DESTROYING: 'destroying',
1988
+ STARTED: 'started',
1989
+ STOPPED: 'stopped',
1990
+ STARTING: 'starting',
1991
+ STOPPING: 'stopping',
1992
+ ERROR: 'error',
1993
+ BUILD_FAILED: 'build_failed',
1994
+ PENDING_BUILD: 'pending_build',
1995
+ BUILDING_SNAPSHOT: 'building_snapshot',
1996
+ UNKNOWN: 'unknown',
1997
+ PULLING_SNAPSHOT: 'pulling_snapshot',
1998
+ ARCHIVED: 'archived',
1999
+ ARCHIVING: 'archiving',
2000
+ };
2001
+ /**
2002
+ * @export
2003
+ */
2004
+ exports.ListSandboxesPaginatedSortEnum = {
2005
+ ID: 'id',
2006
+ STATE: 'state',
2007
+ SNAPSHOT: 'snapshot',
2008
+ REGION: 'region',
2009
+ UPDATED_AT: 'updatedAt',
2010
+ CREATED_AT: 'createdAt',
2011
+ };
2012
+ /**
2013
+ * @export
2014
+ */
2015
+ exports.ListSandboxesPaginatedOrderEnum = {
2016
+ ASC: 'asc',
2017
+ DESC: 'desc',
2018
+ };
1722
2019
  //# sourceMappingURL=sandbox-api.js.map