@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.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = void 0;
26
17
  const axios_1 = require("axios");
@@ -43,7 +34,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
43
34
  * @param {*} [options] Override http request option.
44
35
  * @throws {RequiredError}
45
36
  */
46
- createImage: (createImage_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [createImage_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (createImage, xDaytonaOrganizationID, options = {}) {
37
+ createImage: async (createImage, xDaytonaOrganizationID, options = {}) => {
47
38
  // verify required parameter 'createImage' is not null or undefined
48
39
  (0, common_1.assertParamExists)('createImage', 'createImage', createImage);
49
40
  const localVarPath = `/images`;
@@ -56,13 +47,16 @@ const ImagesApiAxiosParamCreator = function (configuration) {
56
47
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
57
48
  const localVarHeaderParameter = {};
58
49
  const localVarQueryParameter = {};
50
+ // authentication bearer required
51
+ // http bearer authentication required
52
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
59
53
  // authentication oauth2 required
60
54
  // oauth required
61
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
55
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
56
+ localVarHeaderParameter['Content-Type'] = 'application/json';
62
57
  if (xDaytonaOrganizationID != null) {
63
58
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
64
59
  }
65
- localVarHeaderParameter['Content-Type'] = 'application/json';
66
60
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
61
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
62
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -71,7 +65,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
71
65
  url: (0, common_1.toPathString)(localVarUrlObj),
72
66
  options: localVarRequestOptions,
73
67
  };
74
- }),
68
+ },
75
69
  /**
76
70
  *
77
71
  * @summary List all images
@@ -81,7 +75,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
81
75
  * @param {*} [options] Override http request option.
82
76
  * @throws {RequiredError}
83
77
  */
84
- getAllImages: (xDaytonaOrganizationID_1, limit_1, page_1, ...args_1) => __awaiter(this, [xDaytonaOrganizationID_1, limit_1, page_1, ...args_1], void 0, function* (xDaytonaOrganizationID, limit, page, options = {}) {
78
+ getAllImages: async (xDaytonaOrganizationID, limit, page, options = {}) => {
85
79
  const localVarPath = `/images`;
86
80
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
81
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -92,9 +86,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
92
86
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
93
87
  const localVarHeaderParameter = {};
94
88
  const localVarQueryParameter = {};
89
+ // authentication bearer required
90
+ // http bearer authentication required
91
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
95
92
  // authentication oauth2 required
96
93
  // oauth required
97
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
94
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
98
95
  if (limit !== undefined) {
99
96
  localVarQueryParameter['limit'] = limit;
100
97
  }
@@ -111,7 +108,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
111
108
  url: (0, common_1.toPathString)(localVarUrlObj),
112
109
  options: localVarRequestOptions,
113
110
  };
114
- }),
111
+ },
115
112
  /**
116
113
  *
117
114
  * @summary Delete image
@@ -120,11 +117,10 @@ const ImagesApiAxiosParamCreator = function (configuration) {
120
117
  * @param {*} [options] Override http request option.
121
118
  * @throws {RequiredError}
122
119
  */
123
- removeImage: (id_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, xDaytonaOrganizationID, options = {}) {
120
+ removeImage: async (id, xDaytonaOrganizationID, options = {}) => {
124
121
  // verify required parameter 'id' is not null or undefined
125
122
  (0, common_1.assertParamExists)('removeImage', 'id', id);
126
- const localVarPath = `/images/{id}`
127
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
123
+ const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
128
124
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
125
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
126
  let baseOptions;
@@ -134,9 +130,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
134
130
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
135
131
  const localVarHeaderParameter = {};
136
132
  const localVarQueryParameter = {};
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
137
136
  // authentication oauth2 required
138
137
  // oauth required
139
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
138
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
140
139
  if (xDaytonaOrganizationID != null) {
141
140
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
142
141
  }
@@ -147,7 +146,50 @@ const ImagesApiAxiosParamCreator = function (configuration) {
147
146
  url: (0, common_1.toPathString)(localVarUrlObj),
148
147
  options: localVarRequestOptions,
149
148
  };
150
- }),
149
+ },
150
+ /**
151
+ *
152
+ * @summary Set image general status
153
+ * @param {string} id Image ID
154
+ * @param {SetImageGeneralStatus} setImageGeneralStatus
155
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ setImageGeneralStatus: async (id, setImageGeneralStatus, xDaytonaOrganizationID, options = {}) => {
160
+ // verify required parameter 'id' is not null or undefined
161
+ (0, common_1.assertParamExists)('setImageGeneralStatus', 'id', id);
162
+ // verify required parameter 'setImageGeneralStatus' is not null or undefined
163
+ (0, common_1.assertParamExists)('setImageGeneralStatus', 'setImageGeneralStatus', setImageGeneralStatus);
164
+ const localVarPath = `/images/{id}/general`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
167
+ let baseOptions;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ }
171
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
172
+ const localVarHeaderParameter = {};
173
+ const localVarQueryParameter = {};
174
+ // authentication bearer required
175
+ // http bearer authentication required
176
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
177
+ // authentication oauth2 required
178
+ // oauth required
179
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ if (xDaytonaOrganizationID != null) {
182
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
183
+ }
184
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
187
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setImageGeneralStatus, localVarRequestOptions, configuration);
188
+ return {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
151
193
  /**
152
194
  *
153
195
  * @summary Toggle image state
@@ -157,13 +199,12 @@ const ImagesApiAxiosParamCreator = function (configuration) {
157
199
  * @param {*} [options] Override http request option.
158
200
  * @throws {RequiredError}
159
201
  */
