@daytonaio/api-client 0.8.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 (63) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +626 -0
  4. package/dist/api/toolbox-api.d.ts +280 -0
  5. package/dist/api/toolbox-api.js +577 -0
  6. package/dist/esm/api/toolbox-api.d.ts +280 -0
  7. package/dist/esm/api/toolbox-api.js +577 -0
  8. package/dist/esm/models/completion-context.d.ts +30 -0
  9. package/dist/esm/models/completion-context.js +14 -0
  10. package/dist/esm/models/completion-item.d.ts +60 -0
  11. package/dist/esm/models/completion-item.js +14 -0
  12. package/dist/esm/models/completion-list.d.ts +31 -0
  13. package/dist/esm/models/completion-list.js +14 -0
  14. package/dist/esm/models/index.d.ts +10 -0
  15. package/dist/esm/models/index.js +10 -0
  16. package/dist/esm/models/lsp-completion-params.d.ts +50 -0
  17. package/dist/esm/models/lsp-completion-params.js +14 -0
  18. package/dist/esm/models/lsp-document-request.d.ts +36 -0
  19. package/dist/esm/models/lsp-document-request.js +14 -0
  20. package/dist/esm/models/lsp-location.d.ts +31 -0
  21. package/dist/esm/models/lsp-location.js +14 -0
  22. package/dist/esm/models/lsp-server-request.d.ts +30 -0
  23. package/dist/esm/models/lsp-server-request.js +14 -0
  24. package/dist/esm/models/lsp-symbol.d.ts +37 -0
  25. package/dist/esm/models/lsp-symbol.js +14 -0
  26. package/dist/esm/models/position.d.ts +30 -0
  27. package/dist/esm/models/position.js +14 -0
  28. package/dist/esm/models/range.d.ts +31 -0
  29. package/dist/esm/models/range.js +14 -0
  30. package/dist/models/completion-context.d.ts +30 -0
  31. package/dist/models/completion-context.js +15 -0
  32. package/dist/models/completion-item.d.ts +60 -0
  33. package/dist/models/completion-item.js +15 -0
  34. package/dist/models/completion-list.d.ts +31 -0
  35. package/dist/models/completion-list.js +15 -0
  36. package/dist/models/index.d.ts +10 -0
  37. package/dist/models/index.js +10 -0
  38. package/dist/models/lsp-completion-params.d.ts +50 -0
  39. package/dist/models/lsp-completion-params.js +15 -0
  40. package/dist/models/lsp-document-request.d.ts +36 -0
  41. package/dist/models/lsp-document-request.js +15 -0
  42. package/dist/models/lsp-location.d.ts +31 -0
  43. package/dist/models/lsp-location.js +15 -0
  44. package/dist/models/lsp-server-request.d.ts +30 -0
  45. package/dist/models/lsp-server-request.js +15 -0
  46. package/dist/models/lsp-symbol.d.ts +37 -0
  47. package/dist/models/lsp-symbol.js +15 -0
  48. package/dist/models/position.d.ts +30 -0
  49. package/dist/models/position.js +15 -0
  50. package/dist/models/range.d.ts +31 -0
  51. package/dist/models/range.js +15 -0
  52. package/models/completion-context.ts +36 -0
  53. package/models/completion-item.ts +66 -0
  54. package/models/completion-list.ts +39 -0
  55. package/models/index.ts +10 -0
  56. package/models/lsp-completion-params.ts +60 -0
  57. package/models/lsp-document-request.ts +42 -0
  58. package/models/lsp-location.ts +39 -0
  59. package/models/lsp-server-request.ts +36 -0
  60. package/models/lsp-symbol.ts +45 -0
  61. package/models/position.ts +36 -0
  62. package/models/range.ts +39 -0
  63. package/package.json +1 -1
@@ -22,6 +22,8 @@ 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
25
27
  import type { CreateSessionRequest } from '../models';
26
28
  // @ts-ignore
27
29
  import type { ExecuteRequest } from '../models';
@@ -48,6 +50,14 @@ import type { GitStatus } from '../models';
48
50
  // @ts-ignore
49
51
  import type { ListBranchResponse } from '../models';
50
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
51
61
  import type { Match } from '../models';
52
62
  // @ts-ignore
53
63
  import type { ProjectDirResponse } from '../models';
@@ -1041,6 +1051,344 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
1041
1051
 
1042
1052
 
1043
1053
 
