@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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +6 -1
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +419 -0
  4. package/api/users-api.ts +68 -0
  5. package/api/workspace-api.ts +78 -0
  6. package/api.ts +0 -1
  7. package/dist/api/toolbox-api.d.ts +193 -0
  8. package/dist/api/toolbox-api.js +389 -0
  9. package/dist/api/users-api.d.ts +30 -0
  10. package/dist/api/users-api.js +62 -0
  11. package/dist/api/workspace-api.d.ts +33 -0
  12. package/dist/api/workspace-api.js +73 -0
  13. package/dist/api.d.ts +0 -1
  14. package/dist/api.js +0 -1
  15. package/dist/esm/api/toolbox-api.d.ts +193 -0
  16. package/dist/esm/api/toolbox-api.js +389 -0
  17. package/dist/esm/api/users-api.d.ts +30 -0
  18. package/dist/esm/api/users-api.js +62 -0
  19. package/dist/esm/api/workspace-api.d.ts +33 -0
  20. package/dist/esm/api/workspace-api.js +73 -0
  21. package/dist/esm/api.d.ts +0 -1
  22. package/dist/esm/api.js +0 -1
  23. package/dist/esm/models/command.d.ts +42 -0
  24. package/dist/esm/models/command.js +14 -0
  25. package/dist/esm/models/create-session-request.d.ts +24 -0
  26. package/dist/esm/models/create-session-request.js +14 -0
  27. package/dist/esm/models/index.d.ts +6 -0
  28. package/dist/esm/models/index.js +6 -0
  29. package/dist/esm/models/session-execute-request.d.ts +30 -0
  30. package/dist/esm/models/session-execute-request.js +14 -0
  31. package/dist/esm/models/session-execute-response.d.ts +36 -0
  32. package/dist/esm/models/session-execute-response.js +14 -0
  33. package/dist/esm/models/session.d.ts +31 -0
  34. package/dist/esm/models/session.js +14 -0
  35. package/dist/esm/models/usage-overview.d.ts +84 -0
  36. package/dist/esm/models/usage-overview.js +14 -0
  37. package/dist/models/command.d.ts +42 -0
  38. package/dist/models/command.js +15 -0
  39. package/dist/models/create-session-request.d.ts +24 -0
  40. package/dist/models/create-session-request.js +15 -0
  41. package/dist/models/index.d.ts +6 -0
  42. package/dist/models/index.js +6 -0
  43. package/dist/models/session-execute-request.d.ts +30 -0
  44. package/dist/models/session-execute-request.js +15 -0
  45. package/dist/models/session-execute-response.d.ts +36 -0
  46. package/dist/models/session-execute-response.js +15 -0
  47. package/dist/models/session.d.ts +31 -0
  48. package/dist/models/session.js +15 -0
  49. package/dist/models/usage-overview.d.ts +84 -0
  50. package/dist/models/usage-overview.js +15 -0
  51. package/models/command.ts +48 -0
  52. package/models/create-session-request.ts +30 -0
  53. package/models/index.ts +6 -0
  54. package/models/session-execute-request.ts +36 -0
  55. package/models/session-execute-response.ts +42 -0
  56. package/models/session.ts +39 -0
  57. package/models/usage-overview.ts +90 -0
  58. package/package.json +1 -1
  59. package/api/app-api.ts +0 -118
  60. package/dist/api/app-api.d.ts +0 -65
  61. package/dist/api/app-api.js +0 -124
  62. package/dist/esm/api/app-api.d.ts +0 -65
  63. package/dist/esm/api/app-api.js +0 -117
@@ -68,6 +68,34 @@ const UsersApiAxiosParamCreator = function (configuration) {
68
68
  options: localVarRequestOptions,
69
69
  };
70
70
  }),
