@daytonaio/api-client 0.178.0 → 0.180.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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/api/sandbox-api.d.ts +135 -47
  3. package/src/api/sandbox-api.js +205 -53
  4. package/src/api/sandbox-api.js.map +1 -1
  5. package/src/api/webhooks-api.d.ts +36 -0
  6. package/src/api/webhooks-api.js +74 -0
  7. package/src/api/webhooks-api.js.map +1 -1
  8. package/src/api.d.ts +0 -1
  9. package/src/api.js +0 -1
  10. package/src/api.js.map +1 -1
  11. package/src/models/index.d.ts +5 -5
  12. package/src/models/index.js +5 -5
  13. package/src/models/index.js.map +1 -1
  14. package/src/models/{workspace-port-preview-url.d.ts → list-sandboxes-response.d.ts} +6 -5
  15. package/src/models/{paginated-sandboxes.js → list-sandboxes-response.js} +1 -1
  16. package/src/models/list-sandboxes-response.js.map +1 -0
  17. package/src/models/{paginated-sandboxes.d.ts → paginated-sandboxes-deprecated.d.ts} +1 -1
  18. package/src/models/{workspace-port-preview-url.js → paginated-sandboxes-deprecated.js} +1 -1
  19. package/src/models/paginated-sandboxes-deprecated.js.map +1 -0
  20. package/src/models/region-quota.d.ts +4 -0
  21. package/src/models/region-usage-overview.d.ts +5 -0
  22. package/src/models/{workspace.d.ts → sandbox-list-item.d.ts} +35 -89
  23. package/src/models/{create-workspace.js → sandbox-list-item.js} +9 -7
  24. package/src/models/sandbox-list-item.js.map +1 -0
  25. package/src/models/sandbox-list-sort-direction.d.ts +17 -0
  26. package/src/models/{sandbox-info.js → sandbox-list-sort-direction.js} +7 -1
  27. package/src/models/sandbox-list-sort-direction.js.map +1 -0
  28. package/src/models/sandbox-list-sort-field.d.ts +21 -0
  29. package/src/models/sandbox-list-sort-field.js +26 -0
  30. package/src/models/sandbox-list-sort-field.js.map +1 -0
  31. package/src/models/sandbox-state.d.ts +0 -3
  32. package/src/models/sandbox-state.js +0 -3
  33. package/src/models/sandbox-state.js.map +1 -1
  34. package/src/models/update-organization-region-quota.d.ts +4 -0
  35. package/src/api/workspace-api.d.ts +0 -634
  36. package/src/api/workspace-api.js +0 -1206
  37. package/src/api/workspace-api.js.map +0 -1
  38. package/src/models/create-workspace.d.ts +0 -93
  39. package/src/models/create-workspace.js.map +0 -1
  40. package/src/models/paginated-sandboxes.js.map +0 -1
  41. package/src/models/sandbox-info.d.ts +0 -26
  42. package/src/models/sandbox-info.js.map +0 -1
  43. package/src/models/workspace-port-preview-url.js.map +0 -1
  44. package/src/models/workspace.js +0 -39
  45. package/src/models/workspace.js.map +0 -1
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ListSandboxesPaginatedOrderEnum = exports.ListSandboxesPaginatedSortEnum = exports.ListSandboxesPaginatedStatesEnum = exports.SandboxApi = exports.SandboxApiFactory = exports.SandboxApiFp = exports.SandboxApiAxiosParamCreator = void 0;
16
+ exports.ListSandboxesPaginatedDeprecatedOrderEnum = exports.ListSandboxesPaginatedDeprecatedSortEnum = exports.ListSandboxesPaginatedDeprecatedStatesEnum = 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
@@ -1068,16 +1068,36 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1068
1068
  };
1069
1069
  },
