@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
@@ -22,6 +22,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { CompletionList } from '../models';
26
+ // @ts-ignore
27
+ import type { CreateSessionRequest } from '../models';
28
+ // @ts-ignore
25
29
  import type { ExecuteRequest } from '../models';
26
30
  // @ts-ignore
27
31
  import type { ExecuteResponse } from '../models';
@@ -46,6 +50,14 @@ import type { GitStatus } from '../models';
46
50
  // @ts-ignore
47
51
  import type { ListBranchResponse } from '../models';
48
52
  // @ts-ignore
53
+ import type { LspCompletionParams } from '../models';
54
+ // @ts-ignore
55
+ import type { LspDocumentRequest } from '../models';
56
+ // @ts-ignore
57
+ import type { LspServerRequest } from '../models';
58
+ // @ts-ignore
59
+ import type { LspSymbol } from '../models';
60
+ // @ts-ignore
49
61
  import type { Match } from '../models';
50
62
  // @ts-ignore
51
63
  import type { ProjectDirResponse } from '../models';
@@ -55,6 +67,12 @@ import type { ReplaceRequest } from '../models';
55
67
  import type { ReplaceResult } from '../models';
56
68
  // @ts-ignore
57
69
  import type { SearchFilesResponse } from '../models';
70
+ // @ts-ignore
71
+ import type { Session } from '../models';
72
+ // @ts-ignore
73
+ import type { SessionExecuteRequest } from '../models';
74
+ // @ts-ignore
75
+ import type { SessionExecuteResponse } from '../models';
58
76
  /**
59
77
  * ToolboxApi - axios parameter creator
60
78
  * @export
@@ -113,6 +131,50 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
113
131
  options: localVarRequestOptions,
114
132
  };
115
133
  },
134
+ /**
135
+ * Create a new session in the workspace
136
+ * @summary Create session
137
+ * @param {string} workspaceId
138
+ * @param {CreateSessionRequest} createSessionRequest
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ createSession: async (workspaceId: string, createSessionRequest: CreateSessionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'workspaceId' is not null or undefined
144
+ assertParamExists('createSession', 'workspaceId', workspaceId)
145
+ // verify required parameter 'createSessionRequest' is not null or undefined
146
+ assertParamExists('createSession', 'createSessionRequest', createSessionRequest)
147
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
148
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ }
155
+
156
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
157
+ const localVarHeaderParameter = {} as any;
158
+ const localVarQueryParameter = {} as any;
159
+
160
+ // authentication oauth2 required
161
+ // oauth required
162
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
163
+
164
+
165
+
166
+ localVarHeaderParameter['Content-Type'] = 'application/json';
167
+
168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
171
+ localVarRequestOptions.data = serializeDataIfNeeded(createSessionRequest, localVarRequestOptions, configuration)
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
116
178
  /**
117
179
  * Delete file inside workspace
118
180
  * @summary Delete file
@@ -149,6 +211,48 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
149
211
 
150
212
 
151
213
 
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
+
218
+ return {
219
+ url: toPathString(localVarUrlObj),
220
+ options: localVarRequestOptions,
221
+ };
222
+ },
223
+ /**
224
+ * Delete a specific session
225
+ * @summary Delete session
226
+ * @param {string} workspaceId
227
+ * @param {string} sessionId
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ deleteSession: async (workspaceId: string, sessionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
232
+ // verify required parameter 'workspaceId' is not null or undefined
233
+ assertParamExists('deleteSession', 'workspaceId', workspaceId)
234
+ // verify required parameter 'sessionId' is not null or undefined
235
+ assertParamExists('deleteSession', 'sessionId', sessionId)
236
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
237
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
238
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
239
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
241
+ let baseOptions;
242
+ if (configuration) {
243
+ baseOptions = configuration.baseOptions;
244
+ }
245
+
246
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
247
+ const localVarHeaderParameter = {} as any;
248
+ const localVarQueryParameter = {} as any;
249
+
250
+ // authentication oauth2 required
251
+ // oauth required
252
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
253
+
254
+
255
+
152
256
  setSearchParams(localVarUrlObj, localVarQueryParameter);
153
257
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
258
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -247,6 +351,54 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
247
351
  options: localVarRequestOptions,
248
352
  };
249
353
  },
354
+ /**
355
+ * Execute a command in a specific session
356
+ * @summary Execute command in session
357
+ * @param {string} workspaceId
358
+ * @param {string} sessionId
359
+ * @param {SessionExecuteRequest} sessionExecuteRequest
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ executeSessionCommand: async (workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
364
+ // verify required parameter 'workspaceId' is not null or undefined
365
+ assertParamExists('executeSessionCommand', 'workspaceId', workspaceId)
366
+ // verify required parameter 'sessionId' is not null or undefined
367
+ assertParamExists('executeSessionCommand', 'sessionId', sessionId)
368
+ // verify required parameter 'sessionExecuteRequest' is not null or undefined
369
+ assertParamExists('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest)
370
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/exec`
371
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
372
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
374
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
375
+ let baseOptions;
376
+ if (configuration) {
377
+ baseOptions = configuration.baseOptions;
378
+ }
379
+
380
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
381
+ const localVarHeaderParameter = {} as any;
382
+ const localVarQueryParameter = {} as any;
383
+
384
+ // authentication oauth2 required
385
+ // oauth required
386
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
387
+
388
+
389
+
390
+ localVarHeaderParameter['Content-Type'] = 'application/json';
391
+
392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
394
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
395
+ localVarRequestOptions.data = serializeDataIfNeeded(sessionExecuteRequest, localVarRequestOptions, configuration)
396
+
397
+ return {
398
+ url: toPathString(localVarUrlObj),
399
+ options: localVarRequestOptions,
400
+ };
401
+ },
250
402
  /**
251
403
  * Search for text/pattern inside workspace files
252
404
  * @summary Search for text/pattern in files
@@ -373,6 +525,52 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
373
525
 
374
526
 
375
527
 
528
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
529
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
530
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
531
+
532
+ return {
533
+ url: toPathString(localVarUrlObj),
534
+ options: localVarRequestOptions,
535
+ };
536
+ },
537
+ /**
538
+ * Get logs for a specific command in a session
539
+ * @summary Get command logs
540
+ * @param {string} workspaceId
541
+ * @param {string} sessionId
542
+ * @param {string} commandId
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ getSessionCommandLogs: async (workspaceId: string, sessionId: string, commandId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
547
+ // verify required parameter 'workspaceId' is not null or undefined
548
+ assertParamExists('getSessionCommandLogs', 'workspaceId', workspaceId)
549
+ // verify required parameter 'sessionId' is not null or undefined
550
+ assertParamExists('getSessionCommandLogs', 'sessionId', sessionId)
551
+ // verify required parameter 'commandId' is not null or undefined
552
+ assertParamExists('getSessionCommandLogs', 'commandId', commandId)
553
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
554
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
555
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
556
+ .replace(`{${"commandId"}}`, encodeURIComponent(String(commandId)));
557
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
558
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
559
+ let baseOptions;
560
+ if (configuration) {
561
+ baseOptions = configuration.baseOptions;
562
+ }
563
+
564
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
565
+ const localVarHeaderParameter = {} as any;
566
+ const localVarQueryParameter = {} as any;
567
+
568
+ // authentication oauth2 required
569
+ // oauth required
570
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
571
+
572
+
573
+
376
574
  setSearchParams(localVarUrlObj, localVarQueryParameter);
377
575
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
378
576
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -825,22 +1023,16 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
825
1023
  };
826
1024
  },
827
1025
  /**
828
- * Move file inside workspace
829
- * @summary Move file
1026
+ * List all active sessions in the workspace
1027
+ * @summary List sessions
830
1028
  * @param {string} workspaceId
831
- * @param {string} source
832
- * @param {string} destination
833
1029
  * @param {*} [options] Override http request option.
834
1030
  * @throws {RequiredError}
835
1031
  */
