@daytonaio/api-client 0.11.0 → 0.13.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/README.md +2 -2
- package/api/toolbox-api.ts +169 -0
- package/api/workspace-api.ts +80 -0
- package/dist/api/toolbox-api.d.ts +79 -0
- package/dist/api/toolbox-api.js +159 -0
- package/dist/api/workspace-api.d.ts +37 -0
- package/dist/api/workspace-api.js +76 -0
- package/dist/esm/api/toolbox-api.d.ts +79 -0
- package/dist/esm/api/toolbox-api.js +159 -0
- package/dist/esm/api/workspace-api.d.ts +37 -0
- package/dist/esm/api/workspace-api.js +76 -0
- package/dist/esm/models/command.d.ts +2 -8
- package/dist/esm/models/create-workspace.d.ts +6 -0
- package/dist/esm/models/workspace.d.ts +6 -0
- package/dist/models/command.d.ts +2 -8
- package/dist/models/create-workspace.d.ts +6 -0
- package/dist/models/workspace.d.ts +6 -0
- package/models/command.ts +2 -8
- package/models/create-workspace.ts +6 -0
- package/models/workspace.ts +6 -0
- package/package.json +1 -1
|
@@ -71,6 +71,15 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
73
|
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Set workspace auto-stop interval
|
|
77
|
+
* @param {string} workspaceId ID of the workspace
|
|
78
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
setAutostopInterval: (workspaceId: string, interval: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
83
|
/**
|
|
75
84
|
*
|
|
76
85
|
* @summary Start workspace
|
|
@@ -161,6 +170,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
161
170
|
* @throws {RequiredError}
|
|
162
171
|
*/
|
|
163
172
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Set workspace auto-stop interval
|
|
176
|
+
* @param {string} workspaceId ID of the workspace
|
|
177
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
164
182
|
/**
|
|
165
183
|
*
|
|
166
184
|
* @summary Start workspace
|
|
@@ -251,6 +269,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
251
269
|
* @throws {RequiredError}
|
|
252
270
|
*/
|
|
253
271
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @summary Set workspace auto-stop interval
|
|
275
|
+
* @param {string} workspaceId ID of the workspace
|
|
276
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
254
281
|
/**
|
|
255
282
|
*
|
|
256
283
|
* @summary Start workspace
|
|
@@ -349,6 +376,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
349
376
|
* @memberof WorkspaceApi
|
|
350
377
|
*/
|
|
351
378
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Set workspace auto-stop interval
|
|
382
|
+
* @param {string} workspaceId ID of the workspace
|
|
383
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof WorkspaceApi
|
|
387
|
+
*/
|
|
388
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
352
389
|
/**
|
|
353
390
|
*
|
|
354
391
|
* @summary Start workspace
|
|
@@ -243,6 +243,42 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
243
243
|
options: localVarRequestOptions,
|
|
244
244
|
};
|
|
245
245
|
}),
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @summary Set workspace auto-stop interval
|
|
249
|
+
* @param {string} workspaceId ID of the workspace
|
|
250
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
255
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'workspaceId', workspaceId);
|
|
257
|
+
// verify required parameter 'interval' is not null or undefined
|
|
258
|
+
(0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
|
|
259
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
260
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
261
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
262
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
264
|
+
let baseOptions;
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
}
|
|
268
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
269
|
+
const localVarHeaderParameter = {};
|
|
270
|
+
const localVarQueryParameter = {};
|
|
271
|
+
// authentication oauth2 required
|
|
272
|
+
// oauth required
|
|
273
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
277
|
+
return {
|
|
278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
279
|
+
options: localVarRequestOptions,
|
|
280
|
+
};
|
|
281
|
+
}),
|
|
246
282
|
/**
|
|
247
283
|
*
|
|
248
284
|
* @summary Start workspace
|
|
@@ -488,6 +524,23 @@ const WorkspaceApiFp = function (configuration) {
|
|
|
488
524
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
525
|
});
|
|
490
526
|
},
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @summary Set workspace auto-stop interval
|
|
530
|
+
* @param {string} workspaceId ID of the workspace
|
|
531
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
537
|
+
var _a, _b, _c;
|
|
538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
539
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
540
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
541
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
542
|
+
});
|
|
543
|
+
},
|
|
491
544
|
/**
|
|
492
545
|
*
|
|
493
546
|
* @summary Start workspace
|
|
@@ -626,6 +679,17 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
626
679
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
627
680
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
628
681
|
},
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @summary Set workspace auto-stop interval
|
|
685
|
+
* @param {string} workspaceId ID of the workspace
|
|
686
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @throws {RequiredError}
|
|
689
|
+
*/
|
|
690
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
691
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
692
|
+
},
|
|
629
693
|
/**
|
|
630
694
|
*
|
|
631
695
|
* @summary Start workspace
|
|
@@ -746,6 +810,18 @@ class WorkspaceApi extends base_1.BaseAPI {
|
|
|
746
810
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
747
811
|
return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
748
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
*
|
|
815
|
+
* @summary Set workspace auto-stop interval
|
|
816
|
+
* @param {string} workspaceId ID of the workspace
|
|
817
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
* @memberof WorkspaceApi
|
|
821
|
+
*/
|
|
822
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
823
|
+
return (0, exports.WorkspaceApiFp)(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
}
|
|
749
825
|
/**
|
|
750
826
|
*
|
|
751
827
|
* @summary Start workspace
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { Command } from '../models';
|
|
15
16
|
import type { CompletionList } from '../models';
|
|
16
17
|
import type { CreateSessionRequest } from '../models';
|
|
17
18
|
import type { ExecuteRequest } from '../models';
|
|
@@ -135,6 +136,25 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
|
|
|
135
136
|
* @throws {RequiredError}
|
|
136
137
|
*/
|
|
137
138
|
getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
139
|
+
/**
|
|
140
|
+
* Get session by ID
|
|
141
|
+
* @summary Get session
|
|
142
|
+
* @param {string} workspaceId
|
|
143
|
+
* @param {string} sessionId
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
getSession: (workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
148
|
+
/**
|
|
149
|
+
* Get session command by ID
|
|
150
|
+
* @summary Get session command
|
|
151
|
+
* @param {string} workspaceId
|
|
152
|
+
* @param {string} sessionId
|
|
153
|
+
* @param {string} commandId
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
getSessionCommand: (workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
138
158
|
/**
|
|
139
159
|
* Get logs for a specific command in a session
|
|
140
160
|
* @summary Get command logs
|
|
@@ -459,6 +479,25 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
459
479
|
* @throws {RequiredError}
|
|
460
480
|
*/
|
|
461
481
|
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
|
|
482
|
+
/**
|
|
483
|
+
* Get session by ID
|
|
484
|
+
* @summary Get session
|
|
485
|
+
* @param {string} workspaceId
|
|
486
|
+
* @param {string} sessionId
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
|
|
491
|
+
/**
|
|
492
|
+
* Get session command by ID
|
|
493
|
+
* @summary Get session command
|
|
494
|
+
* @param {string} workspaceId
|
|
495
|
+
* @param {string} sessionId
|
|
496
|
+
* @param {string} commandId
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>>;
|
|
462
501
|
/**
|
|
463
502
|
* Get logs for a specific command in a session
|
|
464
503
|
* @summary Get command logs
|
|
@@ -783,6 +822,25 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
783
822
|
* @throws {RequiredError}
|
|
784
823
|
*/
|
|
785
824
|
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
|
|
825
|
+
/**
|
|
826
|
+
* Get session by ID
|
|
827
|
+
* @summary Get session
|
|
828
|
+
* @param {string} workspaceId
|
|
829
|
+
* @param {string} sessionId
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
|
|
834
|
+
/**
|
|
835
|
+
* Get session command by ID
|
|
836
|
+
* @summary Get session command
|
|
837
|
+
* @param {string} workspaceId
|
|
838
|
+
* @param {string} sessionId
|
|
839
|
+
* @param {string} commandId
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<Command>;
|
|
786
844
|
/**
|
|
787
845
|
* Get logs for a specific command in a session
|
|
788
846
|
* @summary Get command logs
|
|
@@ -1119,6 +1177,27 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
1119
1177
|
* @memberof ToolboxApi
|
|
1120
1178
|
*/
|
|
1121
1179
|
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Get session by ID
|
|
1182
|
+
* @summary Get session
|
|
1183
|
+
* @param {string} workspaceId
|
|
1184
|
+
* @param {string} sessionId
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
* @memberof ToolboxApi
|
|
1188
|
+
*/
|
|
1189
|
+
getSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
|
|
1190
|
+
/**
|
|
1191
|
+
* Get session command by ID
|
|
1192
|
+
* @summary Get session command
|
|
1193
|
+
* @param {string} workspaceId
|
|
1194
|
+
* @param {string} sessionId
|
|
1195
|
+
* @param {string} commandId
|
|
1196
|
+
* @param {*} [options] Override http request option.
|
|
1197
|
+
* @throws {RequiredError}
|
|
1198
|
+
* @memberof ToolboxApi
|
|
1199
|
+
*/
|
|
1200
|
+
getSessionCommand(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Command, any>>;
|
|
1122
1201
|
/**
|
|
1123
1202
|
* Get logs for a specific command in a session
|
|
1124
1203
|
* @summary Get command logs
|
|
@@ -417,6 +417,82 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
417
417
|
options: localVarRequestOptions,
|
|
418
418
|
};
|
|
419
419
|
}),
|
|
420
|
+
/**
|
|
421
|
+
* Get session by ID
|
|
422
|
+
* @summary Get session
|
|
423
|
+
* @param {string} workspaceId
|
|
424
|
+
* @param {string} sessionId
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
getSession: (workspaceId_1, sessionId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, ...args_1], void 0, function* (workspaceId, sessionId, options = {}) {
|
|
429
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
430
|
+
assertParamExists('getSession', 'workspaceId', workspaceId);
|
|
431
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
432
|
+
assertParamExists('getSession', 'sessionId', sessionId);
|
|
433
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
|
|
434
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
435
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
437
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
438
|
+
let baseOptions;
|
|
439
|
+
if (configuration) {
|
|
440
|
+
baseOptions = configuration.baseOptions;
|
|
441
|
+
}
|
|
442
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
443
|
+
const localVarHeaderParameter = {};
|
|
444
|
+
const localVarQueryParameter = {};
|
|
445
|
+
// authentication oauth2 required
|
|
446
|
+
// oauth required
|
|
447
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
451
|
+
return {
|
|
452
|
+
url: toPathString(localVarUrlObj),
|
|
453
|
+
options: localVarRequestOptions,
|
|
454
|
+
};
|
|
455
|
+
}),
|
|
456
|
+
/**
|
|
457
|
+
* Get session command by ID
|
|
458
|
+
* @summary Get session command
|
|
459
|
+
* @param {string} workspaceId
|
|
460
|
+
* @param {string} sessionId
|
|
461
|
+
* @param {string} commandId
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
getSessionCommand: (workspaceId_1, sessionId_1, commandId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, commandId_1, ...args_1], void 0, function* (workspaceId, sessionId, commandId, options = {}) {
|
|
466
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
467
|
+
assertParamExists('getSessionCommand', 'workspaceId', workspaceId);
|
|
468
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
469
|
+
assertParamExists('getSessionCommand', 'sessionId', sessionId);
|
|
470
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
471
|
+
assertParamExists('getSessionCommand', 'commandId', commandId);
|
|
472
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}`
|
|
473
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
474
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
475
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
476
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
477
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
478
|
+
let baseOptions;
|
|
479
|
+
if (configuration) {
|
|
480
|
+
baseOptions = configuration.baseOptions;
|
|
481
|
+
}
|
|
482
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
483
|
+
const localVarHeaderParameter = {};
|
|
484
|
+
const localVarQueryParameter = {};
|
|
485
|
+
// authentication oauth2 required
|
|
486
|
+
// oauth required
|
|
487
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
+
return {
|
|
492
|
+
url: toPathString(localVarUrlObj),
|
|
493
|
+
options: localVarRequestOptions,
|
|
494
|
+
};
|
|
495
|
+
}),
|
|
420
496
|
/**
|
|
421
497
|
* Get logs for a specific command in a session
|
|
422
498
|
* @summary Get command logs
|
|
@@ -1547,6 +1623,41 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1547
1623
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1548
1624
|
});
|
|
1549
1625
|
},
|
|
1626
|
+
/**
|
|
1627
|
+
* Get session by ID
|
|
1628
|
+
* @summary Get session
|
|
1629
|
+
* @param {string} workspaceId
|
|
1630
|
+
* @param {string} sessionId
|
|
1631
|
+
* @param {*} [options] Override http request option.
|
|
1632
|
+
* @throws {RequiredError}
|
|
1633
|
+
*/
|
|
1634
|
+
getSession(workspaceId, sessionId, options) {
|
|
1635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1636
|
+
var _a, _b, _c;
|
|
1637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSession(workspaceId, sessionId, options);
|
|
1638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1639
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.getSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1641
|
+
});
|
|
1642
|
+
},
|
|
1643
|
+
/**
|
|
1644
|
+
* Get session command by ID
|
|
1645
|
+
* @summary Get session command
|
|
1646
|
+
* @param {string} workspaceId
|
|
1647
|
+
* @param {string} sessionId
|
|
1648
|
+
* @param {string} commandId
|
|
1649
|
+
* @param {*} [options] Override http request option.
|
|
1650
|
+
* @throws {RequiredError}
|
|
1651
|
+
*/
|
|
1652
|
+
getSessionCommand(workspaceId, sessionId, commandId, options) {
|
|
1653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1654
|
+
var _a, _b, _c;
|
|
1655
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionCommand(workspaceId, sessionId, commandId, options);
|
|
1656
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1657
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.getSessionCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1658
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1659
|
+
});
|
|
1660
|
+
},
|
|
1550
1661
|
/**
|
|
1551
1662
|
* Get logs for a specific command in a session
|
|
1552
1663
|
* @summary Get command logs
|
|
@@ -2086,6 +2197,29 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
2086
2197
|
getProjectDir(workspaceId, options) {
|
|
2087
2198
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
2088
2199
|
},
|
|
2200
|
+
/**
|
|
2201
|
+
* Get session by ID
|
|
2202
|
+
* @summary Get session
|
|
2203
|
+
* @param {string} workspaceId
|
|
2204
|
+
* @param {string} sessionId
|
|
2205
|
+
* @param {*} [options] Override http request option.
|
|
2206
|
+
* @throws {RequiredError}
|
|
2207
|
+
*/
|
|
2208
|
+
getSession(workspaceId, sessionId, options) {
|
|
2209
|
+
return localVarFp.getSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
|
|
2210
|
+
},
|
|
2211
|
+
/**
|
|
2212
|
+
* Get session command by ID
|
|
2213
|
+
* @summary Get session command
|
|
2214
|
+
* @param {string} workspaceId
|
|
2215
|
+
* @param {string} sessionId
|
|
2216
|
+
* @param {string} commandId
|
|
2217
|
+
* @param {*} [options] Override http request option.
|
|
2218
|
+
* @throws {RequiredError}
|
|
2219
|
+
*/
|
|
2220
|
+
getSessionCommand(workspaceId, sessionId, commandId, options) {
|
|
2221
|
+
return localVarFp.getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
2222
|
+
},
|
|
2089
2223
|
/**
|
|
2090
2224
|
* Get logs for a specific command in a session
|
|
2091
2225
|
* @summary Get command logs
|
|
@@ -2491,6 +2625,31 @@ export class ToolboxApi extends BaseAPI {
|
|
|
2491
2625
|
getProjectDir(workspaceId, options) {
|
|
2492
2626
|
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
2493
2627
|
}
|
|
2628
|
+
/**
|
|
2629
|
+
* Get session by ID
|
|
2630
|
+
* @summary Get session
|
|
2631
|
+
* @param {string} workspaceId
|
|
2632
|
+
* @param {string} sessionId
|
|
2633
|
+
* @param {*} [options] Override http request option.
|
|
2634
|
+
* @throws {RequiredError}
|
|
2635
|
+
* @memberof ToolboxApi
|
|
2636
|
+
*/
|
|
2637
|
+
getSession(workspaceId, sessionId, options) {
|
|
2638
|
+
return ToolboxApiFp(this.configuration).getSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
2639
|
+
}
|
|
2640
|
+
/**
|
|
2641
|
+
* Get session command by ID
|
|
2642
|
+
* @summary Get session command
|
|
2643
|
+
* @param {string} workspaceId
|
|
2644
|
+
* @param {string} sessionId
|
|
2645
|
+
* @param {string} commandId
|
|
2646
|
+
* @param {*} [options] Override http request option.
|
|
2647
|
+
* @throws {RequiredError}
|
|
2648
|
+
* @memberof ToolboxApi
|
|
2649
|
+
*/
|
|
2650
|
+
getSessionCommand(workspaceId, sessionId, commandId, options) {
|
|
2651
|
+
return ToolboxApiFp(this.configuration).getSessionCommand(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
2652
|
+
}
|
|
2494
2653
|
/**
|
|
2495
2654
|
* Get logs for a specific command in a session
|
|
2496
2655
|
* @summary Get command logs
|
|
@@ -71,6 +71,15 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
*/
|
|
73
73
|
replaceLabels: (workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @summary Set workspace auto-stop interval
|
|
77
|
+
* @param {string} workspaceId ID of the workspace
|
|
78
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
setAutostopInterval: (workspaceId: string, interval: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
74
83
|
/**
|
|
75
84
|
*
|
|
76
85
|
* @summary Start workspace
|
|
@@ -161,6 +170,15 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
161
170
|
* @throws {RequiredError}
|
|
162
171
|
*/
|
|
163
172
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>>;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Set workspace auto-stop interval
|
|
176
|
+
* @param {string} workspaceId ID of the workspace
|
|
177
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
164
182
|
/**
|
|
165
183
|
*
|
|
166
184
|
* @summary Start workspace
|
|
@@ -251,6 +269,15 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
251
269
|
* @throws {RequiredError}
|
|
252
270
|
*/
|
|
253
271
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels>;
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @summary Set workspace auto-stop interval
|
|
275
|
+
* @param {string} workspaceId ID of the workspace
|
|
276
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
*/
|
|
280
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
254
281
|
/**
|
|
255
282
|
*
|
|
256
283
|
* @summary Start workspace
|
|
@@ -349,6 +376,16 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
349
376
|
* @memberof WorkspaceApi
|
|
350
377
|
*/
|
|
351
378
|
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabels, any>>;
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary Set workspace auto-stop interval
|
|
382
|
+
* @param {string} workspaceId ID of the workspace
|
|
383
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
* @memberof WorkspaceApi
|
|
387
|
+
*/
|
|
388
|
+
setAutostopInterval(workspaceId: string, interval: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
352
389
|
/**
|
|
353
390
|
*
|
|
354
391
|
* @summary Start workspace
|
|
@@ -240,6 +240,42 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
240
240
|
options: localVarRequestOptions,
|
|
241
241
|
};
|
|
242
242
|
}),
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary Set workspace auto-stop interval
|
|
246
|
+
* @param {string} workspaceId ID of the workspace
|
|
247
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
setAutostopInterval: (workspaceId_1, interval_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, ...args_1], void 0, function* (workspaceId, interval, options = {}) {
|
|
252
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
253
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId);
|
|
254
|
+
// verify required parameter 'interval' is not null or undefined
|
|
255
|
+
assertParamExists('setAutostopInterval', 'interval', interval);
|
|
256
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
257
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
258
|
+
.replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
|
|
259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
261
|
+
let baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
266
|
+
const localVarHeaderParameter = {};
|
|
267
|
+
const localVarQueryParameter = {};
|
|
268
|
+
// authentication oauth2 required
|
|
269
|
+
// oauth required
|
|
270
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
271
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
272
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
274
|
+
return {
|
|
275
|
+
url: toPathString(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
}),
|
|
243
279
|
/**
|
|
244
280
|
*
|
|
245
281
|
* @summary Start workspace
|
|
@@ -484,6 +520,23 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
484
520
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
485
521
|
});
|
|
486
522
|
},
|
|
523
|
+
/**
|
|
524
|
+
*
|
|
525
|
+
* @summary Set workspace auto-stop interval
|
|
526
|
+
* @param {string} workspaceId ID of the workspace
|
|
527
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
*/
|
|
531
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
533
|
+
var _a, _b, _c;
|
|
534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, options);
|
|
535
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
536
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
537
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
538
|
+
});
|
|
539
|
+
},
|
|
487
540
|
/**
|
|
488
541
|
*
|
|
489
542
|
* @summary Start workspace
|
|
@@ -621,6 +674,17 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
621
674
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
622
675
|
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
623
676
|
},
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @summary Set workspace auto-stop interval
|
|
680
|
+
* @param {string} workspaceId ID of the workspace
|
|
681
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
686
|
+
return localVarFp.setAutostopInterval(workspaceId, interval, options).then((request) => request(axios, basePath));
|
|
687
|
+
},
|
|
624
688
|
/**
|
|
625
689
|
*
|
|
626
690
|
* @summary Start workspace
|
|
@@ -740,6 +804,18 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
740
804
|
replaceLabels(workspaceId, workspaceLabels, options) {
|
|
741
805
|
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
742
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @summary Set workspace auto-stop interval
|
|
810
|
+
* @param {string} workspaceId ID of the workspace
|
|
811
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
* @memberof WorkspaceApi
|
|
815
|
+
*/
|
|
816
|
+
setAutostopInterval(workspaceId, interval, options) {
|
|
817
|
+
return WorkspaceApiFp(this.configuration).setAutostopInterval(workspaceId, interval, options).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
}
|
|
743
819
|
/**
|
|
744
820
|
*
|
|
745
821
|
* @summary Start workspace
|
|
@@ -20,23 +20,17 @@ export interface Command {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof Command
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'id': string;
|
|
24
24
|
/**
|
|
25
25
|
* The command that was executed
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof Command
|
|
28
28
|
*/
|
|
29
29
|
'command': string;
|
|
30
|
-
/**
|
|
31
|
-
* The output of the command
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Command
|
|
34
|
-
*/
|
|
35
|
-
'output': string;
|
|
36
30
|
/**
|
|
37
31
|
* The exit code of the command
|
|
38
32
|
* @type {number}
|
|
39
33
|
* @memberof Command
|
|
40
34
|
*/
|
|
41
|
-
'exitCode'
|
|
35
|
+
'exitCode'?: number;
|
|
42
36
|
}
|