@daytonaio/api-client 0.183.0 → 0.184.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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/api/admin-api.d.ts +0 -164
  3. package/src/api/admin-api.js +0 -324
  4. package/src/api/admin-api.js.map +1 -1
  5. package/src/api/sandbox-api.d.ts +4 -9
  6. package/src/api/sandbox-api.js +7 -14
  7. package/src/api/sandbox-api.js.map +1 -1
  8. package/src/models/create-sandbox.d.ts +11 -4
  9. package/src/models/create-sandbox.js +7 -0
  10. package/src/models/create-sandbox.js.map +1 -1
  11. package/src/models/create-snapshot.d.ts +0 -5
  12. package/src/models/index.d.ts +0 -1
  13. package/src/models/index.js +0 -1
  14. package/src/models/index.js.map +1 -1
  15. package/src/models/region-quota.d.ts +0 -2
  16. package/src/models/region-usage-overview.d.ts +0 -2
  17. package/src/models/runner-full.d.ts +2 -2
  18. package/src/models/runner.d.ts +2 -2
  19. package/src/models/sandbox-class.d.ts +6 -3
  20. package/src/models/sandbox-class.js +6 -3
  21. package/src/models/sandbox-class.js.map +1 -1
  22. package/src/models/sandbox-list-item.d.ts +3 -3
  23. package/src/models/sandbox-list-item.js +3 -3
  24. package/src/models/sandbox-list-item.js.map +1 -1
  25. package/src/models/sandbox.d.ts +7 -10
  26. package/src/models/sandbox.js +5 -5
  27. package/src/models/sandbox.js.map +1 -1
  28. package/src/models/snapshot-dto.d.ts +0 -11
  29. package/src/models/snapshot-dto.js +0 -7
  30. package/src/models/snapshot-dto.js.map +1 -1
  31. package/src/models/update-organization-region-quota.d.ts +0 -2
  32. package/src/models/create-organization-region-quota.d.ts +0 -26
  33. package/src/models/create-organization-region-quota.js +0 -16
  34. package/src/models/create-organization-region-quota.js.map +0 -1
@@ -25,7 +25,6 @@ import type { PortPreviewUrl } from '../models';
25
25
  import type { RegionQuota } from '../models';
26
26
  import type { ResizeSandbox } from '../models';
27
27
  import type { Sandbox } from '../models';
28
- import type { SandboxClass } from '../models';
29
28
  import type { SandboxLabels } from '../models';
30
29
  import type { SandboxListSortDirection } from '../models';
31
30
  import type { SandboxListSortField } from '../models';
@@ -298,7 +297,6 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
298
297
  * @param {Array<SandboxState>} [states] List of states to filter by.
299
298
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
300
299
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
301
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
302
300
  * @param {number} [minCpu] Minimum CPU
303
301
  * @param {number} [maxCpu] Maximum CPU
304
302
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -316,7 +314,7 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
316
314
  * @param {*} [options] Override http request option.
317
315
  * @throws {RequiredError}
318
316
  */
319
- listSandboxes: (xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, sandboxClasses?: Array<SandboxClass>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
317
+ listSandboxes: (xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
320
318
  /**
321
319
  *
322
320
  * @summary [DEPRECATED] List all sandboxes paginated
@@ -743,7 +741,6 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
743
741
  * @param {Array<SandboxState>} [states] List of states to filter by.
744
742
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
745
743
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
746
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
747
744
  * @param {number} [minCpu] Minimum CPU
748
745
  * @param {number} [maxCpu] Maximum CPU
749
746
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -761,7 +758,7 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
761
758
  * @param {*} [options] Override http request option.
762
759
  * @throws {RequiredError}
763
760
  */
764
- listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, sandboxClasses?: Array<SandboxClass>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSandboxesResponse>>;
761
+ listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSandboxesResponse>>;
765
762
  /**
766
763
  *
767
764
  * @summary [DEPRECATED] List all sandboxes paginated
@@ -1188,7 +1185,6 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
1188
1185
  * @param {Array<SandboxState>} [states] List of states to filter by.
1189
1186
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
1190
1187
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
1191
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
1192
1188
  * @param {number} [minCpu] Minimum CPU
1193
1189
  * @param {number} [maxCpu] Maximum CPU
1194
1190
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -1206,7 +1202,7 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
1206
1202
  * @param {*} [options] Override http request option.
1207
1203
  * @throws {RequiredError}
1208
1204
  */
1209
- listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, sandboxClasses?: Array<SandboxClass>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): AxiosPromise<ListSandboxesResponse>;
1205
+ listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): AxiosPromise<ListSandboxesResponse>;
1210
1206
  /**
1211
1207
  *
1212
1208
  * @summary [DEPRECATED] List all sandboxes paginated
@@ -1633,7 +1629,6 @@ export declare class SandboxApi extends BaseAPI {
1633
1629
  * @param {Array<SandboxState>} [states] List of states to filter by.
1634
1630
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
1635
1631
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
1636
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
1637
1632
  * @param {number} [minCpu] Minimum CPU
1638
1633
  * @param {number} [maxCpu] Maximum CPU
1639
1634
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -1651,7 +1646,7 @@ export declare class SandboxApi extends BaseAPI {
1651
1646
  * @param {*} [options] Override http request option.
1652
1647
  * @throws {RequiredError}
1653
1648
  */