1070
1070
  /**
1071
- *
1072
- * @summary List all sandboxes
1071
+ * Advanced filtering and ordering. Eventually consistent.
1072
+ * @summary List sandboxes
1073
1073
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1074
- * @param {boolean} [verbose] Include verbose output
1074
+ * @param {string} [cursor] Pagination cursor from a previous response
1075
+ * @param {number} [limit] Number of results per page
1076
+ * @param {string} [id] Filter by ID prefix (case-insensitive)
1077
+ * @param {string} [name] Filter by name prefix (case-insensitive)
1075
1078
  * @param {string} [labels] JSON encoded labels to filter by
1076
- * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
1079
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1080
+ * @param {Array<SandboxState>} [states] List of states to filter by.
1081
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
1082
+ * @param {Array<string>} [regionIds] List of regions IDs to filter by
1083
+ * @param {number} [minCpu] Minimum CPU
1084
+ * @param {number} [maxCpu] Maximum CPU
1085
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
1086
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
1087
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
1088
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
1089
+ * @param {boolean} [isPublic] Filter by public status
1090
+ * @param {boolean} [isRecoverable] Filter by recoverable status
1091
+ * @param {Date} [createdAtAfter] Include items created after this timestamp
1092
+ * @param {Date} [createdAtBefore] Include items created before this timestamp
1093
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1094
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1095
+ * @param {SandboxListSortField} [sort] Field to sort by
1096
+ * @param {SandboxListSortDirection} [order] Direction to sort by
1077
1097
  * @param {*} [options] Override http request option.
1078
1098
  * @throws {RequiredError}
1079
1099
  */