836
- moveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1032
+ listSessions: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
837
1033
  // verify required parameter 'workspaceId' is not null or undefined
838
- assertParamExists('moveFile', 'workspaceId', workspaceId)
839
- // verify required parameter 'source' is not null or undefined
840
- assertParamExists('moveFile', 'source', source)
841
- // verify required parameter 'destination' is not null or undefined
842
- assertParamExists('moveFile', 'destination', destination)
843
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`
1034
+ assertParamExists('listSessions', 'workspaceId', workspaceId)
1035
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`
844
1036
  .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
845
1037
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
846
1038
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -849,7 +1041,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
849
1041
  baseOptions = configuration.baseOptions;
850
1042
  }
851
1043
 
852
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1044
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
853
1045
  const localVarHeaderParameter = {} as any;
854
1046
  const localVarQueryParameter = {} as any;
855
1047
 
@@ -857,14 +1049,6 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
857
1049
  // oauth required
858
1050
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
859
1051
 
860
- if (source !== undefined) {
861
- localVarQueryParameter['source'] = source;
862
- }
863
-
864
- if (destination !== undefined) {
865
- localVarQueryParameter['destination'] = destination;
866
- }
867
-
868
1052
 
869
1053
 
870
1054
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -877,19 +1061,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
877
1061
  };
878
1062
  },
879
1063
  /**
880
- * Replace text/pattern in multiple files inside workspace
881
- * @summary Replace in files
1064
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1065
+ * @summary Get Lsp Completions
882
1066
  * @param {string} workspaceId
883
- * @param {ReplaceRequest} replaceRequest
1067
+ * @param {LspCompletionParams} lspCompletionParams
884
1068
  * @param {*} [options] Override http request option.
885
1069
  * @throws {RequiredError}
886
1070
  */
