@daytonaio/api-client 0.18.0-alpha.1 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (579) hide show
  1. package/package.json +7 -12
  2. package/{dist/esm → src}/api/api-keys-api.d.ts +36 -3
  3. package/{dist → src}/api/api-keys-api.js +113 -72
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/{dist/esm → src}/api/docker-registry-api.d.ts +3 -3
  6. package/{dist → src}/api/docker-registry-api.js +74 -117
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/{dist/esm → src}/api/images-api.d.ts +3 -3
  9. package/{dist → src}/api/images-api.js +74 -117
  10. package/src/api/images-api.js.map +1 -0
  11. package/{dist → src}/api/nodes-api.d.ts +3 -3
  12. package/{dist → src}/api/nodes-api.js +34 -57
  13. package/src/api/nodes-api.js.map +1 -0
  14. package/{dist/esm → src}/api/object-storage-api.d.ts +3 -3
  15. package/{dist → src}/api/object-storage-api.js +13 -26
  16. package/src/api/object-storage-api.js.map +1 -0
  17. package/{dist → src}/api/organizations-api.d.ts +3 -3
  18. package/{dist → src}/api/organizations-api.js +254 -387
  19. package/src/api/organizations-api.js.map +1 -0
  20. package/{dist → src}/api/preview-api.d.ts +3 -3
  21. package/{dist → src}/api/preview-api.js +32 -51
  22. package/src/api/preview-api.js.map +1 -0
  23. package/{dist/esm → src}/api/toolbox-api.d.ts +3 -3
  24. package/{dist → src}/api/toolbox-api.js +364 -552
  25. package/src/api/toolbox-api.js.map +1 -0
  26. package/{dist/esm → src}/api/users-api.d.ts +3 -3
  27. package/{dist → src}/api/users-api.js +40 -68
  28. package/src/api/users-api.js.map +1 -0
  29. package/{dist → src}/api/volumes-api.d.ts +3 -3
  30. package/{dist → src}/api/volumes-api.js +64 -82
  31. package/src/api/volumes-api.js.map +1 -0
  32. package/{dist/esm → src}/api/workspace-api.d.ts +3 -44
  33. package/{dist → src}/api/workspace-api.js +124 -282
  34. package/src/api/workspace-api.js.map +1 -0
  35. package/{dist → src}/api.d.ts +3 -3
  36. package/src/api.js +28 -0
  37. package/src/api.js.map +1 -0
  38. package/{dist → src}/base.d.ts +3 -3
  39. package/{dist → src}/base.js +10 -6
  40. package/src/base.js.map +1 -0
  41. package/{dist/esm → src}/common.d.ts +3 -3
  42. package/{dist → src}/common.js +27 -39
  43. package/src/common.js.map +1 -0
  44. package/{dist → src}/configuration.d.ts +3 -3
  45. package/{dist/esm/configuration.d.ts → src/configuration.js} +38 -24
  46. package/src/configuration.js.map +1 -0
  47. package/{dist → src}/index.d.ts +3 -3
  48. package/src/index.js +20 -0
  49. package/src/index.js.map +1 -0
  50. package/{dist/esm → src}/models/api-key-list.d.ts +3 -3
  51. package/{dist → src}/models/api-key-list.js +4 -3
  52. package/src/models/api-key-list.js.map +1 -0
  53. package/{dist/esm → src}/models/api-key-response.d.ts +3 -3
  54. package/{dist → src}/models/api-key-response.js +4 -3
  55. package/src/models/api-key-response.js.map +1 -0
  56. package/{dist/esm → src}/models/build-image.d.ts +3 -3
  57. package/{dist → src}/models/build-image.js +4 -3
  58. package/src/models/build-image.js.map +1 -0
  59. package/{dist/esm → src}/models/command.d.ts +3 -3
  60. package/{dist → src}/models/command.js +4 -3
  61. package/src/models/command.js.map +1 -0
  62. package/{dist/esm → src}/models/completion-context.d.ts +3 -3
  63. package/{dist → src}/models/completion-context.js +4 -3
  64. package/src/models/completion-context.js.map +1 -0
  65. package/{dist/esm → src}/models/completion-item.d.ts +3 -3
  66. package/{dist → src}/models/completion-item.js +4 -3
  67. package/src/models/completion-item.js.map +1 -0
  68. package/{dist → src}/models/completion-list.d.ts +3 -3
  69. package/{dist → src}/models/completion-list.js +4 -3
  70. package/src/models/completion-list.js.map +1 -0
  71. package/{dist → src}/models/create-api-key.d.ts +3 -3
  72. package/{dist → src}/models/create-api-key.js +4 -3
  73. package/src/models/create-api-key.js.map +1 -0
  74. package/{dist → src}/models/create-build-info.d.ts +3 -3
  75. package/{dist → src}/models/create-build-info.js +4 -3
  76. package/src/models/create-build-info.js.map +1 -0
  77. package/{dist → src}/models/create-docker-registry.d.ts +3 -3
  78. package/{dist → src}/models/create-docker-registry.js +4 -3
  79. package/src/models/create-docker-registry.js.map +1 -0
  80. package/{dist → src}/models/create-image.d.ts +3 -3
  81. package/{dist → src}/models/create-image.js +4 -3
  82. package/src/models/create-image.js.map +1 -0
  83. package/{dist → src}/models/create-node.d.ts +3 -3
  84. package/{dist → src}/models/create-node.js +4 -3
  85. package/src/models/create-node.js.map +1 -0
  86. package/{dist → src}/models/create-organization-invitation.d.ts +3 -3
  87. package/{dist → src}/models/create-organization-invitation.js +4 -3
  88. package/src/models/create-organization-invitation.js.map +1 -0
  89. package/{dist → src}/models/create-organization-quota.d.ts +3 -3
  90. package/{dist → src}/models/create-organization-quota.js +4 -3
  91. package/src/models/create-organization-quota.js.map +1 -0
  92. package/{dist → src}/models/create-organization-role.d.ts +3 -3
  93. package/{dist → src}/models/create-organization-role.js +4 -3
  94. package/src/models/create-organization-role.js.map +1 -0
  95. package/{dist → src}/models/create-organization.d.ts +3 -3
  96. package/{dist → src}/models/create-organization.js +4 -3
  97. package/src/models/create-organization.js.map +1 -0
  98. package/{dist → src}/models/create-session-request.d.ts +3 -3
  99. package/{dist → src}/models/create-session-request.js +4 -3
  100. package/src/models/create-session-request.js.map +1 -0
  101. package/{dist → src}/models/create-user.d.ts +3 -3
  102. package/{dist → src}/models/create-user.js +4 -3
  103. package/src/models/create-user.js.map +1 -0
  104. package/{dist → src}/models/create-volume.d.ts +3 -3
  105. package/{dist → src}/models/create-volume.js +4 -3
  106. package/src/models/create-volume.js.map +1 -0
  107. package/{dist → src}/models/create-workspace.d.ts +3 -3
  108. package/{dist → src}/models/create-workspace.js +4 -3
  109. package/src/models/create-workspace.js.map +1 -0
  110. package/{dist/esm → src}/models/docker-registry.d.ts +3 -3
  111. package/{dist → src}/models/docker-registry.js +4 -3
  112. package/src/models/docker-registry.js.map +1 -0
  113. package/{dist → src}/models/execute-request.d.ts +3 -3
  114. package/{dist → src}/models/execute-request.js +4 -3
  115. package/src/models/execute-request.js.map +1 -0
  116. package/{dist/esm → src}/models/execute-response.d.ts +3 -3
  117. package/{dist → src}/models/execute-response.js +4 -3
  118. package/src/models/execute-response.js.map +1 -0
  119. package/{dist/esm → src}/models/file-info.d.ts +3 -3
  120. package/{dist → src}/models/file-info.js +4 -3
  121. package/src/models/file-info.js.map +1 -0
  122. package/{dist/esm → src}/models/file-status.d.ts +3 -3
  123. package/{dist → src}/models/file-status.js +4 -3
  124. package/src/models/file-status.js.map +1 -0
  125. package/{dist/esm → src}/models/git-add-request.d.ts +3 -3
  126. package/{dist → src}/models/git-add-request.js +4 -3
  127. package/src/models/git-add-request.js.map +1 -0
  128. package/{dist → src}/models/git-branch-request.d.ts +3 -3
  129. package/{dist → src}/models/git-branch-request.js +4 -3
  130. package/src/models/git-branch-request.js.map +1 -0
  131. package/{dist → src}/models/git-clone-request.d.ts +3 -3
  132. package/{dist → src}/models/git-clone-request.js +4 -3
  133. package/src/models/git-clone-request.js.map +1 -0
  134. package/{dist/esm → src}/models/git-commit-info.d.ts +3 -3
  135. package/{dist → src}/models/git-commit-info.js +4 -3
  136. package/src/models/git-commit-info.js.map +1 -0
  137. package/{dist/esm → src}/models/git-commit-request.d.ts +3 -3
  138. package/{dist → src}/models/git-commit-request.js +4 -3
  139. package/src/models/git-commit-request.js.map +1 -0
  140. package/{dist/esm → src}/models/git-commit-response.d.ts +3 -3
  141. package/{dist → src}/models/git-commit-response.js +4 -3
  142. package/src/models/git-commit-response.js.map +1 -0
  143. package/{dist → src}/models/git-repo-request.d.ts +3 -3
  144. package/{dist → src}/models/git-repo-request.js +4 -3
  145. package/src/models/git-repo-request.js.map +1 -0
  146. package/{dist/esm → src}/models/git-status.d.ts +3 -3
  147. package/{dist → src}/models/git-status.js +4 -3
  148. package/src/models/git-status.js.map +1 -0
  149. package/{dist → src}/models/image-dto.d.ts +3 -3
  150. package/{dist → src}/models/image-dto.js +4 -3
  151. package/src/models/image-dto.js.map +1 -0
  152. package/{dist/esm → src}/models/image-state.d.ts +3 -3
  153. package/{dist → src}/models/image-state.js +4 -3
  154. package/src/models/image-state.js.map +1 -0
  155. package/src/models/index.js +81 -0
  156. package/src/models/index.js.map +1 -0
  157. package/{dist/esm → src}/models/list-branch-response.d.ts +3 -3
  158. package/{dist → src}/models/list-branch-response.js +4 -3
  159. package/src/models/list-branch-response.js.map +1 -0
  160. package/{dist/esm → src}/models/lsp-completion-params.d.ts +3 -3
  161. package/{dist → src}/models/lsp-completion-params.js +4 -3
  162. package/src/models/lsp-completion-params.js.map +1 -0
  163. package/{dist → src}/models/lsp-document-request.d.ts +3 -3
  164. package/{dist → src}/models/lsp-document-request.js +4 -3
  165. package/src/models/lsp-document-request.js.map +1 -0
  166. package/{dist/esm → src}/models/lsp-location.d.ts +3 -3
  167. package/{dist → src}/models/lsp-location.js +4 -3
  168. package/src/models/lsp-location.js.map +1 -0
  169. package/{dist → src}/models/lsp-server-request.d.ts +3 -3
  170. package/{dist → src}/models/lsp-server-request.js +4 -3
  171. package/src/models/lsp-server-request.js.map +1 -0
  172. package/{dist → src}/models/lsp-symbol.d.ts +3 -3
  173. package/{dist → src}/models/lsp-symbol.js +4 -3
  174. package/src/models/lsp-symbol.js.map +1 -0
  175. package/{dist/esm → src}/models/match.d.ts +3 -3
  176. package/{dist → src}/models/match.js +4 -3
  177. package/src/models/match.js.map +1 -0
  178. package/{dist/esm → src}/models/organization-invitation.d.ts +3 -3
  179. package/{dist → src}/models/organization-invitation.js +4 -3
  180. package/src/models/organization-invitation.js.map +1 -0
  181. package/{dist → src}/models/organization-role.d.ts +3 -3
  182. package/{dist → src}/models/organization-role.js +4 -3
  183. package/src/models/organization-role.js.map +1 -0
  184. package/{dist/esm → src}/models/organization-suspension.d.ts +3 -3
  185. package/{dist → src}/models/organization-suspension.js +4 -3
  186. package/src/models/organization-suspension.js.map +1 -0
  187. package/{dist → src}/models/organization-user.d.ts +3 -3
  188. package/{dist → src}/models/organization-user.js +4 -3
  189. package/src/models/organization-user.js.map +1 -0
  190. package/{dist → src}/models/organization.d.ts +3 -3
  191. package/{dist → src}/models/organization.js +4 -3
  192. package/src/models/organization.js.map +1 -0
  193. package/{dist/esm → src}/models/paginated-images-dto.d.ts +3 -3
  194. package/{dist → src}/models/paginated-images-dto.js +4 -3
  195. package/src/models/paginated-images-dto.js.map +1 -0
  196. package/{dist → src}/models/port-preview-url.d.ts +3 -3
  197. package/{dist → src}/models/port-preview-url.js +4 -3
  198. package/src/models/port-preview-url.js.map +1 -0
  199. package/{dist/esm → src}/models/position.d.ts +3 -3
  200. package/{dist → src}/models/position.js +4 -3
  201. package/src/models/position.js.map +1 -0
  202. package/{dist → src}/models/project-dir-response.d.ts +3 -3
  203. package/{dist → src}/models/project-dir-response.js +4 -3
  204. package/src/models/project-dir-response.js.map +1 -0
  205. package/{dist/esm → src}/models/range.d.ts +3 -3
  206. package/{dist → src}/models/range.js +4 -3
  207. package/src/models/range.js.map +1 -0
  208. package/{dist → src}/models/registry-push-access-dto.d.ts +3 -3
  209. package/{dist → src}/models/registry-push-access-dto.js +4 -3
  210. package/src/models/registry-push-access-dto.js.map +1 -0
  211. package/{dist/esm → src}/models/replace-request.d.ts +3 -3
  212. package/{dist → src}/models/replace-request.js +4 -3
  213. package/src/models/replace-request.js.map +1 -0
  214. package/{dist → src}/models/replace-result.d.ts +3 -3
  215. package/{dist → src}/models/replace-result.js +4 -3
  216. package/src/models/replace-result.js.map +1 -0
  217. package/{dist/esm → src}/models/search-files-response.d.ts +3 -3
  218. package/{dist → src}/models/search-files-response.js +4 -3
  219. package/src/models/search-files-response.js.map +1 -0
  220. package/{dist → src}/models/session-execute-request.d.ts +3 -3
  221. package/{dist → src}/models/session-execute-request.js +4 -3
  222. package/src/models/session-execute-request.js.map +1 -0
  223. package/{dist/esm → src}/models/session-execute-response.d.ts +3 -3
  224. package/{dist → src}/models/session-execute-response.js +4 -3
  225. package/src/models/session-execute-response.js.map +1 -0
  226. package/{dist/esm → src}/models/session.d.ts +3 -3
  227. package/{dist → src}/models/session.js +4 -3
  228. package/src/models/session.js.map +1 -0
  229. package/{dist/esm → src}/models/set-image-general-status.d.ts +3 -3
  230. package/{dist → src}/models/set-image-general-status.js +4 -3
  231. package/src/models/set-image-general-status.js.map +1 -0
  232. package/{dist/esm → src}/models/storage-access-dto.d.ts +3 -3
  233. package/{dist → src}/models/storage-access-dto.js +4 -3
  234. package/src/models/storage-access-dto.js.map +1 -0
  235. package/{dist/esm → src}/models/toggle-state.d.ts +3 -3
  236. package/{dist → src}/models/toggle-state.js +4 -3
  237. package/src/models/toggle-state.js.map +1 -0
  238. package/{dist → src}/models/update-assigned-organization-roles.d.ts +3 -3
  239. package/{dist → src}/models/update-assigned-organization-roles.js +4 -3
  240. package/src/models/update-assigned-organization-roles.js.map +1 -0
  241. package/{dist/esm → src}/models/update-docker-registry.d.ts +3 -3
  242. package/{dist → src}/models/update-docker-registry.js +4 -3
  243. package/src/models/update-docker-registry.js.map +1 -0
  244. package/{dist → src}/models/update-organization-invitation.d.ts +3 -3
  245. package/{dist → src}/models/update-organization-invitation.js +4 -3
  246. package/src/models/update-organization-invitation.js.map +1 -0
  247. package/{dist/esm → src}/models/update-organization-member-role.d.ts +3 -3
  248. package/{dist → src}/models/update-organization-member-role.js +4 -3
  249. package/src/models/update-organization-member-role.js.map +1 -0
  250. package/{dist → src}/models/update-organization-quota.d.ts +3 -3
  251. package/{dist → src}/models/update-organization-quota.js +4 -3
  252. package/src/models/update-organization-quota.js.map +1 -0
  253. package/{dist → src}/models/update-organization-role.d.ts +3 -3
  254. package/{dist → src}/models/update-organization-role.js +4 -3
  255. package/src/models/update-organization-role.js.map +1 -0
  256. package/{dist/esm → src}/models/usage-overview.d.ts +3 -3
  257. package/{dist → src}/models/usage-overview.js +4 -3
  258. package/src/models/usage-overview.js.map +1 -0
  259. package/{dist/esm → src}/models/user-public-key.d.ts +3 -3
  260. package/{dist → src}/models/user-public-key.js +4 -3
  261. package/src/models/user-public-key.js.map +1 -0
  262. package/{dist/esm → src}/models/user.d.ts +3 -3
  263. package/{dist → src}/models/user.js +4 -3
  264. package/src/models/user.js.map +1 -0
  265. package/{dist/esm → src}/models/volume-dto.d.ts +3 -3
  266. package/{dist → src}/models/volume-dto.js +4 -3
  267. package/src/models/volume-dto.js.map +1 -0
  268. package/{dist → src}/models/workspace-info.d.ts +3 -3
  269. package/{dist → src}/models/workspace-info.js +4 -3
  270. package/src/models/workspace-info.js.map +1 -0
  271. package/{dist/esm → src}/models/workspace-labels.d.ts +3 -3
  272. package/{dist → src}/models/workspace-labels.js +4 -3
  273. package/src/models/workspace-labels.js.map +1 -0
  274. package/{dist → src}/models/workspace-state.d.ts +3 -4
  275. package/{dist → src}/models/workspace-state.js +4 -4
  276. package/src/models/workspace-state.js.map +1 -0
  277. package/{dist/esm → src}/models/workspace-volume.d.ts +3 -3
  278. package/{dist → src}/models/workspace-volume.js +4 -3
  279. package/src/models/workspace-volume.js.map +1 -0
  280. package/{dist → src}/models/workspace.d.ts +3 -3
  281. package/{dist → src}/models/workspace.js +4 -3
  282. package/src/models/workspace.js.map +1 -0
  283. package/.openapi-generator/FILES +0 -99
  284. package/.openapi-generator/VERSION +0 -1
  285. package/.openapi-generator-ignore +0 -30
  286. package/api/api-keys-api.ts +0 -473
  287. package/api/docker-registry-api.ts +0 -814
  288. package/api/images-api.ts +0 -869
  289. package/api/nodes-api.ts +0 -325
  290. package/api/object-storage-api.ts +0 -161
  291. package/api/organizations-api.ts +0 -2691
  292. package/api/preview-api.ts +0 -330
  293. package/api/toolbox-api.ts +0 -4951
  294. package/api/users-api.ts +0 -390
  295. package/api/volumes-api.ts +0 -584
  296. package/api/workspace-api.ts +0 -1654
  297. package/api.ts +0 -25
  298. package/base.ts +0 -91
  299. package/common.ts +0 -162
  300. package/configuration.ts +0 -123
  301. package/dist/api/api-keys-api.d.ts +0 -187
  302. package/dist/api/docker-registry-api.d.ts +0 -299
  303. package/dist/api/images-api.d.ts +0 -317
  304. package/dist/api/object-storage-api.d.ts +0 -74
  305. package/dist/api/toolbox-api.d.ts +0 -1599
  306. package/dist/api/users-api.d.ts +0 -166
  307. package/dist/api/workspace-api.d.ts +0 -557
  308. package/dist/api.js +0 -40
  309. package/dist/common.d.ts +0 -65
  310. package/dist/configuration.js +0 -44
  311. package/dist/esm/api/api-keys-api.js +0 -380
  312. package/dist/esm/api/docker-registry-api.js +0 -628
  313. package/dist/esm/api/images-api.js +0 -660
  314. package/dist/esm/api/nodes-api.d.ts +0 -136
  315. package/dist/esm/api/nodes-api.js +0 -277
  316. package/dist/esm/api/object-storage-api.js +0 -133
  317. package/dist/esm/api/organizations-api.d.ts +0 -927
  318. package/dist/esm/api/organizations-api.js +0 -2017
  319. package/dist/esm/api/preview-api.d.ts +0 -143
  320. package/dist/esm/api/preview-api.js +0 -277
  321. package/dist/esm/api/toolbox-api.js +0 -3431
  322. package/dist/esm/api/users-api.js +0 -332
  323. package/dist/esm/api/volumes-api.d.ts +0 -227
  324. package/dist/esm/api/volumes-api.js +0 -458
  325. package/dist/esm/api/workspace-api.js +0 -1194
  326. package/dist/esm/api.d.ts +0 -22
  327. package/dist/esm/api.js +0 -24
  328. package/dist/esm/base.d.ts +0 -66
  329. package/dist/esm/base.js +0 -59
  330. package/dist/esm/common.js +0 -146
  331. package/dist/esm/configuration.js +0 -40
  332. package/dist/esm/index.d.ts +0 -14
  333. package/dist/esm/index.js +0 -16
  334. package/dist/esm/models/api-key-list.js +0 -24
  335. package/dist/esm/models/api-key-response.js +0 -24
  336. package/dist/esm/models/build-image.js +0 -14
  337. package/dist/esm/models/command.js +0 -14
  338. package/dist/esm/models/completion-context.js +0 -14
  339. package/dist/esm/models/completion-item.js +0 -14
  340. package/dist/esm/models/completion-list.d.ts +0 -31
  341. package/dist/esm/models/completion-list.js +0 -14
  342. package/dist/esm/models/create-api-key.d.ts +0 -42
  343. package/dist/esm/models/create-api-key.js +0 -24
  344. package/dist/esm/models/create-build-info.d.ts +0 -30
  345. package/dist/esm/models/create-build-info.js +0 -14
  346. package/dist/esm/models/create-docker-registry.d.ts +0 -67
  347. package/dist/esm/models/create-docker-registry.js +0 -19
  348. package/dist/esm/models/create-image.d.ts +0 -36
  349. package/dist/esm/models/create-image.js +0 -14
  350. package/dist/esm/models/create-node.d.ts +0 -96
  351. package/dist/esm/models/create-node.js +0 -23
  352. package/dist/esm/models/create-organization-invitation.d.ts +0 -47
  353. package/dist/esm/models/create-organization-invitation.js +0 -17
  354. package/dist/esm/models/create-organization-quota.d.ts +0 -84
  355. package/dist/esm/models/create-organization-quota.js +0 -14
  356. package/dist/esm/models/create-organization-role.d.ts +0 -48
  357. package/dist/esm/models/create-organization-role.js +0 -24
  358. package/dist/esm/models/create-organization.d.ts +0 -24
  359. package/dist/esm/models/create-organization.js +0 -14
  360. package/dist/esm/models/create-session-request.d.ts +0 -24
  361. package/dist/esm/models/create-session-request.js +0 -14
  362. package/dist/esm/models/create-user.d.ts +0 -60
  363. package/dist/esm/models/create-user.js +0 -17
  364. package/dist/esm/models/create-volume.d.ts +0 -24
  365. package/dist/esm/models/create-volume.js +0 -14
  366. package/dist/esm/models/create-workspace.d.ts +0 -120
  367. package/dist/esm/models/create-workspace.js +0 -23
  368. package/dist/esm/models/docker-registry.js +0 -19
  369. package/dist/esm/models/execute-request.d.ts +0 -36
  370. package/dist/esm/models/execute-request.js +0 -14
  371. package/dist/esm/models/execute-response.js +0 -14
  372. package/dist/esm/models/file-info.js +0 -14
  373. package/dist/esm/models/file-status.js +0 -14
  374. package/dist/esm/models/git-add-request.js +0 -14
  375. package/dist/esm/models/git-branch-request.d.ts +0 -30
  376. package/dist/esm/models/git-branch-request.js +0 -14
  377. package/dist/esm/models/git-clone-request.d.ts +0 -54
  378. package/dist/esm/models/git-clone-request.js +0 -14
  379. package/dist/esm/models/git-commit-info.js +0 -14
  380. package/dist/esm/models/git-commit-request.js +0 -14
  381. package/dist/esm/models/git-commit-response.js +0 -14
  382. package/dist/esm/models/git-repo-request.d.ts +0 -36
  383. package/dist/esm/models/git-repo-request.js +0 -14
  384. package/dist/esm/models/git-status.js +0 -14
  385. package/dist/esm/models/image-dto.d.ts +0 -91
  386. package/dist/esm/models/image-dto.js +0 -14
  387. package/dist/esm/models/image-state.js +0 -29
  388. package/dist/esm/models/index.js +0 -77
  389. package/dist/esm/models/list-branch-response.js +0 -14
  390. package/dist/esm/models/lsp-completion-params.js +0 -14
  391. package/dist/esm/models/lsp-document-request.d.ts +0 -36
  392. package/dist/esm/models/lsp-document-request.js +0 -14
  393. package/dist/esm/models/lsp-location.js +0 -14
  394. package/dist/esm/models/lsp-server-request.d.ts +0 -30
  395. package/dist/esm/models/lsp-server-request.js +0 -14
  396. package/dist/esm/models/lsp-symbol.d.ts +0 -37
  397. package/dist/esm/models/lsp-symbol.js +0 -14
  398. package/dist/esm/models/match.js +0 -14
  399. package/dist/esm/models/organization-invitation.js +0 -23
  400. package/dist/esm/models/organization-role.d.ts +0 -72
  401. package/dist/esm/models/organization-role.js +0 -24
  402. package/dist/esm/models/organization-suspension.js +0 -14
  403. package/dist/esm/models/organization-user.d.ts +0 -72
  404. package/dist/esm/models/organization-user.js +0 -17
  405. package/dist/esm/models/organization.d.ts +0 -78
  406. package/dist/esm/models/organization.js +0 -14
  407. package/dist/esm/models/paginated-images-dto.js +0 -14
  408. package/dist/esm/models/port-preview-url.d.ts +0 -30
  409. package/dist/esm/models/port-preview-url.js +0 -14
  410. package/dist/esm/models/position.js +0 -14
  411. package/dist/esm/models/project-dir-response.d.ts +0 -24
  412. package/dist/esm/models/project-dir-response.js +0 -14
  413. package/dist/esm/models/range.js +0 -14
  414. package/dist/esm/models/registry-push-access-dto.d.ts +0 -54
  415. package/dist/esm/models/registry-push-access-dto.js +0 -14
  416. package/dist/esm/models/replace-request.js +0 -14
  417. package/dist/esm/models/replace-result.d.ts +0 -36
  418. package/dist/esm/models/replace-result.js +0 -14
  419. package/dist/esm/models/search-files-response.js +0 -14
  420. package/dist/esm/models/session-execute-request.d.ts +0 -37
  421. package/dist/esm/models/session-execute-request.js +0 -14
  422. package/dist/esm/models/session-execute-response.js +0 -14
  423. package/dist/esm/models/session.js +0 -14
  424. package/dist/esm/models/set-image-general-status.js +0 -14
  425. package/dist/esm/models/storage-access-dto.js +0 -14
  426. package/dist/esm/models/toggle-state.js +0 -14
  427. package/dist/esm/models/update-assigned-organization-roles.d.ts +0 -24
  428. package/dist/esm/models/update-assigned-organization-roles.js +0 -14
  429. package/dist/esm/models/update-docker-registry.js +0 -14
  430. package/dist/esm/models/update-organization-invitation.d.ts +0 -41
  431. package/dist/esm/models/update-organization-invitation.js +0 -17
  432. package/dist/esm/models/update-organization-member-role.js +0 -17
  433. package/dist/esm/models/update-organization-quota.d.ts +0 -84
  434. package/dist/esm/models/update-organization-quota.js +0 -14
  435. package/dist/esm/models/update-organization-role.d.ts +0 -48
  436. package/dist/esm/models/update-organization-role.js +0 -24
  437. package/dist/esm/models/usage-overview.js +0 -14
  438. package/dist/esm/models/user-public-key.js +0 -14
  439. package/dist/esm/models/user.js +0 -14
  440. package/dist/esm/models/volume-dto.js +0 -22
  441. package/dist/esm/models/volume-mount-dto.d.ts +0 -30
  442. package/dist/esm/models/volume-mount-dto.js +0 -2
  443. package/dist/esm/models/workspace-info.d.ts +0 -37
  444. package/dist/esm/models/workspace-info.js +0 -14
  445. package/dist/esm/models/workspace-labels.js +0 -14
  446. package/dist/esm/models/workspace-state.d.ts +0 -35
  447. package/dist/esm/models/workspace-state.js +0 -36
  448. package/dist/esm/models/workspace-volume.js +0 -14
  449. package/dist/esm/models/workspace.d.ts +0 -154
  450. package/dist/esm/models/workspace.js +0 -20
  451. package/dist/index.js +0 -32
  452. package/dist/models/api-key-list.d.ts +0 -54
  453. package/dist/models/api-key-response.d.ts +0 -54
  454. package/dist/models/build-image.d.ts +0 -31
  455. package/dist/models/command.d.ts +0 -36
  456. package/dist/models/completion-context.d.ts +0 -30
  457. package/dist/models/completion-item.d.ts +0 -60
  458. package/dist/models/docker-registry.d.ts +0 -73
  459. package/dist/models/execute-response.d.ts +0 -30
  460. package/dist/models/file-info.d.ts +0 -66
  461. package/dist/models/file-status.d.ts +0 -42
  462. package/dist/models/git-add-request.d.ts +0 -30
  463. package/dist/models/git-commit-info.d.ts +0 -48
  464. package/dist/models/git-commit-request.d.ts +0 -42
  465. package/dist/models/git-commit-response.d.ts +0 -24
  466. package/dist/models/git-status.d.ts +0 -49
  467. package/dist/models/image-state.d.ts +0 -28
  468. package/dist/models/index.d.ts +0 -77
  469. package/dist/models/index.js +0 -93
  470. package/dist/models/list-branch-response.d.ts +0 -24
  471. package/dist/models/lsp-completion-params.d.ts +0 -50
  472. package/dist/models/lsp-location.d.ts +0 -31
  473. package/dist/models/match.d.ts +0 -36
  474. package/dist/models/organization-invitation.d.ts +0 -97
  475. package/dist/models/organization-suspension.d.ts +0 -30
  476. package/dist/models/paginated-images-dto.d.ts +0 -43
  477. package/dist/models/position.d.ts +0 -30
  478. package/dist/models/range.d.ts +0 -31
  479. package/dist/models/replace-request.d.ts +0 -36
  480. package/dist/models/search-files-response.d.ts +0 -24
  481. package/dist/models/session-execute-response.d.ts +0 -36
  482. package/dist/models/session.d.ts +0 -31
  483. package/dist/models/set-image-general-status.d.ts +0 -24
  484. package/dist/models/storage-access-dto.d.ts +0 -54
  485. package/dist/models/toggle-state.d.ts +0 -24
  486. package/dist/models/update-docker-registry.d.ts +0 -36
  487. package/dist/models/update-organization-member-role.d.ts +0 -29
  488. package/dist/models/usage-overview.d.ts +0 -108
  489. package/dist/models/user-public-key.d.ts +0 -30
  490. package/dist/models/user.d.ts +0 -43
  491. package/dist/models/volume-dto.d.ts +0 -70
  492. package/dist/models/volume-mount-dto.d.ts +0 -30
  493. package/dist/models/volume-mount-dto.js +0 -3
  494. package/dist/models/workspace-labels.d.ts +0 -26
  495. package/dist/models/workspace-volume.d.ts +0 -30
  496. package/index.ts +0 -17
  497. package/models/api-key-list.ts +0 -59
  498. package/models/api-key-response.ts +0 -60
  499. package/models/build-image.ts +0 -37
  500. package/models/command.ts +0 -39
  501. package/models/completion-context.ts +0 -33
  502. package/models/completion-item.ts +0 -63
  503. package/models/completion-list.ts +0 -37
  504. package/models/create-api-key.ts +0 -47
  505. package/models/create-build-info.ts +0 -33
  506. package/models/create-docker-registry.ts +0 -73
  507. package/models/create-image.ts +0 -39
  508. package/models/create-node.ts +0 -102
  509. package/models/create-organization-invitation.ts +0 -53
  510. package/models/create-organization-quota.ts +0 -87
  511. package/models/create-organization-role.ts +0 -54
  512. package/models/create-organization.ts +0 -27
  513. package/models/create-session-request.ts +0 -27
  514. package/models/create-user.ts +0 -68
  515. package/models/create-volume.ts +0 -27
  516. package/models/create-workspace.ts +0 -127
  517. package/models/docker-registry.ts +0 -79
  518. package/models/execute-request.ts +0 -39
  519. package/models/execute-response.ts +0 -33
  520. package/models/file-info.ts +0 -69
  521. package/models/file-status.ts +0 -45
  522. package/models/git-add-request.ts +0 -33
  523. package/models/git-branch-request.ts +0 -33
  524. package/models/git-clone-request.ts +0 -57
  525. package/models/git-commit-info.ts +0 -51
  526. package/models/git-commit-request.ts +0 -45
  527. package/models/git-commit-response.ts +0 -27
  528. package/models/git-repo-request.ts +0 -39
  529. package/models/git-status.ts +0 -55
  530. package/models/image-dto.ts +0 -97
  531. package/models/image-state.ts +0 -33
  532. package/models/index.ts +0 -77
  533. package/models/list-branch-response.ts +0 -27
  534. package/models/lsp-completion-params.ts +0 -58
  535. package/models/lsp-document-request.ts +0 -39
  536. package/models/lsp-location.ts +0 -37
  537. package/models/lsp-server-request.ts +0 -33
  538. package/models/lsp-symbol.ts +0 -43
  539. package/models/match.ts +0 -39
  540. package/models/organization-invitation.ts +0 -108
  541. package/models/organization-role.ts +0 -78
  542. package/models/organization-suspension.ts +0 -33
  543. package/models/organization-user.ts +0 -80
  544. package/models/organization.ts +0 -81
  545. package/models/paginated-images-dto.ts +0 -49
  546. package/models/port-preview-url.ts +0 -33
  547. package/models/position.ts +0 -33
  548. package/models/project-dir-response.ts +0 -27
  549. package/models/range.ts +0 -37
  550. package/models/registry-push-access-dto.ts +0 -57
  551. package/models/replace-request.ts +0 -39
  552. package/models/replace-result.ts +0 -39
  553. package/models/search-files-response.ts +0 -27
  554. package/models/session-execute-request.ts +0 -40
  555. package/models/session-execute-response.ts +0 -39
  556. package/models/session.ts +0 -37
  557. package/models/set-image-general-status.ts +0 -27
  558. package/models/storage-access-dto.ts +0 -57
  559. package/models/toggle-state.ts +0 -27
  560. package/models/update-assigned-organization-roles.ts +0 -27
  561. package/models/update-docker-registry.ts +0 -39
  562. package/models/update-organization-invitation.ts +0 -47
  563. package/models/update-organization-member-role.ts +0 -35
  564. package/models/update-organization-quota.ts +0 -87
  565. package/models/update-organization-role.ts +0 -54
  566. package/models/usage-overview.ts +0 -111
  567. package/models/user-public-key.ts +0 -33
  568. package/models/user.ts +0 -49
  569. package/models/volume-dto.ts +0 -75
  570. package/models/volume-mount-dto.ts +0 -33
  571. package/models/workspace-info.ts +0 -40
  572. package/models/workspace-labels.ts +0 -27
  573. package/models/workspace-state.ts +0 -40
  574. package/models/workspace-volume.ts +0 -33
  575. package/models/workspace.ts +0 -162
  576. package/project.json +0 -49
  577. package/tsconfig.esm.json +0 -7
  578. package/tsconfig.json +0 -13
  579. /package/{dist/esm → src}/models/index.d.ts +0 -0