1654
- listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, sandboxClasses?: Array<SandboxClass>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSandboxesResponse, any, {}>>;
1649
+ listSandboxes(xDaytonaOrganizationID?: string, cursor?: string, limit?: number, id?: string, name?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<SandboxState>, snapshots?: Array<string>, regionIds?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, isPublic?: boolean, isRecoverable?: boolean, createdAtAfter?: Date, createdAtBefore?: Date, lastEventAfter?: Date, lastEventBefore?: Date, sort?: SandboxListSortField, order?: SandboxListSortDirection, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSandboxesResponse, any, {}>>;
1655
1650
  /**
1656
1651
  *
1657
1652
  * @summary [DEPRECATED] List all sandboxes paginated
@@ -1080,7 +1080,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1080
1080
  * @param {Array<SandboxState>} [states] List of states to filter by.
1081
1081
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
1082
1082
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
1083
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
1084
1083
  * @param {number} [minCpu] Minimum CPU
1085
1084
  * @param {number} [maxCpu] Maximum CPU
1086
1085
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -1098,7 +1097,7 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1098
1097
  * @param {*} [options] Override http request option.
1099
1098
  * @throws {RequiredError}
1100
1099
  */
1101
- listSandboxes: async (xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, 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 = {}) => {
1102
1101
  const localVarPath = `/sandbox`;
1103
1102
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1104
1103
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -1140,9 +1139,6 @@ const SandboxApiAxiosParamCreator = function (configuration) {
1140
1139
  if (regionIds) {
1141
1140
  localVarQueryParameter['regionIds'] = regionIds;
1142
1141
  }
1143
- if (sandboxClasses) {
1144
- localVarQueryParameter['sandboxClasses'] = sandboxClasses;
1145
- }
1146
1142
  if (minCpu !== undefined) {
1147
1143
  localVarQueryParameter['minCpu'] = minCpu;
1148
1144
  }
@@ -2285,7 +2281,6 @@ const SandboxApiFp = function (configuration) {
2285
2281
  * @param {Array<SandboxState>} [states] List of states to filter by.
2286
2282
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
2287
2283
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
2288
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
2289
2284
  * @param {number} [minCpu] Minimum CPU
2290
2285
  * @param {number} [maxCpu] Maximum CPU
2291
2286
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -2303,8 +2298,8 @@ const SandboxApiFp = function (configuration) {
2303
2298
  * @param {*} [options] Override http request option.
2304
2299
  * @throws {RequiredError}
2305
2300
  */
2306
- async listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
2307
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, 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);
2308
2303
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2309
2304
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxes']?.[localVarOperationServerIndex]?.url;
2310
2305
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2862,7 +2857,6 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
2862
2857
  * @param {Array<SandboxState>} [states] List of states to filter by.
2863
2858
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
2864
2859
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
2865
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
2866
2860
  * @param {number} [minCpu] Minimum CPU
2867
2861
  * @param {number} [maxCpu] Maximum CPU
2868
2862
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -2880,8 +2874,8 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
2880
2874
  * @param {*} [options] Override http request option.
2881
2875
  * @throws {RequiredError}
2882
2876
  */
2883
- listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
2884
- return localVarFp.listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, 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));
2885
2879
  },
2886
2880
  /**
2887
2881
  *
@@ -3389,7 +3383,6 @@ class SandboxApi extends base_1.BaseAPI {
3389
3383
  * @param {Array<SandboxState>} [states] List of states to filter by.
3390
3384
  * @param {Array<string>} [snapshots] List of snapshot names to filter by
3391
3385
  * @param {Array<string>} [regionIds] List of regions IDs to filter by
3392
- * @param {Array<SandboxClass>} [sandboxClasses] List of sandbox classes to filter by
3393
3386
  * @param {number} [minCpu] Minimum CPU
3394
3387
  * @param {number} [maxCpu] Maximum CPU
3395
3388
  * @param {number} [minMemoryGiB] Minimum memory in GiB
@@ -3407,8 +3400,8 @@ class SandboxApi extends base_1.BaseAPI {
3407
3400
  * @param {*} [options] Override http request option.
3408
3401
  * @throws {RequiredError}
3409
3402
  */
3410
- listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, options) {
3411
- return (0, exports.SandboxApiFp)(this.configuration).listSandboxes(xDaytonaOrganizationID, cursor, limit, id, name, labels, includeErroredDeleted, states, snapshots, regionIds, sandboxClasses, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, isPublic, isRecoverable, createdAtAfter, createdAtBefore, lastEventAfter, lastEventBefore, sort, order, 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));
3412
3405
  }
3413
3406
  /**
3414
3407
  *