@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
@@ -12,6 +12,7 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { CompletionList } from '../models';
15
16
  import type { CreateSessionRequest } from '../models';
16
17
  import type { ExecuteRequest } from '../models';
17
18
  import type { ExecuteResponse } from '../models';
@@ -25,6 +26,10 @@ import type { GitCommitResponse } from '../models';
25
26
  import type { GitRepoRequest } from '../models';
26
27
  import type { GitStatus } from '../models';
27
28
  import type { ListBranchResponse } from '../models';
29
+ import type { LspCompletionParams } from '../models';
30
+ import type { LspDocumentRequest } from '../models';
31
+ import type { LspServerRequest } from '../models';
32
+ import type { LspSymbol } from '../models';
28
33
  import type { Match } from '../models';
29
34
  import type { ProjectDirResponse } from '../models';
30
35
  import type { ReplaceRequest } from '../models';
@@ -238,6 +243,73 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
238
243
  * @throws {RequiredError}
239
244
  */
240
245
  listSessions: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
246
+ /**
247
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
248
+ * @summary Get Lsp Completions
249
+ * @param {string} workspaceId
250
+ * @param {LspCompletionParams} lspCompletionParams
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ lspCompletions: (workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
255
+ /**
256
+ * The document close notification is sent from the client to the server when the document got closed in the client.
257
+ * @summary Call Lsp DidClose
258
+ * @param {string} workspaceId
259
+ * @param {LspDocumentRequest} lspDocumentRequest
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ lspDidClose: (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
264
+ /**
265
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
266
+ * @summary Call Lsp DidOpen
267
+ * @param {string} workspaceId
268
+ * @param {LspDocumentRequest} lspDocumentRequest
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ lspDidOpen: (workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
273
+ /**
274
+ * The document symbol request is sent from the client to the server.
275
+ * @summary Call Lsp DocumentSymbols
276
+ * @param {string} workspaceId
277
+ * @param {string} languageId
278
+ * @param {string} pathToProject
279
+ * @param {string} uri
280
+ * @param {*} [options] Override http request option.
281
+ * @throws {RequiredError}
282
+ */
283
+ lspDocumentSymbols: (workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
284
+ /**
285
+ * Start Lsp server process inside workspace project
286
+ * @summary Start Lsp server
287
+ * @param {string} workspaceId
288
+ * @param {LspServerRequest} lspServerRequest
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ lspStart: (workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
293
+ /**
294
+ * Stop Lsp server process inside workspace project
295
+ * @summary Stop Lsp server
296
+ * @param {string} workspaceId
297
+ * @param {LspServerRequest} lspServerRequest
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ lspStop: (workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
302
+ /**
303
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
304
+ * @summary Call Lsp WorkspaceSymbols
305
+ * @param {string} workspaceId
306
+ * @param {string} languageId
307
+ * @param {string} pathToProject
308
+ * @param {string} query
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ lspWorkspaceSymbols: (workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
241
313
  /**
242
314
  * Move file inside workspace
243
315
  * @summary Move file
@@ -495,6 +567,73 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
495
567
  * @throws {RequiredError}
496
568
  */
497
569
  listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>>;
570
+ /**
571
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
572
+ * @summary Get Lsp Completions
573
+ * @param {string} workspaceId
574
+ * @param {LspCompletionParams} lspCompletionParams
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletionList>>;
579
+ /**
580
+ * The document close notification is sent from the client to the server when the document got closed in the client.
581
+ * @summary Call Lsp DidClose
582
+ * @param {string} workspaceId
583
+ * @param {LspDocumentRequest} lspDocumentRequest
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
588
+ /**
589
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
590
+ * @summary Call Lsp DidOpen
591
+ * @param {string} workspaceId
592
+ * @param {LspDocumentRequest} lspDocumentRequest
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
597
+ /**
598
+ * The document symbol request is sent from the client to the server.
599
+ * @summary Call Lsp DocumentSymbols
600
+ * @param {string} workspaceId
601
+ * @param {string} languageId
602
+ * @param {string} pathToProject
603
+ * @param {string} uri
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>>;
608
+ /**
609
+ * Start Lsp server process inside workspace project
610
+ * @summary Start Lsp server
611
+ * @param {string} workspaceId
612
+ * @param {LspServerRequest} lspServerRequest
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
617
+ /**
618
+ * Stop Lsp server process inside workspace project
619
+ * @summary Stop Lsp server
620
+ * @param {string} workspaceId
621
+ * @param {LspServerRequest} lspServerRequest
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
626
+ /**
627
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
628
+ * @summary Call Lsp WorkspaceSymbols
629
+ * @param {string} workspaceId
630
+ * @param {string} languageId
631
+ * @param {string} pathToProject
632
+ * @param {string} query
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>>;
498
637
  /**
499
638
  * Move file inside workspace
500
639
  * @summary Move file
@@ -752,6 +891,73 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
752
891
  * @throws {RequiredError}
753
892
  */
754
893
  listSessions(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Session>>;
894
+ /**
895
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
896
+ * @summary Get Lsp Completions
897
+ * @param {string} workspaceId
898
+ * @param {LspCompletionParams} lspCompletionParams
899
+ * @param {*} [options] Override http request option.
900
+ * @throws {RequiredError}
901
+ */
902
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): AxiosPromise<CompletionList>;
903
+ /**
904
+ * The document close notification is sent from the client to the server when the document got closed in the client.
905
+ * @summary Call Lsp DidClose
906
+ * @param {string} workspaceId
907
+ * @param {LspDocumentRequest} lspDocumentRequest
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ */
911
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
912
+ /**
913
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
914
+ * @summary Call Lsp DidOpen
915
+ * @param {string} workspaceId
916
+ * @param {LspDocumentRequest} lspDocumentRequest
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ */
920
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
921
+ /**
922
+ * The document symbol request is sent from the client to the server.
923
+ * @summary Call Lsp DocumentSymbols
924
+ * @param {string} workspaceId
925
+ * @param {string} languageId
926
+ * @param {string} pathToProject
927
+ * @param {string} uri
928
+ * @param {*} [options] Override http request option.
929
+ * @throws {RequiredError}
930
+ */
931
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>>;
932
+ /**
933
+ * Start Lsp server process inside workspace project
934
+ * @summary Start Lsp server
935
+ * @param {string} workspaceId
936
+ * @param {LspServerRequest} lspServerRequest
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
941
+ /**
942
+ * Stop Lsp server process inside workspace project
943
+ * @summary Stop Lsp server
944
+ * @param {string} workspaceId
945
+ * @param {LspServerRequest} lspServerRequest
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ */
949
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
950
+ /**
951
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
952
+ * @summary Call Lsp WorkspaceSymbols
953
+ * @param {string} workspaceId
954
+ * @param {string} languageId
955
+ * @param {string} pathToProject
956
+ * @param {string} query
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<LspSymbol>>;
755
961
  /**
756
962
  * Move file inside workspace
757
963
  * @summary Move file
@@ -1033,6 +1239,80 @@ export declare class ToolboxApi extends BaseAPI {
1033
1239
  * @memberof ToolboxApi
1034
1240
  */
1035
1241
  listSessions(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session[], any>>;
1242
+ /**
1243
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1244
+ * @summary Get Lsp Completions
1245
+ * @param {string} workspaceId
1246
+ * @param {LspCompletionParams} lspCompletionParams
1247
+ * @param {*} [options] Override http request option.
1248
+ * @throws {RequiredError}
1249
+ * @memberof ToolboxApi
1250
+ */
1251
+ lspCompletions(workspaceId: string, lspCompletionParams: LspCompletionParams, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompletionList, any>>;
1252
+ /**
1253
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1254
+ * @summary Call Lsp DidClose
1255
+ * @param {string} workspaceId
1256
+ * @param {LspDocumentRequest} lspDocumentRequest
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ * @memberof ToolboxApi
1260
+ */
1261
+ lspDidClose(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1262
+ /**
1263
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1264
+ * @summary Call Lsp DidOpen
1265
+ * @param {string} workspaceId
1266
+ * @param {LspDocumentRequest} lspDocumentRequest
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ * @memberof ToolboxApi
1270
+ */
1271
+ lspDidOpen(workspaceId: string, lspDocumentRequest: LspDocumentRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1272
+ /**
1273
+ * The document symbol request is sent from the client to the server.
1274
+ * @summary Call Lsp DocumentSymbols
1275
+ * @param {string} workspaceId
1276
+ * @param {string} languageId
1277
+ * @param {string} pathToProject
1278
+ * @param {string} uri
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ * @memberof ToolboxApi
1282
+ */
1283
+ lspDocumentSymbols(workspaceId: string, languageId: string, pathToProject: string, uri: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LspSymbol[], any>>;
1284
+ /**
1285
+ * Start Lsp server process inside workspace project
1286
+ * @summary Start Lsp server
1287
+ * @param {string} workspaceId
1288
+ * @param {LspServerRequest} lspServerRequest
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ * @memberof ToolboxApi
1292
+ */
1293
+ lspStart(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1294
+ /**
1295
+ * Stop Lsp server process inside workspace project
1296
+ * @summary Stop Lsp server
1297
+ * @param {string} workspaceId
1298
+ * @param {LspServerRequest} lspServerRequest
1299
+ * @param {*} [options] Override http request option.
1300
+ * @throws {RequiredError}
1301
+ * @memberof ToolboxApi
1302
+ */
1303
+ lspStop(workspaceId: string, lspServerRequest: LspServerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1304
+ /**
1305
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1306
+ * @summary Call Lsp WorkspaceSymbols
1307
+ * @param {string} workspaceId
1308
+ * @param {string} languageId
1309
+ * @param {string} pathToProject
1310
+ * @param {string} query
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ * @memberof ToolboxApi
1314
+ */
1315
+ lspWorkspaceSymbols(workspaceId: string, languageId: string, pathToProject: string, query: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LspSymbol[], any>>;
1036
1316
  /**
1037
1317
  * Move file inside workspace
1038
1318
  * @summary Move file