@daytonaio/api-client 0.18.0-alpha.2 → 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 (350) hide show
  1. package/package.json +5 -8
  2. package/src/api/api-keys-api.d.ts +220 -0
  3. package/src/api/api-keys-api.js +428 -0
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +299 -0
  6. package/src/api/docker-registry-api.js +592 -0
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/src/api/images-api.d.ts +317 -0
  9. package/src/api/images-api.js +624 -0
  10. package/src/api/images-api.js.map +1 -0
  11. package/src/api/nodes-api.d.ts +136 -0
  12. package/src/api/nodes-api.js +261 -0
  13. package/src/api/nodes-api.js.map +1 -0
  14. package/src/api/object-storage-api.d.ts +74 -0
  15. package/src/api/object-storage-api.js +127 -0
  16. package/src/api/object-storage-api.js.map +1 -0
  17. package/src/api/organizations-api.d.ts +927 -0
  18. package/src/api/organizations-api.js +1891 -0
  19. package/src/api/organizations-api.js.map +1 -0
  20. package/src/api/preview-api.d.ts +143 -0
  21. package/src/api/preview-api.js +265 -0
  22. package/src/api/preview-api.js.map +1 -0
  23. package/src/api/toolbox-api.d.ts +1599 -0
  24. package/src/api/toolbox-api.js +3250 -0
  25. package/src/api/toolbox-api.js.map +1 -0
  26. package/src/api/users-api.d.ts +166 -0
  27. package/src/api/users-api.js +311 -0
  28. package/src/api/users-api.js.map +1 -0
  29. package/src/api/volumes-api.d.ts +227 -0
  30. package/src/api/volumes-api.js +447 -0
  31. package/src/api/volumes-api.js.map +1 -0
  32. package/src/api/workspace-api.d.ts +516 -0
  33. package/src/api/workspace-api.js +1043 -0
  34. package/src/api/workspace-api.js.map +1 -0
  35. package/src/api.d.ts +22 -0
  36. package/src/api.js +28 -0
  37. package/src/api.js.map +1 -0
  38. package/src/base.d.ts +66 -0
  39. package/src/base.js +68 -0
  40. package/src/base.js.map +1 -0
  41. package/src/common.d.ts +65 -0
  42. package/src/common.js +146 -0
  43. package/src/common.js.map +1 -0
  44. package/src/configuration.d.ts +91 -0
  45. package/src/configuration.js +105 -0
  46. package/src/configuration.js.map +1 -0
  47. package/src/index.d.ts +14 -0
  48. package/src/index.js +20 -0
  49. package/src/index.js.map +1 -0
  50. package/src/models/api-key-list.d.ts +54 -0
  51. package/src/models/api-key-list.js +28 -0
  52. package/src/models/api-key-list.js.map +1 -0
  53. package/src/models/api-key-response.d.ts +54 -0
  54. package/src/models/api-key-response.js +28 -0
  55. package/src/models/api-key-response.js.map +1 -0
  56. package/src/models/build-image.d.ts +31 -0
  57. package/src/models/build-image.js +16 -0
  58. package/src/models/build-image.js.map +1 -0
  59. package/src/models/{command.ts → command.d.ts} +18 -21
  60. package/src/models/command.js +16 -0
  61. package/src/models/command.js.map +1 -0
  62. package/src/models/{completion-context.ts → completion-context.d.ts} +12 -15
  63. package/src/models/completion-context.js +16 -0
  64. package/src/models/completion-context.js.map +1 -0
  65. package/src/models/completion-item.d.ts +60 -0
  66. package/src/models/completion-item.js +16 -0
  67. package/src/models/completion-item.js.map +1 -0
  68. package/src/models/{completion-list.ts → completion-list.d.ts} +13 -19
  69. package/src/models/completion-list.js +16 -0
  70. package/src/models/completion-list.js.map +1 -0
  71. package/src/models/create-api-key.d.ts +42 -0
  72. package/src/models/create-api-key.js +28 -0
  73. package/src/models/create-api-key.js.map +1 -0
  74. package/src/models/{create-build-info.ts → create-build-info.d.ts} +12 -15
  75. package/src/models/create-build-info.js +16 -0
  76. package/src/models/create-build-info.js.map +1 -0
  77. package/src/models/create-docker-registry.d.ts +67 -0
  78. package/src/models/create-docker-registry.js +23 -0
  79. package/src/models/create-docker-registry.js.map +1 -0
  80. package/src/models/create-image.d.ts +36 -0
  81. package/src/models/create-image.js +16 -0
  82. package/src/models/create-image.js.map +1 -0
  83. package/src/models/create-node.d.ts +96 -0
  84. package/src/models/create-node.js +27 -0
  85. package/src/models/create-node.js.map +1 -0
  86. package/src/models/create-organization-invitation.d.ts +47 -0
  87. package/src/models/create-organization-invitation.js +21 -0
  88. package/src/models/create-organization-invitation.js.map +1 -0
  89. package/src/models/create-organization-quota.d.ts +84 -0
  90. package/src/models/create-organization-quota.js +16 -0
  91. package/src/models/create-organization-quota.js.map +1 -0
  92. package/src/models/create-organization-role.d.ts +48 -0
  93. package/src/models/create-organization-role.js +28 -0
  94. package/src/models/create-organization-role.js.map +1 -0
  95. package/src/models/{create-organization.ts → create-organization.d.ts} +6 -9
  96. package/src/models/create-organization.js +16 -0
  97. package/src/models/create-organization.js.map +1 -0
  98. package/src/models/{create-session-request.ts → create-session-request.d.ts} +6 -9
  99. package/src/models/create-session-request.js +16 -0
  100. package/src/models/create-session-request.js.map +1 -0
  101. package/src/models/create-user.d.ts +60 -0
  102. package/src/models/create-user.js +21 -0
  103. package/src/models/create-user.js.map +1 -0
  104. package/src/models/{create-volume.ts → create-volume.d.ts} +6 -9
  105. package/src/models/create-volume.js +16 -0
  106. package/src/models/create-volume.js.map +1 -0
  107. package/src/models/create-workspace.d.ts +120 -0
  108. package/src/models/create-workspace.js +27 -0
  109. package/src/models/create-workspace.js.map +1 -0
  110. package/src/models/docker-registry.d.ts +73 -0
  111. package/src/models/docker-registry.js +23 -0
  112. package/src/models/docker-registry.js.map +1 -0
  113. package/src/models/{execute-request.ts → execute-request.d.ts} +18 -21
  114. package/src/models/execute-request.js +16 -0
  115. package/src/models/execute-request.js.map +1 -0
  116. package/src/models/{execute-response.ts → execute-response.d.ts} +12 -15
  117. package/src/models/execute-response.js +16 -0
  118. package/src/models/execute-response.js.map +1 -0
  119. package/src/models/file-info.d.ts +66 -0
  120. package/src/models/file-info.js +16 -0
  121. package/src/models/file-info.js.map +1 -0
  122. package/src/models/{file-status.ts → file-status.d.ts} +24 -27
  123. package/src/models/file-status.js +16 -0
  124. package/src/models/file-status.js.map +1 -0
  125. package/src/models/{git-add-request.ts → git-add-request.d.ts} +12 -15
  126. package/src/models/git-add-request.js +16 -0
  127. package/src/models/git-add-request.js.map +1 -0
  128. package/src/models/{git-branch-request.ts → git-branch-request.d.ts} +12 -15
  129. package/src/models/git-branch-request.js +16 -0
  130. package/src/models/git-branch-request.js.map +1 -0
  131. package/src/models/git-clone-request.d.ts +54 -0
  132. package/src/models/git-clone-request.js +16 -0
  133. package/src/models/git-clone-request.js.map +1 -0
  134. package/src/models/git-commit-info.d.ts +48 -0
  135. package/src/models/git-commit-info.js +16 -0
  136. package/src/models/git-commit-info.js.map +1 -0
  137. package/src/models/git-commit-request.d.ts +42 -0
  138. package/src/models/git-commit-request.js +16 -0
  139. package/src/models/git-commit-request.js.map +1 -0
  140. package/src/models/{git-commit-response.ts → git-commit-response.d.ts} +6 -9
  141. package/src/models/git-commit-response.js +16 -0
  142. package/src/models/git-commit-response.js.map +1 -0
  143. package/src/models/{git-repo-request.ts → git-repo-request.d.ts} +18 -21
  144. package/src/models/git-repo-request.js +16 -0
  145. package/src/models/git-repo-request.js.map +1 -0
  146. package/src/models/git-status.d.ts +49 -0
  147. package/src/models/git-status.js +16 -0
  148. package/src/models/git-status.js.map +1 -0
  149. package/src/models/image-dto.d.ts +91 -0
  150. package/src/models/image-dto.js +16 -0
  151. package/src/models/image-dto.js.map +1 -0
  152. package/src/models/{image-state.ts → image-state.d.ts} +12 -17
  153. package/src/models/image-state.js +33 -0
  154. package/src/models/image-state.js.map +1 -0
  155. package/src/models/index.d.ts +77 -0
  156. package/src/models/index.js +81 -0
  157. package/src/models/index.js.map +1 -0
  158. package/src/models/{list-branch-response.ts → list-branch-response.d.ts} +6 -9
  159. package/src/models/list-branch-response.js +16 -0
  160. package/src/models/list-branch-response.js.map +1 -0
  161. package/src/models/lsp-completion-params.d.ts +50 -0
  162. package/src/models/lsp-completion-params.js +16 -0
  163. package/src/models/lsp-completion-params.js.map +1 -0
  164. package/src/models/{lsp-document-request.ts → lsp-document-request.d.ts} +18 -21
  165. package/src/models/lsp-document-request.js +16 -0
  166. package/src/models/lsp-document-request.js.map +1 -0
  167. package/src/models/{lsp-location.ts → lsp-location.d.ts} +13 -19
  168. package/src/models/lsp-location.js +16 -0
  169. package/src/models/lsp-location.js.map +1 -0
  170. package/src/models/{lsp-server-request.ts → lsp-server-request.d.ts} +12 -15
  171. package/src/models/lsp-server-request.js +16 -0
  172. package/src/models/lsp-server-request.js.map +1 -0
  173. package/src/models/lsp-symbol.d.ts +37 -0
  174. package/src/models/lsp-symbol.js +16 -0
  175. package/src/models/lsp-symbol.js.map +1 -0
  176. package/src/models/{match.ts → match.d.ts} +18 -21
  177. package/src/models/match.js +16 -0
  178. package/src/models/match.js.map +1 -0
  179. package/src/models/organization-invitation.d.ts +97 -0
  180. package/src/models/organization-invitation.js +27 -0
  181. package/src/models/organization-invitation.js.map +1 -0
  182. package/src/models/organization-role.d.ts +72 -0
  183. package/src/models/organization-role.js +28 -0
  184. package/src/models/organization-role.js.map +1 -0
  185. package/src/models/{organization-suspension.ts → organization-suspension.d.ts} +12 -15
  186. package/src/models/organization-suspension.js +16 -0
  187. package/src/models/organization-suspension.js.map +1 -0
  188. package/src/models/organization-user.d.ts +72 -0
  189. package/src/models/organization-user.js +21 -0
  190. package/src/models/organization-user.js.map +1 -0
  191. package/src/models/organization.d.ts +78 -0
  192. package/src/models/organization.js +16 -0
  193. package/src/models/organization.js.map +1 -0
  194. package/src/models/paginated-images-dto.d.ts +43 -0
  195. package/src/models/paginated-images-dto.js +16 -0
  196. package/src/models/paginated-images-dto.js.map +1 -0
  197. package/src/models/{port-preview-url.ts → port-preview-url.d.ts} +12 -15
  198. package/src/models/port-preview-url.js +16 -0
  199. package/src/models/port-preview-url.js.map +1 -0
  200. package/src/models/{position.ts → position.d.ts} +12 -15
  201. package/src/models/position.js +16 -0
  202. package/src/models/position.js.map +1 -0
  203. package/src/models/{project-dir-response.ts → project-dir-response.d.ts} +6 -9
  204. package/src/models/project-dir-response.js +16 -0
  205. package/src/models/project-dir-response.js.map +1 -0
  206. package/src/models/{range.ts → range.d.ts} +13 -19
  207. package/src/models/range.js +16 -0
  208. package/src/models/range.js.map +1 -0
  209. package/src/models/registry-push-access-dto.d.ts +54 -0
  210. package/src/models/registry-push-access-dto.js +16 -0
  211. package/src/models/registry-push-access-dto.js.map +1 -0
  212. package/src/models/{replace-request.ts → replace-request.d.ts} +18 -21
  213. package/src/models/replace-request.js +16 -0
  214. package/src/models/replace-request.js.map +1 -0
  215. package/src/models/{replace-result.ts → replace-result.d.ts} +18 -21
  216. package/src/models/replace-result.js +16 -0
  217. package/src/models/replace-result.js.map +1 -0
  218. package/src/models/{search-files-response.ts → search-files-response.d.ts} +6 -9
  219. package/src/models/search-files-response.js +16 -0
  220. package/src/models/search-files-response.js.map +1 -0
  221. package/src/models/session-execute-request.d.ts +37 -0
  222. package/src/models/session-execute-request.js +16 -0
  223. package/src/models/session-execute-request.js.map +1 -0
  224. package/src/models/session-execute-response.d.ts +36 -0
  225. package/src/models/session-execute-response.js +16 -0
  226. package/src/models/session-execute-response.js.map +1 -0
  227. package/src/models/session.d.ts +31 -0
  228. package/src/models/session.js +16 -0
  229. package/src/models/session.js.map +1 -0
  230. package/src/models/{set-image-general-status.ts → set-image-general-status.d.ts} +6 -9
  231. package/src/models/set-image-general-status.js +16 -0
  232. package/src/models/set-image-general-status.js.map +1 -0
  233. package/src/models/storage-access-dto.d.ts +54 -0
  234. package/src/models/storage-access-dto.js +16 -0
  235. package/src/models/storage-access-dto.js.map +1 -0
  236. package/src/models/{toggle-state.ts → toggle-state.d.ts} +6 -9
  237. package/src/models/toggle-state.js +16 -0
  238. package/src/models/toggle-state.js.map +1 -0
  239. package/src/models/{update-assigned-organization-roles.ts → update-assigned-organization-roles.d.ts} +6 -9
  240. package/src/models/update-assigned-organization-roles.js +16 -0
  241. package/src/models/update-assigned-organization-roles.js.map +1 -0
  242. package/src/models/{update-docker-registry.ts → update-docker-registry.d.ts} +18 -21
  243. package/src/models/update-docker-registry.js +16 -0
  244. package/src/models/update-docker-registry.js.map +1 -0
  245. package/src/models/update-organization-invitation.d.ts +41 -0
  246. package/src/models/update-organization-invitation.js +21 -0
  247. package/src/models/update-organization-invitation.js.map +1 -0
  248. package/src/models/update-organization-member-role.d.ts +29 -0
  249. package/src/models/update-organization-member-role.js +21 -0
  250. package/src/models/update-organization-member-role.js.map +1 -0
  251. package/src/models/update-organization-quota.d.ts +84 -0
  252. package/src/models/update-organization-quota.js +16 -0
  253. package/src/models/update-organization-quota.js.map +1 -0
  254. package/src/models/update-organization-role.d.ts +48 -0
  255. package/src/models/update-organization-role.js +28 -0
  256. package/src/models/update-organization-role.js.map +1 -0
  257. package/src/models/usage-overview.d.ts +108 -0
  258. package/src/models/usage-overview.js +16 -0
  259. package/src/models/usage-overview.js.map +1 -0
  260. package/src/models/{user-public-key.ts → user-public-key.d.ts} +12 -15
  261. package/src/models/user-public-key.js +16 -0
  262. package/src/models/user-public-key.js.map +1 -0
  263. package/src/models/user.d.ts +43 -0
  264. package/src/{index.ts → models/user.js} +3 -4
  265. package/src/models/user.js.map +1 -0
  266. package/src/models/volume-dto.d.ts +70 -0
  267. package/src/models/volume-dto.js +26 -0
  268. package/src/models/volume-dto.js.map +1 -0
  269. package/src/models/workspace-info.d.ts +37 -0
  270. package/src/models/workspace-info.js +16 -0
  271. package/src/models/workspace-info.js.map +1 -0
  272. package/src/models/{workspace-labels.ts → workspace-labels.d.ts} +8 -9
  273. package/src/models/workspace-labels.js +16 -0
  274. package/src/models/workspace-labels.js.map +1 -0
  275. package/src/models/workspace-state.d.ts +34 -0
  276. package/src/models/workspace-state.js +39 -0
  277. package/src/models/workspace-state.js.map +1 -0
  278. package/src/models/{workspace-volume.ts → workspace-volume.d.ts} +12 -15
  279. package/src/models/workspace-volume.js +16 -0
  280. package/src/models/workspace-volume.js.map +1 -0
  281. package/src/models/workspace.d.ts +154 -0
  282. package/src/models/workspace.js +24 -0
  283. package/src/models/workspace.js.map +1 -0
  284. package/project.json +0 -55
  285. package/src/.openapi-generator/FILES +0 -97
  286. package/src/.openapi-generator/VERSION +0 -1
  287. package/src/.openapi-generator-ignore +0 -23
  288. package/src/api/api-keys-api.ts +0 -553
  289. package/src/api/docker-registry-api.ts +0 -800
  290. package/src/api/images-api.ts +0 -957
  291. package/src/api/nodes-api.ts +0 -319
  292. package/src/api/object-storage-api.ts +0 -159
  293. package/src/api/organizations-api.ts +0 -2641
  294. package/src/api/preview-api.ts +0 -328
  295. package/src/api/toolbox-api.ts +0 -4879
  296. package/src/api/users-api.ts +0 -382
  297. package/src/api/volumes-api.ts +0 -594
  298. package/src/api/workspace-api.ts +0 -1610
  299. package/src/api.ts +0 -25
  300. package/src/base.ts +0 -91
  301. package/src/common.ts +0 -162
  302. package/src/configuration.ts +0 -122
  303. package/src/git_push.sh +0 -57
  304. package/src/models/api-key-list.ts +0 -59
  305. package/src/models/api-key-response.ts +0 -60
  306. package/src/models/build-image.ts +0 -37
  307. package/src/models/build-info.ts +0 -51
  308. package/src/models/completion-item.ts +0 -63
  309. package/src/models/create-api-key.ts +0 -47
  310. package/src/models/create-docker-registry.ts +0 -73
  311. package/src/models/create-image.ts +0 -39
  312. package/src/models/create-node.ts +0 -102
  313. package/src/models/create-organization-invitation.ts +0 -53
  314. package/src/models/create-organization-quota.ts +0 -87
  315. package/src/models/create-organization-role.ts +0 -54
  316. package/src/models/create-user.ts +0 -68
  317. package/src/models/create-workspace.ts +0 -127
  318. package/src/models/docker-registry.ts +0 -79
  319. package/src/models/file-info.ts +0 -69
  320. package/src/models/get-build-logs400-response.ts +0 -33
  321. package/src/models/git-clone-request.ts +0 -57
  322. package/src/models/git-commit-info.ts +0 -51
  323. package/src/models/git-commit-request.ts +0 -45
  324. package/src/models/git-status.ts +0 -55
  325. package/src/models/image-dto.ts +0 -97
  326. package/src/models/index.ts +0 -77
  327. package/src/models/lsp-completion-params.ts +0 -58
  328. package/src/models/lsp-symbol.ts +0 -43
  329. package/src/models/organization-invitation.ts +0 -108
  330. package/src/models/organization-role.ts +0 -78
  331. package/src/models/organization-user.ts +0 -80
  332. package/src/models/organization.ts +0 -81
  333. package/src/models/paginated-images-dto.ts +0 -49
  334. package/src/models/registry-push-access-dto.ts +0 -57
  335. package/src/models/session-execute-request.ts +0 -40
  336. package/src/models/session-execute-response.ts +0 -39
  337. package/src/models/session.ts +0 -37
  338. package/src/models/storage-access-dto.ts +0 -63
  339. package/src/models/update-organization-invitation.ts +0 -47
  340. package/src/models/update-organization-member-role.ts +0 -35
  341. package/src/models/update-organization-quota.ts +0 -87
  342. package/src/models/update-organization-role.ts +0 -54
  343. package/src/models/usage-overview.ts +0 -111
  344. package/src/models/user.ts +0 -49
  345. package/src/models/volume-dto.ts +0 -75
  346. package/src/models/workspace-info.ts +0 -40
  347. package/src/models/workspace-state.ts +0 -39
  348. package/src/models/workspace.ts +0 -162
  349. package/tsconfig.json +0 -20
  350. package/tsconfig.lib.json +0 -9
