@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
@@ -12,15 +12,6 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
- return new (P || (P = Promise))(function (resolve, reject) {
18
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
- step((generator = generator.apply(thisArg, _arguments || [])).next());
22
- });
23
- };
24
15
  Object.defineProperty(exports, "__esModule", { value: true });
25
16
  exports.WorkspaceApi = exports.WorkspaceApiFactory = exports.WorkspaceApiFp = exports.WorkspaceApiAxiosParamCreator = void 0;
26
17
  const axios_1 = require("axios");
@@ -43,11 +34,10 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
43
34
  * @param {*} [options] Override http request option.
44
35
  * @throws {RequiredError}
45
36
  */
46
- archiveWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
37
+ archiveWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
47
38
  // verify required parameter 'workspaceId' is not null or undefined
48
39
  (0, common_1.assertParamExists)('archiveWorkspace', 'workspaceId', workspaceId);
49
- const localVarPath = `/workspace/{workspaceId}/archive`
50
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
40
+ const localVarPath = `/workspace/{workspaceId}/archive`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
51
41
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
42
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
53
43
  let baseOptions;
@@ -57,9 +47,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
57
47
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
58
48
  const localVarHeaderParameter = {};
59
49
  const localVarQueryParameter = {};
50
+ // authentication bearer required
51
+ // http bearer authentication required
52
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
60
53
  // authentication oauth2 required
61
54
  // oauth required
62
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
55
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
63
56
  if (xDaytonaOrganizationID != null) {
64
57
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
65
58
  }
@@ -70,7 +63,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
70
63
  url: (0, common_1.toPathString)(localVarUrlObj),
71
64
  options: localVarRequestOptions,
72
65
  };
73
- }),
66
+ },
74
67
  /**
75
68
  *
76
69
  * @summary Create workspace snapshot
@@ -79,11 +72,10 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
79
72
  * @param {*} [options] Override http request option.
80
73
  * @throws {RequiredError}
81
74
  */
82
- createSnapshot: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
75
+ createSnapshot: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
83
76
  // verify required parameter 'workspaceId' is not null or undefined
84
77
  (0, common_1.assertParamExists)('createSnapshot', 'workspaceId', workspaceId);
85
- const localVarPath = `/workspace/{workspaceId}/snapshot`
86
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
78
+ const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
87
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
80
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
89
81
  let baseOptions;
@@ -93,9 +85,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
93
85
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
94
86
  const localVarHeaderParameter = {};
95
87
  const localVarQueryParameter = {};
88
+ // authentication bearer required
89
+ // http bearer authentication required
90
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
96
91
  // authentication oauth2 required
97
92
  // oauth required
98
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
93
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
99
94
  if (xDaytonaOrganizationID != null) {
100
95
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
101
96
  }
@@ -106,7 +101,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
106
101
  url: (0, common_1.toPathString)(localVarUrlObj),
107
102
  options: localVarRequestOptions,
108
103
  };
109
- }),
104
+ },
110
105
  /**
111
106
  *
112
107
  * @summary Create a new workspace
@@ -115,7 +110,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
115
110
  * @param {*} [options] Override http request option.
116
111
  * @throws {RequiredError}
117
112
  */
118
- createWorkspace: (createWorkspace_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createWorkspace_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createWorkspace, xDaytonaOrganizationID, options = {}) {
113
+ createWorkspace: async (createWorkspace, xDaytonaOrganizationID, options = {}) => {
119
114
  // verify required parameter 'createWorkspace' is not null or undefined
120
115
  (0, common_1.assertParamExists)('createWorkspace', 'createWorkspace', createWorkspace);
121
116
  const localVarPath = `/workspace`;
@@ -128,13 +123,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
128
123
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
129
124
  const localVarHeaderParameter = {};
130
125
  const localVarQueryParameter = {};
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
131
129
  // authentication oauth2 required
132
130
  // oauth required
133
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
131
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
134
133
  if (xDaytonaOrganizationID != null) {
135
134
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
136
135
  }
137
- localVarHeaderParameter['Content-Type'] = 'application/json';
138
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
137
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
138
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -143,7 +141,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
143
141
  url: (0, common_1.toPathString)(localVarUrlObj),
144
142
  options: localVarRequestOptions,
145
143
  };
146
- }),
144
+ },
147
145
  /**
148
146
  *
149
147
  * @summary Delete workspace
@@ -153,13 +151,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
153
151
  * @param {*} [options] Override http request option.
154
152
  * @throws {RequiredError}
155
153
  */