1080
- listSandboxes: async (xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options = {}) => {
1100
+ listSandboxes: async (xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
1081
1101
  const localVarPath = `/sandbox`;
1082
1102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1083
1103
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1092,8 +1112,17 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1092
1112
  // http bearer authentication required
1093
1113
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1094
1114
  // authentication oauth2 required
1095
- if (verbose !== undefined) {
1096
- localVarQueryParameter['verbose'] = verbose;
1115
+ if (cursor !== undefined) {
1116
+ localVarQueryParameter['cursor'] = cursor;
1117
+ }
1118
+ if (limit !== undefined) {
1119
+ localVarQueryParameter['limit'] = limit;
1120
+ }
1121
+ if (id !== undefined) {
1122
+ localVarQueryParameter['id'] = id;
1123
+ }
1124
+ if (name !== undefined) {
1125
+ localVarQueryParameter['name'] = name;
1097
1126
  }
1098
1127
  if (labels !== undefined) {
1099
1128
  localVarQueryParameter['labels'] = labels;
@@ -1101,6 +1130,65 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1101
1130
  if (includeErroredDeleted !== undefined) {
1102
1131
  localVarQueryParameter['includeErroredDeleted'] = includeErroredDeleted;
1103
1132
  }
1133
+ if (states) {
1134
+ localVarQueryParameter['states'] = states;
1135
+ }
1136
+ if (snapshots) {
1137
+ localVarQueryParameter['snapshots'] = snapshots;
1138
+ }
1139
+ if (regionIds) {
1140
+ localVarQueryParameter['regionIds'] = regionIds;
1141
+ }
1142
+ if (minCpu !== undefined) {
1143
+ localVarQueryParameter['minCpu'] = minCpu;
1144
+ }
1145
+ if (maxCpu !== undefined) {
1146
+ localVarQueryParameter['maxCpu'] = maxCpu;
1147
+ }
1148
+ if (minMemoryGiB !== undefined) {
1149
+ localVarQueryParameter['minMemoryGiB'] = minMemoryGiB;
1150
+ }
1151
+ if (maxMemoryGiB !== undefined) {
1152
+ localVarQueryParameter['maxMemoryGiB'] = maxMemoryGiB;
1153
+ }
1154
+ if (minDiskGiB !== undefined) {
1155
+ localVarQueryParameter['minDiskGiB'] = minDiskGiB;
1156
+ }
1157
+ if (maxDiskGiB !== undefined) {
1158
+ localVarQueryParameter['maxDiskGiB'] = maxDiskGiB;
1159
+ }
1160
+ if (isPublic !== undefined) {
1161
+ localVarQueryParameter['isPublic'] = isPublic;
1162
+ }
1163
+ if (isRecoverable !== undefined) {
1164
+ localVarQueryParameter['isRecoverable'] = isRecoverable;
1165
+ }
1166
+ if (createdAtAfter !== undefined) {
1167
+ localVarQueryParameter['createdAtAfter'] = (createdAtAfter instanceof Date) ?
1168
+ createdAtAfter.toISOString() :
1169
+ createdAtAfter;
1170
+ }
1171
+ if (createdAtBefore !== undefined) {
1172
+ localVarQueryParameter['createdAtBefore'] = (createdAtBefore instanceof Date) ?
1173
+ createdAtBefore.toISOString() :
1174
+ createdAtBefore;
1175
+ }
1176
+ if (lastEventAfter !== undefined) {
1177
+ localVarQueryParameter['lastEventAfter'] = (lastEventAfter instanceof Date) ?
1178
+ lastEventAfter.toISOString() :
1179
+ lastEventAfter;
1180
+ }
1181
+ if (lastEventBefore !== undefined) {
1182
+ localVarQueryParameter['lastEventBefore'] = (lastEventBefore instanceof Date) ?
1183
+ lastEventBefore.toISOString() :
1184
+ lastEventBefore;
1185
+ }
1186
+ if (sort !== undefined) {
1187
+ localVarQueryParameter['sort'] = sort;
1188
+ }
1189
+ if (order !== undefined) {
1190
+ localVarQueryParameter['order'] = order;
1191
+ }
1104
1192
  localVarHeaderParameter['Accept'] = 'application/json';
1105
1193
  if (xDaytonaOrganizationID != null) {
1106
1194
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
@@ -1115,7 +1203,7 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1115
1203
  },
1116
1204
  /**
1117
1205
  *
1118
- * @summary List all sandboxes paginated
1206
+ * @summary [DEPRECATED] List all sandboxes paginated
1119
1207
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1120
1208
  * @param {number} [page] Page number of the results
1121
1209
  * @param {number} [limit] Number of results per page
@@ -1123,7 +1211,7 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1123
1211
  * @param {string} [name] Filter by partial name match
1124
1212
  * @param {string} [labels] JSON encoded labels to filter by
1125
1213
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1126
- * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
1214
+ * @param {Array<ListSandboxesPaginatedDeprecatedStatesEnum>} [states] List of states to filter by
1127
1215
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
1128
1216
  * @param {Array<string>} [regions] List of regions to filter by
1129
1217
  * @param {number} [minCpu] Minimum CPU
@@ -1134,12 +1222,13 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1134
1222
  * @param {number} [maxDiskGiB] Maximum disk space in GiB
1135
1223
  * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1136
1224
  * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1137
- * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
1138
- * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
1225
+ * @param {ListSandboxesPaginatedDeprecatedSortEnum} [sort] Field to sort by
1226
+ * @param {ListSandboxesPaginatedDeprecatedOrderEnum} [order] Direction to sort by
1139
1227
  * @param {*} [options] Override http request option.
1228
+ * @deprecated
1140
1229
  * @throws {RequiredError}
1141
1230
  */
1142
- listSandboxesPaginated: async (xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
1231
+ listSandboxesPaginatedDeprecated: async (xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
1143
1232
  const localVarPath = `/sandbox/paginated`;
1144
1233
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1145
1234
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -2180,24 +2269,44 @@ const SandboxApiFp = function (configuration) {
2180
2269
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2181
2270
  },
2182
2271
  /**
2183
- *
2184
- * @summary List all sandboxes
2272
+ * Advanced filtering and ordering. Eventually consistent.
2273
+ * @summary List sandboxes
2185
2274
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2186
- * @param {boolean} [verbose] Include verbose output
2275
+ * @param {string} [cursor] Pagination cursor from a previous response
2276
+ * @param {number} [limit] Number of results per page
2277
+ * @param {string} [id] Filter by ID prefix (case-insensitive)
2278
+ * @param {string} [name] Filter by name prefix (case-insensitive)
2187
2279
  * @param {string} [labels] JSON encoded labels to filter by
2188
- * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
2280
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2281
+ * @param {Array<SandboxState>} [states] List of states to filter by.
2282
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
2283
+ * @param {Array<string>} [regionIds] List of regions IDs to filter by
2284
+ * @param {number} [minCpu] Minimum CPU
2285
+ * @param {number} [maxCpu] Maximum CPU
2286
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
2287
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
2288
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
2289
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
2290
+ * @param {boolean} [isPublic] Filter by public status
2291
+ * @param {boolean} [isRecoverable] Filter by recoverable status
2292
+ * @param {Date} [createdAtAfter] Include items created after this timestamp
2293
+ * @param {Date} [createdAtBefore] Include items created before this timestamp
2294
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2295
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2296
+ * @param {SandboxListSortField} [sort] Field to sort by
2297
+ * @param {SandboxListSortDirection} [order] Direction to sort by
2189
2298
  * @param {*} [options] Override http request option.
2190
2299
  * @throws {RequiredError}
2191
2300
  */
2192
- async listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
2193
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options);
2301
+ async listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
2302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options);
2194
2303
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2195
2304
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxes']?.[localVarOperationServerIndex]?.url;
2196
2305
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2197
2306
  },
2198
2307
  /**
2199
2308
  *
2200
- * @summary List all sandboxes paginated
2309
+ * @summary [DEPRECATED] List all sandboxes paginated
2201
2310
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2202
2311
  * @param {number} [page] Page number of the results
2203
2312
  * @param {number} [limit] Number of results per page
@@ -2205,7 +2314,7 @@ const SandboxApiFp = function (configuration) {
2205
2314
  * @param {string} [name] Filter by partial name match
2206
2315
  * @param {string} [labels] JSON encoded labels to filter by
2207
2316
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2208
- * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
2317
+ * @param {Array<ListSandboxesPaginatedDeprecatedStatesEnum>} [states] List of states to filter by
2209
2318
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
2210
2319
  * @param {Array<string>} [regions] List of regions to filter by
2211
2320
  * @param {number} [minCpu] Minimum CPU
@@ -2216,15 +2325,16 @@ const SandboxApiFp = function (configuration) {
2216
2325
  * @param {number} [maxDiskGiB] Maximum disk space in GiB
2217
2326
  * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2218
2327
  * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2219
- * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
2220
- * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
2328
+ * @param {ListSandboxesPaginatedDeprecatedSortEnum} [sort] Field to sort by
2329
+ * @param {ListSandboxesPaginatedDeprecatedOrderEnum} [order] Direction to sort by
2221
2330
  * @param {*} [options] Override http request option.
2331
+ * @deprecated
2222
2332
  * @throws {RequiredError}
2223
2333
  */
2224
- async listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2225
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
2334
+ async listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
2226
2336
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2227
- const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginated']?.[localVarOperationServerIndex]?.url;
2337
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginatedDeprecated']?.[localVarOperationServerIndex]?.url;
2228
2338
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2229
2339
  },
2230
2340
  /**
@@ -2735,21 +2845,41 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
2735
2845
  return localVarFp.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2736
2846
  },
2737
2847
  /**
2738
- *
2739
- * @summary List all sandboxes
2848
+ * Advanced filtering and ordering. Eventually consistent.
2849
+ * @summary List sandboxes
2740
2850
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2741
- * @param {boolean} [verbose] Include verbose output
2851
+ * @param {string} [cursor] Pagination cursor from a previous response
2852
+ * @param {number} [limit] Number of results per page
2853
+ * @param {string} [id] Filter by ID prefix (case-insensitive)
2854
+ * @param {string} [name] Filter by name prefix (case-insensitive)
2742
2855
  * @param {string} [labels] JSON encoded labels to filter by
2743
- * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
2856
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2857
+ * @param {Array<SandboxState>} [states] List of states to filter by.
2858
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
2859
+ * @param {Array<string>} [regionIds] List of regions IDs to filter by
2860
+ * @param {number} [minCpu] Minimum CPU
2861
+ * @param {number} [maxCpu] Maximum CPU
2862
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
2863
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
2864
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
2865
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
2866
+ * @param {boolean} [isPublic] Filter by public status
2867
+ * @param {boolean} [isRecoverable] Filter by recoverable status
2868
+ * @param {Date} [createdAtAfter] Include items created after this timestamp
2869
+ * @param {Date} [createdAtBefore] Include items created before this timestamp
2870
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2871
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2872
+ * @param {SandboxListSortField} [sort] Field to sort by
2873
+ * @param {SandboxListSortDirection} [order] Direction to sort by
2744
2874
  * @param {*} [options] Override http request option.
2745
2875
  * @throws {RequiredError}
2746
2876
  */
2747
- listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
2748
- return localVarFp.listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options).then((request) => request(axios, basePath));
2877
+ listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
2878
+ return localVarFp.listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(axios, basePath));
2749
2879
  },