@@ -1,1610 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
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 { CreateWorkspace } from '../models'
36
- // @ts-ignore
37
- import type { PortPreviewUrl } from '../models'
38
- // @ts-ignore
39
- import type { Workspace } from '../models'
40
- // @ts-ignore
41
- import type { WorkspaceLabels } from '../models'
42
- /**
43
- * WorkspaceApi - axios parameter creator
44
- * @export
45
- */
46
- export const WorkspaceApiAxiosParamCreator = function (configuration?: Configuration) {
47
- return {
48
- /**
49
- *
50
- * @summary Archive workspace
51
- * @param {string} workspaceId
52
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
53
- * @param {*} [options] Override http request option.
54
- * @throws {RequiredError}
55
- */
56
- archiveWorkspace: async (
57
- workspaceId: string,
58
- xDaytonaOrganizationID?: string,
59
- options: RawAxiosRequestConfig = {},
60
- ): Promise<RequestArgs> => {
61
- // verify required parameter 'workspaceId' is not null or undefined
62
- assertParamExists('archiveWorkspace', 'workspaceId', workspaceId)
63
- const localVarPath = `/workspace/{workspaceId}/archive`.replace(
64
- `{${'workspaceId'}}`,
65
- encodeURIComponent(String(workspaceId)),
66
- )
67
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
68
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
69
- let baseOptions
70
- if (configuration) {
71
- baseOptions = configuration.baseOptions
72
- }
73
-
74
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
75
- const localVarHeaderParameter = {} as any
76
- const localVarQueryParameter = {} as any
77
-
78
- // authentication bearer required
79
- // http bearer authentication required
80
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
81
-
82
- // authentication oauth2 required
83
-
84
- if (xDaytonaOrganizationID != null) {
85
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
86
- }
87
- setSearchParams(localVarUrlObj, localVarQueryParameter)
88
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
89
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
90
-
91
- return {
92
- url: toPathString(localVarUrlObj),
93
- options: localVarRequestOptions,
94
- }
95
- },
96
- /**
97
- *
98
- * @summary Create workspace snapshot
99
- * @param {string} workspaceId ID of the workspace
100
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- createSnapshot: async (
105
- workspaceId: string,
106
- xDaytonaOrganizationID?: string,
107
- options: RawAxiosRequestConfig = {},
108
- ): Promise<RequestArgs> => {
109
- // verify required parameter 'workspaceId' is not null or undefined
110
- assertParamExists('createSnapshot', 'workspaceId', workspaceId)
111
- const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(
112
- `{${'workspaceId'}}`,
113
- encodeURIComponent(String(workspaceId)),
114
- )
115
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
117
- let baseOptions
118
- if (configuration) {
119
- baseOptions = configuration.baseOptions
120
- }
121
-
122
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
123
- const localVarHeaderParameter = {} as any
124
- const localVarQueryParameter = {} as any
125
-
126
- // authentication bearer required
127
- // http bearer authentication required
128
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
129
-
130
- // authentication oauth2 required
131
-
132
- if (xDaytonaOrganizationID != null) {
133
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
134
- }
135
- setSearchParams(localVarUrlObj, localVarQueryParameter)
136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
137
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
138
-
139
- return {
140
- url: toPathString(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }
143
- },
144
- /**
145
- *
146
- * @summary Create a new workspace
147
- * @param {CreateWorkspace} createWorkspace
148
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
149
- * @param {*} [options] Override http request option.
150
- * @throws {RequiredError}
151
- */
152
- createWorkspace: async (
153
- createWorkspace: CreateWorkspace,
154
- xDaytonaOrganizationID?: string,
155
- options: RawAxiosRequestConfig = {},
156
- ): Promise<RequestArgs> => {
157
- // verify required parameter 'createWorkspace' is not null or undefined
158
- assertParamExists('createWorkspace', 'createWorkspace', createWorkspace)
159
- const localVarPath = `/workspace`
160
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
161
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
162
- let baseOptions
163
- if (configuration) {
164
- baseOptions = configuration.baseOptions
165
- }
166
-
167
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
168
- const localVarHeaderParameter = {} as any
169
- const localVarQueryParameter = {} as any
170
-
171
- // authentication bearer required
172
- // http bearer authentication required
173
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
174
-
175
- // authentication oauth2 required
176
-
177
- localVarHeaderParameter['Content-Type'] = 'application/json'
178
-
179
- if (xDaytonaOrganizationID != null) {
180
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
181
- }
182
- setSearchParams(localVarUrlObj, localVarQueryParameter)
183
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
184
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
185
- localVarRequestOptions.data = serializeDataIfNeeded(createWorkspace, localVarRequestOptions, configuration)
186
-
187
- return {
188
- url: toPathString(localVarUrlObj),
189
- options: localVarRequestOptions,
190
- }
191
- },
192
- /**
193
- *
194
- * @summary Delete workspace
195
- * @param {string} workspaceId ID of the workspace
196
- * @param {boolean} force
197
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
198
- * @param {*} [options] Override http request option.
199
- * @throws {RequiredError}
200
- */
201
- deleteWorkspace: async (
202
- workspaceId: string,
203
- force: boolean,
204
- xDaytonaOrganizationID?: string,
205
- options: RawAxiosRequestConfig = {},
206
- ): Promise<RequestArgs> => {
207
- // verify required parameter 'workspaceId' is not null or undefined
208
- assertParamExists('deleteWorkspace', 'workspaceId', workspaceId)
209
- // verify required parameter 'force' is not null or undefined
210
- assertParamExists('deleteWorkspace', 'force', force)
211
- const localVarPath = `/workspace/{workspaceId}`.replace(
212
- `{${'workspaceId'}}`,
213
- encodeURIComponent(String(workspaceId)),
214
- )
215
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
216
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
217
- let baseOptions
218
- if (configuration) {
219
- baseOptions = configuration.baseOptions
220
- }
221
-
222
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
223
- const localVarHeaderParameter = {} as any
224
- const localVarQueryParameter = {} as any
225
-
226
- // authentication bearer required
227
- // http bearer authentication required
228
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
229
-
230
- // authentication oauth2 required
231
-
232
- if (force !== undefined) {
233
- localVarQueryParameter['force'] = force
234
- }
235
-
236
- if (xDaytonaOrganizationID != null) {
237
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
238
- }
239
- setSearchParams(localVarUrlObj, localVarQueryParameter)
240
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
241
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
242
-
243
- return {
244
- url: toPathString(localVarUrlObj),
245
- options: localVarRequestOptions,
246
- }
247
- },
248
- /**
249
- *
250
- * @summary Get build logs
251
- * @param {string} workspaceId ID of the workspace
252
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
253
- * @param {*} [options] Override http request option.
254
- * @throws {RequiredError}
255
- */
256
- getBuildLogs: async (
257
- workspaceId: string,
258
- xDaytonaOrganizationID?: string,
259
- options: RawAxiosRequestConfig = {},
260
- ): Promise<RequestArgs> => {
261
- // verify required parameter 'workspaceId' is not null or undefined
262
- assertParamExists('getBuildLogs', 'workspaceId', workspaceId)
263
- const localVarPath = `/workspace/{workspaceId}/build-logs`.replace(
264
- `{${'workspaceId'}}`,
265
- encodeURIComponent(String(workspaceId)),
266
- )
267
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
269
- let baseOptions
270
- if (configuration) {
271
- baseOptions = configuration.baseOptions
272
- }
273
-
274
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
275
- const localVarHeaderParameter = {} as any
276
- const localVarQueryParameter = {} as any
277
-
278
- // authentication bearer required
279
- // http bearer authentication required
280
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
281
-
282
- // authentication oauth2 required
283
-
284
- if (xDaytonaOrganizationID != null) {
285
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
286
- }
287
- setSearchParams(localVarUrlObj, localVarQueryParameter)
288
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
289
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
290
-
291
- return {
292
- url: toPathString(localVarUrlObj),
293
- options: localVarRequestOptions,
294
- }
295
- },
296
- /**
297
- *
298
- * @summary Get preview URL for a workspace port
299
- * @param {string} workspaceId ID of the workspace
300
- * @param {number} port Port number to get preview URL for
301
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
302
- * @param {*} [options] Override http request option.
303
- * @throws {RequiredError}
304
- */
305
- getPortPreviewUrl: async (
306
- workspaceId: string,
307
- port: number,
308
- xDaytonaOrganizationID?: string,
309
- options: RawAxiosRequestConfig = {},
310
- ): Promise<RequestArgs> => {
311
- // verify required parameter 'workspaceId' is not null or undefined
312
- assertParamExists('getPortPreviewUrl', 'workspaceId', workspaceId)
313
- // verify required parameter 'port' is not null or undefined
314
- assertParamExists('getPortPreviewUrl', 'port', port)
315
- const localVarPath = `/workspace/{workspaceId}/ports/{port}/preview-url`
316
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
317
- .replace(`{${'port'}}`, encodeURIComponent(String(port)))
318
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
319
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
320
- let baseOptions
321
- if (configuration) {
322
- baseOptions = configuration.baseOptions
323
- }
324
-
325
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
326
- const localVarHeaderParameter = {} as any
327
- const localVarQueryParameter = {} as any
328
-
329
- // authentication bearer required
330
- // http bearer authentication required
331
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
332
-
333
- // authentication oauth2 required
334
-
335
- if (xDaytonaOrganizationID != null) {
336
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
337
- }
338
- setSearchParams(localVarUrlObj, localVarQueryParameter)
339
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
340
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
341
-
342
- return {
343
- url: toPathString(localVarUrlObj),
344
- options: localVarRequestOptions,
345
- }
346
- },
347
- /**
348
- *
349
- * @summary Get workspace details
350
- * @param {string} workspaceId ID of the workspace
351
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
352
- * @param {boolean} [verbose] Include verbose output
353
- * @param {*} [options] Override http request option.
354
- * @throws {RequiredError}
355
- */
356
- getWorkspace: async (
357
- workspaceId: string,
358
- xDaytonaOrganizationID?: string,
359
- verbose?: boolean,
360
- options: RawAxiosRequestConfig = {},
361
- ): Promise<RequestArgs> => {
362
- // verify required parameter 'workspaceId' is not null or undefined
363
- assertParamExists('getWorkspace', 'workspaceId', workspaceId)
364
- const localVarPath = `/workspace/{workspaceId}`.replace(
365
- `{${'workspaceId'}}`,
366
- encodeURIComponent(String(workspaceId)),
367
- )
368
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
369
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
370
- let baseOptions
371
- if (configuration) {
372
- baseOptions = configuration.baseOptions
373
- }
374
-
375
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
376
- const localVarHeaderParameter = {} as any
377
- const localVarQueryParameter = {} as any
378
-
379
- // authentication bearer required
380
- // http bearer authentication required
381
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
382
-
383
- // authentication oauth2 required
384
-
385
- if (verbose !== undefined) {
386
- localVarQueryParameter['verbose'] = verbose
387
- }
388
-
389
- if (xDaytonaOrganizationID != null) {
390
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
391
- }
392
- setSearchParams(localVarUrlObj, localVarQueryParameter)
393
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
394
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
395
-
396
- return {
397
- url: toPathString(localVarUrlObj),
398
- options: localVarRequestOptions,
399
- }
400
- },
401
- /**
402
- *
403
- * @summary List all workspaces
404
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
405
- * @param {boolean} [verbose] Include verbose output
406
- * @param {string} [labels] JSON encoded labels to filter by
407
- * @param {*} [options] Override http request option.
408
- * @throws {RequiredError}
409
- */
410
- listWorkspaces: async (
411
- xDaytonaOrganizationID?: string,
412
- verbose?: boolean,
413
- labels?: string,
414
- options: RawAxiosRequestConfig = {},
415
- ): Promise<RequestArgs> => {
416
- const localVarPath = `/workspace`
417
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
418
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
419
- let baseOptions
420
- if (configuration) {
421
- baseOptions = configuration.baseOptions
422
- }
423
-
424
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
425
- const localVarHeaderParameter = {} as any
426
- const localVarQueryParameter = {} as any
427
-
428
- // authentication bearer required
429
- // http bearer authentication required
430
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
431
-
432
- // authentication oauth2 required
433
-
434
- if (verbose !== undefined) {
435
- localVarQueryParameter['verbose'] = verbose
436
- }
437
-
438
- if (labels !== undefined) {
439
- localVarQueryParameter['labels'] = labels
440
- }
441
-
442
- if (xDaytonaOrganizationID != null) {
443
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
444
- }
445
- setSearchParams(localVarUrlObj, localVarQueryParameter)
446
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
447
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
448
-
449
- return {
450
- url: toPathString(localVarUrlObj),
451
- options: localVarRequestOptions,
452
- }
453
- },
454
- /**
455
- *
456
- * @summary Replace workspace labels
457
- * @param {string} workspaceId ID of the workspace
458
- * @param {WorkspaceLabels} workspaceLabels
459
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
460
- * @param {*} [options] Override http request option.
461
- * @throws {RequiredError}
462
- */
463
- replaceLabels: async (
464
- workspaceId: string,
465
- workspaceLabels: WorkspaceLabels,
466
- xDaytonaOrganizationID?: string,
467
- options: RawAxiosRequestConfig = {},
468
- ): Promise<RequestArgs> => {
469
- // verify required parameter 'workspaceId' is not null or undefined
470
- assertParamExists('replaceLabels', 'workspaceId', workspaceId)
471
- // verify required parameter 'workspaceLabels' is not null or undefined
472
- assertParamExists('replaceLabels', 'workspaceLabels', workspaceLabels)
473
- const localVarPath = `/workspace/{workspaceId}/labels`.replace(
474
- `{${'workspaceId'}}`,
475
- encodeURIComponent(String(workspaceId)),
476
- )
477
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
478
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
479
- let baseOptions
480
- if (configuration) {
481
- baseOptions = configuration.baseOptions
482
- }
483
-
484
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
485
- const localVarHeaderParameter = {} as any
486
- const localVarQueryParameter = {} as any
487
-
488
- // authentication bearer required
489
- // http bearer authentication required
490
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
491
-
492
- // authentication oauth2 required
493
-
494
- localVarHeaderParameter['Content-Type'] = 'application/json'
495
-
496
- if (xDaytonaOrganizationID != null) {
497
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
498
- }
499
- setSearchParams(localVarUrlObj, localVarQueryParameter)
500
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
501
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
502
- localVarRequestOptions.data = serializeDataIfNeeded(workspaceLabels, localVarRequestOptions, configuration)
503
-
504
- return {
505
- url: toPathString(localVarUrlObj),
506
- options: localVarRequestOptions,
507
- }
508
- },
509
- /**
510
- *
511
- * @summary Set workspace auto-stop interval
512
- * @param {string} workspaceId ID of the workspace
513
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
514
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
515
- * @param {*} [options] Override http request option.
516
- * @throws {RequiredError}
517
- */
518
- setAutostopInterval: async (
519
- workspaceId: string,
520
- interval: number,
521
- xDaytonaOrganizationID?: string,
522
- options: RawAxiosRequestConfig = {},
523
- ): Promise<RequestArgs> => {
524
- // verify required parameter 'workspaceId' is not null or undefined
525
- assertParamExists('setAutostopInterval', 'workspaceId', workspaceId)
526
- // verify required parameter 'interval' is not null or undefined
527
- assertParamExists('setAutostopInterval', 'interval', interval)
528
- const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
529
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
530
- .replace(`{${'interval'}}`, encodeURIComponent(String(interval)))
531
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
532
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
533
- let baseOptions
534
- if (configuration) {
535
- baseOptions = configuration.baseOptions
536
- }
537
-
538
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
539
- const localVarHeaderParameter = {} as any
540
- const localVarQueryParameter = {} as any
541
-
542
- // authentication bearer required
543
- // http bearer authentication required
544
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
545
-
546
- // authentication oauth2 required
547
-
548
- if (xDaytonaOrganizationID != null) {
549
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
550
- }
551
- setSearchParams(localVarUrlObj, localVarQueryParameter)
552
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
553
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
554
-
555
- return {
556
- url: toPathString(localVarUrlObj),
557
- options: localVarRequestOptions,
558
- }
559
- },
560
- /**
561
- *
562
- * @summary Start workspace
563
- * @param {string} workspaceId ID of the workspace
564
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
565
- * @param {*} [options] Override http request option.
566
- * @throws {RequiredError}
567
- */
568
- startWorkspace: async (
569
- workspaceId: string,
570
- xDaytonaOrganizationID?: string,
571
- options: RawAxiosRequestConfig = {},
572
- ): Promise<RequestArgs> => {
573
- // verify required parameter 'workspaceId' is not null or undefined
574
- assertParamExists('startWorkspace', 'workspaceId', workspaceId)
575
- const localVarPath = `/workspace/{workspaceId}/start`.replace(
576
- `{${'workspaceId'}}`,
577
- encodeURIComponent(String(workspaceId)),
578
- )
579
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
580
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
581
- let baseOptions
582
- if (configuration) {
583
- baseOptions = configuration.baseOptions
584
- }
585
-
586
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
587
- const localVarHeaderParameter = {} as any
588
- const localVarQueryParameter = {} as any
589
-
590
- // authentication bearer required
591
- // http bearer authentication required
592
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
593
-
594
- // authentication oauth2 required
595
-
596
- if (xDaytonaOrganizationID != null) {
597
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
598
- }
599
- setSearchParams(localVarUrlObj, localVarQueryParameter)
600
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
601
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
602
-
603
- return {
604
- url: toPathString(localVarUrlObj),
605
- options: localVarRequestOptions,
606
- }
607
- },
608
- /**
609
- *
610
- * @summary Stop workspace
611
- * @param {string} workspaceId ID of the workspace
612
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
613
- * @param {*} [options] Override http request option.
614
- * @throws {RequiredError}
615
- */
616
- stopWorkspace: async (
617
- workspaceId: string,
618
- xDaytonaOrganizationID?: string,
619
- options: RawAxiosRequestConfig = {},
620
- ): Promise<RequestArgs> => {
621
- // verify required parameter 'workspaceId' is not null or undefined
622
- assertParamExists('stopWorkspace', 'workspaceId', workspaceId)
623
- const localVarPath = `/workspace/{workspaceId}/stop`.replace(
624
- `{${'workspaceId'}}`,
625
- encodeURIComponent(String(workspaceId)),
626
- )
627
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
628
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
629
- let baseOptions
630
- if (configuration) {
631
- baseOptions = configuration.baseOptions
632
- }
633
-
634
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
635
- const localVarHeaderParameter = {} as any
636
- const localVarQueryParameter = {} as any
637
-
638
- // authentication bearer required
639
- // http bearer authentication required
640
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
641
-
642
- // authentication oauth2 required
643
-
644
- if (xDaytonaOrganizationID != null) {
645
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
646
- }
647
- setSearchParams(localVarUrlObj, localVarQueryParameter)
648
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
649
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
650
-
651
- return {
652
- url: toPathString(localVarUrlObj),
653
- options: localVarRequestOptions,
654
- }
655
- },
656
- /**
657
- *
658
- * @summary Update public status
659
- * @param {string} workspaceId ID of the workspace
660
- * @param {boolean} isPublic Public status to set
661
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
662
- * @param {*} [options] Override http request option.
663
- * @throws {RequiredError}
664
- */
665
- updatePublicStatus: async (
666
- workspaceId: string,
667
- isPublic: boolean,
668
- xDaytonaOrganizationID?: string,
669
- options: RawAxiosRequestConfig = {},
670
- ): Promise<RequestArgs> => {
671
- // verify required parameter 'workspaceId' is not null or undefined
672
- assertParamExists('updatePublicStatus', 'workspaceId', workspaceId)
673
- // verify required parameter 'isPublic' is not null or undefined
674
- assertParamExists('updatePublicStatus', 'isPublic', isPublic)
675
- const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
676
- .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
677
- .replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)))
678
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
679
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
680
- let baseOptions
681
- if (configuration) {
682
- baseOptions = configuration.baseOptions
683
- }
684
-
685
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
686
- const localVarHeaderParameter = {} as any
687
- const localVarQueryParameter = {} as any
688
-
689
- // authentication bearer required
690
- // http bearer authentication required
691
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
692
-
693
- // authentication oauth2 required
694
-
695
- if (xDaytonaOrganizationID != null) {
696
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
697
- }
698
- setSearchParams(localVarUrlObj, localVarQueryParameter)
699
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
700
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
701
-
702
- return {
703
- url: toPathString(localVarUrlObj),
704
- options: localVarRequestOptions,
705
- }
706
- },
707
- }
708
- }
709
-
710
- /**
711
- * WorkspaceApi - functional programming interface
712
- * @export
713
- */
714
- export const WorkspaceApiFp = function (configuration?: Configuration) {
715
- const localVarAxiosParamCreator = WorkspaceApiAxiosParamCreator(configuration)
716
- return {
717
- /**
718
- *
719
- * @summary Archive workspace
720
- * @param {string} workspaceId
721
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
722
- * @param {*} [options] Override http request option.
723
- * @throws {RequiredError}
724
- */
725
- async archiveWorkspace(
726
- workspaceId: string,
727
- xDaytonaOrganizationID?: string,
728
- options?: RawAxiosRequestConfig,
729
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
730
- const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(
731
- workspaceId,
732
- xDaytonaOrganizationID,
733
- options,
734
- )
735
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
736
- const localVarOperationServerBasePath =
737
- operationServerMap['WorkspaceApi.archiveWorkspace']?.[localVarOperationServerIndex]?.url
738
- return (axios, basePath) =>
739
- createRequestFunction(
740
- localVarAxiosArgs,
741
- globalAxios,
742
- BASE_PATH,
743
- configuration,
744
- )(axios, localVarOperationServerBasePath || basePath)
745
- },
746
- /**
747
- *
748
- * @summary Create workspace snapshot
749
- * @param {string} workspaceId ID of the workspace
750
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
751
- * @param {*} [options] Override http request option.
752
- * @throws {RequiredError}
753
- */
754
- async createSnapshot(
755
- workspaceId: string,
756
- xDaytonaOrganizationID?: string,
757
- options?: RawAxiosRequestConfig,
758
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
759
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(
760
- workspaceId,
761
- xDaytonaOrganizationID,
762
- options,
763
- )
764
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
765
- const localVarOperationServerBasePath =
766
- operationServerMap['WorkspaceApi.createSnapshot']?.[localVarOperationServerIndex]?.url
767
- return (axios, basePath) =>
768
- createRequestFunction(
769
- localVarAxiosArgs,
770
- globalAxios,
771
- BASE_PATH,
772
- configuration,
773
- )(axios, localVarOperationServerBasePath || basePath)
774
- },
775
- /**
776
- *
777
- * @summary Create a new workspace
778
- * @param {CreateWorkspace} createWorkspace
779
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
780
- * @param {*} [options] Override http request option.
781
- * @throws {RequiredError}
782
- */
783
- async createWorkspace(
784
- createWorkspace: CreateWorkspace,
785
- xDaytonaOrganizationID?: string,
786
- options?: RawAxiosRequestConfig,
787
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
788
- const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(
789
- createWorkspace,
790
- xDaytonaOrganizationID,
791
- options,
792
- )
793
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
794
- const localVarOperationServerBasePath =
795
- operationServerMap['WorkspaceApi.createWorkspace']?.[localVarOperationServerIndex]?.url
796
- return (axios, basePath) =>
797
- createRequestFunction(
798
- localVarAxiosArgs,
799
- globalAxios,
800
- BASE_PATH,
801
- configuration,
802
- )(axios, localVarOperationServerBasePath || basePath)
803
- },
804
- /**
805
- *
806
- * @summary Delete workspace
807
- * @param {string} workspaceId ID of the workspace
808
- * @param {boolean} force
809
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
810
- * @param {*} [options] Override http request option.
811
- * @throws {RequiredError}
812
- */
813
- async deleteWorkspace(
814
- workspaceId: string,
815
- force: boolean,
816
- xDaytonaOrganizationID?: string,
817
- options?: RawAxiosRequestConfig,
818
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
819
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(
820
- workspaceId,
821
- force,
822
- xDaytonaOrganizationID,
823
- options,
824
- )
825
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
826
- const localVarOperationServerBasePath =
827
- operationServerMap['WorkspaceApi.deleteWorkspace']?.[localVarOperationServerIndex]?.url
828
- return (axios, basePath) =>
829
- createRequestFunction(
830
- localVarAxiosArgs,
831
- globalAxios,
832
- BASE_PATH,
833
- configuration,
834
- )(axios, localVarOperationServerBasePath || basePath)
835
- },
836
- /**
837
- *
838
- * @summary Get build logs
839
- * @param {string} workspaceId ID of the workspace
840
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
841
- * @param {*} [options] Override http request option.
842
- * @throws {RequiredError}
843
- */
844
- async getBuildLogs(
845
- workspaceId: string,
846
- xDaytonaOrganizationID?: string,
847
- options?: RawAxiosRequestConfig,
848
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
849
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(
850
- workspaceId,
851
- xDaytonaOrganizationID,
852
- options,
853
- )
854
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
855
- const localVarOperationServerBasePath =
856
- operationServerMap['WorkspaceApi.getBuildLogs']?.[localVarOperationServerIndex]?.url
857
- return (axios, basePath) =>
858
- createRequestFunction(
859
- localVarAxiosArgs,
860
- globalAxios,
861
- BASE_PATH,
862
- configuration,
863
- )(axios, localVarOperationServerBasePath || basePath)
864
- },
865
- /**
866
- *
867
- * @summary Get preview URL for a workspace port
868
- * @param {string} workspaceId ID of the workspace
869
- * @param {number} port Port number to get preview URL for
870
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
871
- * @param {*} [options] Override http request option.
872
- * @throws {RequiredError}
873
- */
874
- async getPortPreviewUrl(
875
- workspaceId: string,
876
- port: number,
877
- xDaytonaOrganizationID?: string,
878
- options?: RawAxiosRequestConfig,
879
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortPreviewUrl>> {
880
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(
881
- workspaceId,
882
- port,
883
- xDaytonaOrganizationID,
884
- options,
885
- )
886
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
887
- const localVarOperationServerBasePath =
888
- operationServerMap['WorkspaceApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url
889
- return (axios, basePath) =>
890
- createRequestFunction(
891
- localVarAxiosArgs,
892
- globalAxios,
893
- BASE_PATH,
894
- configuration,
895
- )(axios, localVarOperationServerBasePath || basePath)
896
- },
897
- /**
898
- *
899
- * @summary Get workspace details
900
- * @param {string} workspaceId ID of the workspace
901
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
902
- * @param {boolean} [verbose] Include verbose output
903
- * @param {*} [options] Override http request option.
904
- * @throws {RequiredError}
905
- */
906
- async getWorkspace(
907
- workspaceId: string,
908
- xDaytonaOrganizationID?: string,
909
- verbose?: boolean,
910
- options?: RawAxiosRequestConfig,
911
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
912
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(
913
- workspaceId,
914
- xDaytonaOrganizationID,
915
- verbose,
916
- options,
917
- )
918
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
919
- const localVarOperationServerBasePath =
920
- operationServerMap['WorkspaceApi.getWorkspace']?.[localVarOperationServerIndex]?.url
921
- return (axios, basePath) =>
922
- createRequestFunction(
923
- localVarAxiosArgs,
924
- globalAxios,
925
- BASE_PATH,
926
- configuration,
927
- )(axios, localVarOperationServerBasePath || basePath)
928
- },
929
- /**
930
- *
931
- * @summary List all workspaces
932
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
933
- * @param {boolean} [verbose] Include verbose output
934
- * @param {string} [labels] JSON encoded labels to filter by
935
- * @param {*} [options] Override http request option.
936
- * @throws {RequiredError}
937
- */
938
- async listWorkspaces(
939
- xDaytonaOrganizationID?: string,
940
- verbose?: boolean,
941
- labels?: string,
942
- options?: RawAxiosRequestConfig,
943
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>> {
944
- const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(
945
- xDaytonaOrganizationID,
946
- verbose,
947
- labels,
948
- options,
949
- )
950
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
951
- const localVarOperationServerBasePath =
952
- operationServerMap['WorkspaceApi.listWorkspaces']?.[localVarOperationServerIndex]?.url
953
- return (axios, basePath) =>
954
- createRequestFunction(
955
- localVarAxiosArgs,
956
- globalAxios,
957
- BASE_PATH,
958
- configuration,
959
- )(axios, localVarOperationServerBasePath || basePath)
960
- },
961
- /**
962
- *
963
- * @summary Replace workspace labels
964
- * @param {string} workspaceId ID of the workspace
965
- * @param {WorkspaceLabels} workspaceLabels
966
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
967
- * @param {*} [options] Override http request option.
968
- * @throws {RequiredError}
969
- */
970
- async replaceLabels(
971
- workspaceId: string,
972
- workspaceLabels: WorkspaceLabels,
973
- xDaytonaOrganizationID?: string,
974
- options?: RawAxiosRequestConfig,
975
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>> {
976
- const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(
977
- workspaceId,
978
- workspaceLabels,
979
- xDaytonaOrganizationID,
980
- options,
981
- )
982
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
983
- const localVarOperationServerBasePath =
984
- operationServerMap['WorkspaceApi.replaceLabels']?.[localVarOperationServerIndex]?.url
985
- return (axios, basePath) =>
986
- createRequestFunction(
987
- localVarAxiosArgs,
988
- globalAxios,
989
- BASE_PATH,
990
- configuration,
991
- )(axios, localVarOperationServerBasePath || basePath)
992
- },
993
- /**
994
- *
995
- * @summary Set workspace auto-stop interval
996
- * @param {string} workspaceId ID of the workspace
997
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
998
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
999
- * @param {*} [options] Override http request option.
1000
- * @throws {RequiredError}
1001
- */
1002
- async setAutostopInterval(
1003
- workspaceId: string,
1004
- interval: number,
1005
- xDaytonaOrganizationID?: string,
1006
- options?: RawAxiosRequestConfig,
1007
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1008
- const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(
1009
- workspaceId,
1010
- interval,
1011
- xDaytonaOrganizationID,
1012
- options,
1013
- )
1014
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
1015
- const localVarOperationServerBasePath =
1016
- operationServerMap['WorkspaceApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url
1017
- return (axios, basePath) =>
1018
- createRequestFunction(
1019
- localVarAxiosArgs,
1020
- globalAxios,
1021
- BASE_PATH,
1022
- configuration,
1023
- )(axios, localVarOperationServerBasePath || basePath)
1024
- },
1025
- /**
1026
- *
1027
- * @summary Start workspace
1028
- * @param {string} workspaceId ID of the workspace
1029
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1030
- * @param {*} [options] Override http request option.
1031
- * @throws {RequiredError}
1032
- */
1033
- async startWorkspace(
1034
- workspaceId: string,
1035
- xDaytonaOrganizationID?: string,
1036
- options?: RawAxiosRequestConfig,
1037
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1038
- const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspace(
1039
- workspaceId,
1040
- xDaytonaOrganizationID,
1041
- options,
1042
- )
1043
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
1044
- const localVarOperationServerBasePath =
1045
- operationServerMap['WorkspaceApi.startWorkspace']?.[localVarOperationServerIndex]?.url
1046
- return (axios, basePath) =>
1047
- createRequestFunction(
1048
- localVarAxiosArgs,
1049
- globalAxios,
1050
- BASE_PATH,
1051
- configuration,
1052
- )(axios, localVarOperationServerBasePath || basePath)
1053
- },
1054
- /**
1055
- *
1056
- * @summary Stop workspace
1057
- * @param {string} workspaceId ID of the workspace
1058
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1059
- * @param {*} [options] Override http request option.
1060
- * @throws {RequiredError}
1061
- */
1062
- async stopWorkspace(
1063
- workspaceId: string,
1064
- xDaytonaOrganizationID?: string,
1065
- options?: RawAxiosRequestConfig,
1066
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1067
- const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspace(
1068
- workspaceId,
1069
- xDaytonaOrganizationID,
1070
- options,
1071
- )
1072
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
1073
- const localVarOperationServerBasePath =
1074
- operationServerMap['WorkspaceApi.stopWorkspace']?.[localVarOperationServerIndex]?.url
1075
- return (axios, basePath) =>
1076
- createRequestFunction(
1077
- localVarAxiosArgs,
1078
- globalAxios,
1079
- BASE_PATH,
1080
- configuration,
1081
- )(axios, localVarOperationServerBasePath || basePath)
1082
- },
1083
- /**
1084
- *
1085
- * @summary Update public status
1086
- * @param {string} workspaceId ID of the workspace
1087
- * @param {boolean} isPublic Public status to set
1088
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- */
1092
- async updatePublicStatus(
1093
- workspaceId: string,
1094
- isPublic: boolean,
1095
- xDaytonaOrganizationID?: string,
1096
- options?: RawAxiosRequestConfig,
1097
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1098
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(
1099
- workspaceId,
1100
- isPublic,
1101
- xDaytonaOrganizationID,
1102
- options,
1103
- )
1104
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
1105
- const localVarOperationServerBasePath =
1106
- operationServerMap['WorkspaceApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url
1107
- return (axios, basePath) =>
1108
- createRequestFunction(
1109
- localVarAxiosArgs,
1110
- globalAxios,
1111
- BASE_PATH,
1112
- configuration,
1113
- )(axios, localVarOperationServerBasePath || basePath)
1114
- },
1115
- }
1116
- }
1117
-
1118
- /**
1119
- * WorkspaceApi - factory interface
1120
- * @export
1121
- */
1122
- export const WorkspaceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1123
- const localVarFp = WorkspaceApiFp(configuration)
1124
- return {
1125
- /**
1126
- *
1127
- * @summary Archive workspace
1128
- * @param {string} workspaceId
1129
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1130
- * @param {*} [options] Override http request option.
1131
- * @throws {RequiredError}
1132
- */
1133
- archiveWorkspace(
1134
- workspaceId: string,
1135
- xDaytonaOrganizationID?: string,
1136
- options?: RawAxiosRequestConfig,
1137
- ): AxiosPromise<void> {
1138
- return localVarFp
1139
- .archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
1140
- .then((request) => request(axios, basePath))
1141
- },
1142
- /**
1143
- *
1144
- * @summary Create workspace snapshot
1145
- * @param {string} workspaceId ID of the workspace
1146
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1147
- * @param {*} [options] Override http request option.
1148
- * @throws {RequiredError}
1149
- */
1150
- createSnapshot(
1151
- workspaceId: string,
1152
- xDaytonaOrganizationID?: string,
1153
- options?: RawAxiosRequestConfig,
1154
- ): AxiosPromise<Workspace> {
1155
- return localVarFp
1156
- .createSnapshot(workspaceId, xDaytonaOrganizationID, options)
1157
- .then((request) => request(axios, basePath))
1158
- },
1159
- /**
1160
- *
1161
- * @summary Create a new workspace
1162
- * @param {CreateWorkspace} createWorkspace
1163
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1164
- * @param {*} [options] Override http request option.
1165
- * @throws {RequiredError}
1166
- */
1167
- createWorkspace(
1168
- createWorkspace: CreateWorkspace,
1169
- xDaytonaOrganizationID?: string,
1170
- options?: RawAxiosRequestConfig,
1171
- ): AxiosPromise<Workspace> {
1172
- return localVarFp
1173
- .createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
1174
- .then((request) => request(axios, basePath))
1175
- },
1176
- /**
1177
- *
1178
- * @summary Delete workspace
1179
- * @param {string} workspaceId ID of the workspace
1180
- * @param {boolean} force
1181
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1182
- * @param {*} [options] Override http request option.
1183
- * @throws {RequiredError}
1184
- */
1185
- deleteWorkspace(
1186
- workspaceId: string,
1187
- force: boolean,
1188
- xDaytonaOrganizationID?: string,
1189
- options?: RawAxiosRequestConfig,
1190
- ): AxiosPromise<void> {
1191
- return localVarFp
1192
- .deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
1193
- .then((request) => request(axios, basePath))
1194
- },
1195
- /**
1196
- *
1197
- * @summary Get build logs
1198
- * @param {string} workspaceId ID of the workspace
1199
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1200
- * @param {*} [options] Override http request option.
1201
- * @throws {RequiredError}
1202
- */
1203
- getBuildLogs(
1204
- workspaceId: string,
1205
- xDaytonaOrganizationID?: string,
1206
- options?: RawAxiosRequestConfig,
1207
- ): AxiosPromise<void> {
1208
- return localVarFp
1209
- .getBuildLogs(workspaceId, xDaytonaOrganizationID, options)
1210
- .then((request) => request(axios, basePath))
1211
- },
1212
- /**
1213
- *
1214
- * @summary Get preview URL for a workspace port
1215
- * @param {string} workspaceId ID of the workspace
1216
- * @param {number} port Port number to get preview URL for
1217
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1218
- * @param {*} [options] Override http request option.
1219
- * @throws {RequiredError}
1220
- */
1221
- getPortPreviewUrl(
1222
- workspaceId: string,
1223
- port: number,
1224
- xDaytonaOrganizationID?: string,
1225
- options?: RawAxiosRequestConfig,
1226
- ): AxiosPromise<PortPreviewUrl> {
1227
- return localVarFp
1228
- .getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
1229
- .then((request) => request(axios, basePath))
1230
- },
1231
- /**
1232
- *
1233
- * @summary Get workspace details
1234
- * @param {string} workspaceId ID of the workspace
1235
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1236
- * @param {boolean} [verbose] Include verbose output
1237
- * @param {*} [options] Override http request option.
1238
- * @throws {RequiredError}
1239
- */
1240
- getWorkspace(
1241
- workspaceId: string,
1242
- xDaytonaOrganizationID?: string,
1243
- verbose?: boolean,
1244
- options?: RawAxiosRequestConfig,
1245
- ): AxiosPromise<Workspace> {
1246
- return localVarFp
1247
- .getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
1248
- .then((request) => request(axios, basePath))
1249
- },
1250
- /**
1251
- *
1252
- * @summary List all workspaces
1253
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1254
- * @param {boolean} [verbose] Include verbose output
1255
- * @param {string} [labels] JSON encoded labels to filter by
1256
- * @param {*} [options] Override http request option.
1257
- * @throws {RequiredError}
1258
- */
1259
- listWorkspaces(
1260
- xDaytonaOrganizationID?: string,
1261
- verbose?: boolean,
1262
- labels?: string,
1263
- options?: RawAxiosRequestConfig,
1264
- ): AxiosPromise<Array<Workspace>> {
1265
- return localVarFp
1266
- .listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
1267
- .then((request) => request(axios, basePath))
1268
- },
1269
- /**
1270
- *
1271
- * @summary Replace workspace labels
1272
- * @param {string} workspaceId ID of the workspace
1273
- * @param {WorkspaceLabels} workspaceLabels
1274
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1275
- * @param {*} [options] Override http request option.
1276
- * @throws {RequiredError}
1277
- */
1278
- replaceLabels(
1279
- workspaceId: string,
1280
- workspaceLabels: WorkspaceLabels,
1281
- xDaytonaOrganizationID?: string,
1282
- options?: RawAxiosRequestConfig,
1283
- ): AxiosPromise<WorkspaceLabels> {
1284
- return localVarFp
1285
- .replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
1286
- .then((request) => request(axios, basePath))
1287
- },
1288
- /**
1289
- *
1290
- * @summary Set workspace auto-stop interval
1291
- * @param {string} workspaceId ID of the workspace
1292
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
1293
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1294
- * @param {*} [options] Override http request option.
1295
- * @throws {RequiredError}
1296
- */
1297
- setAutostopInterval(
1298
- workspaceId: string,
1299
- interval: number,
1300
- xDaytonaOrganizationID?: string,
1301
- options?: RawAxiosRequestConfig,
1302
- ): AxiosPromise<void> {
1303
- return localVarFp
1304
- .setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
1305
- .then((request) => request(axios, basePath))
1306
- },
1307
- /**
1308
- *
1309
- * @summary Start workspace
1310
- * @param {string} workspaceId ID of the workspace
1311
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1312
- * @param {*} [options] Override http request option.
1313
- * @throws {RequiredError}
1314
- */
1315
- startWorkspace(
1316
- workspaceId: string,
1317
- xDaytonaOrganizationID?: string,
1318
- options?: RawAxiosRequestConfig,
1319
- ): AxiosPromise<void> {
1320
- return localVarFp
1321
- .startWorkspace(workspaceId, xDaytonaOrganizationID, options)
1322
- .then((request) => request(axios, basePath))
1323
- },
1324
- /**
1325
- *
1326
- * @summary Stop workspace
1327
- * @param {string} workspaceId ID of the workspace
1328
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1329
- * @param {*} [options] Override http request option.
1330
- * @throws {RequiredError}
1331
- */
1332
- stopWorkspace(
1333
- workspaceId: string,
1334
- xDaytonaOrganizationID?: string,
1335
- options?: RawAxiosRequestConfig,
1336
- ): AxiosPromise<void> {
1337
- return localVarFp
1338
- .stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
1339
- .then((request) => request(axios, basePath))
1340
- },
1341
- /**
1342
- *
1343
- * @summary Update public status
1344
- * @param {string} workspaceId ID of the workspace
1345
- * @param {boolean} isPublic Public status to set
1346
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1347
- * @param {*} [options] Override http request option.
1348
- * @throws {RequiredError}
1349
- */
1350
- updatePublicStatus(
1351
- workspaceId: string,
1352
- isPublic: boolean,
1353
- xDaytonaOrganizationID?: string,
1354
- options?: RawAxiosRequestConfig,
1355
- ): AxiosPromise<void> {
1356
- return localVarFp
1357
- .updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
1358
- .then((request) => request(axios, basePath))
1359
- },
1360
- }
1361
- }
1362
-
1363
- /**
1364
- * WorkspaceApi - object-oriented interface
1365
- * @export
1366
- * @class WorkspaceApi
1367
- * @extends {BaseAPI}
1368
- */
1369
- export class WorkspaceApi extends BaseAPI {
1370
- /**
1371
- *
1372
- * @summary Archive workspace
1373
- * @param {string} workspaceId
1374
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1375
- * @param {*} [options] Override http request option.
1376
- * @throws {RequiredError}
1377
- * @memberof WorkspaceApi
1378
- */
1379
- public archiveWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
1380
- return WorkspaceApiFp(this.configuration)
1381
- .archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
1382
- .then((request) => request(this.axios, this.basePath))
1383
- }
1384
-
1385
- /**
1386
- *
1387
- * @summary Create workspace snapshot
1388
- * @param {string} workspaceId ID of the workspace
1389
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1390
- * @param {*} [options] Override http request option.
1391
- * @throws {RequiredError}
1392
- * @memberof WorkspaceApi
1393
- */
1394
- public createSnapshot(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
1395
- return WorkspaceApiFp(this.configuration)
1396
- .createSnapshot(workspaceId, xDaytonaOrganizationID, options)
1397
- .then((request) => request(this.axios, this.basePath))
1398
- }
1399
-
1400
- /**
1401
- *
1402
- * @summary Create a new workspace
1403
- * @param {CreateWorkspace} createWorkspace
1404
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1405
- * @param {*} [options] Override http request option.
1406
- * @throws {RequiredError}
1407
- * @memberof WorkspaceApi
1408
- */
1409
- public createWorkspace(
1410
- createWorkspace: CreateWorkspace,
1411
- xDaytonaOrganizationID?: string,
1412
- options?: RawAxiosRequestConfig,
1413
- ) {
1414
- return WorkspaceApiFp(this.configuration)
1415
- .createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
1416
- .then((request) => request(this.axios, this.basePath))
1417
- }
1418
-
1419
- /**
1420
- *
1421
- * @summary Delete workspace
1422
- * @param {string} workspaceId ID of the workspace
1423
- * @param {boolean} force
1424
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1425
- * @param {*} [options] Override http request option.
1426
- * @throws {RequiredError}
1427
- * @memberof WorkspaceApi
1428
- */
1429
- public deleteWorkspace(
1430
- workspaceId: string,
1431
- force: boolean,
1432
- xDaytonaOrganizationID?: string,
1433
- options?: RawAxiosRequestConfig,
1434
- ) {
1435
- return WorkspaceApiFp(this.configuration)
1436
- .deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
1437
- .then((request) => request(this.axios, this.basePath))
1438
- }
1439
-
1440
- /**
1441
- *
1442
- * @summary Get build logs
1443
- * @param {string} workspaceId ID of the workspace
1444
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1445
- * @param {*} [options] Override http request option.
1446
- * @throws {RequiredError}
1447
- * @memberof WorkspaceApi
1448
- */
1449
- public getBuildLogs(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
1450
- return WorkspaceApiFp(this.configuration)
1451
- .getBuildLogs(workspaceId, xDaytonaOrganizationID, options)
1452
- .then((request) => request(this.axios, this.basePath))
1453
- }
1454
-
1455
- /**
1456
- *
1457
- * @summary Get preview URL for a workspace port
1458
- * @param {string} workspaceId ID of the workspace
1459
- * @param {number} port Port number to get preview URL for
1460
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1461
- * @param {*} [options] Override http request option.
1462
- * @throws {RequiredError}
1463
- * @memberof WorkspaceApi
1464
- */
1465
- public getPortPreviewUrl(
1466
- workspaceId: string,
1467
- port: number,
1468
- xDaytonaOrganizationID?: string,
1469
- options?: RawAxiosRequestConfig,
1470
- ) {
1471
- return WorkspaceApiFp(this.configuration)
1472
- .getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
1473
- .then((request) => request(this.axios, this.basePath))
1474
- }
1475
-
1476
- /**
1477
- *
1478
- * @summary Get workspace details
1479
- * @param {string} workspaceId ID of the workspace
1480
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1481
- * @param {boolean} [verbose] Include verbose output
1482
- * @param {*} [options] Override http request option.
1483
- * @throws {RequiredError}
1484
- * @memberof WorkspaceApi
1485
- */
1486
- public getWorkspace(
1487
- workspaceId: string,
1488
- xDaytonaOrganizationID?: string,
1489
- verbose?: boolean,
1490
- options?: RawAxiosRequestConfig,
1491
- ) {
1492
- return WorkspaceApiFp(this.configuration)
1493
- .getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
1494
- .then((request) => request(this.axios, this.basePath))
1495
- }
1496
-
1497
- /**
1498
- *
1499
- * @summary List all workspaces
1500
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1501
- * @param {boolean} [verbose] Include verbose output
1502
- * @param {string} [labels] JSON encoded labels to filter by
1503
- * @param {*} [options] Override http request option.
1504
- * @throws {RequiredError}
1505
- * @memberof WorkspaceApi
1506
- */
1507
- public listWorkspaces(
1508
- xDaytonaOrganizationID?: string,
1509
- verbose?: boolean,
1510
- labels?: string,
1511
- options?: RawAxiosRequestConfig,
1512
- ) {
1513
- return WorkspaceApiFp(this.configuration)
1514
- .listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
1515
- .then((request) => request(this.axios, this.basePath))
1516
- }
1517
-
1518
- /**
1519
- *
1520
- * @summary Replace workspace labels
1521
- * @param {string} workspaceId ID of the workspace
1522
- * @param {WorkspaceLabels} workspaceLabels
1523
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1524
- * @param {*} [options] Override http request option.
1525
- * @throws {RequiredError}
1526
- * @memberof WorkspaceApi
1527
- */
1528
- public replaceLabels(
1529
- workspaceId: string,
1530
- workspaceLabels: WorkspaceLabels,
1531
- xDaytonaOrganizationID?: string,
1532
- options?: RawAxiosRequestConfig,
1533
- ) {
1534
- return WorkspaceApiFp(this.configuration)
1535
- .replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
1536
- .then((request) => request(this.axios, this.basePath))
1537
- }
1538
-
1539
- /**
1540
- *
1541
- * @summary Set workspace auto-stop interval
1542
- * @param {string} workspaceId ID of the workspace
1543
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
1544
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1545
- * @param {*} [options] Override http request option.
1546
- * @throws {RequiredError}
1547
- * @memberof WorkspaceApi
1548
- */
1549
- public setAutostopInterval(
1550
- workspaceId: string,
1551
- interval: number,
1552
- xDaytonaOrganizationID?: string,
1553
- options?: RawAxiosRequestConfig,
1554
- ) {
1555
- return WorkspaceApiFp(this.configuration)
1556
- .setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
1557
- .then((request) => request(this.axios, this.basePath))
1558
- }
1559
-
1560
- /**
1561
- *
1562
- * @summary Start workspace
1563
- * @param {string} workspaceId ID of the workspace
1564
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1565
- * @param {*} [options] Override http request option.
1566
- * @throws {RequiredError}
1567
- * @memberof WorkspaceApi
1568
- */
1569
- public startWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
1570
- return WorkspaceApiFp(this.configuration)
1571
- .startWorkspace(workspaceId, xDaytonaOrganizationID, options)
1572
- .then((request) => request(this.axios, this.basePath))
1573
- }
1574
-
1575
- /**
1576
- *
1577
- * @summary Stop workspace
1578
- * @param {string} workspaceId ID of the workspace
1579
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1580
- * @param {*} [options] Override http request option.
1581
- * @throws {RequiredError}
1582
- * @memberof WorkspaceApi
1583
- */
1584
- public stopWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
1585
- return WorkspaceApiFp(this.configuration)
1586
- .stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
1587
- .then((request) => request(this.axios, this.basePath))
1588
- }
1589
-
1590
- /**
1591
- *
1592
- * @summary Update public status
1593
- * @param {string} workspaceId ID of the workspace
1594
- * @param {boolean} isPublic Public status to set
1595
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1596
- * @param {*} [options] Override http request option.
1597
- * @throws {RequiredError}
1598
- * @memberof WorkspaceApi
1599
- */
1600
- public updatePublicStatus(
1601
- workspaceId: string,
1602
- isPublic: boolean,
1603
- xDaytonaOrganizationID?: string,
1604
- options?: RawAxiosRequestConfig,
1605
- ) {
1606
- return WorkspaceApiFp(this.configuration)
1607
- .updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
1608
- .then((request) => request(this.axios, this.basePath))
1609
- }
1610
- }