156
- deleteWorkspace: (workspaceId_1, force_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, force_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, force, xDaytonaOrganizationID, options = {}) {
154
+ deleteWorkspace: async (workspaceId, force, xDaytonaOrganizationID, options = {}) => {
157
155
  // verify required parameter 'workspaceId' is not null or undefined
158
156
  (0, common_1.assertParamExists)('deleteWorkspace', 'workspaceId', workspaceId);
159
157
  // verify required parameter 'force' is not null or undefined
160
158
  (0, common_1.assertParamExists)('deleteWorkspace', 'force', force);
161
- const localVarPath = `/workspace/{workspaceId}`
162
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
159
+ const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
163
160
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
161
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
162
  let baseOptions;
@@ -169,9 +166,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
169
166
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
170
167
  const localVarHeaderParameter = {};
171
168
  const localVarQueryParameter = {};
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
172
172
  // authentication oauth2 required
173
173
  // oauth required
174
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
174
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
175
175
  if (force !== undefined) {
176
176
  localVarQueryParameter['force'] = force;
177
177
  }
@@ -185,7 +185,50 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
185
185
  url: (0, common_1.toPathString)(localVarUrlObj),
186
186
  options: localVarRequestOptions,
187
187
  };
188
- }),
188
+ },
189
+ /**
190
+ *
191
+ * @summary Get preview URL for a workspace port
192
+ * @param {string} workspaceId ID of the workspace
193
+ * @param {number} port Port number to get preview URL for
194
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ getPortPreviewUrl: async (workspaceId, port, xDaytonaOrganizationID, options = {}) => {
199
+ // verify required parameter 'workspaceId' is not null or undefined
200
+ (0, common_1.assertParamExists)('getPortPreviewUrl', 'workspaceId', workspaceId);
201
+ // verify required parameter 'port' is not null or undefined
202
+ (0, common_1.assertParamExists)('getPortPreviewUrl', 'port', port);
203
+ const localVarPath = `/workspace/{workspaceId}/ports/{port}/preview-url`
204
+ .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
205
+ .replace(`{${'port'}}`, encodeURIComponent(String(port)));
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ }
212
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
213
+ const localVarHeaderParameter = {};
214
+ const localVarQueryParameter = {};
215
+ // authentication bearer required
216
+ // http bearer authentication required
217
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
218
+ // authentication oauth2 required
219
+ // oauth required
220
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
221
+ if (xDaytonaOrganizationID != null) {
222
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
223
+ }
224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
+ return {
228
+ url: (0, common_1.toPathString)(localVarUrlObj),
229
+ options: localVarRequestOptions,
230
+ };
231
+ },
189
232
  /**
190
233
  *
191
234
  * @summary Get workspace details
@@ -195,11 +238,10 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
195
238
  * @param {*} [options] Override http request option.
196
239
  * @throws {RequiredError}
197
240
  */
198
- getWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, verbose_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, verbose_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, verbose, options = {}) {
241
+ getWorkspace: async (workspaceId, xDaytonaOrganizationID, verbose, options = {}) => {
199
242
  // verify required parameter 'workspaceId' is not null or undefined
200
243
  (0, common_1.assertParamExists)('getWorkspace', 'workspaceId', workspaceId);
201
- const localVarPath = `/workspace/{workspaceId}`
202
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
244
+ const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
203
245
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
246
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
205
247
  let baseOptions;
@@ -209,9 +251,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
209
251
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
210
252
  const localVarHeaderParameter = {};
211
253
  const localVarQueryParameter = {};
254
+ // authentication bearer required
255
+ // http bearer authentication required
256
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
212
257
  // authentication oauth2 required
213
258
  // oauth required
214
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
259
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
215
260
  if (verbose !== undefined) {
216
261
  localVarQueryParameter['verbose'] = verbose;
217
262
  }
@@ -225,16 +270,17 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
225
270
  url: (0, common_1.toPathString)(localVarUrlObj),
226
271
  options: localVarRequestOptions,
227
272
  };
228
- }),
273
+ },
229
274
  /**
230
275
  *
231
276
  * @summary List all workspaces
232
277
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
233
278
  * @param {boolean} [verbose] Include verbose output
279
+ * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
234
280
  * @param {*} [options] Override http request option.
235
281
  * @throws {RequiredError}
236
282
  */