2750
2880
  /**
2751
2881
  *
2752
- * @summary List all sandboxes paginated
2882
+ * @summary [DEPRECATED] List all sandboxes paginated
2753
2883
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2754
2884
  * @param {number} [page] Page number of the results
2755
2885
  * @param {number} [limit] Number of results per page
@@ -2757,7 +2887,7 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
2757
2887
  * @param {string} [name] Filter by partial name match
2758
2888
  * @param {string} [labels] JSON encoded labels to filter by
2759
2889
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2760
- * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
2890
+ * @param {Array<ListSandboxesPaginatedDeprecatedStatesEnum>} [states] List of states to filter by
2761
2891
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
2762
2892
  * @param {Array<string>} [regions] List of regions to filter by
2763
2893
  * @param {number} [minCpu] Minimum CPU
@@ -2768,13 +2898,14 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
2768
2898
  * @param {number} [maxDiskGiB] Maximum disk space in GiB
2769
2899
  * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2770
2900
  * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2771
- * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
2772
- * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
2901
+ * @param {ListSandboxesPaginatedDeprecatedSortEnum} [sort] Field to sort by
2902
+ * @param {ListSandboxesPaginatedDeprecatedOrderEnum} [order] Direction to sort by
2773
2903
  * @param {*} [options] Override http request option.
2904
+ * @deprecated
2774
2905
  * @throws {RequiredError}
2775
2906
  */
