@daytonaio/api-client 0.181.0 → 0.183.0

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