237
- listWorkspaces: (xDaytonaOrganizationID_1, verbose_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, verbose_1, ...args_1], void 0, function* (xDaytonaOrganizationID, verbose, options = {}) {
283
+ listWorkspaces: async (xDaytonaOrganizationID, verbose, labels, options = {}) => {
238
284
  const localVarPath = `/workspace`;
239
285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
240
286
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -245,12 +291,20 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
245
291
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
246
292
  const localVarHeaderParameter = {};
247
293
  const localVarQueryParameter = {};
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
248
297
  // authentication oauth2 required
249
298
  // oauth required
250
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
299
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
251
300
  if (verbose !== undefined) {
252
301
  localVarQueryParameter['verbose'] = verbose;
253
302
  }
303
+ if (labels !== undefined) {
304
+ for (const [key, value] of Object.entries(labels)) {
305
+ localVarQueryParameter[key] = value;
306
+ }
307
+ }
254
308
  if (xDaytonaOrganizationID != null) {
255
309
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
256
310
  }
@@ -261,7 +315,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
261
315
  url: (0, common_1.toPathString)(localVarUrlObj),
262
316
  options: localVarRequestOptions,
263
317
  };
264
- }),
318
+ },
265
319
  /**
266
320
  *
267
321
  * @summary Replace workspace labels
@@ -271,13 +325,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
271
325
  * @param {*} [options] Override http request option.
272
326
  * @throws {RequiredError}
273
327
  */
274
- replaceLabels: (workspaceId_1, workspaceLabels_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, workspaceLabels_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, workspaceLabels, xDaytonaOrganizationID, options = {}) {
328
+ replaceLabels: async (workspaceId, workspaceLabels, xDaytonaOrganizationID, options = {}) => {
275
329
  // verify required parameter 'workspaceId' is not null or undefined
276
330
  (0, common_1.assertParamExists)('replaceLabels', 'workspaceId', workspaceId);
277
331
  // verify required parameter 'workspaceLabels' is not null or undefined
278
332
  (0, common_1.assertParamExists)('replaceLabels', 'workspaceLabels', workspaceLabels);
279
- const localVarPath = `/workspace/{workspaceId}/labels`
280
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
333
+ const localVarPath = `/workspace/{workspaceId}/labels`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
281
334
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
335
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
283
336
  let baseOptions;
@@ -287,13 +340,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
287
340
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
288
341
  const localVarHeaderParameter = {};
289
342
  const localVarQueryParameter = {};
343
+ // authentication bearer required
344
+ // http bearer authentication required
345
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
290
346
  // authentication oauth2 required
291
347
  // oauth required
292
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
348
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
293
350
  if (xDaytonaOrganizationID != null) {
294
351
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
295
352
  }
296
- localVarHeaderParameter['Content-Type'] = 'application/json';
297
353
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
354
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
355
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -302,7 +358,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
302
358
  url: (0, common_1.toPathString)(localVarUrlObj),
303
359
  options: localVarRequestOptions,
304
360
  };
305
- }),
361
+ },
306
362
  /**
307
363
  *
308
364
  * @summary Resize workspace
@@ -312,13 +368,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
312
368
  * @param {*} [options] Override http request option.
313
369
  * @throws {RequiredError}
314
370
  */
315
- resizeWorkspace: (workspaceId_1, body_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, body_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, body, xDaytonaOrganizationID, options = {}) {
371
+ resizeWorkspace: async (workspaceId, body, xDaytonaOrganizationID, options = {}) => {
316
372
  // verify required parameter 'workspaceId' is not null or undefined
317
373
  (0, common_1.assertParamExists)('resizeWorkspace', 'workspaceId', workspaceId);
318
374
  // verify required parameter 'body' is not null or undefined
319
375
  (0, common_1.assertParamExists)('resizeWorkspace', 'body', body);
320
- const localVarPath = `/workspace/{workspaceId}/resize`
321
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
376
+ const localVarPath = `/workspace/{workspaceId}/resize`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
322
377
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
323
378
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
324
379
  let baseOptions;
@@ -328,13 +383,16 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
328
383
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
329
384
  const localVarHeaderParameter = {};
330
385
  const localVarQueryParameter = {};
386
+ // authentication bearer required
387
+ // http bearer authentication required
388
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
331
389
  // authentication oauth2 required
332
390
  // oauth required
333
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
391
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
392
+ localVarHeaderParameter['Content-Type'] = 'application/json';
334
393
  if (xDaytonaOrganizationID != null) {
335
394
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
336
395
  }
337
- localVarHeaderParameter['Content-Type'] = 'application/json';
338
396
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
339
397
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
398
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -343,7 +401,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
343
401
  url: (0, common_1.toPathString)(localVarUrlObj),
344
402
  options: localVarRequestOptions,
345
403
  };
346
- }),
404
+ },
347
405
  /**
348
406
  *
349
407
  * @summary Set workspace auto-stop interval
@@ -353,14 +411,14 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
353
411
  * @param {*} [options] Override http request option.
354
412
  * @throws {RequiredError}
355
413
  */