160
- toggleImageState: (id_1, toggleState_1, xDaytonaOrganizationID_1, ...args_1) => __awaiter(this, [id_1, toggleState_1, xDaytonaOrganizationID_1, ...args_1], void 0, function* (id, toggleState, xDaytonaOrganizationID, options = {}) {
202
+ toggleImageState: async (id, toggleState, xDaytonaOrganizationID, options = {}) => {
161
203
  // verify required parameter 'id' is not null or undefined
162
204
  (0, common_1.assertParamExists)('toggleImageState', 'id', id);
163
205
  // verify required parameter 'toggleState' is not null or undefined
164
206
  (0, common_1.assertParamExists)('toggleImageState', 'toggleState', toggleState);
165
- const localVarPath = `/images/{id}/toggle`
166
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
207
+ const localVarPath = `/images/{id}/toggle`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
167
208
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
209
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
210
  let baseOptions;
@@ -173,13 +214,16 @@ const ImagesApiAxiosParamCreator = function (configuration) {
173
214
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
174
215
  const localVarHeaderParameter = {};
175
216
  const localVarQueryParameter = {};
217
+ // authentication bearer required
218
+ // http bearer authentication required
219
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
176
220
  // authentication oauth2 required
177
221
  // oauth required
178
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
222
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
223
+ localVarHeaderParameter['Content-Type'] = 'application/json';
179
224
  if (xDaytonaOrganizationID != null) {
180
225
  localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
181
226
  }
182
- localVarHeaderParameter['Content-Type'] = 'application/json';
183
227
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
228
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
229
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -188,7 +232,7 @@ const ImagesApiAxiosParamCreator = function (configuration) {
188
232
  url: (0, common_1.toPathString)(localVarUrlObj),
189
233
  options: localVarRequestOptions,
190
234
  };
191
- }),
235
+ },
192
236
  };
193
237
  };
194
238
  exports.ImagesApiAxiosParamCreator = ImagesApiAxiosParamCreator;
@@ -207,14 +251,12 @@ const ImagesApiFp = function (configuration) {
207
251
  * @param {*} [options] Override http request option.
208
252
  * @throws {RequiredError}
209
253
  */
210
- createImage(createImage, xDaytonaOrganizationID, options) {
211
- return __awaiter(this, void 0, void 0, function* () {
212
- var _a, _b, _c;
213
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createImage(createImage, xDaytonaOrganizationID, options);
214
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
215
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.createImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
216
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
217
- });
254
+ async createImage(createImage, xDaytonaOrganizationID, options) {
255
+ var _a, _b, _c;
256
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createImage(createImage, xDaytonaOrganizationID, options);
257
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
258
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.createImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
259
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
218
260
  },
219
261
  /**
220
262
  *
@@ -225,14 +267,12 @@ const ImagesApiFp = function (configuration) {
225
267
  * @param {*} [options] Override http request option.
226
268
  * @throws {RequiredError}
227
269
  */
228
- getAllImages(xDaytonaOrganizationID, limit, page, options) {
229
- return __awaiter(this, void 0, void 0, function* () {
230
- var _a, _b, _c;
231
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getAllImages(xDaytonaOrganizationID, limit, page, options);
232
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
233
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.getAllImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
234
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
235
- });
270
+ async getAllImages(xDaytonaOrganizationID, limit, page, options) {
271
+ var _a, _b, _c;
272
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImages(xDaytonaOrganizationID, limit, page, options);
273
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.getAllImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
275
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
236
276
  },
237
277
  /**
238
278
  *
@@ -242,14 +282,28 @@ const ImagesApiFp = function (configuration) {
242
282
  * @param {*} [options] Override http request option.
243
283
  * @throws {RequiredError}
244
284
  */
245
- removeImage(id, xDaytonaOrganizationID, options) {
246
- return __awaiter(this, void 0, void 0, function* () {
247
- var _a, _b, _c;
248
- const localVarAxiosArgs = yield localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options);
249
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
250
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.removeImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
251
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
252
- });
285
+ async removeImage(id, xDaytonaOrganizationID, options) {
286
+ var _a, _b, _c;
287
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options);
288
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
289
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.removeImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
290
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
291
+ },
292
+ /**
293
+ *
294
+ * @summary Set image general status
295
+ * @param {string} id Image ID
296
+ * @param {SetImageGeneralStatus} setImageGeneralStatus
297
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ async setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
302
+ var _a, _b, _c;
303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options);
304
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
305
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.setImageGeneralStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
306
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
253
307
  },
254
308
  /**
255
309
  *
@@ -260,14 +314,12 @@ const ImagesApiFp = function (configuration) {
260
314
  * @param {*} [options] Override http request option.
261
315
  * @throws {RequiredError}
262
316
  */
263
- toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
264
- return __awaiter(this, void 0, void 0, function* () {
265
- var _a, _b, _c;
266
- const localVarAxiosArgs = yield localVarAxiosParamCreator.toggleImageState(id, toggleState, xDaytonaOrganizationID, options);
267
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
268
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.toggleImageState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
269
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
- });
317
+ async toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
318
+ var _a, _b, _c;
319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.toggleImageState(id, toggleState, xDaytonaOrganizationID, options);
320
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
321
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImagesApi.toggleImageState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
322
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
271
323
  },
272
324
  };
