@daytonaio/api-client 0.7.0 → 0.9.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 +16 -1
- package/README.md +2 -2
- package/api/toolbox-api.ts +1149 -104
- 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 +473 -0
- package/dist/api/toolbox-api.js +967 -1
- 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 +473 -0
- package/dist/esm/api/toolbox-api.js +967 -1
- 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/completion-context.d.ts +30 -0
- package/dist/esm/models/completion-context.js +14 -0
- package/dist/esm/models/completion-item.d.ts +60 -0
- package/dist/esm/models/completion-item.js +14 -0
- package/dist/esm/models/completion-list.d.ts +31 -0
- package/dist/esm/models/completion-list.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 +16 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/esm/models/lsp-completion-params.d.ts +50 -0
- package/dist/esm/models/lsp-completion-params.js +14 -0
- package/dist/esm/models/lsp-document-request.d.ts +36 -0
- package/dist/esm/models/lsp-document-request.js +14 -0
- package/dist/esm/models/lsp-location.d.ts +31 -0
- package/dist/esm/models/lsp-location.js +14 -0
- package/dist/esm/models/lsp-server-request.d.ts +30 -0
- package/dist/esm/models/lsp-server-request.js +14 -0
- package/dist/esm/models/lsp-symbol.d.ts +37 -0
- package/dist/esm/models/lsp-symbol.js +14 -0
- package/dist/esm/models/position.d.ts +30 -0
- package/dist/esm/models/position.js +14 -0
- package/dist/esm/models/range.d.ts +31 -0
- package/dist/esm/models/range.js +14 -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/completion-context.d.ts +30 -0
- package/dist/models/completion-context.js +15 -0
- package/dist/models/completion-item.d.ts +60 -0
- package/dist/models/completion-item.js +15 -0
- package/dist/models/completion-list.d.ts +31 -0
- package/dist/models/completion-list.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 +16 -0
- package/dist/models/index.js +16 -0
- package/dist/models/lsp-completion-params.d.ts +50 -0
- package/dist/models/lsp-completion-params.js +15 -0
- package/dist/models/lsp-document-request.d.ts +36 -0
- package/dist/models/lsp-document-request.js +15 -0
- package/dist/models/lsp-location.d.ts +31 -0
- package/dist/models/lsp-location.js +15 -0
- package/dist/models/lsp-server-request.d.ts +30 -0
- package/dist/models/lsp-server-request.js +15 -0
- package/dist/models/lsp-symbol.d.ts +37 -0
- package/dist/models/lsp-symbol.js +15 -0
- package/dist/models/position.d.ts +30 -0
- package/dist/models/position.js +15 -0
- package/dist/models/range.d.ts +31 -0
- package/dist/models/range.js +15 -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/completion-context.ts +36 -0
- package/models/completion-item.ts +66 -0
- package/models/completion-list.ts +39 -0
- package/models/create-session-request.ts +30 -0
- package/models/index.ts +16 -0
- package/models/lsp-completion-params.ts +60 -0
- package/models/lsp-document-request.ts +42 -0
- package/models/lsp-location.ts +39 -0
- package/models/lsp-server-request.ts +36 -0
- package/models/lsp-symbol.ts +45 -0
- package/models/position.ts +36 -0
- package/models/range.ts +39 -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
package/dist/api/users-api.d.ts
CHANGED
|
@@ -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 { CreateUser } from '../models';
|
|
16
|
+
import type { UsageOverview } from '../models';
|
|
16
17
|
/**
|
|
17
18
|
* UsersApi - axios parameter creator
|
|
18
19
|
* @export
|
|
@@ -26,6 +27,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
26
27
|
* @throws {RequiredError}
|
|
27
28
|
*/
|
|
28
29
|
createUser: (createUser: CreateUser, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @summary Get user current usage overview
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
getUserUsageOverview: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
37
|
/**
|
|
30
38
|
*
|
|
31
39
|
* @summary List all users
|
|
@@ -55,6 +63,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
55
63
|
* @throws {RequiredError}
|
|
56
64
|
*/
|
|
57
65
|
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @summary Get user current usage overview
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
getUserUsageOverview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsageOverview>>;
|
|
58
73
|
/**
|
|
59
74
|
*
|
|
60
75
|
* @summary List all users
|
|
@@ -84,6 +99,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
84
99
|
* @throws {RequiredError}
|
|
85
100
|
*/
|
|
86
101
|
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary Get user current usage overview
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
getUserUsageOverview(options?: RawAxiosRequestConfig): AxiosPromise<UsageOverview>;
|
|
87
109
|
/**
|
|
88
110
|
*
|
|
89
111
|
* @summary List all users
|
|
@@ -116,6 +138,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
116
138
|
* @memberof UsersApi
|
|
117
139
|
*/
|
|
118
140
|
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @summary Get user current usage overview
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
* @memberof UsersApi
|
|
147
|
+
*/
|
|
148
|
+
getUserUsageOverview(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UsageOverview, any>>;
|
|
119
149
|
/**
|
|
120
150
|
*
|
|
121
151
|
* @summary List all users
|
package/dist/api/users-api.js
CHANGED
|
@@ -68,6 +68,34 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
68
68
|
options: localVarRequestOptions,
|
|
69
69
|
};
|
|
70
70
|
}),
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary Get user current usage overview
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
getUserUsageOverview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
78
|
+
const localVarPath = `/users/overview`;
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// authentication oauth2 required
|
|
89
|
+
// oauth required
|
|
90
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
91
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
return {
|
|
95
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
71
99
|
/**
|
|
72
100
|
*
|
|
73
101
|
* @summary List all users
|
|
@@ -154,6 +182,21 @@ const UsersApiFp = function (configuration) {
|
|
|
154
182
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
155
183
|
});
|
|
156
184
|
},
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @summary Get user current usage overview
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
getUserUsageOverview(options) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
var _a, _b, _c;
|
|
194
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserUsageOverview(options);
|
|
195
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
196
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserUsageOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
197
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
198
|
+
});
|
|
199
|
+
},
|
|
157
200
|
/**
|
|
158
201
|
*
|
|
159
202
|
* @summary List all users
|
|
@@ -205,6 +248,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
205
248
|
createUser(createUser, options) {
|
|
206
249
|
return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
|
|
207
250
|
},
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @summary Get user current usage overview
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
getUserUsageOverview(options) {
|
|
258
|
+
return localVarFp.getUserUsageOverview(options).then((request) => request(axios, basePath));
|
|
259
|
+
},
|
|
208
260
|
/**
|
|
209
261
|
*
|
|
210
262
|
* @summary List all users
|
|
@@ -245,6 +297,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
245
297
|
createUser(createUser, options) {
|
|
246
298
|
return (0, exports.UsersApiFp)(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
|
|
247
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Get user current usage overview
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
* @memberof UsersApi
|
|
306
|
+
*/
|
|
307
|
+
getUserUsageOverview(options) {
|
|
308
|
+
return (0, exports.UsersApiFp)(this.configuration).getUserUsageOverview(options).then((request) => request(this.axios, this.basePath));
|
|
309
|
+
}
|
|
248
310
|
/**
|
|
249
311
|
*
|
|
250
312
|
* @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
|
}
|
|
@@ -343,6 +343,42 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
343
343
|
options: localVarRequestOptions,
|
|
344
344
|
};
|
|
345
345
|
}),
|
|
346
|
+
/**
|
|
347
|
+
*
|
|
348
|
+
* @param {string} workspaceId
|
|
349
|
+
* @param {object} body
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
workspaceControllerResizeWorkspace: (workspaceId_1, body_1, ...args_1) => __awaiter(this, [workspaceId_1, body_1, ...args_1], void 0, function* (workspaceId, body, options = {}) {
|
|
354
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
355
|
+
(0, common_1.assertParamExists)('workspaceControllerResizeWorkspace', 'workspaceId', workspaceId);
|
|
356
|
+
// verify required parameter 'body' is not null or undefined
|
|
357
|
+
(0, common_1.assertParamExists)('workspaceControllerResizeWorkspace', 'body', body);
|
|
358
|
+
const localVarPath = `/workspace/{workspaceId}/resize`
|
|
359
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
361
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
362
|
+
let baseOptions;
|
|
363
|
+
if (configuration) {
|
|
364
|
+
baseOptions = configuration.baseOptions;
|
|
365
|
+
}
|
|
366
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
367
|
+
const localVarHeaderParameter = {};
|
|
368
|
+
const localVarQueryParameter = {};
|
|
369
|
+
// authentication oauth2 required
|
|
370
|
+
// oauth required
|
|
371
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
372
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
373
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
377
|
+
return {
|
|
378
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
379
|
+
options: localVarRequestOptions,
|
|
380
|
+
};
|
|
381
|
+
}),
|
|
346
382
|
};
|
|
347
383
|
};
|
|
348
384
|
exports.WorkspaceApiAxiosParamCreator = WorkspaceApiAxiosParamCreator;
|
|
@@ -501,6 +537,22 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
501
537
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
538
|
});
|
|
503
539
|
},
|
|
540
|
+
/**
|
|
541
|
+
*
|
|
542
|
+
* @param {string} workspaceId
|
|
543
|
+
* @param {object} body
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
548
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
549
|
+
var _a, _b, _c;
|
|
550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerResizeWorkspace(workspaceId, body, options);
|
|
551
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
552
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.workspaceControllerResizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
553
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
554
|
+
});
|
|
555
|
+
},
|
|
504
556
|
};
|
|
505
557
|
};
|
|
506
558
|
exports.WorkspaceApiFp = WorkspaceApiFp;
|
|
@@ -605,6 +657,16 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
605
657
|
updatePublicStatus(workspaceId, isPublic, options) {
|
|
606
658
|
return localVarFp.updatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
|
|
607
659
|
},
|
|
660
|
+
/**
|
|
661
|
+
*
|
|
662
|
+
* @param {string} workspaceId
|
|
663
|
+
* @param {object} body
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
668
|
+
return localVarFp.workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(axios, basePath));
|
|
669
|
+
},
|
|
608
670
|
};
|
|
609
671
|
};
|
|
610
672
|
exports.WorkspaceApiFactory = WorkspaceApiFactory;
|
|
@@ -718,5 +780,16 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
718
780
|
updatePublicStatus(workspaceId, isPublic, options) {
|
|
719
781
|
return (0, exports.WorkspaceApiFp)(this.configuration).updatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
|
|
720
782
|
}
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @param {string} workspaceId
|
|
786
|
+
* @param {object} body
|
|
787
|
+
* @param {*} [options] Override http request option.
|
|
788
|
+
* @throws {RequiredError}
|
|
789
|
+
* @memberof WorkspaceApi
|
|
790
|
+
*/
|
|
791
|
+
workspaceControllerResizeWorkspace(workspaceId, body, options) {
|
|
792
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(this.axios, this.basePath));
|
|
793
|
+
}
|
|
721
794
|
}
|
|
722
795
|
exports.WorkspaceApi = WorkspaceApi;
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -28,7 +28,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/api-keys-api"), exports);
|
|
31
|
-
__exportStar(require("./api/app-api"), exports);
|
|
32
31
|
__exportStar(require("./api/docker-registry-api"), exports);
|
|
33
32
|
__exportStar(require("./api/nodes-api"), exports);
|
|
34
33
|
__exportStar(require("./api/toolbox-api"), exports);
|