356
- setAutostopInterval: (workspaceId_1, interval_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, interval_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, interval, xDaytonaOrganizationID, options = {}) {
414
+ setAutostopInterval: async (workspaceId, interval, xDaytonaOrganizationID, options = {}) => {
357
415
  // verify required parameter 'workspaceId' is not null or undefined
358
416
  (0, common_1.assertParamExists)('setAutostopInterval', 'workspaceId', workspaceId);
359
417
  // verify required parameter 'interval' is not null or undefined
360
418
  (0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
361
419
  const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
362
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
363
- .replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
420
+ .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
421
+ .replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
364
422
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
365
423
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
366
424
  let baseOptions;
@@ -370,9 +428,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
370
428
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
371
429
  const localVarHeaderParameter = {};
372
430
  const localVarQueryParameter = {};
431
+ // authentication bearer required
432
+ // http bearer authentication required
433
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
373
434
  // authentication oauth2 required
374
435
  // oauth required
375
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
436
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
376
437
  if (xDaytonaOrganizationID != null) {
377
438
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
378
439
  }
@@ -383,7 +444,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
383
444
  url: (0, common_1.toPathString)(localVarUrlObj),
384
445
  options: localVarRequestOptions,
385
446
  };
386
- }),
447
+ },
387
448
  /**
388
449
  *
389
450
  * @summary Start workspace
@@ -392,11 +453,10 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
392
453
  * @param {*} [options] Override http request option.
393
454
  * @throws {RequiredError}
394
455
  */
395
- startWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
456
+ startWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
396
457
  // verify required parameter 'workspaceId' is not null or undefined
397
458
  (0, common_1.assertParamExists)('startWorkspace', 'workspaceId', workspaceId);
398
- const localVarPath = `/workspace/{workspaceId}/start`
399
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
459
+ const localVarPath = `/workspace/{workspaceId}/start`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
400
460
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
401
461
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
402
462
  let baseOptions;
@@ -406,9 +466,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
406
466
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
407
467
  const localVarHeaderParameter = {};
408
468
  const localVarQueryParameter = {};
469
+ // authentication bearer required
470
+ // http bearer authentication required
471
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
409
472
  // authentication oauth2 required
410
473
  // oauth required
411
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
474
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
412
475
  if (xDaytonaOrganizationID != null) {
413
476
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
414
477
  }
@@ -419,7 +482,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
419
482
  url: (0, common_1.toPathString)(localVarUrlObj),
420
483
  options: localVarRequestOptions,
421
484
  };
422
- }),
485
+ },
423
486
  /**
424
487
  *
425
488
  * @summary Stop workspace
@@ -428,11 +491,10 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
428
491
  * @param {*} [options] Override http request option.
429
492
  * @throws {RequiredError}
430
493
  */
431
- stopWorkspace: (workspaceId_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, xDaytonaOrganizationID, options = {}) {
494
+ stopWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
432
495
  // verify required parameter 'workspaceId' is not null or undefined
433
496
  (0, common_1.assertParamExists)('stopWorkspace', 'workspaceId', workspaceId);
434
- const localVarPath = `/workspace/{workspaceId}/stop`
435
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
497
+ const localVarPath = `/workspace/{workspaceId}/stop`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
436
498
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
437
499
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
438
500
  let baseOptions;
@@ -442,9 +504,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
442
504
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
443
505
  const localVarHeaderParameter = {};
444
506
  const localVarQueryParameter = {};
507
+ // authentication bearer required
508
+ // http bearer authentication required
509
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
445
510
  // authentication oauth2 required
446
511
  // oauth required
447
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
512
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
448
513
  if (xDaytonaOrganizationID != null) {
449
514
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
450
515
  }
@@ -455,7 +520,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
455
520
  url: (0, common_1.toPathString)(localVarUrlObj),
456
521
  options: localVarRequestOptions,
457
522
  };
458
- }),
523
+ },
459
524
  /**
460
525
  *
461
526
  * @summary Update public status
@@ -465,14 +530,14 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
465
530
  * @param {*} [options] Override http request option.
466
531
  * @throws {RequiredError}
467
532
  */
468
- updatePublicStatus: (workspaceId_1, isPublic_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [workspaceId_1, isPublic_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) {
533
+ updatePublicStatus: async (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) => {
469
534
  // verify required parameter 'workspaceId' is not null or undefined
470
535
  (0, common_1.assertParamExists)('updatePublicStatus', 'workspaceId', workspaceId);
471
536
  // verify required parameter 'isPublic' is not null or undefined
472
537
  (0, common_1.assertParamExists)('updatePublicStatus', 'isPublic', isPublic);
473
538
  const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
474
- .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)))
475
- .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
539
+ .replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
540
+ .replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
476
541
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
542
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
478
543
  let baseOptions;
