@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
@@ -861,6 +861,291 @@ export const ToolboxApiAxiosParamCreator = function (configuration) {
861
861
  options: localVarRequestOptions,
862
862
  };
863
863
  }),
864
+ /**
865
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
866
+ * @summary Get Lsp Completions
867
+ * @param {string} workspaceId
868
+ * @param {LspCompletionParams} lspCompletionParams
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ */
872
+ lspCompletions: (workspaceId_1, lspCompletionParams_1, ...args_1) => __awaiter(this, [workspaceId_1, lspCompletionParams_1, ...args_1], void 0, function* (workspaceId, lspCompletionParams, options = {}) {
873
+ // verify required parameter 'workspaceId' is not null or undefined
874
+ assertParamExists('lspCompletions', 'workspaceId', workspaceId);
875
+ // verify required parameter 'lspCompletionParams' is not null or undefined
876
+ assertParamExists('lspCompletions', 'lspCompletionParams', lspCompletionParams);
877
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/completions`
878
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
879
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
880
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
881
+ let baseOptions;
882
+ if (configuration) {
883
+ baseOptions = configuration.baseOptions;
884
+ }
885
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
886
+ const localVarHeaderParameter = {};
887
+ const localVarQueryParameter = {};
888
+ // authentication oauth2 required
889
+ // oauth required
890
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
891
+ localVarHeaderParameter['Content-Type'] = 'application/json';
892
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
893
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
894
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
895
+ localVarRequestOptions.data = serializeDataIfNeeded(lspCompletionParams, localVarRequestOptions, configuration);
896
+ return {
897
+ url: toPathString(localVarUrlObj),
898
+ options: localVarRequestOptions,
899
+ };
900
+ }),
901
+ /**
902
+ * The document close notification is sent from the client to the server when the document got closed in the client.
903
+ * @summary Call Lsp DidClose
904
+ * @param {string} workspaceId
905
+ * @param {LspDocumentRequest} lspDocumentRequest
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ lspDidClose: (workspaceId_1, lspDocumentRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, lspDocumentRequest_1, ...args_1], void 0, function* (workspaceId, lspDocumentRequest, options = {}) {
910
+ // verify required parameter 'workspaceId' is not null or undefined
911
+ assertParamExists('lspDidClose', 'workspaceId', workspaceId);
912
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
913
+ assertParamExists('lspDidClose', 'lspDocumentRequest', lspDocumentRequest);
914
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-close`
915
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
916
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
917
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
918
+ let baseOptions;
919
+ if (configuration) {
920
+ baseOptions = configuration.baseOptions;
921
+ }
922
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
923
+ const localVarHeaderParameter = {};
924
+ const localVarQueryParameter = {};
925
+ // authentication oauth2 required
926
+ // oauth required
927
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
928
+ localVarHeaderParameter['Content-Type'] = 'application/json';
929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
932
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration);
933
+ return {
934
+ url: toPathString(localVarUrlObj),
935
+ options: localVarRequestOptions,
936
+ };
937
+ }),
938
+ /**
939
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
940
+ * @summary Call Lsp DidOpen
941
+ * @param {string} workspaceId
942
+ * @param {LspDocumentRequest} lspDocumentRequest
943
+ * @param {*} [options] Override http request option.
944
+ * @throws {RequiredError}
945
+ */
946
+ lspDidOpen: (workspaceId_1, lspDocumentRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, lspDocumentRequest_1, ...args_1], void 0, function* (workspaceId, lspDocumentRequest, options = {}) {
947
+ // verify required parameter 'workspaceId' is not null or undefined
948
+ assertParamExists('lspDidOpen', 'workspaceId', workspaceId);
949
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
950
+ assertParamExists('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest);
951
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-open`
952
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
953
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
954
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
955
+ let baseOptions;
956
+ if (configuration) {
957
+ baseOptions = configuration.baseOptions;
958
+ }
959
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
960
+ const localVarHeaderParameter = {};
961
+ const localVarQueryParameter = {};
962
+ // authentication oauth2 required
963
+ // oauth required
964
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
965
+ localVarHeaderParameter['Content-Type'] = 'application/json';
966
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
967
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
968
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
969
+ localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration);
970
+ return {
971
+ url: toPathString(localVarUrlObj),
972
+ options: localVarRequestOptions,
973
+ };
974
+ }),
975
+ /**
976
+ * The document symbol request is sent from the client to the server.
977
+ * @summary Call Lsp DocumentSymbols
978
+ * @param {string} workspaceId
979
+ * @param {string} languageId
980
+ * @param {string} pathToProject
981
+ * @param {string} uri
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ */
985
+ lspDocumentSymbols: (workspaceId_1, languageId_1, pathToProject_1, uri_1, ...args_1) => __awaiter(this, [workspaceId_1, languageId_1, pathToProject_1, uri_1, ...args_1], void 0, function* (workspaceId, languageId, pathToProject, uri, options = {}) {
986
+ // verify required parameter 'workspaceId' is not null or undefined
987
+ assertParamExists('lspDocumentSymbols', 'workspaceId', workspaceId);
988
+ // verify required parameter 'languageId' is not null or undefined
989
+ assertParamExists('lspDocumentSymbols', 'languageId', languageId);
990
+ // verify required parameter 'pathToProject' is not null or undefined
991
+ assertParamExists('lspDocumentSymbols', 'pathToProject', pathToProject);
992
+ // verify required parameter 'uri' is not null or undefined
993
+ assertParamExists('lspDocumentSymbols', 'uri', uri);
994
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/document-symbols`
995
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
997
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
998
+ let baseOptions;
999
+ if (configuration) {
1000
+ baseOptions = configuration.baseOptions;
1001
+ }
1002
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1003
+ const localVarHeaderParameter = {};
1004
+ const localVarQueryParameter = {};
1005
+ // authentication oauth2 required
1006
+ // oauth required
1007
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1008
+ if (languageId !== undefined) {
1009
+ localVarQueryParameter['languageId'] = languageId;
1010
+ }
1011
+ if (pathToProject !== undefined) {
1012
+ localVarQueryParameter['pathToProject'] = pathToProject;
1013
+ }
1014
+ if (uri !== undefined) {
1015
+ localVarQueryParameter['uri'] = uri;
1016
+ }
1017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1019
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1020
+ return {
1021
+ url: toPathString(localVarUrlObj),
1022
+ options: localVarRequestOptions,
1023
+ };
1024
+ }),
1025
+ /**
1026
+ * Start Lsp server process inside workspace project
1027
+ * @summary Start Lsp server
1028
+ * @param {string} workspaceId
1029
+ * @param {LspServerRequest} lspServerRequest
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ lspStart: (workspaceId_1, lspServerRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, lspServerRequest_1, ...args_1], void 0, function* (workspaceId, lspServerRequest, options = {}) {
1034
+ // verify required parameter 'workspaceId' is not null or undefined
1035
+ assertParamExists('lspStart', 'workspaceId', workspaceId);
1036
+ // verify required parameter 'lspServerRequest' is not null or undefined
1037
+ assertParamExists('lspStart', 'lspServerRequest', lspServerRequest);
1038
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/start`
1039
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1042
+ let baseOptions;
1043
+ if (configuration) {
1044
+ baseOptions = configuration.baseOptions;
1045
+ }
1046
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1047
+ const localVarHeaderParameter = {};
1048
+ const localVarQueryParameter = {};
1049
+ // authentication oauth2 required
1050
+ // oauth required
1051
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1052
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1056
+ localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration);
1057
+ return {
1058
+ url: toPathString(localVarUrlObj),
1059
+ options: localVarRequestOptions,
1060
+ };
1061
+ }),
1062
+ /**
1063
+ * Stop Lsp server process inside workspace project
1064
+ * @summary Stop Lsp server
1065
+ * @param {string} workspaceId
1066
+ * @param {LspServerRequest} lspServerRequest
1067
+ * @param {*} [options] Override http request option.
1068
+ * @throws {RequiredError}
1069
+ */
1070
+ lspStop: (workspaceId_1, lspServerRequest_1, ...args_1) => __awaiter(this, [workspaceId_1, lspServerRequest_1, ...args_1], void 0, function* (workspaceId, lspServerRequest, options = {}) {
1071
+ // verify required parameter 'workspaceId' is not null or undefined
1072
+ assertParamExists('lspStop', 'workspaceId', workspaceId);
1073
+ // verify required parameter 'lspServerRequest' is not null or undefined
1074
+ assertParamExists('lspStop', 'lspServerRequest', lspServerRequest);
1075
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/stop`
1076
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1077
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1078
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1079
+ let baseOptions;
1080
+ if (configuration) {
1081
+ baseOptions = configuration.baseOptions;
1082
+ }
1083
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1084
+ const localVarHeaderParameter = {};
1085
+ const localVarQueryParameter = {};
1086
+ // authentication oauth2 required
1087
+ // oauth required
1088
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1089
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1090
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1091
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1092
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1093
+ localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration);
1094
+ return {
1095
+ url: toPathString(localVarUrlObj),
1096
+ options: localVarRequestOptions,
1097
+ };
1098
+ }),
1099
+ /**
1100
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1101
+ * @summary Call Lsp WorkspaceSymbols
1102
+ * @param {string} workspaceId
1103
+ * @param {string} languageId
1104
+ * @param {string} pathToProject
1105
+ * @param {string} query
1106
+ * @param {*} [options] Override http request option.
1107
+ * @throws {RequiredError}
1108
+ */
1109
+ lspWorkspaceSymbols: (workspaceId_1, languageId_1, pathToProject_1, query_1, ...args_1) => __awaiter(this, [workspaceId_1, languageId_1, pathToProject_1, query_1, ...args_1], void 0, function* (workspaceId, languageId, pathToProject, query, options = {}) {
1110
+ // verify required parameter 'workspaceId' is not null or undefined
1111
+ assertParamExists('lspWorkspaceSymbols', 'workspaceId', workspaceId);
1112
+ // verify required parameter 'languageId' is not null or undefined
1113
+ assertParamExists('lspWorkspaceSymbols', 'languageId', languageId);
1114
+ // verify required parameter 'pathToProject' is not null or undefined
1115
+ assertParamExists('lspWorkspaceSymbols', 'pathToProject', pathToProject);
1116
+ // verify required parameter 'query' is not null or undefined
1117
+ assertParamExists('lspWorkspaceSymbols', 'query', query);
1118
+ const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/workspace-symbols`
1119
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
1120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1122
+ let baseOptions;
1123
+ if (configuration) {
1124
+ baseOptions = configuration.baseOptions;
1125
+ }
1126
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1127
+ const localVarHeaderParameter = {};
1128
+ const localVarQueryParameter = {};
1129
+ // authentication oauth2 required
1130
+ // oauth required
1131
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
1132
+ if (languageId !== undefined) {
1133
+ localVarQueryParameter['languageId'] = languageId;
1134
+ }
1135
+ if (pathToProject !== undefined) {
1136
+ localVarQueryParameter['pathToProject'] = pathToProject;
1137
+ }
1138
+ if (query !== undefined) {
1139
+ localVarQueryParameter['query'] = query;
1140
+ }
1141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1143
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1144
+ return {
1145
+ url: toPathString(localVarUrlObj),
1146
+ options: localVarRequestOptions,
1147
+ };
1148
+ }),
864
1149
  /**
865
1150
  * Move file inside workspace
866
1151
  * @summary Move file
@@ -1466,6 +1751,129 @@ export const ToolboxApiFp = function (configuration) {
1466
1751
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1467
1752
  });
1468
1753
  },
1754
+ /**
1755
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1756
+ * @summary Get Lsp Completions
1757
+ * @param {string} workspaceId
1758
+ * @param {LspCompletionParams} lspCompletionParams
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ */
1762
+ lspCompletions(workspaceId, lspCompletionParams, options) {
1763
+ return __awaiter(this, void 0, void 0, function* () {
1764
+ var _a, _b, _c;
1765
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspCompletions(workspaceId, lspCompletionParams, options);
1766
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1767
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspCompletions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1768
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1769
+ });
1770
+ },
1771
+ /**
1772
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1773
+ * @summary Call Lsp DidClose
1774
+ * @param {string} workspaceId
1775
+ * @param {LspDocumentRequest} lspDocumentRequest
1776
+ * @param {*} [options] Override http request option.
1777
+ * @throws {RequiredError}
1778
+ */
1779
+ lspDidClose(workspaceId, lspDocumentRequest, options) {
1780
+ return __awaiter(this, void 0, void 0, function* () {
1781
+ var _a, _b, _c;
1782
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspDidClose(workspaceId, lspDocumentRequest, options);
1783
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1784
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspDidClose']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1785
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1786
+ });
1787
+ },
1788
+ /**
1789
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1790
+ * @summary Call Lsp DidOpen
1791
+ * @param {string} workspaceId
1792
+ * @param {LspDocumentRequest} lspDocumentRequest
1793
+ * @param {*} [options] Override http request option.
1794
+ * @throws {RequiredError}
1795
+ */
1796
+ lspDidOpen(workspaceId, lspDocumentRequest, options) {
1797
+ return __awaiter(this, void 0, void 0, function* () {
1798
+ var _a, _b, _c;
1799
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspDidOpen(workspaceId, lspDocumentRequest, options);
1800
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1801
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspDidOpen']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1803
+ });
1804
+ },
1805
+ /**
1806
+ * The document symbol request is sent from the client to the server.
1807
+ * @summary Call Lsp DocumentSymbols
1808
+ * @param {string} workspaceId
1809
+ * @param {string} languageId
1810
+ * @param {string} pathToProject
1811
+ * @param {string} uri
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ */
1815
+ lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options) {
1816
+ return __awaiter(this, void 0, void 0, function* () {
1817
+ var _a, _b, _c;
1818
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options);
1819
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1820
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspDocumentSymbols']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1821
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1822
+ });
1823
+ },
1824
+ /**
1825
+ * Start Lsp server process inside workspace project
1826
+ * @summary Start Lsp server
1827
+ * @param {string} workspaceId
1828
+ * @param {LspServerRequest} lspServerRequest
1829
+ * @param {*} [options] Override http request option.
1830
+ * @throws {RequiredError}
1831
+ */
1832
+ lspStart(workspaceId, lspServerRequest, options) {
1833
+ return __awaiter(this, void 0, void 0, function* () {
1834
+ var _a, _b, _c;
1835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspStart(workspaceId, lspServerRequest, options);
1836
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1837
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspStart']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1839
+ });
1840
+ },
1841
+ /**
1842
+ * Stop Lsp server process inside workspace project
1843
+ * @summary Stop Lsp server
1844
+ * @param {string} workspaceId
1845
+ * @param {LspServerRequest} lspServerRequest
1846
+ * @param {*} [options] Override http request option.
1847
+ * @throws {RequiredError}
1848
+ */
1849
+ lspStop(workspaceId, lspServerRequest, options) {
1850
+ return __awaiter(this, void 0, void 0, function* () {
1851
+ var _a, _b, _c;
1852
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspStop(workspaceId, lspServerRequest, options);
1853
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1854
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspStop']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1855
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1856
+ });
1857
+ },
1858
+ /**
1859
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1860
+ * @summary Call Lsp WorkspaceSymbols
1861
+ * @param {string} workspaceId
1862
+ * @param {string} languageId
1863
+ * @param {string} pathToProject
1864
+ * @param {string} query
1865
+ * @param {*} [options] Override http request option.
1866
+ * @throws {RequiredError}
1867
+ */
1868
+ lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options) {
1869
+ return __awaiter(this, void 0, void 0, function* () {
1870
+ var _a, _b, _c;
1871
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options);
1872
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1873
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ToolboxApi.lspWorkspaceSymbols']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1874
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1875
+ });
1876
+ },
1469
1877
  /**
1470
1878
  * Move file inside workspace
1471
1879
  * @summary Move file
@@ -1810,6 +2218,87 @@ export const ToolboxApiFactory = function (configuration, basePath, axios) {
1810
2218
  listSessions(workspaceId, options) {
1811
2219
  return localVarFp.listSessions(workspaceId, options).then((request) => request(axios, basePath));
1812
2220
  },
2221
+ /**
2222
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2223
+ * @summary Get Lsp Completions
2224
+ * @param {string} workspaceId
2225
+ * @param {LspCompletionParams} lspCompletionParams
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ */
2229
+ lspCompletions(workspaceId, lspCompletionParams, options) {
2230
+ return localVarFp.lspCompletions(workspaceId, lspCompletionParams, options).then((request) => request(axios, basePath));
2231
+ },
2232
+ /**
2233
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2234
+ * @summary Call Lsp DidClose
2235
+ * @param {string} workspaceId
2236
+ * @param {LspDocumentRequest} lspDocumentRequest
2237
+ * @param {*} [options] Override http request option.
2238
+ * @throws {RequiredError}
2239
+ */
2240
+ lspDidClose(workspaceId, lspDocumentRequest, options) {
2241
+ return localVarFp.lspDidClose(workspaceId, lspDocumentRequest, options).then((request) => request(axios, basePath));
2242
+ },
2243
+ /**
2244
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2245
+ * @summary Call Lsp DidOpen
2246
+ * @param {string} workspaceId
2247
+ * @param {LspDocumentRequest} lspDocumentRequest
2248
+ * @param {*} [options] Override http request option.
2249
+ * @throws {RequiredError}
2250
+ */
2251
+ lspDidOpen(workspaceId, lspDocumentRequest, options) {
2252
+ return localVarFp.lspDidOpen(workspaceId, lspDocumentRequest, options).then((request) => request(axios, basePath));
2253
+ },
2254
+ /**
2255
+ * The document symbol request is sent from the client to the server.
2256
+ * @summary Call Lsp DocumentSymbols
2257
+ * @param {string} workspaceId
2258
+ * @param {string} languageId
2259
+ * @param {string} pathToProject
2260
+ * @param {string} uri
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options) {
2265
+ return localVarFp.lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options).then((request) => request(axios, basePath));
2266
+ },
2267
+ /**
2268
+ * Start Lsp server process inside workspace project
2269
+ * @summary Start Lsp server
2270
+ * @param {string} workspaceId
2271
+ * @param {LspServerRequest} lspServerRequest
2272
+ * @param {*} [options] Override http request option.
2273
+ * @throws {RequiredError}
2274
+ */
2275
+ lspStart(workspaceId, lspServerRequest, options) {
2276
+ return localVarFp.lspStart(workspaceId, lspServerRequest, options).then((request) => request(axios, basePath));
2277
+ },
2278
+ /**
2279
+ * Stop Lsp server process inside workspace project
2280
+ * @summary Stop Lsp server
2281
+ * @param {string} workspaceId
2282
+ * @param {LspServerRequest} lspServerRequest
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ lspStop(workspaceId, lspServerRequest, options) {
2287
+ return localVarFp.lspStop(workspaceId, lspServerRequest, options).then((request) => request(axios, basePath));
2288
+ },
2289
+ /**
2290
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2291
+ * @summary Call Lsp WorkspaceSymbols
2292
+ * @param {string} workspaceId
2293
+ * @param {string} languageId
2294
+ * @param {string} pathToProject
2295
+ * @param {string} query
2296
+ * @param {*} [options] Override http request option.
2297
+ * @throws {RequiredError}
2298
+ */
2299
+ lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options) {
2300
+ return localVarFp.lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options).then((request) => request(axios, basePath));
2301
+ },
1813
2302
  /**
1814
2303
  * Move file inside workspace
1815
2304
  * @summary Move file
@@ -2146,6 +2635,94 @@ export class ToolboxApi extends BaseAPI {
2146
2635
  listSessions(workspaceId, options) {
2147
2636
  return ToolboxApiFp(this.configuration).listSessions(workspaceId, options).then((request) => request(this.axios, this.basePath));
2148
2637
  }
2638
+ /**
2639
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2640
+ * @summary Get Lsp Completions
2641
+ * @param {string} workspaceId
2642
+ * @param {LspCompletionParams} lspCompletionParams
2643
+ * @param {*} [options] Override http request option.
2644
+ * @throws {RequiredError}
2645
+ * @memberof ToolboxApi
2646
+ */
2647
+ lspCompletions(workspaceId, lspCompletionParams, options) {
2648
+ return ToolboxApiFp(this.configuration).lspCompletions(workspaceId, lspCompletionParams, options).then((request) => request(this.axios, this.basePath));
2649
+ }
2650
+ /**
2651
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2652
+ * @summary Call Lsp DidClose
2653
+ * @param {string} workspaceId
2654
+ * @param {LspDocumentRequest} lspDocumentRequest
2655
+ * @param {*} [options] Override http request option.
2656
+ * @throws {RequiredError}
2657
+ * @memberof ToolboxApi
2658
+ */
2659
+ lspDidClose(workspaceId, lspDocumentRequest, options) {
2660
+ return ToolboxApiFp(this.configuration).lspDidClose(workspaceId, lspDocumentRequest, options).then((request) => request(this.axios, this.basePath));
2661
+ }
2662
+ /**
2663
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2664
+ * @summary Call Lsp DidOpen
2665
+ * @param {string} workspaceId
2666
+ * @param {LspDocumentRequest} lspDocumentRequest
2667
+ * @param {*} [options] Override http request option.
2668
+ * @throws {RequiredError}
2669
+ * @memberof ToolboxApi
2670
+ */
2671
+ lspDidOpen(workspaceId, lspDocumentRequest, options) {
2672
+ return ToolboxApiFp(this.configuration).lspDidOpen(workspaceId, lspDocumentRequest, options).then((request) => request(this.axios, this.basePath));
2673
+ }
2674
+ /**
2675
+ * The document symbol request is sent from the client to the server.
2676
+ * @summary Call Lsp DocumentSymbols
2677
+ * @param {string} workspaceId
2678
+ * @param {string} languageId
2679
+ * @param {string} pathToProject
2680
+ * @param {string} uri
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ * @memberof ToolboxApi
2684
+ */
2685
+ lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options) {
2686
+ return ToolboxApiFp(this.configuration).lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, options).then((request) => request(this.axios, this.basePath));
2687
+ }
2688
+ /**
2689
+ * Start Lsp server process inside workspace project
2690
+ * @summary Start Lsp server
2691
+ * @param {string} workspaceId
2692
+ * @param {LspServerRequest} lspServerRequest
2693
+ * @param {*} [options] Override http request option.
2694
+ * @throws {RequiredError}
2695
+ * @memberof ToolboxApi
2696
+ */
2697
+ lspStart(workspaceId, lspServerRequest, options) {
2698
+ return ToolboxApiFp(this.configuration).lspStart(workspaceId, lspServerRequest, options).then((request) => request(this.axios, this.basePath));
2699
+ }
2700
+ /**
2701
+ * Stop Lsp server process inside workspace project
2702
+ * @summary Stop Lsp server
2703
+ * @param {string} workspaceId
2704
+ * @param {LspServerRequest} lspServerRequest
2705
+ * @param {*} [options] Override http request option.
2706
+ * @throws {RequiredError}
2707
+ * @memberof ToolboxApi
2708
+ */
2709
+ lspStop(workspaceId, lspServerRequest, options) {
2710
+ return ToolboxApiFp(this.configuration).lspStop(workspaceId, lspServerRequest, options).then((request) => request(this.axios, this.basePath));
2711
+ }
2712
+ /**
2713
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2714
+ * @summary Call Lsp WorkspaceSymbols
2715
+ * @param {string} workspaceId
2716
+ * @param {string} languageId
2717
+ * @param {string} pathToProject
2718
+ * @param {string} query
2719
+ * @param {*} [options] Override http request option.
2720
+ * @throws {RequiredError}
2721
+ * @memberof ToolboxApi
2722
+ */
2723
+ lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options) {
2724
+ return ToolboxApiFp(this.configuration).lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, options).then((request) => request(this.axios, this.basePath));
2725
+ }
2149
2726
  /**
2150
2727
  * Move file inside workspace
2151
2728
  * @summary Move file
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CompletionContext
16
+ */
17
+ export interface CompletionContext {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CompletionContext
22
+ */
23
+ 'triggerKind': number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CompletionContext
28
+ */
29
+ 'triggerCharacter'?: string;
30
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};