@@ -1,4951 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona Workspaces
5
- * Daytona Workspaces API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import type { Configuration } from '../configuration'
16
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
17
- import globalAxios from 'axios'
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import {
21
- DUMMY_BASE_URL,
22
- assertParamExists,
23
- setApiKeyToObject,
24
- setBasicAuthToObject,
25
- setBearerAuthToObject,
26
- setOAuthToObject,
27
- setSearchParams,
28
- serializeDataIfNeeded,
29
- toPathString,
30
- createRequestFunction,
31
- } from '../common'
32
- // @ts-ignore
33
- import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
34
- // @ts-ignore
35
- import type { Command } from '../models'
36
- // @ts-ignore
37
- import type { CompletionList } from '../models'
38
- // @ts-ignore
39
- import type { CreateSessionRequest } from '../models'
40
- // @ts-ignore
41
- import type { ExecuteRequest } from '../models'
42
- // @ts-ignore
43
- import type { ExecuteResponse } from '../models'
44
- // @ts-ignore
45
- import type { FileInfo } from '../models'
46
- // @ts-ignore
47
- import type { GitAddRequest } from '../models'
48
- // @ts-ignore
49
- import type { GitBranchRequest } from '../models'
50
- // @ts-ignore
51
- import type { GitCloneRequest } from '../models'
52
- // @ts-ignore
53
- import type { GitCommitInfo } from '../models'
54
- // @ts-ignore
55
- import type { GitCommitRequest } from '../models'
56
- // @ts-ignore
57
- import type { GitCommitResponse } from '../models'
58
- // @ts-ignore
59
- import type { GitRepoRequest } from '../models'
60
- // @ts-ignore
61
- import type { GitStatus } from '../models'
62
- // @ts-ignore
63
- import type { ListBranchResponse } from '../models'
64
- // @ts-ignore
65
- import type { LspCompletionParams } from '../models'
66
- // @ts-ignore
67
- import type { LspDocumentRequest } from '../models'
68
- // @ts-ignore
69
- import type { LspServerRequest } from '../models'
70
- // @ts-ignore
71
- import type { LspSymbol } from '../models'
72
- // @ts-ignore
73
- import type { Match } from '../models'
74
- // @ts-ignore
75
- import type { ProjectDirResponse } from '../models'
76
- // @ts-ignore
77
- import type { ReplaceRequest } from '../models'
78
- // @ts-ignore
79
- import type { ReplaceResult } from '../models'
80
- // @ts-ignore
81
- import type { SearchFilesResponse } from '../models'
82
- // @ts-ignore
83
- import type { Session } from '../models'
84
- // @ts-ignore
85
- import type { SessionExecuteRequest } from '../models'
86
- // @ts-ignore
87
- import type { SessionExecuteResponse } from '../models'
88
- /**
89
- * ToolboxApi - axios parameter creator
90
- * @export
91
- */
92
- export const ToolboxApiAxiosParamCreator = function (configuration?: Configuration) {
93
- return {
94
- /**
95
- * Create folder inside workspace
96
- * @summary Create folder
97
- * @param {string} workspaceId
98
- * @param {string} path
99
- * @param {string} mode
100
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createFolder: async (
105
- workspaceId: string,
106
- path: string,
107
- mode: string,
108
- xDaytonaOrganizationID?: string,
109
- options: RawAxiosRequestConfig = {},
110
- ): Promise<RequestArgs> => {
111
- // verify required parameter 'workspaceId' is not null or undefined
112
- assertParamExists('createFolder', 'workspaceId', workspaceId)
113
- // verify required parameter 'path' is not null or undefined
114
- assertParamExists('createFolder', 'path', path)
115
- // verify required parameter 'mode' is not null or undefined
116
- assertParamExists('createFolder', 'mode', mode)
117
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/folder`.replace(
118
- `{${'workspaceId'}}`,
119
- encodeURIComponent(String(workspaceId)),
120
- )
121
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
123
- let baseOptions
124
- if (configuration) {
125
- baseOptions = configuration.baseOptions
126
- }
127
-
128
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
129
- const localVarHeaderParameter = {} as any
130
- const localVarQueryParameter = {} as any
131
-
132
- // authentication bearer required
133
- // http bearer authentication required
134
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
135
-
136
- // authentication oauth2 required
137
- // oauth required
138
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
139
-
140
- if (path !== undefined) {
141
- localVarQueryParameter['path'] = path
142
- }
143
-
144
- if (mode !== undefined) {
145
- localVarQueryParameter['mode'] = mode
146
- }
147
-
148
- if (xDaytonaOrganizationID != null) {
149
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
150
- }
151
- setSearchParams(localVarUrlObj, localVarQueryParameter)
152
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
153
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
154
-
155
- return {
156
- url: toPathString(localVarUrlObj),
157
- options: localVarRequestOptions,
158
- }
159
- },
160
- /**
161
- * Create a new session in the workspace
162
- * @summary Create session
163
- * @param {string} workspaceId
164
- * @param {CreateSessionRequest} createSessionRequest
165
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
166
- * @param {*} [options] Override http request option.
167
- * @throws {RequiredError}
168
- */
169
- createSession: async (
170
- workspaceId: string,
171
- createSessionRequest: CreateSessionRequest,
172
- xDaytonaOrganizationID?: string,
173
- options: RawAxiosRequestConfig = {},
174
- ): Promise<RequestArgs> => {
175
- // verify required parameter 'workspaceId' is not null or undefined
176
- assertParamExists('createSession', 'workspaceId', workspaceId)
177
- // verify required parameter 'createSessionRequest' is not null or undefined
178
- assertParamExists('createSession', 'createSessionRequest', createSessionRequest)
179
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`.replace(
180
- `{${'workspaceId'}}`,
181
- encodeURIComponent(String(workspaceId)),
182
- )
183
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
185
- let baseOptions
186
- if (configuration) {
187
- baseOptions = configuration.baseOptions
188
- }
189
-
190
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
191
- const localVarHeaderParameter = {} as any
192
- const localVarQueryParameter = {} as any
193
-
194
- // authentication bearer required
195
- // http bearer authentication required
196
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
197
-
198
- // authentication oauth2 required
199
- // oauth required
200
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
201
-
202
- localVarHeaderParameter['Content-Type'] = 'application/json'
203
-
204
- if (xDaytonaOrganizationID != null) {
205
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
206
- }
207
- setSearchParams(localVarUrlObj, localVarQueryParameter)
208
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
209
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
210
- localVarRequestOptions.data = serializeDataIfNeeded(createSessionRequest, localVarRequestOptions, configuration)
211
-
212
- return {
213
- url: toPathString(localVarUrlObj),
214
- options: localVarRequestOptions,
215
- }
216
- },
217
- /**
218
- * Delete file inside workspace
219
- * @summary Delete file
220
- * @param {string} workspaceId
221
- * @param {string} path
222
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
223
- * @param {*} [options] Override http request option.
224
- * @throws {RequiredError}
225
- */
226
- deleteFile: async (
227
- workspaceId: string,
228
- path: string,
229
- xDaytonaOrganizationID?: string,
230
- options: RawAxiosRequestConfig = {},
231
- ): Promise<RequestArgs> => {
232
- // verify required parameter 'workspaceId' is not null or undefined
233
- assertParamExists('deleteFile', 'workspaceId', workspaceId)
234
- // verify required parameter 'path' is not null or undefined
235
- assertParamExists('deleteFile', 'path', path)
236
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files`.replace(
237
- `{${'workspaceId'}}`,
238
- encodeURIComponent(String(workspaceId)),
239
- )
240
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
241
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
242
- let baseOptions
243
- if (configuration) {
244
- baseOptions = configuration.baseOptions
245
- }
246
-
247
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
248
- const localVarHeaderParameter = {} as any
249
- const localVarQueryParameter = {} as any
250
-
251
- // authentication bearer required
252
- // http bearer authentication required
253
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
254
-
255
- // authentication oauth2 required
256
- // oauth required
257
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
258
-
259
- if (path !== undefined) {
260
- localVarQueryParameter['path'] = path
261
- }
262
-
263
- if (xDaytonaOrganizationID != null) {
264
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
265
- }
266
- setSearchParams(localVarUrlObj, localVarQueryParameter)
267
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
268
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
269
-
270
- return {
271
- url: toPathString(localVarUrlObj),
272
- options: localVarRequestOptions,
273
- }
274
- },
275
- /**
276
- * Delete a specific session
277
- * @summary Delete session
278
- * @param {string} workspaceId
279
- * @param {string} sessionId
280
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
281
- * @param {*} [options] Override http request option.
282
- * @throws {RequiredError}
283
- */
284
- deleteSession: async (
285
- workspaceId: string,
286
- sessionId: string,
287
- xDaytonaOrganizationID?: string,
288
- options: RawAxiosRequestConfig = {},
289
- ): Promise<RequestArgs> => {
290
- // verify required parameter 'workspaceId' is not null or undefined
291
- assertParamExists('deleteSession', 'workspaceId', workspaceId)
292
- // verify required parameter 'sessionId' is not null or undefined
293
- assertParamExists('deleteSession', 'sessionId', sessionId)
294
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
295
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
296
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
297
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
299
- let baseOptions
300
- if (configuration) {
301
- baseOptions = configuration.baseOptions
302
- }
303
-
304
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
305
- const localVarHeaderParameter = {} as any
306
- const localVarQueryParameter = {} as any
307
-
308
- // authentication bearer required
309
- // http bearer authentication required
310
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
311
-
312
- // authentication oauth2 required
313
- // oauth required
314
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
315
-
316
- if (xDaytonaOrganizationID != null) {
317
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
318
- }
319
- setSearchParams(localVarUrlObj, localVarQueryParameter)
320
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
321
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
322
-
323
- return {
324
- url: toPathString(localVarUrlObj),
325
- options: localVarRequestOptions,
326
- }
327
- },
328
- /**
329
- * Download file from workspace
330
- * @summary Download file
331
- * @param {string} workspaceId
332
- * @param {string} path
333
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
334
- * @param {*} [options] Override http request option.
335
- * @throws {RequiredError}
336
- */
337
- downloadFile: async (
338
- workspaceId: string,
339
- path: string,
340
- xDaytonaOrganizationID?: string,
341
- options: RawAxiosRequestConfig = {},
342
- ): Promise<RequestArgs> => {
343
- // verify required parameter 'workspaceId' is not null or undefined
344
- assertParamExists('downloadFile', 'workspaceId', workspaceId)
345
- // verify required parameter 'path' is not null or undefined
346
- assertParamExists('downloadFile', 'path', path)
347
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/download`.replace(
348
- `{${'workspaceId'}}`,
349
- encodeURIComponent(String(workspaceId)),
350
- )
351
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
352
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
353
- let baseOptions
354
- if (configuration) {
355
- baseOptions = configuration.baseOptions
356
- }
357
-
358
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
359
- const localVarHeaderParameter = {} as any
360
- const localVarQueryParameter = {} as any
361
-
362
- // authentication bearer required
363
- // http bearer authentication required
364
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
365
-
366
- // authentication oauth2 required
367
- // oauth required
368
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
369
-
370
- if (path !== undefined) {
371
- localVarQueryParameter['path'] = path
372
- }
373
-
374
- if (xDaytonaOrganizationID != null) {
375
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
376
- }
377
- setSearchParams(localVarUrlObj, localVarQueryParameter)
378
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
379
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
380
-
381
- return {
382
- url: toPathString(localVarUrlObj),
383
- options: localVarRequestOptions,
384
- }
385
- },
386
- /**
387
- * Execute command synchronously inside workspace
388
- * @summary Execute command
389
- * @param {string} workspaceId
390
- * @param {ExecuteRequest} executeRequest
391
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
392
- * @param {*} [options] Override http request option.
393
- * @throws {RequiredError}
394
- */
395
- executeCommand: async (
396
- workspaceId: string,
397
- executeRequest: ExecuteRequest,
398
- xDaytonaOrganizationID?: string,
399
- options: RawAxiosRequestConfig = {},
400
- ): Promise<RequestArgs> => {
401
- // verify required parameter 'workspaceId' is not null or undefined
402
- assertParamExists('executeCommand', 'workspaceId', workspaceId)
403
- // verify required parameter 'executeRequest' is not null or undefined
404
- assertParamExists('executeCommand', 'executeRequest', executeRequest)
405
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`.replace(
406
- `{${'workspaceId'}}`,
407
- encodeURIComponent(String(workspaceId)),
408
- )
409
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
410
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
411
- let baseOptions
412
- if (configuration) {
413
- baseOptions = configuration.baseOptions
414
- }
415
-
416
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
417
- const localVarHeaderParameter = {} as any
418
- const localVarQueryParameter = {} as any
419
-
420
- // authentication bearer required
421
- // http bearer authentication required
422
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
423
-
424
- // authentication oauth2 required
425
- // oauth required
426
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
427
-
428
- localVarHeaderParameter['Content-Type'] = 'application/json'
429
-
430
- if (xDaytonaOrganizationID != null) {
431
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
432
- }
433
- setSearchParams(localVarUrlObj, localVarQueryParameter)
434
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
435
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
436
- localVarRequestOptions.data = serializeDataIfNeeded(executeRequest, localVarRequestOptions, configuration)
437
-
438
- return {
439
- url: toPathString(localVarUrlObj),
440
- options: localVarRequestOptions,
441
- }
442
- },
443
- /**
444
- * Execute a command in a specific session
445
- * @summary Execute command in session
446
- * @param {string} workspaceId
447
- * @param {string} sessionId
448
- * @param {SessionExecuteRequest} sessionExecuteRequest
449
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
450
- * @param {*} [options] Override http request option.
451
- * @throws {RequiredError}
452
- */
453
- executeSessionCommand: async (
454
- workspaceId: string,
455
- sessionId: string,
456
- sessionExecuteRequest: SessionExecuteRequest,
457
- xDaytonaOrganizationID?: string,
458
- options: RawAxiosRequestConfig = {},
459
- ): Promise<RequestArgs> => {
460
- // verify required parameter 'workspaceId' is not null or undefined
461
- assertParamExists('executeSessionCommand', 'workspaceId', workspaceId)
462
- // verify required parameter 'sessionId' is not null or undefined
463
- assertParamExists('executeSessionCommand', 'sessionId', sessionId)
464
- // verify required parameter 'sessionExecuteRequest' is not null or undefined
465
- assertParamExists('executeSessionCommand', 'sessionExecuteRequest', sessionExecuteRequest)
466
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/exec`
467
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
468
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
469
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
471
- let baseOptions
472
- if (configuration) {
473
- baseOptions = configuration.baseOptions
474
- }
475
-
476
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
477
- const localVarHeaderParameter = {} as any
478
- const localVarQueryParameter = {} as any
479
-
480
- // authentication bearer required
481
- // http bearer authentication required
482
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
483
-
484
- // authentication oauth2 required
485
- // oauth required
486
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
487
-
488
- localVarHeaderParameter['Content-Type'] = 'application/json'
489
-
490
- if (xDaytonaOrganizationID != null) {
491
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
492
- }
493
- setSearchParams(localVarUrlObj, localVarQueryParameter)
494
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
495
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
496
- localVarRequestOptions.data = serializeDataIfNeeded(sessionExecuteRequest, localVarRequestOptions, configuration)
497
-
498
- return {
499
- url: toPathString(localVarUrlObj),
500
- options: localVarRequestOptions,
501
- }
502
- },
503
- /**
504
- * Search for text/pattern inside workspace files
505
- * @summary Search for text/pattern in files
506
- * @param {string} workspaceId
507
- * @param {string} path
508
- * @param {string} pattern
509
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- */
513
- findInFiles: async (
514
- workspaceId: string,
515
- path: string,
516
- pattern: string,
517
- xDaytonaOrganizationID?: string,
518
- options: RawAxiosRequestConfig = {},
519
- ): Promise<RequestArgs> => {
520
- // verify required parameter 'workspaceId' is not null or undefined
521
- assertParamExists('findInFiles', 'workspaceId', workspaceId)
522
- // verify required parameter 'path' is not null or undefined
523
- assertParamExists('findInFiles', 'path', path)
524
- // verify required parameter 'pattern' is not null or undefined
525
- assertParamExists('findInFiles', 'pattern', pattern)
526
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/find`.replace(
527
- `{${'workspaceId'}}`,
528
- encodeURIComponent(String(workspaceId)),
529
- )
530
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
531
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
532
- let baseOptions
533
- if (configuration) {
534
- baseOptions = configuration.baseOptions
535
- }
536
-
537
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
538
- const localVarHeaderParameter = {} as any
539
- const localVarQueryParameter = {} as any
540
-
541
- // authentication bearer required
542
- // http bearer authentication required
543
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
544
-
545
- // authentication oauth2 required
546
- // oauth required
547
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
548
-
549
- if (path !== undefined) {
550
- localVarQueryParameter['path'] = path
551
- }
552
-
553
- if (pattern !== undefined) {
554
- localVarQueryParameter['pattern'] = pattern
555
- }
556
-
557
- if (xDaytonaOrganizationID != null) {
558
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
559
- }
560
- setSearchParams(localVarUrlObj, localVarQueryParameter)
561
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
562
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
563
-
564
- return {
565
- url: toPathString(localVarUrlObj),
566
- options: localVarRequestOptions,
567
- }
568
- },
569
- /**
570
- * Get file info inside workspace
571
- * @summary Get file info
572
- * @param {string} workspaceId
573
- * @param {string} path
574
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- getFileInfo: async (
579
- workspaceId: string,
580
- path: string,
581
- xDaytonaOrganizationID?: string,
582
- options: RawAxiosRequestConfig = {},
583
- ): Promise<RequestArgs> => {
584
- // verify required parameter 'workspaceId' is not null or undefined
585
- assertParamExists('getFileInfo', 'workspaceId', workspaceId)
586
- // verify required parameter 'path' is not null or undefined
587
- assertParamExists('getFileInfo', 'path', path)
588
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/info`.replace(
589
- `{${'workspaceId'}}`,
590
- encodeURIComponent(String(workspaceId)),
591
- )
592
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
593
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
594
- let baseOptions
595
- if (configuration) {
596
- baseOptions = configuration.baseOptions
597
- }
598
-
599
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
600
- const localVarHeaderParameter = {} as any
601
- const localVarQueryParameter = {} as any
602
-
603
- // authentication bearer required
604
- // http bearer authentication required
605
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
606
-
607
- // authentication oauth2 required
608
- // oauth required
609
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
610
-
611
- if (path !== undefined) {
612
- localVarQueryParameter['path'] = path
613
- }
614
-
615
- if (xDaytonaOrganizationID != null) {
616
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
617
- }
618
- setSearchParams(localVarUrlObj, localVarQueryParameter)
619
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
620
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
621
-
622
- return {
623
- url: toPathString(localVarUrlObj),
624
- options: localVarRequestOptions,
625
- }
626
- },
627
- /**
628
- *
629
- * @summary Get workspace project dir
630
- * @param {string} workspaceId
631
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
632
- * @param {*} [options] Override http request option.
633
- * @throws {RequiredError}
634
- */
635
- getProjectDir: async (
636
- workspaceId: string,
637
- xDaytonaOrganizationID?: string,
638
- options: RawAxiosRequestConfig = {},
639
- ): Promise<RequestArgs> => {
640
- // verify required parameter 'workspaceId' is not null or undefined
641
- assertParamExists('getProjectDir', 'workspaceId', workspaceId)
642
- const localVarPath = `/toolbox/{workspaceId}/toolbox/project-dir`.replace(
643
- `{${'workspaceId'}}`,
644
- encodeURIComponent(String(workspaceId)),
645
- )
646
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
647
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
648
- let baseOptions
649
- if (configuration) {
650
- baseOptions = configuration.baseOptions
651
- }
652
-
653
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
654
- const localVarHeaderParameter = {} as any
655
- const localVarQueryParameter = {} as any
656
-
657
- // authentication bearer required
658
- // http bearer authentication required
659
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
660
-
661
- // authentication oauth2 required
662
- // oauth required
663
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
664
-
665
- if (xDaytonaOrganizationID != null) {
666
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
667
- }
668
- setSearchParams(localVarUrlObj, localVarQueryParameter)
669
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
670
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
671
-
672
- return {
673
- url: toPathString(localVarUrlObj),
674
- options: localVarRequestOptions,
675
- }
676
- },
677
- /**
678
- * Get session by ID
679
- * @summary Get session
680
- * @param {string} workspaceId
681
- * @param {string} sessionId
682
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
683
- * @param {*} [options] Override http request option.
684
- * @throws {RequiredError}
685
- */
686
- getSession: async (
687
- workspaceId: string,
688
- sessionId: string,
689
- xDaytonaOrganizationID?: string,
690
- options: RawAxiosRequestConfig = {},
691
- ): Promise<RequestArgs> => {
692
- // verify required parameter 'workspaceId' is not null or undefined
693
- assertParamExists('getSession', 'workspaceId', workspaceId)
694
- // verify required parameter 'sessionId' is not null or undefined
695
- assertParamExists('getSession', 'sessionId', sessionId)
696
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}`
697
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
698
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
699
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
700
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
701
- let baseOptions
702
- if (configuration) {
703
- baseOptions = configuration.baseOptions
704
- }
705
-
706
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
707
- const localVarHeaderParameter = {} as any
708
- const localVarQueryParameter = {} as any
709
-
710
- // authentication bearer required
711
- // http bearer authentication required
712
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
713
-
714
- // authentication oauth2 required
715
- // oauth required
716
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
717
-
718
- if (xDaytonaOrganizationID != null) {
719
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
720
- }
721
- setSearchParams(localVarUrlObj, localVarQueryParameter)
722
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
723
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
724
-
725
- return {
726
- url: toPathString(localVarUrlObj),
727
- options: localVarRequestOptions,
728
- }
729
- },
730
- /**
731
- * Get session command by ID
732
- * @summary Get session command
733
- * @param {string} workspaceId
734
- * @param {string} sessionId
735
- * @param {string} commandId
736
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- */
740
- getSessionCommand: async (
741
- workspaceId: string,
742
- sessionId: string,
743
- commandId: string,
744
- xDaytonaOrganizationID?: string,
745
- options: RawAxiosRequestConfig = {},
746
- ): Promise<RequestArgs> => {
747
- // verify required parameter 'workspaceId' is not null or undefined
748
- assertParamExists('getSessionCommand', 'workspaceId', workspaceId)
749
- // verify required parameter 'sessionId' is not null or undefined
750
- assertParamExists('getSessionCommand', 'sessionId', sessionId)
751
- // verify required parameter 'commandId' is not null or undefined
752
- assertParamExists('getSessionCommand', 'commandId', commandId)
753
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}`
754
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
755
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
756
- .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)))
757
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
758
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
759
- let baseOptions
760
- if (configuration) {
761
- baseOptions = configuration.baseOptions
762
- }
763
-
764
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
765
- const localVarHeaderParameter = {} as any
766
- const localVarQueryParameter = {} as any
767
-
768
- // authentication bearer required
769
- // http bearer authentication required
770
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
771
-
772
- // authentication oauth2 required
773
- // oauth required
774
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
775
-
776
- if (xDaytonaOrganizationID != null) {
777
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
778
- }
779
- setSearchParams(localVarUrlObj, localVarQueryParameter)
780
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
781
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
782
-
783
- return {
784
- url: toPathString(localVarUrlObj),
785
- options: localVarRequestOptions,
786
- }
787
- },
788
- /**
789
- * Get logs for a specific command in a session
790
- * @summary Get command logs
791
- * @param {string} workspaceId
792
- * @param {string} sessionId
793
- * @param {string} commandId
794
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
795
- * @param {boolean} [follow]
796
- * @param {*} [options] Override http request option.
797
- * @throws {RequiredError}
798
- */
799
- getSessionCommandLogs: async (
800
- workspaceId: string,
801
- sessionId: string,
802
- commandId: string,
803
- xDaytonaOrganizationID?: string,
804
- follow?: boolean,
805
- options: RawAxiosRequestConfig = {},
806
- ): Promise<RequestArgs> => {
807
- // verify required parameter 'workspaceId' is not null or undefined
808
- assertParamExists('getSessionCommandLogs', 'workspaceId', workspaceId)
809
- // verify required parameter 'sessionId' is not null or undefined
810
- assertParamExists('getSessionCommandLogs', 'sessionId', sessionId)
811
- // verify required parameter 'commandId' is not null or undefined
812
- assertParamExists('getSessionCommandLogs', 'commandId', commandId)
813
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session/{sessionId}/command/{commandId}/logs`
814
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
815
- .replace(`{${'sessionId'}}`, encodeURIComponent(String(sessionId)))
816
- .replace(`{${'commandId'}}`, encodeURIComponent(String(commandId)))
817
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
818
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
819
- let baseOptions
820
- if (configuration) {
821
- baseOptions = configuration.baseOptions
822
- }
823
-
824
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
825
- const localVarHeaderParameter = {} as any
826
- const localVarQueryParameter = {} as any
827
-
828
- // authentication bearer required
829
- // http bearer authentication required
830
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
831
-
832
- // authentication oauth2 required
833
- // oauth required
834
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
835
-
836
- if (follow !== undefined) {
837
- localVarQueryParameter['follow'] = follow
838
- }
839
-
840
- if (xDaytonaOrganizationID != null) {
841
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
842
- }
843
- setSearchParams(localVarUrlObj, localVarQueryParameter)
844
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
845
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
846
-
847
- return {
848
- url: toPathString(localVarUrlObj),
849
- options: localVarRequestOptions,
850
- }
851
- },
852
- /**
853
- * Add files to git commit
854
- * @summary Add files
855
- * @param {string} workspaceId
856
- * @param {GitAddRequest} gitAddRequest
857
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
858
- * @param {*} [options] Override http request option.
859
- * @throws {RequiredError}
860
- */
861
- gitAddFiles: async (
862
- workspaceId: string,
863
- gitAddRequest: GitAddRequest,
864
- xDaytonaOrganizationID?: string,
865
- options: RawAxiosRequestConfig = {},
866
- ): Promise<RequestArgs> => {
867
- // verify required parameter 'workspaceId' is not null or undefined
868
- assertParamExists('gitAddFiles', 'workspaceId', workspaceId)
869
- // verify required parameter 'gitAddRequest' is not null or undefined
870
- assertParamExists('gitAddFiles', 'gitAddRequest', gitAddRequest)
871
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`.replace(
872
- `{${'workspaceId'}}`,
873
- encodeURIComponent(String(workspaceId)),
874
- )
875
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
876
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
877
- let baseOptions
878
- if (configuration) {
879
- baseOptions = configuration.baseOptions
880
- }
881
-
882
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
883
- const localVarHeaderParameter = {} as any
884
- const localVarQueryParameter = {} as any
885
-
886
- // authentication bearer required
887
- // http bearer authentication required
888
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
889
-
890
- // authentication oauth2 required
891
- // oauth required
892
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
893
-
894
- localVarHeaderParameter['Content-Type'] = 'application/json'
895
-
896
- if (xDaytonaOrganizationID != null) {
897
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
898
- }
899
- setSearchParams(localVarUrlObj, localVarQueryParameter)
900
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
901
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
902
- localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequest, localVarRequestOptions, configuration)
903
-
904
- return {
905
- url: toPathString(localVarUrlObj),
906
- options: localVarRequestOptions,
907
- }
908
- },
909
- /**
910
- * Clone git repository
911
- * @summary Clone repository
912
- * @param {string} workspaceId
913
- * @param {GitCloneRequest} gitCloneRequest
914
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- */
918
- gitCloneRepository: async (
919
- workspaceId: string,
920
- gitCloneRequest: GitCloneRequest,
921
- xDaytonaOrganizationID?: string,
922
- options: RawAxiosRequestConfig = {},
923
- ): Promise<RequestArgs> => {
924
- // verify required parameter 'workspaceId' is not null or undefined
925
- assertParamExists('gitCloneRepository', 'workspaceId', workspaceId)
926
- // verify required parameter 'gitCloneRequest' is not null or undefined
927
- assertParamExists('gitCloneRepository', 'gitCloneRequest', gitCloneRequest)
928
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`.replace(
929
- `{${'workspaceId'}}`,
930
- encodeURIComponent(String(workspaceId)),
931
- )
932
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
933
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
934
- let baseOptions
935
- if (configuration) {
936
- baseOptions = configuration.baseOptions
937
- }
938
-
939
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
940
- const localVarHeaderParameter = {} as any
941
- const localVarQueryParameter = {} as any
942
-
943
- // authentication bearer required
944
- // http bearer authentication required
945
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
946
-
947
- // authentication oauth2 required
948
- // oauth required
949
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
950
-
951
- localVarHeaderParameter['Content-Type'] = 'application/json'
952
-
953
- if (xDaytonaOrganizationID != null) {
954
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
955
- }
956
- setSearchParams(localVarUrlObj, localVarQueryParameter)
957
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
958
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
959
- localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequest, localVarRequestOptions, configuration)
960
-
961
- return {
962
- url: toPathString(localVarUrlObj),
963
- options: localVarRequestOptions,
964
- }
965
- },
966
- /**
967
- * Commit changes to git repository
968
- * @summary Commit changes
969
- * @param {string} workspaceId
970
- * @param {GitCommitRequest} gitCommitRequest
971
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
972
- * @param {*} [options] Override http request option.
973
- * @throws {RequiredError}
974
- */
975
- gitCommitChanges: async (
976
- workspaceId: string,
977
- gitCommitRequest: GitCommitRequest,
978
- xDaytonaOrganizationID?: string,
979
- options: RawAxiosRequestConfig = {},
980
- ): Promise<RequestArgs> => {
981
- // verify required parameter 'workspaceId' is not null or undefined
982
- assertParamExists('gitCommitChanges', 'workspaceId', workspaceId)
983
- // verify required parameter 'gitCommitRequest' is not null or undefined
984
- assertParamExists('gitCommitChanges', 'gitCommitRequest', gitCommitRequest)
985
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`.replace(
986
- `{${'workspaceId'}}`,
987
- encodeURIComponent(String(workspaceId)),
988
- )
989
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
990
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
991
- let baseOptions
992
- if (configuration) {
993
- baseOptions = configuration.baseOptions
994
- }
995
-
996
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
997
- const localVarHeaderParameter = {} as any
998
- const localVarQueryParameter = {} as any
999
-
1000
- // authentication bearer required
1001
- // http bearer authentication required
1002
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1003
-
1004
- // authentication oauth2 required
1005
- // oauth required
1006
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1007
-
1008
- localVarHeaderParameter['Content-Type'] = 'application/json'
1009
-
1010
- if (xDaytonaOrganizationID != null) {
1011
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1012
- }
1013
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1014
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1015
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1016
- localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequest, localVarRequestOptions, configuration)
1017
-
1018
- return {
1019
- url: toPathString(localVarUrlObj),
1020
- options: localVarRequestOptions,
1021
- }
1022
- },
1023
- /**
1024
- * Create branch on git repository
1025
- * @summary Create branch
1026
- * @param {string} workspaceId
1027
- * @param {GitBranchRequest} gitBranchRequest
1028
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1029
- * @param {*} [options] Override http request option.
1030
- * @throws {RequiredError}
1031
- */
1032
- gitCreateBranch: async (
1033
- workspaceId: string,
1034
- gitBranchRequest: GitBranchRequest,
1035
- xDaytonaOrganizationID?: string,
1036
- options: RawAxiosRequestConfig = {},
1037
- ): Promise<RequestArgs> => {
1038
- // verify required parameter 'workspaceId' is not null or undefined
1039
- assertParamExists('gitCreateBranch', 'workspaceId', workspaceId)
1040
- // verify required parameter 'gitBranchRequest' is not null or undefined
1041
- assertParamExists('gitCreateBranch', 'gitBranchRequest', gitBranchRequest)
1042
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`.replace(
1043
- `{${'workspaceId'}}`,
1044
- encodeURIComponent(String(workspaceId)),
1045
- )
1046
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1047
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1048
- let baseOptions
1049
- if (configuration) {
1050
- baseOptions = configuration.baseOptions
1051
- }
1052
-
1053
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1054
- const localVarHeaderParameter = {} as any
1055
- const localVarQueryParameter = {} as any
1056
-
1057
- // authentication bearer required
1058
- // http bearer authentication required
1059
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1060
-
1061
- // authentication oauth2 required
1062
- // oauth required
1063
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1064
-
1065
- localVarHeaderParameter['Content-Type'] = 'application/json'
1066
-
1067
- if (xDaytonaOrganizationID != null) {
1068
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1069
- }
1070
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1071
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1072
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1073
- localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequest, localVarRequestOptions, configuration)
1074
-
1075
- return {
1076
- url: toPathString(localVarUrlObj),
1077
- options: localVarRequestOptions,
1078
- }
1079
- },
1080
- /**
1081
- * Get commit history from git repository
1082
- * @summary Get commit history
1083
- * @param {string} workspaceId
1084
- * @param {string} path
1085
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1086
- * @param {*} [options] Override http request option.
1087
- * @throws {RequiredError}
1088
- */
1089
- gitGetHistory: async (
1090
- workspaceId: string,
1091
- path: string,
1092
- xDaytonaOrganizationID?: string,
1093
- options: RawAxiosRequestConfig = {},
1094
- ): Promise<RequestArgs> => {
1095
- // verify required parameter 'workspaceId' is not null or undefined
1096
- assertParamExists('gitGetHistory', 'workspaceId', workspaceId)
1097
- // verify required parameter 'path' is not null or undefined
1098
- assertParamExists('gitGetHistory', 'path', path)
1099
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/history`.replace(
1100
- `{${'workspaceId'}}`,
1101
- encodeURIComponent(String(workspaceId)),
1102
- )
1103
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1104
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1105
- let baseOptions
1106
- if (configuration) {
1107
- baseOptions = configuration.baseOptions
1108
- }
1109
-
1110
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1111
- const localVarHeaderParameter = {} as any
1112
- const localVarQueryParameter = {} as any
1113
-
1114
- // authentication bearer required
1115
- // http bearer authentication required
1116
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1117
-
1118
- // authentication oauth2 required
1119
- // oauth required
1120
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1121
-
1122
- if (path !== undefined) {
1123
- localVarQueryParameter['path'] = path
1124
- }
1125
-
1126
- if (xDaytonaOrganizationID != null) {
1127
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1128
- }
1129
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1130
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1131
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1132
-
1133
- return {
1134
- url: toPathString(localVarUrlObj),
1135
- options: localVarRequestOptions,
1136
- }
1137
- },
1138
- /**
1139
- * Get status from git repository
1140
- * @summary Get git status
1141
- * @param {string} workspaceId
1142
- * @param {string} path
1143
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1144
- * @param {*} [options] Override http request option.
1145
- * @throws {RequiredError}
1146
- */
1147
- gitGetStatus: async (
1148
- workspaceId: string,
1149
- path: string,
1150
- xDaytonaOrganizationID?: string,
1151
- options: RawAxiosRequestConfig = {},
1152
- ): Promise<RequestArgs> => {
1153
- // verify required parameter 'workspaceId' is not null or undefined
1154
- assertParamExists('gitGetStatus', 'workspaceId', workspaceId)
1155
- // verify required parameter 'path' is not null or undefined
1156
- assertParamExists('gitGetStatus', 'path', path)
1157
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/status`.replace(
1158
- `{${'workspaceId'}}`,
1159
- encodeURIComponent(String(workspaceId)),
1160
- )
1161
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1162
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1163
- let baseOptions
1164
- if (configuration) {
1165
- baseOptions = configuration.baseOptions
1166
- }
1167
-
1168
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1169
- const localVarHeaderParameter = {} as any
1170
- const localVarQueryParameter = {} as any
1171
-
1172
- // authentication bearer required
1173
- // http bearer authentication required
1174
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1175
-
1176
- // authentication oauth2 required
1177
- // oauth required
1178
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1179
-
1180
- if (path !== undefined) {
1181
- localVarQueryParameter['path'] = path
1182
- }
1183
-
1184
- if (xDaytonaOrganizationID != null) {
1185
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1186
- }
1187
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1188
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1189
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1190
-
1191
- return {
1192
- url: toPathString(localVarUrlObj),
1193
- options: localVarRequestOptions,
1194
- }
1195
- },
1196
- /**
1197
- * Get branch list from git repository
1198
- * @summary Get branch list
1199
- * @param {string} workspaceId
1200
- * @param {string} path
1201
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1202
- * @param {*} [options] Override http request option.
1203
- * @throws {RequiredError}
1204
- */
1205
- gitListBranches: async (
1206
- workspaceId: string,
1207
- path: string,
1208
- xDaytonaOrganizationID?: string,
1209
- options: RawAxiosRequestConfig = {},
1210
- ): Promise<RequestArgs> => {
1211
- // verify required parameter 'workspaceId' is not null or undefined
1212
- assertParamExists('gitListBranches', 'workspaceId', workspaceId)
1213
- // verify required parameter 'path' is not null or undefined
1214
- assertParamExists('gitListBranches', 'path', path)
1215
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`.replace(
1216
- `{${'workspaceId'}}`,
1217
- encodeURIComponent(String(workspaceId)),
1218
- )
1219
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1220
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1221
- let baseOptions
1222
- if (configuration) {
1223
- baseOptions = configuration.baseOptions
1224
- }
1225
-
1226
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1227
- const localVarHeaderParameter = {} as any
1228
- const localVarQueryParameter = {} as any
1229
-
1230
- // authentication bearer required
1231
- // http bearer authentication required
1232
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1233
-
1234
- // authentication oauth2 required
1235
- // oauth required
1236
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1237
-
1238
- if (path !== undefined) {
1239
- localVarQueryParameter['path'] = path
1240
- }
1241
-
1242
- if (xDaytonaOrganizationID != null) {
1243
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1244
- }
1245
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1246
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1247
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1248
-
1249
- return {
1250
- url: toPathString(localVarUrlObj),
1251
- options: localVarRequestOptions,
1252
- }
1253
- },
1254
- /**
1255
- * Pull changes from remote
1256
- * @summary Pull changes
1257
- * @param {string} workspaceId
1258
- * @param {GitRepoRequest} gitRepoRequest
1259
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1260
- * @param {*} [options] Override http request option.
1261
- * @throws {RequiredError}
1262
- */
1263
- gitPullChanges: async (
1264
- workspaceId: string,
1265
- gitRepoRequest: GitRepoRequest,
1266
- xDaytonaOrganizationID?: string,
1267
- options: RawAxiosRequestConfig = {},
1268
- ): Promise<RequestArgs> => {
1269
- // verify required parameter 'workspaceId' is not null or undefined
1270
- assertParamExists('gitPullChanges', 'workspaceId', workspaceId)
1271
- // verify required parameter 'gitRepoRequest' is not null or undefined
1272
- assertParamExists('gitPullChanges', 'gitRepoRequest', gitRepoRequest)
1273
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`.replace(
1274
- `{${'workspaceId'}}`,
1275
- encodeURIComponent(String(workspaceId)),
1276
- )
1277
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1278
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1279
- let baseOptions
1280
- if (configuration) {
1281
- baseOptions = configuration.baseOptions
1282
- }
1283
-
1284
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1285
- const localVarHeaderParameter = {} as any
1286
- const localVarQueryParameter = {} as any
1287
-
1288
- // authentication bearer required
1289
- // http bearer authentication required
1290
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1291
-
1292
- // authentication oauth2 required
1293
- // oauth required
1294
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1295
-
1296
- localVarHeaderParameter['Content-Type'] = 'application/json'
1297
-
1298
- if (xDaytonaOrganizationID != null) {
1299
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1300
- }
1301
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1302
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1303
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1304
- localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
1305
-
1306
- return {
1307
- url: toPathString(localVarUrlObj),
1308
- options: localVarRequestOptions,
1309
- }
1310
- },
1311
- /**
1312
- * Push changes to remote
1313
- * @summary Push changes
1314
- * @param {string} workspaceId
1315
- * @param {GitRepoRequest} gitRepoRequest
1316
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1317
- * @param {*} [options] Override http request option.
1318
- * @throws {RequiredError}
1319
- */
1320
- gitPushChanges: async (
1321
- workspaceId: string,
1322
- gitRepoRequest: GitRepoRequest,
1323
- xDaytonaOrganizationID?: string,
1324
- options: RawAxiosRequestConfig = {},
1325
- ): Promise<RequestArgs> => {
1326
- // verify required parameter 'workspaceId' is not null or undefined
1327
- assertParamExists('gitPushChanges', 'workspaceId', workspaceId)
1328
- // verify required parameter 'gitRepoRequest' is not null or undefined
1329
- assertParamExists('gitPushChanges', 'gitRepoRequest', gitRepoRequest)
1330
- const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`.replace(
1331
- `{${'workspaceId'}}`,
1332
- encodeURIComponent(String(workspaceId)),
1333
- )
1334
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1335
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1336
- let baseOptions
1337
- if (configuration) {
1338
- baseOptions = configuration.baseOptions
1339
- }
1340
-
1341
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1342
- const localVarHeaderParameter = {} as any
1343
- const localVarQueryParameter = {} as any
1344
-
1345
- // authentication bearer required
1346
- // http bearer authentication required
1347
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1348
-
1349
- // authentication oauth2 required
1350
- // oauth required
1351
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1352
-
1353
- localVarHeaderParameter['Content-Type'] = 'application/json'
1354
-
1355
- if (xDaytonaOrganizationID != null) {
1356
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1357
- }
1358
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1359
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1360
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1361
- localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
1362
-
1363
- return {
1364
- url: toPathString(localVarUrlObj),
1365
- options: localVarRequestOptions,
1366
- }
1367
- },
1368
- /**
1369
- *
1370
- * @summary List files
1371
- * @param {string} workspaceId
1372
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1373
- * @param {string} [path]
1374
- * @param {*} [options] Override http request option.
1375
- * @throws {RequiredError}
1376
- */
1377
- listFiles: async (
1378
- workspaceId: string,
1379
- xDaytonaOrganizationID?: string,
1380
- path?: string,
1381
- options: RawAxiosRequestConfig = {},
1382
- ): Promise<RequestArgs> => {
1383
- // verify required parameter 'workspaceId' is not null or undefined
1384
- assertParamExists('listFiles', 'workspaceId', workspaceId)
1385
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files`.replace(
1386
- `{${'workspaceId'}}`,
1387
- encodeURIComponent(String(workspaceId)),
1388
- )
1389
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1390
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1391
- let baseOptions
1392
- if (configuration) {
1393
- baseOptions = configuration.baseOptions
1394
- }
1395
-
1396
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1397
- const localVarHeaderParameter = {} as any
1398
- const localVarQueryParameter = {} as any
1399
-
1400
- // authentication bearer required
1401
- // http bearer authentication required
1402
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1403
-
1404
- // authentication oauth2 required
1405
- // oauth required
1406
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1407
-
1408
- if (path !== undefined) {
1409
- localVarQueryParameter['path'] = path
1410
- }
1411
-
1412
- if (xDaytonaOrganizationID != null) {
1413
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1414
- }
1415
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1416
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1417
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1418
-
1419
- return {
1420
- url: toPathString(localVarUrlObj),
1421
- options: localVarRequestOptions,
1422
- }
1423
- },
1424
- /**
1425
- * List all active sessions in the workspace
1426
- * @summary List sessions
1427
- * @param {string} workspaceId
1428
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1429
- * @param {*} [options] Override http request option.
1430
- * @throws {RequiredError}
1431
- */
1432
- listSessions: async (
1433
- workspaceId: string,
1434
- xDaytonaOrganizationID?: string,
1435
- options: RawAxiosRequestConfig = {},
1436
- ): Promise<RequestArgs> => {
1437
- // verify required parameter 'workspaceId' is not null or undefined
1438
- assertParamExists('listSessions', 'workspaceId', workspaceId)
1439
- const localVarPath = `/toolbox/{workspaceId}/toolbox/process/session`.replace(
1440
- `{${'workspaceId'}}`,
1441
- encodeURIComponent(String(workspaceId)),
1442
- )
1443
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1444
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1445
- let baseOptions
1446
- if (configuration) {
1447
- baseOptions = configuration.baseOptions
1448
- }
1449
-
1450
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1451
- const localVarHeaderParameter = {} as any
1452
- const localVarQueryParameter = {} as any
1453
-
1454
- // authentication bearer required
1455
- // http bearer authentication required
1456
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1457
-
1458
- // authentication oauth2 required
1459
- // oauth required
1460
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1461
-
1462
- if (xDaytonaOrganizationID != null) {
1463
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1464
- }
1465
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1466
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1467
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1468
-
1469
- return {
1470
- url: toPathString(localVarUrlObj),
1471
- options: localVarRequestOptions,
1472
- }
1473
- },
1474
- /**
1475
- * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
1476
- * @summary Get Lsp Completions
1477
- * @param {string} workspaceId
1478
- * @param {LspCompletionParams} lspCompletionParams
1479
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1480
- * @param {*} [options] Override http request option.
1481
- * @throws {RequiredError}
1482
- */
1483
- lspCompletions: async (
1484
- workspaceId: string,
1485
- lspCompletionParams: LspCompletionParams,
1486
- xDaytonaOrganizationID?: string,
1487
- options: RawAxiosRequestConfig = {},
1488
- ): Promise<RequestArgs> => {
1489
- // verify required parameter 'workspaceId' is not null or undefined
1490
- assertParamExists('lspCompletions', 'workspaceId', workspaceId)
1491
- // verify required parameter 'lspCompletionParams' is not null or undefined
1492
- assertParamExists('lspCompletions', 'lspCompletionParams', lspCompletionParams)
1493
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/completions`.replace(
1494
- `{${'workspaceId'}}`,
1495
- encodeURIComponent(String(workspaceId)),
1496
- )
1497
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1498
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1499
- let baseOptions
1500
- if (configuration) {
1501
- baseOptions = configuration.baseOptions
1502
- }
1503
-
1504
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1505
- const localVarHeaderParameter = {} as any
1506
- const localVarQueryParameter = {} as any
1507
-
1508
- // authentication bearer required
1509
- // http bearer authentication required
1510
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1511
-
1512
- // authentication oauth2 required
1513
- // oauth required
1514
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1515
-
1516
- localVarHeaderParameter['Content-Type'] = 'application/json'
1517
-
1518
- if (xDaytonaOrganizationID != null) {
1519
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1520
- }
1521
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1522
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1523
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1524
- localVarRequestOptions.data = serializeDataIfNeeded(lspCompletionParams, localVarRequestOptions, configuration)
1525
-
1526
- return {
1527
- url: toPathString(localVarUrlObj),
1528
- options: localVarRequestOptions,
1529
- }
1530
- },
1531
- /**
1532
- * The document close notification is sent from the client to the server when the document got closed in the client.
1533
- * @summary Call Lsp DidClose
1534
- * @param {string} workspaceId
1535
- * @param {LspDocumentRequest} lspDocumentRequest
1536
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1537
- * @param {*} [options] Override http request option.
1538
- * @throws {RequiredError}
1539
- */
1540
- lspDidClose: async (
1541
- workspaceId: string,
1542
- lspDocumentRequest: LspDocumentRequest,
1543
- xDaytonaOrganizationID?: string,
1544
- options: RawAxiosRequestConfig = {},
1545
- ): Promise<RequestArgs> => {
1546
- // verify required parameter 'workspaceId' is not null or undefined
1547
- assertParamExists('lspDidClose', 'workspaceId', workspaceId)
1548
- // verify required parameter 'lspDocumentRequest' is not null or undefined
1549
- assertParamExists('lspDidClose', 'lspDocumentRequest', lspDocumentRequest)
1550
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-close`.replace(
1551
- `{${'workspaceId'}}`,
1552
- encodeURIComponent(String(workspaceId)),
1553
- )
1554
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1555
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1556
- let baseOptions
1557
- if (configuration) {
1558
- baseOptions = configuration.baseOptions
1559
- }
1560
-
1561
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1562
- const localVarHeaderParameter = {} as any
1563
- const localVarQueryParameter = {} as any
1564
-
1565
- // authentication bearer required
1566
- // http bearer authentication required
1567
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1568
-
1569
- // authentication oauth2 required
1570
- // oauth required
1571
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1572
-
1573
- localVarHeaderParameter['Content-Type'] = 'application/json'
1574
-
1575
- if (xDaytonaOrganizationID != null) {
1576
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1577
- }
1578
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1579
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1580
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1581
- localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
1582
-
1583
- return {
1584
- url: toPathString(localVarUrlObj),
1585
- options: localVarRequestOptions,
1586
- }
1587
- },
1588
- /**
1589
- * The document open notification is sent from the client to the server to signal newly opened text documents.
1590
- * @summary Call Lsp DidOpen
1591
- * @param {string} workspaceId
1592
- * @param {LspDocumentRequest} lspDocumentRequest
1593
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1594
- * @param {*} [options] Override http request option.
1595
- * @throws {RequiredError}
1596
- */
1597
- lspDidOpen: async (
1598
- workspaceId: string,
1599
- lspDocumentRequest: LspDocumentRequest,
1600
- xDaytonaOrganizationID?: string,
1601
- options: RawAxiosRequestConfig = {},
1602
- ): Promise<RequestArgs> => {
1603
- // verify required parameter 'workspaceId' is not null or undefined
1604
- assertParamExists('lspDidOpen', 'workspaceId', workspaceId)
1605
- // verify required parameter 'lspDocumentRequest' is not null or undefined
1606
- assertParamExists('lspDidOpen', 'lspDocumentRequest', lspDocumentRequest)
1607
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/did-open`.replace(
1608
- `{${'workspaceId'}}`,
1609
- encodeURIComponent(String(workspaceId)),
1610
- )
1611
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1612
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1613
- let baseOptions
1614
- if (configuration) {
1615
- baseOptions = configuration.baseOptions
1616
- }
1617
-
1618
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1619
- const localVarHeaderParameter = {} as any
1620
- const localVarQueryParameter = {} as any
1621
-
1622
- // authentication bearer required
1623
- // http bearer authentication required
1624
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1625
-
1626
- // authentication oauth2 required
1627
- // oauth required
1628
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1629
-
1630
- localVarHeaderParameter['Content-Type'] = 'application/json'
1631
-
1632
- if (xDaytonaOrganizationID != null) {
1633
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1634
- }
1635
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1636
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1637
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1638
- localVarRequestOptions.data = serializeDataIfNeeded(lspDocumentRequest, localVarRequestOptions, configuration)
1639
-
1640
- return {
1641
- url: toPathString(localVarUrlObj),
1642
- options: localVarRequestOptions,
1643
- }
1644
- },
1645
- /**
1646
- * The document symbol request is sent from the client to the server.
1647
- * @summary Call Lsp DocumentSymbols
1648
- * @param {string} workspaceId
1649
- * @param {string} languageId
1650
- * @param {string} pathToProject
1651
- * @param {string} uri
1652
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1653
- * @param {*} [options] Override http request option.
1654
- * @throws {RequiredError}
1655
- */
1656
- lspDocumentSymbols: async (
1657
- workspaceId: string,
1658
- languageId: string,
1659
- pathToProject: string,
1660
- uri: string,
1661
- xDaytonaOrganizationID?: string,
1662
- options: RawAxiosRequestConfig = {},
1663
- ): Promise<RequestArgs> => {
1664
- // verify required parameter 'workspaceId' is not null or undefined
1665
- assertParamExists('lspDocumentSymbols', 'workspaceId', workspaceId)
1666
- // verify required parameter 'languageId' is not null or undefined
1667
- assertParamExists('lspDocumentSymbols', 'languageId', languageId)
1668
- // verify required parameter 'pathToProject' is not null or undefined
1669
- assertParamExists('lspDocumentSymbols', 'pathToProject', pathToProject)
1670
- // verify required parameter 'uri' is not null or undefined
1671
- assertParamExists('lspDocumentSymbols', 'uri', uri)
1672
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/document-symbols`.replace(
1673
- `{${'workspaceId'}}`,
1674
- encodeURIComponent(String(workspaceId)),
1675
- )
1676
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1677
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1678
- let baseOptions
1679
- if (configuration) {
1680
- baseOptions = configuration.baseOptions
1681
- }
1682
-
1683
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1684
- const localVarHeaderParameter = {} as any
1685
- const localVarQueryParameter = {} as any
1686
-
1687
- // authentication bearer required
1688
- // http bearer authentication required
1689
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1690
-
1691
- // authentication oauth2 required
1692
- // oauth required
1693
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1694
-
1695
- if (languageId !== undefined) {
1696
- localVarQueryParameter['languageId'] = languageId
1697
- }
1698
-
1699
- if (pathToProject !== undefined) {
1700
- localVarQueryParameter['pathToProject'] = pathToProject
1701
- }
1702
-
1703
- if (uri !== undefined) {
1704
- localVarQueryParameter['uri'] = uri
1705
- }
1706
-
1707
- if (xDaytonaOrganizationID != null) {
1708
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1709
- }
1710
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1711
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1712
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1713
-
1714
- return {
1715
- url: toPathString(localVarUrlObj),
1716
- options: localVarRequestOptions,
1717
- }
1718
- },
1719
- /**
1720
- * Start Lsp server process inside workspace project
1721
- * @summary Start Lsp server
1722
- * @param {string} workspaceId
1723
- * @param {LspServerRequest} lspServerRequest
1724
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1725
- * @param {*} [options] Override http request option.
1726
- * @throws {RequiredError}
1727
- */
1728
- lspStart: async (
1729
- workspaceId: string,
1730
- lspServerRequest: LspServerRequest,
1731
- xDaytonaOrganizationID?: string,
1732
- options: RawAxiosRequestConfig = {},
1733
- ): Promise<RequestArgs> => {
1734
- // verify required parameter 'workspaceId' is not null or undefined
1735
- assertParamExists('lspStart', 'workspaceId', workspaceId)
1736
- // verify required parameter 'lspServerRequest' is not null or undefined
1737
- assertParamExists('lspStart', 'lspServerRequest', lspServerRequest)
1738
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/start`.replace(
1739
- `{${'workspaceId'}}`,
1740
- encodeURIComponent(String(workspaceId)),
1741
- )
1742
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1743
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1744
- let baseOptions
1745
- if (configuration) {
1746
- baseOptions = configuration.baseOptions
1747
- }
1748
-
1749
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1750
- const localVarHeaderParameter = {} as any
1751
- const localVarQueryParameter = {} as any
1752
-
1753
- // authentication bearer required
1754
- // http bearer authentication required
1755
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1756
-
1757
- // authentication oauth2 required
1758
- // oauth required
1759
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1760
-
1761
- localVarHeaderParameter['Content-Type'] = 'application/json'
1762
-
1763
- if (xDaytonaOrganizationID != null) {
1764
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1765
- }
1766
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1767
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1768
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1769
- localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration)
1770
-
1771
- return {
1772
- url: toPathString(localVarUrlObj),
1773
- options: localVarRequestOptions,
1774
- }
1775
- },
1776
- /**
1777
- * Stop Lsp server process inside workspace project
1778
- * @summary Stop Lsp server
1779
- * @param {string} workspaceId
1780
- * @param {LspServerRequest} lspServerRequest
1781
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1782
- * @param {*} [options] Override http request option.
1783
- * @throws {RequiredError}
1784
- */
1785
- lspStop: async (
1786
- workspaceId: string,
1787
- lspServerRequest: LspServerRequest,
1788
- xDaytonaOrganizationID?: string,
1789
- options: RawAxiosRequestConfig = {},
1790
- ): Promise<RequestArgs> => {
1791
- // verify required parameter 'workspaceId' is not null or undefined
1792
- assertParamExists('lspStop', 'workspaceId', workspaceId)
1793
- // verify required parameter 'lspServerRequest' is not null or undefined
1794
- assertParamExists('lspStop', 'lspServerRequest', lspServerRequest)
1795
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/stop`.replace(
1796
- `{${'workspaceId'}}`,
1797
- encodeURIComponent(String(workspaceId)),
1798
- )
1799
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1800
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1801
- let baseOptions
1802
- if (configuration) {
1803
- baseOptions = configuration.baseOptions
1804
- }
1805
-
1806
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1807
- const localVarHeaderParameter = {} as any
1808
- const localVarQueryParameter = {} as any
1809
-
1810
- // authentication bearer required
1811
- // http bearer authentication required
1812
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1813
-
1814
- // authentication oauth2 required
1815
- // oauth required
1816
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1817
-
1818
- localVarHeaderParameter['Content-Type'] = 'application/json'
1819
-
1820
- if (xDaytonaOrganizationID != null) {
1821
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1822
- }
1823
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1824
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1825
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1826
- localVarRequestOptions.data = serializeDataIfNeeded(lspServerRequest, localVarRequestOptions, configuration)
1827
-
1828
- return {
1829
- url: toPathString(localVarUrlObj),
1830
- options: localVarRequestOptions,
1831
- }
1832
- },
1833
- /**
1834
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
1835
- * @summary Call Lsp WorkspaceSymbols
1836
- * @param {string} workspaceId
1837
- * @param {string} languageId
1838
- * @param {string} pathToProject
1839
- * @param {string} query
1840
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1841
- * @param {*} [options] Override http request option.
1842
- * @throws {RequiredError}
1843
- */
1844
- lspWorkspaceSymbols: async (
1845
- workspaceId: string,
1846
- languageId: string,
1847
- pathToProject: string,
1848
- query: string,
1849
- xDaytonaOrganizationID?: string,
1850
- options: RawAxiosRequestConfig = {},
1851
- ): Promise<RequestArgs> => {
1852
- // verify required parameter 'workspaceId' is not null or undefined
1853
- assertParamExists('lspWorkspaceSymbols', 'workspaceId', workspaceId)
1854
- // verify required parameter 'languageId' is not null or undefined
1855
- assertParamExists('lspWorkspaceSymbols', 'languageId', languageId)
1856
- // verify required parameter 'pathToProject' is not null or undefined
1857
- assertParamExists('lspWorkspaceSymbols', 'pathToProject', pathToProject)
1858
- // verify required parameter 'query' is not null or undefined
1859
- assertParamExists('lspWorkspaceSymbols', 'query', query)
1860
- const localVarPath = `/toolbox/{workspaceId}/toolbox/lsp/workspace-symbols`.replace(
1861
- `{${'workspaceId'}}`,
1862
- encodeURIComponent(String(workspaceId)),
1863
- )
1864
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1865
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1866
- let baseOptions
1867
- if (configuration) {
1868
- baseOptions = configuration.baseOptions
1869
- }
1870
-
1871
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
1872
- const localVarHeaderParameter = {} as any
1873
- const localVarQueryParameter = {} as any
1874
-
1875
- // authentication bearer required
1876
- // http bearer authentication required
1877
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1878
-
1879
- // authentication oauth2 required
1880
- // oauth required
1881
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1882
-
1883
- if (languageId !== undefined) {
1884
- localVarQueryParameter['languageId'] = languageId
1885
- }
1886
-
1887
- if (pathToProject !== undefined) {
1888
- localVarQueryParameter['pathToProject'] = pathToProject
1889
- }
1890
-
1891
- if (query !== undefined) {
1892
- localVarQueryParameter['query'] = query
1893
- }
1894
-
1895
- if (xDaytonaOrganizationID != null) {
1896
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1897
- }
1898
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1899
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1900
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1901
-
1902
- return {
1903
- url: toPathString(localVarUrlObj),
1904
- options: localVarRequestOptions,
1905
- }
1906
- },
1907
- /**
1908
- * Move file inside workspace
1909
- * @summary Move file
1910
- * @param {string} workspaceId
1911
- * @param {string} source
1912
- * @param {string} destination
1913
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1914
- * @param {*} [options] Override http request option.
1915
- * @throws {RequiredError}
1916
- */
1917
- moveFile: async (
1918
- workspaceId: string,
1919
- source: string,
1920
- destination: string,
1921
- xDaytonaOrganizationID?: string,
1922
- options: RawAxiosRequestConfig = {},
1923
- ): Promise<RequestArgs> => {
1924
- // verify required parameter 'workspaceId' is not null or undefined
1925
- assertParamExists('moveFile', 'workspaceId', workspaceId)
1926
- // verify required parameter 'source' is not null or undefined
1927
- assertParamExists('moveFile', 'source', source)
1928
- // verify required parameter 'destination' is not null or undefined
1929
- assertParamExists('moveFile', 'destination', destination)
1930
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/move`.replace(
1931
- `{${'workspaceId'}}`,
1932
- encodeURIComponent(String(workspaceId)),
1933
- )
1934
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1935
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1936
- let baseOptions
1937
- if (configuration) {
1938
- baseOptions = configuration.baseOptions
1939
- }
1940
-
1941
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
1942
- const localVarHeaderParameter = {} as any
1943
- const localVarQueryParameter = {} as any
1944
-
1945
- // authentication bearer required
1946
- // http bearer authentication required
1947
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
1948
-
1949
- // authentication oauth2 required
1950
- // oauth required
1951
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
1952
-
1953
- if (source !== undefined) {
1954
- localVarQueryParameter['source'] = source
1955
- }
1956
-
1957
- if (destination !== undefined) {
1958
- localVarQueryParameter['destination'] = destination
1959
- }
1960
-
1961
- if (xDaytonaOrganizationID != null) {
1962
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
1963
- }
1964
- setSearchParams(localVarUrlObj, localVarQueryParameter)
1965
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
1966
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
1967
-
1968
- return {
1969
- url: toPathString(localVarUrlObj),
1970
- options: localVarRequestOptions,
1971
- }
1972
- },
1973
- /**
1974
- * Replace text/pattern in multiple files inside workspace
1975
- * @summary Replace in files
1976
- * @param {string} workspaceId
1977
- * @param {ReplaceRequest} replaceRequest
1978
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1979
- * @param {*} [options] Override http request option.
1980
- * @throws {RequiredError}
1981
- */
1982
- replaceInFiles: async (
1983
- workspaceId: string,
1984
- replaceRequest: ReplaceRequest,
1985
- xDaytonaOrganizationID?: string,
1986
- options: RawAxiosRequestConfig = {},
1987
- ): Promise<RequestArgs> => {
1988
- // verify required parameter 'workspaceId' is not null or undefined
1989
- assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
1990
- // verify required parameter 'replaceRequest' is not null or undefined
1991
- assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
1992
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`.replace(
1993
- `{${'workspaceId'}}`,
1994
- encodeURIComponent(String(workspaceId)),
1995
- )
1996
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1997
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
1998
- let baseOptions
1999
- if (configuration) {
2000
- baseOptions = configuration.baseOptions
2001
- }
2002
-
2003
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
2004
- const localVarHeaderParameter = {} as any
2005
- const localVarQueryParameter = {} as any
2006
-
2007
- // authentication bearer required
2008
- // http bearer authentication required
2009
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2010
-
2011
- // authentication oauth2 required
2012
- // oauth required
2013
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
2014
-
2015
- localVarHeaderParameter['Content-Type'] = 'application/json'
2016
-
2017
- if (xDaytonaOrganizationID != null) {
2018
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
2019
- }
2020
- setSearchParams(localVarUrlObj, localVarQueryParameter)
2021
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
2022
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
2023
- localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
2024
-
2025
- return {
2026
- url: toPathString(localVarUrlObj),
2027
- options: localVarRequestOptions,
2028
- }
2029
- },
2030
- /**
2031
- * Search for files inside workspace
2032
- * @summary Search files
2033
- * @param {string} workspaceId
2034
- * @param {string} path
2035
- * @param {string} pattern
2036
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2037
- * @param {*} [options] Override http request option.
2038
- * @throws {RequiredError}
2039
- */
2040
- searchFiles: async (
2041
- workspaceId: string,
2042
- path: string,
2043
- pattern: string,
2044
- xDaytonaOrganizationID?: string,
2045
- options: RawAxiosRequestConfig = {},
2046
- ): Promise<RequestArgs> => {
2047
- // verify required parameter 'workspaceId' is not null or undefined
2048
- assertParamExists('searchFiles', 'workspaceId', workspaceId)
2049
- // verify required parameter 'path' is not null or undefined
2050
- assertParamExists('searchFiles', 'path', path)
2051
- // verify required parameter 'pattern' is not null or undefined
2052
- assertParamExists('searchFiles', 'pattern', pattern)
2053
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/search`.replace(
2054
- `{${'workspaceId'}}`,
2055
- encodeURIComponent(String(workspaceId)),
2056
- )
2057
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2058
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
2059
- let baseOptions
2060
- if (configuration) {
2061
- baseOptions = configuration.baseOptions
2062
- }
2063
-
2064
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
2065
- const localVarHeaderParameter = {} as any
2066
- const localVarQueryParameter = {} as any
2067
-
2068
- // authentication bearer required
2069
- // http bearer authentication required
2070
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2071
-
2072
- // authentication oauth2 required
2073
- // oauth required
2074
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
2075
-
2076
- if (path !== undefined) {
2077
- localVarQueryParameter['path'] = path
2078
- }
2079
-
2080
- if (pattern !== undefined) {
2081
- localVarQueryParameter['pattern'] = pattern
2082
- }
2083
-
2084
- if (xDaytonaOrganizationID != null) {
2085
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
2086
- }
2087
- setSearchParams(localVarUrlObj, localVarQueryParameter)
2088
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
2089
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
2090
-
2091
- return {
2092
- url: toPathString(localVarUrlObj),
2093
- options: localVarRequestOptions,
2094
- }
2095
- },
2096
- /**
2097
- * Set file owner/group/permissions inside workspace
2098
- * @summary Set file permissions
2099
- * @param {string} workspaceId
2100
- * @param {string} path
2101
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2102
- * @param {string} [owner]
2103
- * @param {string} [group]
2104
- * @param {string} [mode]
2105
- * @param {*} [options] Override http request option.
2106
- * @throws {RequiredError}
2107
- */
2108
- setFilePermissions: async (
2109
- workspaceId: string,
2110
- path: string,
2111
- xDaytonaOrganizationID?: string,
2112
- owner?: string,
2113
- group?: string,
2114
- mode?: string,
2115
- options: RawAxiosRequestConfig = {},
2116
- ): Promise<RequestArgs> => {
2117
- // verify required parameter 'workspaceId' is not null or undefined
2118
- assertParamExists('setFilePermissions', 'workspaceId', workspaceId)
2119
- // verify required parameter 'path' is not null or undefined
2120
- assertParamExists('setFilePermissions', 'path', path)
2121
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/permissions`.replace(
2122
- `{${'workspaceId'}}`,
2123
- encodeURIComponent(String(workspaceId)),
2124
- )
2125
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2126
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
2127
- let baseOptions
2128
- if (configuration) {
2129
- baseOptions = configuration.baseOptions
2130
- }
2131
-
2132
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
2133
- const localVarHeaderParameter = {} as any
2134
- const localVarQueryParameter = {} as any
2135
-
2136
- // authentication bearer required
2137
- // http bearer authentication required
2138
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2139
-
2140
- // authentication oauth2 required
2141
- // oauth required
2142
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
2143
-
2144
- if (path !== undefined) {
2145
- localVarQueryParameter['path'] = path
2146
- }
2147
-
2148
- if (owner !== undefined) {
2149
- localVarQueryParameter['owner'] = owner
2150
- }
2151
-
2152
- if (group !== undefined) {
2153
- localVarQueryParameter['group'] = group
2154
- }
2155
-
2156
- if (mode !== undefined) {
2157
- localVarQueryParameter['mode'] = mode
2158
- }
2159
-
2160
- if (xDaytonaOrganizationID != null) {
2161
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
2162
- }
2163
- setSearchParams(localVarUrlObj, localVarQueryParameter)
2164
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
2165
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
2166
-
2167
- return {
2168
- url: toPathString(localVarUrlObj),
2169
- options: localVarRequestOptions,
2170
- }
2171
- },
2172
- /**
2173
- * Upload file inside workspace
2174
- * @summary Upload file
2175
- * @param {string} workspaceId
2176
- * @param {string} path
2177
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2178
- * @param {File} [file]
2179
- * @param {*} [options] Override http request option.
2180
- * @throws {RequiredError}
2181
- */
2182
- uploadFile: async (
2183
- workspaceId: string,
2184
- path: string,
2185
- xDaytonaOrganizationID?: string,
2186
- file?: File,
2187
- options: RawAxiosRequestConfig = {},
2188
- ): Promise<RequestArgs> => {
2189
- // verify required parameter 'workspaceId' is not null or undefined
2190
- assertParamExists('uploadFile', 'workspaceId', workspaceId)
2191
- // verify required parameter 'path' is not null or undefined
2192
- assertParamExists('uploadFile', 'path', path)
2193
- const localVarPath = `/toolbox/{workspaceId}/toolbox/files/upload`.replace(
2194
- `{${'workspaceId'}}`,
2195
- encodeURIComponent(String(workspaceId)),
2196
- )
2197
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2198
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
2199
- let baseOptions
2200
- if (configuration) {
2201
- baseOptions = configuration.baseOptions
2202
- }
2203
-
2204
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
2205
- const localVarHeaderParameter = {} as any
2206
- const localVarQueryParameter = {} as any
2207
- const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
2208
-
2209
- // authentication bearer required
2210
- // http bearer authentication required
2211
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
2212
-
2213
- // authentication oauth2 required
2214
- // oauth required
2215
- await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
2216
-
2217
- if (path !== undefined) {
2218
- localVarQueryParameter['path'] = path
2219
- }
2220
-
2221
- if (file !== undefined) {
2222
- localVarFormParams.append('file', file as any)
2223
- }
2224
-
2225
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data'
2226
-
2227
- if (xDaytonaOrganizationID != null) {
2228
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
2229
- }
2230
- setSearchParams(localVarUrlObj, localVarQueryParameter)
2231
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
2232
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
2233
- localVarRequestOptions.data = localVarFormParams
2234
-
2235
- return {
2236
- url: toPathString(localVarUrlObj),
2237
- options: localVarRequestOptions,
2238
- }
2239
- },
2240
- }
2241
- }
2242
-
2243
- /**
2244
- * ToolboxApi - functional programming interface
2245
- * @export
2246
- */
2247
- export const ToolboxApiFp = function (configuration?: Configuration) {
2248
- const localVarAxiosParamCreator = ToolboxApiAxiosParamCreator(configuration)
2249
- return {
2250
- /**
2251
- * Create folder inside workspace
2252
- * @summary Create folder
2253
- * @param {string} workspaceId
2254
- * @param {string} path
2255
- * @param {string} mode
2256
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2257
- * @param {*} [options] Override http request option.
2258
- * @throws {RequiredError}
2259
- */
2260
- async createFolder(
2261
- workspaceId: string,
2262
- path: string,
2263
- mode: string,
2264
- xDaytonaOrganizationID?: string,
2265
- options?: RawAxiosRequestConfig,
2266
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2267
- const localVarAxiosArgs = await localVarAxiosParamCreator.createFolder(
2268
- workspaceId,
2269
- path,
2270
- mode,
2271
- xDaytonaOrganizationID,
2272
- options,
2273
- )
2274
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2275
- const localVarOperationServerBasePath =
2276
- operationServerMap['ToolboxApi.createFolder']?.[localVarOperationServerIndex]?.url
2277
- return (axios, basePath) =>
2278
- createRequestFunction(
2279
- localVarAxiosArgs,
2280
- globalAxios,
2281
- BASE_PATH,
2282
- configuration,
2283
- )(axios, localVarOperationServerBasePath || basePath)
2284
- },
2285
- /**
2286
- * Create a new session in the workspace
2287
- * @summary Create session
2288
- * @param {string} workspaceId
2289
- * @param {CreateSessionRequest} createSessionRequest
2290
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2291
- * @param {*} [options] Override http request option.
2292
- * @throws {RequiredError}
2293
- */
2294
- async createSession(
2295
- workspaceId: string,
2296
- createSessionRequest: CreateSessionRequest,
2297
- xDaytonaOrganizationID?: string,
2298
- options?: RawAxiosRequestConfig,
2299
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2300
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(
2301
- workspaceId,
2302
- createSessionRequest,
2303
- xDaytonaOrganizationID,
2304
- options,
2305
- )
2306
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2307
- const localVarOperationServerBasePath =
2308
- operationServerMap['ToolboxApi.createSession']?.[localVarOperationServerIndex]?.url
2309
- return (axios, basePath) =>
2310
- createRequestFunction(
2311
- localVarAxiosArgs,
2312
- globalAxios,
2313
- BASE_PATH,
2314
- configuration,
2315
- )(axios, localVarOperationServerBasePath || basePath)
2316
- },
2317
- /**
2318
- * Delete file inside workspace
2319
- * @summary Delete file
2320
- * @param {string} workspaceId
2321
- * @param {string} path
2322
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2323
- * @param {*} [options] Override http request option.
2324
- * @throws {RequiredError}
2325
- */
2326
- async deleteFile(
2327
- workspaceId: string,
2328
- path: string,
2329
- xDaytonaOrganizationID?: string,
2330
- options?: RawAxiosRequestConfig,
2331
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2332
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(
2333
- workspaceId,
2334
- path,
2335
- xDaytonaOrganizationID,
2336
- options,
2337
- )
2338
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2339
- const localVarOperationServerBasePath =
2340
- operationServerMap['ToolboxApi.deleteFile']?.[localVarOperationServerIndex]?.url
2341
- return (axios, basePath) =>
2342
- createRequestFunction(
2343
- localVarAxiosArgs,
2344
- globalAxios,
2345
- BASE_PATH,
2346
- configuration,
2347
- )(axios, localVarOperationServerBasePath || basePath)
2348
- },
2349
- /**
2350
- * Delete a specific session
2351
- * @summary Delete session
2352
- * @param {string} workspaceId
2353
- * @param {string} sessionId
2354
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2355
- * @param {*} [options] Override http request option.
2356
- * @throws {RequiredError}
2357
- */
2358
- async deleteSession(
2359
- workspaceId: string,
2360
- sessionId: string,
2361
- xDaytonaOrganizationID?: string,
2362
- options?: RawAxiosRequestConfig,
2363
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2364
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSession(
2365
- workspaceId,
2366
- sessionId,
2367
- xDaytonaOrganizationID,
2368
- options,
2369
- )
2370
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2371
- const localVarOperationServerBasePath =
2372
- operationServerMap['ToolboxApi.deleteSession']?.[localVarOperationServerIndex]?.url
2373
- return (axios, basePath) =>
2374
- createRequestFunction(
2375
- localVarAxiosArgs,
2376
- globalAxios,
2377
- BASE_PATH,
2378
- configuration,
2379
- )(axios, localVarOperationServerBasePath || basePath)
2380
- },
2381
- /**
2382
- * Download file from workspace
2383
- * @summary Download file
2384
- * @param {string} workspaceId
2385
- * @param {string} path
2386
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2387
- * @param {*} [options] Override http request option.
2388
- * @throws {RequiredError}
2389
- */
2390
- async downloadFile(
2391
- workspaceId: string,
2392
- path: string,
2393
- xDaytonaOrganizationID?: string,
2394
- options?: RawAxiosRequestConfig,
2395
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
2396
- const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(
2397
- workspaceId,
2398
- path,
2399
- xDaytonaOrganizationID,
2400
- options,
2401
- )
2402
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2403
- const localVarOperationServerBasePath =
2404
- operationServerMap['ToolboxApi.downloadFile']?.[localVarOperationServerIndex]?.url
2405
- return (axios, basePath) =>
2406
- createRequestFunction(
2407
- localVarAxiosArgs,
2408
- globalAxios,
2409
- BASE_PATH,
2410
- configuration,
2411
- )(axios, localVarOperationServerBasePath || basePath)
2412
- },
2413
- /**
2414
- * Execute command synchronously inside workspace
2415
- * @summary Execute command
2416
- * @param {string} workspaceId
2417
- * @param {ExecuteRequest} executeRequest
2418
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2419
- * @param {*} [options] Override http request option.
2420
- * @throws {RequiredError}
2421
- */
2422
- async executeCommand(
2423
- workspaceId: string,
2424
- executeRequest: ExecuteRequest,
2425
- xDaytonaOrganizationID?: string,
2426
- options?: RawAxiosRequestConfig,
2427
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>> {
2428
- const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(
2429
- workspaceId,
2430
- executeRequest,
2431
- xDaytonaOrganizationID,
2432
- options,
2433
- )
2434
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2435
- const localVarOperationServerBasePath =
2436
- operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url
2437
- return (axios, basePath) =>
2438
- createRequestFunction(
2439
- localVarAxiosArgs,
2440
- globalAxios,
2441
- BASE_PATH,
2442
- configuration,
2443
- )(axios, localVarOperationServerBasePath || basePath)
2444
- },
2445
- /**
2446
- * Execute a command in a specific session
2447
- * @summary Execute command in session
2448
- * @param {string} workspaceId
2449
- * @param {string} sessionId
2450
- * @param {SessionExecuteRequest} sessionExecuteRequest
2451
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2452
- * @param {*} [options] Override http request option.
2453
- * @throws {RequiredError}
2454
- */
2455
- async executeSessionCommand(
2456
- workspaceId: string,
2457
- sessionId: string,
2458
- sessionExecuteRequest: SessionExecuteRequest,
2459
- xDaytonaOrganizationID?: string,
2460
- options?: RawAxiosRequestConfig,
2461
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionExecuteResponse>> {
2462
- const localVarAxiosArgs = await localVarAxiosParamCreator.executeSessionCommand(
2463
- workspaceId,
2464
- sessionId,
2465
- sessionExecuteRequest,
2466
- xDaytonaOrganizationID,
2467
- options,
2468
- )
2469
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2470
- const localVarOperationServerBasePath =
2471
- operationServerMap['ToolboxApi.executeSessionCommand']?.[localVarOperationServerIndex]?.url
2472
- return (axios, basePath) =>
2473
- createRequestFunction(
2474
- localVarAxiosArgs,
2475
- globalAxios,
2476
- BASE_PATH,
2477
- configuration,
2478
- )(axios, localVarOperationServerBasePath || basePath)
2479
- },
2480
- /**
2481
- * Search for text/pattern inside workspace files
2482
- * @summary Search for text/pattern in files
2483
- * @param {string} workspaceId
2484
- * @param {string} path
2485
- * @param {string} pattern
2486
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2487
- * @param {*} [options] Override http request option.
2488
- * @throws {RequiredError}
2489
- */
2490
- async findInFiles(
2491
- workspaceId: string,
2492
- path: string,
2493
- pattern: string,
2494
- xDaytonaOrganizationID?: string,
2495
- options?: RawAxiosRequestConfig,
2496
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Match>>> {
2497
- const localVarAxiosArgs = await localVarAxiosParamCreator.findInFiles(
2498
- workspaceId,
2499
- path,
2500
- pattern,
2501
- xDaytonaOrganizationID,
2502
- options,
2503
- )
2504
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2505
- const localVarOperationServerBasePath =
2506
- operationServerMap['ToolboxApi.findInFiles']?.[localVarOperationServerIndex]?.url
2507
- return (axios, basePath) =>
2508
- createRequestFunction(
2509
- localVarAxiosArgs,
2510
- globalAxios,
2511
- BASE_PATH,
2512
- configuration,
2513
- )(axios, localVarOperationServerBasePath || basePath)
2514
- },
2515
- /**
2516
- * Get file info inside workspace
2517
- * @summary Get file info
2518
- * @param {string} workspaceId
2519
- * @param {string} path
2520
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2521
- * @param {*} [options] Override http request option.
2522
- * @throws {RequiredError}
2523
- */
2524
- async getFileInfo(
2525
- workspaceId: string,
2526
- path: string,
2527
- xDaytonaOrganizationID?: string,
2528
- options?: RawAxiosRequestConfig,
2529
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileInfo>> {
2530
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFileInfo(
2531
- workspaceId,
2532
- path,
2533
- xDaytonaOrganizationID,
2534
- options,
2535
- )
2536
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2537
- const localVarOperationServerBasePath =
2538
- operationServerMap['ToolboxApi.getFileInfo']?.[localVarOperationServerIndex]?.url
2539
- return (axios, basePath) =>
2540
- createRequestFunction(
2541
- localVarAxiosArgs,
2542
- globalAxios,
2543
- BASE_PATH,
2544
- configuration,
2545
- )(axios, localVarOperationServerBasePath || basePath)
2546
- },
2547
- /**
2548
- *
2549
- * @summary Get workspace project dir
2550
- * @param {string} workspaceId
2551
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2552
- * @param {*} [options] Override http request option.
2553
- * @throws {RequiredError}
2554
- */
2555
- async getProjectDir(
2556
- workspaceId: string,
2557
- xDaytonaOrganizationID?: string,
2558
- options?: RawAxiosRequestConfig,
2559
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>> {
2560
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectDir(
2561
- workspaceId,
2562
- xDaytonaOrganizationID,
2563
- options,
2564
- )
2565
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2566
- const localVarOperationServerBasePath =
2567
- operationServerMap['ToolboxApi.getProjectDir']?.[localVarOperationServerIndex]?.url
2568
- return (axios, basePath) =>
2569
- createRequestFunction(
2570
- localVarAxiosArgs,
2571
- globalAxios,
2572
- BASE_PATH,
2573
- configuration,
2574
- )(axios, localVarOperationServerBasePath || basePath)
2575
- },
2576
- /**
2577
- * Get session by ID
2578
- * @summary Get session
2579
- * @param {string} workspaceId
2580
- * @param {string} sessionId
2581
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2582
- * @param {*} [options] Override http request option.
2583
- * @throws {RequiredError}
2584
- */
2585
- async getSession(
2586
- workspaceId: string,
2587
- sessionId: string,
2588
- xDaytonaOrganizationID?: string,
2589
- options?: RawAxiosRequestConfig,
2590
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>> {
2591
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSession(
2592
- workspaceId,
2593
- sessionId,
2594
- xDaytonaOrganizationID,
2595
- options,
2596
- )
2597
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2598
- const localVarOperationServerBasePath =
2599
- operationServerMap['ToolboxApi.getSession']?.[localVarOperationServerIndex]?.url
2600
- return (axios, basePath) =>
2601
- createRequestFunction(
2602
- localVarAxiosArgs,
2603
- globalAxios,
2604
- BASE_PATH,
2605
- configuration,
2606
- )(axios, localVarOperationServerBasePath || basePath)
2607
- },
2608
- /**
2609
- * Get session command by ID
2610
- * @summary Get session command
2611
- * @param {string} workspaceId
2612
- * @param {string} sessionId
2613
- * @param {string} commandId
2614
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2615
- * @param {*} [options] Override http request option.
2616
- * @throws {RequiredError}
2617
- */
2618
- async getSessionCommand(
2619
- workspaceId: string,
2620
- sessionId: string,
2621
- commandId: string,
2622
- xDaytonaOrganizationID?: string,
2623
- options?: RawAxiosRequestConfig,
2624
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Command>> {
2625
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommand(
2626
- workspaceId,
2627
- sessionId,
2628
- commandId,
2629
- xDaytonaOrganizationID,
2630
- options,
2631
- )
2632
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2633
- const localVarOperationServerBasePath =
2634
- operationServerMap['ToolboxApi.getSessionCommand']?.[localVarOperationServerIndex]?.url
2635
- return (axios, basePath) =>
2636
- createRequestFunction(
2637
- localVarAxiosArgs,
2638
- globalAxios,
2639
- BASE_PATH,
2640
- configuration,
2641
- )(axios, localVarOperationServerBasePath || basePath)
2642
- },
2643
- /**
2644
- * Get logs for a specific command in a session
2645
- * @summary Get command logs
2646
- * @param {string} workspaceId
2647
- * @param {string} sessionId
2648
- * @param {string} commandId
2649
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2650
- * @param {boolean} [follow]
2651
- * @param {*} [options] Override http request option.
2652
- * @throws {RequiredError}
2653
- */
2654
- async getSessionCommandLogs(
2655
- workspaceId: string,
2656
- sessionId: string,
2657
- commandId: string,
2658
- xDaytonaOrganizationID?: string,
2659
- follow?: boolean,
2660
- options?: RawAxiosRequestConfig,
2661
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
2662
- const localVarAxiosArgs = await localVarAxiosParamCreator.getSessionCommandLogs(
2663
- workspaceId,
2664
- sessionId,
2665
- commandId,
2666
- xDaytonaOrganizationID,
2667
- follow,
2668
- options,
2669
- )
2670
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2671
- const localVarOperationServerBasePath =
2672
- operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url
2673
- return (axios, basePath) =>
2674
- createRequestFunction(
2675
- localVarAxiosArgs,
2676
- globalAxios,
2677
- BASE_PATH,
2678
- configuration,
2679
- )(axios, localVarOperationServerBasePath || basePath)
2680
- },
2681
- /**
2682
- * Add files to git commit
2683
- * @summary Add files
2684
- * @param {string} workspaceId
2685
- * @param {GitAddRequest} gitAddRequest
2686
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2687
- * @param {*} [options] Override http request option.
2688
- * @throws {RequiredError}
2689
- */
2690
- async gitAddFiles(
2691
- workspaceId: string,
2692
- gitAddRequest: GitAddRequest,
2693
- xDaytonaOrganizationID?: string,
2694
- options?: RawAxiosRequestConfig,
2695
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2696
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(
2697
- workspaceId,
2698
- gitAddRequest,
2699
- xDaytonaOrganizationID,
2700
- options,
2701
- )
2702
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2703
- const localVarOperationServerBasePath =
2704
- operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url
2705
- return (axios, basePath) =>
2706
- createRequestFunction(
2707
- localVarAxiosArgs,
2708
- globalAxios,
2709
- BASE_PATH,
2710
- configuration,
2711
- )(axios, localVarOperationServerBasePath || basePath)
2712
- },
2713
- /**
2714
- * Clone git repository
2715
- * @summary Clone repository
2716
- * @param {string} workspaceId
2717
- * @param {GitCloneRequest} gitCloneRequest
2718
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2719
- * @param {*} [options] Override http request option.
2720
- * @throws {RequiredError}
2721
- */
2722
- async gitCloneRepository(
2723
- workspaceId: string,
2724
- gitCloneRequest: GitCloneRequest,
2725
- xDaytonaOrganizationID?: string,
2726
- options?: RawAxiosRequestConfig,
2727
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2728
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(
2729
- workspaceId,
2730
- gitCloneRequest,
2731
- xDaytonaOrganizationID,
2732
- options,
2733
- )
2734
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2735
- const localVarOperationServerBasePath =
2736
- operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url
2737
- return (axios, basePath) =>
2738
- createRequestFunction(
2739
- localVarAxiosArgs,
2740
- globalAxios,
2741
- BASE_PATH,
2742
- configuration,
2743
- )(axios, localVarOperationServerBasePath || basePath)
2744
- },
2745
- /**
2746
- * Commit changes to git repository
2747
- * @summary Commit changes
2748
- * @param {string} workspaceId
2749
- * @param {GitCommitRequest} gitCommitRequest
2750
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2751
- * @param {*} [options] Override http request option.
2752
- * @throws {RequiredError}
2753
- */
2754
- async gitCommitChanges(
2755
- workspaceId: string,
2756
- gitCommitRequest: GitCommitRequest,
2757
- xDaytonaOrganizationID?: string,
2758
- options?: RawAxiosRequestConfig,
2759
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>> {
2760
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(
2761
- workspaceId,
2762
- gitCommitRequest,
2763
- xDaytonaOrganizationID,
2764
- options,
2765
- )
2766
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2767
- const localVarOperationServerBasePath =
2768
- operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url
2769
- return (axios, basePath) =>
2770
- createRequestFunction(
2771
- localVarAxiosArgs,
2772
- globalAxios,
2773
- BASE_PATH,
2774
- configuration,
2775
- )(axios, localVarOperationServerBasePath || basePath)
2776
- },
2777
- /**
2778
- * Create branch on git repository
2779
- * @summary Create branch
2780
- * @param {string} workspaceId
2781
- * @param {GitBranchRequest} gitBranchRequest
2782
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2783
- * @param {*} [options] Override http request option.
2784
- * @throws {RequiredError}
2785
- */
2786
- async gitCreateBranch(
2787
- workspaceId: string,
2788
- gitBranchRequest: GitBranchRequest,
2789
- xDaytonaOrganizationID?: string,
2790
- options?: RawAxiosRequestConfig,
2791
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2792
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(
2793
- workspaceId,
2794
- gitBranchRequest,
2795
- xDaytonaOrganizationID,
2796
- options,
2797
- )
2798
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2799
- const localVarOperationServerBasePath =
2800
- operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url
2801
- return (axios, basePath) =>
2802
- createRequestFunction(
2803
- localVarAxiosArgs,
2804
- globalAxios,
2805
- BASE_PATH,
2806
- configuration,
2807
- )(axios, localVarOperationServerBasePath || basePath)
2808
- },
2809
- /**
2810
- * Get commit history from git repository
2811
- * @summary Get commit history
2812
- * @param {string} workspaceId
2813
- * @param {string} path
2814
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2815
- * @param {*} [options] Override http request option.
2816
- * @throws {RequiredError}
2817
- */
2818
- async gitGetHistory(
2819
- workspaceId: string,
2820
- path: string,
2821
- xDaytonaOrganizationID?: string,
2822
- options?: RawAxiosRequestConfig,
2823
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GitCommitInfo>>> {
2824
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetHistory(
2825
- workspaceId,
2826
- path,
2827
- xDaytonaOrganizationID,
2828
- options,
2829
- )
2830
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2831
- const localVarOperationServerBasePath =
2832
- operationServerMap['ToolboxApi.gitGetHistory']?.[localVarOperationServerIndex]?.url
2833
- return (axios, basePath) =>
2834
- createRequestFunction(
2835
- localVarAxiosArgs,
2836
- globalAxios,
2837
- BASE_PATH,
2838
- configuration,
2839
- )(axios, localVarOperationServerBasePath || basePath)
2840
- },
2841
- /**
2842
- * Get status from git repository
2843
- * @summary Get git status
2844
- * @param {string} workspaceId
2845
- * @param {string} path
2846
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2847
- * @param {*} [options] Override http request option.
2848
- * @throws {RequiredError}
2849
- */
2850
- async gitGetStatus(
2851
- workspaceId: string,
2852
- path: string,
2853
- xDaytonaOrganizationID?: string,
2854
- options?: RawAxiosRequestConfig,
2855
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitStatus>> {
2856
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitGetStatus(
2857
- workspaceId,
2858
- path,
2859
- xDaytonaOrganizationID,
2860
- options,
2861
- )
2862
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2863
- const localVarOperationServerBasePath =
2864
- operationServerMap['ToolboxApi.gitGetStatus']?.[localVarOperationServerIndex]?.url
2865
- return (axios, basePath) =>
2866
- createRequestFunction(
2867
- localVarAxiosArgs,
2868
- globalAxios,
2869
- BASE_PATH,
2870
- configuration,
2871
- )(axios, localVarOperationServerBasePath || basePath)
2872
- },
2873
- /**
2874
- * Get branch list from git repository
2875
- * @summary Get branch list
2876
- * @param {string} workspaceId
2877
- * @param {string} path
2878
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2879
- * @param {*} [options] Override http request option.
2880
- * @throws {RequiredError}
2881
- */
2882
- async gitListBranches(
2883
- workspaceId: string,
2884
- path: string,
2885
- xDaytonaOrganizationID?: string,
2886
- options?: RawAxiosRequestConfig,
2887
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBranchResponse>> {
2888
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitListBranches(
2889
- workspaceId,
2890
- path,
2891
- xDaytonaOrganizationID,
2892
- options,
2893
- )
2894
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2895
- const localVarOperationServerBasePath =
2896
- operationServerMap['ToolboxApi.gitListBranches']?.[localVarOperationServerIndex]?.url
2897
- return (axios, basePath) =>
2898
- createRequestFunction(
2899
- localVarAxiosArgs,
2900
- globalAxios,
2901
- BASE_PATH,
2902
- configuration,
2903
- )(axios, localVarOperationServerBasePath || basePath)
2904
- },
2905
- /**
2906
- * Pull changes from remote
2907
- * @summary Pull changes
2908
- * @param {string} workspaceId
2909
- * @param {GitRepoRequest} gitRepoRequest
2910
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2911
- * @param {*} [options] Override http request option.
2912
- * @throws {RequiredError}
2913
- */
2914
- async gitPullChanges(
2915
- workspaceId: string,
2916
- gitRepoRequest: GitRepoRequest,
2917
- xDaytonaOrganizationID?: string,
2918
- options?: RawAxiosRequestConfig,
2919
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2920
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(
2921
- workspaceId,
2922
- gitRepoRequest,
2923
- xDaytonaOrganizationID,
2924
- options,
2925
- )
2926
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2927
- const localVarOperationServerBasePath =
2928
- operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url
2929
- return (axios, basePath) =>
2930
- createRequestFunction(
2931
- localVarAxiosArgs,
2932
- globalAxios,
2933
- BASE_PATH,
2934
- configuration,
2935
- )(axios, localVarOperationServerBasePath || basePath)
2936
- },
2937
- /**
2938
- * Push changes to remote
2939
- * @summary Push changes
2940
- * @param {string} workspaceId
2941
- * @param {GitRepoRequest} gitRepoRequest
2942
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2943
- * @param {*} [options] Override http request option.
2944
- * @throws {RequiredError}
2945
- */
2946
- async gitPushChanges(
2947
- workspaceId: string,
2948
- gitRepoRequest: GitRepoRequest,
2949
- xDaytonaOrganizationID?: string,
2950
- options?: RawAxiosRequestConfig,
2951
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2952
- const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(
2953
- workspaceId,
2954
- gitRepoRequest,
2955
- xDaytonaOrganizationID,
2956
- options,
2957
- )
2958
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2959
- const localVarOperationServerBasePath =
2960
- operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url
2961
- return (axios, basePath) =>
2962
- createRequestFunction(
2963
- localVarAxiosArgs,
2964
- globalAxios,
2965
- BASE_PATH,
2966
- configuration,
2967
- )(axios, localVarOperationServerBasePath || basePath)
2968
- },
2969
- /**
2970
- *
2971
- * @summary List files
2972
- * @param {string} workspaceId
2973
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2974
- * @param {string} [path]
2975
- * @param {*} [options] Override http request option.
2976
- * @throws {RequiredError}
2977
- */
2978
- async listFiles(
2979
- workspaceId: string,
2980
- xDaytonaOrganizationID?: string,
2981
- path?: string,
2982
- options?: RawAxiosRequestConfig,
2983
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>> {
2984
- const localVarAxiosArgs = await localVarAxiosParamCreator.listFiles(
2985
- workspaceId,
2986
- xDaytonaOrganizationID,
2987
- path,
2988
- options,
2989
- )
2990
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
2991
- const localVarOperationServerBasePath =
2992
- operationServerMap['ToolboxApi.listFiles']?.[localVarOperationServerIndex]?.url
2993
- return (axios, basePath) =>
2994
- createRequestFunction(
2995
- localVarAxiosArgs,
2996
- globalAxios,
2997
- BASE_PATH,
2998
- configuration,
2999
- )(axios, localVarOperationServerBasePath || basePath)
3000
- },
3001
- /**
3002
- * List all active sessions in the workspace
3003
- * @summary List sessions
3004
- * @param {string} workspaceId
3005
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3006
- * @param {*} [options] Override http request option.
3007
- * @throws {RequiredError}
3008
- */
3009
- async listSessions(
3010
- workspaceId: string,
3011
- xDaytonaOrganizationID?: string,
3012
- options?: RawAxiosRequestConfig,
3013
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Session>>> {
3014
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(
3015
- workspaceId,
3016
- xDaytonaOrganizationID,
3017
- options,
3018
- )
3019
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3020
- const localVarOperationServerBasePath =
3021
- operationServerMap['ToolboxApi.listSessions']?.[localVarOperationServerIndex]?.url
3022
- return (axios, basePath) =>
3023
- createRequestFunction(
3024
- localVarAxiosArgs,
3025
- globalAxios,
3026
- BASE_PATH,
3027
- configuration,
3028
- )(axios, localVarOperationServerBasePath || basePath)
3029
- },
3030
- /**
3031
- * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
3032
- * @summary Get Lsp Completions
3033
- * @param {string} workspaceId
3034
- * @param {LspCompletionParams} lspCompletionParams
3035
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3036
- * @param {*} [options] Override http request option.
3037
- * @throws {RequiredError}
3038
- */
3039
- async lspCompletions(
3040
- workspaceId: string,
3041
- lspCompletionParams: LspCompletionParams,
3042
- xDaytonaOrganizationID?: string,
3043
- options?: RawAxiosRequestConfig,
3044
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletionList>> {
3045
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspCompletions(
3046
- workspaceId,
3047
- lspCompletionParams,
3048
- xDaytonaOrganizationID,
3049
- options,
3050
- )
3051
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3052
- const localVarOperationServerBasePath =
3053
- operationServerMap['ToolboxApi.lspCompletions']?.[localVarOperationServerIndex]?.url
3054
- return (axios, basePath) =>
3055
- createRequestFunction(
3056
- localVarAxiosArgs,
3057
- globalAxios,
3058
- BASE_PATH,
3059
- configuration,
3060
- )(axios, localVarOperationServerBasePath || basePath)
3061
- },
3062
- /**
3063
- * The document close notification is sent from the client to the server when the document got closed in the client.
3064
- * @summary Call Lsp DidClose
3065
- * @param {string} workspaceId
3066
- * @param {LspDocumentRequest} lspDocumentRequest
3067
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3068
- * @param {*} [options] Override http request option.
3069
- * @throws {RequiredError}
3070
- */
3071
- async lspDidClose(
3072
- workspaceId: string,
3073
- lspDocumentRequest: LspDocumentRequest,
3074
- xDaytonaOrganizationID?: string,
3075
- options?: RawAxiosRequestConfig,
3076
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3077
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidClose(
3078
- workspaceId,
3079
- lspDocumentRequest,
3080
- xDaytonaOrganizationID,
3081
- options,
3082
- )
3083
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3084
- const localVarOperationServerBasePath =
3085
- operationServerMap['ToolboxApi.lspDidClose']?.[localVarOperationServerIndex]?.url
3086
- return (axios, basePath) =>
3087
- createRequestFunction(
3088
- localVarAxiosArgs,
3089
- globalAxios,
3090
- BASE_PATH,
3091
- configuration,
3092
- )(axios, localVarOperationServerBasePath || basePath)
3093
- },
3094
- /**
3095
- * The document open notification is sent from the client to the server to signal newly opened text documents.
3096
- * @summary Call Lsp DidOpen
3097
- * @param {string} workspaceId
3098
- * @param {LspDocumentRequest} lspDocumentRequest
3099
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3100
- * @param {*} [options] Override http request option.
3101
- * @throws {RequiredError}
3102
- */
3103
- async lspDidOpen(
3104
- workspaceId: string,
3105
- lspDocumentRequest: LspDocumentRequest,
3106
- xDaytonaOrganizationID?: string,
3107
- options?: RawAxiosRequestConfig,
3108
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3109
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspDidOpen(
3110
- workspaceId,
3111
- lspDocumentRequest,
3112
- xDaytonaOrganizationID,
3113
- options,
3114
- )
3115
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3116
- const localVarOperationServerBasePath =
3117
- operationServerMap['ToolboxApi.lspDidOpen']?.[localVarOperationServerIndex]?.url
3118
- return (axios, basePath) =>
3119
- createRequestFunction(
3120
- localVarAxiosArgs,
3121
- globalAxios,
3122
- BASE_PATH,
3123
- configuration,
3124
- )(axios, localVarOperationServerBasePath || basePath)
3125
- },
3126
- /**
3127
- * The document symbol request is sent from the client to the server.
3128
- * @summary Call Lsp DocumentSymbols
3129
- * @param {string} workspaceId
3130
- * @param {string} languageId
3131
- * @param {string} pathToProject
3132
- * @param {string} uri
3133
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3134
- * @param {*} [options] Override http request option.
3135
- * @throws {RequiredError}
3136
- */
3137
- async lspDocumentSymbols(
3138
- workspaceId: string,
3139
- languageId: string,
3140
- pathToProject: string,
3141
- uri: string,
3142
- xDaytonaOrganizationID?: string,
3143
- options?: RawAxiosRequestConfig,
3144
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>> {
3145
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspDocumentSymbols(
3146
- workspaceId,
3147
- languageId,
3148
- pathToProject,
3149
- uri,
3150
- xDaytonaOrganizationID,
3151
- options,
3152
- )
3153
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3154
- const localVarOperationServerBasePath =
3155
- operationServerMap['ToolboxApi.lspDocumentSymbols']?.[localVarOperationServerIndex]?.url
3156
- return (axios, basePath) =>
3157
- createRequestFunction(
3158
- localVarAxiosArgs,
3159
- globalAxios,
3160
- BASE_PATH,
3161
- configuration,
3162
- )(axios, localVarOperationServerBasePath || basePath)
3163
- },
3164
- /**
3165
- * Start Lsp server process inside workspace project
3166
- * @summary Start Lsp server
3167
- * @param {string} workspaceId
3168
- * @param {LspServerRequest} lspServerRequest
3169
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3170
- * @param {*} [options] Override http request option.
3171
- * @throws {RequiredError}
3172
- */
3173
- async lspStart(
3174
- workspaceId: string,
3175
- lspServerRequest: LspServerRequest,
3176
- xDaytonaOrganizationID?: string,
3177
- options?: RawAxiosRequestConfig,
3178
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3179
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspStart(
3180
- workspaceId,
3181
- lspServerRequest,
3182
- xDaytonaOrganizationID,
3183
- options,
3184
- )
3185
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3186
- const localVarOperationServerBasePath =
3187
- operationServerMap['ToolboxApi.lspStart']?.[localVarOperationServerIndex]?.url
3188
- return (axios, basePath) =>
3189
- createRequestFunction(
3190
- localVarAxiosArgs,
3191
- globalAxios,
3192
- BASE_PATH,
3193
- configuration,
3194
- )(axios, localVarOperationServerBasePath || basePath)
3195
- },
3196
- /**
3197
- * Stop Lsp server process inside workspace project
3198
- * @summary Stop Lsp server
3199
- * @param {string} workspaceId
3200
- * @param {LspServerRequest} lspServerRequest
3201
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3202
- * @param {*} [options] Override http request option.
3203
- * @throws {RequiredError}
3204
- */
3205
- async lspStop(
3206
- workspaceId: string,
3207
- lspServerRequest: LspServerRequest,
3208
- xDaytonaOrganizationID?: string,
3209
- options?: RawAxiosRequestConfig,
3210
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3211
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspStop(
3212
- workspaceId,
3213
- lspServerRequest,
3214
- xDaytonaOrganizationID,
3215
- options,
3216
- )
3217
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3218
- const localVarOperationServerBasePath =
3219
- operationServerMap['ToolboxApi.lspStop']?.[localVarOperationServerIndex]?.url
3220
- return (axios, basePath) =>
3221
- createRequestFunction(
3222
- localVarAxiosArgs,
3223
- globalAxios,
3224
- BASE_PATH,
3225
- configuration,
3226
- )(axios, localVarOperationServerBasePath || basePath)
3227
- },
3228
- /**
3229
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
3230
- * @summary Call Lsp WorkspaceSymbols
3231
- * @param {string} workspaceId
3232
- * @param {string} languageId
3233
- * @param {string} pathToProject
3234
- * @param {string} query
3235
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3236
- * @param {*} [options] Override http request option.
3237
- * @throws {RequiredError}
3238
- */
3239
- async lspWorkspaceSymbols(
3240
- workspaceId: string,
3241
- languageId: string,
3242
- pathToProject: string,
3243
- query: string,
3244
- xDaytonaOrganizationID?: string,
3245
- options?: RawAxiosRequestConfig,
3246
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LspSymbol>>> {
3247
- const localVarAxiosArgs = await localVarAxiosParamCreator.lspWorkspaceSymbols(
3248
- workspaceId,
3249
- languageId,
3250
- pathToProject,
3251
- query,
3252
- xDaytonaOrganizationID,
3253
- options,
3254
- )
3255
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3256
- const localVarOperationServerBasePath =
3257
- operationServerMap['ToolboxApi.lspWorkspaceSymbols']?.[localVarOperationServerIndex]?.url
3258
- return (axios, basePath) =>
3259
- createRequestFunction(
3260
- localVarAxiosArgs,
3261
- globalAxios,
3262
- BASE_PATH,
3263
- configuration,
3264
- )(axios, localVarOperationServerBasePath || basePath)
3265
- },
3266
- /**
3267
- * Move file inside workspace
3268
- * @summary Move file
3269
- * @param {string} workspaceId
3270
- * @param {string} source
3271
- * @param {string} destination
3272
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3273
- * @param {*} [options] Override http request option.
3274
- * @throws {RequiredError}
3275
- */
3276
- async moveFile(
3277
- workspaceId: string,
3278
- source: string,
3279
- destination: string,
3280
- xDaytonaOrganizationID?: string,
3281
- options?: RawAxiosRequestConfig,
3282
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3283
- const localVarAxiosArgs = await localVarAxiosParamCreator.moveFile(
3284
- workspaceId,
3285
- source,
3286
- destination,
3287
- xDaytonaOrganizationID,
3288
- options,
3289
- )
3290
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3291
- const localVarOperationServerBasePath =
3292
- operationServerMap['ToolboxApi.moveFile']?.[localVarOperationServerIndex]?.url
3293
- return (axios, basePath) =>
3294
- createRequestFunction(
3295
- localVarAxiosArgs,
3296
- globalAxios,
3297
- BASE_PATH,
3298
- configuration,
3299
- )(axios, localVarOperationServerBasePath || basePath)
3300
- },
3301
- /**
3302
- * Replace text/pattern in multiple files inside workspace
3303
- * @summary Replace in files
3304
- * @param {string} workspaceId
3305
- * @param {ReplaceRequest} replaceRequest
3306
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3307
- * @param {*} [options] Override http request option.
3308
- * @throws {RequiredError}
3309
- */
3310
- async replaceInFiles(
3311
- workspaceId: string,
3312
- replaceRequest: ReplaceRequest,
3313
- xDaytonaOrganizationID?: string,
3314
- options?: RawAxiosRequestConfig,
3315
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReplaceResult>>> {
3316
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(
3317
- workspaceId,
3318
- replaceRequest,
3319
- xDaytonaOrganizationID,
3320
- options,
3321
- )
3322
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3323
- const localVarOperationServerBasePath =
3324
- operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url
3325
- return (axios, basePath) =>
3326
- createRequestFunction(
3327
- localVarAxiosArgs,
3328
- globalAxios,
3329
- BASE_PATH,
3330
- configuration,
3331
- )(axios, localVarOperationServerBasePath || basePath)
3332
- },
3333
- /**
3334
- * Search for files inside workspace
3335
- * @summary Search files
3336
- * @param {string} workspaceId
3337
- * @param {string} path
3338
- * @param {string} pattern
3339
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3340
- * @param {*} [options] Override http request option.
3341
- * @throws {RequiredError}
3342
- */
3343
- async searchFiles(
3344
- workspaceId: string,
3345
- path: string,
3346
- pattern: string,
3347
- xDaytonaOrganizationID?: string,
3348
- options?: RawAxiosRequestConfig,
3349
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchFilesResponse>> {
3350
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchFiles(
3351
- workspaceId,
3352
- path,
3353
- pattern,
3354
- xDaytonaOrganizationID,
3355
- options,
3356
- )
3357
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3358
- const localVarOperationServerBasePath =
3359
- operationServerMap['ToolboxApi.searchFiles']?.[localVarOperationServerIndex]?.url
3360
- return (axios, basePath) =>
3361
- createRequestFunction(
3362
- localVarAxiosArgs,
3363
- globalAxios,
3364
- BASE_PATH,
3365
- configuration,
3366
- )(axios, localVarOperationServerBasePath || basePath)
3367
- },
3368
- /**
3369
- * Set file owner/group/permissions inside workspace
3370
- * @summary Set file permissions
3371
- * @param {string} workspaceId
3372
- * @param {string} path
3373
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3374
- * @param {string} [owner]
3375
- * @param {string} [group]
3376
- * @param {string} [mode]
3377
- * @param {*} [options] Override http request option.
3378
- * @throws {RequiredError}
3379
- */
3380
- async setFilePermissions(
3381
- workspaceId: string,
3382
- path: string,
3383
- xDaytonaOrganizationID?: string,
3384
- owner?: string,
3385
- group?: string,
3386
- mode?: string,
3387
- options?: RawAxiosRequestConfig,
3388
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3389
- const localVarAxiosArgs = await localVarAxiosParamCreator.setFilePermissions(
3390
- workspaceId,
3391
- path,
3392
- xDaytonaOrganizationID,
3393
- owner,
3394
- group,
3395
- mode,
3396
- options,
3397
- )
3398
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3399
- const localVarOperationServerBasePath =
3400
- operationServerMap['ToolboxApi.setFilePermissions']?.[localVarOperationServerIndex]?.url
3401
- return (axios, basePath) =>
3402
- createRequestFunction(
3403
- localVarAxiosArgs,
3404
- globalAxios,
3405
- BASE_PATH,
3406
- configuration,
3407
- )(axios, localVarOperationServerBasePath || basePath)
3408
- },
3409
- /**
3410
- * Upload file inside workspace
3411
- * @summary Upload file
3412
- * @param {string} workspaceId
3413
- * @param {string} path
3414
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3415
- * @param {File} [file]
3416
- * @param {*} [options] Override http request option.
3417
- * @throws {RequiredError}
3418
- */
3419
- async uploadFile(
3420
- workspaceId: string,
3421
- path: string,
3422
- xDaytonaOrganizationID?: string,
3423
- file?: File,
3424
- options?: RawAxiosRequestConfig,
3425
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3426
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(
3427
- workspaceId,
3428
- path,
3429
- xDaytonaOrganizationID,
3430
- file,
3431
- options,
3432
- )
3433
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
3434
- const localVarOperationServerBasePath =
3435
- operationServerMap['ToolboxApi.uploadFile']?.[localVarOperationServerIndex]?.url
3436
- return (axios, basePath) =>
3437
- createRequestFunction(
3438
- localVarAxiosArgs,
3439
- globalAxios,
3440
- BASE_PATH,
3441
- configuration,
3442
- )(axios, localVarOperationServerBasePath || basePath)
3443
- },
3444
- }
3445
- }
3446
-
3447
- /**
3448
- * ToolboxApi - factory interface
3449
- * @export
3450
- */
3451
- export const ToolboxApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3452
- const localVarFp = ToolboxApiFp(configuration)
3453
- return {
3454
- /**
3455
- * Create folder inside workspace
3456
- * @summary Create folder
3457
- * @param {string} workspaceId
3458
- * @param {string} path
3459
- * @param {string} mode
3460
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3461
- * @param {*} [options] Override http request option.
3462
- * @throws {RequiredError}
3463
- */
3464
- createFolder(
3465
- workspaceId: string,
3466
- path: string,
3467
- mode: string,
3468
- xDaytonaOrganizationID?: string,
3469
- options?: RawAxiosRequestConfig,
3470
- ): AxiosPromise<void> {
3471
- return localVarFp
3472
- .createFolder(workspaceId, path, mode, xDaytonaOrganizationID, options)
3473
- .then((request) => request(axios, basePath))
3474
- },
3475
- /**
3476
- * Create a new session in the workspace
3477
- * @summary Create session
3478
- * @param {string} workspaceId
3479
- * @param {CreateSessionRequest} createSessionRequest
3480
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3481
- * @param {*} [options] Override http request option.
3482
- * @throws {RequiredError}
3483
- */
3484
- createSession(
3485
- workspaceId: string,
3486
- createSessionRequest: CreateSessionRequest,
3487
- xDaytonaOrganizationID?: string,
3488
- options?: RawAxiosRequestConfig,
3489
- ): AxiosPromise<void> {
3490
- return localVarFp
3491
- .createSession(workspaceId, createSessionRequest, xDaytonaOrganizationID, options)
3492
- .then((request) => request(axios, basePath))
3493
- },
3494
- /**
3495
- * Delete file inside workspace
3496
- * @summary Delete file
3497
- * @param {string} workspaceId
3498
- * @param {string} path
3499
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3500
- * @param {*} [options] Override http request option.
3501
- * @throws {RequiredError}
3502
- */
3503
- deleteFile(
3504
- workspaceId: string,
3505
- path: string,
3506
- xDaytonaOrganizationID?: string,
3507
- options?: RawAxiosRequestConfig,
3508
- ): AxiosPromise<void> {
3509
- return localVarFp
3510
- .deleteFile(workspaceId, path, xDaytonaOrganizationID, options)
3511
- .then((request) => request(axios, basePath))
3512
- },
3513
- /**
3514
- * Delete a specific session
3515
- * @summary Delete session
3516
- * @param {string} workspaceId
3517
- * @param {string} sessionId
3518
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3519
- * @param {*} [options] Override http request option.
3520
- * @throws {RequiredError}
3521
- */
3522
- deleteSession(
3523
- workspaceId: string,
3524
- sessionId: string,
3525
- xDaytonaOrganizationID?: string,
3526
- options?: RawAxiosRequestConfig,
3527
- ): AxiosPromise<void> {
3528
- return localVarFp
3529
- .deleteSession(workspaceId, sessionId, xDaytonaOrganizationID, options)
3530
- .then((request) => request(axios, basePath))
3531
- },
3532
- /**
3533
- * Download file from workspace
3534
- * @summary Download file
3535
- * @param {string} workspaceId
3536
- * @param {string} path
3537
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3538
- * @param {*} [options] Override http request option.
3539
- * @throws {RequiredError}
3540
- */
3541
- downloadFile(
3542
- workspaceId: string,
3543
- path: string,
3544
- xDaytonaOrganizationID?: string,
3545
- options?: RawAxiosRequestConfig,
3546
- ): AxiosPromise<File> {
3547
- return localVarFp
3548
- .downloadFile(workspaceId, path, xDaytonaOrganizationID, options)
3549
- .then((request) => request(axios, basePath))
3550
- },
3551
- /**
3552
- * Execute command synchronously inside workspace
3553
- * @summary Execute command
3554
- * @param {string} workspaceId
3555
- * @param {ExecuteRequest} executeRequest
3556
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3557
- * @param {*} [options] Override http request option.
3558
- * @throws {RequiredError}
3559
- */
3560
- executeCommand(
3561
- workspaceId: string,
3562
- executeRequest: ExecuteRequest,
3563
- xDaytonaOrganizationID?: string,
3564
- options?: RawAxiosRequestConfig,
3565
- ): AxiosPromise<ExecuteResponse> {
3566
- return localVarFp
3567
- .executeCommand(workspaceId, executeRequest, xDaytonaOrganizationID, options)
3568
- .then((request) => request(axios, basePath))
3569
- },
3570
- /**
3571
- * Execute a command in a specific session
3572
- * @summary Execute command in session
3573
- * @param {string} workspaceId
3574
- * @param {string} sessionId
3575
- * @param {SessionExecuteRequest} sessionExecuteRequest
3576
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3577
- * @param {*} [options] Override http request option.
3578
- * @throws {RequiredError}
3579
- */
3580
- executeSessionCommand(
3581
- workspaceId: string,
3582
- sessionId: string,
3583
- sessionExecuteRequest: SessionExecuteRequest,
3584
- xDaytonaOrganizationID?: string,
3585
- options?: RawAxiosRequestConfig,
3586
- ): AxiosPromise<SessionExecuteResponse> {
3587
- return localVarFp
3588
- .executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options)
3589
- .then((request) => request(axios, basePath))
3590
- },
3591
- /**
3592
- * Search for text/pattern inside workspace files
3593
- * @summary Search for text/pattern in files
3594
- * @param {string} workspaceId
3595
- * @param {string} path
3596
- * @param {string} pattern
3597
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3598
- * @param {*} [options] Override http request option.
3599
- * @throws {RequiredError}
3600
- */
3601
- findInFiles(
3602
- workspaceId: string,
3603
- path: string,
3604
- pattern: string,
3605
- xDaytonaOrganizationID?: string,
3606
- options?: RawAxiosRequestConfig,
3607
- ): AxiosPromise<Array<Match>> {
3608
- return localVarFp
3609
- .findInFiles(workspaceId, path, pattern, xDaytonaOrganizationID, options)
3610
- .then((request) => request(axios, basePath))
3611
- },
3612
- /**
3613
- * Get file info inside workspace
3614
- * @summary Get file info
3615
- * @param {string} workspaceId
3616
- * @param {string} path
3617
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3618
- * @param {*} [options] Override http request option.
3619
- * @throws {RequiredError}
3620
- */
3621
- getFileInfo(
3622
- workspaceId: string,
3623
- path: string,
3624
- xDaytonaOrganizationID?: string,
3625
- options?: RawAxiosRequestConfig,
3626
- ): AxiosPromise<FileInfo> {
3627
- return localVarFp
3628
- .getFileInfo(workspaceId, path, xDaytonaOrganizationID, options)
3629
- .then((request) => request(axios, basePath))
3630
- },
3631
- /**
3632
- *
3633
- * @summary Get workspace project dir
3634
- * @param {string} workspaceId
3635
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3636
- * @param {*} [options] Override http request option.
3637
- * @throws {RequiredError}
3638
- */
3639
- getProjectDir(
3640
- workspaceId: string,
3641
- xDaytonaOrganizationID?: string,
3642
- options?: RawAxiosRequestConfig,
3643
- ): AxiosPromise<ProjectDirResponse> {
3644
- return localVarFp
3645
- .getProjectDir(workspaceId, xDaytonaOrganizationID, options)
3646
- .then((request) => request(axios, basePath))
3647
- },
3648
- /**
3649
- * Get session by ID
3650
- * @summary Get session
3651
- * @param {string} workspaceId
3652
- * @param {string} sessionId
3653
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3654
- * @param {*} [options] Override http request option.
3655
- * @throws {RequiredError}
3656
- */
3657
- getSession(
3658
- workspaceId: string,
3659
- sessionId: string,
3660
- xDaytonaOrganizationID?: string,
3661
- options?: RawAxiosRequestConfig,
3662
- ): AxiosPromise<Session> {
3663
- return localVarFp
3664
- .getSession(workspaceId, sessionId, xDaytonaOrganizationID, options)
3665
- .then((request) => request(axios, basePath))
3666
- },
3667
- /**
3668
- * Get session command by ID
3669
- * @summary Get session command
3670
- * @param {string} workspaceId
3671
- * @param {string} sessionId
3672
- * @param {string} commandId
3673
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3674
- * @param {*} [options] Override http request option.
3675
- * @throws {RequiredError}
3676
- */
3677
- getSessionCommand(
3678
- workspaceId: string,
3679
- sessionId: string,
3680
- commandId: string,
3681
- xDaytonaOrganizationID?: string,
3682
- options?: RawAxiosRequestConfig,
3683
- ): AxiosPromise<Command> {
3684
- return localVarFp
3685
- .getSessionCommand(workspaceId, sessionId, commandId, xDaytonaOrganizationID, options)
3686
- .then((request) => request(axios, basePath))
3687
- },
3688
- /**
3689
- * Get logs for a specific command in a session
3690
- * @summary Get command logs
3691
- * @param {string} workspaceId
3692
- * @param {string} sessionId
3693
- * @param {string} commandId
3694
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3695
- * @param {boolean} [follow]
3696
- * @param {*} [options] Override http request option.
3697
- * @throws {RequiredError}
3698
- */
3699
- getSessionCommandLogs(
3700
- workspaceId: string,
3701
- sessionId: string,
3702
- commandId: string,
3703
- xDaytonaOrganizationID?: string,
3704
- follow?: boolean,
3705
- options?: RawAxiosRequestConfig,
3706
- ): AxiosPromise<string> {
3707
- return localVarFp
3708
- .getSessionCommandLogs(workspaceId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
3709
- .then((request) => request(axios, basePath))
3710
- },
3711
- /**
3712
- * Add files to git commit
3713
- * @summary Add files
3714
- * @param {string} workspaceId
3715
- * @param {GitAddRequest} gitAddRequest
3716
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3717
- * @param {*} [options] Override http request option.
3718
- * @throws {RequiredError}
3719
- */
3720
- gitAddFiles(
3721
- workspaceId: string,
3722
- gitAddRequest: GitAddRequest,
3723
- xDaytonaOrganizationID?: string,
3724
- options?: RawAxiosRequestConfig,
3725
- ): AxiosPromise<void> {
3726
- return localVarFp
3727
- .gitAddFiles(workspaceId, gitAddRequest, xDaytonaOrganizationID, options)
3728
- .then((request) => request(axios, basePath))
3729
- },
3730
- /**
3731
- * Clone git repository
3732
- * @summary Clone repository
3733
- * @param {string} workspaceId
3734
- * @param {GitCloneRequest} gitCloneRequest
3735
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3736
- * @param {*} [options] Override http request option.
3737
- * @throws {RequiredError}
3738
- */
3739
- gitCloneRepository(
3740
- workspaceId: string,
3741
- gitCloneRequest: GitCloneRequest,
3742
- xDaytonaOrganizationID?: string,
3743
- options?: RawAxiosRequestConfig,
3744
- ): AxiosPromise<void> {
3745
- return localVarFp
3746
- .gitCloneRepository(workspaceId, gitCloneRequest, xDaytonaOrganizationID, options)
3747
- .then((request) => request(axios, basePath))
3748
- },
3749
- /**
3750
- * Commit changes to git repository
3751
- * @summary Commit changes
3752
- * @param {string} workspaceId
3753
- * @param {GitCommitRequest} gitCommitRequest
3754
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3755
- * @param {*} [options] Override http request option.
3756
- * @throws {RequiredError}
3757
- */
3758
- gitCommitChanges(
3759
- workspaceId: string,
3760
- gitCommitRequest: GitCommitRequest,
3761
- xDaytonaOrganizationID?: string,
3762
- options?: RawAxiosRequestConfig,
3763
- ): AxiosPromise<GitCommitResponse> {
3764
- return localVarFp
3765
- .gitCommitChanges(workspaceId, gitCommitRequest, xDaytonaOrganizationID, options)
3766
- .then((request) => request(axios, basePath))
3767
- },
3768
- /**
3769
- * Create branch on git repository
3770
- * @summary Create branch
3771
- * @param {string} workspaceId
3772
- * @param {GitBranchRequest} gitBranchRequest
3773
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3774
- * @param {*} [options] Override http request option.
3775
- * @throws {RequiredError}
3776
- */
3777
- gitCreateBranch(
3778
- workspaceId: string,
3779
- gitBranchRequest: GitBranchRequest,
3780
- xDaytonaOrganizationID?: string,
3781
- options?: RawAxiosRequestConfig,
3782
- ): AxiosPromise<void> {
3783
- return localVarFp
3784
- .gitCreateBranch(workspaceId, gitBranchRequest, xDaytonaOrganizationID, options)
3785
- .then((request) => request(axios, basePath))
3786
- },
3787
- /**
3788
- * Get commit history from git repository
3789
- * @summary Get commit history
3790
- * @param {string} workspaceId
3791
- * @param {string} path
3792
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3793
- * @param {*} [options] Override http request option.
3794
- * @throws {RequiredError}
3795
- */
3796
- gitGetHistory(
3797
- workspaceId: string,
3798
- path: string,
3799
- xDaytonaOrganizationID?: string,
3800
- options?: RawAxiosRequestConfig,
3801
- ): AxiosPromise<Array<GitCommitInfo>> {
3802
- return localVarFp
3803
- .gitGetHistory(workspaceId, path, xDaytonaOrganizationID, options)
3804
- .then((request) => request(axios, basePath))
3805
- },
3806
- /**
3807
- * Get status from git repository
3808
- * @summary Get git status
3809
- * @param {string} workspaceId
3810
- * @param {string} path
3811
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3812
- * @param {*} [options] Override http request option.
3813
- * @throws {RequiredError}
3814
- */
3815
- gitGetStatus(
3816
- workspaceId: string,
3817
- path: string,
3818
- xDaytonaOrganizationID?: string,
3819
- options?: RawAxiosRequestConfig,
3820
- ): AxiosPromise<GitStatus> {
3821
- return localVarFp
3822
- .gitGetStatus(workspaceId, path, xDaytonaOrganizationID, options)
3823
- .then((request) => request(axios, basePath))
3824
- },
3825
- /**
3826
- * Get branch list from git repository
3827
- * @summary Get branch list
3828
- * @param {string} workspaceId
3829
- * @param {string} path
3830
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3831
- * @param {*} [options] Override http request option.
3832
- * @throws {RequiredError}
3833
- */
3834
- gitListBranches(
3835
- workspaceId: string,
3836
- path: string,
3837
- xDaytonaOrganizationID?: string,
3838
- options?: RawAxiosRequestConfig,
3839
- ): AxiosPromise<ListBranchResponse> {
3840
- return localVarFp
3841
- .gitListBranches(workspaceId, path, xDaytonaOrganizationID, options)
3842
- .then((request) => request(axios, basePath))
3843
- },
3844
- /**
3845
- * Pull changes from remote
3846
- * @summary Pull changes
3847
- * @param {string} workspaceId
3848
- * @param {GitRepoRequest} gitRepoRequest
3849
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3850
- * @param {*} [options] Override http request option.
3851
- * @throws {RequiredError}
3852
- */
3853
- gitPullChanges(
3854
- workspaceId: string,
3855
- gitRepoRequest: GitRepoRequest,
3856
- xDaytonaOrganizationID?: string,
3857
- options?: RawAxiosRequestConfig,
3858
- ): AxiosPromise<void> {
3859
- return localVarFp
3860
- .gitPullChanges(workspaceId, gitRepoRequest, xDaytonaOrganizationID, options)
3861
- .then((request) => request(axios, basePath))
3862
- },
3863
- /**
3864
- * Push changes to remote
3865
- * @summary Push changes
3866
- * @param {string} workspaceId
3867
- * @param {GitRepoRequest} gitRepoRequest
3868
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3869
- * @param {*} [options] Override http request option.
3870
- * @throws {RequiredError}
3871
- */
3872
- gitPushChanges(
3873
- workspaceId: string,
3874
- gitRepoRequest: GitRepoRequest,
3875
- xDaytonaOrganizationID?: string,
3876
- options?: RawAxiosRequestConfig,
3877
- ): AxiosPromise<void> {
3878
- return localVarFp
3879
- .gitPushChanges(workspaceId, gitRepoRequest, xDaytonaOrganizationID, options)
3880
- .then((request) => request(axios, basePath))
3881
- },
3882
- /**
3883
- *
3884
- * @summary List files
3885
- * @param {string} workspaceId
3886
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3887
- * @param {string} [path]
3888
- * @param {*} [options] Override http request option.
3889
- * @throws {RequiredError}
3890
- */
3891
- listFiles(
3892
- workspaceId: string,
3893
- xDaytonaOrganizationID?: string,
3894
- path?: string,
3895
- options?: RawAxiosRequestConfig,
3896
- ): AxiosPromise<Array<FileInfo>> {
3897
- return localVarFp
3898
- .listFiles(workspaceId, xDaytonaOrganizationID, path, options)
3899
- .then((request) => request(axios, basePath))
3900
- },
3901
- /**
3902
- * List all active sessions in the workspace
3903
- * @summary List sessions
3904
- * @param {string} workspaceId
3905
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3906
- * @param {*} [options] Override http request option.
3907
- * @throws {RequiredError}
3908
- */
3909
- listSessions(
3910
- workspaceId: string,
3911
- xDaytonaOrganizationID?: string,
3912
- options?: RawAxiosRequestConfig,
3913
- ): AxiosPromise<Array<Session>> {
3914
- return localVarFp
3915
- .listSessions(workspaceId, xDaytonaOrganizationID, options)
3916
- .then((request) => request(axios, basePath))
3917
- },
3918
- /**
3919
- * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
3920
- * @summary Get Lsp Completions
3921
- * @param {string} workspaceId
3922
- * @param {LspCompletionParams} lspCompletionParams
3923
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3924
- * @param {*} [options] Override http request option.
3925
- * @throws {RequiredError}
3926
- */
3927
- lspCompletions(
3928
- workspaceId: string,
3929
- lspCompletionParams: LspCompletionParams,
3930
- xDaytonaOrganizationID?: string,
3931
- options?: RawAxiosRequestConfig,
3932
- ): AxiosPromise<CompletionList> {
3933
- return localVarFp
3934
- .lspCompletions(workspaceId, lspCompletionParams, xDaytonaOrganizationID, options)
3935
- .then((request) => request(axios, basePath))
3936
- },
3937
- /**
3938
- * The document close notification is sent from the client to the server when the document got closed in the client.
3939
- * @summary Call Lsp DidClose
3940
- * @param {string} workspaceId
3941
- * @param {LspDocumentRequest} lspDocumentRequest
3942
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3943
- * @param {*} [options] Override http request option.
3944
- * @throws {RequiredError}
3945
- */
3946
- lspDidClose(
3947
- workspaceId: string,
3948
- lspDocumentRequest: LspDocumentRequest,
3949
- xDaytonaOrganizationID?: string,
3950
- options?: RawAxiosRequestConfig,
3951
- ): AxiosPromise<void> {
3952
- return localVarFp
3953
- .lspDidClose(workspaceId, lspDocumentRequest, xDaytonaOrganizationID, options)
3954
- .then((request) => request(axios, basePath))
3955
- },
3956
- /**
3957
- * The document open notification is sent from the client to the server to signal newly opened text documents.
3958
- * @summary Call Lsp DidOpen
3959
- * @param {string} workspaceId
3960
- * @param {LspDocumentRequest} lspDocumentRequest
3961
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3962
- * @param {*} [options] Override http request option.
3963
- * @throws {RequiredError}
3964
- */
3965
- lspDidOpen(
3966
- workspaceId: string,
3967
- lspDocumentRequest: LspDocumentRequest,
3968
- xDaytonaOrganizationID?: string,
3969
- options?: RawAxiosRequestConfig,
3970
- ): AxiosPromise<void> {
3971
- return localVarFp
3972
- .lspDidOpen(workspaceId, lspDocumentRequest, xDaytonaOrganizationID, options)
3973
- .then((request) => request(axios, basePath))
3974
- },
3975
- /**
3976
- * The document symbol request is sent from the client to the server.
3977
- * @summary Call Lsp DocumentSymbols
3978
- * @param {string} workspaceId
3979
- * @param {string} languageId
3980
- * @param {string} pathToProject
3981
- * @param {string} uri
3982
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3983
- * @param {*} [options] Override http request option.
3984
- * @throws {RequiredError}
3985
- */
3986
- lspDocumentSymbols(
3987
- workspaceId: string,
3988
- languageId: string,
3989
- pathToProject: string,
3990
- uri: string,
3991
- xDaytonaOrganizationID?: string,
3992
- options?: RawAxiosRequestConfig,
3993
- ): AxiosPromise<Array<LspSymbol>> {
3994
- return localVarFp
3995
- .lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
3996
- .then((request) => request(axios, basePath))
3997
- },
3998
- /**
3999
- * Start Lsp server process inside workspace project
4000
- * @summary Start Lsp server
4001
- * @param {string} workspaceId
4002
- * @param {LspServerRequest} lspServerRequest
4003
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4004
- * @param {*} [options] Override http request option.
4005
- * @throws {RequiredError}
4006
- */
4007
- lspStart(
4008
- workspaceId: string,
4009
- lspServerRequest: LspServerRequest,
4010
- xDaytonaOrganizationID?: string,
4011
- options?: RawAxiosRequestConfig,
4012
- ): AxiosPromise<void> {
4013
- return localVarFp
4014
- .lspStart(workspaceId, lspServerRequest, xDaytonaOrganizationID, options)
4015
- .then((request) => request(axios, basePath))
4016
- },
4017
- /**
4018
- * Stop Lsp server process inside workspace project
4019
- * @summary Stop Lsp server
4020
- * @param {string} workspaceId
4021
- * @param {LspServerRequest} lspServerRequest
4022
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4023
- * @param {*} [options] Override http request option.
4024
- * @throws {RequiredError}
4025
- */
4026
- lspStop(
4027
- workspaceId: string,
4028
- lspServerRequest: LspServerRequest,
4029
- xDaytonaOrganizationID?: string,
4030
- options?: RawAxiosRequestConfig,
4031
- ): AxiosPromise<void> {
4032
- return localVarFp
4033
- .lspStop(workspaceId, lspServerRequest, xDaytonaOrganizationID, options)
4034
- .then((request) => request(axios, basePath))
4035
- },
4036
- /**
4037
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
4038
- * @summary Call Lsp WorkspaceSymbols
4039
- * @param {string} workspaceId
4040
- * @param {string} languageId
4041
- * @param {string} pathToProject
4042
- * @param {string} query
4043
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4044
- * @param {*} [options] Override http request option.
4045
- * @throws {RequiredError}
4046
- */
4047
- lspWorkspaceSymbols(
4048
- workspaceId: string,
4049
- languageId: string,
4050
- pathToProject: string,
4051
- query: string,
4052
- xDaytonaOrganizationID?: string,
4053
- options?: RawAxiosRequestConfig,
4054
- ): AxiosPromise<Array<LspSymbol>> {
4055
- return localVarFp
4056
- .lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
4057
- .then((request) => request(axios, basePath))
4058
- },
4059
- /**
4060
- * Move file inside workspace
4061
- * @summary Move file
4062
- * @param {string} workspaceId
4063
- * @param {string} source
4064
- * @param {string} destination
4065
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4066
- * @param {*} [options] Override http request option.
4067
- * @throws {RequiredError}
4068
- */
4069
- moveFile(
4070
- workspaceId: string,
4071
- source: string,
4072
- destination: string,
4073
- xDaytonaOrganizationID?: string,
4074
- options?: RawAxiosRequestConfig,
4075
- ): AxiosPromise<void> {
4076
- return localVarFp
4077
- .moveFile(workspaceId, source, destination, xDaytonaOrganizationID, options)
4078
- .then((request) => request(axios, basePath))
4079
- },
4080
- /**
4081
- * Replace text/pattern in multiple files inside workspace
4082
- * @summary Replace in files
4083
- * @param {string} workspaceId
4084
- * @param {ReplaceRequest} replaceRequest
4085
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4086
- * @param {*} [options] Override http request option.
4087
- * @throws {RequiredError}
4088
- */
4089
- replaceInFiles(
4090
- workspaceId: string,
4091
- replaceRequest: ReplaceRequest,
4092
- xDaytonaOrganizationID?: string,
4093
- options?: RawAxiosRequestConfig,
4094
- ): AxiosPromise<Array<ReplaceResult>> {
4095
- return localVarFp
4096
- .replaceInFiles(workspaceId, replaceRequest, xDaytonaOrganizationID, options)
4097
- .then((request) => request(axios, basePath))
4098
- },
4099
- /**
4100
- * Search for files inside workspace
4101
- * @summary Search files
4102
- * @param {string} workspaceId
4103
- * @param {string} path
4104
- * @param {string} pattern
4105
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4106
- * @param {*} [options] Override http request option.
4107
- * @throws {RequiredError}
4108
- */
4109
- searchFiles(
4110
- workspaceId: string,
4111
- path: string,
4112
- pattern: string,
4113
- xDaytonaOrganizationID?: string,
4114
- options?: RawAxiosRequestConfig,
4115
- ): AxiosPromise<SearchFilesResponse> {
4116
- return localVarFp
4117
- .searchFiles(workspaceId, path, pattern, xDaytonaOrganizationID, options)
4118
- .then((request) => request(axios, basePath))
4119
- },
4120
- /**
4121
- * Set file owner/group/permissions inside workspace
4122
- * @summary Set file permissions
4123
- * @param {string} workspaceId
4124
- * @param {string} path
4125
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4126
- * @param {string} [owner]
4127
- * @param {string} [group]
4128
- * @param {string} [mode]
4129
- * @param {*} [options] Override http request option.
4130
- * @throws {RequiredError}
4131
- */
4132
- setFilePermissions(
4133
- workspaceId: string,
4134
- path: string,
4135
- xDaytonaOrganizationID?: string,
4136
- owner?: string,
4137
- group?: string,
4138
- mode?: string,
4139
- options?: RawAxiosRequestConfig,
4140
- ): AxiosPromise<void> {
4141
- return localVarFp
4142
- .setFilePermissions(workspaceId, path, xDaytonaOrganizationID, owner, group, mode, options)
4143
- .then((request) => request(axios, basePath))
4144
- },
4145
- /**
4146
- * Upload file inside workspace
4147
- * @summary Upload file
4148
- * @param {string} workspaceId
4149
- * @param {string} path
4150
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4151
- * @param {File} [file]
4152
- * @param {*} [options] Override http request option.
4153
- * @throws {RequiredError}
4154
- */
4155
- uploadFile(
4156
- workspaceId: string,
4157
- path: string,
4158
- xDaytonaOrganizationID?: string,
4159
- file?: File,
4160
- options?: RawAxiosRequestConfig,
4161
- ): AxiosPromise<void> {
4162
- return localVarFp
4163
- .uploadFile(workspaceId, path, xDaytonaOrganizationID, file, options)
4164
- .then((request) => request(axios, basePath))
4165
- },
4166
- }
4167
- }
4168
-
4169
- /**
4170
- * ToolboxApi - object-oriented interface
4171
- * @export
4172
- * @class ToolboxApi
4173
- * @extends {BaseAPI}
4174
- */
4175
- export class ToolboxApi extends BaseAPI {
4176
- /**
4177
- * Create folder inside workspace
4178
- * @summary Create folder
4179
- * @param {string} workspaceId
4180
- * @param {string} path
4181
- * @param {string} mode
4182
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4183
- * @param {*} [options] Override http request option.
4184
- * @throws {RequiredError}
4185
- * @memberof ToolboxApi
4186
- */
4187
- public createFolder(
4188
- workspaceId: string,
4189
- path: string,
4190
- mode: string,
4191
- xDaytonaOrganizationID?: string,
4192
- options?: RawAxiosRequestConfig,
4193
- ) {
4194
- return ToolboxApiFp(this.configuration)
4195
- .createFolder(workspaceId, path, mode, xDaytonaOrganizationID, options)
4196
- .then((request) => request(this.axios, this.basePath))
4197
- }
4198
-
4199
- /**
4200
- * Create a new session in the workspace
4201
- * @summary Create session
4202
- * @param {string} workspaceId
4203
- * @param {CreateSessionRequest} createSessionRequest
4204
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4205
- * @param {*} [options] Override http request option.
4206
- * @throws {RequiredError}
4207
- * @memberof ToolboxApi
4208
- */
4209
- public createSession(
4210
- workspaceId: string,
4211
- createSessionRequest: CreateSessionRequest,
4212
- xDaytonaOrganizationID?: string,
4213
- options?: RawAxiosRequestConfig,
4214
- ) {
4215
- return ToolboxApiFp(this.configuration)
4216
- .createSession(workspaceId, createSessionRequest, xDaytonaOrganizationID, options)
4217
- .then((request) => request(this.axios, this.basePath))
4218
- }
4219
-
4220
- /**
4221
- * Delete file inside workspace
4222
- * @summary Delete file
4223
- * @param {string} workspaceId
4224
- * @param {string} path
4225
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4226
- * @param {*} [options] Override http request option.
4227
- * @throws {RequiredError}
4228
- * @memberof ToolboxApi
4229
- */
4230
- public deleteFile(
4231
- workspaceId: string,
4232
- path: string,
4233
- xDaytonaOrganizationID?: string,
4234
- options?: RawAxiosRequestConfig,
4235
- ) {
4236
- return ToolboxApiFp(this.configuration)
4237
- .deleteFile(workspaceId, path, xDaytonaOrganizationID, options)
4238
- .then((request) => request(this.axios, this.basePath))
4239
- }
4240
-
4241
- /**
4242
- * Delete a specific session
4243
- * @summary Delete session
4244
- * @param {string} workspaceId
4245
- * @param {string} sessionId
4246
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4247
- * @param {*} [options] Override http request option.
4248
- * @throws {RequiredError}
4249
- * @memberof ToolboxApi
4250
- */
4251
- public deleteSession(
4252
- workspaceId: string,
4253
- sessionId: string,
4254
- xDaytonaOrganizationID?: string,
4255
- options?: RawAxiosRequestConfig,
4256
- ) {
4257
- return ToolboxApiFp(this.configuration)
4258
- .deleteSession(workspaceId, sessionId, xDaytonaOrganizationID, options)
4259
- .then((request) => request(this.axios, this.basePath))
4260
- }
4261
-
4262
- /**
4263
- * Download file from workspace
4264
- * @summary Download file
4265
- * @param {string} workspaceId
4266
- * @param {string} path
4267
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4268
- * @param {*} [options] Override http request option.
4269
- * @throws {RequiredError}
4270
- * @memberof ToolboxApi
4271
- */
4272
- public downloadFile(
4273
- workspaceId: string,
4274
- path: string,
4275
- xDaytonaOrganizationID?: string,
4276
- options?: RawAxiosRequestConfig,
4277
- ) {
4278
- return ToolboxApiFp(this.configuration)
4279
- .downloadFile(workspaceId, path, xDaytonaOrganizationID, options)
4280
- .then((request) => request(this.axios, this.basePath))
4281
- }
4282
-
4283
- /**
4284
- * Execute command synchronously inside workspace
4285
- * @summary Execute command
4286
- * @param {string} workspaceId
4287
- * @param {ExecuteRequest} executeRequest
4288
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4289
- * @param {*} [options] Override http request option.
4290
- * @throws {RequiredError}
4291
- * @memberof ToolboxApi
4292
- */
4293
- public executeCommand(
4294
- workspaceId: string,
4295
- executeRequest: ExecuteRequest,
4296
- xDaytonaOrganizationID?: string,
4297
- options?: RawAxiosRequestConfig,
4298
- ) {
4299
- return ToolboxApiFp(this.configuration)
4300
- .executeCommand(workspaceId, executeRequest, xDaytonaOrganizationID, options)
4301
- .then((request) => request(this.axios, this.basePath))
4302
- }
4303
-
4304
- /**
4305
- * Execute a command in a specific session
4306
- * @summary Execute command in session
4307
- * @param {string} workspaceId
4308
- * @param {string} sessionId
4309
- * @param {SessionExecuteRequest} sessionExecuteRequest
4310
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4311
- * @param {*} [options] Override http request option.
4312
- * @throws {RequiredError}
4313
- * @memberof ToolboxApi
4314
- */
4315
- public executeSessionCommand(
4316
- workspaceId: string,
4317
- sessionId: string,
4318
- sessionExecuteRequest: SessionExecuteRequest,
4319
- xDaytonaOrganizationID?: string,
4320
- options?: RawAxiosRequestConfig,
4321
- ) {
4322
- return ToolboxApiFp(this.configuration)
4323
- .executeSessionCommand(workspaceId, sessionId, sessionExecuteRequest, xDaytonaOrganizationID, options)
4324
- .then((request) => request(this.axios, this.basePath))
4325
- }
4326
-
4327
- /**
4328
- * Search for text/pattern inside workspace files
4329
- * @summary Search for text/pattern in files
4330
- * @param {string} workspaceId
4331
- * @param {string} path
4332
- * @param {string} pattern
4333
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4334
- * @param {*} [options] Override http request option.
4335
- * @throws {RequiredError}
4336
- * @memberof ToolboxApi
4337
- */
4338
- public findInFiles(
4339
- workspaceId: string,
4340
- path: string,
4341
- pattern: string,
4342
- xDaytonaOrganizationID?: string,
4343
- options?: RawAxiosRequestConfig,
4344
- ) {
4345
- return ToolboxApiFp(this.configuration)
4346
- .findInFiles(workspaceId, path, pattern, xDaytonaOrganizationID, options)
4347
- .then((request) => request(this.axios, this.basePath))
4348
- }
4349
-
4350
- /**
4351
- * Get file info inside workspace
4352
- * @summary Get file info
4353
- * @param {string} workspaceId
4354
- * @param {string} path
4355
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4356
- * @param {*} [options] Override http request option.
4357
- * @throws {RequiredError}
4358
- * @memberof ToolboxApi
4359
- */
4360
- public getFileInfo(
4361
- workspaceId: string,
4362
- path: string,
4363
- xDaytonaOrganizationID?: string,
4364
- options?: RawAxiosRequestConfig,
4365
- ) {
4366
- return ToolboxApiFp(this.configuration)
4367
- .getFileInfo(workspaceId, path, xDaytonaOrganizationID, options)
4368
- .then((request) => request(this.axios, this.basePath))
4369
- }
4370
-
4371
- /**
4372
- *
4373
- * @summary Get workspace project dir
4374
- * @param {string} workspaceId
4375
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4376
- * @param {*} [options] Override http request option.
4377
- * @throws {RequiredError}
4378
- * @memberof ToolboxApi
4379
- */
4380
- public getProjectDir(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
4381
- return ToolboxApiFp(this.configuration)
4382
- .getProjectDir(workspaceId, xDaytonaOrganizationID, options)
4383
- .then((request) => request(this.axios, this.basePath))
4384
- }
4385
-
4386
- /**
4387
- * Get session by ID
4388
- * @summary Get session
4389
- * @param {string} workspaceId
4390
- * @param {string} sessionId
4391
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4392
- * @param {*} [options] Override http request option.
4393
- * @throws {RequiredError}
4394
- * @memberof ToolboxApi
4395
- */
4396
- public getSession(
4397
- workspaceId: string,
4398
- sessionId: string,
4399
- xDaytonaOrganizationID?: string,
4400
- options?: RawAxiosRequestConfig,
4401
- ) {
4402
- return ToolboxApiFp(this.configuration)
4403
- .getSession(workspaceId, sessionId, xDaytonaOrganizationID, options)
4404
- .then((request) => request(this.axios, this.basePath))
4405
- }
4406
-
4407
- /**
4408
- * Get session command by ID
4409
- * @summary Get session command
4410
- * @param {string} workspaceId
4411
- * @param {string} sessionId
4412
- * @param {string} commandId
4413
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4414
- * @param {*} [options] Override http request option.
4415
- * @throws {RequiredError}
4416
- * @memberof ToolboxApi
4417
- */
4418
- public getSessionCommand(
4419
- workspaceId: string,
4420
- sessionId: string,
4421
- commandId: string,
4422
- xDaytonaOrganizationID?: string,
4423
- options?: RawAxiosRequestConfig,
4424
- ) {
4425
- return ToolboxApiFp(this.configuration)
4426
- .getSessionCommand(workspaceId, sessionId, commandId, xDaytonaOrganizationID, options)
4427
- .then((request) => request(this.axios, this.basePath))
4428
- }
4429
-
4430
- /**
4431
- * Get logs for a specific command in a session
4432
- * @summary Get command logs
4433
- * @param {string} workspaceId
4434
- * @param {string} sessionId
4435
- * @param {string} commandId
4436
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4437
- * @param {boolean} [follow]
4438
- * @param {*} [options] Override http request option.
4439
- * @throws {RequiredError}
4440
- * @memberof ToolboxApi
4441
- */
4442
- public getSessionCommandLogs(
4443
- workspaceId: string,
4444
- sessionId: string,
4445
- commandId: string,
4446
- xDaytonaOrganizationID?: string,
4447
- follow?: boolean,
4448
- options?: RawAxiosRequestConfig,
4449
- ) {
4450
- return ToolboxApiFp(this.configuration)
4451
- .getSessionCommandLogs(workspaceId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
4452
- .then((request) => request(this.axios, this.basePath))
4453
- }
4454
-
4455
- /**
4456
- * Add files to git commit
4457
- * @summary Add files
4458
- * @param {string} workspaceId
4459
- * @param {GitAddRequest} gitAddRequest
4460
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4461
- * @param {*} [options] Override http request option.
4462
- * @throws {RequiredError}
4463
- * @memberof ToolboxApi
4464
- */
4465
- public gitAddFiles(
4466
- workspaceId: string,
4467
- gitAddRequest: GitAddRequest,
4468
- xDaytonaOrganizationID?: string,
4469
- options?: RawAxiosRequestConfig,
4470
- ) {
4471
- return ToolboxApiFp(this.configuration)
4472
- .gitAddFiles(workspaceId, gitAddRequest, xDaytonaOrganizationID, options)
4473
- .then((request) => request(this.axios, this.basePath))
4474
- }
4475
-
4476
- /**
4477
- * Clone git repository
4478
- * @summary Clone repository
4479
- * @param {string} workspaceId
4480
- * @param {GitCloneRequest} gitCloneRequest
4481
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4482
- * @param {*} [options] Override http request option.
4483
- * @throws {RequiredError}
4484
- * @memberof ToolboxApi
4485
- */
4486
- public gitCloneRepository(
4487
- workspaceId: string,
4488
- gitCloneRequest: GitCloneRequest,
4489
- xDaytonaOrganizationID?: string,
4490
- options?: RawAxiosRequestConfig,
4491
- ) {
4492
- return ToolboxApiFp(this.configuration)
4493
- .gitCloneRepository(workspaceId, gitCloneRequest, xDaytonaOrganizationID, options)
4494
- .then((request) => request(this.axios, this.basePath))
4495
- }
4496
-
4497
- /**
4498
- * Commit changes to git repository
4499
- * @summary Commit changes
4500
- * @param {string} workspaceId
4501
- * @param {GitCommitRequest} gitCommitRequest
4502
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4503
- * @param {*} [options] Override http request option.
4504
- * @throws {RequiredError}
4505
- * @memberof ToolboxApi
4506
- */
4507
- public gitCommitChanges(
4508
- workspaceId: string,
4509
- gitCommitRequest: GitCommitRequest,
4510
- xDaytonaOrganizationID?: string,
4511
- options?: RawAxiosRequestConfig,
4512
- ) {
4513
- return ToolboxApiFp(this.configuration)
4514
- .gitCommitChanges(workspaceId, gitCommitRequest, xDaytonaOrganizationID, options)
4515
- .then((request) => request(this.axios, this.basePath))
4516
- }
4517
-
4518
- /**
4519
- * Create branch on git repository
4520
- * @summary Create branch
4521
- * @param {string} workspaceId
4522
- * @param {GitBranchRequest} gitBranchRequest
4523
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4524
- * @param {*} [options] Override http request option.
4525
- * @throws {RequiredError}
4526
- * @memberof ToolboxApi
4527
- */
4528
- public gitCreateBranch(
4529
- workspaceId: string,
4530
- gitBranchRequest: GitBranchRequest,
4531
- xDaytonaOrganizationID?: string,
4532
- options?: RawAxiosRequestConfig,
4533
- ) {
4534
- return ToolboxApiFp(this.configuration)
4535
- .gitCreateBranch(workspaceId, gitBranchRequest, xDaytonaOrganizationID, options)
4536
- .then((request) => request(this.axios, this.basePath))
4537
- }
4538
-
4539
- /**
4540
- * Get commit history from git repository
4541
- * @summary Get commit history
4542
- * @param {string} workspaceId
4543
- * @param {string} path
4544
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4545
- * @param {*} [options] Override http request option.
4546
- * @throws {RequiredError}
4547
- * @memberof ToolboxApi
4548
- */
4549
- public gitGetHistory(
4550
- workspaceId: string,
4551
- path: string,
4552
- xDaytonaOrganizationID?: string,
4553
- options?: RawAxiosRequestConfig,
4554
- ) {
4555
- return ToolboxApiFp(this.configuration)
4556
- .gitGetHistory(workspaceId, path, xDaytonaOrganizationID, options)
4557
- .then((request) => request(this.axios, this.basePath))
4558
- }
4559
-
4560
- /**
4561
- * Get status from git repository
4562
- * @summary Get git status
4563
- * @param {string} workspaceId
4564
- * @param {string} path
4565
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4566
- * @param {*} [options] Override http request option.
4567
- * @throws {RequiredError}
4568
- * @memberof ToolboxApi
4569
- */
4570
- public gitGetStatus(
4571
- workspaceId: string,
4572
- path: string,
4573
- xDaytonaOrganizationID?: string,
4574
- options?: RawAxiosRequestConfig,
4575
- ) {
4576
- return ToolboxApiFp(this.configuration)
4577
- .gitGetStatus(workspaceId, path, xDaytonaOrganizationID, options)
4578
- .then((request) => request(this.axios, this.basePath))
4579
- }
4580
-
4581
- /**
4582
- * Get branch list from git repository
4583
- * @summary Get branch list
4584
- * @param {string} workspaceId
4585
- * @param {string} path
4586
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4587
- * @param {*} [options] Override http request option.
4588
- * @throws {RequiredError}
4589
- * @memberof ToolboxApi
4590
- */
4591
- public gitListBranches(
4592
- workspaceId: string,
4593
- path: string,
4594
- xDaytonaOrganizationID?: string,
4595
- options?: RawAxiosRequestConfig,
4596
- ) {
4597
- return ToolboxApiFp(this.configuration)
4598
- .gitListBranches(workspaceId, path, xDaytonaOrganizationID, options)
4599
- .then((request) => request(this.axios, this.basePath))
4600
- }
4601
-
4602
- /**
4603
- * Pull changes from remote
4604
- * @summary Pull changes
4605
- * @param {string} workspaceId
4606
- * @param {GitRepoRequest} gitRepoRequest
4607
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4608
- * @param {*} [options] Override http request option.
4609
- * @throws {RequiredError}
4610
- * @memberof ToolboxApi
4611
- */
4612
- public gitPullChanges(
4613
- workspaceId: string,
4614
- gitRepoRequest: GitRepoRequest,
4615
- xDaytonaOrganizationID?: string,
4616
- options?: RawAxiosRequestConfig,
4617
- ) {
4618
- return ToolboxApiFp(this.configuration)
4619
- .gitPullChanges(workspaceId, gitRepoRequest, xDaytonaOrganizationID, options)
4620
- .then((request) => request(this.axios, this.basePath))
4621
- }
4622
-
4623
- /**
4624
- * Push changes to remote
4625
- * @summary Push changes
4626
- * @param {string} workspaceId
4627
- * @param {GitRepoRequest} gitRepoRequest
4628
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4629
- * @param {*} [options] Override http request option.
4630
- * @throws {RequiredError}
4631
- * @memberof ToolboxApi
4632
- */
4633
- public gitPushChanges(
4634
- workspaceId: string,
4635
- gitRepoRequest: GitRepoRequest,
4636
- xDaytonaOrganizationID?: string,
4637
- options?: RawAxiosRequestConfig,
4638
- ) {
4639
- return ToolboxApiFp(this.configuration)
4640
- .gitPushChanges(workspaceId, gitRepoRequest, xDaytonaOrganizationID, options)
4641
- .then((request) => request(this.axios, this.basePath))
4642
- }
4643
-
4644
- /**
4645
- *
4646
- * @summary List files
4647
- * @param {string} workspaceId
4648
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4649
- * @param {string} [path]
4650
- * @param {*} [options] Override http request option.
4651
- * @throws {RequiredError}
4652
- * @memberof ToolboxApi
4653
- */
4654
- public listFiles(
4655
- workspaceId: string,
4656
- xDaytonaOrganizationID?: string,
4657
- path?: string,
4658
- options?: RawAxiosRequestConfig,
4659
- ) {
4660
- return ToolboxApiFp(this.configuration)
4661
- .listFiles(workspaceId, xDaytonaOrganizationID, path, options)
4662
- .then((request) => request(this.axios, this.basePath))
4663
- }
4664
-
4665
- /**
4666
- * List all active sessions in the workspace
4667
- * @summary List sessions
4668
- * @param {string} workspaceId
4669
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4670
- * @param {*} [options] Override http request option.
4671
- * @throws {RequiredError}
4672
- * @memberof ToolboxApi
4673
- */
4674
- public listSessions(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
4675
- return ToolboxApiFp(this.configuration)
4676
- .listSessions(workspaceId, xDaytonaOrganizationID, options)
4677
- .then((request) => request(this.axios, this.basePath))
4678
- }
4679
-
4680
- /**
4681
- * The Completion request is sent from the client to the server to compute completion items at a given cursor position.
4682
- * @summary Get Lsp Completions
4683
- * @param {string} workspaceId
4684
- * @param {LspCompletionParams} lspCompletionParams
4685
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4686
- * @param {*} [options] Override http request option.
4687
- * @throws {RequiredError}
4688
- * @memberof ToolboxApi
4689
- */
4690
- public lspCompletions(
4691
- workspaceId: string,
4692
- lspCompletionParams: LspCompletionParams,
4693
- xDaytonaOrganizationID?: string,
4694
- options?: RawAxiosRequestConfig,
4695
- ) {
4696
- return ToolboxApiFp(this.configuration)
4697
- .lspCompletions(workspaceId, lspCompletionParams, xDaytonaOrganizationID, options)
4698
- .then((request) => request(this.axios, this.basePath))
4699
- }
4700
-
4701
- /**
4702
- * The document close notification is sent from the client to the server when the document got closed in the client.
4703
- * @summary Call Lsp DidClose
4704
- * @param {string} workspaceId
4705
- * @param {LspDocumentRequest} lspDocumentRequest
4706
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4707
- * @param {*} [options] Override http request option.
4708
- * @throws {RequiredError}
4709
- * @memberof ToolboxApi
4710
- */
4711
- public lspDidClose(
4712
- workspaceId: string,
4713
- lspDocumentRequest: LspDocumentRequest,
4714
- xDaytonaOrganizationID?: string,
4715
- options?: RawAxiosRequestConfig,
4716
- ) {
4717
- return ToolboxApiFp(this.configuration)
4718
- .lspDidClose(workspaceId, lspDocumentRequest, xDaytonaOrganizationID, options)
4719
- .then((request) => request(this.axios, this.basePath))
4720
- }
4721
-
4722
- /**
4723
- * The document open notification is sent from the client to the server to signal newly opened text documents.
4724
- * @summary Call Lsp DidOpen
4725
- * @param {string} workspaceId
4726
- * @param {LspDocumentRequest} lspDocumentRequest
4727
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4728
- * @param {*} [options] Override http request option.
4729
- * @throws {RequiredError}
4730
- * @memberof ToolboxApi
4731
- */
4732
- public lspDidOpen(
4733
- workspaceId: string,
4734
- lspDocumentRequest: LspDocumentRequest,
4735
- xDaytonaOrganizationID?: string,
4736
- options?: RawAxiosRequestConfig,
4737
- ) {
4738
- return ToolboxApiFp(this.configuration)
4739
- .lspDidOpen(workspaceId, lspDocumentRequest, xDaytonaOrganizationID, options)
4740
- .then((request) => request(this.axios, this.basePath))
4741
- }
4742
-
4743
- /**
4744
- * The document symbol request is sent from the client to the server.
4745
- * @summary Call Lsp DocumentSymbols
4746
- * @param {string} workspaceId
4747
- * @param {string} languageId
4748
- * @param {string} pathToProject
4749
- * @param {string} uri
4750
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4751
- * @param {*} [options] Override http request option.
4752
- * @throws {RequiredError}
4753
- * @memberof ToolboxApi
4754
- */
4755
- public lspDocumentSymbols(
4756
- workspaceId: string,
4757
- languageId: string,
4758
- pathToProject: string,
4759
- uri: string,
4760
- xDaytonaOrganizationID?: string,
4761
- options?: RawAxiosRequestConfig,
4762
- ) {
4763
- return ToolboxApiFp(this.configuration)
4764
- .lspDocumentSymbols(workspaceId, languageId, pathToProject, uri, xDaytonaOrganizationID, options)
4765
- .then((request) => request(this.axios, this.basePath))
4766
- }
4767
-
4768
- /**
4769
- * Start Lsp server process inside workspace project
4770
- * @summary Start Lsp server
4771
- * @param {string} workspaceId
4772
- * @param {LspServerRequest} lspServerRequest
4773
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4774
- * @param {*} [options] Override http request option.
4775
- * @throws {RequiredError}
4776
- * @memberof ToolboxApi
4777
- */
4778
- public lspStart(
4779
- workspaceId: string,
4780
- lspServerRequest: LspServerRequest,
4781
- xDaytonaOrganizationID?: string,
4782
- options?: RawAxiosRequestConfig,
4783
- ) {
4784
- return ToolboxApiFp(this.configuration)
4785
- .lspStart(workspaceId, lspServerRequest, xDaytonaOrganizationID, options)
4786
- .then((request) => request(this.axios, this.basePath))
4787
- }
4788
-
4789
- /**
4790
- * Stop Lsp server process inside workspace project
4791
- * @summary Stop Lsp server
4792
- * @param {string} workspaceId
4793
- * @param {LspServerRequest} lspServerRequest
4794
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4795
- * @param {*} [options] Override http request option.
4796
- * @throws {RequiredError}
4797
- * @memberof ToolboxApi
4798
- */
4799
- public lspStop(
4800
- workspaceId: string,
4801
- lspServerRequest: LspServerRequest,
4802
- xDaytonaOrganizationID?: string,
4803
- options?: RawAxiosRequestConfig,
4804
- ) {
4805
- return ToolboxApiFp(this.configuration)
4806
- .lspStop(workspaceId, lspServerRequest, xDaytonaOrganizationID, options)
4807
- .then((request) => request(this.axios, this.basePath))
4808
- }
4809
-
4810
- /**
4811
- * The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
4812
- * @summary Call Lsp WorkspaceSymbols
4813
- * @param {string} workspaceId
4814
- * @param {string} languageId
4815
- * @param {string} pathToProject
4816
- * @param {string} query
4817
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4818
- * @param {*} [options] Override http request option.
4819
- * @throws {RequiredError}
4820
- * @memberof ToolboxApi
4821
- */
4822
- public lspWorkspaceSymbols(
4823
- workspaceId: string,
4824
- languageId: string,
4825
- pathToProject: string,
4826
- query: string,
4827
- xDaytonaOrganizationID?: string,
4828
- options?: RawAxiosRequestConfig,
4829
- ) {
4830
- return ToolboxApiFp(this.configuration)
4831
- .lspWorkspaceSymbols(workspaceId, languageId, pathToProject, query, xDaytonaOrganizationID, options)
4832
- .then((request) => request(this.axios, this.basePath))
4833
- }
4834
-
4835
- /**
4836
- * Move file inside workspace
4837
- * @summary Move file
4838
- * @param {string} workspaceId
4839
- * @param {string} source
4840
- * @param {string} destination
4841
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4842
- * @param {*} [options] Override http request option.
4843
- * @throws {RequiredError}
4844
- * @memberof ToolboxApi
4845
- */
4846
- public moveFile(
4847
- workspaceId: string,
4848
- source: string,
4849
- destination: string,
4850
- xDaytonaOrganizationID?: string,
4851
- options?: RawAxiosRequestConfig,
4852
- ) {
4853
- return ToolboxApiFp(this.configuration)
4854
- .moveFile(workspaceId, source, destination, xDaytonaOrganizationID, options)
4855
- .then((request) => request(this.axios, this.basePath))
4856
- }
4857
-
4858
- /**
4859
- * Replace text/pattern in multiple files inside workspace
4860
- * @summary Replace in files
4861
- * @param {string} workspaceId
4862
- * @param {ReplaceRequest} replaceRequest
4863
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4864
- * @param {*} [options] Override http request option.
4865
- * @throws {RequiredError}
4866
- * @memberof ToolboxApi
4867
- */
4868
- public replaceInFiles(
4869
- workspaceId: string,
4870
- replaceRequest: ReplaceRequest,
4871
- xDaytonaOrganizationID?: string,
4872
- options?: RawAxiosRequestConfig,
4873
- ) {
4874
- return ToolboxApiFp(this.configuration)
4875
- .replaceInFiles(workspaceId, replaceRequest, xDaytonaOrganizationID, options)
4876
- .then((request) => request(this.axios, this.basePath))
4877
- }
4878
-
4879
- /**
4880
- * Search for files inside workspace
4881
- * @summary Search files
4882
- * @param {string} workspaceId
4883
- * @param {string} path
4884
- * @param {string} pattern
4885
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4886
- * @param {*} [options] Override http request option.
4887
- * @throws {RequiredError}
4888
- * @memberof ToolboxApi
4889
- */
4890
- public searchFiles(
4891
- workspaceId: string,
4892
- path: string,
4893
- pattern: string,
4894
- xDaytonaOrganizationID?: string,
4895
- options?: RawAxiosRequestConfig,
4896
- ) {
4897
- return ToolboxApiFp(this.configuration)
4898
- .searchFiles(workspaceId, path, pattern, xDaytonaOrganizationID, options)
4899
- .then((request) => request(this.axios, this.basePath))
4900
- }
4901
-
4902
- /**
4903
- * Set file owner/group/permissions inside workspace
4904
- * @summary Set file permissions
4905
- * @param {string} workspaceId
4906
- * @param {string} path
4907
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4908
- * @param {string} [owner]
4909
- * @param {string} [group]
4910
- * @param {string} [mode]
4911
- * @param {*} [options] Override http request option.
4912
- * @throws {RequiredError}
4913
- * @memberof ToolboxApi
4914
- */
4915
- public setFilePermissions(
4916
- workspaceId: string,
4917
- path: string,
4918
- xDaytonaOrganizationID?: string,
4919
- owner?: string,
4920
- group?: string,
4921
- mode?: string,
4922
- options?: RawAxiosRequestConfig,
4923
- ) {
4924
- return ToolboxApiFp(this.configuration)
4925
- .setFilePermissions(workspaceId, path, xDaytonaOrganizationID, owner, group, mode, options)
4926
- .then((request) => request(this.axios, this.basePath))
4927
- }
4928
-
4929
- /**
4930
- * Upload file inside workspace
4931
- * @summary Upload file
4932
- * @param {string} workspaceId
4933
- * @param {string} path
4934
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4935
- * @param {File} [file]
4936
- * @param {*} [options] Override http request option.
4937
- * @throws {RequiredError}
4938
- * @memberof ToolboxApi
4939
- */
4940
- public uploadFile(
4941
- workspaceId: string,
4942
- path: string,
4943
- xDaytonaOrganizationID?: string,
4944
- file?: File,
4945
- options?: RawAxiosRequestConfig,
4946
- ) {
4947
- return ToolboxApiFp(this.configuration)
4948
- .uploadFile(workspaceId, path, xDaytonaOrganizationID, file, options)
4949
- .then((request) => request(this.axios, this.basePath))
4950
- }
4951
- }