@@ -482,9 +547,12 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
482
547
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
483
548
  const localVarHeaderParameter = {};
484
549
  const localVarQueryParameter = {};
550
+ // authentication bearer required
551
+ // http bearer authentication required
552
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
485
553
  // authentication oauth2 required
486
554
  // oauth required
487
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
555
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
488
556
  if (xDaytonaOrganizationID != null) {
489
557
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
490
558
  }
@@ -495,7 +563,7 @@ const WorkspaceApiAxiosParamCreator = function (configuration) {
495
563
  url: (0, common_1.toPathString)(localVarUrlObj),
496
564
  options: localVarRequestOptions,
497
565
  };
498
- }),
566
+ },
499
567
  };
500
568
  };
501
569
  exports.WorkspaceApiAxiosParamCreator = WorkspaceApiAxiosParamCreator;
@@ -514,14 +582,12 @@ const WorkspaceApiFp = function (configuration) {
514
582
  * @param {*} [options] Override http request option.
515
583
  * @throws {RequiredError}
516
584
  */
517
- archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
518
- return __awaiter(this, void 0, void 0, function* () {
519
- var _a, _b, _c;
520
- const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
521
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
522
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
523
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
524
- });
585
+ async archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
586
+ var _a, _b, _c;
587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
588
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
589
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
590
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
525
591
  },
526
592
  /**
527
593
  *
@@ -531,14 +597,12 @@ const WorkspaceApiFp = function (configuration) {
531
597
  * @param {*} [options] Override http request option.
532
598
  * @throws {RequiredError}
533
599
  */
534
- createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
535
- return __awaiter(this, void 0, void 0, function* () {
536
- var _a, _b, _c;
537
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
538
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
539
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
540
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
541
- });
600
+ async createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
601
+ var _a, _b, _c;
602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
603
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
604
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
605
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
542
606
  },
543
607
  /**
544
608
  *
@@ -548,14 +612,12 @@ const WorkspaceApiFp = function (configuration) {
548
612
  * @param {*} [options] Override http request option.
549
613
  * @throws {RequiredError}
550
614
  */
551
- createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
552
- return __awaiter(this, void 0, void 0, function* () {
553
- var _a, _b, _c;
554
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
555
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
556
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
557
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
558
- });
615
+ async createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
616
+ var _a, _b, _c;
617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
619
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
620
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
621
  },
560
622
  /**
561
623
  *
@@ -566,14 +628,28 @@ const WorkspaceApiFp = function (configuration) {
566
628
  * @param {*} [options] Override http request option.
567
629
  * @throws {RequiredError}
568
630
  */
569
- deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
570
- return __awaiter(this, void 0, void 0, function* () {
571
- var _a, _b, _c;
572
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options);
573
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
574
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
575
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
- });
631
+ async deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
632
+ var _a, _b, _c;
633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options);
634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
635
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
636
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
637
+ },
638
+ /**
639
+ *
640
+ * @summary Get preview URL for a workspace port
641
+ * @param {string} workspaceId ID of the workspace
642
+ * @param {number} port Port number to get preview URL for
643
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ */
647
+ async getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
648
+ var _a, _b, _c;
649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options);
650
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
651
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.getPortPreviewUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
652
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
577
653
  },
578
654
  /**
579
655
  *
@@ -584,31 +660,28 @@ const WorkspaceApiFp = function (configuration) {
584
660
  * @param {*} [options] Override http request option.
585
661
  * @throws {RequiredError}
586
662
  */
587
- getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
588
- return __awaiter(this, void 0, void 0, function* () {
589
- var _a, _b, _c;
590
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
591
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
592
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
593
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
594
- });
663
+ async getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
664
+ var _a, _b, _c;
665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
666
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
667
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
668
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
595
669
  },
596
670
  /**
597
671
  *
598
672
  * @summary List all workspaces
599
673
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
600
674
  * @param {boolean} [verbose] Include verbose output
675
+ * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
601
676
  * @param {*} [options] Override http request option.
602
677
  * @throws {RequiredError}
603
678
  */
604
- listWorkspaces(xDaytonaOrganizationID, verbose, options) {
605
- return __awaiter(this, void 0, void 0, function* () {
606
- var _a, _b, _c;
607
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, options);
608
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
609
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
610
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
611
- });
679
+ async listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
680
+ var _a, _b, _c;
681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options);
682
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
683
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
684
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
612
685
  },
613
686
  /**
614
687
  *
@@ -619,14 +692,12 @@ const WorkspaceApiFp = function (configuration) {
619
692
  * @param {*} [options] Override http request option.
620
693
  * @throws {RequiredError}
621
694
  */
