@daytonaio/api-client 0.0.0-dev

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 (322) hide show
  1. package/package.json +25 -0
  2. package/src/api/api-keys-api.d.ts +220 -0
  3. package/src/api/api-keys-api.js +428 -0
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +299 -0
  6. package/src/api/docker-registry-api.js +592 -0
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/src/api/object-storage-api.d.ts +74 -0
  9. package/src/api/object-storage-api.js +127 -0
  10. package/src/api/object-storage-api.js.map +1 -0
  11. package/src/api/organizations-api.d.ts +927 -0
  12. package/src/api/organizations-api.js +1891 -0
  13. package/src/api/organizations-api.js.map +1 -0
  14. package/src/api/preview-api.d.ts +143 -0
  15. package/src/api/preview-api.js +265 -0
  16. package/src/api/preview-api.js.map +1 -0
  17. package/src/api/runners-api.d.ts +204 -0
  18. package/src/api/runners-api.js +402 -0
  19. package/src/api/runners-api.js.map +1 -0
  20. package/src/api/sandbox-api.d.ts +598 -0
  21. package/src/api/sandbox-api.js +1212 -0
  22. package/src/api/sandbox-api.js.map +1 -0
  23. package/src/api/snapshots-api.d.ts +320 -0
  24. package/src/api/snapshots-api.js +629 -0
  25. package/src/api/snapshots-api.js.map +1 -0
  26. package/src/api/toolbox-api.d.ts +1724 -0
  27. package/src/api/toolbox-api.js +3501 -0
  28. package/src/api/toolbox-api.js.map +1 -0
  29. package/src/api/users-api.d.ts +300 -0
  30. package/src/api/users-api.js +599 -0
  31. package/src/api/users-api.js.map +1 -0
  32. package/src/api/volumes-api.d.ts +227 -0
  33. package/src/api/volumes-api.js +447 -0
  34. package/src/api/volumes-api.js.map +1 -0
  35. package/src/api/workspace-api.d.ts +654 -0
  36. package/src/api/workspace-api.js +1269 -0
  37. package/src/api/workspace-api.js.map +1 -0
  38. package/src/api.d.ts +23 -0
  39. package/src/api.js +41 -0
  40. package/src/api.js.map +1 -0
  41. package/src/base.d.ts +66 -0
  42. package/src/base.js +68 -0
  43. package/src/base.js.map +1 -0
  44. package/src/common.d.ts +65 -0
  45. package/src/common.js +146 -0
  46. package/src/common.js.map +1 -0
  47. package/src/configuration.d.ts +91 -0
  48. package/src/configuration.js +105 -0
  49. package/src/configuration.js.map +1 -0
  50. package/src/index.d.ts +14 -0
  51. package/src/index.js +32 -0
  52. package/src/index.js.map +1 -0
  53. package/src/models/account-provider.d.ts +30 -0
  54. package/src/models/account-provider.js +4 -0
  55. package/src/models/account-provider.js.map +1 -0
  56. package/src/models/api-key-list.d.ts +66 -0
  57. package/src/models/api-key-list.js +16 -0
  58. package/src/models/api-key-list.js.map +1 -0
  59. package/src/models/api-key-response.d.ts +60 -0
  60. package/src/models/api-key-response.js +16 -0
  61. package/src/models/api-key-response.js.map +1 -0
  62. package/src/models/build-info.d.ts +42 -0
  63. package/src/models/build-info.js +4 -0
  64. package/src/models/build-info.js.map +1 -0
  65. package/src/models/command.d.ts +36 -0
  66. package/src/models/command.js +4 -0
  67. package/src/models/command.js.map +1 -0
  68. package/src/models/completion-context.d.ts +30 -0
  69. package/src/models/completion-context.js +4 -0
  70. package/src/models/completion-context.js.map +1 -0
  71. package/src/models/completion-item.d.ts +60 -0
  72. package/src/models/completion-item.js +4 -0
  73. package/src/models/completion-item.js.map +1 -0
  74. package/src/models/completion-list.d.ts +31 -0
  75. package/src/models/completion-list.js +16 -0
  76. package/src/models/completion-list.js.map +1 -0
  77. package/src/models/create-api-key.d.ts +48 -0
  78. package/src/models/create-api-key.js +16 -0
  79. package/src/models/create-api-key.js.map +1 -0
  80. package/src/models/create-build-info.d.ts +30 -0
  81. package/src/models/create-build-info.js +4 -0
  82. package/src/models/create-build-info.js.map +1 -0
  83. package/src/models/create-docker-registry.d.ts +67 -0
  84. package/src/models/create-docker-registry.js +11 -0
  85. package/src/models/create-docker-registry.js.map +1 -0
  86. package/src/models/create-linked-account.d.ts +30 -0
  87. package/src/models/create-linked-account.js +4 -0
  88. package/src/models/create-linked-account.js.map +1 -0
  89. package/src/models/create-organization-invitation.d.ts +47 -0
  90. package/src/models/create-organization-invitation.js +9 -0
  91. package/src/models/create-organization-invitation.js.map +1 -0
  92. package/src/models/create-organization-quota.d.ts +72 -0
  93. package/src/models/create-organization-quota.js +4 -0
  94. package/src/models/create-organization-quota.js.map +1 -0
  95. package/src/models/create-organization-role.d.ts +48 -0
  96. package/src/models/create-organization-role.js +16 -0
  97. package/src/models/create-organization-role.js.map +1 -0
  98. package/src/models/create-organization.d.ts +24 -0
  99. package/src/models/create-organization.js +4 -0
  100. package/src/models/create-organization.js.map +1 -0
  101. package/src/models/create-runner.d.ts +96 -0
  102. package/src/models/create-runner.js +15 -0
  103. package/src/models/create-runner.js.map +1 -0
  104. package/src/models/create-sandbox.d.ts +126 -0
  105. package/src/models/create-sandbox.js +27 -0
  106. package/src/models/create-sandbox.js.map +1 -0
  107. package/src/models/create-session-request.d.ts +24 -0
  108. package/src/models/create-session-request.js +4 -0
  109. package/src/models/create-session-request.js.map +1 -0
  110. package/src/models/create-snapshot.d.ts +73 -0
  111. package/src/models/create-snapshot.js +16 -0
  112. package/src/models/create-snapshot.js.map +1 -0
  113. package/src/models/create-user.d.ts +60 -0
  114. package/src/models/create-user.js +21 -0
  115. package/src/models/create-user.js.map +1 -0
  116. package/src/models/create-volume.d.ts +24 -0
  117. package/src/models/create-volume.js +4 -0
  118. package/src/models/create-volume.js.map +1 -0
  119. package/src/models/create-workspace.d.ts +126 -0
  120. package/src/models/create-workspace.js +27 -0
  121. package/src/models/create-workspace.js.map +1 -0
  122. package/src/models/docker-registry.d.ts +73 -0
  123. package/src/models/docker-registry.js +11 -0
  124. package/src/models/docker-registry.js.map +1 -0
  125. package/src/models/execute-request.d.ts +36 -0
  126. package/src/models/execute-request.js +4 -0
  127. package/src/models/execute-request.js.map +1 -0
  128. package/src/models/execute-response.d.ts +30 -0
  129. package/src/models/execute-response.js +4 -0
  130. package/src/models/execute-response.js.map +1 -0
  131. package/src/models/file-info.d.ts +66 -0
  132. package/src/models/file-info.js +4 -0
  133. package/src/models/file-info.js.map +1 -0
  134. package/src/models/file-status.d.ts +42 -0
  135. package/src/models/file-status.js +4 -0
  136. package/src/models/file-status.js.map +1 -0
  137. package/src/models/git-add-request.d.ts +30 -0
  138. package/src/models/git-add-request.js +4 -0
  139. package/src/models/git-add-request.js.map +1 -0
  140. package/src/models/git-branch-request.d.ts +30 -0
  141. package/src/models/git-branch-request.js +4 -0
  142. package/src/models/git-branch-request.js.map +1 -0
  143. package/src/models/git-checkout-request.d.ts +30 -0
  144. package/src/models/git-checkout-request.js +4 -0
  145. package/src/models/git-checkout-request.js.map +1 -0
  146. package/src/models/git-clone-request.d.ts +54 -0
  147. package/src/models/git-clone-request.js +4 -0
  148. package/src/models/git-clone-request.js.map +1 -0
  149. package/src/models/git-commit-info.d.ts +48 -0
  150. package/src/models/git-commit-info.js +4 -0
  151. package/src/models/git-commit-info.js.map +1 -0
  152. package/src/models/git-commit-request.d.ts +42 -0
  153. package/src/models/git-commit-request.js +4 -0
  154. package/src/models/git-commit-request.js.map +1 -0
  155. package/src/models/git-commit-response.d.ts +24 -0
  156. package/src/models/git-commit-response.js +4 -0
  157. package/src/models/git-commit-response.js.map +1 -0
  158. package/src/models/git-delete-branch-request.d.ts +30 -0
  159. package/src/models/git-delete-branch-request.js +4 -0
  160. package/src/models/git-delete-branch-request.js.map +1 -0
  161. package/src/models/git-repo-request.d.ts +36 -0
  162. package/src/models/git-repo-request.js +4 -0
  163. package/src/models/git-repo-request.js.map +1 -0
  164. package/src/models/git-status.d.ts +49 -0
  165. package/src/models/git-status.js +16 -0
  166. package/src/models/git-status.js.map +1 -0
  167. package/src/models/index.d.ts +89 -0
  168. package/src/models/index.js +106 -0
  169. package/src/models/index.js.map +1 -0
  170. package/src/models/list-branch-response.d.ts +24 -0
  171. package/src/models/list-branch-response.js +4 -0
  172. package/src/models/list-branch-response.js.map +1 -0
  173. package/src/models/lsp-completion-params.d.ts +50 -0
  174. package/src/models/lsp-completion-params.js +16 -0
  175. package/src/models/lsp-completion-params.js.map +1 -0
  176. package/src/models/lsp-document-request.d.ts +36 -0
  177. package/src/models/lsp-document-request.js +4 -0
  178. package/src/models/lsp-document-request.js.map +1 -0
  179. package/src/models/lsp-location.d.ts +31 -0
  180. package/src/models/lsp-location.js +16 -0
  181. package/src/models/lsp-location.js.map +1 -0
  182. package/src/models/lsp-server-request.d.ts +30 -0
  183. package/src/models/lsp-server-request.js +4 -0
  184. package/src/models/lsp-server-request.js.map +1 -0
  185. package/src/models/lsp-symbol.d.ts +37 -0
  186. package/src/models/lsp-symbol.js +16 -0
  187. package/src/models/lsp-symbol.js.map +1 -0
  188. package/src/models/match.d.ts +36 -0
  189. package/src/models/match.js +4 -0
  190. package/src/models/match.js.map +1 -0
  191. package/src/models/organization-invitation.d.ts +97 -0
  192. package/src/models/organization-invitation.js +27 -0
  193. package/src/models/organization-invitation.js.map +1 -0
  194. package/src/models/organization-role.d.ts +72 -0
  195. package/src/models/organization-role.js +16 -0
  196. package/src/models/organization-role.js.map +1 -0
  197. package/src/models/organization-suspension.d.ts +30 -0
  198. package/src/models/organization-suspension.js +4 -0
  199. package/src/models/organization-suspension.js.map +1 -0
  200. package/src/models/organization-user.d.ts +72 -0
  201. package/src/models/organization-user.js +21 -0
  202. package/src/models/organization-user.js.map +1 -0
  203. package/src/models/organization.d.ts +78 -0
  204. package/src/models/organization.js +4 -0
  205. package/src/models/organization.js.map +1 -0
  206. package/src/models/paginated-snapshots-dto.d.ts +43 -0
  207. package/src/models/paginated-snapshots-dto.js +16 -0
  208. package/src/models/paginated-snapshots-dto.js.map +1 -0
  209. package/src/models/port-preview-url.d.ts +30 -0
  210. package/src/models/port-preview-url.js +4 -0
  211. package/src/models/port-preview-url.js.map +1 -0
  212. package/src/models/position.d.ts +30 -0
  213. package/src/models/position.js +4 -0
  214. package/src/models/position.js.map +1 -0
  215. package/src/models/project-dir-response.d.ts +24 -0
  216. package/src/models/project-dir-response.js +4 -0
  217. package/src/models/project-dir-response.js.map +1 -0
  218. package/src/models/range.d.ts +31 -0
  219. package/src/models/range.js +16 -0
  220. package/src/models/range.js.map +1 -0
  221. package/src/models/registry-push-access-dto.d.ts +54 -0
  222. package/src/models/registry-push-access-dto.js +4 -0
  223. package/src/models/registry-push-access-dto.js.map +1 -0
  224. package/src/models/replace-request.d.ts +36 -0
  225. package/src/models/replace-request.js +4 -0
  226. package/src/models/replace-request.js.map +1 -0
  227. package/src/models/replace-result.d.ts +36 -0
  228. package/src/models/replace-result.js +4 -0
  229. package/src/models/replace-result.js.map +1 -0
  230. package/src/models/runner-region.d.ts +22 -0
  231. package/src/models/runner-region.js +26 -0
  232. package/src/models/runner-region.js.map +1 -0
  233. package/src/models/runner-snapshot-dto.d.ts +36 -0
  234. package/src/models/runner-snapshot-dto.js +4 -0
  235. package/src/models/runner-snapshot-dto.js.map +1 -0
  236. package/src/models/runner-state.d.ts +24 -0
  237. package/src/models/runner-state.js +28 -0
  238. package/src/models/runner-state.js.map +1 -0
  239. package/src/models/runner.d.ts +129 -0
  240. package/src/models/runner.js +16 -0
  241. package/src/models/runner.js.map +1 -0
  242. package/src/models/sandbox-class.d.ts +22 -0
  243. package/src/models/sandbox-class.js +26 -0
  244. package/src/models/sandbox-class.js.map +1 -0
  245. package/src/models/sandbox-info.d.ts +37 -0
  246. package/src/models/sandbox-info.js +4 -0
  247. package/src/models/sandbox-info.js.map +1 -0
  248. package/src/models/sandbox-labels.d.ts +26 -0
  249. package/src/models/sandbox-labels.js +4 -0
  250. package/src/models/sandbox-labels.js.map +1 -0
  251. package/src/models/sandbox-state.d.ts +35 -0
  252. package/src/models/sandbox-state.js +39 -0
  253. package/src/models/sandbox-state.js.map +1 -0
  254. package/src/models/sandbox-volume.d.ts +30 -0
  255. package/src/models/sandbox-volume.js +4 -0
  256. package/src/models/sandbox-volume.js.map +1 -0
  257. package/src/models/sandbox.d.ts +190 -0
  258. package/src/models/sandbox.js +29 -0
  259. package/src/models/sandbox.js.map +1 -0
  260. package/src/models/search-files-response.d.ts +24 -0
  261. package/src/models/search-files-response.js +4 -0
  262. package/src/models/search-files-response.js.map +1 -0
  263. package/src/models/session-execute-request.d.ts +37 -0
  264. package/src/models/session-execute-request.js +4 -0
  265. package/src/models/session-execute-request.js.map +1 -0
  266. package/src/models/session-execute-response.d.ts +36 -0
  267. package/src/models/session-execute-response.js +4 -0
  268. package/src/models/session-execute-response.js.map +1 -0
  269. package/src/models/session.d.ts +31 -0
  270. package/src/models/session.js +16 -0
  271. package/src/models/session.js.map +1 -0
  272. package/src/models/set-snapshot-general-status-dto.d.ts +24 -0
  273. package/src/models/set-snapshot-general-status-dto.js +4 -0
  274. package/src/models/set-snapshot-general-status-dto.js.map +1 -0
  275. package/src/models/snapshot-dto.d.ts +128 -0
  276. package/src/models/snapshot-dto.js +16 -0
  277. package/src/models/snapshot-dto.js.map +1 -0
  278. package/src/models/snapshot-state.d.ts +29 -0
  279. package/src/models/snapshot-state.js +33 -0
  280. package/src/models/snapshot-state.js.map +1 -0
  281. package/src/models/storage-access-dto.d.ts +54 -0
  282. package/src/models/storage-access-dto.js +4 -0
  283. package/src/models/storage-access-dto.js.map +1 -0
  284. package/src/models/toggle-state.d.ts +24 -0
  285. package/src/models/toggle-state.js +4 -0
  286. package/src/models/toggle-state.js.map +1 -0
  287. package/src/models/update-assigned-organization-roles.d.ts +24 -0
  288. package/src/models/update-assigned-organization-roles.js +4 -0
  289. package/src/models/update-assigned-organization-roles.js.map +1 -0
  290. package/src/models/update-docker-registry.d.ts +36 -0
  291. package/src/models/update-docker-registry.js +4 -0
  292. package/src/models/update-docker-registry.js.map +1 -0
  293. package/src/models/update-organization-invitation.d.ts +41 -0
  294. package/src/models/update-organization-invitation.js +9 -0
  295. package/src/models/update-organization-invitation.js.map +1 -0
  296. package/src/models/update-organization-member-role.d.ts +29 -0
  297. package/src/models/update-organization-member-role.js +9 -0
  298. package/src/models/update-organization-member-role.js.map +1 -0
  299. package/src/models/update-organization-quota.d.ts +72 -0
  300. package/src/models/update-organization-quota.js +4 -0
  301. package/src/models/update-organization-quota.js.map +1 -0
  302. package/src/models/update-organization-role.d.ts +48 -0
  303. package/src/models/update-organization-role.js +16 -0
  304. package/src/models/update-organization-role.js.map +1 -0
  305. package/src/models/usage-overview.d.ts +60 -0
  306. package/src/models/usage-overview.js +4 -0
  307. package/src/models/usage-overview.js.map +1 -0
  308. package/src/models/user-public-key.d.ts +30 -0
  309. package/src/models/user-public-key.js +4 -0
  310. package/src/models/user-public-key.js.map +1 -0
  311. package/src/models/user.d.ts +43 -0
  312. package/src/models/user.js +16 -0
  313. package/src/models/user.js.map +1 -0
  314. package/src/models/volume-dto.d.ts +67 -0
  315. package/src/models/volume-dto.js +16 -0
  316. package/src/models/volume-dto.js.map +1 -0
  317. package/src/models/volume-state.d.ts +26 -0
  318. package/src/models/volume-state.js +30 -0
  319. package/src/models/volume-state.js.map +1 -0
  320. package/src/models/workspace.d.ts +229 -0
  321. package/src/models/workspace.js +36 -0
  322. package/src/models/workspace.js.map +1 -0