887
- replaceInFiles: async (workspaceId: string, replaceRequest: ReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1071
+ lspCompletions: async (workspaceId: string, lspCompletionParams: LspCompletionParams, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
888
1072
  // verify required parameter 'workspaceId' is not null or undefined
889
- assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
890
- // verify required parameter 'replaceRequest' is not null or undefined
891
- assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
892
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
1073
+ assertParamExists('lspCompletions', 'workspaceId', workspaceId)
1074
+ // verify required parameter 'lspCompletionParams' is not null or undefined
1075
+ assertParamExists('lspCompletions', 'lspCompletionParams', lspCompletionParams)
1076
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/completions`
893
1077
  .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
894
1078
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
895
1079
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -913,7 +1097,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
913
1097
  setSearchParams(localVarUrlObj, localVarQueryParameter);
914
1098
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
915
1099
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
916
- localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
1100
+ localVarRequestOptions.data = serializeDataIfNeeded(lspCompletionParams, localVarRequestOptions, configuration)
917
1101
 
918
1102
  return {
919
1103
  url: toPathString(localVarUrlObj),
@@ -921,22 +1105,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
921
1105
  };
922
1106
  },
923
1107
  /**
924
- * Search for files inside workspace
925
- * @summary Search files
1108
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1109
+ * @summary Call Lsp DidClose
926
1110
  * @param {string} workspaceId
927
- * @param {string} path
928
- * @param {string} pattern
1111
+ * @param {LspDocumentRequest} lspDocumentRequest
929
1112
  * @param {*} [options] Override http request option.
930
1113
  * @throws {RequiredError}
931
1114
  */
932
- searchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1115
+ lspDidClose: async (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
933
1116
  // verify required parameter 'workspaceId' is not null or undefined
934
- assertParamExists('searchFiles', 'workspaceId', workspaceId)
935
- // verify required parameter 'path' is not null or undefined
936
- assertParamExists('searchFiles', 'path', path)
937
- // verify required parameter 'pattern' is not null or undefined
938
- assertParamExists('searchFiles', 'pattern', pattern)
939
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`
1117
+ assertParamExists('lspDidClose', 'workspaceId', workspaceId)
1118
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1119
+ assertParamExists('lspDidClose', 'lspDocumentRequest', lspDocumentRequest)
1120
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-close`
940
1121
  .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
941
1122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
942
1123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -945,7 +1126,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
945
1126
  baseOptions = configuration.baseOptions;
946
1127
  }
947
1128
 
948
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1129
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
949
1130
  const localVarHeaderParameter = {} as any;
950
1131
  const localVarQueryParameter = {} as any;
951
1132
 
@@ -953,19 +1134,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
953
1134
  // oauth required
954
1135
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
955
1136
 
956
- if (path !== undefined) {
957
- localVarQueryParameter['path'] = path;
958
- }
959
-
960
- if (pattern !== undefined) {
961
- localVarQueryParameter['pattern'] = pattern;
962
- }
963
-
964
1137
 
965
1138
 
1139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1140
+
966
1141
  setSearchParams(localVarUrlObj, localVarQueryParameter);
967
1142
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
968
1143
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1144
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
969
1145
 
970
1146
  return {
971
1147
  url: toPathString(localVarUrlObj),
@@ -973,22 +1149,19 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
973
1149
  };
974
1150
  },
975
1151
  /**
976
- * Set file owner/group/permissions inside workspace
977
- * @summary Set file permissions
1152
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1153
+ * @summary Call Lsp DidOpen
978
1154
  * @param {string} workspaceId
979
- * @param {string} path
980
- * @param {string} [owner]
981
- * @param {string} [group]
982
- * @param {string} [mode]
1155
+ * @param {LspDocumentRequest} lspDocumentRequest
983
1156
  * @param {*} [options] Override http request option.
984
1157
  * @throws {RequiredError}
985
1158
  */
986
- setFilePermissions: async (workspaceId: string, path: string, owner?: string, group?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1159
+ lspDidOpen: async (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
987
1160
  // verify required parameter 'workspaceId' is not null or undefined
988
- assertParamExists('setFilePermissions', 'workspaceId', workspaceId)
989
- // verify required parameter 'path' is not null or undefined
990
- assertParamExists('setFilePermissions', 'path', path)
991
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`
1161
+ assertParamExists('lspDidOpen', 'workspaceId', workspaceId)
1162
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1163
+ assertParamExists('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest)
1164
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-open`
992
1165
  .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
993
1166
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
994
1167
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1005,27 +1178,14 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
1005
1178
  // oauth required
1006
1179
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1007
1180
 
1008
- if (path !== undefined) {
1009
- localVarQueryParameter['path'] = path;
1010
- }
1011
-
1012
- if (owner !== undefined) {
1013
- localVarQueryParameter['owner'] = owner;
1014
- }
1015
-
1016
- if (group !== undefined) {
1017
- localVarQueryParameter['group'] = group;
1018
- }
1019
-
1020
- if (mode !== undefined) {
1021
- localVarQueryParameter['mode'] = mode;
1022
- }
1023
-
1024
1181
 
1025
1182
 
1183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1184
+
1026
1185
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1027
1186
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1028
1187
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1188
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
1029
1189
 
1030
1190
  return {
1031
1191
  url: toPathString(localVarUrlObj),
@@ -1033,20 +1193,25 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
1033
1193
  };
1034
1194
  },
1035
1195
  /**
1036
- * Upload file inside workspace
1037
- * @summary Upload file
1196
+ * The document symbol request is sent from the client to the server.
1197
+ * @summary Call Lsp DocumentSymbols
1038
1198
  * @param {string} workspaceId
1039
- * @param {string} path
1040
- * @param {File} [file]
1199
+ * @param {string} languageId
1200
+ * @param {string} pathToProject
1201
+ * @param {string} uri
1041
1202
  * @param {*} [options] Override http request option.
1042
1203
  * @throws {RequiredError}
1043
1204
  */
1044
- uploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1205
+ lspDocumentSymbols: async (workspaceId: string, languageId: string, pathToProject: string, uri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1045
1206
  // verify required parameter 'workspaceId' is not null or undefined
1046
- assertParamExists('uploadFile', 'workspaceId', workspaceId)
1047
- // verify required parameter 'path' is not null or undefined
1048
- assertParamExists('uploadFile', 'path', path)
1049
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`
1207
+ assertParamExists('lspDocumentSymbols', 'workspaceId', workspaceId)
1208
+ // verify required parameter 'languageId' is not null or undefined
1209
+ assertParamExists('lspDocumentSymbols', 'languageId', languageId)
1210
+ // verify required parameter 'pathToProject' is not null or undefined
1211
+ assertParamExists('lspDocumentSymbols', 'pathToProject', pathToProject)
1212
+ // verify required parameter 'uri' is not null or undefined
1213
+ assertParamExists('lspDocumentSymbols', 'uri', uri)
1214
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/document-symbols`
1050
1215
  .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1051
1216
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1052
1217
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1055,46 +1220,455 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
1055
1220
  baseOptions = configuration.baseOptions;
1056
1221
  }
1057
1222
 
1058
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1223
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1059
1224
  const localVarHeaderParameter = {} as any;
1060
1225
  const localVarQueryParameter = {} as any;
1061
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1062
1226
 
1063
1227
  // authentication oauth2 required
1064
1228
  // oauth required
1065
1229
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1066
1230
 
1067
- if (path !== undefined) {
1068
- localVarQueryParameter['path'] = path;
1231
+ if (languageId !== undefined) {
1232
+ localVarQueryParameter['languageId'] = languageId;
1069
1233
  }
1070
1234
 
1235
+ if (pathToProject !== undefined) {
1236
+ localVarQueryParameter['pathToProject'] = pathToProject;
1237
+ }
1071
1238
 
1072
- if (file !== undefined) {
1073
- localVarFormParams.append('file', file as any);
1239
+ if (uri !== undefined) {
1240
+ localVarQueryParameter['uri'] = uri;
1074
1241
  }
1075
-
1076
-
1077
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1242
+
1243
+
1078
1244
 
1079
1245
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1080
1246
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1081
1247
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1082
- localVarRequestOptions.data = localVarFormParams;
1083
1248
 
1084
1249
  return {
1085
1250
  url: toPathString(localVarUrlObj),
1086
1251
  options: localVarRequestOptions,
1087
1252
  };
1088
1253
  },
1089
- }
1090
- };
1091
-
1092
- /**
1093
- * ToolboxApi - functional programming interface
1094
- * @export
1095
- */
1096
- export const ToolboxApiFp = function(configuration?: Configuration) {
1097
- const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
1254
+ /**
1255
+ * Start Lsp server process inside workspace project
1256
+ * @summary Start Lsp server
1257
+ * @param {string} workspaceId
1258
+ * @param {LspServerRequest} lspServerRequest
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ lspStart: async (workspaceId: string, lspServerRequest: LspServerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1263
+ // verify required parameter 'workspaceId' is not null or undefined
1264
+ assertParamExists('lspStart', 'workspaceId', workspaceId)
1265
+ // verify required parameter 'lspServerRequest' is not null or undefined
1266
+ assertParamExists('lspStart', 'lspServerRequest', lspServerRequest)
1267
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/start`
1268
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1271
+ let baseOptions;
1272
+ if (configuration) {
1273
+ baseOptions = configuration.baseOptions;
1274
+ }
1275
+
1276
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1277
+ const localVarHeaderParameter = {} as any;
1278
+ const localVarQueryParameter = {} as any;
1279
+
1280
+ // authentication oauth2 required
1281
+ // oauth required
1282
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1283
+
1284
+
1285
+
1286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1287
+
1288
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1290
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1291
+ localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration)
1292
+
1293
+ return {
1294
+ url: toPathString(localVarUrlObj),
1295
+ options: localVarRequestOptions,
1296
+ };
1297
+ },
1298
+ /**
1299
+ * Stop Lsp server process inside workspace project
1300
+ * @summary Stop Lsp server
1301
+ * @param {string} workspaceId
1302
+ * @param {LspServerRequest} lspServerRequest
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ lspStop: async (workspaceId: string, lspServerRequest: LspServerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1307
+ // verify required parameter 'workspaceId' is not null or undefined
1308
+ assertParamExists('lspStop', 'workspaceId', workspaceId)
1309
+ // verify required parameter 'lspServerRequest' is not null or undefined
1310
+ assertParamExists('lspStop', 'lspServerRequest', lspServerRequest)
1311
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/stop`
1312
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1314
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1315
+ let baseOptions;
1316
+ if (configuration) {
1317
+ baseOptions = configuration.baseOptions;
1318
+ }
1319
+
1320
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1321
+ const localVarHeaderParameter = {} as any;
1322
+ const localVarQueryParameter = {} as any;
1323
+
1324
+ // authentication oauth2 required
1325
+ // oauth required
1326
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1327
+
1328
+
1329
+
1330
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1331
+
1332
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1333
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1334
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1335
+ localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration)
1336
+
1337
+ return {
1338
+ url: toPathString(localVarUrlObj),
1339
+ options: localVarRequestOptions,
1340
+ };
1341
+ },
1342
+ /**
1343
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1344
+ * @summary Call Lsp WorkspaceSymbols
1345
+ * @param {string} workspaceId
1346
+ * @param {string} languageId
1347
+ * @param {string} pathToProject
1348
+ * @param {string} query
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ lspWorkspaceSymbols: async (workspaceId: string, languageId: string, pathToProject: string, query: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1353
+ // verify required parameter 'workspaceId' is not null or undefined
1354
+ assertParamExists('lspWorkspaceSymbols', 'workspaceId', workspaceId)
1355
+ // verify required parameter 'languageId' is not null or undefined
1356
+ assertParamExists('lspWorkspaceSymbols', 'languageId', languageId)
1357
+ // verify required parameter 'pathToProject' is not null or undefined
1358
+ assertParamExists('lspWorkspaceSymbols', 'pathToProject', pathToProject)
1359
+ // verify required parameter 'query' is not null or undefined
1360
+ assertParamExists('lspWorkspaceSymbols', 'query', query)
1361
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/workspace-symbols`
1362
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1364
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1365
+ let baseOptions;
1366
+ if (configuration) {
1367
+ baseOptions = configuration.baseOptions;
1368
+ }
1369
+
1370
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1371
+ const localVarHeaderParameter = {} as any;
1372
+ const localVarQueryParameter = {} as any;
1373
+
1374
+ // authentication oauth2 required
1375
+ // oauth required
1376
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1377
+
1378
+ if (languageId !== undefined) {
1379
+ localVarQueryParameter['languageId'] = languageId;
1380
+ }
1381
+
1382
+ if (pathToProject !== undefined) {
1383
+ localVarQueryParameter['pathToProject'] = pathToProject;
1384
+ }
1385
+
1386
+ if (query !== undefined) {
1387
+ localVarQueryParameter['query'] = query;
1388
+ }
1389
+
1390
+
1391
+
1392
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1393
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1394
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1395
+
1396
+ return {
1397
+ url: toPathString(localVarUrlObj),
1398
+ options: localVarRequestOptions,
1399
+ };
1400
+ },
1401
+ /**
1402
+ * Move file inside workspace
1403
+ * @summary Move file
1404
+ * @param {string} workspaceId
1405
+ * @param {string} source
1406
+ * @param {string} destination
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ */
1410
+ moveFile: async (workspaceId: string, source: string, destination: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1411
+ // verify required parameter 'workspaceId' is not null or undefined
1412
+ assertParamExists('moveFile', 'workspaceId', workspaceId)
1413
+ // verify required parameter 'source' is not null or undefined
1414
+ assertParamExists('moveFile', 'source', source)
1415
+ // verify required parameter 'destination' is not null or undefined
1416
+ assertParamExists('moveFile', 'destination', destination)
1417
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`
1418
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1419
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1420
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1421
+ let baseOptions;
1422
+ if (configuration) {
1423
+ baseOptions = configuration.baseOptions;
1424
+ }
1425
+
1426
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1427
+ const localVarHeaderParameter = {} as any;
1428
+ const localVarQueryParameter = {} as any;
1429
+
1430
+ // authentication oauth2 required
1431
+ // oauth required
1432
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1433
+
1434
+ if (source !== undefined) {
1435
+ localVarQueryParameter['source'] = source;
1436
+ }
1437
+
1438
+ if (destination !== undefined) {
1439
+ localVarQueryParameter['destination'] = destination;
1440
+ }
1441
+
1442
+
1443
+
1444
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1445
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1446
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1447
+
1448
+ return {
1449
+ url: toPathString(localVarUrlObj),
1450
+ options: localVarRequestOptions,
1451
+ };
1452
+ },
1453
+ /**
1454
+ * Replace text/pattern in multiple files inside workspace
1455
+ * @summary Replace in files
1456
+ * @param {string} workspaceId
1457
+ * @param {ReplaceRequest} replaceRequest
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ */
1461
+ replaceInFiles: async (workspaceId: string, replaceRequest: ReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1462
+ // verify required parameter 'workspaceId' is not null or undefined
1463
+ assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
1464
+ // verify required parameter 'replaceRequest' is not null or undefined
1465
+ assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
1466
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
1467
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1469
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1470
+ let baseOptions;
1471
+ if (configuration) {
1472
+ baseOptions = configuration.baseOptions;
1473
+ }
1474
+
1475
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1476
+ const localVarHeaderParameter = {} as any;
1477
+ const localVarQueryParameter = {} as any;
1478
+
1479
+ // authentication oauth2 required
1480
+ // oauth required
1481
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1482
+
1483
+
1484
+
1485
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1486
+
1487
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1488
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1489
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1490
+ localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
1491
+
1492
+ return {
1493
+ url: toPathString(localVarUrlObj),
1494
+ options: localVarRequestOptions,
1495
+ };
1496
+ },
1497
+ /**
1498
+ * Search for files inside workspace
1499
+ * @summary Search files
1500
+ * @param {string} workspaceId
1501
+ * @param {string} path
1502
+ * @param {string} pattern
1503
+ * @param {*} [options] Override http request option.
1504
+ * @throws {RequiredError}
1505
+ */
1506
+ searchFiles: async (workspaceId: string, path: string, pattern: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1507
+ // verify required parameter 'workspaceId' is not null or undefined
1508
+ assertParamExists('searchFiles', 'workspaceId', workspaceId)
1509
+ // verify required parameter 'path' is not null or undefined
1510
+ assertParamExists('searchFiles', 'path', path)
1511
+ // verify required parameter 'pattern' is not null or undefined
1512
+ assertParamExists('searchFiles', 'pattern', pattern)
1513
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`
1514
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1515
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1516
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1517
+ let baseOptions;
1518
+ if (configuration) {
1519
+ baseOptions = configuration.baseOptions;
1520
+ }
1521
+
1522
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1523
+ const localVarHeaderParameter = {} as any;
1524
+ const localVarQueryParameter = {} as any;
1525
+
1526
+ // authentication oauth2 required
1527
+ // oauth required
1528
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1529
+
1530
+ if (path !== undefined) {
1531
+ localVarQueryParameter['path'] = path;
1532
+ }
1533
+
1534
+ if (pattern !== undefined) {
1535
+ localVarQueryParameter['pattern'] = pattern;
1536
+ }
1537
+
1538
+
1539
+
1540
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1541
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1542
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1543
+
1544
+ return {
1545
+ url: toPathString(localVarUrlObj),
1546
+ options: localVarRequestOptions,
1547
+ };
1548
+ },
1549
+ /**
1550
+ * Set file owner/group/permissions inside workspace
1551
+ * @summary Set file permissions
1552
+ * @param {string} workspaceId
1553
+ * @param {string} path
1554
+ * @param {string} [owner]
1555
+ * @param {string} [group]
1556
+ * @param {string} [mode]
1557
+ * @param {*} [options] Override http request option.
1558
+ * @throws {RequiredError}
1559
+ */
1560
+ setFilePermissions: async (workspaceId: string, path: string, owner?: string, group?: string, mode?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1561
+ // verify required parameter 'workspaceId' is not null or undefined
1562
+ assertParamExists('setFilePermissions', 'workspaceId', workspaceId)
1563
+ // verify required parameter 'path' is not null or undefined
1564
+ assertParamExists('setFilePermissions', 'path', path)
1565
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`
1566
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1567
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1568
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1569
+ let baseOptions;
1570
+ if (configuration) {
1571
+ baseOptions = configuration.baseOptions;
1572
+ }
1573
+
1574
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1575
+ const localVarHeaderParameter = {} as any;
1576
+ const localVarQueryParameter = {} as any;
1577
+
1578
+ // authentication oauth2 required
1579
+ // oauth required
1580
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1581
+
1582
+ if (path !== undefined) {
1583
+ localVarQueryParameter['path'] = path;
1584
+ }
1585
+
1586
+ if (owner !== undefined) {
1587
+ localVarQueryParameter['owner'] = owner;
1588
+ }
1589
+
1590
+ if (group !== undefined) {
1591
+ localVarQueryParameter['group'] = group;
1592
+ }
1593
+
1594
+ if (mode !== undefined) {
1595
+ localVarQueryParameter['mode'] = mode;
1596
+ }
1597
+
1598
+
1599
+
1600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1603
+
1604
+ return {
1605
+ url: toPathString(localVarUrlObj),
1606
+ options: localVarRequestOptions,
1607
+ };
1608
+ },
1609
+ /**
1610
+ * Upload file inside workspace
1611
+ * @summary Upload file
1612
+ * @param {string} workspaceId
1613
+ * @param {string} path
1614
+ * @param {File} [file]
1615
+ * @param {*} [options] Override http request option.
1616
+ * @throws {RequiredError}
1617
+ */
1618
+ uploadFile: async (workspaceId: string, path: string, file?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1619
+ // verify required parameter 'workspaceId' is not null or undefined
1620
+ assertParamExists('uploadFile', 'workspaceId', workspaceId)
1621
+ // verify required parameter 'path' is not null or undefined
1622
+ assertParamExists('uploadFile', 'path', path)
1623
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`
1624
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1625
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1626
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1627
+ let baseOptions;
1628
+ if (configuration) {
1629
+ baseOptions = configuration.baseOptions;
1630
+ }
1631
+
1632
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1633
+ const localVarHeaderParameter = {} as any;
1634
+ const localVarQueryParameter = {} as any;
1635
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1636
+
1637
+ // authentication oauth2 required
1638
+ // oauth required
1639
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1640
+
1641
+ if (path !== undefined) {
1642
+ localVarQueryParameter['path'] = path;
1643
+ }
1644
+
1645
+
1646
+ if (file !== undefined) {
1647
+ localVarFormParams.append('file', file as any);
1648
+ }
1649
+
1650
+
1651
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1652
+
1653
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1655
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1656
+ localVarRequestOptions.data = localVarFormParams;
1657
+
1658
+ return {
1659
+ url: toPathString(localVarUrlObj),
1660
+ options: localVarRequestOptions,
1661
+ };
1662
+ },
1663
+ }
1664
+ };
1665
+
1666
+ /**
1667
+ * ToolboxApi - functional programming interface
1668
+ * @export
1669
+ */
1670
+ export const ToolboxApiFp = function(configuration?: Configuration) {
1671
+ const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
1098
1672
  return {
1099
1673
  /**
1100
1674
  * Create folder inside workspace
@@ -1111,6 +1685,20 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1111
1685
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url;
1112
1686
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1113
1687
  },
1688
+ /**
1689
+ * Create a new session in the workspace
1690
+ * @summary Create session
1691
+ * @param {string} workspaceId
1692
+ * @param {CreateSessionRequest} createSessionRequest
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ async createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>> {
1697
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(workspaceId, createSessionRequest, options);
1698
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1699
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createSession']?.[localVarOperationServerIndex]?.url;
1700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1701
+ },
1114
1702
  /**
1115
1703
  * Delete file inside workspace
1116
1704
  * @summary Delete file
@@ -1125,6 +1713,20 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1125
1713
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url;
1126
1714
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1127
1715
  },
1716
+ /**
1717
+ * Delete a specific session
1718
+ * @summary Delete session
1719
+ * @param {string} workspaceId
1720
+ * @param {string} sessionId
1721
+ * @param {*} [options] Override http request option.
1722
+ * @throws {RequiredError}
1723
+ */
1724
+ async deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1725
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSession(workspaceId, sessionId, options);
1726
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1727
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.deleteSession']?.[localVarOperationServerIndex]?.url;
1728
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1729
+ },
1128
1730
  /**
1129
1731
  * Download file from workspace
1130
1732
  * @summary Download file
@@ -1153,6 +1755,21 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1153
1755
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
1154
1756
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1155
1757
  },
1758
+ /**
1759
+ * Execute a command in a specific session
1760
+ * @summary Execute command in session
1761
+ * @param {string} workspaceId
1762
+ * @param {string} sessionId
1763
+ * @param {SessionExecuteRequest} sessionExecuteRequest
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ async executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionExecuteResponse>> {
1768
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options);
1769
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1770
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeSessionCommand']?.[localVarOperationServerIndex]?.url;
1771
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1772
+ },
1156
1773
  /**
1157
1774
  * Search for text/pattern inside workspace files
1158
1775
  * @summary Search for text/pattern in files
@@ -1195,6 +1812,21 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1195
1812
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
1196
1813
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1197
1814
  },
1815
+ /**
1816
+ * Get logs for a specific command in a session
1817
+ * @summary Get command logs
1818
+ * @param {string} workspaceId
1819
+ * @param {string} sessionId
1820
+ * @param {string} commandId
1821
+ * @param {*} [options] Override http request option.
1822
+ * @throws {RequiredError}
1823
+ */
1824
+ async getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
1825
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommandLogs(workspaceId, sessionId, commandId, options);
1826
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1827
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
1828
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1829
+ },
1198
1830
  /**
1199
1831
  * Add files to git commit
1200
1832
  * @summary Add files
@@ -1335,6 +1967,121 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1335
1967
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
1336
1968
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1337
1969
  },
1970
+ /**
1971
+ * List all active sessions in the workspace
1972
+ * @summary List sessions
1973
+ * @param {string} workspaceId
1974
+ * @param {*} [options] Override http request option.
1975
+ * @throws {RequiredError}
1976
+ */
1977
+ async listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>> {
1978
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(workspaceId, options);
1979
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1980
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listSessions']?.[localVarOperationServerIndex]?.url;
1981
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1982
+ },
1983
+ /**
1984
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1985
+ * @summary Get Lsp Completions
1986
+ * @param {string} workspaceId
1987
+ * @param {LspCompletionParams} lspCompletionParams
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ async lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletionList>> {
1992
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspCompletions(workspaceId, lspCompletionParams, options);
1993
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1994
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspCompletions']?.[localVarOperationServerIndex]?.url;
1995
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1996
+ },
1997
+ /**
1998
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1999
+ * @summary Call Lsp DidClose
2000
+ * @param {string} workspaceId
2001
+ * @param {LspDocumentRequest} lspDocumentRequest
2002
+ * @param {*} [options] Override http request option.
2003
+ * @throws {RequiredError}
2004
+ */
2005
+ async lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidClose(workspaceId, lspDocumentRequest, options);
2007
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2008
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspDidClose']?.[localVarOperationServerIndex]?.url;
2009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2010
+ },
2011
+ /**
2012
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2013
+ * @summary Call Lsp DidOpen
2014
+ * @param {string} workspaceId
2015
+ * @param {LspDocumentRequest} lspDocumentRequest
2016
+ * @param {*} [options] Override http request option.
2017
+ * @throws {RequiredError}
2018
+ */
2019
+ async lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2020
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidOpen(workspaceId, lspDocumentRequest, options);
2021
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2022
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspDidOpen']?.[localVarOperationServerIndex]?.url;
2023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2024
+ },
2025
+ /**
2026
+ * The document symbol request is sent from the client to the server.
2027
+ * @summary Call Lsp DocumentSymbols
2028
+ * @param {string} workspaceId
2029
+ * @param {string} languageId
2030
+ * @param {string} pathToProject
2031
+ * @param {string} uri
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ */
2035
+ async lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>> {
2036
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options);
2037
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2038
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspDocumentSymbols']?.[localVarOperationServerIndex]?.url;
2039
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2040
+ },
2041
+ /**
2042
+ * Start Lsp server process inside workspace project
2043
+ * @summary Start Lsp server
2044
+ * @param {string} workspaceId
2045
+ * @param {LspServerRequest} lspServerRequest
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ */
2049
+ async lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2050
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspStart(workspaceId, lspServerRequest, options);
2051
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2052
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspStart']?.[localVarOperationServerIndex]?.url;
2053
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2054
+ },
2055
+ /**
2056
+ * Stop Lsp server process inside workspace project
2057
+ * @summary Stop Lsp server
2058
+ * @param {string} workspaceId
2059
+ * @param {LspServerRequest} lspServerRequest
2060
+ * @param {*} [options] Override http request option.
2061
+ * @throws {RequiredError}
2062
+ */
2063
+ async lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspStop(workspaceId, lspServerRequest, options);
2065
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2066
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspStop']?.[localVarOperationServerIndex]?.url;
2067
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2068
+ },
2069
+ /**
2070
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2071
+ * @summary Call Lsp WorkspaceSymbols
2072
+ * @param {string} workspaceId
2073
+ * @param {string} languageId
2074
+ * @param {string} pathToProject
2075
+ * @param {string} query
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ */
2079
+ async lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>> {
2080
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options);
2081
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2082
+ const localVarOperationServerBasePath = operationServerMap['ToolboxApi.lspWorkspaceSymbols']?.[localVarOperationServerIndex]?.url;
2083
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2084
+ },
1338
2085
  /**
1339
2086
  * Move file inside workspace
1340
2087
  * @summary Move file
@@ -1433,6 +2180,17 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1433
2180
  createFolder(workspaceId: string, path: string, mode: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1434
2181
  return localVarFp.createFolder(workspaceId, path, mode, options).then((request) => request(axios, basePath));
1435
2182
  },
2183
+ /**
2184
+ * Create a new session in the workspace
2185
+ * @summary Create session
2186
+ * @param {string} workspaceId
2187
+ * @param {CreateSessionRequest} createSessionRequest
2188
+ * @param {*} [options] Override http request option.
2189
+ * @throws {RequiredError}
2190
+ */
2191
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session> {
2192
+ return localVarFp.createSession(workspaceId, createSessionRequest, options).then((request) => request(axios, basePath));
2193
+ },
1436
2194
  /**
1437
2195
  * Delete file inside workspace
1438
2196
  * @summary Delete file
@@ -1444,6 +2202,17 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1444
2202
  deleteFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1445
2203
  return localVarFp.deleteFile(workspaceId, path, options).then((request) => request(axios, basePath));
1446
2204
  },
2205
+ /**
2206
+ * Delete a specific session
2207
+ * @summary Delete session
2208
+ * @param {string} workspaceId
2209
+ * @param {string} sessionId
2210
+ * @param {*} [options] Override http request option.
2211
+ * @throws {RequiredError}
2212
+ */
2213
+ deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2214
+ return localVarFp.deleteSession(workspaceId, sessionId, options).then((request) => request(axios, basePath));
2215
+ },
1447
2216
  /**
1448
2217
  * Download file from workspace
1449
2218
  * @summary Download file
@@ -1466,6 +2235,18 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1466
2235
  executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
1467
2236
  return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
1468
2237
  },
2238
+ /**
2239
+ * Execute a command in a specific session
2240
+ * @summary Execute command in session
2241
+ * @param {string} workspaceId
2242
+ * @param {string} sessionId
2243
+ * @param {SessionExecuteRequest} sessionExecuteRequest
2244
+ * @param {*} [options] Override http request option.
2245
+ * @throws {RequiredError}
2246
+ */
2247
+ executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<SessionExecuteResponse> {
2248
+ return localVarFp.executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(axios, basePath));
2249
+ },
1469
2250
  /**
1470
2251
  * Search for text/pattern inside workspace files
1471
2252
  * @summary Search for text/pattern in files
@@ -1499,6 +2280,18 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1499
2280
  getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse> {
1500
2281
  return localVarFp.getProjectDir(workspaceId, options).then((request) => request(axios, basePath));
1501
2282
  },
2283
+ /**
2284
+ * Get logs for a specific command in a session
2285
+ * @summary Get command logs
2286
+ * @param {string} workspaceId
2287
+ * @param {string} sessionId
2288
+ * @param {string} commandId
2289
+ * @param {*} [options] Override http request option.
2290
+ * @throws {RequiredError}
2291
+ */
2292
+ getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
2293
+ return localVarFp.getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(axios, basePath));
2294
+ },
1502
2295
  /**
1503
2296
  * Add files to git commit
1504
2297
  * @summary Add files
@@ -1609,6 +2402,97 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1609
2402
  listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>> {
1610
2403
  return localVarFp.listFiles(workspaceId, path, options).then((request) => request(axios, basePath));
1611
2404
  },
2405
+ /**
2406
+ * List all active sessions in the workspace
2407
+ * @summary List sessions
2408
+ * @param {string} workspaceId
2409
+ * @param {*} [options] Override http request option.
2410
+ * @throws {RequiredError}
2411
+ */
2412
+ listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>> {
2413
+ return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
2414
+ },
2415
+ /**
2416
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2417
+ * @summary Get Lsp Completions
2418
+ * @param {string} workspaceId
2419
+ * @param {LspCompletionParams} lspCompletionParams
2420
+ * @param {*} [options] Override http request option.
2421
+ * @throws {RequiredError}
2422
+ */
2423
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): AxiosPromise<CompletionList> {
2424
+ return localVarFp.lspCompletions(workspaceId, lspCompletionParams, options).then((request) => request(axios, basePath));
2425
+ },
2426
+ /**
2427
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2428
+ * @summary Call Lsp DidClose
2429
+ * @param {string} workspaceId
2430
+ * @param {LspDocumentRequest} lspDocumentRequest
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ */
2434
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2435
+ return localVarFp.lspDidClose(workspaceId, lspDocumentRequest, options).then((request) => request(axios, basePath));
2436
+ },
2437
+ /**
2438
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2439
+ * @summary Call Lsp DidOpen
2440
+ * @param {string} workspaceId
2441
+ * @param {LspDocumentRequest} lspDocumentRequest
2442
+ * @param {*} [options] Override http request option.
2443
+ * @throws {RequiredError}
2444
+ */
2445
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2446
+ return localVarFp.lspDidOpen(workspaceId, lspDocumentRequest, options).then((request) => request(axios, basePath));
2447
+ },
2448
+ /**
2449
+ * The document symbol request is sent from the client to the server.
2450
+ * @summary Call Lsp DocumentSymbols
2451
+ * @param {string} workspaceId
2452
+ * @param {string} languageId
2453
+ * @param {string} pathToProject
2454
+ * @param {string} uri
2455
+ * @param {*} [options] Override http request option.
2456
+ * @throws {RequiredError}
2457
+ */
2458
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>> {
2459
+ return localVarFp.lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options).then((request) => request(axios, basePath));
2460
+ },
2461
+ /**
2462
+ * Start Lsp server process inside workspace project
2463
+ * @summary Start Lsp server
2464
+ * @param {string} workspaceId
2465
+ * @param {LspServerRequest} lspServerRequest
2466
+ * @param {*} [options] Override http request option.
2467
+ * @throws {RequiredError}
2468
+ */
2469
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2470
+ return localVarFp.lspStart(workspaceId, lspServerRequest, options).then((request) => request(axios, basePath));
2471
+ },
2472
+ /**
2473
+ * Stop Lsp server process inside workspace project
2474
+ * @summary Stop Lsp server
2475
+ * @param {string} workspaceId
2476
+ * @param {LspServerRequest} lspServerRequest
2477
+ * @param {*} [options] Override http request option.
2478
+ * @throws {RequiredError}
2479
+ */
2480
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2481
+ return localVarFp.lspStop(workspaceId, lspServerRequest, options).then((request) => request(axios, basePath));
2482
+ },
2483
+ /**
2484
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2485
+ * @summary Call Lsp WorkspaceSymbols
2486
+ * @param {string} workspaceId
2487
+ * @param {string} languageId
2488
+ * @param {string} pathToProject
2489
+ * @param {string} query
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>> {
2494
+ return localVarFp.lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options).then((request) => request(axios, basePath));
2495
+ },
1612
2496
  /**
1613
2497
  * Move file inside workspace
1614
2498
  * @summary Move file
@@ -1694,6 +2578,19 @@ export class ToolboxApi extends BaseAPI {
1694
2578
  return ToolboxApiFp(this.configuration).createFolder(workspaceId, path, mode, options).then((request) => request(this.axios, this.basePath));
1695
2579
  }
1696
2580
 
2581
+ /**
2582
+ * Create a new session in the workspace
2583
+ * @summary Create session
2584
+ * @param {string} workspaceId
2585
+ * @param {CreateSessionRequest} createSessionRequest
2586
+ * @param {*} [options] Override http request option.
2587
+ * @throws {RequiredError}
2588
+ * @memberof ToolboxApi
2589
+ */
2590
+ public createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig) {
2591
+ return ToolboxApiFp(this.configuration).createSession(workspaceId, createSessionRequest, options).then((request) => request(this.axios, this.basePath));
2592
+ }
2593
+
1697
2594
  /**
1698
2595
  * Delete file inside workspace
1699
2596
  * @summary Delete file
@@ -1707,6 +2604,19 @@ export class ToolboxApi extends BaseAPI {
1707
2604
  return ToolboxApiFp(this.configuration).deleteFile(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1708
2605
  }
1709
2606
 
2607
+ /**
2608
+ * Delete a specific session
2609
+ * @summary Delete session
2610
+ * @param {string} workspaceId
2611
+ * @param {string} sessionId
2612
+ * @param {*} [options] Override http request option.
2613
+ * @throws {RequiredError}
2614
+ * @memberof ToolboxApi
2615
+ */
2616
+ public deleteSession(workspaceId: string, sessionId: string, options?: RawAxiosRequestConfig) {
2617
+ return ToolboxApiFp(this.configuration).deleteSession(workspaceId, sessionId, options).then((request) => request(this.axios, this.basePath));
2618
+ }
2619
+
1710
2620
  /**
1711
2621
  * Download file from workspace
1712
2622
  * @summary Download file
@@ -1733,6 +2643,20 @@ export class ToolboxApi extends BaseAPI {
1733
2643
  return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
1734
2644
  }
1735
2645
 
2646
+ /**
2647
+ * Execute a command in a specific session
2648
+ * @summary Execute command in session
2649
+ * @param {string} workspaceId
2650
+ * @param {string} sessionId
2651
+ * @param {SessionExecuteRequest} sessionExecuteRequest
2652
+ * @param {*} [options] Override http request option.
2653
+ * @throws {RequiredError}
2654
+ * @memberof ToolboxApi
2655
+ */
2656
+ public executeSessionCommand(workspaceId: string, sessionId: string, sessionExecuteRequest: SessionExecuteRequest, options?: RawAxiosRequestConfig) {
2657
+ return ToolboxApiFp(this.configuration).executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, options).then((request) => request(this.axios, this.basePath));
2658
+ }
2659
+
1736
2660
  /**
1737
2661
  * Search for text/pattern inside workspace files
1738
2662
  * @summary Search for text/pattern in files
@@ -1772,6 +2696,20 @@ export class ToolboxApi extends BaseAPI {
1772
2696
  return ToolboxApiFp(this.configuration).getProjectDir(workspaceId, options).then((request) => request(this.axios, this.basePath));
1773
2697
  }
1774
2698
 
2699
+ /**
2700
+ * Get logs for a specific command in a session
2701
+ * @summary Get command logs
2702
+ * @param {string} workspaceId
2703
+ * @param {string} sessionId
2704
+ * @param {string} commandId
2705
+ * @param {*} [options] Override http request option.
2706
+ * @throws {RequiredError}
2707
+ * @memberof ToolboxApi
2708
+ */
2709
+ public getSessionCommandLogs(workspaceId: string, sessionId: string, commandId: string, options?: RawAxiosRequestConfig) {
2710
+ return ToolboxApiFp(this.configuration).getSessionCommandLogs(workspaceId, sessionId, commandId, options).then((request) => request(this.axios, this.basePath));
2711
+ }
2712
+
1775
2713
  /**
1776
2714
  * Add files to git commit
1777
2715
  * @summary Add files
@@ -1902,6 +2840,113 @@ export class ToolboxApi extends BaseAPI {
1902
2840
  return ToolboxApiFp(this.configuration).listFiles(workspaceId, path, options).then((request) => request(this.axios, this.basePath));
1903
2841
  }
1904
2842
 
2843
+ /**
2844
+ * List all active sessions in the workspace
2845
+ * @summary List sessions
2846
+ * @param {string} workspaceId
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ * @memberof ToolboxApi
2850
+ */
2851
+ public listSessions(workspaceId: string, options?: RawAxiosRequestConfig) {
2852
+ return ToolboxApiFp(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
2853
+ }
2854
+
2855
+ /**
2856
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2857
+ * @summary Get Lsp Completions
2858
+ * @param {string} workspaceId
2859
+ * @param {LspCompletionParams} lspCompletionParams
2860
+ * @param {*} [options] Override http request option.
2861
+ * @throws {RequiredError}
2862
+ * @memberof ToolboxApi
2863
+ */
2864
+ public lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig) {
2865
+ return ToolboxApiFp(this.configuration).lspCompletions(workspaceId, lspCompletionParams, options).then((request) => request(this.axios, this.basePath));
2866
+ }
2867
+
2868
+ /**
2869
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2870
+ * @summary Call Lsp DidClose
2871
+ * @param {string} workspaceId
2872
+ * @param {LspDocumentRequest} lspDocumentRequest
2873
+ * @param {*} [options] Override http request option.
2874
+ * @throws {RequiredError}
2875
+ * @memberof ToolboxApi
2876
+ */
2877
+ public lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) {
2878
+ return ToolboxApiFp(this.configuration).lspDidClose(workspaceId, lspDocumentRequest, options).then((request) => request(this.axios, this.basePath));
2879
+ }
2880
+
2881
+ /**
2882
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2883
+ * @summary Call Lsp DidOpen
2884
+ * @param {string} workspaceId
2885
+ * @param {LspDocumentRequest} lspDocumentRequest
2886
+ * @param {*} [options] Override http request option.
2887
+ * @throws {RequiredError}
2888
+ * @memberof ToolboxApi
2889
+ */
2890
+ public lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) {
2891
+ return ToolboxApiFp(this.configuration).lspDidOpen(workspaceId, lspDocumentRequest, options).then((request) => request(this.axios, this.basePath));
2892
+ }
2893
+
2894
+ /**
2895
+ * The document symbol request is sent from the client to the server.
2896
+ * @summary Call Lsp DocumentSymbols
2897
+ * @param {string} workspaceId
2898
+ * @param {string} languageId
2899
+ * @param {string} pathToProject
2900
+ * @param {string} uri
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof ToolboxApi
2904
+ */
2905
+ public lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig) {
2906
+ return ToolboxApiFp(this.configuration).lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options).then((request) => request(this.axios, this.basePath));
2907
+ }
2908
+
2909
+ /**
2910
+ * Start Lsp server process inside workspace project
2911
+ * @summary Start Lsp server
2912
+ * @param {string} workspaceId
2913
+ * @param {LspServerRequest} lspServerRequest
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ * @memberof ToolboxApi
2917
+ */
2918
+ public lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) {
2919
+ return ToolboxApiFp(this.configuration).lspStart(workspaceId, lspServerRequest, options).then((request) => request(this.axios, this.basePath));
2920
+ }
2921
+
2922
+ /**
2923
+ * Stop Lsp server process inside workspace project
2924
+ * @summary Stop Lsp server
2925
+ * @param {string} workspaceId
2926
+ * @param {LspServerRequest} lspServerRequest
2927
+ * @param {*} [options] Override http request option.
2928
+ * @throws {RequiredError}
2929
+ * @memberof ToolboxApi
2930
+ */
2931
+ public lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) {
2932
+ return ToolboxApiFp(this.configuration).lspStop(workspaceId, lspServerRequest, options).then((request) => request(this.axios, this.basePath));
2933
+ }
2934
+
2935
+ /**
2936
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2937
+ * @summary Call Lsp WorkspaceSymbols
2938
+ * @param {string} workspaceId
2939
+ * @param {string} languageId
2940
+ * @param {string} pathToProject
2941
+ * @param {string} query
2942
+ * @param {*} [options] Override http request option.
2943
+ * @throws {RequiredError}
2944
+ * @memberof ToolboxApi
2945
+ */
2946
+ public lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig) {
2947
+ return ToolboxApiFp(this.configuration).lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options).then((request) => request(this.axios, this.basePath));
2948
+ }
2949
+
1905
2950
  /**
1906
2951
  * Move file inside workspace
1907
2952
  * @summary Move file