622
- replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
623
- return __awaiter(this, void 0, void 0, function* () {
624
- var _a, _b, _c;
625
- const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
626
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
627
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
628
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
- });
695
+ async replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
696
+ var _a, _b, _c;
697
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
698
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
699
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
700
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
630
701
  },
631
702
  /**
632
703
  *
@@ -637,14 +708,12 @@ const WorkspaceApiFp = function (configuration) {
637
708
  * @param {*} [options] Override http request option.
638
709
  * @throws {RequiredError}
639
710
  */
640
- resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
641
- return __awaiter(this, void 0, void 0, function* () {
642
- var _a, _b, _c;
643
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
644
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
645
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
646
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
647
- });
711
+ async resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
712
+ var _a, _b, _c;
713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
714
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
715
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
716
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
717
  },
649
718
  /**
650
719
  *
@@ -655,14 +724,12 @@ const WorkspaceApiFp = function (configuration) {
655
724
  * @param {*} [options] Override http request option.
656
725
  * @throws {RequiredError}
657
726
  */
658
- setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
659
- return __awaiter(this, void 0, void 0, function* () {
660
- var _a, _b, _c;
661
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
662
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
663
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
664
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
665
- });
727
+ async setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
728
+ var _a, _b, _c;
729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
730
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
731
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
732
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
666
733
  },
667
734
  /**
668
735
  *
@@ -672,14 +739,12 @@ const WorkspaceApiFp = function (configuration) {
672
739
  * @param {*} [options] Override http request option.
673
740
  * @throws {RequiredError}
674
741
  */
675
- startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
676
- return __awaiter(this, void 0, void 0, function* () {
677
- var _a, _b, _c;
678
- const localVarAxiosArgs = yield localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
679
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
680
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
681
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
682
- });
742
+ async startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
743
+ var _a, _b, _c;
744
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
745
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
746
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
747
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
683
748
  },
684
749
  /**
685
750
  *
@@ -689,14 +754,12 @@ const WorkspaceApiFp = function (configuration) {
689
754
  * @param {*} [options] Override http request option.
690
755
  * @throws {RequiredError}
691
756
  */
692
- stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
693
- return __awaiter(this, void 0, void 0, function* () {
694
- var _a, _b, _c;
695
- const localVarAxiosArgs = yield localVarAxiosParamCreator.stopWorkspace(workspaceId, xDaytonaOrganizationID, options);
696
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
697
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
698
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
699
- });
757
+ async stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
758
+ var _a, _b, _c;
759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspace(workspaceId, xDaytonaOrganizationID, options);
760
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
761
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
762
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
700
763
  },
701
764
  /**
702
765
  *
@@ -707,14 +770,12 @@ const WorkspaceApiFp = function (configuration) {
707
770
  * @param {*} [options] Override http request option.
708
771
  * @throws {RequiredError}
709
772
  */
710
- updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
711
- return __awaiter(this, void 0, void 0, function* () {
712
- var _a, _b, _c;
713
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
714
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
715
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
716
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
717
- });
773
+ async updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
774
+ var _a, _b, _c;
775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
776
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
777
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
778
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
718
779
  },
719
780
  };
720
781
  };
@@ -735,7 +796,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
735
796
  * @throws {RequiredError}
736
797
  */
737
798
  archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
738
- return localVarFp.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
799
+ return localVarFp
800
+ .archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
801
+ .then((request) => request(axios, basePath));
739
802
  },
740
803
  /**
741
804
  *
@@ -746,7 +809,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
746
809
  * @throws {RequiredError}
747
810
  */
748
811
  createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
749
- return localVarFp.createSnapshot(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
812
+ return localVarFp
813
+ .createSnapshot(workspaceId, xDaytonaOrganizationID, options)
814
+ .then((request) => request(axios, basePath));
750
815
  },
751
816
  /**
752
817
  *
@@ -757,7 +822,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
757
822
  * @throws {RequiredError}
758
823
  */
759
824
  createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
760
- return localVarFp.createWorkspace(createWorkspace, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
825
+ return localVarFp
826
+ .createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
827
+ .then((request) => request(axios, basePath));
761
828
  },
762
829
  /**
763
830
  *
@@ -769,7 +836,23 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
769
836
  * @throws {RequiredError}
770
837
  */
771
838
  deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
772
- return localVarFp.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
839
+ return localVarFp
840
+ .deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
841
+ .then((request) => request(axios, basePath));
842
+ },
843
+ /**
844
+ *
845
+ * @summary Get preview URL for a workspace port
846
+ * @param {string} workspaceId ID of the workspace
847
+ * @param {number} port Port number to get preview URL for
848
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
852
+ getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
853
+ return localVarFp
854
+ .getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
855
+ .then((request) => request(axios, basePath));
773
856
  },
774
857
  /**
775
858
  *
@@ -781,18 +864,23 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
781
864
  * @throws {RequiredError}
782
865
  */