@@ -0,0 +1,3501 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona
6
+ * Daytona AI platform API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: support@daytona.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolboxApi = exports.ToolboxApiFactory = exports.ToolboxApiFp = exports.ToolboxApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * ToolboxApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const ToolboxApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ * Create folder inside sandbox
31
+ * @summary Create folder
32
+ * @param {string} sandboxId
33
+ * @param {string} path
34
+ * @param {string} mode
35
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ createFolder: async (sandboxId, path, mode, xDaytonaOrganizationID, options = {}) => {
40
+ // verify required parameter 'sandboxId' is not null or undefined
41
+ (0, common_1.assertParamExists)('createFolder', 'sandboxId', sandboxId);
42
+ // verify required parameter 'path' is not null or undefined
43
+ (0, common_1.assertParamExists)('createFolder', 'path', path);
44
+ // verify required parameter 'mode' is not null or undefined
45
+ (0, common_1.assertParamExists)('createFolder', 'mode', mode);
46
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/folder`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
54
+ const localVarHeaderParameter = {};
55
+ const localVarQueryParameter = {};
56
+ // authentication bearer required
57
+ // http bearer authentication required
58
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
59
+ // authentication oauth2 required
60
+ if (path !== undefined) {
61
+ localVarQueryParameter['path'] = path;
62
+ }
63
+ if (mode !== undefined) {
64
+ localVarQueryParameter['mode'] = mode;
65
+ }
66
+ if (xDaytonaOrganizationID != null) {
67
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
68
+ }
69
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
70
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
72
+ return {
73
+ url: (0, common_1.toPathString)(localVarUrlObj),
74
+ options: localVarRequestOptions,
75
+ };
76
+ },
77
+ /**
78
+ * Create a new session in the sandbox
79
+ * @summary Create session
80
+ * @param {string} sandboxId
81
+ * @param {CreateSessionRequest} createSessionRequest
82
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
83
+ * @param {*} [options] Override http request option.
84
+ * @throws {RequiredError}
85
+ */
86
+ createSession: async (sandboxId, createSessionRequest, xDaytonaOrganizationID, options = {}) => {
87
+ // verify required parameter 'sandboxId' is not null or undefined
88
+ (0, common_1.assertParamExists)('createSession', 'sandboxId', sandboxId);
89
+ // verify required parameter 'createSessionRequest' is not null or undefined
90
+ (0, common_1.assertParamExists)('createSession', 'createSessionRequest', createSessionRequest);
91
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
92
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
93
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
94
+ let baseOptions;
95
+ if (configuration) {
96
+ baseOptions = configuration.baseOptions;
97
+ }
98
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
99
+ const localVarHeaderParameter = {};
100
+ const localVarQueryParameter = {};
101
+ // authentication bearer required
102
+ // http bearer authentication required
103
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
104
+ // authentication oauth2 required
105
+ localVarHeaderParameter['Content-Type'] = 'application/json';
106
+ if (xDaytonaOrganizationID != null) {
107
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
108
+ }
109
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
111
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
112
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSessionRequest, localVarRequestOptions, configuration);
113
+ return {
114
+ url: (0, common_1.toPathString)(localVarUrlObj),
115
+ options: localVarRequestOptions,
116
+ };
117
+ },
118
+ /**
119
+ * Delete file inside sandbox
120
+ * @summary Delete file
121
+ * @param {string} sandboxId
122
+ * @param {string} path
123
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ deleteFile: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
128
+ // verify required parameter 'sandboxId' is not null or undefined
129
+ (0, common_1.assertParamExists)('deleteFile', 'sandboxId', sandboxId);
130
+ // verify required parameter 'path' is not null or undefined
131
+ (0, common_1.assertParamExists)('deleteFile', 'path', path);
132
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
135
+ let baseOptions;
136
+ if (configuration) {
137
+ baseOptions = configuration.baseOptions;
138
+ }
139
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
140
+ const localVarHeaderParameter = {};
141
+ const localVarQueryParameter = {};
142
+ // authentication bearer required
143
+ // http bearer authentication required
144
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
145
+ // authentication oauth2 required
146
+ if (path !== undefined) {
147
+ localVarQueryParameter['path'] = path;
148
+ }
149
+ if (xDaytonaOrganizationID != null) {
150
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
151
+ }
152
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
155
+ return {
156
+ url: (0, common_1.toPathString)(localVarUrlObj),
157
+ options: localVarRequestOptions,
158
+ };
159
+ },
160
+ /**
161
+ * Delete a specific session
162
+ * @summary Delete session
163
+ * @param {string} sandboxId
164
+ * @param {string} sessionId
165
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
166
+ * @param {*} [options] Override http request option.
167
+ * @throws {RequiredError}
168
+ */
169
+ deleteSession: async (sandboxId, sessionId, xDaytonaOrganizationID, options = {}) => {
170
+ // verify required parameter 'sandboxId' is not null or undefined
171
+ (0, common_1.assertParamExists)('deleteSession', 'sandboxId', sandboxId);
172
+ // verify required parameter 'sessionId' is not null or undefined
173
+ (0, common_1.assertParamExists)('deleteSession', 'sessionId', sessionId);
174
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}`
175
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
176
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)));
177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
179
+ let baseOptions;
180
+ if (configuration) {
181
+ baseOptions = configuration.baseOptions;
182
+ }
183
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
184
+ const localVarHeaderParameter = {};
185
+ const localVarQueryParameter = {};
186
+ // authentication bearer required
187
+ // http bearer authentication required
188
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
189
+ // authentication oauth2 required
190
+ if (xDaytonaOrganizationID != null) {
191
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
192
+ }
193
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
196
+ return {
197
+ url: (0, common_1.toPathString)(localVarUrlObj),
198
+ options: localVarRequestOptions,
199
+ };
200
+ },
201
+ /**
202
+ * Download file from sandbox
203
+ * @summary Download file
204
+ * @param {string} sandboxId
205
+ * @param {string} path
206
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
207
+ * @param {*} [options] Override http request option.
208
+ * @throws {RequiredError}
209
+ */
210
+ downloadFile: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
211
+ // verify required parameter 'sandboxId' is not null or undefined
212
+ (0, common_1.assertParamExists)('downloadFile', 'sandboxId', sandboxId);
213
+ // verify required parameter 'path' is not null or undefined
214
+ (0, common_1.assertParamExists)('downloadFile', 'path', path);
215
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/download`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ let baseOptions;
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ }
222
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
223
+ const localVarHeaderParameter = {};
224
+ const localVarQueryParameter = {};
225
+ // authentication bearer required
226
+ // http bearer authentication required
227
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
228
+ // authentication oauth2 required
229
+ if (path !== undefined) {
230
+ localVarQueryParameter['path'] = path;
231
+ }
232
+ if (xDaytonaOrganizationID != null) {
233
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
238
+ return {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ * Execute command synchronously inside sandbox
245
+ * @summary Execute command
246
+ * @param {string} sandboxId
247
+ * @param {ExecuteRequest} executeRequest
248
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ executeCommand: async (sandboxId, executeRequest, xDaytonaOrganizationID, options = {}) => {
253
+ // verify required parameter 'sandboxId' is not null or undefined
254
+ (0, common_1.assertParamExists)('executeCommand', 'sandboxId', sandboxId);
255
+ // verify required parameter 'executeRequest' is not null or undefined
256
+ (0, common_1.assertParamExists)('executeCommand', 'executeRequest', executeRequest);
257
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/execute`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ let baseOptions;
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ }
264
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
265
+ const localVarHeaderParameter = {};
266
+ const localVarQueryParameter = {};
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
270
+ // authentication oauth2 required
271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
272
+ if (xDaytonaOrganizationID != null) {
273
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
274
+ }
275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
277
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeRequest, localVarRequestOptions, configuration);
279
+ return {
280
+ url: (0, common_1.toPathString)(localVarUrlObj),
281
+ options: localVarRequestOptions,
282
+ };
283
+ },
284
+ /**
285
+ * Execute a command in a specific session
286
+ * @summary Execute command in session
287
+ * @param {string} sandboxId
288
+ * @param {string} sessionId
289
+ * @param {SessionExecuteRequest} sessionExecuteRequest
290
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ executeSessionCommand: async (sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options = {}) => {
295
+ // verify required parameter 'sandboxId' is not null or undefined
296
+ (0, common_1.assertParamExists)('executeSessionCommand', 'sandboxId', sandboxId);
297
+ // verify required parameter 'sessionId' is not null or undefined
298
+ (0, common_1.assertParamExists)('executeSessionCommand', 'sessionId', sessionId);
299
+ // verify required parameter 'sessionExecuteRequest' is not null or undefined
300
+ (0, common_1.assertParamExists)('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest);
301
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/exec`
302
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
303
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)));
304
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
305
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
306
+ let baseOptions;
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ }
310
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
311
+ const localVarHeaderParameter = {};
312
+ const localVarQueryParameter = {};
313
+ // authentication bearer required
314
+ // http bearer authentication required
315
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
316
+ // authentication oauth2 required
317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
318
+ if (xDaytonaOrganizationID != null) {
319
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
320
+ }
321
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
324
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sessionExecuteRequest, localVarRequestOptions, configuration);
325
+ return {
326
+ url: (0, common_1.toPathString)(localVarUrlObj),
327
+ options: localVarRequestOptions,
328
+ };
329
+ },
330
+ /**
331
+ * Search for text/pattern inside sandbox files
332
+ * @summary Search for text/pattern in files
333
+ * @param {string} sandboxId
334
+ * @param {string} path
335
+ * @param {string} pattern
336
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ findInFiles: async (sandboxId, path, pattern, xDaytonaOrganizationID, options = {}) => {
341
+ // verify required parameter 'sandboxId' is not null or undefined
342
+ (0, common_1.assertParamExists)('findInFiles', 'sandboxId', sandboxId);
343
+ // verify required parameter 'path' is not null or undefined
344
+ (0, common_1.assertParamExists)('findInFiles', 'path', path);
345
+ // verify required parameter 'pattern' is not null or undefined
346
+ (0, common_1.assertParamExists)('findInFiles', 'pattern', pattern);
347
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/find`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
349
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
350
+ let baseOptions;
351
+ if (configuration) {
352
+ baseOptions = configuration.baseOptions;
353
+ }
354
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
355
+ const localVarHeaderParameter = {};
356
+ const localVarQueryParameter = {};
357
+ // authentication bearer required
358
+ // http bearer authentication required
359
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
360
+ // authentication oauth2 required
361
+ if (path !== undefined) {
362
+ localVarQueryParameter['path'] = path;
363
+ }
364
+ if (pattern !== undefined) {
365
+ localVarQueryParameter['pattern'] = pattern;
366
+ }
367
+ if (xDaytonaOrganizationID != null) {
368
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
369
+ }
370
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
372
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
373
+ return {
374
+ url: (0, common_1.toPathString)(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ };
377
+ },
378
+ /**
379
+ * Get file info inside sandbox
380
+ * @summary Get file info
381
+ * @param {string} sandboxId
382
+ * @param {string} path
383
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ getFileInfo: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
388
+ // verify required parameter 'sandboxId' is not null or undefined
389
+ (0, common_1.assertParamExists)('getFileInfo', 'sandboxId', sandboxId);
390
+ // verify required parameter 'path' is not null or undefined
391
+ (0, common_1.assertParamExists)('getFileInfo', 'path', path);
392
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/info`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
393
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
394
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
395
+ let baseOptions;
396
+ if (configuration) {
397
+ baseOptions = configuration.baseOptions;
398
+ }
399
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
400
+ const localVarHeaderParameter = {};
401
+ const localVarQueryParameter = {};
402
+ // authentication bearer required
403
+ // http bearer authentication required
404
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
405
+ // authentication oauth2 required
406
+ if (path !== undefined) {
407
+ localVarQueryParameter['path'] = path;
408
+ }
409
+ if (xDaytonaOrganizationID != null) {
410
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
411
+ }
412
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
413
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
414
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
415
+ return {
416
+ url: (0, common_1.toPathString)(localVarUrlObj),
417
+ options: localVarRequestOptions,
418
+ };
419
+ },
420
+ /**
421
+ *
422
+ * @summary Get sandbox project dir
423
+ * @param {string} sandboxId
424
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ getProjectDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
429
+ // verify required parameter 'sandboxId' is not null or undefined
430
+ (0, common_1.assertParamExists)('getProjectDir', 'sandboxId', sandboxId);
431
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/project-dir`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
432
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
434
+ let baseOptions;
435
+ if (configuration) {
436
+ baseOptions = configuration.baseOptions;
437
+ }
438
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
439
+ const localVarHeaderParameter = {};
440
+ const localVarQueryParameter = {};
441
+ // authentication bearer required
442
+ // http bearer authentication required
443
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
444
+ // authentication oauth2 required
445
+ if (xDaytonaOrganizationID != null) {
446
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
447
+ }
448
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
450
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
451
+ return {
452
+ url: (0, common_1.toPathString)(localVarUrlObj),
453
+ options: localVarRequestOptions,
454
+ };
455
+ },
456
+ /**
457
+ * Get session by ID
458
+ * @summary Get session
459
+ * @param {string} sandboxId
460
+ * @param {string} sessionId
461
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ getSession: async (sandboxId, sessionId, xDaytonaOrganizationID, options = {}) => {
466
+ // verify required parameter 'sandboxId' is not null or undefined
467
+ (0, common_1.assertParamExists)('getSession', 'sandboxId', sandboxId);
468
+ // verify required parameter 'sessionId' is not null or undefined
469
+ (0, common_1.assertParamExists)('getSession', 'sessionId', sessionId);
470
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}`
471
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
472
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)));
473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
474
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
475
+ let baseOptions;
476
+ if (configuration) {
477
+ baseOptions = configuration.baseOptions;
478
+ }
479
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
480
+ const localVarHeaderParameter = {};
481
+ const localVarQueryParameter = {};
482
+ // authentication bearer required
483
+ // http bearer authentication required
484
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
485
+ // authentication oauth2 required
486
+ if (xDaytonaOrganizationID != null) {
487
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
488
+ }
489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
492
+ return {
493
+ url: (0, common_1.toPathString)(localVarUrlObj),
494
+ options: localVarRequestOptions,
495
+ };
496
+ },
497
+ /**
498
+ * Get session command by ID
499
+ * @summary Get session command
500
+ * @param {string} sandboxId
501
+ * @param {string} sessionId
502
+ * @param {string} commandId
503
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ getSessionCommand: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, options = {}) => {
508
+ // verify required parameter 'sandboxId' is not null or undefined
509
+ (0, common_1.assertParamExists)('getSessionCommand', 'sandboxId', sandboxId);
510
+ // verify required parameter 'sessionId' is not null or undefined
511
+ (0, common_1.assertParamExists)('getSessionCommand', 'sessionId', sessionId);
512
+ // verify required parameter 'commandId' is not null or undefined
513
+ (0, common_1.assertParamExists)('getSessionCommand', 'commandId', commandId);
514
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}`
515
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
516
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
517
+ .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
518
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
519
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
520
+ let baseOptions;
521
+ if (configuration) {
522
+ baseOptions = configuration.baseOptions;
523
+ }
524
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
525
+ const localVarHeaderParameter = {};
526
+ const localVarQueryParameter = {};
527
+ // authentication bearer required
528
+ // http bearer authentication required
529
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
530
+ // authentication oauth2 required
531
+ if (xDaytonaOrganizationID != null) {
532
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
533
+ }
534
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
535
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
536
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
537
+ return {
538
+ url: (0, common_1.toPathString)(localVarUrlObj),
539
+ options: localVarRequestOptions,
540
+ };
541
+ },
542
+ /**
543
+ * Get logs for a specific command in a session
544
+ * @summary Get command logs
545
+ * @param {string} sandboxId
546
+ * @param {string} sessionId
547
+ * @param {string} commandId
548
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
549
+ * @param {boolean} [follow]
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ getSessionCommandLogs: async (sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options = {}) => {
554
+ // verify required parameter 'sandboxId' is not null or undefined
555
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'sandboxId', sandboxId);
556
+ // verify required parameter 'sessionId' is not null or undefined
557
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'sessionId', sessionId);
558
+ // verify required parameter 'commandId' is not null or undefined
559
+ (0, common_1.assertParamExists)('getSessionCommandLogs', 'commandId', commandId);
560
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
561
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
562
+ .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
563
+ .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)));
564
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
565
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
566
+ let baseOptions;
567
+ if (configuration) {
568
+ baseOptions = configuration.baseOptions;
569
+ }
570
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
571
+ const localVarHeaderParameter = {};
572
+ const localVarQueryParameter = {};
573
+ // authentication bearer required
574
+ // http bearer authentication required
575
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
576
+ // authentication oauth2 required
577
+ if (follow !== undefined) {
578
+ localVarQueryParameter['follow'] = follow;
579
+ }
580
+ if (xDaytonaOrganizationID != null) {
581
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
582
+ }
583
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
584
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
585
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
586
+ return {
587
+ url: (0, common_1.toPathString)(localVarUrlObj),
588
+ options: localVarRequestOptions,
589
+ };
590
+ },
591
+ /**
592
+ * Add files to git commit
593
+ * @summary Add files
594
+ * @param {string} sandboxId
595
+ * @param {GitAddRequest} gitAddRequest
596
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ gitAddFiles: async (sandboxId, gitAddRequest, xDaytonaOrganizationID, options = {}) => {
601
+ // verify required parameter 'sandboxId' is not null or undefined
602
+ (0, common_1.assertParamExists)('gitAddFiles', 'sandboxId', sandboxId);
603
+ // verify required parameter 'gitAddRequest' is not null or undefined
604
+ (0, common_1.assertParamExists)('gitAddFiles', 'gitAddRequest', gitAddRequest);
605
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/add`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
607
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
608
+ let baseOptions;
609
+ if (configuration) {
610
+ baseOptions = configuration.baseOptions;
611
+ }
612
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
613
+ const localVarHeaderParameter = {};
614
+ const localVarQueryParameter = {};
615
+ // authentication bearer required
616
+ // http bearer authentication required
617
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
618
+ // authentication oauth2 required
619
+ localVarHeaderParameter['Content-Type'] = 'application/json';
620
+ if (xDaytonaOrganizationID != null) {
621
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
622
+ }
623
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
625
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
626
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitAddRequest, localVarRequestOptions, configuration);
627
+ return {
628
+ url: (0, common_1.toPathString)(localVarUrlObj),
629
+ options: localVarRequestOptions,
630
+ };
631
+ },
632
+ /**
633
+ * Checkout branch or commit in git repository
634
+ * @summary Checkout branch
635
+ * @param {string} sandboxId
636
+ * @param {GitCheckoutRequest} gitCheckoutRequest
637
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ */
641
+ gitCheckoutBranch: async (sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options = {}) => {
642
+ // verify required parameter 'sandboxId' is not null or undefined
643
+ (0, common_1.assertParamExists)('gitCheckoutBranch', 'sandboxId', sandboxId);
644
+ // verify required parameter 'gitCheckoutRequest' is not null or undefined
645
+ (0, common_1.assertParamExists)('gitCheckoutBranch', 'gitCheckoutRequest', gitCheckoutRequest);
646
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/checkout`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
648
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
649
+ let baseOptions;
650
+ if (configuration) {
651
+ baseOptions = configuration.baseOptions;
652
+ }
653
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
654
+ const localVarHeaderParameter = {};
655
+ const localVarQueryParameter = {};
656
+ // authentication bearer required
657
+ // http bearer authentication required
658
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
659
+ // authentication oauth2 required
660
+ localVarHeaderParameter['Content-Type'] = 'application/json';
661
+ if (xDaytonaOrganizationID != null) {
662
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
663
+ }
664
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
665
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
666
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
667
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCheckoutRequest, localVarRequestOptions, configuration);
668
+ return {
669
+ url: (0, common_1.toPathString)(localVarUrlObj),
670
+ options: localVarRequestOptions,
671
+ };
672
+ },
673
+ /**
674
+ * Clone git repository
675
+ * @summary Clone repository
676
+ * @param {string} sandboxId
677
+ * @param {GitCloneRequest} gitCloneRequest
678
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ */
682
+ gitCloneRepository: async (sandboxId, gitCloneRequest, xDaytonaOrganizationID, options = {}) => {
683
+ // verify required parameter 'sandboxId' is not null or undefined
684
+ (0, common_1.assertParamExists)('gitCloneRepository', 'sandboxId', sandboxId);
685
+ // verify required parameter 'gitCloneRequest' is not null or undefined
686
+ (0, common_1.assertParamExists)('gitCloneRepository', 'gitCloneRequest', gitCloneRequest);
687
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/clone`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
689
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
690
+ let baseOptions;
691
+ if (configuration) {
692
+ baseOptions = configuration.baseOptions;
693
+ }
694
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
695
+ const localVarHeaderParameter = {};
696
+ const localVarQueryParameter = {};
697
+ // authentication bearer required
698
+ // http bearer authentication required
699
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
700
+ // authentication oauth2 required
701
+ localVarHeaderParameter['Content-Type'] = 'application/json';
702
+ if (xDaytonaOrganizationID != null) {
703
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
704
+ }
705
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
707
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
708
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCloneRequest, localVarRequestOptions, configuration);
709
+ return {
710
+ url: (0, common_1.toPathString)(localVarUrlObj),
711
+ options: localVarRequestOptions,
712
+ };
713
+ },
714
+ /**
715
+ * Commit changes to git repository
716
+ * @summary Commit changes
717
+ * @param {string} sandboxId
718
+ * @param {GitCommitRequest} gitCommitRequest
719
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ gitCommitChanges: async (sandboxId, gitCommitRequest, xDaytonaOrganizationID, options = {}) => {
724
+ // verify required parameter 'sandboxId' is not null or undefined
725
+ (0, common_1.assertParamExists)('gitCommitChanges', 'sandboxId', sandboxId);
726
+ // verify required parameter 'gitCommitRequest' is not null or undefined
727
+ (0, common_1.assertParamExists)('gitCommitChanges', 'gitCommitRequest', gitCommitRequest);
728
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/commit`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
730
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
731
+ let baseOptions;
732
+ if (configuration) {
733
+ baseOptions = configuration.baseOptions;
734
+ }
735
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
736
+ const localVarHeaderParameter = {};
737
+ const localVarQueryParameter = {};
738
+ // authentication bearer required
739
+ // http bearer authentication required
740
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
741
+ // authentication oauth2 required
742
+ localVarHeaderParameter['Content-Type'] = 'application/json';
743
+ if (xDaytonaOrganizationID != null) {
744
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
745
+ }
746
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
748
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
749
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitCommitRequest, localVarRequestOptions, configuration);
750
+ return {
751
+ url: (0, common_1.toPathString)(localVarUrlObj),
752
+ options: localVarRequestOptions,
753
+ };
754
+ },
755
+ /**
756
+ * Create branch on git repository
757
+ * @summary Create branch
758
+ * @param {string} sandboxId
759
+ * @param {GitBranchRequest} gitBranchRequest
760
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ */
764
+ gitCreateBranch: async (sandboxId, gitBranchRequest, xDaytonaOrganizationID, options = {}) => {
765
+ // verify required parameter 'sandboxId' is not null or undefined
766
+ (0, common_1.assertParamExists)('gitCreateBranch', 'sandboxId', sandboxId);
767
+ // verify required parameter 'gitBranchRequest' is not null or undefined
768
+ (0, common_1.assertParamExists)('gitCreateBranch', 'gitBranchRequest', gitBranchRequest);
769
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
770
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
771
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
772
+ let baseOptions;
773
+ if (configuration) {
774
+ baseOptions = configuration.baseOptions;
775
+ }
776
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
777
+ const localVarHeaderParameter = {};
778
+ const localVarQueryParameter = {};
779
+ // authentication bearer required
780
+ // http bearer authentication required
781
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
782
+ // authentication oauth2 required
783
+ localVarHeaderParameter['Content-Type'] = 'application/json';
784
+ if (xDaytonaOrganizationID != null) {
785
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
786
+ }
787
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
789
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
790
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitBranchRequest, localVarRequestOptions, configuration);
791
+ return {
792
+ url: (0, common_1.toPathString)(localVarUrlObj),
793
+ options: localVarRequestOptions,
794
+ };
795
+ },
796
+ /**
797
+ * Delete branch on git repository
798
+ * @summary Delete branch
799
+ * @param {string} sandboxId
800
+ * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
801
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
802
+ * @param {*} [options] Override http request option.
803
+ * @throws {RequiredError}
804
+ */
805
+ gitDeleteBranch: async (sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options = {}) => {
806
+ // verify required parameter 'sandboxId' is not null or undefined
807
+ (0, common_1.assertParamExists)('gitDeleteBranch', 'sandboxId', sandboxId);
808
+ // verify required parameter 'gitDeleteBranchRequest' is not null or undefined
809
+ (0, common_1.assertParamExists)('gitDeleteBranch', 'gitDeleteBranchRequest', gitDeleteBranchRequest);
810
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
812
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
813
+ let baseOptions;
814
+ if (configuration) {
815
+ baseOptions = configuration.baseOptions;
816
+ }
817
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
818
+ const localVarHeaderParameter = {};
819
+ const localVarQueryParameter = {};
820
+ // authentication bearer required
821
+ // http bearer authentication required
822
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
823
+ // authentication oauth2 required
824
+ localVarHeaderParameter['Content-Type'] = 'application/json';
825
+ if (xDaytonaOrganizationID != null) {
826
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
827
+ }
828
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
829
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
830
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
831
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitDeleteBranchRequest, localVarRequestOptions, configuration);
832
+ return {
833
+ url: (0, common_1.toPathString)(localVarUrlObj),
834
+ options: localVarRequestOptions,
835
+ };
836
+ },
837
+ /**
838
+ * Get commit history from git repository
839
+ * @summary Get commit history
840
+ * @param {string} sandboxId
841
+ * @param {string} path
842
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
843
+ * @param {*} [options] Override http request option.
844
+ * @throws {RequiredError}
845
+ */
846
+ gitGetHistory: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
847
+ // verify required parameter 'sandboxId' is not null or undefined
848
+ (0, common_1.assertParamExists)('gitGetHistory', 'sandboxId', sandboxId);
849
+ // verify required parameter 'path' is not null or undefined
850
+ (0, common_1.assertParamExists)('gitGetHistory', 'path', path);
851
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/history`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
853
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
854
+ let baseOptions;
855
+ if (configuration) {
856
+ baseOptions = configuration.baseOptions;
857
+ }
858
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
859
+ const localVarHeaderParameter = {};
860
+ const localVarQueryParameter = {};
861
+ // authentication bearer required
862
+ // http bearer authentication required
863
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
864
+ // authentication oauth2 required
865
+ if (path !== undefined) {
866
+ localVarQueryParameter['path'] = path;
867
+ }
868
+ if (xDaytonaOrganizationID != null) {
869
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
870
+ }
871
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
873
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
874
+ return {
875
+ url: (0, common_1.toPathString)(localVarUrlObj),
876
+ options: localVarRequestOptions,
877
+ };
878
+ },
879
+ /**
880
+ * Get status from git repository
881
+ * @summary Get git status
882
+ * @param {string} sandboxId
883
+ * @param {string} path
884
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ gitGetStatus: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
889
+ // verify required parameter 'sandboxId' is not null or undefined
890
+ (0, common_1.assertParamExists)('gitGetStatus', 'sandboxId', sandboxId);
891
+ // verify required parameter 'path' is not null or undefined
892
+ (0, common_1.assertParamExists)('gitGetStatus', 'path', path);
893
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/status`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
894
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
895
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
896
+ let baseOptions;
897
+ if (configuration) {
898
+ baseOptions = configuration.baseOptions;
899
+ }
900
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
901
+ const localVarHeaderParameter = {};
902
+ const localVarQueryParameter = {};
903
+ // authentication bearer required
904
+ // http bearer authentication required
905
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
906
+ // authentication oauth2 required
907
+ if (path !== undefined) {
908
+ localVarQueryParameter['path'] = path;
909
+ }
910
+ if (xDaytonaOrganizationID != null) {
911
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
912
+ }
913
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
914
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
915
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
916
+ return {
917
+ url: (0, common_1.toPathString)(localVarUrlObj),
918
+ options: localVarRequestOptions,
919
+ };
920
+ },
921
+ /**
922
+ * Get branch list from git repository
923
+ * @summary Get branch list
924
+ * @param {string} sandboxId
925
+ * @param {string} path
926
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ gitListBranches: async (sandboxId, path, xDaytonaOrganizationID, options = {}) => {
931
+ // verify required parameter 'sandboxId' is not null or undefined
932
+ (0, common_1.assertParamExists)('gitListBranches', 'sandboxId', sandboxId);
933
+ // verify required parameter 'path' is not null or undefined
934
+ (0, common_1.assertParamExists)('gitListBranches', 'path', path);
935
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/branches`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
936
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
937
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
938
+ let baseOptions;
939
+ if (configuration) {
940
+ baseOptions = configuration.baseOptions;
941
+ }
942
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
943
+ const localVarHeaderParameter = {};
944
+ const localVarQueryParameter = {};
945
+ // authentication bearer required
946
+ // http bearer authentication required
947
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
948
+ // authentication oauth2 required
949
+ if (path !== undefined) {
950
+ localVarQueryParameter['path'] = path;
951
+ }
952
+ if (xDaytonaOrganizationID != null) {
953
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
954
+ }
955
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
956
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
957
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
958
+ return {
959
+ url: (0, common_1.toPathString)(localVarUrlObj),
960
+ options: localVarRequestOptions,
961
+ };
962
+ },
963
+ /**
964
+ * Pull changes from remote
965
+ * @summary Pull changes
966
+ * @param {string} sandboxId
967
+ * @param {GitRepoRequest} gitRepoRequest
968
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ gitPullChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
973
+ // verify required parameter 'sandboxId' is not null or undefined
974
+ (0, common_1.assertParamExists)('gitPullChanges', 'sandboxId', sandboxId);
975
+ // verify required parameter 'gitRepoRequest' is not null or undefined
976
+ (0, common_1.assertParamExists)('gitPullChanges', 'gitRepoRequest', gitRepoRequest);
977
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/pull`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
978
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
979
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
980
+ let baseOptions;
981
+ if (configuration) {
982
+ baseOptions = configuration.baseOptions;
983
+ }
984
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
985
+ const localVarHeaderParameter = {};
986
+ const localVarQueryParameter = {};
987
+ // authentication bearer required
988
+ // http bearer authentication required
989
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
990
+ // authentication oauth2 required
991
+ localVarHeaderParameter['Content-Type'] = 'application/json';
992
+ if (xDaytonaOrganizationID != null) {
993
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
994
+ }
995
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
996
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
997
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
998
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
999
+ return {
1000
+ url: (0, common_1.toPathString)(localVarUrlObj),
1001
+ options: localVarRequestOptions,
1002
+ };
1003
+ },
1004
+ /**
1005
+ * Push changes to remote
1006
+ * @summary Push changes
1007
+ * @param {string} sandboxId
1008
+ * @param {GitRepoRequest} gitRepoRequest
1009
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ gitPushChanges: async (sandboxId, gitRepoRequest, xDaytonaOrganizationID, options = {}) => {
1014
+ // verify required parameter 'sandboxId' is not null or undefined
1015
+ (0, common_1.assertParamExists)('gitPushChanges', 'sandboxId', sandboxId);
1016
+ // verify required parameter 'gitRepoRequest' is not null or undefined
1017
+ (0, common_1.assertParamExists)('gitPushChanges', 'gitRepoRequest', gitRepoRequest);
1018
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/git/push`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1019
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1020
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1021
+ let baseOptions;
1022
+ if (configuration) {
1023
+ baseOptions = configuration.baseOptions;
1024
+ }
1025
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1026
+ const localVarHeaderParameter = {};
1027
+ const localVarQueryParameter = {};
1028
+ // authentication bearer required
1029
+ // http bearer authentication required
1030
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1031
+ // authentication oauth2 required
1032
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1033
+ if (xDaytonaOrganizationID != null) {
1034
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1035
+ }
1036
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1037
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1038
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1039
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(gitRepoRequest, localVarRequestOptions, configuration);
1040
+ return {
1041
+ url: (0, common_1.toPathString)(localVarUrlObj),
1042
+ options: localVarRequestOptions,
1043
+ };
1044
+ },
1045
+ /**
1046
+ *
1047
+ * @summary List files
1048
+ * @param {string} sandboxId
1049
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1050
+ * @param {string} [path]
1051
+ * @param {*} [options] Override http request option.
1052
+ * @throws {RequiredError}
1053
+ */
1054
+ listFiles: async (sandboxId, xDaytonaOrganizationID, path, options = {}) => {
1055
+ // verify required parameter 'sandboxId' is not null or undefined
1056
+ (0, common_1.assertParamExists)('listFiles', 'sandboxId', sandboxId);
1057
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1058
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1059
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1060
+ let baseOptions;
1061
+ if (configuration) {
1062
+ baseOptions = configuration.baseOptions;
1063
+ }
1064
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1065
+ const localVarHeaderParameter = {};
1066
+ const localVarQueryParameter = {};
1067
+ // authentication bearer required
1068
+ // http bearer authentication required
1069
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1070
+ // authentication oauth2 required
1071
+ if (path !== undefined) {
1072
+ localVarQueryParameter['path'] = path;
1073
+ }
1074
+ if (xDaytonaOrganizationID != null) {
1075
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1076
+ }
1077
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1078
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1079
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1080
+ return {
1081
+ url: (0, common_1.toPathString)(localVarUrlObj),
1082
+ options: localVarRequestOptions,
1083
+ };
1084
+ },
1085
+ /**
1086
+ * List all active sessions in the sandbox
1087
+ * @summary List sessions
1088
+ * @param {string} sandboxId
1089
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ listSessions: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1094
+ // verify required parameter 'sandboxId' is not null or undefined
1095
+ (0, common_1.assertParamExists)('listSessions', 'sandboxId', sandboxId);
1096
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/process/session`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1097
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1098
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1099
+ let baseOptions;
1100
+ if (configuration) {
1101
+ baseOptions = configuration.baseOptions;
1102
+ }
1103
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1104
+ const localVarHeaderParameter = {};
1105
+ const localVarQueryParameter = {};
1106
+ // authentication bearer required
1107
+ // http bearer authentication required
1108
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1109
+ // authentication oauth2 required
1110
+ if (xDaytonaOrganizationID != null) {
1111
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1112
+ }
1113
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1115
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1116
+ return {
1117
+ url: (0, common_1.toPathString)(localVarUrlObj),
1118
+ options: localVarRequestOptions,
1119
+ };
1120
+ },
1121
+ /**
1122
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1123
+ * @summary Get Lsp Completions
1124
+ * @param {string} sandboxId
1125
+ * @param {LspCompletionParams} lspCompletionParams
1126
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1127
+ * @param {*} [options] Override http request option.
1128
+ * @throws {RequiredError}
1129
+ */
1130
+ lspCompletions: async (sandboxId, lspCompletionParams, xDaytonaOrganizationID, options = {}) => {
1131
+ // verify required parameter 'sandboxId' is not null or undefined
1132
+ (0, common_1.assertParamExists)('lspCompletions', 'sandboxId', sandboxId);
1133
+ // verify required parameter 'lspCompletionParams' is not null or undefined
1134
+ (0, common_1.assertParamExists)('lspCompletions', 'lspCompletionParams', lspCompletionParams);
1135
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/completions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1137
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1138
+ let baseOptions;
1139
+ if (configuration) {
1140
+ baseOptions = configuration.baseOptions;
1141
+ }
1142
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1143
+ const localVarHeaderParameter = {};
1144
+ const localVarQueryParameter = {};
1145
+ // authentication bearer required
1146
+ // http bearer authentication required
1147
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1148
+ // authentication oauth2 required
1149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1150
+ if (xDaytonaOrganizationID != null) {
1151
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1152
+ }
1153
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1154
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1155
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1156
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspCompletionParams, localVarRequestOptions, configuration);
1157
+ return {
1158
+ url: (0, common_1.toPathString)(localVarUrlObj),
1159
+ options: localVarRequestOptions,
1160
+ };
1161
+ },
1162
+ /**
1163
+ * The document close notification is sent from the client to the server when the document got closed in the client.
1164
+ * @summary Call Lsp DidClose
1165
+ * @param {string} sandboxId
1166
+ * @param {LspDocumentRequest} lspDocumentRequest
1167
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ lspDidClose: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
1172
+ // verify required parameter 'sandboxId' is not null or undefined
1173
+ (0, common_1.assertParamExists)('lspDidClose', 'sandboxId', sandboxId);
1174
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1175
+ (0, common_1.assertParamExists)('lspDidClose', 'lspDocumentRequest', lspDocumentRequest);
1176
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-close`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1178
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1179
+ let baseOptions;
1180
+ if (configuration) {
1181
+ baseOptions = configuration.baseOptions;
1182
+ }
1183
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1184
+ const localVarHeaderParameter = {};
1185
+ const localVarQueryParameter = {};
1186
+ // authentication bearer required
1187
+ // http bearer authentication required
1188
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1189
+ // authentication oauth2 required
1190
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1191
+ if (xDaytonaOrganizationID != null) {
1192
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1193
+ }
1194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1196
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1197
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
1198
+ return {
1199
+ url: (0, common_1.toPathString)(localVarUrlObj),
1200
+ options: localVarRequestOptions,
1201
+ };
1202
+ },
1203
+ /**
1204
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
1205
+ * @summary Call Lsp DidOpen
1206
+ * @param {string} sandboxId
1207
+ * @param {LspDocumentRequest} lspDocumentRequest
1208
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ lspDidOpen: async (sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options = {}) => {
1213
+ // verify required parameter 'sandboxId' is not null or undefined
1214
+ (0, common_1.assertParamExists)('lspDidOpen', 'sandboxId', sandboxId);
1215
+ // verify required parameter 'lspDocumentRequest' is not null or undefined
1216
+ (0, common_1.assertParamExists)('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest);
1217
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/did-open`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1219
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1220
+ let baseOptions;
1221
+ if (configuration) {
1222
+ baseOptions = configuration.baseOptions;
1223
+ }
1224
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1225
+ const localVarHeaderParameter = {};
1226
+ const localVarQueryParameter = {};
1227
+ // authentication bearer required
1228
+ // http bearer authentication required
1229
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1230
+ // authentication oauth2 required
1231
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1232
+ if (xDaytonaOrganizationID != null) {
1233
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1234
+ }
1235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1237
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1238
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspDocumentRequest, localVarRequestOptions, configuration);
1239
+ return {
1240
+ url: (0, common_1.toPathString)(localVarUrlObj),
1241
+ options: localVarRequestOptions,
1242
+ };
1243
+ },
1244
+ /**
1245
+ * The document symbol request is sent from the client to the server.
1246
+ * @summary Call Lsp DocumentSymbols
1247
+ * @param {string} sandboxId
1248
+ * @param {string} languageId
1249
+ * @param {string} pathToProject
1250
+ * @param {string} uri
1251
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1252
+ * @param {*} [options] Override http request option.
1253
+ * @throws {RequiredError}
1254
+ */
1255
+ lspDocumentSymbols: async (sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options = {}) => {
1256
+ // verify required parameter 'sandboxId' is not null or undefined
1257
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'sandboxId', sandboxId);
1258
+ // verify required parameter 'languageId' is not null or undefined
1259
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'languageId', languageId);
1260
+ // verify required parameter 'pathToProject' is not null or undefined
1261
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'pathToProject', pathToProject);
1262
+ // verify required parameter 'uri' is not null or undefined
1263
+ (0, common_1.assertParamExists)('lspDocumentSymbols', 'uri', uri);
1264
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/document-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1266
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1267
+ let baseOptions;
1268
+ if (configuration) {
1269
+ baseOptions = configuration.baseOptions;
1270
+ }
1271
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1272
+ const localVarHeaderParameter = {};
1273
+ const localVarQueryParameter = {};
1274
+ // authentication bearer required
1275
+ // http bearer authentication required
1276
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1277
+ // authentication oauth2 required
1278
+ if (languageId !== undefined) {
1279
+ localVarQueryParameter['languageId'] = languageId;
1280
+ }
1281
+ if (pathToProject !== undefined) {
1282
+ localVarQueryParameter['pathToProject'] = pathToProject;
1283
+ }
1284
+ if (uri !== undefined) {
1285
+ localVarQueryParameter['uri'] = uri;
1286
+ }
1287
+ if (xDaytonaOrganizationID != null) {
1288
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1289
+ }
1290
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1292
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1293
+ return {
1294
+ url: (0, common_1.toPathString)(localVarUrlObj),
1295
+ options: localVarRequestOptions,
1296
+ };
1297
+ },
1298
+ /**
1299
+ * Start Lsp server process inside sandbox project
1300
+ * @summary Start Lsp server
1301
+ * @param {string} sandboxId
1302
+ * @param {LspServerRequest} lspServerRequest
1303
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ lspStart: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
1308
+ // verify required parameter 'sandboxId' is not null or undefined
1309
+ (0, common_1.assertParamExists)('lspStart', 'sandboxId', sandboxId);
1310
+ // verify required parameter 'lspServerRequest' is not null or undefined
1311
+ (0, common_1.assertParamExists)('lspStart', 'lspServerRequest', lspServerRequest);
1312
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/start`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1314
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1315
+ let baseOptions;
1316
+ if (configuration) {
1317
+ baseOptions = configuration.baseOptions;
1318
+ }
1319
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1320
+ const localVarHeaderParameter = {};
1321
+ const localVarQueryParameter = {};
1322
+ // authentication bearer required
1323
+ // http bearer authentication required
1324
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1325
+ // authentication oauth2 required
1326
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1327
+ if (xDaytonaOrganizationID != null) {
1328
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1329
+ }
1330
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1332
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1333
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1334
+ return {
1335
+ url: (0, common_1.toPathString)(localVarUrlObj),
1336
+ options: localVarRequestOptions,
1337
+ };
1338
+ },
1339
+ /**
1340
+ * Stop Lsp server process inside sandbox project
1341
+ * @summary Stop Lsp server
1342
+ * @param {string} sandboxId
1343
+ * @param {LspServerRequest} lspServerRequest
1344
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ lspStop: async (sandboxId, lspServerRequest, xDaytonaOrganizationID, options = {}) => {
1349
+ // verify required parameter 'sandboxId' is not null or undefined
1350
+ (0, common_1.assertParamExists)('lspStop', 'sandboxId', sandboxId);
1351
+ // verify required parameter 'lspServerRequest' is not null or undefined
1352
+ (0, common_1.assertParamExists)('lspStop', 'lspServerRequest', lspServerRequest);
1353
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/stop`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1355
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1356
+ let baseOptions;
1357
+ if (configuration) {
1358
+ baseOptions = configuration.baseOptions;
1359
+ }
1360
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1361
+ const localVarHeaderParameter = {};
1362
+ const localVarQueryParameter = {};
1363
+ // authentication bearer required
1364
+ // http bearer authentication required
1365
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1366
+ // authentication oauth2 required
1367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1368
+ if (xDaytonaOrganizationID != null) {
1369
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1370
+ }
1371
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1373
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1374
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(lspServerRequest, localVarRequestOptions, configuration);
1375
+ return {
1376
+ url: (0, common_1.toPathString)(localVarUrlObj),
1377
+ options: localVarRequestOptions,
1378
+ };
1379
+ },
1380
+ /**
1381
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1382
+ * @summary Call Lsp WorkspaceSymbols
1383
+ * @param {string} sandboxId
1384
+ * @param {string} languageId
1385
+ * @param {string} pathToProject
1386
+ * @param {string} query
1387
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ lspWorkspaceSymbols: async (sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options = {}) => {
1392
+ // verify required parameter 'sandboxId' is not null or undefined
1393
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'sandboxId', sandboxId);
1394
+ // verify required parameter 'languageId' is not null or undefined
1395
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'languageId', languageId);
1396
+ // verify required parameter 'pathToProject' is not null or undefined
1397
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'pathToProject', pathToProject);
1398
+ // verify required parameter 'query' is not null or undefined
1399
+ (0, common_1.assertParamExists)('lspWorkspaceSymbols', 'query', query);
1400
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/lsp/workspace-symbols`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1401
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1402
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1403
+ let baseOptions;
1404
+ if (configuration) {
1405
+ baseOptions = configuration.baseOptions;
1406
+ }
1407
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1408
+ const localVarHeaderParameter = {};
1409
+ const localVarQueryParameter = {};
1410
+ // authentication bearer required
1411
+ // http bearer authentication required
1412
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1413
+ // authentication oauth2 required
1414
+ if (languageId !== undefined) {
1415
+ localVarQueryParameter['languageId'] = languageId;
1416
+ }
1417
+ if (pathToProject !== undefined) {
1418
+ localVarQueryParameter['pathToProject'] = pathToProject;
1419
+ }
1420
+ if (query !== undefined) {
1421
+ localVarQueryParameter['query'] = query;
1422
+ }
1423
+ if (xDaytonaOrganizationID != null) {
1424
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1425
+ }
1426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1428
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1429
+ return {
1430
+ url: (0, common_1.toPathString)(localVarUrlObj),
1431
+ options: localVarRequestOptions,
1432
+ };
1433
+ },
1434
+ /**
1435
+ * Move file inside sandbox
1436
+ * @summary Move file
1437
+ * @param {string} sandboxId
1438
+ * @param {string} source
1439
+ * @param {string} destination
1440
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ */
1444
+ moveFile: async (sandboxId, source, destination, xDaytonaOrganizationID, options = {}) => {
1445
+ // verify required parameter 'sandboxId' is not null or undefined
1446
+ (0, common_1.assertParamExists)('moveFile', 'sandboxId', sandboxId);
1447
+ // verify required parameter 'source' is not null or undefined
1448
+ (0, common_1.assertParamExists)('moveFile', 'source', source);
1449
+ // verify required parameter 'destination' is not null or undefined
1450
+ (0, common_1.assertParamExists)('moveFile', 'destination', destination);
1451
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/move`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1453
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1454
+ let baseOptions;
1455
+ if (configuration) {
1456
+ baseOptions = configuration.baseOptions;
1457
+ }
1458
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1459
+ const localVarHeaderParameter = {};
1460
+ const localVarQueryParameter = {};
1461
+ // authentication bearer required
1462
+ // http bearer authentication required
1463
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1464
+ // authentication oauth2 required
1465
+ if (source !== undefined) {
1466
+ localVarQueryParameter['source'] = source;
1467
+ }
1468
+ if (destination !== undefined) {
1469
+ localVarQueryParameter['destination'] = destination;
1470
+ }
1471
+ if (xDaytonaOrganizationID != null) {
1472
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1473
+ }
1474
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1475
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1476
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1477
+ return {
1478
+ url: (0, common_1.toPathString)(localVarUrlObj),
1479
+ options: localVarRequestOptions,
1480
+ };
1481
+ },
1482
+ /**
1483
+ * Replace text/pattern in multiple files inside sandbox
1484
+ * @summary Replace in files
1485
+ * @param {string} sandboxId
1486
+ * @param {ReplaceRequest} replaceRequest
1487
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1488
+ * @param {*} [options] Override http request option.
1489
+ * @throws {RequiredError}
1490
+ */
1491
+ replaceInFiles: async (sandboxId, replaceRequest, xDaytonaOrganizationID, options = {}) => {
1492
+ // verify required parameter 'sandboxId' is not null or undefined
1493
+ (0, common_1.assertParamExists)('replaceInFiles', 'sandboxId', sandboxId);
1494
+ // verify required parameter 'replaceRequest' is not null or undefined
1495
+ (0, common_1.assertParamExists)('replaceInFiles', 'replaceRequest', replaceRequest);
1496
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/replace`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1497
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1498
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1499
+ let baseOptions;
1500
+ if (configuration) {
1501
+ baseOptions = configuration.baseOptions;
1502
+ }
1503
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1504
+ const localVarHeaderParameter = {};
1505
+ const localVarQueryParameter = {};
1506
+ // authentication bearer required
1507
+ // http bearer authentication required
1508
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1509
+ // authentication oauth2 required
1510
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1511
+ if (xDaytonaOrganizationID != null) {
1512
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1513
+ }
1514
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1516
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1517
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceRequest, localVarRequestOptions, configuration);
1518
+ return {
1519
+ url: (0, common_1.toPathString)(localVarUrlObj),
1520
+ options: localVarRequestOptions,
1521
+ };
1522
+ },
1523
+ /**
1524
+ * Search for files inside sandbox
1525
+ * @summary Search files
1526
+ * @param {string} sandboxId
1527
+ * @param {string} path
1528
+ * @param {string} pattern
1529
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ */
1533
+ searchFiles: async (sandboxId, path, pattern, xDaytonaOrganizationID, options = {}) => {
1534
+ // verify required parameter 'sandboxId' is not null or undefined
1535
+ (0, common_1.assertParamExists)('searchFiles', 'sandboxId', sandboxId);
1536
+ // verify required parameter 'path' is not null or undefined
1537
+ (0, common_1.assertParamExists)('searchFiles', 'path', path);
1538
+ // verify required parameter 'pattern' is not null or undefined
1539
+ (0, common_1.assertParamExists)('searchFiles', 'pattern', pattern);
1540
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/search`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1542
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1543
+ let baseOptions;
1544
+ if (configuration) {
1545
+ baseOptions = configuration.baseOptions;
1546
+ }
1547
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1548
+ const localVarHeaderParameter = {};
1549
+ const localVarQueryParameter = {};
1550
+ // authentication bearer required
1551
+ // http bearer authentication required
1552
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1553
+ // authentication oauth2 required
1554
+ if (path !== undefined) {
1555
+ localVarQueryParameter['path'] = path;
1556
+ }
1557
+ if (pattern !== undefined) {
1558
+ localVarQueryParameter['pattern'] = pattern;
1559
+ }
1560
+ if (xDaytonaOrganizationID != null) {
1561
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1562
+ }
1563
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1565
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1566
+ return {
1567
+ url: (0, common_1.toPathString)(localVarUrlObj),
1568
+ options: localVarRequestOptions,
1569
+ };
1570
+ },
1571
+ /**
1572
+ * Set file owner/group/permissions inside sandbox
1573
+ * @summary Set file permissions
1574
+ * @param {string} sandboxId
1575
+ * @param {string} path
1576
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1577
+ * @param {string} [owner]
1578
+ * @param {string} [group]
1579
+ * @param {string} [mode]
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ setFilePermissions: async (sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options = {}) => {
1584
+ // verify required parameter 'sandboxId' is not null or undefined
1585
+ (0, common_1.assertParamExists)('setFilePermissions', 'sandboxId', sandboxId);
1586
+ // verify required parameter 'path' is not null or undefined
1587
+ (0, common_1.assertParamExists)('setFilePermissions', 'path', path);
1588
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/permissions`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1589
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1590
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1591
+ let baseOptions;
1592
+ if (configuration) {
1593
+ baseOptions = configuration.baseOptions;
1594
+ }
1595
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1596
+ const localVarHeaderParameter = {};
1597
+ const localVarQueryParameter = {};
1598
+ // authentication bearer required
1599
+ // http bearer authentication required
1600
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1601
+ // authentication oauth2 required
1602
+ if (path !== undefined) {
1603
+ localVarQueryParameter['path'] = path;
1604
+ }
1605
+ if (owner !== undefined) {
1606
+ localVarQueryParameter['owner'] = owner;
1607
+ }
1608
+ if (group !== undefined) {
1609
+ localVarQueryParameter['group'] = group;
1610
+ }
1611
+ if (mode !== undefined) {
1612
+ localVarQueryParameter['mode'] = mode;
1613
+ }
1614
+ if (xDaytonaOrganizationID != null) {
1615
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1616
+ }
1617
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1619
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1620
+ return {
1621
+ url: (0, common_1.toPathString)(localVarUrlObj),
1622
+ options: localVarRequestOptions,
1623
+ };
1624
+ },
1625
+ /**
1626
+ * Upload file inside sandbox
1627
+ * @summary Upload file
1628
+ * @param {string} sandboxId
1629
+ * @param {string} path
1630
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1631
+ * @param {File} [file]
1632
+ * @param {*} [options] Override http request option.
1633
+ * @deprecated
1634
+ * @throws {RequiredError}
1635
+ */
1636
+ uploadFile: async (sandboxId, path, xDaytonaOrganizationID, file, options = {}) => {
1637
+ // verify required parameter 'sandboxId' is not null or undefined
1638
+ (0, common_1.assertParamExists)('uploadFile', 'sandboxId', sandboxId);
1639
+ // verify required parameter 'path' is not null or undefined
1640
+ (0, common_1.assertParamExists)('uploadFile', 'path', path);
1641
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/upload`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1643
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1644
+ let baseOptions;
1645
+ if (configuration) {
1646
+ baseOptions = configuration.baseOptions;
1647
+ }
1648
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1649
+ const localVarHeaderParameter = {};
1650
+ const localVarQueryParameter = {};
1651
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
1652
+ // authentication bearer required
1653
+ // http bearer authentication required
1654
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1655
+ // authentication oauth2 required
1656
+ if (path !== undefined) {
1657
+ localVarQueryParameter['path'] = path;
1658
+ }
1659
+ if (file !== undefined) {
1660
+ localVarFormParams.append('file', file);
1661
+ }
1662
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
1663
+ if (xDaytonaOrganizationID != null) {
1664
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1665
+ }
1666
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1668
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1669
+ localVarRequestOptions.data = localVarFormParams;
1670
+ return {
1671
+ url: (0, common_1.toPathString)(localVarUrlObj),
1672
+ options: localVarRequestOptions,
1673
+ };
1674
+ },
1675
+ /**
1676
+ * Upload multiple files inside sandbox
1677
+ * @summary Upload multiple files
1678
+ * @param {string} sandboxId
1679
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1680
+ * @param {*} [options] Override http request option.
1681
+ * @throws {RequiredError}
1682
+ */
1683
+ uploadFiles: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1684
+ // verify required parameter 'sandboxId' is not null or undefined
1685
+ (0, common_1.assertParamExists)('uploadFiles', 'sandboxId', sandboxId);
1686
+ const localVarPath = `/toolbox/{sandboxId}/toolbox/files/bulk-upload`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
1687
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1688
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1689
+ let baseOptions;
1690
+ if (configuration) {
1691
+ baseOptions = configuration.baseOptions;
1692
+ }
1693
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1694
+ const localVarHeaderParameter = {};
1695
+ const localVarQueryParameter = {};
1696
+ // authentication bearer required
1697
+ // http bearer authentication required
1698
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1699
+ // authentication oauth2 required
1700
+ if (xDaytonaOrganizationID != null) {
1701
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1702
+ }
1703
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1704
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1705
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1706
+ return {
1707
+ url: (0, common_1.toPathString)(localVarUrlObj),
1708
+ options: localVarRequestOptions,
1709
+ };
1710
+ },
1711
+ };
1712
+ };
1713
+ exports.ToolboxApiAxiosParamCreator = ToolboxApiAxiosParamCreator;
1714
+ /**
1715
+ * ToolboxApi - functional programming interface
1716
+ * @export
1717
+ */
1718
+ const ToolboxApiFp = function (configuration) {
1719
+ const localVarAxiosParamCreator = (0, exports.ToolboxApiAxiosParamCreator)(configuration);
1720
+ return {
1721
+ /**
1722
+ * Create folder inside sandbox
1723
+ * @summary Create folder
1724
+ * @param {string} sandboxId
1725
+ * @param {string} path
1726
+ * @param {string} mode
1727
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1728
+ * @param {*} [options] Override http request option.
1729
+ * @throws {RequiredError}
1730
+ */
1731
+ async createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options) {
1732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options);
1733
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1734
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url;
1735
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1736
+ },
1737
+ /**
1738
+ * Create a new session in the sandbox
1739
+ * @summary Create session
1740
+ * @param {string} sandboxId
1741
+ * @param {CreateSessionRequest} createSessionRequest
1742
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1743
+ * @param {*} [options] Override http request option.
1744
+ * @throws {RequiredError}
1745
+ */
1746
+ async createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options) {
1747
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options);
1748
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1749
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.createSession']?.[localVarOperationServerIndex]?.url;
1750
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1751
+ },
1752
+ /**
1753
+ * Delete file inside sandbox
1754
+ * @summary Delete file
1755
+ * @param {string} sandboxId
1756
+ * @param {string} path
1757
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1758
+ * @param {*} [options] Override http request option.
1759
+ * @throws {RequiredError}
1760
+ */
1761
+ async deleteFile(sandboxId, path, xDaytonaOrganizationID, options) {
1762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(sandboxId, path, xDaytonaOrganizationID, options);
1763
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1764
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url;
1765
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1766
+ },
1767
+ /**
1768
+ * Delete a specific session
1769
+ * @summary Delete session
1770
+ * @param {string} sandboxId
1771
+ * @param {string} sessionId
1772
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ */
1776
+ async deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
1777
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options);
1778
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1779
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.deleteSession']?.[localVarOperationServerIndex]?.url;
1780
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1781
+ },
1782
+ /**
1783
+ * Download file from sandbox
1784
+ * @summary Download file
1785
+ * @param {string} sandboxId
1786
+ * @param {string} path
1787
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ async downloadFile(sandboxId, path, xDaytonaOrganizationID, options) {
1792
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(sandboxId, path, xDaytonaOrganizationID, options);
1793
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1794
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url;
1795
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1796
+ },
1797
+ /**
1798
+ * Execute command synchronously inside sandbox
1799
+ * @summary Execute command
1800
+ * @param {string} sandboxId
1801
+ * @param {ExecuteRequest} executeRequest
1802
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1803
+ * @param {*} [options] Override http request option.
1804
+ * @throws {RequiredError}
1805
+ */
1806
+ async executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options) {
1807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options);
1808
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1809
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
1810
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1811
+ },
1812
+ /**
1813
+ * Execute a command in a specific session
1814
+ * @summary Execute command in session
1815
+ * @param {string} sandboxId
1816
+ * @param {string} sessionId
1817
+ * @param {SessionExecuteRequest} sessionExecuteRequest
1818
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ */
1822
+ async executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options) {
1823
+ const localVarAxiosArgs = await localVarAxiosParamCreator.executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options);
1824
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1825
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.executeSessionCommand']?.[localVarOperationServerIndex]?.url;
1826
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1827
+ },
1828
+ /**
1829
+ * Search for text/pattern inside sandbox files
1830
+ * @summary Search for text/pattern in files
1831
+ * @param {string} sandboxId
1832
+ * @param {string} path
1833
+ * @param {string} pattern
1834
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1835
+ * @param {*} [options] Override http request option.
1836
+ * @throws {RequiredError}
1837
+ */
1838
+ async findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
1839
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options);
1840
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1841
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url;
1842
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1843
+ },
1844
+ /**
1845
+ * Get file info inside sandbox
1846
+ * @summary Get file info
1847
+ * @param {string} sandboxId
1848
+ * @param {string} path
1849
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1850
+ * @param {*} [options] Override http request option.
1851
+ * @throws {RequiredError}
1852
+ */
1853
+ async getFileInfo(sandboxId, path, xDaytonaOrganizationID, options) {
1854
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(sandboxId, path, xDaytonaOrganizationID, options);
1855
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1856
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url;
1857
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1858
+ },
1859
+ /**
1860
+ *
1861
+ * @summary Get sandbox project dir
1862
+ * @param {string} sandboxId
1863
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1864
+ * @param {*} [options] Override http request option.
1865
+ * @throws {RequiredError}
1866
+ */
1867
+ async getProjectDir(sandboxId, xDaytonaOrganizationID, options) {
1868
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(sandboxId, xDaytonaOrganizationID, options);
1869
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1870
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url;
1871
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1872
+ },
1873
+ /**
1874
+ * Get session by ID
1875
+ * @summary Get session
1876
+ * @param {string} sandboxId
1877
+ * @param {string} sessionId
1878
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1879
+ * @param {*} [options] Override http request option.
1880
+ * @throws {RequiredError}
1881
+ */
1882
+ async getSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
1883
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSession(sandboxId, sessionId, xDaytonaOrganizationID, options);
1884
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1885
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getSession']?.[localVarOperationServerIndex]?.url;
1886
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1887
+ },
1888
+ /**
1889
+ * Get session command by ID
1890
+ * @summary Get session command
1891
+ * @param {string} sandboxId
1892
+ * @param {string} sessionId
1893
+ * @param {string} commandId
1894
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1895
+ * @param {*} [options] Override http request option.
1896
+ * @throws {RequiredError}
1897
+ */
1898
+ async getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options) {
1899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options);
1900
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1901
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getSessionCommand']?.[localVarOperationServerIndex]?.url;
1902
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1903
+ },
1904
+ /**
1905
+ * Get logs for a specific command in a session
1906
+ * @summary Get command logs
1907
+ * @param {string} sandboxId
1908
+ * @param {string} sessionId
1909
+ * @param {string} commandId
1910
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1911
+ * @param {boolean} [follow]
1912
+ * @param {*} [options] Override http request option.
1913
+ * @throws {RequiredError}
1914
+ */
1915
+ async getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options) {
1916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options);
1917
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1918
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
1919
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1920
+ },
1921
+ /**
1922
+ * Add files to git commit
1923
+ * @summary Add files
1924
+ * @param {string} sandboxId
1925
+ * @param {GitAddRequest} gitAddRequest
1926
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ */
1930
+ async gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options) {
1931
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options);
1932
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1933
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url;
1934
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1935
+ },
1936
+ /**
1937
+ * Checkout branch or commit in git repository
1938
+ * @summary Checkout branch
1939
+ * @param {string} sandboxId
1940
+ * @param {GitCheckoutRequest} gitCheckoutRequest
1941
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ */
1945
+ async gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options) {
1946
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options);
1947
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1948
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitCheckoutBranch']?.[localVarOperationServerIndex]?.url;
1949
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1950
+ },
1951
+ /**
1952
+ * Clone git repository
1953
+ * @summary Clone repository
1954
+ * @param {string} sandboxId
1955
+ * @param {GitCloneRequest} gitCloneRequest
1956
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1957
+ * @param {*} [options] Override http request option.
1958
+ * @throws {RequiredError}
1959
+ */
1960
+ async gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options) {
1961
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options);
1962
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1963
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url;
1964
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1965
+ },
1966
+ /**
1967
+ * Commit changes to git repository
1968
+ * @summary Commit changes
1969
+ * @param {string} sandboxId
1970
+ * @param {GitCommitRequest} gitCommitRequest
1971
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ async gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options) {
1976
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options);
1977
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1978
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
1979
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1980
+ },
1981
+ /**
1982
+ * Create branch on git repository
1983
+ * @summary Create branch
1984
+ * @param {string} sandboxId
1985
+ * @param {GitBranchRequest} gitBranchRequest
1986
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1987
+ * @param {*} [options] Override http request option.
1988
+ * @throws {RequiredError}
1989
+ */
1990
+ async gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options) {
1991
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options);
1992
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1993
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url;
1994
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1995
+ },
1996
+ /**
1997
+ * Delete branch on git repository
1998
+ * @summary Delete branch
1999
+ * @param {string} sandboxId
2000
+ * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
2001
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2002
+ * @param {*} [options] Override http request option.
2003
+ * @throws {RequiredError}
2004
+ */
2005
+ async gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options) {
2006
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options);
2007
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2008
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitDeleteBranch']?.[localVarOperationServerIndex]?.url;
2009
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2010
+ },
2011
+ /**
2012
+ * Get commit history from git repository
2013
+ * @summary Get commit history
2014
+ * @param {string} sandboxId
2015
+ * @param {string} path
2016
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2017
+ * @param {*} [options] Override http request option.
2018
+ * @throws {RequiredError}
2019
+ */
2020
+ async gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options) {
2021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options);
2022
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2023
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitGetHistory']?.[localVarOperationServerIndex]?.url;
2024
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2025
+ },
2026
+ /**
2027
+ * Get status from git repository
2028
+ * @summary Get git status
2029
+ * @param {string} sandboxId
2030
+ * @param {string} path
2031
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ */
2035
+ async gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options) {
2036
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options);
2037
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2038
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitGetStatus']?.[localVarOperationServerIndex]?.url;
2039
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2040
+ },
2041
+ /**
2042
+ * Get branch list from git repository
2043
+ * @summary Get branch list
2044
+ * @param {string} sandboxId
2045
+ * @param {string} path
2046
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2047
+ * @param {*} [options] Override http request option.
2048
+ * @throws {RequiredError}
2049
+ */
2050
+ async gitListBranches(sandboxId, path, xDaytonaOrganizationID, options) {
2051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitListBranches(sandboxId, path, xDaytonaOrganizationID, options);
2052
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2053
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitListBranches']?.[localVarOperationServerIndex]?.url;
2054
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2055
+ },
2056
+ /**
2057
+ * Pull changes from remote
2058
+ * @summary Pull changes
2059
+ * @param {string} sandboxId
2060
+ * @param {GitRepoRequest} gitRepoRequest
2061
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2062
+ * @param {*} [options] Override http request option.
2063
+ * @throws {RequiredError}
2064
+ */
2065
+ async gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
2066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options);
2067
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2068
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url;
2069
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2070
+ },
2071
+ /**
2072
+ * Push changes to remote
2073
+ * @summary Push changes
2074
+ * @param {string} sandboxId
2075
+ * @param {GitRepoRequest} gitRepoRequest
2076
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2077
+ * @param {*} [options] Override http request option.
2078
+ * @throws {RequiredError}
2079
+ */
2080
+ async gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
2081
+ const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options);
2082
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2083
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url;
2084
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2085
+ },
2086
+ /**
2087
+ *
2088
+ * @summary List files
2089
+ * @param {string} sandboxId
2090
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2091
+ * @param {string} [path]
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ */
2095
+ async listFiles(sandboxId, xDaytonaOrganizationID, path, options) {
2096
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(sandboxId, xDaytonaOrganizationID, path, options);
2097
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2098
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url;
2099
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2100
+ },
2101
+ /**
2102
+ * List all active sessions in the sandbox
2103
+ * @summary List sessions
2104
+ * @param {string} sandboxId
2105
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ async listSessions(sandboxId, xDaytonaOrganizationID, options) {
2110
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(sandboxId, xDaytonaOrganizationID, options);
2111
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2112
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.listSessions']?.[localVarOperationServerIndex]?.url;
2113
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2114
+ },
2115
+ /**
2116
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2117
+ * @summary Get Lsp Completions
2118
+ * @param {string} sandboxId
2119
+ * @param {LspCompletionParams} lspCompletionParams
2120
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ async lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options) {
2125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options);
2126
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2127
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspCompletions']?.[localVarOperationServerIndex]?.url;
2128
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2129
+ },
2130
+ /**
2131
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2132
+ * @summary Call Lsp DidClose
2133
+ * @param {string} sandboxId
2134
+ * @param {LspDocumentRequest} lspDocumentRequest
2135
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2136
+ * @param {*} [options] Override http request option.
2137
+ * @throws {RequiredError}
2138
+ */
2139
+ async lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
2140
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options);
2141
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2142
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspDidClose']?.[localVarOperationServerIndex]?.url;
2143
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2144
+ },
2145
+ /**
2146
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2147
+ * @summary Call Lsp DidOpen
2148
+ * @param {string} sandboxId
2149
+ * @param {LspDocumentRequest} lspDocumentRequest
2150
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ async lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
2155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options);
2156
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2157
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspDidOpen']?.[localVarOperationServerIndex]?.url;
2158
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2159
+ },
2160
+ /**
2161
+ * The document symbol request is sent from the client to the server.
2162
+ * @summary Call Lsp DocumentSymbols
2163
+ * @param {string} sandboxId
2164
+ * @param {string} languageId
2165
+ * @param {string} pathToProject
2166
+ * @param {string} uri
2167
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2168
+ * @param {*} [options] Override http request option.
2169
+ * @throws {RequiredError}
2170
+ */
2171
+ async lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options) {
2172
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options);
2173
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2174
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspDocumentSymbols']?.[localVarOperationServerIndex]?.url;
2175
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2176
+ },
2177
+ /**
2178
+ * Start Lsp server process inside sandbox project
2179
+ * @summary Start Lsp server
2180
+ * @param {string} sandboxId
2181
+ * @param {LspServerRequest} lspServerRequest
2182
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2183
+ * @param {*} [options] Override http request option.
2184
+ * @throws {RequiredError}
2185
+ */
2186
+ async lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
2187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options);
2188
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2189
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspStart']?.[localVarOperationServerIndex]?.url;
2190
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2191
+ },
2192
+ /**
2193
+ * Stop Lsp server process inside sandbox project
2194
+ * @summary Stop Lsp server
2195
+ * @param {string} sandboxId
2196
+ * @param {LspServerRequest} lspServerRequest
2197
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ async lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
2202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options);
2203
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2204
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspStop']?.[localVarOperationServerIndex]?.url;
2205
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2206
+ },
2207
+ /**
2208
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2209
+ * @summary Call Lsp WorkspaceSymbols
2210
+ * @param {string} sandboxId
2211
+ * @param {string} languageId
2212
+ * @param {string} pathToProject
2213
+ * @param {string} query
2214
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2215
+ * @param {*} [options] Override http request option.
2216
+ * @throws {RequiredError}
2217
+ */
2218
+ async lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options) {
2219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options);
2220
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2221
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.lspWorkspaceSymbols']?.[localVarOperationServerIndex]?.url;
2222
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2223
+ },
2224
+ /**
2225
+ * Move file inside sandbox
2226
+ * @summary Move file
2227
+ * @param {string} sandboxId
2228
+ * @param {string} source
2229
+ * @param {string} destination
2230
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2231
+ * @param {*} [options] Override http request option.
2232
+ * @throws {RequiredError}
2233
+ */
2234
+ async moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
2235
+ const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options);
2236
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2237
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url;
2238
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2239
+ },
2240
+ /**
2241
+ * Replace text/pattern in multiple files inside sandbox
2242
+ * @summary Replace in files
2243
+ * @param {string} sandboxId
2244
+ * @param {ReplaceRequest} replaceRequest
2245
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2246
+ * @param {*} [options] Override http request option.
2247
+ * @throws {RequiredError}
2248
+ */
2249
+ async replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
2250
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options);
2251
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2252
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
2253
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2254
+ },
2255
+ /**
2256
+ * Search for files inside sandbox
2257
+ * @summary Search files
2258
+ * @param {string} sandboxId
2259
+ * @param {string} path
2260
+ * @param {string} pattern
2261
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2262
+ * @param {*} [options] Override http request option.
2263
+ * @throws {RequiredError}
2264
+ */
2265
+ async searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
2266
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options);
2267
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2268
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url;
2269
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2270
+ },
2271
+ /**
2272
+ * Set file owner/group/permissions inside sandbox
2273
+ * @summary Set file permissions
2274
+ * @param {string} sandboxId
2275
+ * @param {string} path
2276
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2277
+ * @param {string} [owner]
2278
+ * @param {string} [group]
2279
+ * @param {string} [mode]
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ */
2283
+ async setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
2284
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options);
2285
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2286
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url;
2287
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2288
+ },
2289
+ /**
2290
+ * Upload file inside sandbox
2291
+ * @summary Upload file
2292
+ * @param {string} sandboxId
2293
+ * @param {string} path
2294
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2295
+ * @param {File} [file]
2296
+ * @param {*} [options] Override http request option.
2297
+ * @deprecated
2298
+ * @throws {RequiredError}
2299
+ */
2300
+ async uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options) {
2301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options);
2302
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2303
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.uploadFile']?.[localVarOperationServerIndex]?.url;
2304
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2305
+ },
2306
+ /**
2307
+ * Upload multiple files inside sandbox
2308
+ * @summary Upload multiple files
2309
+ * @param {string} sandboxId
2310
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2311
+ * @param {*} [options] Override http request option.
2312
+ * @throws {RequiredError}
2313
+ */
2314
+ async uploadFiles(sandboxId, xDaytonaOrganizationID, options) {
2315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFiles(sandboxId, xDaytonaOrganizationID, options);
2316
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2317
+ const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.uploadFiles']?.[localVarOperationServerIndex]?.url;
2318
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2319
+ },
2320
+ };
2321
+ };
2322
+ exports.ToolboxApiFp = ToolboxApiFp;
2323
+ /**
2324
+ * ToolboxApi - factory interface
2325
+ * @export
2326
+ */
2327
+ const ToolboxApiFactory = function (configuration, basePath, axios) {
2328
+ const localVarFp = (0, exports.ToolboxApiFp)(configuration);
2329
+ return {
2330
+ /**
2331
+ * Create folder inside sandbox
2332
+ * @summary Create folder
2333
+ * @param {string} sandboxId
2334
+ * @param {string} path
2335
+ * @param {string} mode
2336
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2337
+ * @param {*} [options] Override http request option.
2338
+ * @throws {RequiredError}
2339
+ */
2340
+ createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options) {
2341
+ return localVarFp
2342
+ .createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options)
2343
+ .then((request) => request(axios, basePath));
2344
+ },
2345
+ /**
2346
+ * Create a new session in the sandbox
2347
+ * @summary Create session
2348
+ * @param {string} sandboxId
2349
+ * @param {CreateSessionRequest} createSessionRequest
2350
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2351
+ * @param {*} [options] Override http request option.
2352
+ * @throws {RequiredError}
2353
+ */
2354
+ createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options) {
2355
+ return localVarFp
2356
+ .createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options)
2357
+ .then((request) => request(axios, basePath));
2358
+ },
2359
+ /**
2360
+ * Delete file inside sandbox
2361
+ * @summary Delete file
2362
+ * @param {string} sandboxId
2363
+ * @param {string} path
2364
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2365
+ * @param {*} [options] Override http request option.
2366
+ * @throws {RequiredError}
2367
+ */
2368
+ deleteFile(sandboxId, path, xDaytonaOrganizationID, options) {
2369
+ return localVarFp
2370
+ .deleteFile(sandboxId, path, xDaytonaOrganizationID, options)
2371
+ .then((request) => request(axios, basePath));
2372
+ },
2373
+ /**
2374
+ * Delete a specific session
2375
+ * @summary Delete session
2376
+ * @param {string} sandboxId
2377
+ * @param {string} sessionId
2378
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2379
+ * @param {*} [options] Override http request option.
2380
+ * @throws {RequiredError}
2381
+ */
2382
+ deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
2383
+ return localVarFp
2384
+ .deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options)
2385
+ .then((request) => request(axios, basePath));
2386
+ },
2387
+ /**
2388
+ * Download file from sandbox
2389
+ * @summary Download file
2390
+ * @param {string} sandboxId
2391
+ * @param {string} path
2392
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2393
+ * @param {*} [options] Override http request option.
2394
+ * @throws {RequiredError}
2395
+ */
2396
+ downloadFile(sandboxId, path, xDaytonaOrganizationID, options) {
2397
+ return localVarFp
2398
+ .downloadFile(sandboxId, path, xDaytonaOrganizationID, options)
2399
+ .then((request) => request(axios, basePath));
2400
+ },
2401
+ /**
2402
+ * Execute command synchronously inside sandbox
2403
+ * @summary Execute command
2404
+ * @param {string} sandboxId
2405
+ * @param {ExecuteRequest} executeRequest
2406
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ */
2410
+ executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options) {
2411
+ return localVarFp
2412
+ .executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options)
2413
+ .then((request) => request(axios, basePath));
2414
+ },
2415
+ /**
2416
+ * Execute a command in a specific session
2417
+ * @summary Execute command in session
2418
+ * @param {string} sandboxId
2419
+ * @param {string} sessionId
2420
+ * @param {SessionExecuteRequest} sessionExecuteRequest
2421
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2422
+ * @param {*} [options] Override http request option.
2423
+ * @throws {RequiredError}
2424
+ */
2425
+ executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options) {
2426
+ return localVarFp
2427
+ .executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options)
2428
+ .then((request) => request(axios, basePath));
2429
+ },
2430
+ /**
2431
+ * Search for text/pattern inside sandbox files
2432
+ * @summary Search for text/pattern in files
2433
+ * @param {string} sandboxId
2434
+ * @param {string} path
2435
+ * @param {string} pattern
2436
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2437
+ * @param {*} [options] Override http request option.
2438
+ * @throws {RequiredError}
2439
+ */
2440
+ findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
2441
+ return localVarFp
2442
+ .findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
2443
+ .then((request) => request(axios, basePath));
2444
+ },
2445
+ /**
2446
+ * Get file info inside sandbox
2447
+ * @summary Get file info
2448
+ * @param {string} sandboxId
2449
+ * @param {string} path
2450
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ */
2454
+ getFileInfo(sandboxId, path, xDaytonaOrganizationID, options) {
2455
+ return localVarFp
2456
+ .getFileInfo(sandboxId, path, xDaytonaOrganizationID, options)
2457
+ .then((request) => request(axios, basePath));
2458
+ },
2459
+ /**
2460
+ *
2461
+ * @summary Get sandbox project dir
2462
+ * @param {string} sandboxId
2463
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2464
+ * @param {*} [options] Override http request option.
2465
+ * @throws {RequiredError}
2466
+ */
2467
+ getProjectDir(sandboxId, xDaytonaOrganizationID, options) {
2468
+ return localVarFp
2469
+ .getProjectDir(sandboxId, xDaytonaOrganizationID, options)
2470
+ .then((request) => request(axios, basePath));
2471
+ },
2472
+ /**
2473
+ * Get session by ID
2474
+ * @summary Get session
2475
+ * @param {string} sandboxId
2476
+ * @param {string} sessionId
2477
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2478
+ * @param {*} [options] Override http request option.
2479
+ * @throws {RequiredError}
2480
+ */
2481
+ getSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
2482
+ return localVarFp
2483
+ .getSession(sandboxId, sessionId, xDaytonaOrganizationID, options)
2484
+ .then((request) => request(axios, basePath));
2485
+ },
2486
+ /**
2487
+ * Get session command by ID
2488
+ * @summary Get session command
2489
+ * @param {string} sandboxId
2490
+ * @param {string} sessionId
2491
+ * @param {string} commandId
2492
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2493
+ * @param {*} [options] Override http request option.
2494
+ * @throws {RequiredError}
2495
+ */
2496
+ getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options) {
2497
+ return localVarFp
2498
+ .getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options)
2499
+ .then((request) => request(axios, basePath));
2500
+ },
2501
+ /**
2502
+ * Get logs for a specific command in a session
2503
+ * @summary Get command logs
2504
+ * @param {string} sandboxId
2505
+ * @param {string} sessionId
2506
+ * @param {string} commandId
2507
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2508
+ * @param {boolean} [follow]
2509
+ * @param {*} [options] Override http request option.
2510
+ * @throws {RequiredError}
2511
+ */
2512
+ getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options) {
2513
+ return localVarFp
2514
+ .getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
2515
+ .then((request) => request(axios, basePath));
2516
+ },
2517
+ /**
2518
+ * Add files to git commit
2519
+ * @summary Add files
2520
+ * @param {string} sandboxId
2521
+ * @param {GitAddRequest} gitAddRequest
2522
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2523
+ * @param {*} [options] Override http request option.
2524
+ * @throws {RequiredError}
2525
+ */
2526
+ gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options) {
2527
+ return localVarFp
2528
+ .gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options)
2529
+ .then((request) => request(axios, basePath));
2530
+ },
2531
+ /**
2532
+ * Checkout branch or commit in git repository
2533
+ * @summary Checkout branch
2534
+ * @param {string} sandboxId
2535
+ * @param {GitCheckoutRequest} gitCheckoutRequest
2536
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2537
+ * @param {*} [options] Override http request option.
2538
+ * @throws {RequiredError}
2539
+ */
2540
+ gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options) {
2541
+ return localVarFp
2542
+ .gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options)
2543
+ .then((request) => request(axios, basePath));
2544
+ },
2545
+ /**
2546
+ * Clone git repository
2547
+ * @summary Clone repository
2548
+ * @param {string} sandboxId
2549
+ * @param {GitCloneRequest} gitCloneRequest
2550
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2551
+ * @param {*} [options] Override http request option.
2552
+ * @throws {RequiredError}
2553
+ */
2554
+ gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options) {
2555
+ return localVarFp
2556
+ .gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options)
2557
+ .then((request) => request(axios, basePath));
2558
+ },
2559
+ /**
2560
+ * Commit changes to git repository
2561
+ * @summary Commit changes
2562
+ * @param {string} sandboxId
2563
+ * @param {GitCommitRequest} gitCommitRequest
2564
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2565
+ * @param {*} [options] Override http request option.
2566
+ * @throws {RequiredError}
2567
+ */
2568
+ gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options) {
2569
+ return localVarFp
2570
+ .gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options)
2571
+ .then((request) => request(axios, basePath));
2572
+ },
2573
+ /**
2574
+ * Create branch on git repository
2575
+ * @summary Create branch
2576
+ * @param {string} sandboxId
2577
+ * @param {GitBranchRequest} gitBranchRequest
2578
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2579
+ * @param {*} [options] Override http request option.
2580
+ * @throws {RequiredError}
2581
+ */
2582
+ gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options) {
2583
+ return localVarFp
2584
+ .gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options)
2585
+ .then((request) => request(axios, basePath));
2586
+ },
2587
+ /**
2588
+ * Delete branch on git repository
2589
+ * @summary Delete branch
2590
+ * @param {string} sandboxId
2591
+ * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
2592
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2593
+ * @param {*} [options] Override http request option.
2594
+ * @throws {RequiredError}
2595
+ */
2596
+ gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options) {
2597
+ return localVarFp
2598
+ .gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options)
2599
+ .then((request) => request(axios, basePath));
2600
+ },
2601
+ /**
2602
+ * Get commit history from git repository
2603
+ * @summary Get commit history
2604
+ * @param {string} sandboxId
2605
+ * @param {string} path
2606
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2607
+ * @param {*} [options] Override http request option.
2608
+ * @throws {RequiredError}
2609
+ */
2610
+ gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options) {
2611
+ return localVarFp
2612
+ .gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options)
2613
+ .then((request) => request(axios, basePath));
2614
+ },
2615
+ /**
2616
+ * Get status from git repository
2617
+ * @summary Get git status
2618
+ * @param {string} sandboxId
2619
+ * @param {string} path
2620
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2621
+ * @param {*} [options] Override http request option.
2622
+ * @throws {RequiredError}
2623
+ */
2624
+ gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options) {
2625
+ return localVarFp
2626
+ .gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options)
2627
+ .then((request) => request(axios, basePath));
2628
+ },
2629
+ /**
2630
+ * Get branch list from git repository
2631
+ * @summary Get branch list
2632
+ * @param {string} sandboxId
2633
+ * @param {string} path
2634
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2635
+ * @param {*} [options] Override http request option.
2636
+ * @throws {RequiredError}
2637
+ */
2638
+ gitListBranches(sandboxId, path, xDaytonaOrganizationID, options) {
2639
+ return localVarFp
2640
+ .gitListBranches(sandboxId, path, xDaytonaOrganizationID, options)
2641
+ .then((request) => request(axios, basePath));
2642
+ },
2643
+ /**
2644
+ * Pull changes from remote
2645
+ * @summary Pull changes
2646
+ * @param {string} sandboxId
2647
+ * @param {GitRepoRequest} gitRepoRequest
2648
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2649
+ * @param {*} [options] Override http request option.
2650
+ * @throws {RequiredError}
2651
+ */
2652
+ gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
2653
+ return localVarFp
2654
+ .gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options)
2655
+ .then((request) => request(axios, basePath));
2656
+ },
2657
+ /**
2658
+ * Push changes to remote
2659
+ * @summary Push changes
2660
+ * @param {string} sandboxId
2661
+ * @param {GitRepoRequest} gitRepoRequest
2662
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2663
+ * @param {*} [options] Override http request option.
2664
+ * @throws {RequiredError}
2665
+ */
2666
+ gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
2667
+ return localVarFp
2668
+ .gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options)
2669
+ .then((request) => request(axios, basePath));
2670
+ },
2671
+ /**
2672
+ *
2673
+ * @summary List files
2674
+ * @param {string} sandboxId
2675
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2676
+ * @param {string} [path]
2677
+ * @param {*} [options] Override http request option.
2678
+ * @throws {RequiredError}
2679
+ */
2680
+ listFiles(sandboxId, xDaytonaOrganizationID, path, options) {
2681
+ return localVarFp
2682
+ .listFiles(sandboxId, xDaytonaOrganizationID, path, options)
2683
+ .then((request) => request(axios, basePath));
2684
+ },
2685
+ /**
2686
+ * List all active sessions in the sandbox
2687
+ * @summary List sessions
2688
+ * @param {string} sandboxId
2689
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2690
+ * @param {*} [options] Override http request option.
2691
+ * @throws {RequiredError}
2692
+ */
2693
+ listSessions(sandboxId, xDaytonaOrganizationID, options) {
2694
+ return localVarFp
2695
+ .listSessions(sandboxId, xDaytonaOrganizationID, options)
2696
+ .then((request) => request(axios, basePath));
2697
+ },
2698
+ /**
2699
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
2700
+ * @summary Get Lsp Completions
2701
+ * @param {string} sandboxId
2702
+ * @param {LspCompletionParams} lspCompletionParams
2703
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2704
+ * @param {*} [options] Override http request option.
2705
+ * @throws {RequiredError}
2706
+ */
2707
+ lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options) {
2708
+ return localVarFp
2709
+ .lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options)
2710
+ .then((request) => request(axios, basePath));
2711
+ },
2712
+ /**
2713
+ * The document close notification is sent from the client to the server when the document got closed in the client.
2714
+ * @summary Call Lsp DidClose
2715
+ * @param {string} sandboxId
2716
+ * @param {LspDocumentRequest} lspDocumentRequest
2717
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2718
+ * @param {*} [options] Override http request option.
2719
+ * @throws {RequiredError}
2720
+ */
2721
+ lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
2722
+ return localVarFp
2723
+ .lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options)
2724
+ .then((request) => request(axios, basePath));
2725
+ },
2726
+ /**
2727
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
2728
+ * @summary Call Lsp DidOpen
2729
+ * @param {string} sandboxId
2730
+ * @param {LspDocumentRequest} lspDocumentRequest
2731
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2732
+ * @param {*} [options] Override http request option.
2733
+ * @throws {RequiredError}
2734
+ */
2735
+ lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
2736
+ return localVarFp
2737
+ .lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options)
2738
+ .then((request) => request(axios, basePath));
2739
+ },
2740
+ /**
2741
+ * The document symbol request is sent from the client to the server.
2742
+ * @summary Call Lsp DocumentSymbols
2743
+ * @param {string} sandboxId
2744
+ * @param {string} languageId
2745
+ * @param {string} pathToProject
2746
+ * @param {string} uri
2747
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2748
+ * @param {*} [options] Override http request option.
2749
+ * @throws {RequiredError}
2750
+ */
2751
+ lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options) {
2752
+ return localVarFp
2753
+ .lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
2754
+ .then((request) => request(axios, basePath));
2755
+ },
2756
+ /**
2757
+ * Start Lsp server process inside sandbox project
2758
+ * @summary Start Lsp server
2759
+ * @param {string} sandboxId
2760
+ * @param {LspServerRequest} lspServerRequest
2761
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ */
2765
+ lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
2766
+ return localVarFp
2767
+ .lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
2768
+ .then((request) => request(axios, basePath));
2769
+ },
2770
+ /**
2771
+ * Stop Lsp server process inside sandbox project
2772
+ * @summary Stop Lsp server
2773
+ * @param {string} sandboxId
2774
+ * @param {LspServerRequest} lspServerRequest
2775
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2776
+ * @param {*} [options] Override http request option.
2777
+ * @throws {RequiredError}
2778
+ */
2779
+ lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
2780
+ return localVarFp
2781
+ .lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
2782
+ .then((request) => request(axios, basePath));
2783
+ },
2784
+ /**
2785
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
2786
+ * @summary Call Lsp WorkspaceSymbols
2787
+ * @param {string} sandboxId
2788
+ * @param {string} languageId
2789
+ * @param {string} pathToProject
2790
+ * @param {string} query
2791
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2792
+ * @param {*} [options] Override http request option.
2793
+ * @throws {RequiredError}
2794
+ */
2795
+ lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options) {
2796
+ return localVarFp
2797
+ .lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
2798
+ .then((request) => request(axios, basePath));
2799
+ },
2800
+ /**
2801
+ * Move file inside sandbox
2802
+ * @summary Move file
2803
+ * @param {string} sandboxId
2804
+ * @param {string} source
2805
+ * @param {string} destination
2806
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2807
+ * @param {*} [options] Override http request option.
2808
+ * @throws {RequiredError}
2809
+ */
2810
+ moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
2811
+ return localVarFp
2812
+ .moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options)
2813
+ .then((request) => request(axios, basePath));
2814
+ },
2815
+ /**
2816
+ * Replace text/pattern in multiple files inside sandbox
2817
+ * @summary Replace in files
2818
+ * @param {string} sandboxId
2819
+ * @param {ReplaceRequest} replaceRequest
2820
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2821
+ * @param {*} [options] Override http request option.
2822
+ * @throws {RequiredError}
2823
+ */
2824
+ replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
2825
+ return localVarFp
2826
+ .replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options)
2827
+ .then((request) => request(axios, basePath));
2828
+ },
2829
+ /**
2830
+ * Search for files inside sandbox
2831
+ * @summary Search files
2832
+ * @param {string} sandboxId
2833
+ * @param {string} path
2834
+ * @param {string} pattern
2835
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ */
2839
+ searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
2840
+ return localVarFp
2841
+ .searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
2842
+ .then((request) => request(axios, basePath));
2843
+ },
2844
+ /**
2845
+ * Set file owner/group/permissions inside sandbox
2846
+ * @summary Set file permissions
2847
+ * @param {string} sandboxId
2848
+ * @param {string} path
2849
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2850
+ * @param {string} [owner]
2851
+ * @param {string} [group]
2852
+ * @param {string} [mode]
2853
+ * @param {*} [options] Override http request option.
2854
+ * @throws {RequiredError}
2855
+ */
2856
+ setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
2857
+ return localVarFp
2858
+ .setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options)
2859
+ .then((request) => request(axios, basePath));
2860
+ },
2861
+ /**
2862
+ * Upload file inside sandbox
2863
+ * @summary Upload file
2864
+ * @param {string} sandboxId
2865
+ * @param {string} path
2866
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2867
+ * @param {File} [file]
2868
+ * @param {*} [options] Override http request option.
2869
+ * @deprecated
2870
+ * @throws {RequiredError}
2871
+ */
2872
+ uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options) {
2873
+ return localVarFp
2874
+ .uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options)
2875
+ .then((request) => request(axios, basePath));
2876
+ },
2877
+ /**
2878
+ * Upload multiple files inside sandbox
2879
+ * @summary Upload multiple files
2880
+ * @param {string} sandboxId
2881
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2882
+ * @param {*} [options] Override http request option.
2883
+ * @throws {RequiredError}
2884
+ */
2885
+ uploadFiles(sandboxId, xDaytonaOrganizationID, options) {
2886
+ return localVarFp
2887
+ .uploadFiles(sandboxId, xDaytonaOrganizationID, options)
2888
+ .then((request) => request(axios, basePath));
2889
+ },
2890
+ };
2891
+ };
2892
+ exports.ToolboxApiFactory = ToolboxApiFactory;
2893
+ /**
2894
+ * ToolboxApi - object-oriented interface
2895
+ * @export
2896
+ * @class ToolboxApi
2897
+ * @extends {BaseAPI}
2898
+ */
2899
+ class ToolboxApi extends base_1.BaseAPI {
2900
+ /**
2901
+ * Create folder inside sandbox
2902
+ * @summary Create folder
2903
+ * @param {string} sandboxId
2904
+ * @param {string} path
2905
+ * @param {string} mode
2906
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2907
+ * @param {*} [options] Override http request option.
2908
+ * @throws {RequiredError}
2909
+ * @memberof ToolboxApi
2910
+ */
2911
+ createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options) {
2912
+ return (0, exports.ToolboxApiFp)(this.configuration)
2913
+ .createFolder(sandboxId, path, mode, xDaytonaOrganizationID, options)
2914
+ .then((request) => request(this.axios, this.basePath));
2915
+ }
2916
+ /**
2917
+ * Create a new session in the sandbox
2918
+ * @summary Create session
2919
+ * @param {string} sandboxId
2920
+ * @param {CreateSessionRequest} createSessionRequest
2921
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2922
+ * @param {*} [options] Override http request option.
2923
+ * @throws {RequiredError}
2924
+ * @memberof ToolboxApi
2925
+ */
2926
+ createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options) {
2927
+ return (0, exports.ToolboxApiFp)(this.configuration)
2928
+ .createSession(sandboxId, createSessionRequest, xDaytonaOrganizationID, options)
2929
+ .then((request) => request(this.axios, this.basePath));
2930
+ }
2931
+ /**
2932
+ * Delete file inside sandbox
2933
+ * @summary Delete file
2934
+ * @param {string} sandboxId
2935
+ * @param {string} path
2936
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2937
+ * @param {*} [options] Override http request option.
2938
+ * @throws {RequiredError}
2939
+ * @memberof ToolboxApi
2940
+ */
2941
+ deleteFile(sandboxId, path, xDaytonaOrganizationID, options) {
2942
+ return (0, exports.ToolboxApiFp)(this.configuration)
2943
+ .deleteFile(sandboxId, path, xDaytonaOrganizationID, options)
2944
+ .then((request) => request(this.axios, this.basePath));
2945
+ }
2946
+ /**
2947
+ * Delete a specific session
2948
+ * @summary Delete session
2949
+ * @param {string} sandboxId
2950
+ * @param {string} sessionId
2951
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2952
+ * @param {*} [options] Override http request option.
2953
+ * @throws {RequiredError}
2954
+ * @memberof ToolboxApi
2955
+ */
2956
+ deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
2957
+ return (0, exports.ToolboxApiFp)(this.configuration)
2958
+ .deleteSession(sandboxId, sessionId, xDaytonaOrganizationID, options)
2959
+ .then((request) => request(this.axios, this.basePath));
2960
+ }
2961
+ /**
2962
+ * Download file from sandbox
2963
+ * @summary Download file
2964
+ * @param {string} sandboxId
2965
+ * @param {string} path
2966
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2967
+ * @param {*} [options] Override http request option.
2968
+ * @throws {RequiredError}
2969
+ * @memberof ToolboxApi
2970
+ */
2971
+ downloadFile(sandboxId, path, xDaytonaOrganizationID, options) {
2972
+ return (0, exports.ToolboxApiFp)(this.configuration)
2973
+ .downloadFile(sandboxId, path, xDaytonaOrganizationID, options)
2974
+ .then((request) => request(this.axios, this.basePath));
2975
+ }
2976
+ /**
2977
+ * Execute command synchronously inside sandbox
2978
+ * @summary Execute command
2979
+ * @param {string} sandboxId
2980
+ * @param {ExecuteRequest} executeRequest
2981
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2982
+ * @param {*} [options] Override http request option.
2983
+ * @throws {RequiredError}
2984
+ * @memberof ToolboxApi
2985
+ */
2986
+ executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options) {
2987
+ return (0, exports.ToolboxApiFp)(this.configuration)
2988
+ .executeCommand(sandboxId, executeRequest, xDaytonaOrganizationID, options)
2989
+ .then((request) => request(this.axios, this.basePath));
2990
+ }
2991
+ /**
2992
+ * Execute a command in a specific session
2993
+ * @summary Execute command in session
2994
+ * @param {string} sandboxId
2995
+ * @param {string} sessionId
2996
+ * @param {SessionExecuteRequest} sessionExecuteRequest
2997
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2998
+ * @param {*} [options] Override http request option.
2999
+ * @throws {RequiredError}
3000
+ * @memberof ToolboxApi
3001
+ */
3002
+ executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options) {
3003
+ return (0, exports.ToolboxApiFp)(this.configuration)
3004
+ .executeSessionCommand(sandboxId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options)
3005
+ .then((request) => request(this.axios, this.basePath));
3006
+ }
3007
+ /**
3008
+ * Search for text/pattern inside sandbox files
3009
+ * @summary Search for text/pattern in files
3010
+ * @param {string} sandboxId
3011
+ * @param {string} path
3012
+ * @param {string} pattern
3013
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3014
+ * @param {*} [options] Override http request option.
3015
+ * @throws {RequiredError}
3016
+ * @memberof ToolboxApi
3017
+ */
3018
+ findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
3019
+ return (0, exports.ToolboxApiFp)(this.configuration)
3020
+ .findInFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
3021
+ .then((request) => request(this.axios, this.basePath));
3022
+ }
3023
+ /**
3024
+ * Get file info inside sandbox
3025
+ * @summary Get file info
3026
+ * @param {string} sandboxId
3027
+ * @param {string} path
3028
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3029
+ * @param {*} [options] Override http request option.
3030
+ * @throws {RequiredError}
3031
+ * @memberof ToolboxApi
3032
+ */
3033
+ getFileInfo(sandboxId, path, xDaytonaOrganizationID, options) {
3034
+ return (0, exports.ToolboxApiFp)(this.configuration)
3035
+ .getFileInfo(sandboxId, path, xDaytonaOrganizationID, options)
3036
+ .then((request) => request(this.axios, this.basePath));
3037
+ }
3038
+ /**
3039
+ *
3040
+ * @summary Get sandbox project dir
3041
+ * @param {string} sandboxId
3042
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3043
+ * @param {*} [options] Override http request option.
3044
+ * @throws {RequiredError}
3045
+ * @memberof ToolboxApi
3046
+ */
3047
+ getProjectDir(sandboxId, xDaytonaOrganizationID, options) {
3048
+ return (0, exports.ToolboxApiFp)(this.configuration)
3049
+ .getProjectDir(sandboxId, xDaytonaOrganizationID, options)
3050
+ .then((request) => request(this.axios, this.basePath));
3051
+ }
3052
+ /**
3053
+ * Get session by ID
3054
+ * @summary Get session
3055
+ * @param {string} sandboxId
3056
+ * @param {string} sessionId
3057
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3058
+ * @param {*} [options] Override http request option.
3059
+ * @throws {RequiredError}
3060
+ * @memberof ToolboxApi
3061
+ */
3062
+ getSession(sandboxId, sessionId, xDaytonaOrganizationID, options) {
3063
+ return (0, exports.ToolboxApiFp)(this.configuration)
3064
+ .getSession(sandboxId, sessionId, xDaytonaOrganizationID, options)
3065
+ .then((request) => request(this.axios, this.basePath));
3066
+ }
3067
+ /**
3068
+ * Get session command by ID
3069
+ * @summary Get session command
3070
+ * @param {string} sandboxId
3071
+ * @param {string} sessionId
3072
+ * @param {string} commandId
3073
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3074
+ * @param {*} [options] Override http request option.
3075
+ * @throws {RequiredError}
3076
+ * @memberof ToolboxApi
3077
+ */
3078
+ getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options) {
3079
+ return (0, exports.ToolboxApiFp)(this.configuration)
3080
+ .getSessionCommand(sandboxId, sessionId, commandId, xDaytonaOrganizationID, options)
3081
+ .then((request) => request(this.axios, this.basePath));
3082
+ }
3083
+ /**
3084
+ * Get logs for a specific command in a session
3085
+ * @summary Get command logs
3086
+ * @param {string} sandboxId
3087
+ * @param {string} sessionId
3088
+ * @param {string} commandId
3089
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3090
+ * @param {boolean} [follow]
3091
+ * @param {*} [options] Override http request option.
3092
+ * @throws {RequiredError}
3093
+ * @memberof ToolboxApi
3094
+ */
3095
+ getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options) {
3096
+ return (0, exports.ToolboxApiFp)(this.configuration)
3097
+ .getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
3098
+ .then((request) => request(this.axios, this.basePath));
3099
+ }
3100
+ /**
3101
+ * Add files to git commit
3102
+ * @summary Add files
3103
+ * @param {string} sandboxId
3104
+ * @param {GitAddRequest} gitAddRequest
3105
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3106
+ * @param {*} [options] Override http request option.
3107
+ * @throws {RequiredError}
3108
+ * @memberof ToolboxApi
3109
+ */
3110
+ gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options) {
3111
+ return (0, exports.ToolboxApiFp)(this.configuration)
3112
+ .gitAddFiles(sandboxId, gitAddRequest, xDaytonaOrganizationID, options)
3113
+ .then((request) => request(this.axios, this.basePath));
3114
+ }
3115
+ /**
3116
+ * Checkout branch or commit in git repository
3117
+ * @summary Checkout branch
3118
+ * @param {string} sandboxId
3119
+ * @param {GitCheckoutRequest} gitCheckoutRequest
3120
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3121
+ * @param {*} [options] Override http request option.
3122
+ * @throws {RequiredError}
3123
+ * @memberof ToolboxApi
3124
+ */
3125
+ gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options) {
3126
+ return (0, exports.ToolboxApiFp)(this.configuration)
3127
+ .gitCheckoutBranch(sandboxId, gitCheckoutRequest, xDaytonaOrganizationID, options)
3128
+ .then((request) => request(this.axios, this.basePath));
3129
+ }
3130
+ /**
3131
+ * Clone git repository
3132
+ * @summary Clone repository
3133
+ * @param {string} sandboxId
3134
+ * @param {GitCloneRequest} gitCloneRequest
3135
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3136
+ * @param {*} [options] Override http request option.
3137
+ * @throws {RequiredError}
3138
+ * @memberof ToolboxApi
3139
+ */
3140
+ gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options) {
3141
+ return (0, exports.ToolboxApiFp)(this.configuration)
3142
+ .gitCloneRepository(sandboxId, gitCloneRequest, xDaytonaOrganizationID, options)
3143
+ .then((request) => request(this.axios, this.basePath));
3144
+ }
3145
+ /**
3146
+ * Commit changes to git repository
3147
+ * @summary Commit changes
3148
+ * @param {string} sandboxId
3149
+ * @param {GitCommitRequest} gitCommitRequest
3150
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3151
+ * @param {*} [options] Override http request option.
3152
+ * @throws {RequiredError}
3153
+ * @memberof ToolboxApi
3154
+ */
3155
+ gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options) {
3156
+ return (0, exports.ToolboxApiFp)(this.configuration)
3157
+ .gitCommitChanges(sandboxId, gitCommitRequest, xDaytonaOrganizationID, options)
3158
+ .then((request) => request(this.axios, this.basePath));
3159
+ }
3160
+ /**
3161
+ * Create branch on git repository
3162
+ * @summary Create branch
3163
+ * @param {string} sandboxId
3164
+ * @param {GitBranchRequest} gitBranchRequest
3165
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3166
+ * @param {*} [options] Override http request option.
3167
+ * @throws {RequiredError}
3168
+ * @memberof ToolboxApi
3169
+ */
3170
+ gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options) {
3171
+ return (0, exports.ToolboxApiFp)(this.configuration)
3172
+ .gitCreateBranch(sandboxId, gitBranchRequest, xDaytonaOrganizationID, options)
3173
+ .then((request) => request(this.axios, this.basePath));
3174
+ }
3175
+ /**
3176
+ * Delete branch on git repository
3177
+ * @summary Delete branch
3178
+ * @param {string} sandboxId
3179
+ * @param {GitDeleteBranchRequest} gitDeleteBranchRequest
3180
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3181
+ * @param {*} [options] Override http request option.
3182
+ * @throws {RequiredError}
3183
+ * @memberof ToolboxApi
3184
+ */
3185
+ gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options) {
3186
+ return (0, exports.ToolboxApiFp)(this.configuration)
3187
+ .gitDeleteBranch(sandboxId, gitDeleteBranchRequest, xDaytonaOrganizationID, options)
3188
+ .then((request) => request(this.axios, this.basePath));
3189
+ }
3190
+ /**
3191
+ * Get commit history from git repository
3192
+ * @summary Get commit history
3193
+ * @param {string} sandboxId
3194
+ * @param {string} path
3195
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3196
+ * @param {*} [options] Override http request option.
3197
+ * @throws {RequiredError}
3198
+ * @memberof ToolboxApi
3199
+ */
3200
+ gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options) {
3201
+ return (0, exports.ToolboxApiFp)(this.configuration)
3202
+ .gitGetHistory(sandboxId, path, xDaytonaOrganizationID, options)
3203
+ .then((request) => request(this.axios, this.basePath));
3204
+ }
3205
+ /**
3206
+ * Get status from git repository
3207
+ * @summary Get git status
3208
+ * @param {string} sandboxId
3209
+ * @param {string} path
3210
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3211
+ * @param {*} [options] Override http request option.
3212
+ * @throws {RequiredError}
3213
+ * @memberof ToolboxApi
3214
+ */
3215
+ gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options) {
3216
+ return (0, exports.ToolboxApiFp)(this.configuration)
3217
+ .gitGetStatus(sandboxId, path, xDaytonaOrganizationID, options)
3218
+ .then((request) => request(this.axios, this.basePath));
3219
+ }
3220
+ /**
3221
+ * Get branch list from git repository
3222
+ * @summary Get branch list
3223
+ * @param {string} sandboxId
3224
+ * @param {string} path
3225
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3226
+ * @param {*} [options] Override http request option.
3227
+ * @throws {RequiredError}
3228
+ * @memberof ToolboxApi
3229
+ */
3230
+ gitListBranches(sandboxId, path, xDaytonaOrganizationID, options) {
3231
+ return (0, exports.ToolboxApiFp)(this.configuration)
3232
+ .gitListBranches(sandboxId, path, xDaytonaOrganizationID, options)
3233
+ .then((request) => request(this.axios, this.basePath));
3234
+ }
3235
+ /**
3236
+ * Pull changes from remote
3237
+ * @summary Pull changes
3238
+ * @param {string} sandboxId
3239
+ * @param {GitRepoRequest} gitRepoRequest
3240
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3241
+ * @param {*} [options] Override http request option.
3242
+ * @throws {RequiredError}
3243
+ * @memberof ToolboxApi
3244
+ */
3245
+ gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
3246
+ return (0, exports.ToolboxApiFp)(this.configuration)
3247
+ .gitPullChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options)
3248
+ .then((request) => request(this.axios, this.basePath));
3249
+ }
3250
+ /**
3251
+ * Push changes to remote
3252
+ * @summary Push changes
3253
+ * @param {string} sandboxId
3254
+ * @param {GitRepoRequest} gitRepoRequest
3255
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3256
+ * @param {*} [options] Override http request option.
3257
+ * @throws {RequiredError}
3258
+ * @memberof ToolboxApi
3259
+ */
3260
+ gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options) {
3261
+ return (0, exports.ToolboxApiFp)(this.configuration)
3262
+ .gitPushChanges(sandboxId, gitRepoRequest, xDaytonaOrganizationID, options)
3263
+ .then((request) => request(this.axios, this.basePath));
3264
+ }
3265
+ /**
3266
+ *
3267
+ * @summary List files
3268
+ * @param {string} sandboxId
3269
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3270
+ * @param {string} [path]
3271
+ * @param {*} [options] Override http request option.
3272
+ * @throws {RequiredError}
3273
+ * @memberof ToolboxApi
3274
+ */
3275
+ listFiles(sandboxId, xDaytonaOrganizationID, path, options) {
3276
+ return (0, exports.ToolboxApiFp)(this.configuration)
3277
+ .listFiles(sandboxId, xDaytonaOrganizationID, path, options)
3278
+ .then((request) => request(this.axios, this.basePath));
3279
+ }
3280
+ /**
3281
+ * List all active sessions in the sandbox
3282
+ * @summary List sessions
3283
+ * @param {string} sandboxId
3284
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3285
+ * @param {*} [options] Override http request option.
3286
+ * @throws {RequiredError}
3287
+ * @memberof ToolboxApi
3288
+ */
3289
+ listSessions(sandboxId, xDaytonaOrganizationID, options) {
3290
+ return (0, exports.ToolboxApiFp)(this.configuration)
3291
+ .listSessions(sandboxId, xDaytonaOrganizationID, options)
3292
+ .then((request) => request(this.axios, this.basePath));
3293
+ }
3294
+ /**
3295
+ * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
3296
+ * @summary Get Lsp Completions
3297
+ * @param {string} sandboxId
3298
+ * @param {LspCompletionParams} lspCompletionParams
3299
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3300
+ * @param {*} [options] Override http request option.
3301
+ * @throws {RequiredError}
3302
+ * @memberof ToolboxApi
3303
+ */
3304
+ lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options) {
3305
+ return (0, exports.ToolboxApiFp)(this.configuration)
3306
+ .lspCompletions(sandboxId, lspCompletionParams, xDaytonaOrganizationID, options)
3307
+ .then((request) => request(this.axios, this.basePath));
3308
+ }
3309
+ /**
3310
+ * The document close notification is sent from the client to the server when the document got closed in the client.
3311
+ * @summary Call Lsp DidClose
3312
+ * @param {string} sandboxId
3313
+ * @param {LspDocumentRequest} lspDocumentRequest
3314
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3315
+ * @param {*} [options] Override http request option.
3316
+ * @throws {RequiredError}
3317
+ * @memberof ToolboxApi
3318
+ */
3319
+ lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
3320
+ return (0, exports.ToolboxApiFp)(this.configuration)
3321
+ .lspDidClose(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options)
3322
+ .then((request) => request(this.axios, this.basePath));
3323
+ }
3324
+ /**
3325
+ * The document open notification is sent from the client to the server to signal newly opened text documents.
3326
+ * @summary Call Lsp DidOpen
3327
+ * @param {string} sandboxId
3328
+ * @param {LspDocumentRequest} lspDocumentRequest
3329
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3330
+ * @param {*} [options] Override http request option.
3331
+ * @throws {RequiredError}
3332
+ * @memberof ToolboxApi
3333
+ */
3334
+ lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options) {
3335
+ return (0, exports.ToolboxApiFp)(this.configuration)
3336
+ .lspDidOpen(sandboxId, lspDocumentRequest, xDaytonaOrganizationID, options)
3337
+ .then((request) => request(this.axios, this.basePath));
3338
+ }
3339
+ /**
3340
+ * The document symbol request is sent from the client to the server.
3341
+ * @summary Call Lsp DocumentSymbols
3342
+ * @param {string} sandboxId
3343
+ * @param {string} languageId
3344
+ * @param {string} pathToProject
3345
+ * @param {string} uri
3346
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3347
+ * @param {*} [options] Override http request option.
3348
+ * @throws {RequiredError}
3349
+ * @memberof ToolboxApi
3350
+ */
3351
+ lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options) {
3352
+ return (0, exports.ToolboxApiFp)(this.configuration)
3353
+ .lspDocumentSymbols(sandboxId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
3354
+ .then((request) => request(this.axios, this.basePath));
3355
+ }
3356
+ /**
3357
+ * Start Lsp server process inside sandbox project
3358
+ * @summary Start Lsp server
3359
+ * @param {string} sandboxId
3360
+ * @param {LspServerRequest} lspServerRequest
3361
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3362
+ * @param {*} [options] Override http request option.
3363
+ * @throws {RequiredError}
3364
+ * @memberof ToolboxApi
3365
+ */
3366
+ lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
3367
+ return (0, exports.ToolboxApiFp)(this.configuration)
3368
+ .lspStart(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
3369
+ .then((request) => request(this.axios, this.basePath));
3370
+ }
3371
+ /**
3372
+ * Stop Lsp server process inside sandbox project
3373
+ * @summary Stop Lsp server
3374
+ * @param {string} sandboxId
3375
+ * @param {LspServerRequest} lspServerRequest
3376
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3377
+ * @param {*} [options] Override http request option.
3378
+ * @throws {RequiredError}
3379
+ * @memberof ToolboxApi
3380
+ */
3381
+ lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options) {
3382
+ return (0, exports.ToolboxApiFp)(this.configuration)
3383
+ .lspStop(sandboxId, lspServerRequest, xDaytonaOrganizationID, options)
3384
+ .then((request) => request(this.axios, this.basePath));
3385
+ }
3386
+ /**
3387
+ * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
3388
+ * @summary Call Lsp WorkspaceSymbols
3389
+ * @param {string} sandboxId
3390
+ * @param {string} languageId
3391
+ * @param {string} pathToProject
3392
+ * @param {string} query
3393
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3394
+ * @param {*} [options] Override http request option.
3395
+ * @throws {RequiredError}
3396
+ * @memberof ToolboxApi
3397
+ */
3398
+ lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options) {
3399
+ return (0, exports.ToolboxApiFp)(this.configuration)
3400
+ .lspWorkspaceSymbols(sandboxId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
3401
+ .then((request) => request(this.axios, this.basePath));
3402
+ }
3403
+ /**
3404
+ * Move file inside sandbox
3405
+ * @summary Move file
3406
+ * @param {string} sandboxId
3407
+ * @param {string} source
3408
+ * @param {string} destination
3409
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3410
+ * @param {*} [options] Override http request option.
3411
+ * @throws {RequiredError}
3412
+ * @memberof ToolboxApi
3413
+ */
3414
+ moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options) {
3415
+ return (0, exports.ToolboxApiFp)(this.configuration)
3416
+ .moveFile(sandboxId, source, destination, xDaytonaOrganizationID, options)
3417
+ .then((request) => request(this.axios, this.basePath));
3418
+ }
3419
+ /**
3420
+ * Replace text/pattern in multiple files inside sandbox
3421
+ * @summary Replace in files
3422
+ * @param {string} sandboxId
3423
+ * @param {ReplaceRequest} replaceRequest
3424
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3425
+ * @param {*} [options] Override http request option.
3426
+ * @throws {RequiredError}
3427
+ * @memberof ToolboxApi
3428
+ */
3429
+ replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options) {
3430
+ return (0, exports.ToolboxApiFp)(this.configuration)
3431
+ .replaceInFiles(sandboxId, replaceRequest, xDaytonaOrganizationID, options)
3432
+ .then((request) => request(this.axios, this.basePath));
3433
+ }
3434
+ /**
3435
+ * Search for files inside sandbox
3436
+ * @summary Search files
3437
+ * @param {string} sandboxId
3438
+ * @param {string} path
3439
+ * @param {string} pattern
3440
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3441
+ * @param {*} [options] Override http request option.
3442
+ * @throws {RequiredError}
3443
+ * @memberof ToolboxApi
3444
+ */
3445
+ searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options) {
3446
+ return (0, exports.ToolboxApiFp)(this.configuration)
3447
+ .searchFiles(sandboxId, path, pattern, xDaytonaOrganizationID, options)
3448
+ .then((request) => request(this.axios, this.basePath));
3449
+ }
3450
+ /**
3451
+ * Set file owner/group/permissions inside sandbox
3452
+ * @summary Set file permissions
3453
+ * @param {string} sandboxId
3454
+ * @param {string} path
3455
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3456
+ * @param {string} [owner]
3457
+ * @param {string} [group]
3458
+ * @param {string} [mode]
3459
+ * @param {*} [options] Override http request option.
3460
+ * @throws {RequiredError}
3461
+ * @memberof ToolboxApi
3462
+ */
3463
+ setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options) {
3464
+ return (0, exports.ToolboxApiFp)(this.configuration)
3465
+ .setFilePermissions(sandboxId, path, xDaytonaOrganizationID, owner, group, mode, options)
3466
+ .then((request) => request(this.axios, this.basePath));
3467
+ }
3468
+ /**
3469
+ * Upload file inside sandbox
3470
+ * @summary Upload file
3471
+ * @param {string} sandboxId
3472
+ * @param {string} path
3473
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3474
+ * @param {File} [file]
3475
+ * @param {*} [options] Override http request option.
3476
+ * @deprecated
3477
+ * @throws {RequiredError}
3478
+ * @memberof ToolboxApi
3479
+ */
3480
+ uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options) {
3481
+ return (0, exports.ToolboxApiFp)(this.configuration)
3482
+ .uploadFile(sandboxId, path, xDaytonaOrganizationID, file, options)
3483
+ .then((request) => request(this.axios, this.basePath));
3484
+ }
3485
+ /**
3486
+ * Upload multiple files inside sandbox
3487
+ * @summary Upload multiple files
3488
+ * @param {string} sandboxId
3489
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3490
+ * @param {*} [options] Override http request option.
3491
+ * @throws {RequiredError}
3492
+ * @memberof ToolboxApi
3493
+ */
3494
+ uploadFiles(sandboxId, xDaytonaOrganizationID, options) {
3495
+ return (0, exports.ToolboxApiFp)(this.configuration)
3496
+ .uploadFiles(sandboxId, xDaytonaOrganizationID, options)
3497
+ .then((request) => request(this.axios, this.basePath));
3498
+ }
3499
+ }
3500
+ exports.ToolboxApi = ToolboxApi;
3501
+ //# sourceMappingURL=toolbox-api.js.map