@daytonaio/api-client 0.7.0 → 0.9.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 (113) hide show
  1. package/.openapi-generator/FILES +16 -1
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +1149 -104
  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 +473 -0
  8. package/dist/api/toolbox-api.js +967 -1
  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 +473 -0
  16. package/dist/esm/api/toolbox-api.js +967 -1
  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/completion-context.d.ts +30 -0
  26. package/dist/esm/models/completion-context.js +14 -0
  27. package/dist/esm/models/completion-item.d.ts +60 -0
  28. package/dist/esm/models/completion-item.js +14 -0
  29. package/dist/esm/models/completion-list.d.ts +31 -0
  30. package/dist/esm/models/completion-list.js +14 -0
  31. package/dist/esm/models/create-session-request.d.ts +24 -0
  32. package/dist/esm/models/create-session-request.js +14 -0
  33. package/dist/esm/models/index.d.ts +16 -0
  34. package/dist/esm/models/index.js +16 -0
  35. package/dist/esm/models/lsp-completion-params.d.ts +50 -0
  36. package/dist/esm/models/lsp-completion-params.js +14 -0
  37. package/dist/esm/models/lsp-document-request.d.ts +36 -0
  38. package/dist/esm/models/lsp-document-request.js +14 -0
  39. package/dist/esm/models/lsp-location.d.ts +31 -0
  40. package/dist/esm/models/lsp-location.js +14 -0
  41. package/dist/esm/models/lsp-server-request.d.ts +30 -0
  42. package/dist/esm/models/lsp-server-request.js +14 -0
  43. package/dist/esm/models/lsp-symbol.d.ts +37 -0
  44. package/dist/esm/models/lsp-symbol.js +14 -0
  45. package/dist/esm/models/position.d.ts +30 -0
  46. package/dist/esm/models/position.js +14 -0
  47. package/dist/esm/models/range.d.ts +31 -0
  48. package/dist/esm/models/range.js +14 -0
  49. package/dist/esm/models/session-execute-request.d.ts +30 -0
  50. package/dist/esm/models/session-execute-request.js +14 -0
  51. package/dist/esm/models/session-execute-response.d.ts +36 -0
  52. package/dist/esm/models/session-execute-response.js +14 -0
  53. package/dist/esm/models/session.d.ts +31 -0
  54. package/dist/esm/models/session.js +14 -0
  55. package/dist/esm/models/usage-overview.d.ts +84 -0
  56. package/dist/esm/models/usage-overview.js +14 -0
  57. package/dist/models/command.d.ts +42 -0
  58. package/dist/models/command.js +15 -0
  59. package/dist/models/completion-context.d.ts +30 -0
  60. package/dist/models/completion-context.js +15 -0
  61. package/dist/models/completion-item.d.ts +60 -0
  62. package/dist/models/completion-item.js +15 -0
  63. package/dist/models/completion-list.d.ts +31 -0
  64. package/dist/models/completion-list.js +15 -0
  65. package/dist/models/create-session-request.d.ts +24 -0
  66. package/dist/models/create-session-request.js +15 -0
  67. package/dist/models/index.d.ts +16 -0
  68. package/dist/models/index.js +16 -0
  69. package/dist/models/lsp-completion-params.d.ts +50 -0
  70. package/dist/models/lsp-completion-params.js +15 -0
  71. package/dist/models/lsp-document-request.d.ts +36 -0
  72. package/dist/models/lsp-document-request.js +15 -0
  73. package/dist/models/lsp-location.d.ts +31 -0
  74. package/dist/models/lsp-location.js +15 -0
  75. package/dist/models/lsp-server-request.d.ts +30 -0
  76. package/dist/models/lsp-server-request.js +15 -0
  77. package/dist/models/lsp-symbol.d.ts +37 -0
  78. package/dist/models/lsp-symbol.js +15 -0
  79. package/dist/models/position.d.ts +30 -0
  80. package/dist/models/position.js +15 -0
  81. package/dist/models/range.d.ts +31 -0
  82. package/dist/models/range.js +15 -0
  83. package/dist/models/session-execute-request.d.ts +30 -0
  84. package/dist/models/session-execute-request.js +15 -0
  85. package/dist/models/session-execute-response.d.ts +36 -0
  86. package/dist/models/session-execute-response.js +15 -0
  87. package/dist/models/session.d.ts +31 -0
  88. package/dist/models/session.js +15 -0
  89. package/dist/models/usage-overview.d.ts +84 -0
  90. package/dist/models/usage-overview.js +15 -0
  91. package/models/command.ts +48 -0
  92. package/models/completion-context.ts +36 -0
  93. package/models/completion-item.ts +66 -0
  94. package/models/completion-list.ts +39 -0
  95. package/models/create-session-request.ts +30 -0
  96. package/models/index.ts +16 -0
  97. package/models/lsp-completion-params.ts +60 -0
  98. package/models/lsp-document-request.ts +42 -0
  99. package/models/lsp-location.ts +39 -0
  100. package/models/lsp-server-request.ts +36 -0
  101. package/models/lsp-symbol.ts +45 -0
  102. package/models/position.ts +36 -0
  103. package/models/range.ts +39 -0
  104. package/models/session-execute-request.ts +36 -0
  105. package/models/session-execute-response.ts +42 -0
  106. package/models/session.ts +39 -0
  107. package/models/usage-overview.ts +90 -0
  108. package/package.json +1 -1
  109. package/api/app-api.ts +0 -118
  110. package/dist/api/app-api.d.ts +0 -65
  111. package/dist/api/app-api.js +0 -124
  112. package/dist/esm/api/app-api.d.ts +0 -65
  113. package/dist/esm/api/app-api.js +0 -117