783
866
  getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
784
- return localVarFp.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
867
+ return localVarFp
868
+ .getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
869
+ .then((request) => request(axios, basePath));
785
870
  },
786
871
  /**
787
872
  *
788
873
  * @summary List all workspaces
789
874
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
790
875
  * @param {boolean} [verbose] Include verbose output
876
+ * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
791
877
  * @param {*} [options] Override http request option.
792
878
  * @throws {RequiredError}
793
879
  */
794
- listWorkspaces(xDaytonaOrganizationID, verbose, options) {
795
- return localVarFp.listWorkspaces(xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
880
+ listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
881
+ return localVarFp
882
+ .listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
883
+ .then((request) => request(axios, basePath));
796
884
  },
797
885
  /**
798
886
  *
@@ -804,7 +892,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
804
892
  * @throws {RequiredError}
805
893
  */
806
894
  replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
807
- return localVarFp.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
895
+ return localVarFp
896
+ .replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
897
+ .then((request) => request(axios, basePath));
808
898
  },
809
899
  /**
810
900
  *
@@ -816,7 +906,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
816
906
  * @throws {RequiredError}
817
907
  */
818
908
  resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
819
- return localVarFp.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
909
+ return localVarFp
910
+ .resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
911
+ .then((request) => request(axios, basePath));
820
912
  },
821
913
  /**
822
914
  *
@@ -828,7 +920,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
828
920
  * @throws {RequiredError}
829
921
  */
830
922
  setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
831
- return localVarFp.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
923
+ return localVarFp
924
+ .setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
925
+ .then((request) => request(axios, basePath));
832
926
  },
833
927
  /**
834
928
  *
@@ -839,7 +933,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
839
933
  * @throws {RequiredError}
840
934
  */
841
935
  startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
842
- return localVarFp.startWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
936
+ return localVarFp
937
+ .startWorkspace(workspaceId, xDaytonaOrganizationID, options)
938
+ .then((request) => request(axios, basePath));
843
939
  },
844
940
  /**
845
941
  *
@@ -850,7 +946,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
850
946
  * @throws {RequiredError}
851
947
  */
852
948
  stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
853
- return localVarFp.stopWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
949
+ return localVarFp
950
+ .stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
951
+ .then((request) => request(axios, basePath));
854
952
  },
855
953
  /**
856
954
  *
@@ -862,7 +960,9 @@ const WorkspaceApiFactory = function (configuration, basePath, axios) {
862
960
  * @throws {RequiredError}
863
961
  */
864
962
  updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
865
- return localVarFp.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
963
+ return localVarFp
964
+ .updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
965
+ .then((request) => request(axios, basePath));
866
966
  },
867
967
  };
868
968
  };
@@ -884,7 +984,9 @@ class WorkspaceApi extends base_1.BaseAPI {
884
984
  * @memberof WorkspaceApi
885
985
  */
886
986
  archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
887
- return (0, exports.WorkspaceApiFp)(this.configuration).archiveWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
987
+ return (0, exports.WorkspaceApiFp)(this.configuration)
988
+ .archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
989
+ .then((request) => request(this.axios, this.basePath));
888
990
  }
889
991
  /**
890
992
  *
@@ -896,7 +998,9 @@ class WorkspaceApi extends base_1.BaseAPI {
896
998
  * @memberof WorkspaceApi
897
999
  */
898
1000
  createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
899
- return (0, exports.WorkspaceApiFp)(this.configuration).createSnapshot(workspaceId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1001
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1002
+ .createSnapshot(workspaceId, xDaytonaOrganizationID, options)
1003
+ .then((request) => request(this.axios, this.basePath));
900
1004
  }
901
1005
  /**
902
1006
  *
@@ -908,7 +1012,9 @@ class WorkspaceApi extends base_1.BaseAPI {
908
1012
  * @memberof WorkspaceApi
909
1013
  */
910
1014
  createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
911
- return (0, exports.WorkspaceApiFp)(this.configuration).createWorkspace(createWorkspace, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1015
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1016
+ .createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
1017
+ .then((request) => request(this.axios, this.basePath));
912
1018
  }
913
1019
  /**
914
1020
  *
@@ -921,7 +1027,24 @@ class WorkspaceApi extends base_1.BaseAPI {
921
1027
  * @memberof WorkspaceApi
922
1028
  */
923
1029
  deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
