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