@daytonaio/api-client 0.7.0 → 0.8.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/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/api/toolbox-api.ts +419 -0
- package/api/users-api.ts +68 -0
- package/api/workspace-api.ts +78 -0
- package/api.ts +0 -1
- package/dist/api/toolbox-api.d.ts +193 -0
- package/dist/api/toolbox-api.js +389 -0
- package/dist/api/users-api.d.ts +30 -0
- package/dist/api/users-api.js +62 -0
- package/dist/api/workspace-api.d.ts +33 -0
- package/dist/api/workspace-api.js +73 -0
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/esm/api/toolbox-api.d.ts +193 -0
- package/dist/esm/api/toolbox-api.js +389 -0
- package/dist/esm/api/users-api.d.ts +30 -0
- package/dist/esm/api/users-api.js +62 -0
- package/dist/esm/api/workspace-api.d.ts +33 -0
- package/dist/esm/api/workspace-api.js +73 -0
- package/dist/esm/api.d.ts +0 -1
- package/dist/esm/api.js +0 -1
- package/dist/esm/models/command.d.ts +42 -0
- package/dist/esm/models/command.js +14 -0
- package/dist/esm/models/create-session-request.d.ts +24 -0
- package/dist/esm/models/create-session-request.js +14 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/session-execute-request.d.ts +30 -0
- package/dist/esm/models/session-execute-request.js +14 -0
- package/dist/esm/models/session-execute-response.d.ts +36 -0
- package/dist/esm/models/session-execute-response.js +14 -0
- package/dist/esm/models/session.d.ts +31 -0
- package/dist/esm/models/session.js +14 -0
- package/dist/esm/models/usage-overview.d.ts +84 -0
- package/dist/esm/models/usage-overview.js +14 -0
- package/dist/models/command.d.ts +42 -0
- package/dist/models/command.js +15 -0
- package/dist/models/create-session-request.d.ts +24 -0
- package/dist/models/create-session-request.js +15 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/session-execute-request.d.ts +30 -0
- package/dist/models/session-execute-request.js +15 -0
- package/dist/models/session-execute-response.d.ts +36 -0
- package/dist/models/session-execute-response.js +15 -0
- package/dist/models/session.d.ts +31 -0
- package/dist/models/session.js +15 -0
- package/dist/models/usage-overview.d.ts +84 -0
- package/dist/models/usage-overview.js +15 -0
- package/models/command.ts +48 -0
- package/models/create-session-request.ts +30 -0
- package/models/index.ts +6 -0
- package/models/session-execute-request.ts +36 -0
- package/models/session-execute-response.ts +42 -0
- package/models/session.ts +39 -0
- package/models/usage-overview.ts +90 -0
- package/package.json +1 -1
- package/api/app-api.ts +0 -118
- package/dist/api/app-api.d.ts +0 -65
- package/dist/api/app-api.js +0 -124
- package/dist/esm/api/app-api.d.ts +0 -65
- package/dist/esm/api/app-api.js +0 -117
|
@@ -65,6 +65,34 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
65
65
|
options: localVarRequestOptions,
|
|
66
66
|
};
|
|
67
67
|
}),
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Get user current usage overview
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
getUserUsageOverview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
75
|
+
const localVarPath = `/users/overview`;
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
// authentication oauth2 required
|
|
86
|
+
// oauth required
|
|
87
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
}),
|
|
68
96
|
/**
|
|
69
97
|
*
|
|
70
98
|
* @summary List all users
|
|
@@ -150,6 +178,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
150
178
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
151
179
|
});
|
|
152
180
|
},
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @summary Get user current usage overview
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
getUserUsageOverview(options) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
var _a, _b, _c;
|
|
190
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserUsageOverview(options);
|
|
191
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
192
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.getUserUsageOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
193
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
194
|
+
});
|
|
195
|
+
},
|
|
153
196
|
/**
|
|
154
197
|
*
|
|
155
198
|
* @summary List all users
|
|
@@ -200,6 +243,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
200
243
|
createUser(createUser, options) {
|
|
201
244
|
return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
|
|
202
245
|
},
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Get user current usage overview
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
getUserUsageOverview(options) {
|
|
253
|
+
return localVarFp.getUserUsageOverview(options).then((request) => request(axios, basePath));
|
|
254
|
+
},
|
|
203
255
|
/**
|
|
204
256
|
*
|
|
205
257
|
* @summary List all users
|
|
@@ -239,6 +291,16 @@ export class UsersApi extends BaseAPI {
|
|
|
239
291
|
createUser(createUser, options) {
|
|
240
292
|
return UsersApiFp(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
|
|
241
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @summary Get user current usage overview
|
|
297
|
+
* @param {*} [options] Override http request option.
|
|
298
|
+
* @throws {RequiredError}
|
|
299
|
+
* @memberof UsersApi
|
|
300
|
+
*/
|
|
301
|
+
getUserUsageOverview(options) {
|
|
302
|
+
return UsersApiFp(this.configuration).getUserUsageOverview(options).then((request) => request(this.axios, this.basePath));
|
|
303
|
+
}
|
|
242
304
|
/**
|
|
243
305
|
*
|
|
244
306
|
* @summary List all users
|
|
@@ -96,6 +96,14 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
96
96
|
* @throws {RequiredError}
|
|
97
97
|
*/
|
|
98
98
|
updatePublicStatus: (workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @param {string} workspaceId
|
|
102
|
+
* @param {object} body
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
workspaceControllerResizeWorkspace: (workspaceId: string, body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
99
107
|
};
|
|
100
108
|
/**
|
|
101
109
|
* WorkspaceApi - functional programming interface
|
|
@@ -178,6 +186,14 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
178
186
|
* @throws {RequiredError}
|
|
179
187
|
*/
|
|
180
188
|
updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param {string} workspaceId
|
|
192
|
+
* @param {object} body
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
181
197
|
};
|
|
182
198
|
/**
|
|
183
199
|
* WorkspaceApi - factory interface
|
|
@@ -260,6 +276,14 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
260
276
|
* @throws {RequiredError}
|
|
261
277
|
*/
|
|
262
278
|
updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @param {string} workspaceId
|
|
282
|
+
* @param {object} body
|
|
283
|
+
* @param {*} [options] Override http request option.
|
|
284
|
+
* @throws {RequiredError}
|
|
285
|
+
*/
|
|
286
|
+
workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
263
287
|
};
|
|
264
288
|
/**
|
|
265
289
|
* WorkspaceApi - object-oriented interface
|
|
@@ -353,4 +377,13 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
353
377
|
* @memberof WorkspaceApi
|
|
354
378
|
*/
|
|
355
379
|
updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @param {string} workspaceId
|
|
383
|
+
* @param {object} body
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof WorkspaceApi
|
|
387
|
+
*/
|
|
388
|
+
workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
356
389
|
}
|
|
@@ -340,6 +340,42 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
340
340
|
options: localVarRequestOptions,
|
|
341
341
|
};
|
|
342
342
|
}),
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @param {string} workspaceId
|
|
346
|
+
* @param {object} body
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
workspaceControllerResizeWorkspace: (workspaceId_1, body_1, ...args_1) => __awaiter(this, [workspaceId_1, body_1, ...args_1], void 0, function* (workspaceId, body, options = {}) {
|
|
351
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
352
|
+
assertParamExists('workspaceControllerResizeWorkspace', 'workspaceId', workspaceId);
|
|
353
|
+
// verify required parameter 'body' is not null or undefined
|
|
354
|
+
assertParamExists('workspaceControllerResizeWorkspace', 'body', body);
|
|
355
|
+
const localVarPath = `/workspace/{workspaceId}/resize`
|
|
356
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
357
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
359
|
+
let baseOptions;
|
|
360
|
+
if (configuration) {
|
|
361
|
+
baseOptions = configuration.baseOptions;
|
|
362
|
+
}
|
|
363
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
364
|
+
const localVarHeaderParameter = {};
|
|
365
|
+
const localVarQueryParameter = {};
|
|
366
|
+
// authentication oauth2 required
|
|
367
|
+
// oauth required
|
|
368
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
369
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
372
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
373
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
374
|
+
return {
|
|
375
|
+
url: toPathString(localVarUrlObj),
|
|
376
|
+
options: localVarRequestOptions,
|
|
377
|
+
};
|
|
378
|
+
}),
|
|
343
379
|
};
|
|
344
380
|
};
|
|
345
381
|
/**
|
|
@@ -497,6 +533,22 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
497
533
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
498
534
|
});
|
|
499
535
|
},
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @param {string} workspaceId
|
|
539
|
+
* @param {object} body
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
+
var _a, _b, _c;
|
|
546
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerResizeWorkspace(workspaceId, body, options);
|
|
547
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
548
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.workspaceControllerResizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
549
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
550
|
+
});
|
|
551
|
+
},
|
|
500
552
|
};
|
|
501
553
|
};
|
|
502
554
|
/**
|
|
@@ -600,6 +652,16 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
600
652
|
updatePublicStatus(workspaceId, isPublic, options) {
|
|
601
653
|
return localVarFp.updatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
|
|
602
654
|
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @param {string} workspaceId
|
|
658
|
+
* @param {object} body
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
663
|
+
return localVarFp.workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(axios, basePath));
|
|
664
|
+
},
|
|
603
665
|
};
|
|
604
666
|
};
|
|
605
667
|
/**
|
|
@@ -712,4 +774,15 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
712
774
|
updatePublicStatus(workspaceId, isPublic, options) {
|
|
713
775
|
return WorkspaceApiFp(this.configuration).updatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
|
|
714
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @param {string} workspaceId
|
|
780
|
+
* @param {object} body
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
* @memberof WorkspaceApi
|
|
784
|
+
*/
|
|
785
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
786
|
+
return WorkspaceApiFp(this.configuration).workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(this.axios, this.basePath));
|
|
787
|
+
}
|
|
715
788
|
}
|
package/dist/esm/api.d.ts
CHANGED
package/dist/esm/api.js
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Command
|
|
16
|
+
*/
|
|
17
|
+
export interface Command {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the command
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Command
|
|
22
|
+
*/
|
|
23
|
+
'cmdId': string;
|
|
24
|
+
/**
|
|
25
|
+
* The command that was executed
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Command
|
|
28
|
+
*/
|
|
29
|
+
'command': string;
|
|
30
|
+
/**
|
|
31
|
+
* The output of the command
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Command
|
|
34
|
+
*/
|
|
35
|
+
'output': string;
|
|
36
|
+
/**
|
|
37
|
+
* The exit code of the command
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Command
|
|
40
|
+
*/
|
|
41
|
+
'exitCode': number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateSessionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSessionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the session
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSessionRequest
|
|
22
|
+
*/
|
|
23
|
+
'sessionId': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './api-key-list';
|
|
2
2
|
export * from './api-key-response';
|
|
3
|
+
export * from './command';
|
|
3
4
|
export * from './create-api-key';
|
|
4
5
|
export * from './create-docker-registry';
|
|
5
6
|
export * from './create-node';
|
|
7
|
+
export * from './create-session-request';
|
|
6
8
|
export * from './create-user';
|
|
7
9
|
export * from './create-workspace';
|
|
8
10
|
export * from './execute-request';
|
|
@@ -23,7 +25,11 @@ export * from './project-dir-response';
|
|
|
23
25
|
export * from './replace-request';
|
|
24
26
|
export * from './replace-result';
|
|
25
27
|
export * from './search-files-response';
|
|
28
|
+
export * from './session';
|
|
29
|
+
export * from './session-execute-request';
|
|
30
|
+
export * from './session-execute-response';
|
|
26
31
|
export * from './update-docker-registry';
|
|
32
|
+
export * from './usage-overview';
|
|
27
33
|
export * from './workspace';
|
|
28
34
|
export * from './workspace-info';
|
|
29
35
|
export * from './workspace-labels';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './api-key-list';
|
|
2
2
|
export * from './api-key-response';
|
|
3
|
+
export * from './command';
|
|
3
4
|
export * from './create-api-key';
|
|
4
5
|
export * from './create-docker-registry';
|
|
5
6
|
export * from './create-node';
|
|
7
|
+
export * from './create-session-request';
|
|
6
8
|
export * from './create-user';
|
|
7
9
|
export * from './create-workspace';
|
|
8
10
|
export * from './execute-request';
|
|
@@ -23,7 +25,11 @@ export * from './project-dir-response';
|
|
|
23
25
|
export * from './replace-request';
|
|
24
26
|
export * from './replace-result';
|
|
25
27
|
export * from './search-files-response';
|
|
28
|
+
export * from './session';
|
|
29
|
+
export * from './session-execute-request';
|
|
30
|
+
export * from './session-execute-response';
|
|
26
31
|
export * from './update-docker-registry';
|
|
32
|
+
export * from './usage-overview';
|
|
27
33
|
export * from './workspace';
|
|
28
34
|
export * from './workspace-info';
|
|
29
35
|
export * from './workspace-labels';
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SessionExecuteRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SessionExecuteRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The command to execute
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SessionExecuteRequest
|
|
22
|
+
*/
|
|
23
|
+
'command': string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to execute the command asynchronously
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof SessionExecuteRequest
|
|
28
|
+
*/
|
|
29
|
+
'async'?: boolean;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SessionExecuteResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SessionExecuteResponse {
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the executed command
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SessionExecuteResponse
|
|
22
|
+
*/
|
|
23
|
+
'cmdId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The output of the executed command
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SessionExecuteResponse
|
|
28
|
+
*/
|
|
29
|
+
'output'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The exit code of the executed command
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SessionExecuteResponse
|
|
34
|
+
*/
|
|
35
|
+
'exitCode'?: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { Command } from './command';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Session
|
|
17
|
+
*/
|
|
18
|
+
export interface Session {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the session
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Session
|
|
23
|
+
*/
|
|
24
|
+
'sessionId': string;
|
|
25
|
+
/**
|
|
26
|
+
* The list of commands executed in this session
|
|
27
|
+
* @type {Array<Command>}
|
|
28
|
+
* @memberof Session
|
|
29
|
+
*/
|
|
30
|
+
'commands': Array<Command>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UsageOverview
|
|
16
|
+
*/
|
|
17
|
+
export interface UsageOverview {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UsageOverview
|
|
22
|
+
*/
|
|
23
|
+
'totalCpuQuota': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UsageOverview
|
|
28
|
+
*/
|
|
29
|
+
'totalGpuQuota': number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof UsageOverview
|
|
34
|
+
*/
|
|
35
|
+
'totalMemoryQuota': number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof UsageOverview
|
|
40
|
+
*/
|
|
41
|
+
'totalDiskQuota': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof UsageOverview
|
|
46
|
+
*/
|
|
47
|
+
'totalWorkspaceQuota': number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof UsageOverview
|
|
52
|
+
*/
|
|
53
|
+
'concurrentWorkspaceQuota': number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UsageOverview
|
|
58
|
+
*/
|
|
59
|
+
'currentCpuUsage': number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UsageOverview
|
|
64
|
+
*/
|
|
65
|
+
'currentMemoryUsage': number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UsageOverview
|
|
70
|
+
*/
|
|
71
|
+
'currentDiskUsage': number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof UsageOverview
|
|
76
|
+
*/
|
|
77
|
+
'currentWorkspaces': number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof UsageOverview
|
|
82
|
+
*/
|
|
83
|
+
'concurrentWorkspaces': number;
|
|
84
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|