@daytonaio/api-client 0.108.0-rc1 → 0.108.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,9 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { CreateSandbox } from '../models';
16
+ import type { PaginatedSandboxes } from '../models';
16
17
  import type { PortPreviewUrl } from '../models';
18
+ import type { Region } from '../models';
17
19
  import type { Sandbox } from '../models';
18
20
  import type { SandboxLabels } from '../models';
19
21
  import type { SshAccessDto } from '../models';
@@ -65,12 +67,11 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
65
67
  *
66
68
  * @summary Delete sandbox
67
69
  * @param {string} sandboxId ID of the sandbox
68
- * @param {boolean} force
69
70
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
70
71
  * @param {*} [options] Override http request option.
71
72
  * @throws {RequiredError}
72
73
  */
73
- deleteSandbox: (sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
+ deleteSandbox: (sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
75
  /**
75
76
  *
76
77
  * @summary Get build logs
@@ -101,6 +102,14 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
101
102
  * @throws {RequiredError}
102
103
  */
103
104
  getSandbox: (sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
105
+ /**
106
+ *
107
+ * @summary List all regions where sandboxes have been created
108
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ getSandboxRegions: (xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
104
113
  /**
105
114
  *
106
115
  * @summary Get sandboxes for the authenticated runner
@@ -122,6 +131,32 @@ export declare const SandboxApiAxiosParamCreator: (configuration?: Configuration
122
131
  * @throws {RequiredError}
123
132
  */
124
133
  listSandboxes: (xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
134
+ /**
135
+ *
136
+ * @summary List all sandboxes paginated
137
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
138
+ * @param {number} [page] Page number of the results
139
+ * @param {number} [limit] Number of results per page
140
+ * @param {string} [id] Filter by partial ID match
141
+ * @param {string} [labels] JSON encoded labels to filter by
142
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
143
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
144
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
145
+ * @param {Array<string>} [regions] List of regions to filter by
146
+ * @param {number} [minCpu] Minimum CPU
147
+ * @param {number} [maxCpu] Maximum CPU
148
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
149
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
150
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
151
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
152
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
153
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
154
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
155
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ listSandboxesPaginated: (xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
125
160
  /**
126
161
  *
127
162
  * @summary Replace sandbox labels
@@ -266,12 +301,11 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
266
301
  *
267
302
  * @summary Delete sandbox
268
303
  * @param {string} sandboxId ID of the sandbox
269
- * @param {boolean} force
270
304
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
271
305
  * @param {*} [options] Override http request option.
272
306
  * @throws {RequiredError}
273
307
  */
274
- deleteSandbox(sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
308
+ deleteSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
275
309
  /**
276
310
  *
277
311
  * @summary Get build logs
@@ -302,6 +336,14 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
302
336
  * @throws {RequiredError}
303
337
  */
304
338
  getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Sandbox>>;
339
+ /**
340
+ *
341
+ * @summary List all regions where sandboxes have been created
342
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ getSandboxRegions(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Region>>>;
305
347
  /**
306
348
  *
307
349
  * @summary Get sandboxes for the authenticated runner
@@ -323,6 +365,32 @@ export declare const SandboxApiFp: (configuration?: Configuration) => {
323
365
  * @throws {RequiredError}
324
366
  */
325
367
  listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Sandbox>>>;
368
+ /**
369
+ *
370
+ * @summary List all sandboxes paginated
371
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
372
+ * @param {number} [page] Page number of the results
373
+ * @param {number} [limit] Number of results per page
374
+ * @param {string} [id] Filter by partial ID match
375
+ * @param {string} [labels] JSON encoded labels to filter by
376
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
377
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
378
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
379
+ * @param {Array<string>} [regions] List of regions to filter by
380
+ * @param {number} [minCpu] Minimum CPU
381
+ * @param {number} [maxCpu] Maximum CPU
382
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
383
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
384
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
385
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
386
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
387
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
388
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
389
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedSandboxes>>;
326
394
  /**
327
395
  *
328
396
  * @summary Replace sandbox labels
@@ -467,12 +535,11 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
467
535
  *
468
536
  * @summary Delete sandbox
469
537
  * @param {string} sandboxId ID of the sandbox
470
- * @param {boolean} force
471
538
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
472
539
  * @param {*} [options] Override http request option.
473
540
  * @throws {RequiredError}
474
541
  */
475
- deleteSandbox(sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
542
+ deleteSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
476
543
  /**
477
544
  *
478
545
  * @summary Get build logs
@@ -503,6 +570,14 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
503
570
  * @throws {RequiredError}
504
571
  */
505
572
  getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Sandbox>;
573
+ /**
574
+ *
575
+ * @summary List all regions where sandboxes have been created
576
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ getSandboxRegions(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Region>>;
506
581
  /**
507
582
  *
508
583
  * @summary Get sandboxes for the authenticated runner
@@ -524,6 +599,32 @@ export declare const SandboxApiFactory: (configuration?: Configuration, basePath
524
599
  * @throws {RequiredError}
525
600
  */
526
601
  listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Sandbox>>;
602
+ /**
603
+ *
604
+ * @summary List all sandboxes paginated
605
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
606
+ * @param {number} [page] Page number of the results
607
+ * @param {number} [limit] Number of results per page
608
+ * @param {string} [id] Filter by partial ID match
609
+ * @param {string} [labels] JSON encoded labels to filter by
610
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
611
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
612
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
613
+ * @param {Array<string>} [regions] List of regions to filter by
614
+ * @param {number} [minCpu] Minimum CPU
615
+ * @param {number} [maxCpu] Maximum CPU
616
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
617
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
618
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
619
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
620
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
621
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
622
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
623
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
624
+ * @param {*} [options] Override http request option.
625
+ * @throws {RequiredError}
626
+ */
627
+ listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedSandboxes>;
527
628
  /**
528
629
  *
529
630
  * @summary Replace sandbox labels
@@ -674,13 +775,12 @@ export declare class SandboxApi extends BaseAPI {
674
775
  *
675
776
  * @summary Delete sandbox
676
777
  * @param {string} sandboxId ID of the sandbox
677
- * @param {boolean} force
678
778
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
679
779
  * @param {*} [options] Override http request option.
680
780
  * @throws {RequiredError}
681
781
  * @memberof SandboxApi
682
782
  */
683
- deleteSandbox(sandboxId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
783
+ deleteSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
684
784
  /**
685
785
  *
686
786
  * @summary Get build logs
@@ -714,6 +814,15 @@ export declare class SandboxApi extends BaseAPI {
714
814
  * @memberof SandboxApi
715
815
  */
716
816
  getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
817
+ /**
818
+ *
819
+ * @summary List all regions where sandboxes have been created
820
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ * @memberof SandboxApi
824
+ */
825
+ getSandboxRegions(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Region[], any, {}>>;
717
826
  /**
718
827
  *
719
828
  * @summary Get sandboxes for the authenticated runner
@@ -737,6 +846,33 @@ export declare class SandboxApi extends BaseAPI {
737
846
  * @memberof SandboxApi
738
847
  */
739
848
  listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
849
+ /**
850
+ *
851
+ * @summary List all sandboxes paginated
852
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
853
+ * @param {number} [page] Page number of the results
854
+ * @param {number} [limit] Number of results per page
855
+ * @param {string} [id] Filter by partial ID match
856
+ * @param {string} [labels] JSON encoded labels to filter by
857
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
858
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
859
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
860
+ * @param {Array<string>} [regions] List of regions to filter by
861
+ * @param {number} [minCpu] Minimum CPU
862
+ * @param {number} [maxCpu] Maximum CPU
863
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
864
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
865
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
866
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
867
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
868
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
869
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
870
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ * @memberof SandboxApi
874
+ */
875
+ listSandboxesPaginated(xDaytonaOrganizationID?: string, page?: number, limit?: number, id?: string, labels?: string, includeErroredDeleted?: boolean, states?: Array<ListSandboxesPaginatedStatesEnum>, snapshots?: Array<string>, regions?: Array<string>, minCpu?: number, maxCpu?: number, minMemoryGiB?: number, maxMemoryGiB?: number, minDiskGiB?: number, maxDiskGiB?: number, lastEventAfter?: Date, lastEventBefore?: Date, sort?: ListSandboxesPaginatedSortEnum, order?: ListSandboxesPaginatedOrderEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedSandboxes, any, {}>>;
740
876
  /**
741
877
  *
742
878
  * @summary Replace sandbox labels
@@ -845,3 +981,44 @@ export declare class SandboxApi extends BaseAPI {
845
981
  */
846
982
  validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any, {}>>;
847
983
  }
984
+ /**
985
+ * @export
986
+ */
987
+ export declare const ListSandboxesPaginatedStatesEnum: {
988
+ readonly CREATING: "creating";
989
+ readonly RESTORING: "restoring";
990
+ readonly DESTROYING: "destroying";
991
+ readonly STARTED: "started";
992
+ readonly STOPPED: "stopped";
993
+ readonly STARTING: "starting";
994
+ readonly STOPPING: "stopping";
995
+ readonly ERROR: "error";
996
+ readonly BUILD_FAILED: "build_failed";
997
+ readonly PENDING_BUILD: "pending_build";
998
+ readonly BUILDING_SNAPSHOT: "building_snapshot";
999
+ readonly UNKNOWN: "unknown";
1000
+ readonly PULLING_SNAPSHOT: "pulling_snapshot";
1001
+ readonly ARCHIVED: "archived";
1002
+ readonly ARCHIVING: "archiving";
1003
+ };
1004
+ export type ListSandboxesPaginatedStatesEnum = (typeof ListSandboxesPaginatedStatesEnum)[keyof typeof ListSandboxesPaginatedStatesEnum];
1005
+ /**
1006
+ * @export
1007
+ */
1008
+ export declare const ListSandboxesPaginatedSortEnum: {
1009
+ readonly ID: "id";
1010
+ readonly STATE: "state";
1011
+ readonly SNAPSHOT: "snapshot";
1012
+ readonly REGION: "region";
1013
+ readonly UPDATED_AT: "updatedAt";
1014
+ readonly CREATED_AT: "createdAt";
1015
+ };
1016
+ export type ListSandboxesPaginatedSortEnum = (typeof ListSandboxesPaginatedSortEnum)[keyof typeof ListSandboxesPaginatedSortEnum];
1017
+ /**
1018
+ * @export
1019
+ */
1020
+ export declare const ListSandboxesPaginatedOrderEnum: {
1021
+ readonly ASC: "asc";
1022
+ readonly DESC: "desc";
1023
+ };
1024
+ export type ListSandboxesPaginatedOrderEnum = (typeof ListSandboxesPaginatedOrderEnum)[keyof typeof ListSandboxesPaginatedOrderEnum];