@@ -12,6 +12,8 @@
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 { CompletionList } from '../models';
16
+ import type { CreateSessionRequest } from '../models';
15
17
  import type { ExecuteRequest } from '../models';
16
18
  import type { ExecuteResponse } from '../models';
17
19
  import type { FileInfo } from '../models';
@@ -24,11 +26,18 @@ import type { GitCommitResponse } from '../models';
24
26
  import type { GitRepoRequest } from '../models';
25
27
  import type { GitStatus } from '../models';
26
28
  import type { ListBranchResponse } from '../models';
29
+ import type { LspCompletionParams } from '../models';
30
+ import type { LspDocumentRequest } from '../models';
31
+ import type { LspServerRequest } from '../models';
32
+ import type { LspSymbol } from '../models';
27
33
  import type { Match } from '../models';
28
34
  import type { ProjectDirResponse } from '../models';
29
35
  import type { ReplaceRequest } from '../models';
30
36
  import type { ReplaceResult } from '../models';
31
37
  import type { SearchFilesResponse } from '../models';
38
+ import type { Session } from '../models';
39
+ import type { SessionExecuteRequest } from '../models';
40
+ import type { SessionExecuteResponse } from '../models';
32
41
  /**
33
42
  * ToolboxApi - axios parameter creator
34
43
  * @export
@@ -44,6 +53,15 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
44
53
  * @throws {RequiredError}
45
54
  */