273
325
  };
@@ -288,7 +340,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
288
340
  * @throws {RequiredError}
289
341
  */
290
342
  createImage(createImage, xDaytonaOrganizationID, options) {
291
- return localVarFp.createImage(createImage, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
343
+ return localVarFp
344
+ .createImage(createImage, xDaytonaOrganizationID, options)
345
+ .then((request) => request(axios, basePath));
292
346
  },
293
347
  /**
294
348
  *
@@ -300,7 +354,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
300
354
  * @throws {RequiredError}
301
355
  */
302
356
  getAllImages(xDaytonaOrganizationID, limit, page, options) {
303
- return localVarFp.getAllImages(xDaytonaOrganizationID, limit, page, options).then((request) => request(axios, basePath));
357
+ return localVarFp
358
+ .getAllImages(xDaytonaOrganizationID, limit, page, options)
359
+ .then((request) => request(axios, basePath));
304
360
  },
305
361
  /**
306
362
  *
@@ -313,6 +369,20 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
313
369
  removeImage(id, xDaytonaOrganizationID, options) {
314
370
  return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
315
371
  },
372
+ /**
373
+ *
374
+ * @summary Set image general status
375
+ * @param {string} id Image ID
376
+ * @param {SetImageGeneralStatus} setImageGeneralStatus
377
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
382
+ return localVarFp
383
+ .setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
384
+ .then((request) => request(axios, basePath));
385
+ },
316
386
  /**
317
387
  *
318
388
  * @summary Toggle image state
@@ -323,7 +393,9 @@ const ImagesApiFactory = function (configuration, basePath, axios) {
323
393
  * @throws {RequiredError}
324
394
  */
325
395
  toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
326
- return localVarFp.toggleImageState(id, toggleState, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
396
+ return localVarFp
397
+ .toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
398
+ .then((request) => request(axios, basePath));
327
399
  },
328
400
  };
329
401
  };