1054
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1055
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1056
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1057
+
1058
+ return {
1059
+ url: toPathString(localVarUrlObj),
1060
+ options: localVarRequestOptions,
1061
+ };
1062
+ },
1063
+ /**
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
1066
+ * @param {string} workspaceId
1067
+ * @param {LspCompletionParams} lspCompletionParams
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ lspCompletions: async (workspaceId: string, lspCompletionParams: LspCompletionParams, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1072
+ // verify required parameter 'workspaceId' is not null or undefined
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`
1077
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1079
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1080
+ let baseOptions;
1081
+ if (configuration) {
1082
+ baseOptions = configuration.baseOptions;
1083
+ }
1084
+
1085
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1086
+ const localVarHeaderParameter = {} as any;
1087
+ const localVarQueryParameter = {} as any;
1088
+
1089
+ // authentication oauth2 required
1090
+ // oauth required
1091
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1092
+
1093
+
1094
+
1095
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1096
+
1097
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1098
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1099
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1100
+ localVarRequestOptions.data = serializeDataIfNeeded(lspCompletionParams, localVarRequestOptions, configuration)
1101
+
1102
+ return {
1103
+ url: toPathString(localVarUrlObj),
1104
+ options: localVarRequestOptions,
1105
+ };
1106
+ },
1107
+ /**
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
1110
+ * @param {string} workspaceId
1111
+ * @param {LspDocumentRequest} lspDocumentRequest
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ lspDidClose: async (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1116
+ // verify required parameter 'workspaceId' is not null or undefined
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`
1121
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1124
+ let baseOptions;
1125
+ if (configuration) {
1126
+ baseOptions = configuration.baseOptions;
1127
+ }
1128
+
1129
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1130
+ const localVarHeaderParameter = {} as any;
1131
+ const localVarQueryParameter = {} as any;
1132
+
1133
+ // authentication oauth2 required
1134
+ // oauth required
1135
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1136
+
1137
+
1138
+
1139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1140
+
1141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1144
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
1145
+
1146
+ return {
1147
+ url: toPathString(localVarUrlObj),
1148
+ options: localVarRequestOptions,
1149
+ };
1150
+ },
1151
+ /**
1152
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1153
+ * @summary Call Lsp DidOpen
1154
+ * @param {string} workspaceId
1155
+ * @param {LspDocumentRequest} lspDocumentRequest
1156
+ * @param {*} [options] Override http request option.
1157
+ * @throws {RequiredError}
1158
+ */
1159
+ lspDidOpen: async (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1160
+ // verify required parameter 'workspaceId' is not null or undefined
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`
1165
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1166
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1167
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1168
+ let baseOptions;
1169
+ if (configuration) {
1170
+ baseOptions = configuration.baseOptions;
1171
+ }
1172
+
1173
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1174
+ const localVarHeaderParameter = {} as any;
1175
+ const localVarQueryParameter = {} as any;
1176
+
1177
+ // authentication oauth2 required
1178
+ // oauth required
1179
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1180
+
1181
+
1182
+
1183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1184
+
1185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1187
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1188
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
1189
+
1190
+ return {
1191
+ url: toPathString(localVarUrlObj),
1192
+ options: localVarRequestOptions,
1193
+ };
1194
+ },
1195
+ /**
1196
+ * The document symbol request is sent from the client to the server.
1197
+ * @summary Call Lsp DocumentSymbols
1198
+ * @param {string} workspaceId
1199
+ * @param {string} languageId
1200
+ * @param {string} pathToProject
1201
+ * @param {string} uri
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ lspDocumentSymbols: async (workspaceId: string, languageId: string, pathToProject: string, uri: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1206
+ // verify required parameter 'workspaceId' is not null or undefined
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`
1215
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1218
+ let baseOptions;
1219
+ if (configuration) {
1220
+ baseOptions = configuration.baseOptions;
1221
+ }
1222
+
1223
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1224
+ const localVarHeaderParameter = {} as any;
1225
+ const localVarQueryParameter = {} as any;
1226
+
1227
+ // authentication oauth2 required
1228
+ // oauth required
1229
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
1230
+
1231
+ if (languageId !== undefined) {
1232
+ localVarQueryParameter['languageId'] = languageId;
1233
+ }
1234
+
1235
+ if (pathToProject !== undefined) {
1236
+ localVarQueryParameter['pathToProject'] = pathToProject;
1237
+ }
1238
+
1239
+ if (uri !== undefined) {
1240
+ localVarQueryParameter['uri'] = uri;
1241
+ }
1242
+
1243
+
1244
+
1245
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1246
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1247
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1248
+
1249
+ return {
1250
+ url: toPathString(localVarUrlObj),
1251
+ options: localVarRequestOptions,
1252
+ };
1253
+ },
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
+
1044
1392
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1045
1393
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1046
1394
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1632,6 +1980,108 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1632
1980
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.listSessions']?.[localVarOperationServerIndex]?.url;
1633
1981
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1634
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
+ },
1635
2085
  /**
1636
2086
  * Move file inside workspace
1637
2087
  * @summary Move file
@@ -1962,6 +2412,87 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1962
2412
  listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>> {
1963
2413
  return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
1964
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
+ },
1965
2496
  /**
1966
2497
  * Move file inside workspace
1967
2498
  * @summary Move file
@@ -2321,6 +2852,101 @@ export class ToolboxApi extends BaseAPI {
2321
2852
  return ToolboxApiFp(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
2322
2853
  }
2323
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
+
2324
2950
  /**
2325
2951
  * Move file inside workspace
2326
2952
  * @summary Move file