@daytonaio/api-client 0.105.1 → 0.106.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/api-keys-api.d.ts +6 -6
- package/src/api/audit-api.d.ts +25 -25
- package/src/api/audit-api.js +36 -36
- package/src/api/audit-api.js.map +1 -1
- package/src/api/config-api.d.ts +1 -1
- package/src/api/default-api.d.ts +7 -7
- package/src/api/docker-registry-api.d.ts +7 -7
- package/src/api/health-api.d.ts +1 -1
- package/src/api/object-storage-api.d.ts +1 -1
- package/src/api/organizations-api.d.ts +26 -26
- package/src/api/preview-api.d.ts +3 -3
- package/src/api/runners-api.d.ts +5 -5
- package/src/api/sandbox-api.d.ts +204 -27
- package/src/api/sandbox-api.js +314 -17
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +51 -21
- package/src/api/snapshots-api.js +55 -18
- package/src/api/snapshots-api.js.map +1 -1
- package/src/api/toolbox-api.d.ts +63 -63
- package/src/api/users-api.d.ts +9 -9
- package/src/api/volumes-api.d.ts +5 -5
- package/src/api/webhooks-api.d.ts +6 -6
- package/src/api/workspace-api.d.ts +14 -14
- package/src/models/index.d.ts +3 -1
- package/src/models/index.js +3 -1
- package/src/models/index.js.map +1 -1
- package/src/models/paginated-sandboxes.d.ts +43 -0
- package/src/models/paginated-sandboxes.js +16 -0
- package/src/models/paginated-sandboxes.js.map +1 -0
- package/src/models/paginated-snapshots.d.ts +43 -0
- package/src/models/paginated-snapshots.js +16 -0
- package/src/models/paginated-snapshots.js.map +1 -0
- package/src/models/region.d.ts +24 -0
- package/src/models/region.js +4 -0
- package/src/models/region.js.map +1 -0
package/src/api/sandbox-api.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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
|
|
@@ -638,7 +739,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
638
739
|
* @throws {RequiredError}
|
|
639
740
|
* @memberof SandboxApi
|
|
640
741
|
*/
|
|
641
|
-
archiveSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
742
|
+
archiveSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
642
743
|
/**
|
|
643
744
|
*
|
|
644
745
|
* @summary Create sandbox backup
|
|
@@ -648,7 +749,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
648
749
|
* @throws {RequiredError}
|
|
649
750
|
* @memberof SandboxApi
|
|
650
751
|
*/
|
|
651
|
-
createBackup(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
752
|
+
createBackup(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
|
|
652
753
|
/**
|
|
653
754
|
*
|
|
654
755
|
* @summary Create a new sandbox
|
|
@@ -658,7 +759,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
658
759
|
* @throws {RequiredError}
|
|
659
760
|
* @memberof SandboxApi
|
|
660
761
|
*/
|
|
661
|
-
createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
762
|
+
createSandbox(createSandbox: CreateSandbox, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
|
|
662
763
|
/**
|
|
663
764
|
*
|
|
664
765
|
* @summary Create SSH access for sandbox
|
|
@@ -669,18 +770,17 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
669
770
|
* @throws {RequiredError}
|
|
670
771
|
* @memberof SandboxApi
|
|
671
772
|
*/
|
|
672
|
-
createSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any>>;
|
|
773
|
+
createSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, expiresInMinutes?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessDto, any, {}>>;
|
|
673
774
|
/**
|
|
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,
|
|
783
|
+
deleteSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
684
784
|
/**
|
|
685
785
|
*
|
|
686
786
|
* @summary Get build logs
|
|
@@ -691,7 +791,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
691
791
|
* @throws {RequiredError}
|
|
692
792
|
* @memberof SandboxApi
|
|
693
793
|
*/
|
|
694
|
-
getBuildLogs(sandboxId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
794
|
+
getBuildLogs(sandboxId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
695
795
|
/**
|
|
696
796
|
*
|
|
697
797
|
* @summary Get preview URL for a sandbox port
|
|
@@ -702,7 +802,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
702
802
|
* @throws {RequiredError}
|
|
703
803
|
* @memberof SandboxApi
|
|
704
804
|
*/
|
|
705
|
-
getPortPreviewUrl(sandboxId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any>>;
|
|
805
|
+
getPortPreviewUrl(sandboxId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any, {}>>;
|
|
706
806
|
/**
|
|
707
807
|
*
|
|
708
808
|
* @summary Get sandbox details
|
|
@@ -713,7 +813,16 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
713
813
|
* @throws {RequiredError}
|
|
714
814
|
* @memberof SandboxApi
|
|
715
815
|
*/
|
|
716
|
-
getSandbox(sandboxId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
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
|
|
@@ -724,7 +833,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
724
833
|
* @throws {RequiredError}
|
|
725
834
|
* @memberof SandboxApi
|
|
726
835
|
*/
|
|
727
|
-
getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
|
|
836
|
+
getSandboxesForRunner(xDaytonaOrganizationID?: string, states?: string, skipReconcilingSandboxes?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any, {}>>;
|
|
728
837
|
/**
|
|
729
838
|
*
|
|
730
839
|
* @summary List all sandboxes
|
|
@@ -736,7 +845,34 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
736
845
|
* @throws {RequiredError}
|
|
737
846
|
* @memberof SandboxApi
|
|
738
847
|
*/
|
|
739
|
-
listSandboxes(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, includeErroredDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox[], any>>;
|
|
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
|
|
@@ -747,7 +883,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
747
883
|
* @throws {RequiredError}
|
|
748
884
|
* @memberof SandboxApi
|
|
749
885
|
*/
|
|
750
|
-
replaceLabels(sandboxId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any>>;
|
|
886
|
+
replaceLabels(sandboxId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any, {}>>;
|
|
751
887
|
/**
|
|
752
888
|
*
|
|
753
889
|
* @summary Revoke SSH access for sandbox
|
|
@@ -758,7 +894,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
758
894
|
* @throws {RequiredError}
|
|
759
895
|
* @memberof SandboxApi
|
|
760
896
|
*/
|
|
761
|
-
revokeSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
897
|
+
revokeSshAccess(sandboxId: string, xDaytonaOrganizationID?: string, token?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
762
898
|
/**
|
|
763
899
|
*
|
|
764
900
|
* @summary Set sandbox auto-archive interval
|
|
@@ -769,7 +905,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
769
905
|
* @throws {RequiredError}
|
|
770
906
|
* @memberof SandboxApi
|
|
771
907
|
*/
|
|
772
|
-
setAutoArchiveInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
908
|
+
setAutoArchiveInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
773
909
|
/**
|
|
774
910
|
*
|
|
775
911
|
* @summary Set sandbox auto-delete interval
|
|
@@ -780,7 +916,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
780
916
|
* @throws {RequiredError}
|
|
781
917
|
* @memberof SandboxApi
|
|
782
918
|
*/
|
|
783
|
-
setAutoDeleteInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
919
|
+
setAutoDeleteInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
784
920
|
/**
|
|
785
921
|
*
|
|
786
922
|
* @summary Set sandbox auto-stop interval
|
|
@@ -791,7 +927,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
791
927
|
* @throws {RequiredError}
|
|
792
928
|
* @memberof SandboxApi
|
|
793
929
|
*/
|
|
794
|
-
setAutostopInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
930
|
+
setAutostopInterval(sandboxId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
795
931
|
/**
|
|
796
932
|
*
|
|
797
933
|
* @summary Start sandbox
|
|
@@ -801,7 +937,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
801
937
|
* @throws {RequiredError}
|
|
802
938
|
* @memberof SandboxApi
|
|
803
939
|
*/
|
|
804
|
-
startSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any>>;
|
|
940
|
+
startSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Sandbox, any, {}>>;
|
|
805
941
|
/**
|
|
806
942
|
*
|
|
807
943
|
* @summary Stop sandbox
|
|
@@ -811,7 +947,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
811
947
|
* @throws {RequiredError}
|
|
812
948
|
* @memberof SandboxApi
|
|
813
949
|
*/
|
|
814
|
-
stopSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
950
|
+
stopSandbox(sandboxId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
815
951
|
/**
|
|
816
952
|
*
|
|
817
953
|
* @summary Update public status
|
|
@@ -822,7 +958,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
822
958
|
* @throws {RequiredError}
|
|
823
959
|
* @memberof SandboxApi
|
|
824
960
|
*/
|
|
825
|
-
updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
961
|
+
updatePublicStatus(sandboxId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
826
962
|
/**
|
|
827
963
|
*
|
|
828
964
|
* @summary Update sandbox state
|
|
@@ -833,7 +969,7 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
833
969
|
* @throws {RequiredError}
|
|
834
970
|
* @memberof SandboxApi
|
|
835
971
|
*/
|
|
836
|
-
updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
972
|
+
updateSandboxState(sandboxId: string, updateSandboxStateDto: UpdateSandboxStateDto, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
837
973
|
/**
|
|
838
974
|
*
|
|
839
975
|
* @summary Validate SSH access for sandbox
|
|
@@ -843,5 +979,46 @@ export declare class SandboxApi extends BaseAPI {
|
|
|
843
979
|
* @throws {RequiredError}
|
|
844
980
|
* @memberof SandboxApi
|
|
845
981
|
*/
|
|
846
|
-
validateSshAccess(token: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SshAccessValidationDto, any>>;
|
|
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];
|