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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/package.json +5 -8
  2. package/src/api/api-keys-api.d.ts +220 -0
  3. package/src/api/api-keys-api.js +428 -0
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +299 -0
  6. package/src/api/docker-registry-api.js +592 -0
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/src/api/images-api.d.ts +317 -0
  9. package/src/api/images-api.js +624 -0
  10. package/src/api/images-api.js.map +1 -0
  11. package/src/api/nodes-api.d.ts +136 -0
  12. package/src/api/nodes-api.js +261 -0
  13. package/src/api/nodes-api.js.map +1 -0
  14. package/src/api/object-storage-api.d.ts +74 -0
  15. package/src/api/object-storage-api.js +127 -0
  16. package/src/api/object-storage-api.js.map +1 -0
  17. package/src/api/organizations-api.d.ts +927 -0
  18. package/src/api/organizations-api.js +1891 -0
  19. package/src/api/organizations-api.js.map +1 -0
  20. package/src/api/preview-api.d.ts +143 -0
  21. package/src/api/preview-api.js +265 -0
  22. package/src/api/preview-api.js.map +1 -0
  23. package/src/api/toolbox-api.d.ts +1599 -0
  24. package/src/api/toolbox-api.js +3250 -0
  25. package/src/api/toolbox-api.js.map +1 -0
  26. package/src/api/users-api.d.ts +166 -0
  27. package/src/api/users-api.js +311 -0
  28. package/src/api/users-api.js.map +1 -0
  29. package/src/api/volumes-api.d.ts +227 -0
  30. package/src/api/volumes-api.js +447 -0
  31. package/src/api/volumes-api.js.map +1 -0
  32. package/src/api/workspace-api.d.ts +516 -0
  33. package/src/api/workspace-api.js +1043 -0
  34. package/src/api/workspace-api.js.map +1 -0
  35. package/src/api.d.ts +22 -0
  36. package/src/api.js +28 -0
  37. package/src/api.js.map +1 -0
  38. package/src/base.d.ts +66 -0
  39. package/src/base.js +68 -0
  40. package/src/base.js.map +1 -0
  41. package/src/common.d.ts +65 -0
  42. package/src/common.js +146 -0
  43. package/src/common.js.map +1 -0
  44. package/src/configuration.d.ts +91 -0
  45. package/src/configuration.js +105 -0
  46. package/src/configuration.js.map +1 -0
  47. package/src/index.d.ts +14 -0
  48. package/src/index.js +20 -0
  49. package/src/index.js.map +1 -0
  50. package/src/models/api-key-list.d.ts +54 -0
  51. package/src/models/api-key-list.js +28 -0
  52. package/src/models/api-key-list.js.map +1 -0
  53. package/src/models/api-key-response.d.ts +54 -0
  54. package/src/models/api-key-response.js +28 -0
  55. package/src/models/api-key-response.js.map +1 -0
  56. package/src/models/build-image.d.ts +31 -0
  57. package/src/models/build-image.js +16 -0
  58. package/src/models/build-image.js.map +1 -0
  59. package/src/models/{command.ts → command.d.ts} +18 -21
  60. package/src/models/command.js +16 -0
  61. package/src/models/command.js.map +1 -0
  62. package/src/models/{completion-context.ts → completion-context.d.ts} +12 -15
  63. package/src/models/completion-context.js +16 -0
  64. package/src/models/completion-context.js.map +1 -0
  65. package/src/models/completion-item.d.ts +60 -0
  66. package/src/models/completion-item.js +16 -0
  67. package/src/models/completion-item.js.map +1 -0
  68. package/src/models/{completion-list.ts → completion-list.d.ts} +13 -19
  69. package/src/models/completion-list.js +16 -0
  70. package/src/models/completion-list.js.map +1 -0
  71. package/src/models/create-api-key.d.ts +42 -0
  72. package/src/models/create-api-key.js +28 -0
  73. package/src/models/create-api-key.js.map +1 -0
  74. package/src/models/{create-build-info.ts → create-build-info.d.ts} +12 -15
  75. package/src/models/create-build-info.js +16 -0
  76. package/src/models/create-build-info.js.map +1 -0
  77. package/src/models/create-docker-registry.d.ts +67 -0
  78. package/src/models/create-docker-registry.js +23 -0
  79. package/src/models/create-docker-registry.js.map +1 -0
  80. package/src/models/create-image.d.ts +36 -0
  81. package/src/models/create-image.js +16 -0
  82. package/src/models/create-image.js.map +1 -0
  83. package/src/models/create-node.d.ts +96 -0
  84. package/src/models/create-node.js +27 -0
  85. package/src/models/create-node.js.map +1 -0
  86. package/src/models/create-organization-invitation.d.ts +47 -0
  87. package/src/models/create-organization-invitation.js +21 -0
  88. package/src/models/create-organization-invitation.js.map +1 -0
  89. package/src/models/create-organization-quota.d.ts +84 -0
  90. package/src/models/create-organization-quota.js +16 -0
  91. package/src/models/create-organization-quota.js.map +1 -0
  92. package/src/models/create-organization-role.d.ts +48 -0
  93. package/src/models/create-organization-role.js +28 -0
  94. package/src/models/create-organization-role.js.map +1 -0
  95. package/src/models/{create-organization.ts → create-organization.d.ts} +6 -9
  96. package/src/models/create-organization.js +16 -0
  97. package/src/models/create-organization.js.map +1 -0
  98. package/src/models/{create-session-request.ts → create-session-request.d.ts} +6 -9
  99. package/src/models/create-session-request.js +16 -0
  100. package/src/models/create-session-request.js.map +1 -0
  101. package/src/models/create-user.d.ts +60 -0
  102. package/src/models/create-user.js +21 -0
  103. package/src/models/create-user.js.map +1 -0
  104. package/src/models/{create-volume.ts → create-volume.d.ts} +6 -9
  105. package/src/models/create-volume.js +16 -0
  106. package/src/models/create-volume.js.map +1 -0
  107. package/src/models/create-workspace.d.ts +120 -0
  108. package/src/models/create-workspace.js +27 -0
  109. package/src/models/create-workspace.js.map +1 -0
  110. package/src/models/docker-registry.d.ts +73 -0
  111. package/src/models/docker-registry.js +23 -0
  112. package/src/models/docker-registry.js.map +1 -0
  113. package/src/models/{execute-request.ts → execute-request.d.ts} +18 -21
  114. package/src/models/execute-request.js +16 -0
  115. package/src/models/execute-request.js.map +1 -0
  116. package/src/models/{execute-response.ts → execute-response.d.ts} +12 -15
  117. package/src/models/execute-response.js +16 -0
  118. package/src/models/execute-response.js.map +1 -0
  119. package/src/models/file-info.d.ts +66 -0
  120. package/src/models/file-info.js +16 -0
  121. package/src/models/file-info.js.map +1 -0
  122. package/src/models/{file-status.ts → file-status.d.ts} +24 -27
  123. package/src/models/file-status.js +16 -0
  124. package/src/models/file-status.js.map +1 -0
  125. package/src/models/{git-add-request.ts → git-add-request.d.ts} +12 -15
  126. package/src/models/git-add-request.js +16 -0
  127. package/src/models/git-add-request.js.map +1 -0
  128. package/src/models/{git-branch-request.ts → git-branch-request.d.ts} +12 -15
  129. package/src/models/git-branch-request.js +16 -0
  130. package/src/models/git-branch-request.js.map +1 -0
  131. package/src/models/git-clone-request.d.ts +54 -0
  132. package/src/models/git-clone-request.js +16 -0
  133. package/src/models/git-clone-request.js.map +1 -0
  134. package/src/models/git-commit-info.d.ts +48 -0
  135. package/src/models/git-commit-info.js +16 -0
  136. package/src/models/git-commit-info.js.map +1 -0
  137. package/src/models/git-commit-request.d.ts +42 -0
  138. package/src/models/git-commit-request.js +16 -0
  139. package/src/models/git-commit-request.js.map +1 -0
  140. package/src/models/{git-commit-response.ts → git-commit-response.d.ts} +6 -9
  141. package/src/models/git-commit-response.js +16 -0
  142. package/src/models/git-commit-response.js.map +1 -0
  143. package/src/models/{git-repo-request.ts → git-repo-request.d.ts} +18 -21
  144. package/src/models/git-repo-request.js +16 -0
  145. package/src/models/git-repo-request.js.map +1 -0
  146. package/src/models/git-status.d.ts +49 -0
  147. package/src/models/git-status.js +16 -0
  148. package/src/models/git-status.js.map +1 -0
  149. package/src/models/image-dto.d.ts +91 -0
  150. package/src/models/image-dto.js +16 -0
  151. package/src/models/image-dto.js.map +1 -0
  152. package/src/models/{image-state.ts → image-state.d.ts} +12 -17
  153. package/src/models/image-state.js +33 -0
  154. package/src/models/image-state.js.map +1 -0
  155. package/src/models/index.d.ts +77 -0
  156. package/src/models/index.js +81 -0
  157. package/src/models/index.js.map +1 -0
  158. package/src/models/{list-branch-response.ts → list-branch-response.d.ts} +6 -9
  159. package/src/models/list-branch-response.js +16 -0
  160. package/src/models/list-branch-response.js.map +1 -0
  161. package/src/models/lsp-completion-params.d.ts +50 -0
  162. package/src/models/lsp-completion-params.js +16 -0
  163. package/src/models/lsp-completion-params.js.map +1 -0
  164. package/src/models/{lsp-document-request.ts → lsp-document-request.d.ts} +18 -21
  165. package/src/models/lsp-document-request.js +16 -0
  166. package/src/models/lsp-document-request.js.map +1 -0
  167. package/src/models/{lsp-location.ts → lsp-location.d.ts} +13 -19
  168. package/src/models/lsp-location.js +16 -0
  169. package/src/models/lsp-location.js.map +1 -0
  170. package/src/models/{lsp-server-request.ts → lsp-server-request.d.ts} +12 -15
  171. package/src/models/lsp-server-request.js +16 -0
  172. package/src/models/lsp-server-request.js.map +1 -0
  173. package/src/models/lsp-symbol.d.ts +37 -0
  174. package/src/models/lsp-symbol.js +16 -0
  175. package/src/models/lsp-symbol.js.map +1 -0
  176. package/src/models/{match.ts → match.d.ts} +18 -21
  177. package/src/models/match.js +16 -0
  178. package/src/models/match.js.map +1 -0
  179. package/src/models/organization-invitation.d.ts +97 -0
  180. package/src/models/organization-invitation.js +27 -0
  181. package/src/models/organization-invitation.js.map +1 -0
  182. package/src/models/organization-role.d.ts +72 -0
  183. package/src/models/organization-role.js +28 -0
  184. package/src/models/organization-role.js.map +1 -0
  185. package/src/models/{organization-suspension.ts → organization-suspension.d.ts} +12 -15
  186. package/src/models/organization-suspension.js +16 -0
  187. package/src/models/organization-suspension.js.map +1 -0
  188. package/src/models/organization-user.d.ts +72 -0
  189. package/src/models/organization-user.js +21 -0
  190. package/src/models/organization-user.js.map +1 -0
  191. package/src/models/organization.d.ts +78 -0
  192. package/src/models/organization.js +16 -0
  193. package/src/models/organization.js.map +1 -0
  194. package/src/models/paginated-images-dto.d.ts +43 -0
  195. package/src/models/paginated-images-dto.js +16 -0
  196. package/src/models/paginated-images-dto.js.map +1 -0
  197. package/src/models/{port-preview-url.ts → port-preview-url.d.ts} +12 -15
  198. package/src/models/port-preview-url.js +16 -0
  199. package/src/models/port-preview-url.js.map +1 -0
  200. package/src/models/{position.ts → position.d.ts} +12 -15
  201. package/src/models/position.js +16 -0
  202. package/src/models/position.js.map +1 -0
  203. package/src/models/{project-dir-response.ts → project-dir-response.d.ts} +6 -9
  204. package/src/models/project-dir-response.js +16 -0
  205. package/src/models/project-dir-response.js.map +1 -0
  206. package/src/models/{range.ts → range.d.ts} +13 -19
  207. package/src/models/range.js +16 -0
  208. package/src/models/range.js.map +1 -0
  209. package/src/models/registry-push-access-dto.d.ts +54 -0
  210. package/src/models/registry-push-access-dto.js +16 -0
  211. package/src/models/registry-push-access-dto.js.map +1 -0
  212. package/src/models/{replace-request.ts → replace-request.d.ts} +18 -21
  213. package/src/models/replace-request.js +16 -0
  214. package/src/models/replace-request.js.map +1 -0
  215. package/src/models/{replace-result.ts → replace-result.d.ts} +18 -21
  216. package/src/models/replace-result.js +16 -0
  217. package/src/models/replace-result.js.map +1 -0
  218. package/src/models/{search-files-response.ts → search-files-response.d.ts} +6 -9
  219. package/src/models/search-files-response.js +16 -0
  220. package/src/models/search-files-response.js.map +1 -0
  221. package/src/models/session-execute-request.d.ts +37 -0
  222. package/src/models/session-execute-request.js +16 -0
  223. package/src/models/session-execute-request.js.map +1 -0
  224. package/src/models/session-execute-response.d.ts +36 -0
  225. package/src/models/session-execute-response.js +16 -0
  226. package/src/models/session-execute-response.js.map +1 -0
  227. package/src/models/session.d.ts +31 -0
  228. package/src/models/session.js +16 -0
  229. package/src/models/session.js.map +1 -0
  230. package/src/models/{set-image-general-status.ts → set-image-general-status.d.ts} +6 -9
  231. package/src/models/set-image-general-status.js +16 -0
  232. package/src/models/set-image-general-status.js.map +1 -0
  233. package/src/models/storage-access-dto.d.ts +54 -0
  234. package/src/models/storage-access-dto.js +16 -0
  235. package/src/models/storage-access-dto.js.map +1 -0
  236. package/src/models/{toggle-state.ts → toggle-state.d.ts} +6 -9
  237. package/src/models/toggle-state.js +16 -0
  238. package/src/models/toggle-state.js.map +1 -0
  239. package/src/models/{update-assigned-organization-roles.ts → update-assigned-organization-roles.d.ts} +6 -9
  240. package/src/models/update-assigned-organization-roles.js +16 -0
  241. package/src/models/update-assigned-organization-roles.js.map +1 -0
  242. package/src/models/{update-docker-registry.ts → update-docker-registry.d.ts} +18 -21
  243. package/src/models/update-docker-registry.js +16 -0
  244. package/src/models/update-docker-registry.js.map +1 -0
  245. package/src/models/update-organization-invitation.d.ts +41 -0
  246. package/src/models/update-organization-invitation.js +21 -0
  247. package/src/models/update-organization-invitation.js.map +1 -0
  248. package/src/models/update-organization-member-role.d.ts +29 -0
  249. package/src/models/update-organization-member-role.js +21 -0
  250. package/src/models/update-organization-member-role.js.map +1 -0
  251. package/src/models/update-organization-quota.d.ts +84 -0
  252. package/src/models/update-organization-quota.js +16 -0
  253. package/src/models/update-organization-quota.js.map +1 -0
  254. package/src/models/update-organization-role.d.ts +48 -0
  255. package/src/models/update-organization-role.js +28 -0
  256. package/src/models/update-organization-role.js.map +1 -0
  257. package/src/models/usage-overview.d.ts +108 -0
  258. package/src/models/usage-overview.js +16 -0
  259. package/src/models/usage-overview.js.map +1 -0
  260. package/src/models/{user-public-key.ts → user-public-key.d.ts} +12 -15
  261. package/src/models/user-public-key.js +16 -0
  262. package/src/models/user-public-key.js.map +1 -0
  263. package/src/models/user.d.ts +43 -0
  264. package/src/{index.ts → models/user.js} +3 -4
  265. package/src/models/user.js.map +1 -0
  266. package/src/models/volume-dto.d.ts +70 -0
  267. package/src/models/volume-dto.js +26 -0
  268. package/src/models/volume-dto.js.map +1 -0
  269. package/src/models/workspace-info.d.ts +37 -0
  270. package/src/models/workspace-info.js +16 -0
  271. package/src/models/workspace-info.js.map +1 -0
  272. package/src/models/{workspace-labels.ts → workspace-labels.d.ts} +8 -9
  273. package/src/models/workspace-labels.js +16 -0
  274. package/src/models/workspace-labels.js.map +1 -0
  275. package/src/models/workspace-state.d.ts +34 -0
  276. package/src/models/workspace-state.js +39 -0
  277. package/src/models/workspace-state.js.map +1 -0
  278. package/src/models/{workspace-volume.ts → workspace-volume.d.ts} +12 -15
  279. package/src/models/workspace-volume.js +16 -0
  280. package/src/models/workspace-volume.js.map +1 -0
  281. package/src/models/workspace.d.ts +154 -0
  282. package/src/models/workspace.js +24 -0
  283. package/src/models/workspace.js.map +1 -0
  284. package/project.json +0 -55
  285. package/src/.openapi-generator/FILES +0 -97
  286. package/src/.openapi-generator/VERSION +0 -1
  287. package/src/.openapi-generator-ignore +0 -23
  288. package/src/api/api-keys-api.ts +0 -553
  289. package/src/api/docker-registry-api.ts +0 -800
  290. package/src/api/images-api.ts +0 -957
  291. package/src/api/nodes-api.ts +0 -319
  292. package/src/api/object-storage-api.ts +0 -159
  293. package/src/api/organizations-api.ts +0 -2641
  294. package/src/api/preview-api.ts +0 -328
  295. package/src/api/toolbox-api.ts +0 -4879
  296. package/src/api/users-api.ts +0 -382
  297. package/src/api/volumes-api.ts +0 -594
  298. package/src/api/workspace-api.ts +0 -1610
  299. package/src/api.ts +0 -25
  300. package/src/base.ts +0 -91
  301. package/src/common.ts +0 -162
  302. package/src/configuration.ts +0 -122
  303. package/src/git_push.sh +0 -57
  304. package/src/models/api-key-list.ts +0 -59
  305. package/src/models/api-key-response.ts +0 -60
  306. package/src/models/build-image.ts +0 -37
  307. package/src/models/build-info.ts +0 -51
  308. package/src/models/completion-item.ts +0 -63
  309. package/src/models/create-api-key.ts +0 -47
  310. package/src/models/create-docker-registry.ts +0 -73
  311. package/src/models/create-image.ts +0 -39
  312. package/src/models/create-node.ts +0 -102
  313. package/src/models/create-organization-invitation.ts +0 -53
  314. package/src/models/create-organization-quota.ts +0 -87
  315. package/src/models/create-organization-role.ts +0 -54
  316. package/src/models/create-user.ts +0 -68
  317. package/src/models/create-workspace.ts +0 -127
  318. package/src/models/docker-registry.ts +0 -79
  319. package/src/models/file-info.ts +0 -69
  320. package/src/models/get-build-logs400-response.ts +0 -33
  321. package/src/models/git-clone-request.ts +0 -57
  322. package/src/models/git-commit-info.ts +0 -51
  323. package/src/models/git-commit-request.ts +0 -45
  324. package/src/models/git-status.ts +0 -55
  325. package/src/models/image-dto.ts +0 -97
  326. package/src/models/index.ts +0 -77
  327. package/src/models/lsp-completion-params.ts +0 -58
  328. package/src/models/lsp-symbol.ts +0 -43
  329. package/src/models/organization-invitation.ts +0 -108
  330. package/src/models/organization-role.ts +0 -78
  331. package/src/models/organization-user.ts +0 -80
  332. package/src/models/organization.ts +0 -81
  333. package/src/models/paginated-images-dto.ts +0 -49
  334. package/src/models/registry-push-access-dto.ts +0 -57
  335. package/src/models/session-execute-request.ts +0 -40
  336. package/src/models/session-execute-response.ts +0 -39
  337. package/src/models/session.ts +0 -37
  338. package/src/models/storage-access-dto.ts +0 -63
  339. package/src/models/update-organization-invitation.ts +0 -47
  340. package/src/models/update-organization-member-role.ts +0 -35
  341. package/src/models/update-organization-quota.ts +0 -87
  342. package/src/models/update-organization-role.ts +0 -54
  343. package/src/models/usage-overview.ts +0 -111
  344. package/src/models/user.ts +0 -49
  345. package/src/models/volume-dto.ts +0 -75
  346. package/src/models/workspace-info.ts +0 -40
  347. package/src/models/workspace-state.ts +0 -39
  348. package/src/models/workspace.ts +0 -162
  349. package/tsconfig.json +0 -20
  350. package/tsconfig.lib.json +0 -9
