@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
|
@@ -76,6 +76,43 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
76
76
|
options: localVarRequestOptions,
|
|
77
77
|
};
|
|
78
78
|
}),
|
|
79
|
+
/**
|
|
80
|
+
* Create a new session in the workspace
|
|
81
|
+
* @summary Create session
|
|
82
|
+
* @param {string} workspaceId
|
|
83
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
createSession: (workspaceId_1, createSessionRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, createSessionRequest_1, ...args_1], void 0, function* (workspaceId, createSessionRequest, options = {}) {
|
|
88
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
89
|
+
assertParamExists('createSession', 'workspaceId', workspaceId);
|
|
90
|
+
// verify required parameter 'createSessionRequest' is not null or undefined
|
|
91
|
+
assertParamExists('createSession', 'createSessionRequest', createSessionRequest);
|
|
92
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
93
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
94
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
96
|
+
let baseOptions;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
}
|
|
100
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
101
|
+
const localVarHeaderParameter = {};
|
|
102
|
+
const localVarQueryParameter = {};
|
|
103
|
+
// authentication oauth2 required
|
|
104
|
+
// oauth required
|
|
105
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
106
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
109
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
110
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSessionRequest, localVarRequestOptions, configuration);
|
|
111
|
+
return {
|
|
112
|
+
url: toPathString(localVarUrlObj),
|
|
113
|
+
options: localVarRequestOptions,
|
|
114
|
+
};
|
|
115
|
+
}),
|
|
79
116
|
/**
|
|
80
117
|
* Delete file inside workspace
|
|
81
118
|
* @summary Delete file
|
|
@@ -114,6 +151,42 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
114
151
|
options: localVarRequestOptions,
|
|
115
152
|
};
|
|
116
153
|
}),
|
|
154
|
+
/**
|
|
155
|
+
* Delete a specific session
|
|
156
|
+
* @summary Delete session
|
|
157
|
+
* @param {string} workspaceId
|
|
158
|
+
* @param {string} sessionId
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
deleteSession: (workspaceId_1, sessionId_1, ...args_1) => __awaiter(this, [workspaceId_1, sessionId_1, ...args_1], void 0, function* (workspaceId, sessionId, options = {}) {
|
|
163
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
164
|
+
assertParamExists('deleteSession', 'workspaceId', workspaceId);
|
|
165
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
166
|
+
assertParamExists('deleteSession', 'sessionId', sessionId);
|
|
167
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
|
|
168
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
169
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
172
|
+
let baseOptions;
|
|
173
|
+
if (configuration) {
|
|
174
|
+
baseOptions = configuration.baseOptions;
|
|
175
|
+
}
|
|
176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
177
|
+
const localVarHeaderParameter = {};
|
|
178
|
+
const localVarQueryParameter = {};
|
|
179
|
+
// authentication oauth2 required
|
|
180
|
+
// oauth required
|
|
181
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
182
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
183
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
184
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
185
|
+
return {
|
|
186
|
+
url: toPathString(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
}),
|
|
117
190
|
/**
|
|
118
191
|
* Download file from workspace
|
|
119
192
|
* @summary Download file
|
|
@@ -189,6 +262,47 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
189
262
|
options: localVarRequestOptions,
|
|
190
263
|
};
|
|
191
264
|
}),
|
|
265
|
+
/**
|
|
266
|
+
* Execute a command in a specific session
|
|
267
|
+
* @summary Execute command in session
|
|
268
|
+
* @param {string} workspaceId
|
|
269
|
+
* @param {string} sessionId
|
|
270
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
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 = {}) {
|
|
275
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
276
|
+
assertParamExists('executeSessionCommand', 'workspaceId', workspaceId);
|
|
277
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
278
|
+
assertParamExists('executeSessionCommand', 'sessionId', sessionId);
|
|
279
|
+
// verify required parameter 'sessionExecuteRequest' is not null or undefined
|
|
280
|
+
assertParamExists('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest);
|
|
281
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/exec`
|
|
282
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
283
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
284
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
285
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
286
|
+
let baseOptions;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
291
|
+
const localVarHeaderParameter = {};
|
|
292
|
+
const localVarQueryParameter = {};
|
|
293
|
+
// authentication oauth2 required
|
|
294
|
+
// oauth required
|
|
295
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
296
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
297
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
300
|
+
localVarRequestOptions.data = serializeDataIfNeeded(sessionExecuteRequest, localVarRequestOptions, configuration);
|
|
301
|
+
return {
|
|
302
|
+
url: toPathString(localVarUrlObj),
|
|
303
|
+
options: localVarRequestOptions,
|
|
304
|
+
};
|
|
305
|
+
}),
|
|
192
306
|
/**
|
|
193
307
|
* Search for text/pattern inside workspace files
|
|
194
308
|
* @summary Search for text/pattern in files
|
|
@@ -303,6 +417,46 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
303
417
|
options: localVarRequestOptions,
|
|
304
418
|
};
|
|
305
419
|
}),
|
|
420
|
+
/**
|
|
421
|
+
* Get logs for a specific command in a session
|
|
422
|
+
* @summary Get command logs
|
|
423
|
+
* @param {string} workspaceId
|
|
424
|
+
* @param {string} sessionId
|
|
425
|
+
* @param {string} commandId
|
|
426
|
+
* @param {*} [options] Override http request option.
|
|
427
|
+
* @throws {RequiredError}
|
|
428
|
+
*/
|
|
429
|
+
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 = {}) {
|
|
430
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
431
|
+
assertParamExists('getSessionCommandLogs', 'workspaceId', workspaceId);
|
|
432
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
433
|
+
assertParamExists('getSessionCommandLogs', 'sessionId', sessionId);
|
|
434
|
+
// verify required parameter 'commandId' is not null or undefined
|
|
435
|
+
assertParamExists('getSessionCommandLogs', 'commandId', commandId);
|
|
436
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
|
|
437
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
|
|
438
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
|
|
439
|
+
.replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
|
|
440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
441
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
442
|
+
let baseOptions;
|
|
443
|
+
if (configuration) {
|
|
444
|
+
baseOptions = configuration.baseOptions;
|
|
445
|
+
}
|
|
446
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
447
|
+
const localVarHeaderParameter = {};
|
|
448
|
+
const localVarQueryParameter = {};
|
|
449
|
+
// authentication oauth2 required
|
|
450
|
+
// oauth required
|
|
451
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
454
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
455
|
+
return {
|
|
456
|
+
url: toPathString(localVarUrlObj),
|
|
457
|
+
options: localVarRequestOptions,
|
|
458
|
+
};
|
|
459
|
+
}),
|
|
306
460
|
/**
|
|
307
461
|
* Add files to git commit
|
|
308
462
|
* @summary Add files
|
|
@@ -675,6 +829,38 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
675
829
|
options: localVarRequestOptions,
|
|
676
830
|
};
|
|
677
831
|
}),
|
|
832
|
+
/**
|
|
833
|
+
* List all active sessions in the workspace
|
|
834
|
+
* @summary List sessions
|
|
835
|
+
* @param {string} workspaceId
|
|
836
|
+
* @param {*} [options] Override http request option.
|
|
837
|
+
* @throws {RequiredError}
|
|
838
|
+
*/
|
|
839
|
+
listSessions: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
840
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
841
|
+
assertParamExists('listSessions', 'workspaceId', workspaceId);
|
|
842
|
+
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
|
|
843
|
+
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
845
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
846
|
+
let baseOptions;
|
|
847
|
+
if (configuration) {
|
|
848
|
+
baseOptions = configuration.baseOptions;
|
|
849
|
+
}
|
|
850
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
851
|
+
const localVarHeaderParameter = {};
|
|
852
|
+
const localVarQueryParameter = {};
|
|
853
|
+
// authentication oauth2 required
|
|
854
|
+
// oauth required
|
|
855
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
|
|
856
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
857
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
858
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
859
|
+
return {
|
|
860
|
+
url: toPathString(localVarUrlObj),
|
|
861
|
+
options: localVarRequestOptions,
|
|
862
|
+
};
|
|
863
|
+
}),
|
|
678
864
|
/**
|
|
679
865
|
* Move file inside workspace
|
|
680
866
|
* @summary Move file
|
|
@@ -922,6 +1108,23 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
922
1108
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
923
1109
|
});
|
|
924
1110
|
},
|
|
1111
|
+
/**
|
|
1112
|
+
* Create a new session in the workspace
|
|
1113
|
+
* @summary Create session
|
|
1114
|
+
* @param {string} workspaceId
|
|
1115
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1116
|
+
* @param {*} [options] Override http request option.
|
|
1117
|
+
* @throws {RequiredError}
|
|
1118
|
+
*/
|
|
1119
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1121
|
+
var _a, _b, _c;
|
|
1122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSession(workspaceId, createSessionRequest, options);
|
|
1123
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1124
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.createSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1125
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1126
|
+
});
|
|
1127
|
+
},
|
|
925
1128
|
/**
|
|
926
1129
|
* Delete file inside workspace
|
|
927
1130
|
* @summary Delete file
|
|
@@ -939,6 +1142,23 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
939
1142
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
940
1143
|
});
|
|
941
1144
|
},
|
|
1145
|
+
/**
|
|
1146
|
+
* Delete a specific session
|
|
1147
|
+
* @summary Delete session
|
|
1148
|
+
* @param {string} workspaceId
|
|
1149
|
+
* @param {string} sessionId
|
|
1150
|
+
* @param {*} [options] Override http request option.
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
*/
|
|
1153
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1155
|
+
var _a, _b, _c;
|
|
1156
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSession(workspaceId, sessionId, options);
|
|
1157
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1158
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.deleteSession']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
942
1162
|
/**
|
|
943
1163
|
* Download file from workspace
|
|
944
1164
|
* @summary Download file
|
|
@@ -973,6 +1193,24 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
973
1193
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
974
1194
|
});
|
|
975
1195
|
},
|
|
1196
|
+
/**
|
|
1197
|
+
* Execute a command in a specific session
|
|
1198
|
+
* @summary Execute command in session
|
|
1199
|
+
* @param {string} workspaceId
|
|
1200
|
+
* @param {string} sessionId
|
|
1201
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1202
|
+
* @param {*} [options] Override http request option.
|
|
1203
|
+
* @throws {RequiredError}
|
|
1204
|
+
*/
|
|
1205
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1207
|
+
var _a, _b, _c;
|
|
1208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options);
|
|
1209
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1210
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.executeSessionCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1212
|
+
});
|
|
1213
|
+
},
|
|
976
1214
|
/**
|
|
977
1215
|
* Search for text/pattern inside workspace files
|
|
978
1216
|
* @summary Search for text/pattern in files
|
|
@@ -1024,6 +1262,24 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1024
1262
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1025
1263
|
});
|
|
1026
1264
|
},
|
|
1265
|
+
/**
|
|
1266
|
+
* Get logs for a specific command in a session
|
|
1267
|
+
* @summary Get command logs
|
|
1268
|
+
* @param {string} workspaceId
|
|
1269
|
+
* @param {string} sessionId
|
|
1270
|
+
* @param {string} commandId
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
*/
|
|
1274
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
1275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1276
|
+
var _a, _b, _c;
|
|
1277
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSessionCommandLogs(workspaceId, sessionId, commandId, options);
|
|
1278
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1279
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.getSessionCommandLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1280
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1281
|
+
});
|
|
1282
|
+
},
|
|
1027
1283
|
/**
|
|
1028
1284
|
* Add files to git commit
|
|
1029
1285
|
* @summary Add files
|
|
@@ -1194,6 +1450,22 @@ export const ToolboxApiFp = function (configuration) {
|
|
|
1194
1450
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1195
1451
|
});
|
|
1196
1452
|
},
|
|
1453
|
+
/**
|
|
1454
|
+
* List all active sessions in the workspace
|
|
1455
|
+
* @summary List sessions
|
|
1456
|
+
* @param {string} workspaceId
|
|
1457
|
+
* @param {*} [options] Override http request option.
|
|
1458
|
+
* @throws {RequiredError}
|
|
1459
|
+
*/
|
|
1460
|
+
listSessions(workspaceId, options) {
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1462
|
+
var _a, _b, _c;
|
|
1463
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSessions(workspaceId, options);
|
|
1464
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1465
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.listSessions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1466
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1467
|
+
});
|
|
1468
|
+
},
|
|
1197
1469
|
/**
|
|
1198
1470
|
* Move file inside workspace
|
|
1199
1471
|
* @summary Move file
|
|
@@ -1306,6 +1578,17 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1306
1578
|
createFolder(workspaceId, path, mode, options) {
|
|
1307
1579
|
return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
|
|
1308
1580
|
},
|
|
1581
|
+
/**
|
|
1582
|
+
* Create a new session in the workspace
|
|
1583
|
+
* @summary Create session
|
|
1584
|
+
* @param {string} workspaceId
|
|
1585
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1586
|
+
* @param {*} [options] Override http request option.
|
|
1587
|
+
* @throws {RequiredError}
|
|
1588
|
+
*/
|
|
1589
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1590
|
+
return localVarFp.createSession(workspaceId, createSessionRequest, options).then((request) => request(axios, basePath));
|
|
1591
|
+
},
|
|
1309
1592
|
/**
|
|
1310
1593
|
* Delete file inside workspace
|
|
1311
1594
|
* @summary Delete file
|
|
@@ -1317,6 +1600,17 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1317
1600
|
deleteFile(workspaceId, path, options) {
|
|
1318
1601
|
return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1319
1602
|
},
|
|
1603
|
+
/**
|
|
1604
|
+
* Delete a specific session
|
|
1605
|
+
* @summary Delete session
|
|
1606
|
+
* @param {string} workspaceId
|
|
1607
|
+
* @param {string} sessionId
|
|
1608
|
+
* @param {*} [options] Override http request option.
|
|
1609
|
+
* @throws {RequiredError}
|
|
1610
|
+
*/
|
|
1611
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1612
|
+
return localVarFp.deleteSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
|
|
1613
|
+
},
|
|
1320
1614
|
/**
|
|
1321
1615
|
* Download file from workspace
|
|
1322
1616
|
* @summary Download file
|
|
@@ -1339,6 +1633,18 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1339
1633
|
executeCommand(workspaceId, executeRequest, options) {
|
|
1340
1634
|
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1341
1635
|
},
|
|
1636
|
+
/**
|
|
1637
|
+
* Execute a command in a specific session
|
|
1638
|
+
* @summary Execute command in session
|
|
1639
|
+
* @param {string} workspaceId
|
|
1640
|
+
* @param {string} sessionId
|
|
1641
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1642
|
+
* @param {*} [options] Override http request option.
|
|
1643
|
+
* @throws {RequiredError}
|
|
1644
|
+
*/
|
|
1645
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1646
|
+
return localVarFp.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(axios, basePath));
|
|
1647
|
+
},
|
|
1342
1648
|
/**
|
|
1343
1649
|
* Search for text/pattern inside workspace files
|
|
1344
1650
|
* @summary Search for text/pattern in files
|
|
@@ -1372,6 +1678,18 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1372
1678
|
getProjectDir(workspaceId, options) {
|
|
1373
1679
|
return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
|
|
1374
1680
|
},
|
|
1681
|
+
/**
|
|
1682
|
+
* Get logs for a specific command in a session
|
|
1683
|
+
* @summary Get command logs
|
|
1684
|
+
* @param {string} workspaceId
|
|
1685
|
+
* @param {string} sessionId
|
|
1686
|
+
* @param {string} commandId
|
|
1687
|
+
* @param {*} [options] Override http request option.
|
|
1688
|
+
* @throws {RequiredError}
|
|
1689
|
+
*/
|
|
1690
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
1691
|
+
return localVarFp.getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
|
|
1692
|
+
},
|
|
1375
1693
|
/**
|
|
1376
1694
|
* Add files to git commit
|
|
1377
1695
|
* @summary Add files
|
|
@@ -1482,6 +1800,16 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
1482
1800
|
listFiles(workspaceId, path, options) {
|
|
1483
1801
|
return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
|
|
1484
1802
|
},
|
|
1803
|
+
/**
|
|
1804
|
+
* List all active sessions in the workspace
|
|
1805
|
+
* @summary List sessions
|
|
1806
|
+
* @param {string} workspaceId
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
*/
|
|
1810
|
+
listSessions(workspaceId, options) {
|
|
1811
|
+
return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
|
|
1812
|
+
},
|
|
1485
1813
|
/**
|
|
1486
1814
|
* Move file inside workspace
|
|
1487
1815
|
* @summary Move file
|
|
@@ -1565,6 +1893,18 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1565
1893
|
createFolder(workspaceId, path, mode, options) {
|
|
1566
1894
|
return ToolboxApiFp(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
|
|
1567
1895
|
}
|
|
1896
|
+
/**
|
|
1897
|
+
* Create a new session in the workspace
|
|
1898
|
+
* @summary Create session
|
|
1899
|
+
* @param {string} workspaceId
|
|
1900
|
+
* @param {CreateSessionRequest} createSessionRequest
|
|
1901
|
+
* @param {*} [options] Override http request option.
|
|
1902
|
+
* @throws {RequiredError}
|
|
1903
|
+
* @memberof ToolboxApi
|
|
1904
|
+
*/
|
|
1905
|
+
createSession(workspaceId, createSessionRequest, options) {
|
|
1906
|
+
return ToolboxApiFp(this.configuration).createSession(workspaceId, createSessionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1907
|
+
}
|
|
1568
1908
|
/**
|
|
1569
1909
|
* Delete file inside workspace
|
|
1570
1910
|
* @summary Delete file
|
|
@@ -1577,6 +1917,18 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1577
1917
|
deleteFile(workspaceId, path, options) {
|
|
1578
1918
|
return ToolboxApiFp(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1579
1919
|
}
|
|
1920
|
+
/**
|
|
1921
|
+
* Delete a specific session
|
|
1922
|
+
* @summary Delete session
|
|
1923
|
+
* @param {string} workspaceId
|
|
1924
|
+
* @param {string} sessionId
|
|
1925
|
+
* @param {*} [options] Override http request option.
|
|
1926
|
+
* @throws {RequiredError}
|
|
1927
|
+
* @memberof ToolboxApi
|
|
1928
|
+
*/
|
|
1929
|
+
deleteSession(workspaceId, sessionId, options) {
|
|
1930
|
+
return ToolboxApiFp(this.configuration).deleteSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1931
|
+
}
|
|
1580
1932
|
/**
|
|
1581
1933
|
* Download file from workspace
|
|
1582
1934
|
* @summary Download file
|
|
@@ -1601,6 +1953,19 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1601
1953
|
executeCommand(workspaceId, executeRequest, options) {
|
|
1602
1954
|
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1603
1955
|
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Execute a command in a specific session
|
|
1958
|
+
* @summary Execute command in session
|
|
1959
|
+
* @param {string} workspaceId
|
|
1960
|
+
* @param {string} sessionId
|
|
1961
|
+
* @param {SessionExecuteRequest} sessionExecuteRequest
|
|
1962
|
+
* @param {*} [options] Override http request option.
|
|
1963
|
+
* @throws {RequiredError}
|
|
1964
|
+
* @memberof ToolboxApi
|
|
1965
|
+
*/
|
|
1966
|
+
executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options) {
|
|
1967
|
+
return ToolboxApiFp(this.configuration).executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1968
|
+
}
|
|
1604
1969
|
/**
|
|
1605
1970
|
* Search for text/pattern inside workspace files
|
|
1606
1971
|
* @summary Search for text/pattern in files
|
|
@@ -1637,6 +2002,19 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1637
2002
|
getProjectDir(workspaceId, options) {
|
|
1638
2003
|
return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
1639
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Get logs for a specific command in a session
|
|
2007
|
+
* @summary Get command logs
|
|
2008
|
+
* @param {string} workspaceId
|
|
2009
|
+
* @param {string} sessionId
|
|
2010
|
+
* @param {string} commandId
|
|
2011
|
+
* @param {*} [options] Override http request option.
|
|
2012
|
+
* @throws {RequiredError}
|
|
2013
|
+
* @memberof ToolboxApi
|
|
2014
|
+
*/
|
|
2015
|
+
getSessionCommandLogs(workspaceId, sessionId, commandId, options) {
|
|
2016
|
+
return ToolboxApiFp(this.configuration).getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
|
|
2017
|
+
}
|
|
1640
2018
|
/**
|
|
1641
2019
|
* Add files to git commit
|
|
1642
2020
|
* @summary Add files
|
|
@@ -1757,6 +2135,17 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1757
2135
|
listFiles(workspaceId, path, options) {
|
|
1758
2136
|
return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
|
|
1759
2137
|
}
|
|
2138
|
+
/**
|
|
2139
|
+
* List all active sessions in the workspace
|
|
2140
|
+
* @summary List sessions
|
|
2141
|
+
* @param {string} workspaceId
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
* @memberof ToolboxApi
|
|
2145
|
+
*/
|
|
2146
|
+
listSessions(workspaceId, options) {
|
|
2147
|
+
return ToolboxApiFp(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
|
|
2148
|
+
}
|
|
1760
2149
|
/**
|
|
1761
2150
|
* Move file inside workspace
|
|
1762
2151
|
* @summary Move file
|
|
@@ -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
|