@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
package/dist/api/toolbox-api.js
CHANGED
|
@@ -79,6 +79,43 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
79
79
|
options: localVarRequestOptions,
|
|
80
80
|
};
|
|
81
81
|
}),
|
|
82
|
+
/**
|
|
83
|
+
* Create a new session in the workspace
|
|
84
|
+
* @summary Create session
|
|
85
|
+
* @param {string} workspaceId
|
|
86
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
createSession: (workspaceId_1, createSessionRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, createSessionRequest_1, ...args_1], void 0, function* (workspaceId, createSessionRequest, options = {}) {
|
|
91
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
92
|
+
(0, common_1.assertParamExists)('createSession', 'workspaceId', workspaceId);
|
|
93
|
+
// verify required parameter 'createSessionRequest' is not null or undefined
|
|
94
|
+
(0, common_1.assertParamExists)('createSession', 'createSessionRequest', createSessionRequest);
|
|
95
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
96
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
if (configuration) {
|
|
101
|
+
baseOptions = configuration.baseOptions;
|
|
102
|
+
}
|
|
103
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
104
|
+
const localVarHeaderParameter = {};
|
|
105
|
+
const localVarQueryParameter = {};
|
|
106
|
+
// authentication oauth2 required
|
|
107
|
+
// oauth required
|
|
108
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
113
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSessionRequest, localVarRequestOptions, configuration);
|
|
114
|
+
return {
|
|
115
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
116
|
+
options: localVarRequestOptions,
|
|
117
|
+
};
|
|
118
|
+
}),
|
|
82
119
|
/**
|
|
83
120
|
* Delete file inside workspace
|
|
84
121
|
* @summary Delete file
|
|
@@ -117,6 +154,42 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
117
154
|
options: localVarRequestOptions,
|
|
118
155
|
};
|
|
119
156
|
}),
|
|
157
|
+
/**
|
|
158
|
+
* Delete a specific session
|
|
159
|
+
* @summary Delete session
|
|
160
|
+
* @param {string} workspaceId
|
|
161
|
+
* @param {string} sessionId
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
deleteSession: (workspaceId_1, sessionId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, ...args_1], void 0, function* (workspaceId, sessionId, options = {}) {
|
|
166
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('deleteSession', 'workspaceId', workspaceId);
|
|
168
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
169
|
+
(0, common_1.assertParamExists)('deleteSession', 'sessionId', sessionId);
|
|
170
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
|
|
171
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
172
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
173
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
|
+
let baseOptions;
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
}
|
|
179
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
180
|
+
const localVarHeaderParameter = {};
|
|
181
|
+
const localVarQueryParameter = {};
|
|
182
|
+
// authentication oauth2 required
|
|
183
|
+
// oauth required
|
|
184
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
185
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
+
return {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
}),
|
|
120
193
|
/**
|
|
121
194
|
* Download file from workspace
|
|
122
195
|
* @summary Download file
|
|
@@ -192,6 +265,47 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
192
265
|
options: localVarRequestOptions,
|
|
193
266
|
};
|
|
194
267
|
}),
|
|
268
|
+
/**
|
|
269
|
+
* Execute a command in a specific session
|
|
270
|
+
* @summary Execute command in session
|
|
271
|
+
* @param {string} workspaceId
|
|
272
|
+
* @param {string} sessionId
|
|
273
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
executeSessionCommand: (workspaceId_1, sessionId_1, sessionExecuteRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, sessionExecuteRequest_1, ...args_1], void 0, function* (workspaceId, sessionId, sessionExecuteRequest, options = {}) {
|
|
278
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
279
|
+
(0, common_1.assertParamExists)('executeSessionCommand', 'workspaceId', workspaceId);
|
|
280
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
281
|
+
(0, common_1.assertParamExists)('executeSessionCommand', 'sessionId', sessionId);
|
|
282
|
+
// verify required parameter 'sessionExecuteRequest' is not null or undefined
|
|
283
|
+
(0, common_1.assertParamExists)('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest);
|
|
284
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/exec`
|
|
285
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
286
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
289
|
+
let baseOptions;
|
|
290
|
+
if (configuration) {
|
|
291
|
+
baseOptions = configuration.baseOptions;
|
|
292
|
+
}
|
|
293
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
294
|
+
const localVarHeaderParameter = {};
|
|
295
|
+
const localVarQueryParameter = {};
|
|
296
|
+
// authentication oauth2 required
|
|
297
|
+
// oauth required
|
|
298
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
299
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
300
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
301
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
303
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sessionExecuteRequest, localVarRequestOptions, configuration);
|
|
304
|
+
return {
|
|
305
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
306
|
+
options: localVarRequestOptions,
|
|
307
|
+
};
|
|
308
|
+
}),
|
|
195
309
|
/**
|
|
196
310
|
* Search for text/pattern inside workspace files
|
|
197
311
|
* @summary Search for text/pattern in files
|
|
@@ -306,6 +420,46 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
306
420
|
options: localVarRequestOptions,
|
|
307
421
|
};
|
|
308
422
|
}),
|
|
423
|
+
/**
|
|
424
|
+
* Get logs for a specific command in a session
|
|
425
|
+
* @summary Get command logs
|
|
426
|
+
* @param {string} workspaceId
|
|
427
|
+
* @param {string} sessionId
|
|
428
|
+
* @param {string} commandId
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
getSessionCommandLogs: (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 = {}) {
|
|
433
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
434
|
+
(0, common_1.assertParamExists)('getSessionCommandLogs', 'workspaceId', workspaceId);
|
|
435
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
436
|
+
(0, common_1.assertParamExists)('getSessionCommandLogs', 'sessionId', sessionId);
|
|
437
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
438
|
+
(0, common_1.assertParamExists)('getSessionCommandLogs', 'commandId', commandId);
|
|
439
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
|
|
440
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
441
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
442
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
443
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
444
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
445
|
+
let baseOptions;
|
|
446
|
+
if (configuration) {
|
|
447
|
+
baseOptions = configuration.baseOptions;
|
|
448
|
+
}
|
|
449
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
450
|
+
const localVarHeaderParameter = {};
|
|
451
|
+
const localVarQueryParameter = {};
|
|
452
|
+
// authentication oauth2 required
|
|
453
|
+
// oauth required
|
|
454
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
455
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
456
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
457
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
458
|
+
return {
|
|
459
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
460
|
+
options: localVarRequestOptions,
|
|
461
|
+
};
|
|
462
|
+
}),
|
|
309
463
|
/**
|
|
310
464
|
* Add files to git commit
|
|
311
465
|
* @summary Add files
|
|
@@ -678,6 +832,38 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
678
832
|
options: localVarRequestOptions,
|
|
679
833
|
};
|
|
680
834
|
}),
|
|
835
|
+
/**
|
|
836
|
+
* List all active sessions in the workspace
|
|
837
|
+
* @summary List sessions
|
|
838
|
+
* @param {string} workspaceId
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
listSessions: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
843
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
844
|
+
(0, common_1.assertParamExists)('listSessions', 'workspaceId', workspaceId);
|
|
845
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
846
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
848
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
849
|
+
let baseOptions;
|
|
850
|
+
if (configuration) {
|
|
851
|
+
baseOptions = configuration.baseOptions;
|
|
852
|
+
}
|
|
853
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
854
|
+
const localVarHeaderParameter = {};
|
|
855
|
+
const localVarQueryParameter = {};
|
|
856
|
+
// authentication oauth2 required
|
|
857
|
+
// oauth required
|
|
858
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
859
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
860
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
861
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
862
|
+
return {
|
|
863
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
864
|
+
options: localVarRequestOptions,
|
|
865
|
+
};
|
|
866
|
+
}),
|
|
681
867
|
/**
|
|
682
868
|
* Move file inside workspace
|
|
683
869
|
* @summary Move file
|
|
@@ -926,6 +1112,23 @@ const ToolboxApiFp = function (configuration) {
|
|
|
926
1112
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
927
1113
|
});
|
|
928
1114
|
},
|
|
1115
|
+
/**
|
|
1116
|
+
* Create a new session in the workspace
|
|
1117
|
+
* @summary Create session
|
|
1118
|
+
* @param {string} workspaceId
|
|
1119
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
*/
|
|
1123
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1125
|
+
var _a, _b, _c;
|
|
1126
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSession(workspaceId, createSessionRequest, options);
|
|
1127
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1128
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.createSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1129
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1130
|
+
});
|
|
1131
|
+
},
|
|
929
1132
|
/**
|
|
930
1133
|
* Delete file inside workspace
|
|
931
1134
|
* @summary Delete file
|
|
@@ -943,6 +1146,23 @@ const ToolboxApiFp = function (configuration) {
|
|
|
943
1146
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
944
1147
|
});
|
|
945
1148
|
},
|
|
1149
|
+
/**
|
|
1150
|
+
* Delete a specific session
|
|
1151
|
+
* @summary Delete session
|
|
1152
|
+
* @param {string} workspaceId
|
|
1153
|
+
* @param {string} sessionId
|
|
1154
|
+
* @param {*} [options] Override http request option.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
*/
|
|
1157
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1159
|
+
var _a, _b, _c;
|
|
1160
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSession(workspaceId, sessionId, options);
|
|
1161
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1162
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.deleteSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1163
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
946
1166
|
/**
|
|
947
1167
|
* Download file from workspace
|
|
948
1168
|
* @summary Download file
|
|
@@ -977,6 +1197,24 @@ const ToolboxApiFp = function (configuration) {
|
|
|
977
1197
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
978
1198
|
});
|
|
979
1199
|
},
|
|
1200
|
+
/**
|
|
1201
|
+
* Execute a command in a specific session
|
|
1202
|
+
* @summary Execute command in session
|
|
1203
|
+
* @param {string} workspaceId
|
|
1204
|
+
* @param {string} sessionId
|
|
1205
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1206
|
+
* @param {*} [options] Override http request option.
|
|
1207
|
+
* @throws {RequiredError}
|
|
1208
|
+
*/
|
|
1209
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1211
|
+
var _a, _b, _c;
|
|
1212
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options);
|
|
1213
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1214
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.executeSessionCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1215
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1216
|
+
});
|
|
1217
|
+
},
|
|
980
1218
|
/**
|
|
981
1219
|
* Search for text/pattern inside workspace files
|
|
982
1220
|
* @summary Search for text/pattern in files
|
|
@@ -1028,6 +1266,24 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1028
1266
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1029
1267
|
});
|
|
1030
1268
|
},
|
|
1269
|
+
/**
|
|
1270
|
+
* Get logs for a specific command in a session
|
|
1271
|
+
* @summary Get command logs
|
|
1272
|
+
* @param {string} workspaceId
|
|
1273
|
+
* @param {string} sessionId
|
|
1274
|
+
* @param {string} commandId
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
var _a, _b, _c;
|
|
1281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionCommandLogs(workspaceId, sessionId, commandId, options);
|
|
1282
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1283
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.getSessionCommandLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1284
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1285
|
+
});
|
|
1286
|
+
},
|
|
1031
1287
|
/**
|
|
1032
1288
|
* Add files to git commit
|
|
1033
1289
|
* @summary Add files
|
|
@@ -1198,6 +1454,22 @@ const ToolboxApiFp = function (configuration) {
|
|
|
1198
1454
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1199
1455
|
});
|
|
1200
1456
|
},
|
|
1457
|
+
/**
|
|
1458
|
+
* List all active sessions in the workspace
|
|
1459
|
+
* @summary List sessions
|
|
1460
|
+
* @param {string} workspaceId
|
|
1461
|
+
* @param {*} [options] Override http request option.
|
|
1462
|
+
* @throws {RequiredError}
|
|
1463
|
+
*/
|
|
1464
|
+
listSessions(workspaceId, options) {
|
|
1465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1466
|
+
var _a, _b, _c;
|
|
1467
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSessions(workspaceId, options);
|
|
1468
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1469
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ToolboxApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1470
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1471
|
+
});
|
|
1472
|
+
},
|
|
1201
1473
|
/**
|
|
1202
1474
|
* Move file inside workspace
|
|
1203
1475
|
* @summary Move file
|
|
@@ -1311,6 +1583,17 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1311
1583
|
createFolder(workspaceId, path, mode, options) {
|
|
1312
1584
|
return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
1313
1585
|
},
|
|
1586
|
+
/**
|
|
1587
|
+
* Create a new session in the workspace
|
|
1588
|
+
* @summary Create session
|
|
1589
|
+
* @param {string} workspaceId
|
|
1590
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1595
|
+
return localVarFp.createSession(workspaceId, createSessionRequest, options).then((request) => request(axios, basePath));
|
|
1596
|
+
},
|
|
1314
1597
|
/**
|
|
1315
1598
|
* Delete file inside workspace
|
|
1316
1599
|
* @summary Delete file
|
|
@@ -1322,6 +1605,17 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1322
1605
|
deleteFile(workspaceId, path, options) {
|
|
1323
1606
|
return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1324
1607
|
},
|
|
1608
|
+
/**
|
|
1609
|
+
* Delete a specific session
|
|
1610
|
+
* @summary Delete session
|
|
1611
|
+
* @param {string} workspaceId
|
|
1612
|
+
* @param {string} sessionId
|
|
1613
|
+
* @param {*} [options] Override http request option.
|
|
1614
|
+
* @throws {RequiredError}
|
|
1615
|
+
*/
|
|
1616
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1617
|
+
return localVarFp.deleteSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
|
|
1618
|
+
},
|
|
1325
1619
|
/**
|
|
1326
1620
|
* Download file from workspace
|
|
1327
1621
|
* @summary Download file
|
|
@@ -1344,6 +1638,18 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1344
1638
|
executeCommand(workspaceId, executeRequest, options) {
|
|
1345
1639
|
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1346
1640
|
},
|
|
1641
|
+
/**
|
|
1642
|
+
* Execute a command in a specific session
|
|
1643
|
+
* @summary Execute command in session
|
|
1644
|
+
* @param {string} workspaceId
|
|
1645
|
+
* @param {string} sessionId
|
|
1646
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1647
|
+
* @param {*} [options] Override http request option.
|
|
1648
|
+
* @throws {RequiredError}
|
|
1649
|
+
*/
|
|
1650
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1651
|
+
return localVarFp.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(axios, basePath));
|
|
1652
|
+
},
|
|
1347
1653
|
/**
|
|
1348
1654
|
* Search for text/pattern inside workspace files
|
|
1349
1655
|
* @summary Search for text/pattern in files
|
|
@@ -1377,6 +1683,18 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1377
1683
|
getProjectDir(workspaceId, options) {
|
|
1378
1684
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1379
1685
|
},
|
|
1686
|
+
/**
|
|
1687
|
+
* Get logs for a specific command in a session
|
|
1688
|
+
* @summary Get command logs
|
|
1689
|
+
* @param {string} workspaceId
|
|
1690
|
+
* @param {string} sessionId
|
|
1691
|
+
* @param {string} commandId
|
|
1692
|
+
* @param {*} [options] Override http request option.
|
|
1693
|
+
* @throws {RequiredError}
|
|
1694
|
+
*/
|
|
1695
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
1696
|
+
return localVarFp.getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
1697
|
+
},
|
|
1380
1698
|
/**
|
|
1381
1699
|
* Add files to git commit
|
|
1382
1700
|
* @summary Add files
|
|
@@ -1487,6 +1805,16 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1487
1805
|
listFiles(workspaceId, path, options) {
|
|
1488
1806
|
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1489
1807
|
},
|
|
1808
|
+
/**
|
|
1809
|
+
* List all active sessions in the workspace
|
|
1810
|
+
* @summary List sessions
|
|
1811
|
+
* @param {string} workspaceId
|
|
1812
|
+
* @param {*} [options] Override http request option.
|
|
1813
|
+
* @throws {RequiredError}
|
|
1814
|
+
*/
|
|
1815
|
+
listSessions(workspaceId, options) {
|
|
1816
|
+
return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
|
|
1817
|
+
},
|
|
1490
1818
|
/**
|
|
1491
1819
|
* Move file inside workspace
|
|
1492
1820
|
* @summary Move file
|
|
@@ -1571,6 +1899,18 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1571
1899
|
createFolder(workspaceId, path, mode, options) {
|
|
1572
1900
|
return (0, exports.ToolboxApiFp)(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1573
1901
|
}
|
|
1902
|
+
/**
|
|
1903
|
+
* Create a new session in the workspace
|
|
1904
|
+
* @summary Create session
|
|
1905
|
+
* @param {string} workspaceId
|
|
1906
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
* @memberof ToolboxApi
|
|
1910
|
+
*/
|
|
1911
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1912
|
+
return (0, exports.ToolboxApiFp)(this.configuration).createSession(workspaceId, createSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1913
|
+
}
|
|
1574
1914
|
/**
|
|
1575
1915
|
* Delete file inside workspace
|
|
1576
1916
|
* @summary Delete file
|
|
@@ -1583,6 +1923,18 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1583
1923
|
deleteFile(workspaceId, path, options) {
|
|
1584
1924
|
return (0, exports.ToolboxApiFp)(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1585
1925
|
}
|
|
1926
|
+
/**
|
|
1927
|
+
* Delete a specific session
|
|
1928
|
+
* @summary Delete session
|
|
1929
|
+
* @param {string} workspaceId
|
|
1930
|
+
* @param {string} sessionId
|
|
1931
|
+
* @param {*} [options] Override http request option.
|
|
1932
|
+
* @throws {RequiredError}
|
|
1933
|
+
* @memberof ToolboxApi
|
|
1934
|
+
*/
|
|
1935
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1936
|
+
return (0, exports.ToolboxApiFp)(this.configuration).deleteSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1937
|
+
}
|
|
1586
1938
|
/**
|
|
1587
1939
|
* Download file from workspace
|
|
1588
1940
|
* @summary Download file
|
|
@@ -1607,6 +1959,19 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1607
1959
|
executeCommand(workspaceId, executeRequest, options) {
|
|
1608
1960
|
return (0, exports.ToolboxApiFp)(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1609
1961
|
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Execute a command in a specific session
|
|
1964
|
+
* @summary Execute command in session
|
|
1965
|
+
* @param {string} workspaceId
|
|
1966
|
+
* @param {string} sessionId
|
|
1967
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof ToolboxApi
|
|
1971
|
+
*/
|
|
1972
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1973
|
+
return (0, exports.ToolboxApiFp)(this.configuration).executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1974
|
+
}
|
|
1610
1975
|
/**
|
|
1611
1976
|
* Search for text/pattern inside workspace files
|
|
1612
1977
|
* @summary Search for text/pattern in files
|
|
@@ -1643,6 +2008,19 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1643
2008
|
getProjectDir(workspaceId, options) {
|
|
1644
2009
|
return (0, exports.ToolboxApiFp)(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1645
2010
|
}
|
|
2011
|
+
/**
|
|
2012
|
+
* Get logs for a specific command in a session
|
|
2013
|
+
* @summary Get command logs
|
|
2014
|
+
* @param {string} workspaceId
|
|
2015
|
+
* @param {string} sessionId
|
|
2016
|
+
* @param {string} commandId
|
|
2017
|
+
* @param {*} [options] Override http request option.
|
|
2018
|
+
* @throws {RequiredError}
|
|
2019
|
+
* @memberof ToolboxApi
|
|
2020
|
+
*/
|
|
2021
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
2022
|
+
return (0, exports.ToolboxApiFp)(this.configuration).getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
2023
|
+
}
|
|
1646
2024
|
/**
|
|
1647
2025
|
* Add files to git commit
|
|
1648
2026
|
* @summary Add files
|
|
@@ -1763,6 +2141,17 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
1763
2141
|
listFiles(workspaceId, path, options) {
|
|
1764
2142
|
return (0, exports.ToolboxApiFp)(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1765
2143
|
}
|
|
2144
|
+
/**
|
|
2145
|
+
* List all active sessions in the workspace
|
|
2146
|
+
* @summary List sessions
|
|
2147
|
+
* @param {string} workspaceId
|
|
2148
|
+
* @param {*} [options] Override http request option.
|
|
2149
|
+
* @throws {RequiredError}
|
|
2150
|
+
* @memberof ToolboxApi
|
|
2151
|
+
*/
|
|
2152
|
+
listSessions(workspaceId, options) {
|
|
2153
|
+
return (0, exports.ToolboxApiFp)(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
2154
|
+
}
|
|
1766
2155
|
/**
|
|
1767
2156
|
* Move file inside workspace
|
|
1768
2157
|
* @summary Move file
|
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
|