@@ -1,957 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import type { Configuration } from '../configuration'
16
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
17
- import globalAxios from 'axios'
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import {
21
- DUMMY_BASE_URL,
22
- assertParamExists,
23
- setApiKeyToObject,
24
- setBasicAuthToObject,
25
- setBearerAuthToObject,
26
- setOAuthToObject,
27
- setSearchParams,
28
- serializeDataIfNeeded,
29
- toPathString,
30
- createRequestFunction,
31
- } from '../common'
32
- // @ts-ignore
33
- import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
34
- // @ts-ignore
35
- import type { BuildImage } from '../models'
36
- // @ts-ignore
37
- import type { CreateImage } from '../models'
38
- // @ts-ignore
39
- import type { ImageDto } from '../models'
40
- // @ts-ignore
41
- import type { PaginatedImagesDto } from '../models'
42
- // @ts-ignore
43
- import type { SetImageGeneralStatus } from '../models'
44
- // @ts-ignore
45
- import type { ToggleState } from '../models'
46
- /**
47
- * ImagesApi - axios parameter creator
48
- * @export
49
- */
50
- export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
51
- return {
52
- /**
53
- *
54
- * @summary Build a Docker image
55
- * @param {BuildImage} buildImage
56
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
57
- * @param {*} [options] Override http request option.
58
- * @throws {RequiredError}
59
- */
60
- buildImage: async (
61
- buildImage: BuildImage,
62
- xDaytonaOrganizationID?: string,
63
- options: RawAxiosRequestConfig = {},
64
- ): Promise<RequestArgs> => {
65
- // verify required parameter 'buildImage' is not null or undefined
66
- assertParamExists('buildImage', 'buildImage', buildImage)
67
- const localVarPath = `/images/build`
68
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
69
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
70
- let baseOptions
71
- if (configuration) {
72
- baseOptions = configuration.baseOptions
73
- }
74
-
75
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
76
- const localVarHeaderParameter = {} as any
77
- const localVarQueryParameter = {} as any
78
-
79
- // authentication bearer required
80
- // http bearer authentication required
81
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
82
-
83
- // authentication oauth2 required
84
-
85
- localVarHeaderParameter['Content-Type'] = 'application/json'
86
-
87
- if (xDaytonaOrganizationID != null) {
88
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
89
- }
90
- setSearchParams(localVarUrlObj, localVarQueryParameter)
91
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
92
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
93
- localVarRequestOptions.data = serializeDataIfNeeded(buildImage, localVarRequestOptions, configuration)
94
-
95
- return {
96
- url: toPathString(localVarUrlObj),
97
- options: localVarRequestOptions,
98
- }
99
- },
100
- /**
101
- *
102
- * @summary Create a new image
103
- * @param {CreateImage} createImage
104
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- */
108
- createImage: async (
109
- createImage: CreateImage,
110
- xDaytonaOrganizationID?: string,
111
- options: RawAxiosRequestConfig = {},
112
- ): Promise<RequestArgs> => {
113
- // verify required parameter 'createImage' is not null or undefined
114
- assertParamExists('createImage', 'createImage', createImage)
115
- const localVarPath = `/images`
116
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
118
- let baseOptions
119
- if (configuration) {
120
- baseOptions = configuration.baseOptions
121
- }
122
-
123
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
124
- const localVarHeaderParameter = {} as any
125
- const localVarQueryParameter = {} as any
126
-
127
- // authentication bearer required
128
- // http bearer authentication required
129
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
130
-
131
- // authentication oauth2 required
132
-
133
- localVarHeaderParameter['Content-Type'] = 'application/json'
134
-
135
- if (xDaytonaOrganizationID != null) {
136
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
137
- }
138
- setSearchParams(localVarUrlObj, localVarQueryParameter)
139
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
140
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
141
- localVarRequestOptions.data = serializeDataIfNeeded(createImage, localVarRequestOptions, configuration)
142
-
143
- return {
144
- url: toPathString(localVarUrlObj),
145
- options: localVarRequestOptions,
146
- }
147
- },
148
- /**
149
- *
150
- * @summary List all images
151
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
152
- * @param {number} [limit] Number of items per page
153
- * @param {number} [page] Page number
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- */
157
- getAllImages: async (
158
- xDaytonaOrganizationID?: string,
159
- limit?: number,
160
- page?: number,
161
- options: RawAxiosRequestConfig = {},
162
- ): Promise<RequestArgs> => {
163
- const localVarPath = `/images`
164
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
166
- let baseOptions
167
- if (configuration) {
168
- baseOptions = configuration.baseOptions
169
- }
170
-
171
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
172
- const localVarHeaderParameter = {} as any
173
- const localVarQueryParameter = {} as any
174
-
175
- // authentication bearer required
176
- // http bearer authentication required
177
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
-
179
- // authentication oauth2 required
180
-
181
- if (limit !== undefined) {
182
- localVarQueryParameter['limit'] = limit
183
- }
184
-
185
- if (page !== undefined) {
186
- localVarQueryParameter['page'] = page
187
- }
188
-
189
- if (xDaytonaOrganizationID != null) {
190
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
191
- }
192
- setSearchParams(localVarUrlObj, localVarQueryParameter)
193
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
194
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
195
-
196
- return {
197
- url: toPathString(localVarUrlObj),
198
- options: localVarRequestOptions,
199
- }
200
- },
201
- /**
202
- *
203
- * @summary Get image by ID
204
- * @param {string} id Image ID
205
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
206
- * @param {*} [options] Override http request option.
207
- * @throws {RequiredError}
208
- */
209
- getImage: async (
210
- id: string,
211
- xDaytonaOrganizationID?: string,
212
- options: RawAxiosRequestConfig = {},
213
- ): Promise<RequestArgs> => {
214
- // verify required parameter 'id' is not null or undefined
215
- assertParamExists('getImage', 'id', id)
216
- const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
217
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
219
- let baseOptions
220
- if (configuration) {
221
- baseOptions = configuration.baseOptions
222
- }
223
-
224
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
225
- const localVarHeaderParameter = {} as any
226
- const localVarQueryParameter = {} as any
227
-
228
- // authentication bearer required
229
- // http bearer authentication required
230
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
231
-
232
- // authentication oauth2 required
233
-
234
- if (xDaytonaOrganizationID != null) {
235
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
236
- }
237
- setSearchParams(localVarUrlObj, localVarQueryParameter)
238
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
239
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
240
-
241
- return {
242
- url: toPathString(localVarUrlObj),
243
- options: localVarRequestOptions,
244
- }
245
- },
246
- /**
247
- *
248
- * @summary Get image build logs
249
- * @param {string} id Image ID
250
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
251
- * @param {*} [options] Override http request option.
252
- * @throws {RequiredError}
253
- */
254
- getImageBuildLogs: async (
255
- id: string,
256
- xDaytonaOrganizationID?: string,
257
- options: RawAxiosRequestConfig = {},
258
- ): Promise<RequestArgs> => {
259
- // verify required parameter 'id' is not null or undefined
260
- assertParamExists('getImageBuildLogs', 'id', id)
261
- const localVarPath = `/images/{id}/build-logs`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
262
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
264
- let baseOptions
265
- if (configuration) {
266
- baseOptions = configuration.baseOptions
267
- }
268
-
269
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
270
- const localVarHeaderParameter = {} as any
271
- const localVarQueryParameter = {} as any
272
-
273
- // authentication bearer required
274
- // http bearer authentication required
275
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
276
-
277
- // authentication oauth2 required
278
-
279
- if (xDaytonaOrganizationID != null) {
280
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
281
- }
282
- setSearchParams(localVarUrlObj, localVarQueryParameter)
283
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
284
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
285
-
286
- return {
287
- url: toPathString(localVarUrlObj),
288
- options: localVarRequestOptions,
289
- }
290
- },
291
- /**
292
- *
293
- * @summary Delete image
294
- * @param {string} id Image ID
295
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
296
- * @param {*} [options] Override http request option.
297
- * @throws {RequiredError}
298
- */
299
- removeImage: async (
300
- id: string,
301
- xDaytonaOrganizationID?: string,
302
- options: RawAxiosRequestConfig = {},
303
- ): Promise<RequestArgs> => {
304
- // verify required parameter 'id' is not null or undefined
305
- assertParamExists('removeImage', 'id', id)
306
- const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
307
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
308
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
309
- let baseOptions
310
- if (configuration) {
311
- baseOptions = configuration.baseOptions
312
- }
313
-
314
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
315
- const localVarHeaderParameter = {} as any
316
- const localVarQueryParameter = {} as any
317
-
318
- // authentication bearer required
319
- // http bearer authentication required
320
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
321
-
322
- // authentication oauth2 required
323
-
324
- if (xDaytonaOrganizationID != null) {
325
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
326
- }
327
- setSearchParams(localVarUrlObj, localVarQueryParameter)
328
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
329
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
330
-
331
- return {
332
- url: toPathString(localVarUrlObj),
333
- options: localVarRequestOptions,
334
- }
335
- },
336
- /**
337
- *
338
- * @summary Set image general status
339
- * @param {string} id Image ID
340
- * @param {SetImageGeneralStatus} setImageGeneralStatus
341
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- setImageGeneralStatus: async (
346
- id: string,
347
- setImageGeneralStatus: SetImageGeneralStatus,
348
- xDaytonaOrganizationID?: string,
349
- options: RawAxiosRequestConfig = {},
350
- ): Promise<RequestArgs> => {
351
- // verify required parameter 'id' is not null or undefined
352
- assertParamExists('setImageGeneralStatus', 'id', id)
353
- // verify required parameter 'setImageGeneralStatus' is not null or undefined
354
- assertParamExists('setImageGeneralStatus', 'setImageGeneralStatus', setImageGeneralStatus)
355
- const localVarPath = `/images/{id}/general`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
356
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
357
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
358
- let baseOptions
359
- if (configuration) {
360
- baseOptions = configuration.baseOptions
361
- }
362
-
363
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
364
- const localVarHeaderParameter = {} as any
365
- const localVarQueryParameter = {} as any
366
-
367
- // authentication bearer required
368
- // http bearer authentication required
369
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
370
-
371
- // authentication oauth2 required
372
-
373
- localVarHeaderParameter['Content-Type'] = 'application/json'
374
-
375
- if (xDaytonaOrganizationID != null) {
376
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
377
- }
378
- setSearchParams(localVarUrlObj, localVarQueryParameter)
379
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
380
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
381
- localVarRequestOptions.data = serializeDataIfNeeded(setImageGeneralStatus, localVarRequestOptions, configuration)
382
-
383
- return {
384
- url: toPathString(localVarUrlObj),
385
- options: localVarRequestOptions,
386
- }
387
- },
388
- /**
389
- *
390
- * @summary Toggle image state
391
- * @param {string} id Image ID
392
- * @param {ToggleState} toggleState
393
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- toggleImageState: async (
398
- id: string,
399
- toggleState: ToggleState,
400
- xDaytonaOrganizationID?: string,
401
- options: RawAxiosRequestConfig = {},
402
- ): Promise<RequestArgs> => {
403
- // verify required parameter 'id' is not null or undefined
404
- assertParamExists('toggleImageState', 'id', id)
405
- // verify required parameter 'toggleState' is not null or undefined
406
- assertParamExists('toggleImageState', 'toggleState', toggleState)
407
- const localVarPath = `/images/{id}/toggle`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
408
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
409
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
410
- let baseOptions
411
- if (configuration) {
412
- baseOptions = configuration.baseOptions
413
- }
414
-
415
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
416
- const localVarHeaderParameter = {} as any
417
- const localVarQueryParameter = {} as any
418
-
419
- // authentication bearer required
420
- // http bearer authentication required
421
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
422
-
423
- // authentication oauth2 required
424
-
425
- localVarHeaderParameter['Content-Type'] = 'application/json'
426
-
427
- if (xDaytonaOrganizationID != null) {
428
- localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
429
- }
430
- setSearchParams(localVarUrlObj, localVarQueryParameter)
431
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
432
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
433
- localVarRequestOptions.data = serializeDataIfNeeded(toggleState, localVarRequestOptions, configuration)
434
-
435
- return {
436
- url: toPathString(localVarUrlObj),
437
- options: localVarRequestOptions,
438
- }
439
- },
440
- }
441
- }
442
-
443
- /**
444
- * ImagesApi - functional programming interface
445
- * @export
446
- */
447
- export const ImagesApiFp = function (configuration?: Configuration) {
448
- const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
449
- return {
450
- /**
451
- *
452
- * @summary Build a Docker image
453
- * @param {BuildImage} buildImage
454
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
455
- * @param {*} [options] Override http request option.
456
- * @throws {RequiredError}
457
- */
458
- async buildImage(
459
- buildImage: BuildImage,
460
- xDaytonaOrganizationID?: string,
461
- options?: RawAxiosRequestConfig,
462
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
463
- const localVarAxiosArgs = await localVarAxiosParamCreator.buildImage(buildImage, xDaytonaOrganizationID, options)
464
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
465
- const localVarOperationServerBasePath =
466
- operationServerMap['ImagesApi.buildImage']?.[localVarOperationServerIndex]?.url
467
- return (axios, basePath) =>
468
- createRequestFunction(
469
- localVarAxiosArgs,
470
- globalAxios,
471
- BASE_PATH,
472
- configuration,
473
- )(axios, localVarOperationServerBasePath || basePath)
474
- },
475
- /**
476
- *
477
- * @summary Create a new image
478
- * @param {CreateImage} createImage
479
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
480
- * @param {*} [options] Override http request option.
481
- * @throws {RequiredError}
482
- */
483
- async createImage(
484
- createImage: CreateImage,
485
- xDaytonaOrganizationID?: string,
486
- options?: RawAxiosRequestConfig,
487
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
488
- const localVarAxiosArgs = await localVarAxiosParamCreator.createImage(
489
- createImage,
490
- xDaytonaOrganizationID,
491
- options,
492
- )
493
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
494
- const localVarOperationServerBasePath =
495
- operationServerMap['ImagesApi.createImage']?.[localVarOperationServerIndex]?.url
496
- return (axios, basePath) =>
497
- createRequestFunction(
498
- localVarAxiosArgs,
499
- globalAxios,
500
- BASE_PATH,
501
- configuration,
502
- )(axios, localVarOperationServerBasePath || basePath)
503
- },
504
- /**
505
- *
506
- * @summary List all images
507
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
508
- * @param {number} [limit] Number of items per page
509
- * @param {number} [page] Page number
510
- * @param {*} [options] Override http request option.
511
- * @throws {RequiredError}
512
- */
513
- async getAllImages(
514
- xDaytonaOrganizationID?: string,
515
- limit?: number,
516
- page?: number,
517
- options?: RawAxiosRequestConfig,
518
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedImagesDto>> {
519
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImages(
520
- xDaytonaOrganizationID,
521
- limit,
522
- page,
523
- options,
524
- )
525
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
526
- const localVarOperationServerBasePath =
527
- operationServerMap['ImagesApi.getAllImages']?.[localVarOperationServerIndex]?.url
528
- return (axios, basePath) =>
529
- createRequestFunction(
530
- localVarAxiosArgs,
531
- globalAxios,
532
- BASE_PATH,
533
- configuration,
534
- )(axios, localVarOperationServerBasePath || basePath)
535
- },
536
- /**
537
- *
538
- * @summary Get image by ID
539
- * @param {string} id Image ID
540
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- */
544
- async getImage(
545
- id: string,
546
- xDaytonaOrganizationID?: string,
547
- options?: RawAxiosRequestConfig,
548
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
549
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImage(id, xDaytonaOrganizationID, options)
550
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
551
- const localVarOperationServerBasePath =
552
- operationServerMap['ImagesApi.getImage']?.[localVarOperationServerIndex]?.url
553
- return (axios, basePath) =>
554
- createRequestFunction(
555
- localVarAxiosArgs,
556
- globalAxios,
557
- BASE_PATH,
558
- configuration,
559
- )(axios, localVarOperationServerBasePath || basePath)
560
- },
561
- /**
562
- *
563
- * @summary Get image build logs
564
- * @param {string} id Image ID
565
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
566
- * @param {*} [options] Override http request option.
567
- * @throws {RequiredError}
568
- */
569
- async getImageBuildLogs(
570
- id: string,
571
- xDaytonaOrganizationID?: string,
572
- options?: RawAxiosRequestConfig,
573
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
574
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImageBuildLogs(id, xDaytonaOrganizationID, options)
575
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
576
- const localVarOperationServerBasePath =
577
- operationServerMap['ImagesApi.getImageBuildLogs']?.[localVarOperationServerIndex]?.url
578
- return (axios, basePath) =>
579
- createRequestFunction(
580
- localVarAxiosArgs,
581
- globalAxios,
582
- BASE_PATH,
583
- configuration,
584
- )(axios, localVarOperationServerBasePath || basePath)
585
- },
586
- /**
587
- *
588
- * @summary Delete image
589
- * @param {string} id Image ID
590
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
591
- * @param {*} [options] Override http request option.
592
- * @throws {RequiredError}
593
- */
594
- async removeImage(
595
- id: string,
596
- xDaytonaOrganizationID?: string,
597
- options?: RawAxiosRequestConfig,
598
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
599
- const localVarAxiosArgs = await localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options)
600
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
601
- const localVarOperationServerBasePath =
602
- operationServerMap['ImagesApi.removeImage']?.[localVarOperationServerIndex]?.url
603
- return (axios, basePath) =>
604
- createRequestFunction(
605
- localVarAxiosArgs,
606
- globalAxios,
607
- BASE_PATH,
608
- configuration,
609
- )(axios, localVarOperationServerBasePath || basePath)
610
- },
611
- /**
612
- *
613
- * @summary Set image general status
614
- * @param {string} id Image ID
615
- * @param {SetImageGeneralStatus} setImageGeneralStatus
616
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
617
- * @param {*} [options] Override http request option.
618
- * @throws {RequiredError}
619
- */
620
- async setImageGeneralStatus(
621
- id: string,
622
- setImageGeneralStatus: SetImageGeneralStatus,
623
- xDaytonaOrganizationID?: string,
624
- options?: RawAxiosRequestConfig,
625
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
626
- const localVarAxiosArgs = await localVarAxiosParamCreator.setImageGeneralStatus(
627
- id,
628
- setImageGeneralStatus,
629
- xDaytonaOrganizationID,
630
- options,
631
- )
632
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
633
- const localVarOperationServerBasePath =
634
- operationServerMap['ImagesApi.setImageGeneralStatus']?.[localVarOperationServerIndex]?.url
635
- return (axios, basePath) =>
636
- createRequestFunction(
637
- localVarAxiosArgs,
638
- globalAxios,
639
- BASE_PATH,
640
- configuration,
641
- )(axios, localVarOperationServerBasePath || basePath)
642
- },
643
- /**
644
- *
645
- * @summary Toggle image state
646
- * @param {string} id Image ID
647
- * @param {ToggleState} toggleState
648
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
649
- * @param {*} [options] Override http request option.
650
- * @throws {RequiredError}
651
- */
652
- async toggleImageState(
653
- id: string,
654
- toggleState: ToggleState,
655
- xDaytonaOrganizationID?: string,
656
- options?: RawAxiosRequestConfig,
657
- ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
658
- const localVarAxiosArgs = await localVarAxiosParamCreator.toggleImageState(
659
- id,
660
- toggleState,
661
- xDaytonaOrganizationID,
662
- options,
663
- )
664
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0
665
- const localVarOperationServerBasePath =
666
- operationServerMap['ImagesApi.toggleImageState']?.[localVarOperationServerIndex]?.url
667
- return (axios, basePath) =>
668
- createRequestFunction(
669
- localVarAxiosArgs,
670
- globalAxios,
671
- BASE_PATH,
672
- configuration,
673
- )(axios, localVarOperationServerBasePath || basePath)
674
- },
675
- }
676
- }
677
-
678
- /**
679
- * ImagesApi - factory interface
680
- * @export
681
- */
682
- export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
683
- const localVarFp = ImagesApiFp(configuration)
684
- return {
685
- /**
686
- *
687
- * @summary Build a Docker image
688
- * @param {BuildImage} buildImage
689
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- */
693
- buildImage(
694
- buildImage: BuildImage,
695
- xDaytonaOrganizationID?: string,
696
- options?: RawAxiosRequestConfig,
697
- ): AxiosPromise<ImageDto> {
698
- return localVarFp
699
- .buildImage(buildImage, xDaytonaOrganizationID, options)
700
- .then((request) => request(axios, basePath))
701
- },
702
- /**
703
- *
704
- * @summary Create a new image
705
- * @param {CreateImage} createImage
706
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
707
- * @param {*} [options] Override http request option.
708
- * @throws {RequiredError}
709
- */
710
- createImage(
711
- createImage: CreateImage,
712
- xDaytonaOrganizationID?: string,
713
- options?: RawAxiosRequestConfig,
714
- ): AxiosPromise<ImageDto> {
715
- return localVarFp
716
- .createImage(createImage, xDaytonaOrganizationID, options)
717
- .then((request) => request(axios, basePath))
718
- },
719
- /**
720
- *
721
- * @summary List all images
722
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
723
- * @param {number} [limit] Number of items per page
724
- * @param {number} [page] Page number
725
- * @param {*} [options] Override http request option.
726
- * @throws {RequiredError}
727
- */
728
- getAllImages(
729
- xDaytonaOrganizationID?: string,
730
- limit?: number,
731
- page?: number,
732
- options?: RawAxiosRequestConfig,
733
- ): AxiosPromise<PaginatedImagesDto> {
734
- return localVarFp
735
- .getAllImages(xDaytonaOrganizationID, limit, page, options)
736
- .then((request) => request(axios, basePath))
737
- },
738
- /**
739
- *
740
- * @summary Get image by ID
741
- * @param {string} id Image ID
742
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
743
- * @param {*} [options] Override http request option.
744
- * @throws {RequiredError}
745
- */
746
- getImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto> {
747
- return localVarFp.getImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
748
- },
749
- /**
750
- *
751
- * @summary Get image build logs
752
- * @param {string} id Image ID
753
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
754
- * @param {*} [options] Override http request option.
755
- * @throws {RequiredError}
756
- */
757
- getImageBuildLogs(
758
- id: string,
759
- xDaytonaOrganizationID?: string,
760
- options?: RawAxiosRequestConfig,
761
- ): AxiosPromise<void> {
762
- return localVarFp
763
- .getImageBuildLogs(id, xDaytonaOrganizationID, options)
764
- .then((request) => request(axios, basePath))
765
- },
766
- /**
767
- *
768
- * @summary Delete image
769
- * @param {string} id Image ID
770
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
771
- * @param {*} [options] Override http request option.
772
- * @throws {RequiredError}
773
- */
774
- removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
775
- return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
776
- },
777
- /**
778
- *
779
- * @summary Set image general status
780
- * @param {string} id Image ID
781
- * @param {SetImageGeneralStatus} setImageGeneralStatus
782
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
783
- * @param {*} [options] Override http request option.
784
- * @throws {RequiredError}
785
- */
786
- setImageGeneralStatus(
787
- id: string,
788
- setImageGeneralStatus: SetImageGeneralStatus,
789
- xDaytonaOrganizationID?: string,
790
- options?: RawAxiosRequestConfig,
791
- ): AxiosPromise<ImageDto> {
792
- return localVarFp
793
- .setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
794
- .then((request) => request(axios, basePath))
795
- },
796
- /**
797
- *
798
- * @summary Toggle image state
799
- * @param {string} id Image ID
800
- * @param {ToggleState} toggleState
801
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
802
- * @param {*} [options] Override http request option.
803
- * @throws {RequiredError}
804
- */
805
- toggleImageState(
806
- id: string,
807
- toggleState: ToggleState,
808
- xDaytonaOrganizationID?: string,
809
- options?: RawAxiosRequestConfig,
810
- ): AxiosPromise<ImageDto> {
811
- return localVarFp
812
- .toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
813
- .then((request) => request(axios, basePath))
814
- },
815
- }
816
- }
817
-
818
- /**
819
- * ImagesApi - object-oriented interface
820
- * @export
821
- * @class ImagesApi
822
- * @extends {BaseAPI}
823
- */
824
- export class ImagesApi extends BaseAPI {
825
- /**
826
- *
827
- * @summary Build a Docker image
828
- * @param {BuildImage} buildImage
829
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
830
- * @param {*} [options] Override http request option.
831
- * @throws {RequiredError}
832
- * @memberof ImagesApi
833
- */
834
- public buildImage(buildImage: BuildImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
835
- return ImagesApiFp(this.configuration)
836
- .buildImage(buildImage, xDaytonaOrganizationID, options)
837
- .then((request) => request(this.axios, this.basePath))
838
- }
839
-
840
- /**
841
- *
842
- * @summary Create a new image
843
- * @param {CreateImage} createImage
844
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
845
- * @param {*} [options] Override http request option.
846
- * @throws {RequiredError}
847
- * @memberof ImagesApi
848
- */
849
- public createImage(createImage: CreateImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
850
- return ImagesApiFp(this.configuration)
851
- .createImage(createImage, xDaytonaOrganizationID, options)
852
- .then((request) => request(this.axios, this.basePath))
853
- }
854
-
855
- /**
856
- *
857
- * @summary List all images
858
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
859
- * @param {number} [limit] Number of items per page
860
- * @param {number} [page] Page number
861
- * @param {*} [options] Override http request option.
862
- * @throws {RequiredError}
863
- * @memberof ImagesApi
864
- */
865
- public getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig) {
866
- return ImagesApiFp(this.configuration)
867
- .getAllImages(xDaytonaOrganizationID, limit, page, options)
868
- .then((request) => request(this.axios, this.basePath))
869
- }
870
-
871
- /**
872
- *
873
- * @summary Get image by ID
874
- * @param {string} id Image ID
875
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
876
- * @param {*} [options] Override http request option.
877
- * @throws {RequiredError}
878
- * @memberof ImagesApi
879
- */
880
- public getImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
881
- return ImagesApiFp(this.configuration)
882
- .getImage(id, xDaytonaOrganizationID, options)
883
- .then((request) => request(this.axios, this.basePath))
884
- }
885
-
886
- /**
887
- *
888
- * @summary Get image build logs
889
- * @param {string} id Image ID
890
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
891
- * @param {*} [options] Override http request option.
892
- * @throws {RequiredError}
893
- * @memberof ImagesApi
894
- */
895
- public getImageBuildLogs(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
896
- return ImagesApiFp(this.configuration)
897
- .getImageBuildLogs(id, xDaytonaOrganizationID, options)
898
- .then((request) => request(this.axios, this.basePath))
899
- }
900
-
901
- /**
902
- *
903
- * @summary Delete image
904
- * @param {string} id Image ID
905
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
906
- * @param {*} [options] Override http request option.
907
- * @throws {RequiredError}
908
- * @memberof ImagesApi
909
- */
910
- public removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
911
- return ImagesApiFp(this.configuration)
912
- .removeImage(id, xDaytonaOrganizationID, options)
913
- .then((request) => request(this.axios, this.basePath))
914
- }
915
-
916
- /**
917
- *
918
- * @summary Set image general status
919
- * @param {string} id Image ID
920
- * @param {SetImageGeneralStatus} setImageGeneralStatus
921
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
922
- * @param {*} [options] Override http request option.
923
- * @throws {RequiredError}
924
- * @memberof ImagesApi
925
- */
926
- public setImageGeneralStatus(
927
- id: string,
928
- setImageGeneralStatus: SetImageGeneralStatus,
929
- xDaytonaOrganizationID?: string,
930
- options?: RawAxiosRequestConfig,
931
- ) {
932
- return ImagesApiFp(this.configuration)
933
- .setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
934
- .then((request) => request(this.axios, this.basePath))
935
- }
936
-
937
- /**
938
- *
939
- * @summary Toggle image state
940
- * @param {string} id Image ID
941
- * @param {ToggleState} toggleState
942
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
943
- * @param {*} [options] Override http request option.
944
- * @throws {RequiredError}
945
- * @memberof ImagesApi
946
- */
947
- public toggleImageState(
948
- id: string,
949
- toggleState: ToggleState,
950
- xDaytonaOrganizationID?: string,
951
- options?: RawAxiosRequestConfig,
952
- ) {
953
- return ImagesApiFp(this.configuration)
954
- .toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
955
- .then((request) => request(this.axios, this.basePath))
956
- }
957
- }