@@ -345,7 +417,9 @@ class ImagesApi extends base_1.BaseAPI {
345
417
  * @memberof ImagesApi
346
418
  */
347
419
  createImage(createImage, xDaytonaOrganizationID, options) {
348
- return (0, exports.ImagesApiFp)(this.configuration).createImage(createImage, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
420
+ return (0, exports.ImagesApiFp)(this.configuration)
421
+ .createImage(createImage, xDaytonaOrganizationID, options)
422
+ .then((request) => request(this.axios, this.basePath));
349
423
  }
350
424
  /**
351
425
  *
@@ -358,7 +432,9 @@ class ImagesApi extends base_1.BaseAPI {
358
432
  * @memberof ImagesApi
359
433
  */
360
434
  getAllImages(xDaytonaOrganizationID, limit, page, options) {
361
- return (0, exports.ImagesApiFp)(this.configuration).getAllImages(xDaytonaOrganizationID, limit, page, options).then((request) => request(this.axios, this.basePath));
435
+ return (0, exports.ImagesApiFp)(this.configuration)
436
+ .getAllImages(xDaytonaOrganizationID, limit, page, options)
437
+ .then((request) => request(this.axios, this.basePath));
362
438
  }
363
439
  /**
364
440
  *
@@ -370,7 +446,24 @@ class ImagesApi extends base_1.BaseAPI {
370
446
  * @memberof ImagesApi
371
447
  */
372
448
  removeImage(id, xDaytonaOrganizationID, options) {
373
- return (0, exports.ImagesApiFp)(this.configuration).removeImage(id, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
449
+ return (0, exports.ImagesApiFp)(this.configuration)
450
+ .removeImage(id, xDaytonaOrganizationID, options)
451
+ .then((request) => request(this.axios, this.basePath));
452
+ }
453
+ /**
454
+ *
455
+ * @summary Set image general status
456
+ * @param {string} id Image ID
457
+ * @param {SetImageGeneralStatus} setImageGeneralStatus
458
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ * @memberof ImagesApi
462
+ */
463
+ setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
464
+ return (0, exports.ImagesApiFp)(this.configuration)
465
+ .setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
466
+ .then((request) => request(this.axios, this.basePath));
374
467
  }
375
468
  /**
376
469
  *
@@ -383,7 +476,9 @@ class ImagesApi extends base_1.BaseAPI {
383
476
  * @memberof ImagesApi
384
477
  */
385
478
  toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
386
- return (0, exports.ImagesApiFp)(this.configuration).toggleImageState(id, toggleState, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
479
+ return (0, exports.ImagesApiFp)(this.configuration)
480
+ .toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
481
+ .then((request) => request(this.axios, this.basePath));
387
482
  }
388
483
  }
389
484
  exports.ImagesApi = ImagesApi;
@@ -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.NodesApi = exports.NodesApiFactory = exports.NodesApiFp = exports.NodesApiAxiosParamCreator = void 0;
26
17
  const axios_1 = require("axios");
@@ -42,7 +33,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
42
33
  * @param {*} [options] Override http request option.
43
34
  * @throws {RequiredError}
44
35
  */
45
- createNode: (createNode_1, ...args_1) => __awaiter(this, [createNode_1, ...args_1], void 0, function* (createNode, options = {}) {
36
+ createNode: async (createNode, options = {}) => {
46
37
  // verify required parameter 'createNode' is not null or undefined
47
38
  (0, common_1.assertParamExists)('createNode', 'createNode', createNode);
48
39
  const localVarPath = `/nodes`;
@@ -55,9 +46,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
55
46
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
56
47
  const localVarHeaderParameter = {};
57
48
  const localVarQueryParameter = {};
49
+ // authentication bearer required
50
+ // http bearer authentication required
51
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
58
52
  // authentication oauth2 required
59
53
  // oauth required
60
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
54
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
61
55
  localVarHeaderParameter['Content-Type'] = 'application/json';
62
56
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
63
57
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -67,14 +61,14 @@ const NodesApiAxiosParamCreator = function (configuration) {
67
61
  url: (0, common_1.toPathString)(localVarUrlObj),
68
62
  options: localVarRequestOptions,
69
63
  };
70
- }),
64
+ },
71
65
  /**
72
66
  *
73
67
  * @summary List all nodes
74
68
  * @param {*} [options] Override http request option.
75
69
  * @throws {RequiredError}
76
70
  */
77
- listNodes: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
71
+ listNodes: async (options = {}) => {
78
72
  const localVarPath = `/nodes`;
79
73
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
74
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -85,9 +79,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
85
79
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
86
80
  const localVarHeaderParameter = {};
87
81
  const localVarQueryParameter = {};
82
+ // authentication bearer required
83
+ // http bearer authentication required
84
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
88
85
  // authentication oauth2 required
89
86
  // oauth required
90
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
87
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
91
88
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
92
89
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
90
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -95,7 +92,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
95
92
  url: (0, common_1.toPathString)(localVarUrlObj),
96
93
  options: localVarRequestOptions,
97
94
  };
98
- }),
95
+ },
99
96
  /**
100
97
  *
101
98
  * @summary Update node scheduling status
@@ -103,11 +100,10 @@ const NodesApiAxiosParamCreator = function (configuration) {
103
100
  * @param {*} [options] Override http request option.
104
101
  * @throws {RequiredError}
105
102
  */
