@daytonaio/api-client 0.9.8 → 0.12.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/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/api/docker-registry-api.ts +12 -76
- package/api/images-api.ts +380 -0
- package/api/toolbox-api.ts +169 -0
- package/api.ts +1 -0
- package/dist/api/docker-registry-api.d.ts +16 -44
- package/dist/api/docker-registry-api.js +0 -62
- package/dist/api/images-api.d.ts +184 -0
- package/dist/api/images-api.js +361 -0
- package/dist/api/toolbox-api.d.ts +79 -0
- package/dist/api/toolbox-api.js +159 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/docker-registry-api.d.ts +16 -44
- package/dist/esm/api/docker-registry-api.js +0 -62
- package/dist/esm/api/images-api.d.ts +184 -0
- package/dist/esm/api/images-api.js +354 -0
- package/dist/esm/api/toolbox-api.d.ts +79 -0
- package/dist/esm/api/toolbox-api.js +159 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/command.d.ts +2 -8
- package/dist/esm/models/create-docker-registry.d.ts +0 -6
- package/dist/esm/models/create-image.d.ts +30 -0
- package/dist/esm/models/create-image.js +14 -0
- package/dist/esm/models/docker-registry.d.ts +60 -0
- package/dist/esm/models/docker-registry.js +14 -0
- package/dist/esm/models/image-dto.d.ts +93 -0
- package/dist/esm/models/image-dto.js +21 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/paginated-images-dto.d.ts +43 -0
- package/dist/esm/models/paginated-images-dto.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +24 -0
- package/dist/esm/models/toggle-state.js +14 -0
- package/dist/esm/models/update-docker-registry.d.ts +2 -20
- package/dist/esm/models/usage-overview.d.ts +24 -0
- package/dist/models/command.d.ts +2 -8
- package/dist/models/create-docker-registry.d.ts +0 -6
- package/dist/models/create-image.d.ts +30 -0
- package/dist/models/create-image.js +15 -0
- package/dist/models/docker-registry.d.ts +60 -0
- package/dist/models/docker-registry.js +15 -0
- package/dist/models/image-dto.d.ts +93 -0
- package/dist/models/image-dto.js +24 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/paginated-images-dto.d.ts +43 -0
- package/dist/models/paginated-images-dto.js +15 -0
- package/dist/models/toggle-state.d.ts +24 -0
- package/dist/models/toggle-state.js +15 -0
- package/dist/models/update-docker-registry.d.ts +2 -20
- package/dist/models/usage-overview.d.ts +24 -0
- package/models/command.ts +2 -8
- package/models/create-docker-registry.ts +0 -6
- package/models/create-image.ts +36 -0
- package/models/docker-registry.ts +66 -0
- package/models/image-dto.ts +102 -0
- package/models/index.ts +5 -0
- package/models/paginated-images-dto.ts +51 -0
- package/models/toggle-state.ts +30 -0
- package/models/update-docker-registry.ts +2 -20
- package/models/usage-overview.ts +24 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -29,6 +29,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/api-keys-api"), exports);
|
|
31
31
|
__exportStar(require("./api/docker-registry-api"), exports);
|
|
32
|
+
__exportStar(require("./api/images-api"), exports);
|
|
32
33
|
__exportStar(require("./api/nodes-api"), exports);
|
|
33
34
|
__exportStar(require("./api/toolbox-api"), exports);
|
|
34
35
|
__exportStar(require("./api/users-api"), exports);
|
|
@@ -13,6 +13,7 @@ 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 { CreateDockerRegistry } from '../models';
|
|
16
|
+
import type { DockerRegistry } from '../models';
|
|
16
17
|
import type { UpdateDockerRegistry } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* DockerRegistryApi - axios parameter creator
|
|
@@ -35,13 +36,6 @@ export declare const DockerRegistryApiAxiosParamCreator: (configuration?: Config
|
|
|
35
36
|
* @throws {RequiredError}
|
|
36
37
|
*/
|
|
37
38
|
deleteRegistry: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @summary Get default registry
|
|
41
|
-
* @param {*} [options] Override http request option.
|
|
42
|
-
* @throws {RequiredError}
|
|
43
|
-
*/
|
|
44
|
-
getDefaultRegistry: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
39
|
/**
|
|
46
40
|
*
|
|
47
41
|
* @summary Get registry
|
|
@@ -87,7 +81,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
87
81
|
* @param {*} [options] Override http request option.
|
|
88
82
|
* @throws {RequiredError}
|
|
89
83
|
*/
|
|
90
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
84
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
91
85
|
/**
|
|
92
86
|
*
|
|
93
87
|
* @summary Delete registry
|
|
@@ -96,13 +90,6 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
96
90
|
* @throws {RequiredError}
|
|
97
91
|
*/
|
|
98
92
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Get default registry
|
|
102
|
-
* @param {*} [options] Override http request option.
|
|
103
|
-
* @throws {RequiredError}
|
|
104
|
-
*/
|
|
105
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
106
93
|
/**
|
|
107
94
|
*
|
|
108
95
|
* @summary Get registry
|
|
@@ -110,14 +97,14 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
110
97
|
* @param {*} [options] Override http request option.
|
|
111
98
|
* @throws {RequiredError}
|
|
112
99
|
*/
|
|
113
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
100
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
114
101
|
/**
|
|
115
102
|
*
|
|
116
103
|
* @summary List registries
|
|
117
104
|
* @param {*} [options] Override http request option.
|
|
118
105
|
* @throws {RequiredError}
|
|
119
106
|
*/
|
|
120
|
-
listRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
107
|
+
listRegistries(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DockerRegistry>>>;
|
|
121
108
|
/**
|
|
122
109
|
*
|
|
123
110
|
* @summary Set default registry
|
|
@@ -125,7 +112,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
125
112
|
* @param {*} [options] Override http request option.
|
|
126
113
|
* @throws {RequiredError}
|
|
127
114
|
*/
|
|
128
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
115
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
129
116
|
/**
|
|
130
117
|
*
|
|
131
118
|
* @summary Update registry
|
|
@@ -134,7 +121,7 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
|
|
|
134
121
|
* @param {*} [options] Override http request option.
|
|
135
122
|
* @throws {RequiredError}
|
|
136
123
|
*/
|
|
137
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
124
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
|
|
138
125
|
};
|
|
139
126
|
/**
|
|
140
127
|
* DockerRegistryApi - factory interface
|
|
@@ -148,7 +135,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
148
135
|
* @param {*} [options] Override http request option.
|
|
149
136
|
* @throws {RequiredError}
|
|
150
137
|
*/
|
|
151
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
138
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
152
139
|
/**
|
|
153
140
|
*
|
|
154
141
|
* @summary Delete registry
|
|
@@ -157,13 +144,6 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
157
144
|
* @throws {RequiredError}
|
|
158
145
|
*/
|
|
159
146
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @summary Get default registry
|
|
163
|
-
* @param {*} [options] Override http request option.
|
|
164
|
-
* @throws {RequiredError}
|
|
165
|
-
*/
|
|
166
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): AxiosPromise<object>;
|
|
167
147
|
/**
|
|
168
148
|
*
|
|
169
149
|
* @summary Get registry
|
|
@@ -171,14 +151,14 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
171
151
|
* @param {*} [options] Override http request option.
|
|
172
152
|
* @throws {RequiredError}
|
|
173
153
|
*/
|
|
174
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
154
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
175
155
|
/**
|
|
176
156
|
*
|
|
177
157
|
* @summary List registries
|
|
178
158
|
* @param {*} [options] Override http request option.
|
|
179
159
|
* @throws {RequiredError}
|
|
180
160
|
*/
|
|
181
|
-
listRegistries(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
161
|
+
listRegistries(options?: RawAxiosRequestConfig): AxiosPromise<Array<DockerRegistry>>;
|
|
182
162
|
/**
|
|
183
163
|
*
|
|
184
164
|
* @summary Set default registry
|
|
@@ -186,7 +166,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
186
166
|
* @param {*} [options] Override http request option.
|
|
187
167
|
* @throws {RequiredError}
|
|
188
168
|
*/
|
|
189
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
169
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
190
170
|
/**
|
|
191
171
|
*
|
|
192
172
|
* @summary Update registry
|
|
@@ -195,7 +175,7 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
|
|
|
195
175
|
* @param {*} [options] Override http request option.
|
|
196
176
|
* @throws {RequiredError}
|
|
197
177
|
*/
|
|
198
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
178
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
|
|
199
179
|
};
|
|
200
180
|
/**
|
|
201
181
|
* DockerRegistryApi - object-oriented interface
|
|
@@ -212,7 +192,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
212
192
|
* @throws {RequiredError}
|
|
213
193
|
* @memberof DockerRegistryApi
|
|
214
194
|
*/
|
|
215
|
-
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
195
|
+
createRegistry(createDockerRegistry: CreateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
216
196
|
/**
|
|
217
197
|
*
|
|
218
198
|
* @summary Delete registry
|
|
@@ -222,14 +202,6 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
222
202
|
* @memberof DockerRegistryApi
|
|
223
203
|
*/
|
|
224
204
|
deleteRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
225
|
-
/**
|
|
226
|
-
*
|
|
227
|
-
* @summary Get default registry
|
|
228
|
-
* @param {*} [options] Override http request option.
|
|
229
|
-
* @throws {RequiredError}
|
|
230
|
-
* @memberof DockerRegistryApi
|
|
231
|
-
*/
|
|
232
|
-
getDefaultRegistry(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
233
205
|
/**
|
|
234
206
|
*
|
|
235
207
|
* @summary Get registry
|
|
@@ -238,7 +210,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
238
210
|
* @throws {RequiredError}
|
|
239
211
|
* @memberof DockerRegistryApi
|
|
240
212
|
*/
|
|
241
|
-
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
213
|
+
getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
242
214
|
/**
|
|
243
215
|
*
|
|
244
216
|
* @summary List registries
|
|
@@ -246,7 +218,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
246
218
|
* @throws {RequiredError}
|
|
247
219
|
* @memberof DockerRegistryApi
|
|
248
220
|
*/
|
|
249
|
-
listRegistries(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
221
|
+
listRegistries(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry[], any>>;
|
|
250
222
|
/**
|
|
251
223
|
*
|
|
252
224
|
* @summary Set default registry
|
|
@@ -255,7 +227,7 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
255
227
|
* @throws {RequiredError}
|
|
256
228
|
* @memberof DockerRegistryApi
|
|
257
229
|
*/
|
|
258
|
-
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
230
|
+
setDefaultRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
259
231
|
/**
|
|
260
232
|
*
|
|
261
233
|
* @summary Update registry
|
|
@@ -265,5 +237,5 @@ export declare class DockerRegistryApi extends BaseAPI {
|
|
|
265
237
|
* @throws {RequiredError}
|
|
266
238
|
* @memberof DockerRegistryApi
|
|
267
239
|
*/
|
|
268
|
-
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
240
|
+
updateRegistry(id: string, updateDockerRegistry: UpdateDockerRegistry, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
|
|
269
241
|
}
|
|
@@ -97,34 +97,6 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
options: localVarRequestOptions,
|
|
98
98
|
};
|
|
99
99
|
}),
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @summary Get default registry
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
*/
|
|
106
|
-
getDefaultRegistry: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
107
|
-
const localVarPath = `/docker-registry/default`;
|
|
108
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
-
let baseOptions;
|
|
111
|
-
if (configuration) {
|
|
112
|
-
baseOptions = configuration.baseOptions;
|
|
113
|
-
}
|
|
114
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
115
|
-
const localVarHeaderParameter = {};
|
|
116
|
-
const localVarQueryParameter = {};
|
|
117
|
-
// authentication oauth2 required
|
|
118
|
-
// oauth required
|
|
119
|
-
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
120
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
123
|
-
return {
|
|
124
|
-
url: toPathString(localVarUrlObj),
|
|
125
|
-
options: localVarRequestOptions,
|
|
126
|
-
};
|
|
127
|
-
}),
|
|
128
100
|
/**
|
|
129
101
|
*
|
|
130
102
|
* @summary Get registry
|
|
@@ -295,21 +267,6 @@ export const DockerRegistryApiFp = function (configuration) {
|
|
|
295
267
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
296
268
|
});
|
|
297
269
|
},
|
|
298
|
-
/**
|
|
299
|
-
*
|
|
300
|
-
* @summary Get default registry
|
|
301
|
-
* @param {*} [options] Override http request option.
|
|
302
|
-
* @throws {RequiredError}
|
|
303
|
-
*/
|
|
304
|
-
getDefaultRegistry(options) {
|
|
305
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
-
var _a, _b, _c;
|
|
307
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDefaultRegistry(options);
|
|
308
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
309
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.getDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
310
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
311
|
-
});
|
|
312
|
-
},
|
|
313
270
|
/**
|
|
314
271
|
*
|
|
315
272
|
* @summary Get registry
|
|
@@ -403,15 +360,6 @@ export const DockerRegistryApiFactory = function (configuration, basePath, axios
|
|
|
403
360
|
deleteRegistry(id, options) {
|
|
404
361
|
return localVarFp.deleteRegistry(id, options).then((request) => request(axios, basePath));
|
|
405
362
|
},
|
|
406
|
-
/**
|
|
407
|
-
*
|
|
408
|
-
* @summary Get default registry
|
|
409
|
-
* @param {*} [options] Override http request option.
|
|
410
|
-
* @throws {RequiredError}
|
|
411
|
-
*/
|
|
412
|
-
getDefaultRegistry(options) {
|
|
413
|
-
return localVarFp.getDefaultRegistry(options).then((request) => request(axios, basePath));
|
|
414
|
-
},
|
|
415
363
|
/**
|
|
416
364
|
*
|
|
417
365
|
* @summary Get registry
|
|
@@ -483,16 +431,6 @@ export class DockerRegistryApi extends BaseAPI {
|
|
|
483
431
|
deleteRegistry(id, options) {
|
|
484
432
|
return DockerRegistryApiFp(this.configuration).deleteRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
485
433
|
}
|
|
486
|
-
/**
|
|
487
|
-
*
|
|
488
|
-
* @summary Get default registry
|
|
489
|
-
* @param {*} [options] Override http request option.
|
|
490
|
-
* @throws {RequiredError}
|
|
491
|
-
* @memberof DockerRegistryApi
|
|
492
|
-
*/
|
|
493
|
-
getDefaultRegistry(options) {
|
|
494
|
-
return DockerRegistryApiFp(this.configuration).getDefaultRegistry(options).then((request) => request(this.axios, this.basePath));
|
|
495
|
-
}
|
|
496
434
|
/**
|
|
497
435
|
*
|
|
498
436
|
* @summary Get registry
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Workspaces
|
|
3
|
+
* Daytona Workspaces API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateImage } from '../models';
|
|
16
|
+
import type { ImageDto } from '../models';
|
|
17
|
+
import type { PaginatedImagesDto } from '../models';
|
|
18
|
+
import type { ToggleState } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* ImagesApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @summary Create a new image
|
|
27
|
+
* @param {CreateImage} createImage
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createImage: (createImage: CreateImage, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary List all images
|
|
35
|
+
* @param {number} [limit] Number of items per page
|
|
36
|
+
* @param {number} [page] Page number
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
getAllImages: (limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Delete image
|
|
44
|
+
* @param {string} id Image ID
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
removeImage: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Toggle image state
|
|
52
|
+
* @param {string} id Image ID
|
|
53
|
+
* @param {ToggleState} toggleState
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
toggleImageState: (id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* ImagesApi - functional programming interface
|
|
61
|
+
* @export
|
|
62
|
+
*/
|
|
63
|
+
export declare const ImagesApiFp: (configuration?: Configuration) => {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Create a new image
|
|
67
|
+
* @param {CreateImage} createImage
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @summary List all images
|
|
75
|
+
* @param {number} [limit] Number of items per page
|
|
76
|
+
* @param {number} [page] Page number
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedImagesDto>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Delete image
|
|
84
|
+
* @param {string} id Image ID
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @summary Toggle image state
|
|
92
|
+
* @param {string} id Image ID
|
|
93
|
+
* @param {ToggleState} toggleState
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* ImagesApi - factory interface
|
|
101
|
+
* @export
|
|
102
|
+
*/
|
|
103
|
+
export declare const ImagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Create a new image
|
|
107
|
+
* @param {CreateImage} createImage
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary List all images
|
|
115
|
+
* @param {number} [limit] Number of items per page
|
|
116
|
+
* @param {number} [page] Page number
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedImagesDto>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @summary Delete image
|
|
124
|
+
* @param {string} id Image ID
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary Toggle image state
|
|
132
|
+
* @param {string} id Image ID
|
|
133
|
+
* @param {ToggleState} toggleState
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* ImagesApi - object-oriented interface
|
|
141
|
+
* @export
|
|
142
|
+
* @class ImagesApi
|
|
143
|
+
* @extends {BaseAPI}
|
|
144
|
+
*/
|
|
145
|
+
export declare class ImagesApi extends BaseAPI {
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Create a new image
|
|
149
|
+
* @param {CreateImage} createImage
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
* @memberof ImagesApi
|
|
153
|
+
*/
|
|
154
|
+
createImage(createImage: CreateImage, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary List all images
|
|
158
|
+
* @param {number} [limit] Number of items per page
|
|
159
|
+
* @param {number} [page] Page number
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
* @memberof ImagesApi
|
|
163
|
+
*/
|
|
164
|
+
getAllImages(limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedImagesDto, any>>;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @summary Delete image
|
|
168
|
+
* @param {string} id Image ID
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
* @memberof ImagesApi
|
|
172
|
+
*/
|
|
173
|
+
removeImage(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary Toggle image state
|
|
177
|
+
* @param {string} id Image ID
|
|
178
|
+
* @param {ToggleState} toggleState
|
|
179
|
+
* @param {*} [options] Override http request option.
|
|
180
|
+
* @throws {RequiredError}
|
|
181
|
+
* @memberof ImagesApi
|
|
182
|
+
*/
|
|
183
|
+
toggleImageState(id: string, toggleState: ToggleState, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
|
|
184
|
+
}
|