71
+ /**
72
+ *
73
+ * @summary Get user current usage overview
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ getUserUsageOverview: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
78
+ const localVarPath = `/users/overview`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication oauth2 required
89
+ // oauth required
90
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
91
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
94
+ return {
95
+ url: (0, common_1.toPathString)(localVarUrlObj),
96
+ options: localVarRequestOptions,
97
+ };
98
+ }),
71
99
  /**
72
100
  *
73
101
  * @summary List all users
@@ -154,6 +182,21 @@ const UsersApiFp = function (configuration) {
154
182
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
155
183
  });
156
184
  },
185
+ /**
186
+ *
187
+ * @summary Get user current usage overview
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ getUserUsageOverview(options) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ var _a, _b, _c;
194
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserUsageOverview(options);
195
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
196
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getUserUsageOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
197
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
198
+ });
199
+ },
157
200
  /**
158
201
  *
159
202
  * @summary List all users
@@ -205,6 +248,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
205
248
  createUser(createUser, options) {
206
249
  return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
207
250
  },
251
+ /**
252
+ *
253
+ * @summary Get user current usage overview
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ getUserUsageOverview(options) {
258
+ return localVarFp.getUserUsageOverview(options).then((request) => request(axios, basePath));
259
+ },
208
260
  /**
209
261
  *
210
262
  * @summary List all users
@@ -245,6 +297,16 @@ class UsersApi extends base_1.BaseAPI {
245
297
  createUser(createUser, options) {
246
298
  return (0, exports.UsersApiFp)(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
247
299
  }
300
+ /**
301
+ *
302
+ * @summary Get user current usage overview
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ * @memberof UsersApi
306
+ */
307
+ getUserUsageOverview(options) {
308
+ return (0, exports.UsersApiFp)(this.configuration).getUserUsageOverview(options).then((request) => request(this.axios, this.basePath));
309
+ }
248
310
  /**
249
311
  *
250
312
  * @summary List all users
@@ -96,6 +96,14 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
96
96
  * @throws {RequiredError}
97
97
  */
98
98
  updatePublicStatus: (workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
99
+ /**
100
+ *
101
+ * @param {string} workspaceId
102
+ * @param {object} body
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ workspaceControllerResizeWorkspace: (workspaceId: string, body: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
99
107
  };
100
108
  /**
101
109
  * WorkspaceApi - functional programming interface
@@ -178,6 +186,14 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
178
186
  * @throws {RequiredError}
179
187
  */
180
188
  updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
189
+ /**
190
+ *
191
+ * @param {string} workspaceId
192
+ * @param {object} body
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
181
197
  };
182
198
  /**
183
199
  * WorkspaceApi - factory interface
@@ -260,6 +276,14 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
260
276
  * @throws {RequiredError}
261
277
  */
262
278
  updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
279
+ /**
280
+ *
281
+ * @param {string} workspaceId
282
+ * @param {object} body
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<void>;
263
287
  };
264
288
  /**
265
289
  * WorkspaceApi - object-oriented interface
@@ -353,4 +377,13 @@ export declare class WorkspaceApi extends BaseAPI {
353
377
  * @memberof WorkspaceApi
354
378
  */
355
379
  updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
380
+ /**
381
+ *
382
+ * @param {string} workspaceId
383
+ * @param {object} body
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ * @memberof WorkspaceApi
387
+ */
388
+ workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
356
389
  }
@@ -343,6 +343,42 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
343
343
  options: localVarRequestOptions,
344
344
  };
345
345
  }),