106
- updateNodeScheduling: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
103
+ updateNodeScheduling: async (id, options = {}) => {
107
104
  // verify required parameter 'id' is not null or undefined
108
105
  (0, common_1.assertParamExists)('updateNodeScheduling', 'id', id);
109
- const localVarPath = `/nodes/{id}/scheduling`
110
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
106
+ const localVarPath = `/nodes/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
111
107
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
108
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
109
  let baseOptions;
@@ -117,9 +113,12 @@ const NodesApiAxiosParamCreator = function (configuration) {
117
113
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
118
114
  const localVarHeaderParameter = {};
119
115
  const localVarQueryParameter = {};
116
+ // authentication bearer required
117
+ // http bearer authentication required
118
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
120
119
  // authentication oauth2 required
121
120
  // oauth required
122
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
121
+ await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
123
122
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
124
123
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
125
124
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -127,7 +126,7 @@ const NodesApiAxiosParamCreator = function (configuration) {
127
126
  url: (0, common_1.toPathString)(localVarUrlObj),
128
127
  options: localVarRequestOptions,
129
128
  };
130
- }),
129
+ },
131
130
  };
132
131
  };
133
132
  exports.NodesApiAxiosParamCreator = NodesApiAxiosParamCreator;
@@ -145,14 +144,12 @@ const NodesApiFp = function (configuration) {
145
144
  * @param {*} [options] Override http request option.
146
145
  * @throws {RequiredError}
147
146
  */
148
- createNode(createNode, options) {
149
- return __awaiter(this, void 0, void 0, function* () {
150
- var _a, _b, _c;
151
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createNode(createNode, options);
152
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
153
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.createNode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
154
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
155
- });
147
+ async createNode(createNode, options) {
148
+ var _a, _b, _c;
149
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createNode(createNode, options);
150
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
151
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.createNode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
152
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
156
153
  },
157
154
  /**
158
155
  *
@@ -160,14 +157,12 @@ const NodesApiFp = function (configuration) {
160
157
  * @param {*} [options] Override http request option.
161
158
  * @throws {RequiredError}
162
159
  */
163
- listNodes(options) {
164
- return __awaiter(this, void 0, void 0, function* () {
165
- var _a, _b, _c;
166
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listNodes(options);
167
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
168
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.listNodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
169
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
170
- });
160
+ async listNodes(options) {
161
+ var _a, _b, _c;
162
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNodes(options);
163
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
164
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.listNodes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
165
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
171
166
  },
172
167
  /**
173
168
  *
@@ -176,14 +171,12 @@ const NodesApiFp = function (configuration) {
176
171
  * @param {*} [options] Override http request option.
177
172
  * @throws {RequiredError}
178
173
  */
179
- updateNodeScheduling(id, options) {
180
- return __awaiter(this, void 0, void 0, function* () {
181
- var _a, _b, _c;
182
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateNodeScheduling(id, options);
183
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
184
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.updateNodeScheduling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
185
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
186
- });
174
+ async updateNodeScheduling(id, options) {
175
+ var _a, _b, _c;
176
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateNodeScheduling(id, options);
177
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
178
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['NodesApi.updateNodeScheduling']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
179
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
187
180
  },
188
181
  };
189
182
  };
@@ -243,7 +236,9 @@ class NodesApi extends base_1.BaseAPI {
243
236
  * @memberof NodesApi
244
237
  */
245
238
  createNode(createNode, options) {
246
- return (0, exports.NodesApiFp)(this.configuration).createNode(createNode, options).then((request) => request(this.axios, this.basePath));
239
+ return (0, exports.NodesApiFp)(this.configuration)
240
+ .createNode(createNode, options)
241
+ .then((request) => request(this.axios, this.basePath));
247
242
  }
248
243
  /**
249
244
  *
@@ -253,7 +248,9 @@ class NodesApi extends base_1.BaseAPI {
253
248
  * @memberof NodesApi
254
249
  */
255
250
  listNodes(options) {
256
- return (0, exports.NodesApiFp)(this.configuration).listNodes(options).then((request) => request(this.axios, this.basePath));
251
+ return (0, exports.NodesApiFp)(this.configuration)
252
+ .listNodes(options)
253
+ .then((request) => request(this.axios, this.basePath));
257
254
  }
258
255
  /**
259
256
  *
@@ -264,7 +261,9 @@ class NodesApi extends base_1.BaseAPI {
264
261
  * @memberof NodesApi
265
262
  */
266
263
  updateNodeScheduling(id, options) {
267
- return (0, exports.NodesApiFp)(this.configuration).updateNodeScheduling(id, options).then((request) => request(this.axios, this.basePath));
264
+ return (0, exports.NodesApiFp)(this.configuration)
265
+ .updateNodeScheduling(id, options)
266
+ .then((request) => request(this.axios, this.basePath));
268
267
  }
269
268
  }
270
269
  exports.NodesApi = NodesApi;