46
55
  createFolder: (workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * Create a new session in the workspace
58
+ * @summary Create session
59
+ * @param {string} workspaceId
60
+ * @param {CreateSessionRequest} createSessionRequest
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ createSession: (workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
65
  /**
48
66
  * Delete file inside workspace
49
67
  * @summary Delete file
@@ -53,6 +71,15 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
53
71
  * @throws {RequiredError}
54
72
  */
55
73
  deleteFile: (workspaceId: string, path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
+ /**
75
+ * Delete a specific session
76
+ * @summary Delete session
77
+ * @param {string} workspaceId
78
+ * @param {string} sessionId
79
+ * @param {*} [options] Override http request option.
80
+ * @throws {RequiredError}
81
+ */
82
+ deleteSession: (workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
83
  /**
57
84
  * Download file from workspace
58
85
  * @summary Download file
@@ -71,6 +98,16 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
71
98
  * @throws {RequiredError}
72
99
  */
73
100
  executeCommand: (workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
+ /**
102
+ * Execute a command in a specific session
103
+ * @summary Execute command in session
104
+ * @param {string} workspaceId
105
+ * @param {string} sessionId
106
+ * @param {SessionExecuteRequest} sessionExecuteRequest
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ executeSessionCommand: (workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
111
  /**
75
112
  * Search for text/pattern inside workspace files
76
113
  * @summary Search for text/pattern in files
@@ -98,6 +135,16 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
98
135
  * @throws {RequiredError}
99
136
  */
100
137
  getProjectDir: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
+ /**
139
+ * Get logs for a specific command in a session
140
+ * @summary Get command logs
141
+ * @param {string} workspaceId
142
+ * @param {string} sessionId
143
+ * @param {string} commandId
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ getSessionCommandLogs: (workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
148
  /**
102
149
  * Add files to git commit
103
150
  * @summary Add files
@@ -188,6 +235,81 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
188
235
  * @throws {RequiredError}
189
236
  */
190
237
  listFiles: (workspaceId: string, path?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
238
+ /**
239
+ * List all active sessions in the workspace
240
+ * @summary List sessions
241
+ * @param {string} workspaceId
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ listSessions: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
246
+ /**
247
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
248
+ * @summary Get Lsp Completions
249
+ * @param {string} workspaceId
250
+ * @param {LspCompletionParams} lspCompletionParams
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ lspCompletions: (workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
255
+ /**
256
+ * The document close notification is sent from the client to the server when the document got closed in the client.
257
+ * @summary Call Lsp DidClose
258
+ * @param {string} workspaceId
259
+ * @param {LspDocumentRequest} lspDocumentRequest
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ lspDidClose: (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
264
+ /**
265
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
266
+ * @summary Call Lsp DidOpen
267
+ * @param {string} workspaceId
268
+ * @param {LspDocumentRequest} lspDocumentRequest
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ lspDidOpen: (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
273
+ /**
274
+ * The document symbol request is sent from the client to the server.
275
+ * @summary Call Lsp DocumentSymbols
276
+ * @param {string} workspaceId
277
+ * @param {string} languageId
278
+ * @param {string} pathToProject
279
+ * @param {string} uri
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ lspDocumentSymbols: (workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
284
+ /**
285
+ * Start Lsp server process inside workspace project
286
+ * @summary Start Lsp server
287
+ * @param {string} workspaceId
288
+ * @param {LspServerRequest} lspServerRequest
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ lspStart: (workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
293
+ /**
294
+ * Stop Lsp server process inside workspace project
295
+ * @summary Stop Lsp server
296
+ * @param {string} workspaceId
297
+ * @param {LspServerRequest} lspServerRequest
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ lspStop: (workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
302
+ /**
303
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
304
+ * @summary Call Lsp WorkspaceSymbols
305
+ * @param {string} workspaceId
306
+ * @param {string} languageId
307
+ * @param {string} pathToProject
308
+ * @param {string} query
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ lspWorkspaceSymbols: (workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
191
313
  /**
192
314
  * Move file inside workspace
193
315
  * @summary Move file
@@ -255,6 +377,15 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
255
377
  * @throws {RequiredError}
256
378
  */
257
379
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
380
+ /**
381
+ * Create a new session in the workspace
382
+ * @summary Create session
383
+ * @param {string} workspaceId
384
+ * @param {CreateSessionRequest} createSessionRequest
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
258
389
  /**
259
390
  * Delete file inside workspace
260
391
  * @summary Delete file
@@ -264,6 +395,15 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
264
395
  * @throws {RequiredError}
265
396
  */
266
397
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
398
+ /**
399
+ * Delete a specific session
400
+ * @summary Delete session
401
+ * @param {string} workspaceId
402
+ * @param {string} sessionId
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
267
407
  /**
268
408
  * Download file from workspace
269
409
  * @summary Download file
@@ -282,6 +422,16 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
282
422
  * @throws {RequiredError}
283
423
  */
284
424
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>>;
425
+ /**
426
+ * Execute a command in a specific session
427
+ * @summary Execute command in session
428
+ * @param {string} workspaceId
429
+ * @param {string} sessionId
430
+ * @param {SessionExecuteRequest} sessionExecuteRequest
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionExecuteResponse>>;
285
435
  /**
286
436
  * Search for text/pattern inside workspace files
287
437
  * @summary Search for text/pattern in files
@@ -309,6 +459,16 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
309
459
  * @throws {RequiredError}
310
460
  */
311
461
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
462
+ /**
463
+ * Get logs for a specific command in a session
464
+ * @summary Get command logs
465
+ * @param {string} workspaceId
466
+ * @param {string} sessionId
467
+ * @param {string} commandId
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
312
472
  /**
313
473
  * Add files to git commit
314
474
  * @summary Add files
@@ -399,6 +559,81 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
399
559
  * @throws {RequiredError}
400
560
  */
401
561
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>>;
562
+ /**
563
+ * List all active sessions in the workspace
564
+ * @summary List sessions
565
+ * @param {string} workspaceId
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>>;
570
+ /**
571
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
572
+ * @summary Get Lsp Completions
573
+ * @param {string} workspaceId
574
+ * @param {LspCompletionParams} lspCompletionParams
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletionList>>;
579
+ /**
580
+ * The document close notification is sent from the client to the server when the document got closed in the client.
581
+ * @summary Call Lsp DidClose
582
+ * @param {string} workspaceId
583
+ * @param {LspDocumentRequest} lspDocumentRequest
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
588
+ /**
589
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
590
+ * @summary Call Lsp DidOpen
591
+ * @param {string} workspaceId
592
+ * @param {LspDocumentRequest} lspDocumentRequest
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
597
+ /**
598
+ * The document symbol request is sent from the client to the server.
599
+ * @summary Call Lsp DocumentSymbols
600
+ * @param {string} workspaceId
601
+ * @param {string} languageId
602
+ * @param {string} pathToProject
603
+ * @param {string} uri
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>>;
608
+ /**
609
+ * Start Lsp server process inside workspace project
610
+ * @summary Start Lsp server
611
+ * @param {string} workspaceId
612
+ * @param {LspServerRequest} lspServerRequest
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
617
+ /**
618
+ * Stop Lsp server process inside workspace project
619
+ * @summary Stop Lsp server
620
+ * @param {string} workspaceId
621
+ * @param {LspServerRequest} lspServerRequest
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
626
+ /**
627
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
628
+ * @summary Call Lsp WorkspaceSymbols
629
+ * @param {string} workspaceId
630
+ * @param {string} languageId
631
+ * @param {string} pathToProject
632
+ * @param {string} query
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>>;
402
637
  /**
403
638
  * Move file inside workspace
404
639
  * @summary Move file
@@ -466,6 +701,15 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
466
701
  * @throws {RequiredError}
467
702
  */
468
703
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
704
+ /**
705
+ * Create a new session in the workspace
706
+ * @summary Create session
707
+ * @param {string} workspaceId
708
+ * @param {CreateSessionRequest} createSessionRequest
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
469
713
  /**
470
714
  * Delete file inside workspace
471
715
  * @summary Delete file
@@ -475,6 +719,15 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
475
719
  * @throws {RequiredError}
476
720
  */
477
721
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
722
+ /**
723
+ * Delete a specific session
724
+ * @summary Delete session
725
+ * @param {string} workspaceId
726
+ * @param {string} sessionId
727
+ * @param {*} [options] Override http request option.
728
+ * @throws {RequiredError}
729
+ */
730
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
478
731
  /**
479
732
  * Download file from workspace
480
733
  * @summary Download file
@@ -493,6 +746,16 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
493
746
  * @throws {RequiredError}
494
747
  */
495
748
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse>;
749
+ /**
750
+ * Execute a command in a specific session
751
+ * @summary Execute command in session
752
+ * @param {string} workspaceId
753
+ * @param {string} sessionId
754
+ * @param {SessionExecuteRequest} sessionExecuteRequest
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<SessionExecuteResponse>;
496
759
  /**
497
760
  * Search for text/pattern inside workspace files
498
761
  * @summary Search for text/pattern in files
@@ -520,6 +783,16 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
520
783
  * @throws {RequiredError}
521
784
  */
522
785
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
786
+ /**
787
+ * Get logs for a specific command in a session
788
+ * @summary Get command logs
789
+ * @param {string} workspaceId
790
+ * @param {string} sessionId
791
+ * @param {string} commandId
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<string>;
523
796
  /**
524
797
  * Add files to git commit
525
798
  * @summary Add files
@@ -610,6 +883,81 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
610
883
  * @throws {RequiredError}
611
884
  */
612
885
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>>;
886
+ /**
887
+ * List all active sessions in the workspace
888
+ * @summary List sessions
889
+ * @param {string} workspaceId
890
+ * @param {*} [options] Override http request option.
891
+ * @throws {RequiredError}
892
+ */
893
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>>;
894
+ /**
895
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
896
+ * @summary Get Lsp Completions
897
+ * @param {string} workspaceId
898
+ * @param {LspCompletionParams} lspCompletionParams
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): AxiosPromise<CompletionList>;
903
+ /**
904
+ * The document close notification is sent from the client to the server when the document got closed in the client.
905
+ * @summary Call Lsp DidClose
906
+ * @param {string} workspaceId
907
+ * @param {LspDocumentRequest} lspDocumentRequest
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
912
+ /**
913
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
914
+ * @summary Call Lsp DidOpen
915
+ * @param {string} workspaceId
916
+ * @param {LspDocumentRequest} lspDocumentRequest
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ */
920
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
921
+ /**
922
+ * The document symbol request is sent from the client to the server.
923
+ * @summary Call Lsp DocumentSymbols
924
+ * @param {string} workspaceId
925
+ * @param {string} languageId
926
+ * @param {string} pathToProject
927
+ * @param {string} uri
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>>;
932
+ /**
933
+ * Start Lsp server process inside workspace project
934
+ * @summary Start Lsp server
935
+ * @param {string} workspaceId
936
+ * @param {LspServerRequest} lspServerRequest
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
941
+ /**
942
+ * Stop Lsp server process inside workspace project
943
+ * @summary Stop Lsp server
944
+ * @param {string} workspaceId
945
+ * @param {LspServerRequest} lspServerRequest
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ */
949
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
950
+ /**
951
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
952
+ * @summary Call Lsp WorkspaceSymbols
953
+ * @param {string} workspaceId
954
+ * @param {string} languageId
955
+ * @param {string} pathToProject
956
+ * @param {string} query
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>>;
613
961
  /**
614
962
  * Move file inside workspace
615
963
  * @summary Move file
@@ -680,6 +1028,16 @@ export declare class ToolboxApi extends BaseAPI {
680
1028
  * @memberof ToolboxApi
681
1029
  */
682
1030
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1031
+ /**
1032
+ * Create a new session in the workspace
1033
+ * @summary Create session
1034
+ * @param {string} workspaceId
1035
+ * @param {CreateSessionRequest} createSessionRequest
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ * @memberof ToolboxApi
1039
+ */
1040
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
683
1041
  /**
684
1042
  * Delete file inside workspace
685
1043
  * @summary Delete file
@@ -690,6 +1048,16 @@ export declare class ToolboxApi extends BaseAPI {
690
1048
  * @memberof ToolboxApi
691
1049
  */
692
1050
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1051
+ /**
1052
+ * Delete a specific session
1053
+ * @summary Delete session
1054
+ * @param {string} workspaceId
1055
+ * @param {string} sessionId
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ * @memberof ToolboxApi
1059
+ */
1060
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
693
1061
  /**
694
1062
  * Download file from workspace
695
1063
  * @summary Download file
@@ -710,6 +1078,17 @@ export declare class ToolboxApi extends BaseAPI {
710
1078
  * @memberof ToolboxApi
711
1079
  */
712
1080
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteResponse, any>>;
1081
+ /**
1082
+ * Execute a command in a specific session
1083
+ * @summary Execute command in session
1084
+ * @param {string} workspaceId
1085
+ * @param {string} sessionId
1086
+ * @param {SessionExecuteRequest} sessionExecuteRequest
1087
+ * @param {*} [options] Override http request option.
1088
+ * @throws {RequiredError}
1089
+ * @memberof ToolboxApi
1090
+ */
1091
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionExecuteResponse, any>>;
713
1092
  /**
714
1093
  * Search for text/pattern inside workspace files
715
1094
  * @summary Search for text/pattern in files
@@ -740,6 +1119,17 @@ export declare class ToolboxApi extends BaseAPI {
740
1119
  * @memberof ToolboxApi
741
1120
  */
742
1121
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
1122
+ /**
1123
+ * Get logs for a specific command in a session
1124
+ * @summary Get command logs
1125
+ * @param {string} workspaceId
1126
+ * @param {string} sessionId
1127
+ * @param {string} commandId
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ * @memberof ToolboxApi
1131
+ */
1132
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
743
1133
  /**
744
1134
  * Add files to git commit
745
1135
  * @summary Add files
@@ -840,6 +1230,89 @@ export declare class ToolboxApi extends BaseAPI {
840
1230
  * @memberof ToolboxApi
841
1231
  */
842
1232
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo[], any>>;
1233
+ /**
1234
+ * List all active sessions in the workspace
1235
+ * @summary List sessions
1236
+ * @param {string} workspaceId
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ * @memberof ToolboxApi
1240
+ */
1241
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session[], any>>;
1242
+ /**
1243
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1244
+ * @summary Get Lsp Completions
1245
+ * @param {string} workspaceId
1246
+ * @param {LspCompletionParams} lspCompletionParams
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ * @memberof ToolboxApi
1250
+ */
1251
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletionList, any>>;
1252
+ /**
1253
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1254
+ * @summary Call Lsp DidClose
1255
+ * @param {string} workspaceId
1256
+ * @param {LspDocumentRequest} lspDocumentRequest
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ * @memberof ToolboxApi
1260
+ */
1261
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1262
+ /**
1263
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1264
+ * @summary Call Lsp DidOpen
1265
+ * @param {string} workspaceId
1266
+ * @param {LspDocumentRequest} lspDocumentRequest
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ * @memberof ToolboxApi
1270
+ */
1271
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1272
+ /**
1273
+ * The document symbol request is sent from the client to the server.
1274
+ * @summary Call Lsp DocumentSymbols
1275
+ * @param {string} workspaceId
1276
+ * @param {string} languageId
1277
+ * @param {string} pathToProject
1278
+ * @param {string} uri
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ * @memberof ToolboxApi
1282
+ */
1283
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LspSymbol[], any>>;
1284
+ /**
1285
+ * Start Lsp server process inside workspace project
1286
+ * @summary Start Lsp server
1287
+ * @param {string} workspaceId
1288
+ * @param {LspServerRequest} lspServerRequest
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ * @memberof ToolboxApi
1292
+ */
1293
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1294
+ /**
1295
+ * Stop Lsp server process inside workspace project
1296
+ * @summary Stop Lsp server
1297
+ * @param {string} workspaceId
1298
+ * @param {LspServerRequest} lspServerRequest
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ * @memberof ToolboxApi
1302
+ */
1303
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1304
+ /**
1305
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1306
+ * @summary Call Lsp WorkspaceSymbols
1307
+ * @param {string} workspaceId
1308
+ * @param {string} languageId
1309
+ * @param {string} pathToProject
1310
+ * @param {string} query
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ * @memberof ToolboxApi
1314
+ */
1315
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LspSymbol[], any>>;
843
1316
  /**
844
1317
  * Move file inside workspace
845
1318
  * @summary Move file