346
+ /**
347
+ *
348
+ * @param {string} workspaceId
349
+ * @param {object} body
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ workspaceControllerResizeWorkspace: (workspaceId_1, body_1, ...args_1) => __awaiter(this, [workspaceId_1, body_1, ...args_1], void 0, function* (workspaceId, body, options = {}) {
354
+ // verify required parameter 'workspaceId' is not null or undefined
355
+ (0, common_1.assertParamExists)('workspaceControllerResizeWorkspace', 'workspaceId', workspaceId);
356
+ // verify required parameter 'body' is not null or undefined
357
+ (0, common_1.assertParamExists)('workspaceControllerResizeWorkspace', 'body', body);
358
+ const localVarPath = `/workspace/{workspaceId}/resize`
359
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
361
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
362
+ let baseOptions;
363
+ if (configuration) {
364
+ baseOptions = configuration.baseOptions;
365
+ }
366
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
367
+ const localVarHeaderParameter = {};
368
+ const localVarQueryParameter = {};
369
+ // authentication oauth2 required
370
+ // oauth required
371
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
372
+ localVarHeaderParameter['Content-Type'] = 'application/json';
373
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
374
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
375
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
376
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
377
+ return {
378
+ url: (0, common_1.toPathString)(localVarUrlObj),
379
+ options: localVarRequestOptions,
380
+ };
381
+ }),
346
382
  };
347
383
  };
348
384
  exports.WorkspaceApiAxiosParamCreator = WorkspaceApiAxiosParamCreator;
@@ -501,6 +537,22 @@ const WorkspaceApiFp = function (configuration) {
501
537
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
502
538
  });
503
539
  },
540
+ /**
541
+ *
542
+ * @param {string} workspaceId
543
+ * @param {object} body
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ workspaceControllerResizeWorkspace(workspaceId, body, options) {
548
+ return __awaiter(this, void 0, void 0, function* () {
549
+ var _a, _b, _c;
550
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.workspaceControllerResizeWorkspace(workspaceId, body, options);
551
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
552
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.workspaceControllerResizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
553
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
554
+ });
555
+ },
504
556
  };
505
557
  };
506
558
  exports.WorkspaceApiFp = WorkspaceApiFp;
@@ -605,6 +657,16 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
605
657
  updatePublicStatus(workspaceId, isPublic, options) {
606
658
  return localVarFp.updatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
607
659
  },
660
+ /**
661
+ *
662
+ * @param {string} workspaceId
663
+ * @param {object} body
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ workspaceControllerResizeWorkspace(workspaceId, body, options) {
668
+ return localVarFp.workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(axios, basePath));
669
+ },
608
670
  };
609
671
  };
610
672
  exports.WorkspaceApiFactory = WorkspaceApiFactory;
@@ -718,5 +780,16 @@ class WorkspaceApi extends base_1.BaseAPI {
718
780
  updatePublicStatus(workspaceId, isPublic, options) {
719
781
  return (0, exports.WorkspaceApiFp)(this.configuration).updatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
720
782
  }
783
+ /**
784
+ *
785
+ * @param {string} workspaceId
786
+ * @param {object} body
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ * @memberof WorkspaceApi
790
+ */
791
+ workspaceControllerResizeWorkspace(workspaceId, body, options) {
792
+ return (0, exports.WorkspaceApiFp)(this.configuration).workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(this.axios, this.basePath));
793
+ }
721
794
  }
722
795
  exports.WorkspaceApi = WorkspaceApi;
package/dist/api.d.ts CHANGED
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/api-keys-api';
13
- export * from './api/app-api';
14
13
  export * from './api/docker-registry-api';
15
14
  export * from './api/nodes-api';
16
15
  export * from './api/toolbox-api';
package/dist/api.js CHANGED
@@ -28,7 +28,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/api-keys-api"), exports);
31
- __exportStar(require("./api/app-api"), exports);
32
31
  __exportStar(require("./api/docker-registry-api"), exports);
33
32
  __exportStar(require("./api/nodes-api"), exports);
34
33
  __exportStar(require("./api/toolbox-api"), exports);
@@ -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 { CreateSessionRequest } from '../models';
15
16
  import type { ExecuteRequest } from '../models';
16
17
  import type { ExecuteResponse } from '../models';
17
18
  import type { FileInfo } from '../models';
@@ -29,6 +30,9 @@ import type { ProjectDirResponse } from '../models';
29
30
  import type { ReplaceRequest } from '../models';
30
31
  import type { ReplaceResult } from '../models';
31
32
  import type { SearchFilesResponse } from '../models';
33
+ import type { Session } from '../models';
34
+ import type { SessionExecuteRequest } from '../models';
35
+ import type { SessionExecuteResponse } from '../models';
32
36
  /**
33
37
  * ToolboxApi - axios parameter creator
34
38
  * @export
@@ -44,6 +48,15 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
44
48
  * @throws {RequiredError}
45
49
  */