2776
- listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2777
- return localVarFp.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(axios, basePath));
2907
+ listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2908
+ return localVarFp.listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(axios, basePath));
2778
2909
  },
2779
2910
  /**
2780
2911
  *
@@ -3240,21 +3371,41 @@ class SandboxApi extends base_1.BaseAPI {
3240
3371
  return (0, exports.SandboxApiFp)(this.configuration).getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
3241
3372
  }
3242
3373
  /**
3243
- *
3244
- * @summary List all sandboxes
3374
+ * Advanced filtering and ordering. Eventually consistent.
3375
+ * @summary List sandboxes
3245
3376
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3246
- * @param {boolean} [verbose] Include verbose output
3377
+ * @param {string} [cursor] Pagination cursor from a previous response
3378
+ * @param {number} [limit] Number of results per page
3379
+ * @param {string} [id] Filter by ID prefix (case-insensitive)
3380
+ * @param {string} [name] Filter by name prefix (case-insensitive)
3247
3381
  * @param {string} [labels] JSON encoded labels to filter by
3248
- * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
3382
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
3383
+ * @param {Array<SandboxState>} [states] List of states to filter by.
3384
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
3385
+ * @param {Array<string>} [regionIds] List of regions IDs to filter by
3386
+ * @param {number} [minCpu] Minimum CPU
3387
+ * @param {number} [maxCpu] Maximum CPU
3388
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
3389
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
3390
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
3391
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
3392
+ * @param {boolean} [isPublic] Filter by public status
3393
+ * @param {boolean} [isRecoverable] Filter by recoverable status
3394
+ * @param {Date} [createdAtAfter] Include items created after this timestamp
3395
+ * @param {Date} [createdAtBefore] Include items created before this timestamp
3396
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
3397
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
3398
+ * @param {SandboxListSortField} [sort] Field to sort by
3399
+ * @param {SandboxListSortDirection} [order] Direction to sort by
3249
3400
  * @param {*} [options] Override http request option.
3250
3401
  * @throws {RequiredError}
3251
3402
  */