924
- return (0, exports.WorkspaceApiFp)(this.configuration).deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1030
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1031
+ .deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
1032
+ .then((request) => request(this.axios, this.basePath));
1033
+ }
1034
+ /**
1035
+ *
1036
+ * @summary Get preview URL for a workspace port
1037
+ * @param {string} workspaceId ID of the workspace
1038
+ * @param {number} port Port number to get preview URL for
1039
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ * @memberof WorkspaceApi
1043
+ */
1044
+ getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
1045
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1046
+ .getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
1047
+ .then((request) => request(this.axios, this.basePath));
925
1048
  }
926
1049
  /**
927
1050
  *
@@ -934,19 +1057,24 @@ class WorkspaceApi extends base_1.BaseAPI {
934
1057
  * @memberof WorkspaceApi
935
1058
  */
936
1059
  getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
937
- return (0, exports.WorkspaceApiFp)(this.configuration).getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options).then((request) => request(this.axios, this.basePath));
1060
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1061
+ .getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
1062
+ .then((request) => request(this.axios, this.basePath));
938
1063
  }
939
1064
  /**
940
1065
  *
941
1066
  * @summary List all workspaces
942
1067
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
943
1068
  * @param {boolean} [verbose] Include verbose output
1069
+ * @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
944
1070
  * @param {*} [options] Override http request option.
945
1071
  * @throws {RequiredError}
946
1072
  * @memberof WorkspaceApi
947
1073
  */
948
- listWorkspaces(xDaytonaOrganizationID, verbose, options) {
949
- return (0, exports.WorkspaceApiFp)(this.configuration).listWorkspaces(xDaytonaOrganizationID, verbose, options).then((request) => request(this.axios, this.basePath));
1074
+ listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
1075
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1076
+ .listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
1077
+ .then((request) => request(this.axios, this.basePath));
950
1078
  }
951
1079
  /**
952
1080
  *
@@ -959,7 +1087,9 @@ class WorkspaceApi extends base_1.BaseAPI {
959
1087
  * @memberof WorkspaceApi
960
1088
  */
961
1089
  replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
962
- return (0, exports.WorkspaceApiFp)(this.configuration).replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1090
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1091
+ .replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
1092
+ .then((request) => request(this.axios, this.basePath));
963
1093
  }
964
1094
  /**
965
1095
  *
@@ -972,7 +1102,9 @@ class WorkspaceApi extends base_1.BaseAPI {
972
1102
  * @memberof WorkspaceApi
973
1103
  */
974
1104
  resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
975
- return (0, exports.WorkspaceApiFp)(this.configuration).resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1105
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1106
+ .resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
1107
+ .then((request) => request(this.axios, this.basePath));
976
1108
  }
977
1109
  /**
978
1110
  *
@@ -985,7 +1117,9 @@ class WorkspaceApi extends base_1.BaseAPI {
985
1117
  * @memberof WorkspaceApi
986
1118
  */
987
1119
  setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
988
- return (0, exports.WorkspaceApiFp)(this.configuration).setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1120
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1121
+ .setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
1122
+ .then((request) => request(this.axios, this.basePath));
989
1123
  }
990
1124
  /**
991
1125
  *
@@ -997,7 +1131,9 @@ class WorkspaceApi extends base_1.BaseAPI {
997
1131
  * @memberof WorkspaceApi
998
1132
  */
999
1133
  startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
1000
- return (0, exports.WorkspaceApiFp)(this.configuration).startWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1134
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1135
+ .startWorkspace(workspaceId, xDaytonaOrganizationID, options)
1136
+ .then((request) => request(this.axios, this.basePath));
1001
1137
  }
1002
1138
  /**
1003
1139
  *
@@ -1009,7 +1145,9 @@ class WorkspaceApi extends base_1.BaseAPI {
1009
1145
  * @memberof WorkspaceApi
1010
1146
  */
1011
1147
  stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
1012
- return (0, exports.WorkspaceApiFp)(this.configuration).stopWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1148
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1149
+ .stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
1150
+ .then((request) => request(this.axios, this.basePath));
1013
1151
  }
1014
1152
  /**
1015
1153
  *
@@ -1022,7 +1160,9 @@ class WorkspaceApi extends base_1.BaseAPI {
1022
1160
  * @memberof WorkspaceApi
1023
1161
  */
1024
1162
  updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
1025
- return (0, exports.WorkspaceApiFp)(this.configuration).updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
1163
+ return (0, exports.WorkspaceApiFp)(this.configuration)
1164
+ .updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
1165
+ .then((request) => request(this.axios, this.basePath));
1026
1166
  }
1027
1167
  }
1028
1168
  exports.WorkspaceApi = WorkspaceApi;