46
50
  createFolder: (workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
51
+ /**
52
+ * Create a new session in the workspace
53
+ * @summary Create session
54
+ * @param {string} workspaceId
55
+ * @param {CreateSessionRequest} createSessionRequest
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ createSession: (workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
60
  /**
48
61
  * Delete file inside workspace
49
62
  * @summary Delete file
@@ -53,6 +66,15 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
53
66
  * @throws {RequiredError}
54
67
  */
55
68
  deleteFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * Delete a specific session
71
+ * @summary Delete session
72
+ * @param {string} workspaceId
73
+ * @param {string} sessionId
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ deleteSession: (workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
78
  /**
57
79
  * Download file from workspace
58
80
  * @summary Download file
@@ -71,6 +93,16 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
71
93
  * @throws {RequiredError}
72
94
  */
73
95
  executeCommand: (workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
96
+ /**
97
+ * Execute a command in a specific session
98
+ * @summary Execute command in session
99
+ * @param {string} workspaceId
100
+ * @param {string} sessionId
101
+ * @param {SessionExecuteRequest} sessionExecuteRequest
102
+ * @param {*} [options] Override http request option.
103
+ * @throws {RequiredError}
104
+ */
105
+ executeSessionCommand: (workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
106
  /**
75
107
  * Search for text/pattern inside workspace files
76
108
  * @summary Search for text/pattern in files
@@ -98,6 +130,16 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
98
130
  * @throws {RequiredError}
99
131
  */
100
132
  getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
133
+ /**
134
+ * Get logs for a specific command in a session
135
+ * @summary Get command logs
136
+ * @param {string} workspaceId
137
+ * @param {string} sessionId
138
+ * @param {string} commandId
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getSessionCommandLogs: (workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
143
  /**
102
144
  * Add files to git commit
103
145
  * @summary Add files
@@ -188,6 +230,14 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
188
230
  * @throws {RequiredError}
189
231
  */
190
232
  listFiles: (workspaceId: string, path?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
233
+ /**
234
+ * List all active sessions in the workspace
235
+ * @summary List sessions
236
+ * @param {string} workspaceId
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ listSessions: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
191
241
  /**
192
242
  * Move file inside workspace
193
243
  * @summary Move file
@@ -255,6 +305,15 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
255
305
  * @throws {RequiredError}
256
306
  */
257
307
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
308
+ /**
309
+ * Create a new session in the workspace
310
+ * @summary Create session
311
+ * @param {string} workspaceId
312
+ * @param {CreateSessionRequest} createSessionRequest
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
258
317
  /**
259
318
  * Delete file inside workspace
260
319
  * @summary Delete file
@@ -264,6 +323,15 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
264
323
  * @throws {RequiredError}
265
324
  */
266
325
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
326
+ /**
327
+ * Delete a specific session
328
+ * @summary Delete session
329
+ * @param {string} workspaceId
330
+ * @param {string} sessionId
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
267
335
  /**
268
336
  * Download file from workspace
269
337
  * @summary Download file
@@ -282,6 +350,16 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
282
350
  * @throws {RequiredError}
283
351
  */
284
352
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>>;
353
+ /**
354
+ * Execute a command in a specific session
355
+ * @summary Execute command in session
356
+ * @param {string} workspaceId
357
+ * @param {string} sessionId
358
+ * @param {SessionExecuteRequest} sessionExecuteRequest
359
+ * @param {*} [options] Override http request option.
360
+ * @throws {RequiredError}
361
+ */
362
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionExecuteResponse>>;
285
363
  /**
286
364
  * Search for text/pattern inside workspace files
287
365
  * @summary Search for text/pattern in files
@@ -309,6 +387,16 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
309
387
  * @throws {RequiredError}
310
388
  */
311
389
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
390
+ /**
391
+ * Get logs for a specific command in a session
392
+ * @summary Get command logs
393
+ * @param {string} workspaceId
394
+ * @param {string} sessionId
395
+ * @param {string} commandId
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
312
400
  /**
313
401
  * Add files to git commit
314
402
  * @summary Add files
@@ -399,6 +487,14 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
399
487
  * @throws {RequiredError}
400
488
  */
401
489
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>>;
490
+ /**
491
+ * List all active sessions in the workspace
492
+ * @summary List sessions
493
+ * @param {string} workspaceId
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ */
497
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>>;
402
498
  /**
403
499
  * Move file inside workspace
404
500
  * @summary Move file
@@ -466,6 +562,15 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
466
562
  * @throws {RequiredError}
467
563
  */
468
564
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
565
+ /**
566
+ * Create a new session in the workspace
567
+ * @summary Create session
568
+ * @param {string} workspaceId
569
+ * @param {CreateSessionRequest} createSessionRequest
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
469
574
  /**
470
575
  * Delete file inside workspace
471
576
  * @summary Delete file
@@ -475,6 +580,15 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
475
580
  * @throws {RequiredError}
476
581
  */
477
582
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
583
+ /**
584
+ * Delete a specific session
585
+ * @summary Delete session
586
+ * @param {string} workspaceId
587
+ * @param {string} sessionId
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
478
592
  /**
479
593
  * Download file from workspace
480
594
  * @summary Download file
@@ -493,6 +607,16 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
493
607
  * @throws {RequiredError}
494
608
  */
495
609
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse>;
610
+ /**
611
+ * Execute a command in a specific session
612
+ * @summary Execute command in session
613
+ * @param {string} workspaceId
614
+ * @param {string} sessionId
615
+ * @param {SessionExecuteRequest} sessionExecuteRequest
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<SessionExecuteResponse>;
496
620
  /**
497
621
  * Search for text/pattern inside workspace files
498
622
  * @summary Search for text/pattern in files
@@ -520,6 +644,16 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
520
644
  * @throws {RequiredError}
521
645
  */
522
646
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
647
+ /**
648
+ * Get logs for a specific command in a session
649
+ * @summary Get command logs
650
+ * @param {string} workspaceId
651
+ * @param {string} sessionId
652
+ * @param {string} commandId
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
523
657
  /**
524
658
  * Add files to git commit
525
659
  * @summary Add files
@@ -610,6 +744,14 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
610
744
  * @throws {RequiredError}
611
745
  */
612
746
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>>;
747
+ /**
748
+ * List all active sessions in the workspace
749
+ * @summary List sessions
750
+ * @param {string} workspaceId
751
+ * @param {*} [options] Override http request option.
752
+ * @throws {RequiredError}
753
+ */
754
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>>;
613
755
  /**
614
756
  * Move file inside workspace
615
757
  * @summary Move file
@@ -680,6 +822,16 @@ export declare class ToolboxApi extends BaseAPI {
680
822
  * @memberof ToolboxApi
681
823
  */
682
824
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
825
+ /**
826
+ * Create a new session in the workspace
827
+ * @summary Create session
828
+ * @param {string} workspaceId
829
+ * @param {CreateSessionRequest} createSessionRequest
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof ToolboxApi
833
+ */
834
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
683
835
  /**
684
836
  * Delete file inside workspace
685
837
  * @summary Delete file
@@ -690,6 +842,16 @@ export declare class ToolboxApi extends BaseAPI {
690
842
  * @memberof ToolboxApi
691
843
  */
692
844
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
845
+ /**
846
+ * Delete a specific session
847
+ * @summary Delete session
848
+ * @param {string} workspaceId
849
+ * @param {string} sessionId
850
+ * @param {*} [options] Override http request option.
851
+ * @throws {RequiredError}
852
+ * @memberof ToolboxApi
853
+ */
854
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
693
855
  /**
694
856
  * Download file from workspace
695
857
  * @summary Download file
@@ -710,6 +872,17 @@ export declare class ToolboxApi extends BaseAPI {
710
872
  * @memberof ToolboxApi
711
873
  */
712
874
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteResponse, any>>;
875
+ /**
876
+ * Execute a command in a specific session
877
+ * @summary Execute command in session
878
+ * @param {string} workspaceId
879
+ * @param {string} sessionId
880
+ * @param {SessionExecuteRequest} sessionExecuteRequest
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ * @memberof ToolboxApi
884
+ */
885
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionExecuteResponse, any>>;
713
886
  /**
714
887
  * Search for text/pattern inside workspace files
715
888
  * @summary Search for text/pattern in files
@@ -740,6 +913,17 @@ export declare class ToolboxApi extends BaseAPI {
740
913
  * @memberof ToolboxApi
741
914
  */
742
915
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
916
+ /**
917
+ * Get logs for a specific command in a session
918
+ * @summary Get command logs
919
+ * @param {string} workspaceId
920
+ * @param {string} sessionId
921
+ * @param {string} commandId
922
+ * @param {*} [options] Override http request option.
923
+ * @throws {RequiredError}
924
+ * @memberof ToolboxApi
925
+ */
926
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
743
927
  /**
744
928
  * Add files to git commit
745
929
  * @summary Add files
@@ -840,6 +1024,15 @@ export declare class ToolboxApi extends BaseAPI {
840
1024
  * @memberof ToolboxApi
841
1025
  */
842
1026
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo[], any>>;
1027
+ /**
1028
+ * List all active sessions in the workspace
1029
+ * @summary List sessions
1030
+ * @param {string} workspaceId
1031
+ * @param {*} [options] Override http request option.
1032
+ * @throws {RequiredError}
1033
+ * @memberof ToolboxApi
1034
+ */
1035
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session[], any>>;
843
1036
  /**
844
1037
  * Move file inside workspace
845
1038
  * @summary Move file