@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
package/api/users-api.ts CHANGED
@@ -23,6 +23,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
25
  import type { CreateUser } from '../models';
26
+ // @ts-ignore
27
+ import type { UsageOverview } from '../models';
26
28
  /**
27
29
  * UsersApi - axios parameter creator
28
30
  * @export
@@ -69,6 +71,40 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
69
71
  options: localVarRequestOptions,
70
72
  };
71
73
  },
74
+ /**
75
+ *
76
+ * @summary Get user current usage overview
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ getUserUsageOverview: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
81
+ const localVarPath = `/users/overview`;
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+
89
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
90
+ const localVarHeaderParameter = {} as any;
91
+ const localVarQueryParameter = {} as any;
92
+
93
+ // authentication oauth2 required
94
+ // oauth required
95
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
96
+
97
+
98
+
99
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
102
+
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ },
72
108
  /**
73
109
  *
74
110
  * @summary List all users
@@ -164,6 +200,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
164
200
  const localVarOperationServerBasePath = operationServerMap['UsersApi.createUser']?.[localVarOperationServerIndex]?.url;
165
201
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
166
202
  },
203
+ /**
204
+ *
205
+ * @summary Get user current usage overview
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ async getUserUsageOverview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsageOverview>> {
210
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserUsageOverview(options);
211
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
212
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserUsageOverview']?.[localVarOperationServerIndex]?.url;
213
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
214
+ },
167
215
  /**
168
216
  *
169
217
  * @summary List all users
@@ -209,6 +257,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
209
257
  createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void> {
210
258
  return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
211
259
  },
260
+ /**
261
+ *
262
+ * @summary Get user current usage overview
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ getUserUsageOverview(options?: RawAxiosRequestConfig): AxiosPromise<UsageOverview> {
267
+ return localVarFp.getUserUsageOverview(options).then((request) => request(axios, basePath));
268
+ },
212
269
  /**
213
270
  *
214
271
  * @summary List all users
@@ -250,6 +307,17 @@ export class UsersApi extends BaseAPI {
250
307
  return UsersApiFp(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
251
308
  }
252
309
 
310
+ /**
311
+ *
312
+ * @summary Get user current usage overview
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof UsersApi
316
+ */
317
+ public getUserUsageOverview(options?: RawAxiosRequestConfig) {
318
+ return UsersApiFp(this.configuration).getUserUsageOverview(options).then((request) => request(this.axios, this.basePath));
319
+ }
320
+
253
321
  /**
254
322
  *
255
323
  * @summary List all users
@@ -395,6 +395,49 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
395
395
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
396
396
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
397
397
 
398
+ return {
399
+ url: toPathString(localVarUrlObj),
400
+ options: localVarRequestOptions,
401
+ };
402
+ },
403
+ /**
404
+ *
405
+ * @param {string} workspaceId
406
+ * @param {object} body
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ workspaceControllerResizeWorkspace: async (workspaceId: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
411
+ // verify required parameter 'workspaceId' is not null or undefined
412
+ assertParamExists('workspaceControllerResizeWorkspace', 'workspaceId', workspaceId)
413
+ // verify required parameter 'body' is not null or undefined
414
+ assertParamExists('workspaceControllerResizeWorkspace', 'body', body)
415
+ const localVarPath = `/workspace/{workspaceId}/resize`
416
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
418
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
419
+ let baseOptions;
420
+ if (configuration) {
421
+ baseOptions = configuration.baseOptions;
422
+ }
423
+
424
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
425
+ const localVarHeaderParameter = {} as any;
426
+ const localVarQueryParameter = {} as any;
427
+
428
+ // authentication oauth2 required
429
+ // oauth required
430
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
431
+
432
+
433
+
434
+ localVarHeaderParameter['Content-Type'] = 'application/json';
435
+
436
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
438
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
439
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
440
+
398
441
  return {
399
442
  url: toPathString(localVarUrlObj),
400
443
  options: localVarRequestOptions,
@@ -531,6 +574,19 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
531
574
  const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
532
575
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
533
576
  },
577
+ /**
578
+ *
579
+ * @param {string} workspaceId
580
+ * @param {object} body
581
+ * @param {*} [options] Override http request option.
582
+ * @throws {RequiredError}
583
+ */
584
+ async workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.workspaceControllerResizeWorkspace(workspaceId, body, options);
586
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
587
+ const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.workspaceControllerResizeWorkspace']?.[localVarOperationServerIndex]?.url;
588
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
589
+ },
534
590
  }
535
591
  };
536
592
 
@@ -635,6 +691,16 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
635
691
  updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
636
692
  return localVarFp.updatePublicStatus(workspaceId, isPublic, options).then((request) => request(axios, basePath));
637
693
  },
694
+ /**
695
+ *
696
+ * @param {string} workspaceId
697
+ * @param {object} body
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<void> {
702
+ return localVarFp.workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(axios, basePath));
703
+ },
638
704
  };
639
705
  };
640
706
 
@@ -756,5 +822,17 @@ export class WorkspaceApi extends BaseAPI {
756
822
  public updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) {
757
823
  return WorkspaceApiFp(this.configuration).updatePublicStatus(workspaceId, isPublic, options).then((request) => request(this.axios, this.basePath));
758
824
  }
825
+
826
+ /**
827
+ *
828
+ * @param {string} workspaceId
829
+ * @param {object} body
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof WorkspaceApi
833
+ */
834
+ public workspaceControllerResizeWorkspace(workspaceId: string, body: object, options?: RawAxiosRequestConfig) {
835
+ return WorkspaceApiFp(this.configuration).workspaceControllerResizeWorkspace(workspaceId, body, options).then((request) => request(this.axios, this.basePath));
836
+ }
759
837
  }
760
838
 
package/api.ts CHANGED
@@ -15,7 +15,6 @@
15
15
 
16
16
 
17
17
  export * from './api/api-keys-api';
18
- export * from './api/app-api';
19
18
  export * from './api/docker-registry-api';
20
19
  export * from './api/nodes-api';
21
20
  export * from './api/toolbox-api';
@@ -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