@daytonaio/api-client 0.107.1 → 0.108.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.
- package/package.json +1 -1
- package/src/api/audit-api.d.ts +24 -24
- package/src/api/audit-api.js +36 -36
- package/src/api/audit-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +185 -8
- package/src/api/sandbox-api.js +314 -17
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +43 -13
- package/src/api/snapshots-api.js +55 -18
- package/src/api/snapshots-api.js.map +1 -1
- 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/package.json
CHANGED
package/src/api/audit-api.d.ts
CHANGED
|
@@ -31,22 +31,22 @@ export declare const AuditApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @summary Get all audit logs
|
|
34
|
-
* @param {number} [
|
|
35
|
-
* @param {number} [
|
|
34
|
+
* @param {number} [page] Page number of the results
|
|
35
|
+
* @param {number} [limit] Number of results per page
|
|
36
36
|
* @param {*} [options] Override http request option.
|
|
37
37
|
* @throws {RequiredError}
|
|
38
38
|
*/
|
|
39
|
-
getAllAuditLogs: (
|
|
39
|
+
getAllAuditLogs: (page?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @summary Get audit logs for organization
|
|
43
43
|
* @param {string} organizationId Organization ID
|
|
44
|
-
* @param {number} [
|
|
45
|
-
* @param {number} [
|
|
44
|
+
* @param {number} [page] Page number of the results
|
|
45
|
+
* @param {number} [limit] Number of results per page
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
47
47
|
* @throws {RequiredError}
|
|
48
48
|
*/
|
|
49
|
-
getOrganizationAuditLogs: (organizationId: string,
|
|
49
|
+
getOrganizationAuditLogs: (organizationId: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
52
|
* AuditApi - functional programming interface
|
|
@@ -64,22 +64,22 @@ export declare const AuditApiFp: (configuration?: Configuration) => {
|
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Get all audit logs
|
|
67
|
-
* @param {number} [
|
|
68
|
-
* @param {number} [
|
|
67
|
+
* @param {number} [page] Page number of the results
|
|
68
|
+
* @param {number} [limit] Number of results per page
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
getAllAuditLogs(
|
|
72
|
+
getAllAuditLogs(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAuditLogs>>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @summary Get audit logs for organization
|
|
76
76
|
* @param {string} organizationId Organization ID
|
|
77
|
-
* @param {number} [
|
|
78
|
-
* @param {number} [
|
|
77
|
+
* @param {number} [page] Page number of the results
|
|
78
|
+
* @param {number} [limit] Number of results per page
|
|
79
79
|
* @param {*} [options] Override http request option.
|
|
80
80
|
* @throws {RequiredError}
|
|
81
81
|
*/
|
|
82
|
-
getOrganizationAuditLogs(organizationId: string,
|
|
82
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedAuditLogs>>;
|
|
83
83
|
};
|
|
84
84
|
/**
|
|
85
85
|
* AuditApi - factory interface
|
|
@@ -97,22 +97,22 @@ export declare const AuditApiFactory: (configuration?: Configuration, basePath?:
|
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @summary Get all audit logs
|
|
100
|
-
* @param {number} [
|
|
101
|
-
* @param {number} [
|
|
100
|
+
* @param {number} [page] Page number of the results
|
|
101
|
+
* @param {number} [limit] Number of results per page
|
|
102
102
|
* @param {*} [options] Override http request option.
|
|
103
103
|
* @throws {RequiredError}
|
|
104
104
|
*/
|
|
105
|
-
getAllAuditLogs(
|
|
105
|
+
getAllAuditLogs(page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedAuditLogs>;
|
|
106
106
|
/**
|
|
107
107
|
*
|
|
108
108
|
* @summary Get audit logs for organization
|
|
109
109
|
* @param {string} organizationId Organization ID
|
|
110
|
-
* @param {number} [
|
|
111
|
-
* @param {number} [
|
|
110
|
+
* @param {number} [page] Page number of the results
|
|
111
|
+
* @param {number} [limit] Number of results per page
|
|
112
112
|
* @param {*} [options] Override http request option.
|
|
113
113
|
* @throws {RequiredError}
|
|
114
114
|
*/
|
|
115
|
-
getOrganizationAuditLogs(organizationId: string,
|
|
115
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedAuditLogs>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
118
|
* AuditApi - object-oriented interface
|
|
@@ -133,22 +133,22 @@ export declare class AuditApi extends BaseAPI {
|
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @summary Get all audit logs
|
|
136
|
-
* @param {number} [
|
|
137
|
-
* @param {number} [
|
|
136
|
+
* @param {number} [page] Page number of the results
|
|
137
|
+
* @param {number} [limit] Number of results per page
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
* @memberof AuditApi
|
|
141
141
|
*/
|
|
142
|
-
getAllAuditLogs(
|
|
142
|
+
getAllAuditLogs(page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedAuditLogs, any, {}>>;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
145
|
* @summary Get audit logs for organization
|
|
146
146
|
* @param {string} organizationId Organization ID
|
|
147
|
-
* @param {number} [
|
|
148
|
-
* @param {number} [
|
|
147
|
+
* @param {number} [page] Page number of the results
|
|
148
|
+
* @param {number} [limit] Number of results per page
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
* @memberof AuditApi
|
|
152
152
|
*/
|
|
153
|
-
getOrganizationAuditLogs(organizationId: string,
|
|
153
|
+
getOrganizationAuditLogs(organizationId: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedAuditLogs, any, {}>>;
|
|
154
154
|
}
|
package/src/api/audit-api.js
CHANGED
|
@@ -63,12 +63,12 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @summary Get all audit logs
|
|
66
|
-
* @param {number} [
|
|
67
|
-
* @param {number} [
|
|
66
|
+
* @param {number} [page] Page number of the results
|
|
67
|
+
* @param {number} [limit] Number of results per page
|
|
68
68
|
* @param {*} [options] Override http request option.
|
|
69
69
|
* @throws {RequiredError}
|
|
70
70
|
*/
|
|
71
|
-
getAllAuditLogs: async (
|
|
71
|
+
getAllAuditLogs: async (page, limit, options = {}) => {
|
|
72
72
|
const localVarPath = `/audit`;
|
|
73
73
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
74
74
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -83,12 +83,12 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
83
83
|
// http bearer authentication required
|
|
84
84
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
85
85
|
// authentication oauth2 required
|
|
86
|
-
if (limit !== undefined) {
|
|
87
|
-
localVarQueryParameter['limit'] = limit;
|
|
88
|
-
}
|
|
89
86
|
if (page !== undefined) {
|
|
90
87
|
localVarQueryParameter['page'] = page;
|
|
91
88
|
}
|
|
89
|
+
if (limit !== undefined) {
|
|
90
|
+
localVarQueryParameter['limit'] = limit;
|
|
91
|
+
}
|
|
92
92
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
93
93
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
94
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -101,12 +101,12 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
*
|
|
102
102
|
* @summary Get audit logs for organization
|
|
103
103
|
* @param {string} organizationId Organization ID
|
|
104
|
-
* @param {number} [
|
|
105
|
-
* @param {number} [
|
|
104
|
+
* @param {number} [page] Page number of the results
|
|
105
|
+
* @param {number} [limit] Number of results per page
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
getOrganizationAuditLogs: async (organizationId,
|
|
109
|
+
getOrganizationAuditLogs: async (organizationId, page, limit, options = {}) => {
|
|
110
110
|
// verify required parameter 'organizationId' is not null or undefined
|
|
111
111
|
(0, common_1.assertParamExists)('getOrganizationAuditLogs', 'organizationId', organizationId);
|
|
112
112
|
const localVarPath = `/audit/organizations/{organizationId}`.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)));
|
|
@@ -123,12 +123,12 @@ const AuditApiAxiosParamCreator = function (configuration) {
|
|
|
123
123
|
// http bearer authentication required
|
|
124
124
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
125
125
|
// authentication oauth2 required
|
|
126
|
-
if (limit !== undefined) {
|
|
127
|
-
localVarQueryParameter['limit'] = limit;
|
|
128
|
-
}
|
|
129
126
|
if (page !== undefined) {
|
|
130
127
|
localVarQueryParameter['page'] = page;
|
|
131
128
|
}
|
|
129
|
+
if (limit !== undefined) {
|
|
130
|
+
localVarQueryParameter['limit'] = limit;
|
|
131
|
+
}
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -163,13 +163,13 @@ const AuditApiFp = function (configuration) {
|
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @summary Get all audit logs
|
|
166
|
-
* @param {number} [
|
|
167
|
-
* @param {number} [
|
|
166
|
+
* @param {number} [page] Page number of the results
|
|
167
|
+
* @param {number} [limit] Number of results per page
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
170
170
|
*/
|
|
171
|
-
async getAllAuditLogs(
|
|
172
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAuditLogs(
|
|
171
|
+
async getAllAuditLogs(page, limit, options) {
|
|
172
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAuditLogs(page, limit, options);
|
|
173
173
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
174
174
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuditApi.getAllAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
175
175
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -178,13 +178,13 @@ const AuditApiFp = function (configuration) {
|
|
|
178
178
|
*
|
|
179
179
|
* @summary Get audit logs for organization
|
|
180
180
|
* @param {string} organizationId Organization ID
|
|
181
|
-
* @param {number} [
|
|
182
|
-
* @param {number} [
|
|
181
|
+
* @param {number} [page] Page number of the results
|
|
182
|
+
* @param {number} [limit] Number of results per page
|
|
183
183
|
* @param {*} [options] Override http request option.
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
*/
|
|
186
|
-
async getOrganizationAuditLogs(organizationId,
|
|
187
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAuditLogs(organizationId,
|
|
186
|
+
async getOrganizationAuditLogs(organizationId, page, limit, options) {
|
|
187
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationAuditLogs(organizationId, page, limit, options);
|
|
188
188
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
189
189
|
const localVarOperationServerBasePath = base_1.operationServerMap['AuditApi.getOrganizationAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
190
190
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -212,26 +212,26 @@ const AuditApiFactory = function (configuration, basePath, axios) {
|
|
|
212
212
|
/**
|
|
213
213
|
*
|
|
214
214
|
* @summary Get all audit logs
|
|
215
|
-
* @param {number} [
|
|
216
|
-
* @param {number} [
|
|
215
|
+
* @param {number} [page] Page number of the results
|
|
216
|
+
* @param {number} [limit] Number of results per page
|
|
217
217
|
* @param {*} [options] Override http request option.
|
|
218
218
|
* @throws {RequiredError}
|
|
219
219
|
*/
|
|
220
|
-
getAllAuditLogs(
|
|
221
|
-
return localVarFp.getAllAuditLogs(
|
|
220
|
+
getAllAuditLogs(page, limit, options) {
|
|
221
|
+
return localVarFp.getAllAuditLogs(page, limit, options).then((request) => request(axios, basePath));
|
|
222
222
|
},
|
|
223
223
|
/**
|
|
224
224
|
*
|
|
225
225
|
* @summary Get audit logs for organization
|
|
226
226
|
* @param {string} organizationId Organization ID
|
|
227
|
-
* @param {number} [
|
|
228
|
-
* @param {number} [
|
|
227
|
+
* @param {number} [page] Page number of the results
|
|
228
|
+
* @param {number} [limit] Number of results per page
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
*/
|
|
232
|
-
getOrganizationAuditLogs(organizationId,
|
|
232
|
+
getOrganizationAuditLogs(organizationId, page, limit, options) {
|
|
233
233
|
return localVarFp
|
|
234
|
-
.getOrganizationAuditLogs(organizationId,
|
|
234
|
+
.getOrganizationAuditLogs(organizationId, page, limit, options)
|
|
235
235
|
.then((request) => request(axios, basePath));
|
|
236
236
|
},
|
|
237
237
|
};
|
|
@@ -260,30 +260,30 @@ class AuditApi extends base_1.BaseAPI {
|
|
|
260
260
|
/**
|
|
261
261
|
*
|
|
262
262
|
* @summary Get all audit logs
|
|
263
|
-
* @param {number} [
|
|
264
|
-
* @param {number} [
|
|
263
|
+
* @param {number} [page] Page number of the results
|
|
264
|
+
* @param {number} [limit] Number of results per page
|
|
265
265
|
* @param {*} [options] Override http request option.
|
|
266
266
|
* @throws {RequiredError}
|
|
267
267
|
* @memberof AuditApi
|
|
268
268
|
*/
|
|
269
|
-
getAllAuditLogs(
|
|
269
|
+
getAllAuditLogs(page, limit, options) {
|
|
270
270
|
return (0, exports.AuditApiFp)(this.configuration)
|
|
271
|
-
.getAllAuditLogs(
|
|
271
|
+
.getAllAuditLogs(page, limit, options)
|
|
272
272
|
.then((request) => request(this.axios, this.basePath));
|
|
273
273
|
}
|
|
274
274
|
/**
|
|
275
275
|
*
|
|
276
276
|
* @summary Get audit logs for organization
|
|
277
277
|
* @param {string} organizationId Organization ID
|
|
278
|
-
* @param {number} [
|
|
279
|
-
* @param {number} [
|
|
278
|
+
* @param {number} [page] Page number of the results
|
|
279
|
+
* @param {number} [limit] Number of results per page
|
|
280
280
|
* @param {*} [options] Override http request option.
|
|
281
281
|
* @throws {RequiredError}
|
|
282
282
|
* @memberof AuditApi
|
|
283
283
|
*/
|
|
284
|
-
getOrganizationAuditLogs(organizationId,
|
|
284
|
+
getOrganizationAuditLogs(organizationId, page, limit, options) {
|
|
285
285
|
return (0, exports.AuditApiFp)(this.configuration)
|
|
286
|
-
.getOrganizationAuditLogs(organizationId,
|
|
286
|
+
.getOrganizationAuditLogs(organizationId, page, limit, options)
|
|
287
287
|
.then((request) => request(this.axios, this.basePath));
|
|
288
288
|
}
|
|
289
289
|
}
|
package/src/api/audit-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-api.js","sourceRoot":"","sources":["../../../../../libs/api-client/src/api/audit-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,iCAA+B;AAC/B,yDAAyD;AACzD,aAAa;AACb,sCAWkB;AAClB,aAAa;AACb,kCAAqH;AAOrH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACL;;;;;;WAMG;QACH,cAAc,EAAE,KAAK,EACnB,cAA8B,EAC9B,UAAiC,EAAE,EACb,EAAE;YACxB,sEAAsE;YACtE,IAAA,0BAAiB,EAAC,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;YACrE,MAAM,YAAY,GAAG,QAAQ,CAAA;YAC7B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAA;YAC5D,IAAI,WAAW,CAAA;YACf,IAAI,aAAa,EAAE,CAAC;gBAClB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;YACzC,CAAC;YAED,MAAM,sBAAsB,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,EAAE,CAAA;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAA;YACzC,MAAM,sBAAsB,GAAG,EAAS,CAAA;YAExC,iCAAiC;YACjC,sCAAsC;YACtC,MAAM,IAAA,8BAAqB,EAAC,uBAAuB,EAAE,aAAa,CAAC,CAAA;YAEnE,iCAAiC;YAEjC,uBAAu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AlDD,4BAkDC"}
|
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
|
|
@@ -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,
|
|
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];
|