3252
- listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
3253
- return (0, exports.SandboxApiFp)(this.configuration).listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options).then((request) => request(this.axios, this.basePath));
3403
+ listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
3404
+ return (0, exports.SandboxApiFp)(this.configuration).listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(this.axios, this.basePath));
3254
3405
  }
3255
3406
  /**
3256
3407
  *
3257
- * @summary List all sandboxes paginated
3408
+ * @summary [DEPRECATED] List all sandboxes paginated
3258
3409
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3259
3410
  * @param {number} [page] Page number of the results
3260
3411
  * @param {number} [limit] Number of results per page
@@ -3262,7 +3413,7 @@ class SandboxApi extends base_1.BaseAPI {
3262
3413
  * @param {string} [name] Filter by partial name match
3263
3414
  * @param {string} [labels] JSON encoded labels to filter by
3264
3415
  * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
3265
- * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
3416
+ * @param {Array<ListSandboxesPaginatedDeprecatedStatesEnum>} [states] List of states to filter by
3266
3417
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
3267
3418
  * @param {Array<string>} [regions] List of regions to filter by
3268
3419
  * @param {number} [minCpu] Minimum CPU
@@ -3273,13 +3424,14 @@ class SandboxApi extends base_1.BaseAPI {
3273
3424
  * @param {number} [maxDiskGiB] Maximum disk space in GiB
3274
3425
  * @param {Date} [lastEventAfter] Include items with last event after this timestamp
3275
3426
  * @param {Date} [lastEventBefore] Include items with last event before this timestamp
3276
- * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
3277
- * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
3427
+ * @param {ListSandboxesPaginatedDeprecatedSortEnum} [sort] Field to sort by
3428
+ * @param {ListSandboxesPaginatedDeprecatedOrderEnum} [order] Direction to sort by
3278
3429
  * @param {*} [options] Override http request option.
3430
+ * @deprecated
3279
3431
  * @throws {RequiredError}
3280
3432
  */
3281
- listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
3282
- return (0, exports.SandboxApiFp)(this.configuration).listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(this.axios, this.basePath));
3433
+ listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
3434
+ return (0, exports.SandboxApiFp)(this.configuration).listSandboxesPaginatedDeprecated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(this.axios, this.basePath));
3283
3435
  }
3284
3436
  /**
3285
3437
  *
@@ -3448,7 +3600,7 @@ class SandboxApi extends base_1.BaseAPI {
3448
3600
  }
3449
3601
  }
3450
3602
  exports.SandboxApi = SandboxApi;
3451
- exports.ListSandboxesPaginatedStatesEnum = {
3603
+ exports.ListSandboxesPaginatedDeprecatedStatesEnum = {
3452
3604
  CREATING: 'creating',
3453
3605
  RESTORING: 'restoring',
3454
3606
  DESTROYING: 'destroying',
@@ -3469,7 +3621,7 @@ exports.ListSandboxesPaginatedStatesEnum = {
3469
3621
  FORKING: 'forking',
3470
3622
  UNKNOWN_DEFAULT_OPEN_API: '11184809',
3471
3623
  };
3472
- exports.ListSandboxesPaginatedSortEnum = {
3624
+ exports.ListSandboxesPaginatedDeprecatedSortEnum = {
3473
3625
  ID: 'id',
3474
3626
  NAME: 'name',
3475
3627
  STATE: 'state',
@@ -3480,7 +3632,7 @@ exports.ListSandboxesPaginatedSortEnum = {
3480
3632
  LAST_ACTIVITY_AT: 'lastActivityAt',
3481
3633
  UNKNOWN_DEFAULT_OPEN_API: '11184809',
3482
3634
  };
3483
- exports.ListSandboxesPaginatedOrderEnum = {
3635
+ exports.ListSandboxesPaginatedDeprecatedOrderEnum = {
3484
3636
  ASC: 'asc',
3485
3637
  DESC: 'desc',
3486
3638
  UNKNOWN_DEFAULT_OPEN_API: '11184809',