@daytona/api-client 0.161.0-alpha.2

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 (607) hide show
  1. package/package.json +25 -0
  2. package/src/api/admin-api.d.ts +242 -0
  3. package/src/api/admin-api.js +464 -0
  4. package/src/api/admin-api.js.map +1 -0
  5. package/src/api/api-keys-api.d.ts +261 -0
  6. package/src/api/api-keys-api.js +499 -0
  7. package/src/api/api-keys-api.js.map +1 -0
  8. package/src/api/audit-api.d.ts +143 -0
  9. package/src/api/audit-api.js +266 -0
  10. package/src/api/audit-api.js.map +1 -0
  11. package/src/api/config-api.d.ts +70 -0
  12. package/src/api/config-api.js +117 -0
  13. package/src/api/config-api.js.map +1 -0
  14. package/src/api/docker-registry-api.d.ts +303 -0
  15. package/src/api/docker-registry-api.js +581 -0
  16. package/src/api/docker-registry-api.js.map +1 -0
  17. package/src/api/health-api.d.ts +91 -0
  18. package/src/api/health-api.js +165 -0
  19. package/src/api/health-api.js.map +1 -0
  20. package/src/api/jobs-api.d.ts +197 -0
  21. package/src/api/jobs-api.js +365 -0
  22. package/src/api/jobs-api.js.map +1 -0
  23. package/src/api/object-storage-api.d.ts +74 -0
  24. package/src/api/object-storage-api.js +128 -0
  25. package/src/api/object-storage-api.js.map +1 -0
  26. package/src/api/organizations-api.d.ts +1451 -0
  27. package/src/api/organizations-api.js +2845 -0
  28. package/src/api/organizations-api.js.map +1 -0
  29. package/src/api/preview-api.d.ts +180 -0
  30. package/src/api/preview-api.js +331 -0
  31. package/src/api/preview-api.js.map +1 -0
  32. package/src/api/regions-api.d.ts +70 -0
  33. package/src/api/regions-api.js +121 -0
  34. package/src/api/regions-api.js.map +1 -0
  35. package/src/api/runners-api.d.ts +425 -0
  36. package/src/api/runners-api.js +830 -0
  37. package/src/api/runners-api.js.map +1 -0
  38. package/src/api/sandbox-api.d.ts +1495 -0
  39. package/src/api/sandbox-api.js +2871 -0
  40. package/src/api/sandbox-api.js.map +1 -0
  41. package/src/api/snapshots-api.d.ts +461 -0
  42. package/src/api/snapshots-api.js +867 -0
  43. package/src/api/snapshots-api.js.map +1 -0
  44. package/src/api/toolbox-api.d.ts +3241 -0
  45. package/src/api/toolbox-api.js +6071 -0
  46. package/src/api/toolbox-api.js.map +1 -0
  47. package/src/api/users-api.d.ts +329 -0
  48. package/src/api/users-api.js +645 -0
  49. package/src/api/users-api.js.map +1 -0
  50. package/src/api/volumes-api.d.ts +227 -0
  51. package/src/api/volumes-api.js +432 -0
  52. package/src/api/volumes-api.js.map +1 -0
  53. package/src/api/webhooks-api.d.ts +270 -0
  54. package/src/api/webhooks-api.js +507 -0
  55. package/src/api/webhooks-api.js.map +1 -0
  56. package/src/api/workspace-api.d.ts +654 -0
  57. package/src/api/workspace-api.js +1220 -0
  58. package/src/api/workspace-api.js.map +1 -0
  59. package/src/api.d.ts +30 -0
  60. package/src/api.js +49 -0
  61. package/src/api.js.map +1 -0
  62. package/src/base.d.ts +66 -0
  63. package/src/base.js +69 -0
  64. package/src/base.js.map +1 -0
  65. package/src/common.d.ts +65 -0
  66. package/src/common.js +146 -0
  67. package/src/common.js.map +1 -0
  68. package/src/configuration.d.ts +91 -0
  69. package/src/configuration.js +107 -0
  70. package/src/configuration.js.map +1 -0
  71. package/src/index.d.ts +14 -0
  72. package/src/index.js +33 -0
  73. package/src/index.js.map +1 -0
  74. package/src/models/account-provider.d.ts +30 -0
  75. package/src/models/account-provider.js +16 -0
  76. package/src/models/account-provider.js.map +1 -0
  77. package/src/models/admin-create-runner.d.ts +78 -0
  78. package/src/models/admin-create-runner.js +16 -0
  79. package/src/models/admin-create-runner.js.map +1 -0
  80. package/src/models/announcement.d.ts +30 -0
  81. package/src/models/announcement.js +16 -0
  82. package/src/models/announcement.js.map +1 -0
  83. package/src/models/api-key-list.d.ts +78 -0
  84. package/src/models/api-key-list.js +34 -0
  85. package/src/models/api-key-list.js.map +1 -0
  86. package/src/models/api-key-response.d.ts +66 -0
  87. package/src/models/api-key-response.js +34 -0
  88. package/src/models/api-key-response.js.map +1 -0
  89. package/src/models/audit-log.d.ts +104 -0
  90. package/src/models/audit-log.js +16 -0
  91. package/src/models/audit-log.js.map +1 -0
  92. package/src/models/build-info.d.ts +48 -0
  93. package/src/models/build-info.js +16 -0
  94. package/src/models/build-info.js.map +1 -0
  95. package/src/models/command.d.ts +36 -0
  96. package/src/models/command.js +16 -0
  97. package/src/models/command.js.map +1 -0
  98. package/src/models/completion-context.d.ts +30 -0
  99. package/src/models/completion-context.js +16 -0
  100. package/src/models/completion-context.js.map +1 -0
  101. package/src/models/completion-item.d.ts +60 -0
  102. package/src/models/completion-item.js +16 -0
  103. package/src/models/completion-item.js.map +1 -0
  104. package/src/models/completion-list.d.ts +31 -0
  105. package/src/models/completion-list.js +16 -0
  106. package/src/models/completion-list.js.map +1 -0
  107. package/src/models/compressed-screenshot-response.d.ts +36 -0
  108. package/src/models/compressed-screenshot-response.js +16 -0
  109. package/src/models/compressed-screenshot-response.js.map +1 -0
  110. package/src/models/computer-use-start-response.d.ts +30 -0
  111. package/src/models/computer-use-start-response.js +16 -0
  112. package/src/models/computer-use-start-response.js.map +1 -0
  113. package/src/models/computer-use-status-response.d.ts +31 -0
  114. package/src/models/computer-use-status-response.js +23 -0
  115. package/src/models/computer-use-status-response.js.map +1 -0
  116. package/src/models/computer-use-stop-response.d.ts +30 -0
  117. package/src/models/computer-use-stop-response.js +16 -0
  118. package/src/models/computer-use-stop-response.js.map +1 -0
  119. package/src/models/create-api-key.d.ts +54 -0
  120. package/src/models/create-api-key.js +34 -0
  121. package/src/models/create-api-key.js.map +1 -0
  122. package/src/models/create-build-info.d.ts +30 -0
  123. package/src/models/create-build-info.js +16 -0
  124. package/src/models/create-build-info.js.map +1 -0
  125. package/src/models/create-docker-registry.d.ts +67 -0
  126. package/src/models/create-docker-registry.js +23 -0
  127. package/src/models/create-docker-registry.js.map +1 -0
  128. package/src/models/create-linked-account.d.ts +30 -0
  129. package/src/models/create-linked-account.js +16 -0
  130. package/src/models/create-linked-account.js.map +1 -0
  131. package/src/models/create-organization-invitation.d.ts +47 -0
  132. package/src/models/create-organization-invitation.js +21 -0
  133. package/src/models/create-organization-invitation.js.map +1 -0
  134. package/src/models/create-organization-quota.d.ts +72 -0
  135. package/src/models/create-organization-quota.js +16 -0
  136. package/src/models/create-organization-quota.js.map +1 -0
  137. package/src/models/create-organization-role.d.ts +54 -0
  138. package/src/models/create-organization-role.js +34 -0
  139. package/src/models/create-organization-role.js.map +1 -0
  140. package/src/models/create-organization.d.ts +30 -0
  141. package/src/models/create-organization.js +16 -0
  142. package/src/models/create-organization.js.map +1 -0
  143. package/src/models/create-region-response.d.ts +48 -0
  144. package/src/models/create-region-response.js +16 -0
  145. package/src/models/create-region-response.js.map +1 -0
  146. package/src/models/create-region.d.ts +42 -0
  147. package/src/models/create-region.js +16 -0
  148. package/src/models/create-region.js.map +1 -0
  149. package/src/models/create-runner-response.d.ts +30 -0
  150. package/src/models/create-runner-response.js +16 -0
  151. package/src/models/create-runner-response.js.map +1 -0
  152. package/src/models/create-runner.d.ts +30 -0
  153. package/src/models/create-runner.js +16 -0
  154. package/src/models/create-runner.js.map +1 -0
  155. package/src/models/create-sandbox.d.ts +144 -0
  156. package/src/models/create-sandbox.js +22 -0
  157. package/src/models/create-sandbox.js.map +1 -0
  158. package/src/models/create-session-request.d.ts +24 -0
  159. package/src/models/create-session-request.js +16 -0
  160. package/src/models/create-session-request.js.map +1 -0
  161. package/src/models/create-snapshot.d.ts +79 -0
  162. package/src/models/create-snapshot.js +16 -0
  163. package/src/models/create-snapshot.js.map +1 -0
  164. package/src/models/create-user.d.ts +66 -0
  165. package/src/models/create-user.js +21 -0
  166. package/src/models/create-user.js.map +1 -0
  167. package/src/models/create-volume.d.ts +24 -0
  168. package/src/models/create-volume.js +16 -0
  169. package/src/models/create-volume.js.map +1 -0
  170. package/src/models/create-workspace.d.ts +126 -0
  171. package/src/models/create-workspace.js +27 -0
  172. package/src/models/create-workspace.js.map +1 -0
  173. package/src/models/daytona-configuration.d.ts +132 -0
  174. package/src/models/daytona-configuration.js +16 -0
  175. package/src/models/daytona-configuration.js.map +1 -0
  176. package/src/models/display-info-response.d.ts +24 -0
  177. package/src/models/display-info-response.js +16 -0
  178. package/src/models/display-info-response.js.map +1 -0
  179. package/src/models/docker-registry.d.ts +73 -0
  180. package/src/models/docker-registry.js +23 -0
  181. package/src/models/docker-registry.js.map +1 -0
  182. package/src/models/download-files.d.ts +24 -0
  183. package/src/models/download-files.js +16 -0
  184. package/src/models/download-files.js.map +1 -0
  185. package/src/models/execute-request.d.ts +36 -0
  186. package/src/models/execute-request.js +16 -0
  187. package/src/models/execute-request.js.map +1 -0
  188. package/src/models/execute-response.d.ts +30 -0
  189. package/src/models/execute-response.js +16 -0
  190. package/src/models/execute-response.js.map +1 -0
  191. package/src/models/file-info.d.ts +66 -0
  192. package/src/models/file-info.js +16 -0
  193. package/src/models/file-info.js.map +1 -0
  194. package/src/models/file-status.d.ts +42 -0
  195. package/src/models/file-status.js +16 -0
  196. package/src/models/file-status.js.map +1 -0
  197. package/src/models/git-add-request.d.ts +30 -0
  198. package/src/models/git-add-request.js +16 -0
  199. package/src/models/git-add-request.js.map +1 -0
  200. package/src/models/git-branch-request.d.ts +30 -0
  201. package/src/models/git-branch-request.js +16 -0
  202. package/src/models/git-branch-request.js.map +1 -0
  203. package/src/models/git-checkout-request.d.ts +30 -0
  204. package/src/models/git-checkout-request.js +16 -0
  205. package/src/models/git-checkout-request.js.map +1 -0
  206. package/src/models/git-clone-request.d.ts +54 -0
  207. package/src/models/git-clone-request.js +16 -0
  208. package/src/models/git-clone-request.js.map +1 -0
  209. package/src/models/git-commit-info.d.ts +48 -0
  210. package/src/models/git-commit-info.js +16 -0
  211. package/src/models/git-commit-info.js.map +1 -0
  212. package/src/models/git-commit-request.d.ts +48 -0
  213. package/src/models/git-commit-request.js +16 -0
  214. package/src/models/git-commit-request.js.map +1 -0
  215. package/src/models/git-commit-response.d.ts +24 -0
  216. package/src/models/git-commit-response.js +16 -0
  217. package/src/models/git-commit-response.js.map +1 -0
  218. package/src/models/git-delete-branch-request.d.ts +30 -0
  219. package/src/models/git-delete-branch-request.js +16 -0
  220. package/src/models/git-delete-branch-request.js.map +1 -0
  221. package/src/models/git-repo-request.d.ts +36 -0
  222. package/src/models/git-repo-request.js +16 -0
  223. package/src/models/git-repo-request.js.map +1 -0
  224. package/src/models/git-status.d.ts +49 -0
  225. package/src/models/git-status.js +16 -0
  226. package/src/models/git-status.js.map +1 -0
  227. package/src/models/health-controller-check200-response-info-value.d.ts +25 -0
  228. package/src/models/health-controller-check200-response-info-value.js +16 -0
  229. package/src/models/health-controller-check200-response-info-value.js.map +1 -0
  230. package/src/models/health-controller-check200-response.d.ts +49 -0
  231. package/src/models/health-controller-check200-response.js +16 -0
  232. package/src/models/health-controller-check200-response.js.map +1 -0
  233. package/src/models/health-controller-check503-response.d.ts +49 -0
  234. package/src/models/health-controller-check503-response.js +16 -0
  235. package/src/models/health-controller-check503-response.js.map +1 -0
  236. package/src/models/index.d.ts +177 -0
  237. package/src/models/index.js +194 -0
  238. package/src/models/index.js.map +1 -0
  239. package/src/models/job-status.d.ts +23 -0
  240. package/src/models/job-status.js +28 -0
  241. package/src/models/job-status.js.map +1 -0
  242. package/src/models/job-type.d.ts +31 -0
  243. package/src/models/job-type.js +36 -0
  244. package/src/models/job-type.js.map +1 -0
  245. package/src/models/job.d.ts +88 -0
  246. package/src/models/job.js +22 -0
  247. package/src/models/job.js.map +1 -0
  248. package/src/models/keyboard-hotkey-request.d.ts +24 -0
  249. package/src/models/keyboard-hotkey-request.js +16 -0
  250. package/src/models/keyboard-hotkey-request.js.map +1 -0
  251. package/src/models/keyboard-press-request.d.ts +30 -0
  252. package/src/models/keyboard-press-request.js +16 -0
  253. package/src/models/keyboard-press-request.js.map +1 -0
  254. package/src/models/keyboard-type-request.d.ts +30 -0
  255. package/src/models/keyboard-type-request.js +16 -0
  256. package/src/models/keyboard-type-request.js.map +1 -0
  257. package/src/models/list-branch-response.d.ts +24 -0
  258. package/src/models/list-branch-response.js +16 -0
  259. package/src/models/list-branch-response.js.map +1 -0
  260. package/src/models/log-entry.d.ts +76 -0
  261. package/src/models/log-entry.js +16 -0
  262. package/src/models/log-entry.js.map +1 -0
  263. package/src/models/lsp-completion-params.d.ts +50 -0
  264. package/src/models/lsp-completion-params.js +16 -0
  265. package/src/models/lsp-completion-params.js.map +1 -0
  266. package/src/models/lsp-document-request.d.ts +36 -0
  267. package/src/models/lsp-document-request.js +16 -0
  268. package/src/models/lsp-document-request.js.map +1 -0
  269. package/src/models/lsp-location.d.ts +31 -0
  270. package/src/models/lsp-location.js +16 -0
  271. package/src/models/lsp-location.js.map +1 -0
  272. package/src/models/lsp-server-request.d.ts +30 -0
  273. package/src/models/lsp-server-request.js +16 -0
  274. package/src/models/lsp-server-request.js.map +1 -0
  275. package/src/models/lsp-symbol.d.ts +37 -0
  276. package/src/models/lsp-symbol.js +16 -0
  277. package/src/models/lsp-symbol.js.map +1 -0
  278. package/src/models/match.d.ts +36 -0
  279. package/src/models/match.js +16 -0
  280. package/src/models/match.js.map +1 -0
  281. package/src/models/metric-data-point.d.ts +30 -0
  282. package/src/models/metric-data-point.js +16 -0
  283. package/src/models/metric-data-point.js.map +1 -0
  284. package/src/models/metric-series.d.ts +31 -0
  285. package/src/models/metric-series.js +16 -0
  286. package/src/models/metric-series.js.map +1 -0
  287. package/src/models/metrics-response.d.ts +25 -0
  288. package/src/models/metrics-response.js +16 -0
  289. package/src/models/metrics-response.js.map +1 -0
  290. package/src/models/mouse-click-request.d.ts +42 -0
  291. package/src/models/mouse-click-request.js +16 -0
  292. package/src/models/mouse-click-request.js.map +1 -0
  293. package/src/models/mouse-click-response.d.ts +30 -0
  294. package/src/models/mouse-click-response.js +16 -0
  295. package/src/models/mouse-click-response.js.map +1 -0
  296. package/src/models/mouse-drag-request.d.ts +48 -0
  297. package/src/models/mouse-drag-request.js +16 -0
  298. package/src/models/mouse-drag-request.js.map +1 -0
  299. package/src/models/mouse-drag-response.d.ts +30 -0
  300. package/src/models/mouse-drag-response.js +16 -0
  301. package/src/models/mouse-drag-response.js.map +1 -0
  302. package/src/models/mouse-move-request.d.ts +30 -0
  303. package/src/models/mouse-move-request.js +16 -0
  304. package/src/models/mouse-move-request.js.map +1 -0
  305. package/src/models/mouse-move-response.d.ts +30 -0
  306. package/src/models/mouse-move-response.js +16 -0
  307. package/src/models/mouse-move-response.js.map +1 -0
  308. package/src/models/mouse-position.d.ts +30 -0
  309. package/src/models/mouse-position.js +16 -0
  310. package/src/models/mouse-position.js.map +1 -0
  311. package/src/models/mouse-scroll-request.d.ts +42 -0
  312. package/src/models/mouse-scroll-request.js +16 -0
  313. package/src/models/mouse-scroll-request.js.map +1 -0
  314. package/src/models/mouse-scroll-response.d.ts +24 -0
  315. package/src/models/mouse-scroll-response.js +16 -0
  316. package/src/models/mouse-scroll-response.js.map +1 -0
  317. package/src/models/oidc-config.d.ts +36 -0
  318. package/src/models/oidc-config.js +16 -0
  319. package/src/models/oidc-config.js.map +1 -0
  320. package/src/models/organization-invitation.d.ts +97 -0
  321. package/src/models/organization-invitation.js +27 -0
  322. package/src/models/organization-invitation.js.map +1 -0
  323. package/src/models/organization-role.d.ts +78 -0
  324. package/src/models/organization-role.js +34 -0
  325. package/src/models/organization-role.js.map +1 -0
  326. package/src/models/organization-sandbox-default-limited-network-egress.d.ts +24 -0
  327. package/src/models/organization-sandbox-default-limited-network-egress.js +16 -0
  328. package/src/models/organization-sandbox-default-limited-network-egress.js.map +1 -0
  329. package/src/models/organization-suspension.d.ts +36 -0
  330. package/src/models/organization-suspension.js +16 -0
  331. package/src/models/organization-suspension.js.map +1 -0
  332. package/src/models/organization-usage-overview.d.ts +49 -0
  333. package/src/models/organization-usage-overview.js +16 -0
  334. package/src/models/organization-usage-overview.js.map +1 -0
  335. package/src/models/organization-user.d.ts +72 -0
  336. package/src/models/organization-user.js +21 -0
  337. package/src/models/organization-user.js.map +1 -0
  338. package/src/models/organization.d.ts +162 -0
  339. package/src/models/organization.js +16 -0
  340. package/src/models/organization.js.map +1 -0
  341. package/src/models/otel-config.d.ts +32 -0
  342. package/src/models/otel-config.js +16 -0
  343. package/src/models/otel-config.js.map +1 -0
  344. package/src/models/paginated-audit-logs.d.ts +49 -0
  345. package/src/models/paginated-audit-logs.js +16 -0
  346. package/src/models/paginated-audit-logs.js.map +1 -0
  347. package/src/models/paginated-jobs.d.ts +43 -0
  348. package/src/models/paginated-jobs.js +16 -0
  349. package/src/models/paginated-jobs.js.map +1 -0
  350. package/src/models/paginated-logs.d.ts +43 -0
  351. package/src/models/paginated-logs.js +16 -0
  352. package/src/models/paginated-logs.js.map +1 -0
  353. package/src/models/paginated-sandboxes.d.ts +43 -0
  354. package/src/models/paginated-sandboxes.js +16 -0
  355. package/src/models/paginated-sandboxes.js.map +1 -0
  356. package/src/models/paginated-snapshots.d.ts +43 -0
  357. package/src/models/paginated-snapshots.js +16 -0
  358. package/src/models/paginated-snapshots.js.map +1 -0
  359. package/src/models/paginated-traces.d.ts +43 -0
  360. package/src/models/paginated-traces.js +16 -0
  361. package/src/models/paginated-traces.js.map +1 -0
  362. package/src/models/poll-jobs-response.d.ts +25 -0
  363. package/src/models/poll-jobs-response.js +16 -0
  364. package/src/models/poll-jobs-response.js.map +1 -0
  365. package/src/models/port-preview-url.d.ts +36 -0
  366. package/src/models/port-preview-url.js +16 -0
  367. package/src/models/port-preview-url.js.map +1 -0
  368. package/src/models/position.d.ts +30 -0
  369. package/src/models/position.js +16 -0
  370. package/src/models/position.js.map +1 -0
  371. package/src/models/posthog-config.d.ts +30 -0
  372. package/src/models/posthog-config.js +16 -0
  373. package/src/models/posthog-config.js.map +1 -0
  374. package/src/models/process-errors-response.d.ts +30 -0
  375. package/src/models/process-errors-response.js +16 -0
  376. package/src/models/process-errors-response.js.map +1 -0
  377. package/src/models/process-logs-response.d.ts +30 -0
  378. package/src/models/process-logs-response.js +16 -0
  379. package/src/models/process-logs-response.js.map +1 -0
  380. package/src/models/process-restart-response.d.ts +30 -0
  381. package/src/models/process-restart-response.js +16 -0
  382. package/src/models/process-restart-response.js.map +1 -0
  383. package/src/models/process-status-response.d.ts +30 -0
  384. package/src/models/process-status-response.js +16 -0
  385. package/src/models/process-status-response.js.map +1 -0
  386. package/src/models/project-dir-response.d.ts +24 -0
  387. package/src/models/project-dir-response.js +16 -0
  388. package/src/models/project-dir-response.js.map +1 -0
  389. package/src/models/pty-create-request.d.ts +54 -0
  390. package/src/models/pty-create-request.js +16 -0
  391. package/src/models/pty-create-request.js.map +1 -0
  392. package/src/models/pty-create-response.d.ts +24 -0
  393. package/src/models/pty-create-response.js +16 -0
  394. package/src/models/pty-create-response.js.map +1 -0
  395. package/src/models/pty-list-response.d.ts +25 -0
  396. package/src/models/pty-list-response.js +16 -0
  397. package/src/models/pty-list-response.js.map +1 -0
  398. package/src/models/pty-resize-request.d.ts +30 -0
  399. package/src/models/pty-resize-request.js +16 -0
  400. package/src/models/pty-resize-request.js.map +1 -0
  401. package/src/models/pty-session-info.d.ts +66 -0
  402. package/src/models/pty-session-info.js +16 -0
  403. package/src/models/pty-session-info.js.map +1 -0
  404. package/src/models/range.d.ts +31 -0
  405. package/src/models/range.js +16 -0
  406. package/src/models/range.js.map +1 -0
  407. package/src/models/rate-limit-config.d.ts +43 -0
  408. package/src/models/rate-limit-config.js +16 -0
  409. package/src/models/rate-limit-config.js.map +1 -0
  410. package/src/models/rate-limit-entry.d.ts +30 -0
  411. package/src/models/rate-limit-entry.js +16 -0
  412. package/src/models/rate-limit-entry.js.map +1 -0
  413. package/src/models/regenerate-api-key-response.d.ts +24 -0
  414. package/src/models/regenerate-api-key-response.js +16 -0
  415. package/src/models/regenerate-api-key-response.js.map +1 -0
  416. package/src/models/region-quota.d.ts +48 -0
  417. package/src/models/region-quota.js +16 -0
  418. package/src/models/region-quota.js.map +1 -0
  419. package/src/models/region-screenshot-response.d.ts +36 -0
  420. package/src/models/region-screenshot-response.js +16 -0
  421. package/src/models/region-screenshot-response.js.map +1 -0
  422. package/src/models/region-type.d.ts +22 -0
  423. package/src/models/region-type.js +27 -0
  424. package/src/models/region-type.js.map +1 -0
  425. package/src/models/region-usage-overview.d.ts +60 -0
  426. package/src/models/region-usage-overview.js +16 -0
  427. package/src/models/region-usage-overview.js.map +1 -0
  428. package/src/models/region.d.ts +73 -0
  429. package/src/models/region.js +16 -0
  430. package/src/models/region.js.map +1 -0
  431. package/src/models/registry-push-access-dto.d.ts +54 -0
  432. package/src/models/registry-push-access-dto.js +16 -0
  433. package/src/models/registry-push-access-dto.js.map +1 -0
  434. package/src/models/replace-request.d.ts +36 -0
  435. package/src/models/replace-request.js +16 -0
  436. package/src/models/replace-request.js.map +1 -0
  437. package/src/models/replace-result.d.ts +36 -0
  438. package/src/models/replace-result.js +16 -0
  439. package/src/models/replace-result.js.map +1 -0
  440. package/src/models/resize-sandbox.d.ts +36 -0
  441. package/src/models/resize-sandbox.js +16 -0
  442. package/src/models/resize-sandbox.js.map +1 -0
  443. package/src/models/runner-full.d.ts +210 -0
  444. package/src/models/runner-full.js +16 -0
  445. package/src/models/runner-full.js.map +1 -0
  446. package/src/models/runner-health-metrics.d.ts +90 -0
  447. package/src/models/runner-health-metrics.js +16 -0
  448. package/src/models/runner-health-metrics.js.map +1 -0
  449. package/src/models/runner-healthcheck.d.ts +56 -0
  450. package/src/models/runner-healthcheck.js +16 -0
  451. package/src/models/runner-healthcheck.js.map +1 -0
  452. package/src/models/runner-service-health.d.ts +36 -0
  453. package/src/models/runner-service-health.js +16 -0
  454. package/src/models/runner-service-health.js.map +1 -0
  455. package/src/models/runner-snapshot-dto.d.ts +36 -0
  456. package/src/models/runner-snapshot-dto.js +16 -0
  457. package/src/models/runner-snapshot-dto.js.map +1 -0
  458. package/src/models/runner-state.d.ts +24 -0
  459. package/src/models/runner-state.js +29 -0
  460. package/src/models/runner-state.js.map +1 -0
  461. package/src/models/runner.d.ts +197 -0
  462. package/src/models/runner.js +16 -0
  463. package/src/models/runner.js.map +1 -0
  464. package/src/models/sandbox-class.d.ts +22 -0
  465. package/src/models/sandbox-class.js +27 -0
  466. package/src/models/sandbox-class.js.map +1 -0
  467. package/src/models/sandbox-desired-state.d.ts +24 -0
  468. package/src/models/sandbox-desired-state.js +29 -0
  469. package/src/models/sandbox-desired-state.js.map +1 -0
  470. package/src/models/sandbox-info.d.ts +37 -0
  471. package/src/models/sandbox-info.js +16 -0
  472. package/src/models/sandbox-info.js.map +1 -0
  473. package/src/models/sandbox-labels.d.ts +26 -0
  474. package/src/models/sandbox-labels.js +16 -0
  475. package/src/models/sandbox-labels.js.map +1 -0
  476. package/src/models/sandbox-state.d.ts +36 -0
  477. package/src/models/sandbox-state.js +41 -0
  478. package/src/models/sandbox-state.js.map +1 -0
  479. package/src/models/sandbox-volume.d.ts +36 -0
  480. package/src/models/sandbox-volume.js +16 -0
  481. package/src/models/sandbox-volume.js.map +1 -0
  482. package/src/models/sandbox.d.ts +233 -0
  483. package/src/models/sandbox.js +29 -0
  484. package/src/models/sandbox.js.map +1 -0
  485. package/src/models/screenshot-response.d.ts +36 -0
  486. package/src/models/screenshot-response.js +16 -0
  487. package/src/models/screenshot-response.js.map +1 -0
  488. package/src/models/search-files-response.d.ts +24 -0
  489. package/src/models/search-files-response.js +16 -0
  490. package/src/models/search-files-response.js.map +1 -0
  491. package/src/models/send-webhook-dto.d.ts +37 -0
  492. package/src/models/send-webhook-dto.js +16 -0
  493. package/src/models/send-webhook-dto.js.map +1 -0
  494. package/src/models/session-execute-request.d.ts +37 -0
  495. package/src/models/session-execute-request.js +16 -0
  496. package/src/models/session-execute-request.js.map +1 -0
  497. package/src/models/session-execute-response.d.ts +36 -0
  498. package/src/models/session-execute-response.js +16 -0
  499. package/src/models/session-execute-response.js.map +1 -0
  500. package/src/models/session.d.ts +31 -0
  501. package/src/models/session.js +16 -0
  502. package/src/models/session.js.map +1 -0
  503. package/src/models/set-snapshot-general-status-dto.d.ts +24 -0
  504. package/src/models/set-snapshot-general-status-dto.js +16 -0
  505. package/src/models/set-snapshot-general-status-dto.js.map +1 -0
  506. package/src/models/signed-port-preview-url.d.ts +42 -0
  507. package/src/models/signed-port-preview-url.js +16 -0
  508. package/src/models/signed-port-preview-url.js.map +1 -0
  509. package/src/models/snapshot-dto.d.ts +140 -0
  510. package/src/models/snapshot-dto.js +16 -0
  511. package/src/models/snapshot-dto.js.map +1 -0
  512. package/src/models/snapshot-manager-credentials.d.ts +30 -0
  513. package/src/models/snapshot-manager-credentials.js +16 -0
  514. package/src/models/snapshot-manager-credentials.js.map +1 -0
  515. package/src/models/snapshot-state.d.ts +27 -0
  516. package/src/models/snapshot-state.js +32 -0
  517. package/src/models/snapshot-state.js.map +1 -0
  518. package/src/models/ssh-access-dto.d.ts +60 -0
  519. package/src/models/ssh-access-dto.js +16 -0
  520. package/src/models/ssh-access-dto.js.map +1 -0
  521. package/src/models/ssh-access-validation-dto.d.ts +30 -0
  522. package/src/models/ssh-access-validation-dto.js +16 -0
  523. package/src/models/ssh-access-validation-dto.js.map +1 -0
  524. package/src/models/storage-access-dto.d.ts +54 -0
  525. package/src/models/storage-access-dto.js +16 -0
  526. package/src/models/storage-access-dto.js.map +1 -0
  527. package/src/models/toolbox-proxy-url.d.ts +24 -0
  528. package/src/models/toolbox-proxy-url.js +16 -0
  529. package/src/models/toolbox-proxy-url.js.map +1 -0
  530. package/src/models/trace-span.d.ts +74 -0
  531. package/src/models/trace-span.js +16 -0
  532. package/src/models/trace-span.js.map +1 -0
  533. package/src/models/trace-summary.d.ts +60 -0
  534. package/src/models/trace-summary.js +16 -0
  535. package/src/models/trace-summary.js.map +1 -0
  536. package/src/models/update-docker-registry.d.ts +48 -0
  537. package/src/models/update-docker-registry.js +16 -0
  538. package/src/models/update-docker-registry.js.map +1 -0
  539. package/src/models/update-job-status.d.ts +37 -0
  540. package/src/models/update-job-status.js +16 -0
  541. package/src/models/update-job-status.js.map +1 -0
  542. package/src/models/update-organization-default-region.d.ts +24 -0
  543. package/src/models/update-organization-default-region.js +16 -0
  544. package/src/models/update-organization-default-region.js.map +1 -0
  545. package/src/models/update-organization-invitation.d.ts +41 -0
  546. package/src/models/update-organization-invitation.js +21 -0
  547. package/src/models/update-organization-invitation.js.map +1 -0
  548. package/src/models/update-organization-member-access.d.ts +35 -0
  549. package/src/models/update-organization-member-access.js +21 -0
  550. package/src/models/update-organization-member-access.js.map +1 -0
  551. package/src/models/update-organization-quota.d.ts +96 -0
  552. package/src/models/update-organization-quota.js +16 -0
  553. package/src/models/update-organization-quota.js.map +1 -0
  554. package/src/models/update-organization-region-quota.d.ts +36 -0
  555. package/src/models/update-organization-region-quota.js +16 -0
  556. package/src/models/update-organization-region-quota.js.map +1 -0
  557. package/src/models/update-organization-role.d.ts +54 -0
  558. package/src/models/update-organization-role.js +34 -0
  559. package/src/models/update-organization-role.js.map +1 -0
  560. package/src/models/update-region.d.ts +36 -0
  561. package/src/models/update-region.js +16 -0
  562. package/src/models/update-region.js.map +1 -0
  563. package/src/models/update-sandbox-state-dto.d.ts +56 -0
  564. package/src/models/update-sandbox-state-dto.js +36 -0
  565. package/src/models/update-sandbox-state-dto.js.map +1 -0
  566. package/src/models/url.d.ts +24 -0
  567. package/src/models/url.js +16 -0
  568. package/src/models/url.js.map +1 -0
  569. package/src/models/user-home-dir-response.d.ts +24 -0
  570. package/src/models/user-home-dir-response.js +16 -0
  571. package/src/models/user-home-dir-response.js.map +1 -0
  572. package/src/models/user-public-key.d.ts +30 -0
  573. package/src/models/user-public-key.js +16 -0
  574. package/src/models/user-public-key.js.map +1 -0
  575. package/src/models/user.d.ts +49 -0
  576. package/src/models/user.js +16 -0
  577. package/src/models/user.js.map +1 -0
  578. package/src/models/volume-dto.d.ts +67 -0
  579. package/src/models/volume-dto.js +16 -0
  580. package/src/models/volume-dto.js.map +1 -0
  581. package/src/models/volume-state.d.ts +26 -0
  582. package/src/models/volume-state.js +31 -0
  583. package/src/models/volume-state.js.map +1 -0
  584. package/src/models/webhook-app-portal-access.d.ts +30 -0
  585. package/src/models/webhook-app-portal-access.js +16 -0
  586. package/src/models/webhook-app-portal-access.js.map +1 -0
  587. package/src/models/webhook-controller-get-status200-response.d.ts +24 -0
  588. package/src/models/webhook-controller-get-status200-response.js +16 -0
  589. package/src/models/webhook-controller-get-status200-response.js.map +1 -0
  590. package/src/models/webhook-event.d.ts +26 -0
  591. package/src/models/webhook-event.js +31 -0
  592. package/src/models/webhook-event.js.map +1 -0
  593. package/src/models/webhook-initialization-status.d.ts +54 -0
  594. package/src/models/webhook-initialization-status.js +16 -0
  595. package/src/models/webhook-initialization-status.js.map +1 -0
  596. package/src/models/windows-response.d.ts +30 -0
  597. package/src/models/windows-response.js +16 -0
  598. package/src/models/windows-response.js.map +1 -0
  599. package/src/models/work-dir-response.d.ts +24 -0
  600. package/src/models/work-dir-response.js +16 -0
  601. package/src/models/work-dir-response.js.map +1 -0
  602. package/src/models/workspace-port-preview-url.d.ts +30 -0
  603. package/src/models/workspace-port-preview-url.js +16 -0
  604. package/src/models/workspace-port-preview-url.js.map +1 -0
  605. package/src/models/workspace.d.ts +266 -0
  606. package/src/models/workspace.js +36 -0
  607. package/src/models/workspace.js.map +1 -0
@@ -0,0 +1,2871 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona
6
+ * Daytona AI platform API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: support@daytona.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ListSandboxesPaginatedOrderEnum = exports.ListSandboxesPaginatedSortEnum = exports.ListSandboxesPaginatedStatesEnum = exports.SandboxApi = exports.SandboxApiFactory = exports.SandboxApiFp = exports.SandboxApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * SandboxApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const SandboxApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ *
31
+ * @summary Archive sandbox
32
+ * @param {string} sandboxIdOrName
33
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ archiveSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
38
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
39
+ (0, common_1.assertParamExists)('archiveSandbox', 'sandboxIdOrName', sandboxIdOrName);
40
+ const localVarPath = `/sandbox/{sandboxIdOrName}/archive`
41
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
49
+ const localVarHeaderParameter = {};
50
+ const localVarQueryParameter = {};
51
+ // authentication bearer required
52
+ // http bearer authentication required
53
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
54
+ // authentication oauth2 required
55
+ if (xDaytonaOrganizationID != null) {
56
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
57
+ }
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
61
+ return {
62
+ url: (0, common_1.toPathString)(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ },
66
+ /**
67
+ *
68
+ * @summary Create sandbox backup
69
+ * @param {string} sandboxIdOrName ID or name of the sandbox
70
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ createBackup: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
75
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
76
+ (0, common_1.assertParamExists)('createBackup', 'sandboxIdOrName', sandboxIdOrName);
77
+ const localVarPath = `/sandbox/{sandboxIdOrName}/backup`
78
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication bearer required
89
+ // http bearer authentication required
90
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
91
+ // authentication oauth2 required
92
+ if (xDaytonaOrganizationID != null) {
93
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
94
+ }
95
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
98
+ return {
99
+ url: (0, common_1.toPathString)(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ },
103
+ /**
104
+ *
105
+ * @summary Create a new sandbox
106
+ * @param {CreateSandbox} createSandbox
107
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ createSandbox: async (createSandbox, xDaytonaOrganizationID, options = {}) => {
112
+ // verify required parameter 'createSandbox' is not null or undefined
113
+ (0, common_1.assertParamExists)('createSandbox', 'createSandbox', createSandbox);
114
+ const localVarPath = `/sandbox`;
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
122
+ const localVarHeaderParameter = {};
123
+ const localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
127
+ // authentication oauth2 required
128
+ localVarHeaderParameter['Content-Type'] = 'application/json';
129
+ if (xDaytonaOrganizationID != null) {
130
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
131
+ }
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSandbox, localVarRequestOptions, configuration);
136
+ return {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ *
143
+ * @summary Create SSH access for sandbox
144
+ * @param {string} sandboxIdOrName ID or name of the sandbox
145
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
146
+ * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ createSshAccess: async (sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options = {}) => {
151
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
152
+ (0, common_1.assertParamExists)('createSshAccess', 'sandboxIdOrName', sandboxIdOrName);
153
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ssh-access`
154
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
155
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
156
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
157
+ let baseOptions;
158
+ if (configuration) {
159
+ baseOptions = configuration.baseOptions;
160
+ }
161
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
162
+ const localVarHeaderParameter = {};
163
+ const localVarQueryParameter = {};
164
+ // authentication bearer required
165
+ // http bearer authentication required
166
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
167
+ // authentication oauth2 required
168
+ if (expiresInMinutes !== undefined) {
169
+ localVarQueryParameter['expiresInMinutes'] = expiresInMinutes;
170
+ }
171
+ if (xDaytonaOrganizationID != null) {
172
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
173
+ }
174
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
177
+ return {
178
+ url: (0, common_1.toPathString)(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ *
184
+ * @summary Delete sandbox
185
+ * @param {string} sandboxIdOrName ID or name of the sandbox
186
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ deleteSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
191
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
192
+ (0, common_1.assertParamExists)('deleteSandbox', 'sandboxIdOrName', sandboxIdOrName);
193
+ const localVarPath = `/sandbox/{sandboxIdOrName}`
194
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
197
+ let baseOptions;
198
+ if (configuration) {
199
+ baseOptions = configuration.baseOptions;
200
+ }
201
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
202
+ const localVarHeaderParameter = {};
203
+ const localVarQueryParameter = {};
204
+ // authentication bearer required
205
+ // http bearer authentication required
206
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
207
+ // authentication oauth2 required
208
+ if (xDaytonaOrganizationID != null) {
209
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
210
+ }
211
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
214
+ return {
215
+ url: (0, common_1.toPathString)(localVarUrlObj),
216
+ options: localVarRequestOptions,
217
+ };
218
+ },
219
+ /**
220
+ *
221
+ * @summary Expire signed preview URL for a sandbox port
222
+ * @param {string} sandboxIdOrName ID or name of the sandbox
223
+ * @param {number} port Port number to expire signed preview URL for
224
+ * @param {string} token Token to expire signed preview URL for
225
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ expireSignedPortPreviewUrl: async (sandboxIdOrName, port, token, xDaytonaOrganizationID, options = {}) => {
230
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
231
+ (0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
232
+ // verify required parameter 'port' is not null or undefined
233
+ (0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'port', port);
234
+ // verify required parameter 'token' is not null or undefined
235
+ (0, common_1.assertParamExists)('expireSignedPortPreviewUrl', 'token', token);
236
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire`
237
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
238
+ .replace(`{${"port"}}`, encodeURIComponent(String(port)))
239
+ .replace(`{${"token"}}`, encodeURIComponent(String(token)));
240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
241
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
242
+ let baseOptions;
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ }
246
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
247
+ const localVarHeaderParameter = {};
248
+ const localVarQueryParameter = {};
249
+ // authentication bearer required
250
+ // http bearer authentication required
251
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
252
+ // authentication oauth2 required
253
+ if (xDaytonaOrganizationID != null) {
254
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
255
+ }
256
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
259
+ return {
260
+ url: (0, common_1.toPathString)(localVarUrlObj),
261
+ options: localVarRequestOptions,
262
+ };
263
+ },
264
+ /**
265
+ * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
266
+ * @summary Get build logs
267
+ * @param {string} sandboxIdOrName ID or name of the sandbox
268
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
269
+ * @param {boolean} [follow] Whether to follow the logs stream
270
+ * @param {*} [options] Override http request option.
271
+ * @deprecated
272
+ * @throws {RequiredError}
273
+ */
274
+ getBuildLogs: async (sandboxIdOrName, xDaytonaOrganizationID, follow, options = {}) => {
275
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
276
+ (0, common_1.assertParamExists)('getBuildLogs', 'sandboxIdOrName', sandboxIdOrName);
277
+ const localVarPath = `/sandbox/{sandboxIdOrName}/build-logs`
278
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
279
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
280
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
281
+ let baseOptions;
282
+ if (configuration) {
283
+ baseOptions = configuration.baseOptions;
284
+ }
285
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
286
+ const localVarHeaderParameter = {};
287
+ const localVarQueryParameter = {};
288
+ // authentication bearer required
289
+ // http bearer authentication required
290
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
291
+ // authentication oauth2 required
292
+ if (follow !== undefined) {
293
+ localVarQueryParameter['follow'] = follow;
294
+ }
295
+ if (xDaytonaOrganizationID != null) {
296
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
297
+ }
298
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
301
+ return {
302
+ url: (0, common_1.toPathString)(localVarUrlObj),
303
+ options: localVarRequestOptions,
304
+ };
305
+ },
306
+ /**
307
+ *
308
+ * @summary Get build logs URL
309
+ * @param {string} sandboxIdOrName ID or name of the sandbox
310
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ getBuildLogsUrl: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
315
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
316
+ (0, common_1.assertParamExists)('getBuildLogsUrl', 'sandboxIdOrName', sandboxIdOrName);
317
+ const localVarPath = `/sandbox/{sandboxIdOrName}/build-logs-url`
318
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
321
+ let baseOptions;
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ }
325
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
326
+ const localVarHeaderParameter = {};
327
+ const localVarQueryParameter = {};
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
331
+ // authentication oauth2 required
332
+ if (xDaytonaOrganizationID != null) {
333
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
334
+ }
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
338
+ return {
339
+ url: (0, common_1.toPathString)(localVarUrlObj),
340
+ options: localVarRequestOptions,
341
+ };
342
+ },
343
+ /**
344
+ *
345
+ * @summary Get preview URL for a sandbox port
346
+ * @param {string} sandboxIdOrName ID or name of the sandbox
347
+ * @param {number} port Port number to get preview URL for
348
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ getPortPreviewUrl: async (sandboxIdOrName, port, xDaytonaOrganizationID, options = {}) => {
353
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
354
+ (0, common_1.assertParamExists)('getPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
355
+ // verify required parameter 'port' is not null or undefined
356
+ (0, common_1.assertParamExists)('getPortPreviewUrl', 'port', port);
357
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/preview-url`
358
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
359
+ .replace(`{${"port"}}`, encodeURIComponent(String(port)));
360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
361
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
362
+ let baseOptions;
363
+ if (configuration) {
364
+ baseOptions = configuration.baseOptions;
365
+ }
366
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
367
+ const localVarHeaderParameter = {};
368
+ const localVarQueryParameter = {};
369
+ // authentication bearer required
370
+ // http bearer authentication required
371
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
372
+ // authentication oauth2 required
373
+ if (xDaytonaOrganizationID != null) {
374
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
375
+ }
376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
378
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
379
+ return {
380
+ url: (0, common_1.toPathString)(localVarUrlObj),
381
+ options: localVarRequestOptions,
382
+ };
383
+ },
384
+ /**
385
+ *
386
+ * @summary Get sandbox details
387
+ * @param {string} sandboxIdOrName ID or name of the sandbox
388
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
389
+ * @param {boolean} [verbose] Include verbose output
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ getSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, verbose, options = {}) => {
394
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
395
+ (0, common_1.assertParamExists)('getSandbox', 'sandboxIdOrName', sandboxIdOrName);
396
+ const localVarPath = `/sandbox/{sandboxIdOrName}`
397
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
398
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
399
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
400
+ let baseOptions;
401
+ if (configuration) {
402
+ baseOptions = configuration.baseOptions;
403
+ }
404
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
405
+ const localVarHeaderParameter = {};
406
+ const localVarQueryParameter = {};
407
+ // authentication bearer required
408
+ // http bearer authentication required
409
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
410
+ // authentication oauth2 required
411
+ if (verbose !== undefined) {
412
+ localVarQueryParameter['verbose'] = verbose;
413
+ }
414
+ if (xDaytonaOrganizationID != null) {
415
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
416
+ }
417
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
420
+ return {
421
+ url: (0, common_1.toPathString)(localVarUrlObj),
422
+ options: localVarRequestOptions,
423
+ };
424
+ },
425
+ /**
426
+ * Retrieve OTEL logs for a sandbox within a time range
427
+ * @summary Get sandbox logs
428
+ * @param {string} sandboxId ID of the sandbox
429
+ * @param {Date} from Start of time range (ISO 8601)
430
+ * @param {Date} to End of time range (ISO 8601)
431
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
432
+ * @param {number} [page] Page number (1-indexed)
433
+ * @param {number} [limit] Number of items per page
434
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
435
+ * @param {string} [search] Search in log body
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ getSandboxLogs: async (sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options = {}) => {
440
+ // verify required parameter 'sandboxId' is not null or undefined
441
+ (0, common_1.assertParamExists)('getSandboxLogs', 'sandboxId', sandboxId);
442
+ // verify required parameter 'from' is not null or undefined
443
+ (0, common_1.assertParamExists)('getSandboxLogs', 'from', from);
444
+ // verify required parameter 'to' is not null or undefined
445
+ (0, common_1.assertParamExists)('getSandboxLogs', 'to', to);
446
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/logs`
447
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
449
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
450
+ let baseOptions;
451
+ if (configuration) {
452
+ baseOptions = configuration.baseOptions;
453
+ }
454
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
455
+ const localVarHeaderParameter = {};
456
+ const localVarQueryParameter = {};
457
+ // authentication bearer required
458
+ // http bearer authentication required
459
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
460
+ // authentication oauth2 required
461
+ if (from !== undefined) {
462
+ localVarQueryParameter['from'] = (from instanceof Date) ?
463
+ from.toISOString() :
464
+ from;
465
+ }
466
+ if (to !== undefined) {
467
+ localVarQueryParameter['to'] = (to instanceof Date) ?
468
+ to.toISOString() :
469
+ to;
470
+ }
471
+ if (page !== undefined) {
472
+ localVarQueryParameter['page'] = page;
473
+ }
474
+ if (limit !== undefined) {
475
+ localVarQueryParameter['limit'] = limit;
476
+ }
477
+ if (severities) {
478
+ localVarQueryParameter['severities'] = severities;
479
+ }
480
+ if (search !== undefined) {
481
+ localVarQueryParameter['search'] = search;
482
+ }
483
+ if (xDaytonaOrganizationID != null) {
484
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
485
+ }
486
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
489
+ return {
490
+ url: (0, common_1.toPathString)(localVarUrlObj),
491
+ options: localVarRequestOptions,
492
+ };
493
+ },
494
+ /**
495
+ * Retrieve OTEL metrics for a sandbox within a time range
496
+ * @summary Get sandbox metrics
497
+ * @param {string} sandboxId ID of the sandbox
498
+ * @param {Date} from Start of time range (ISO 8601)
499
+ * @param {Date} to End of time range (ISO 8601)
500
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
501
+ * @param {Array<string>} [metricNames] Filter by metric names
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ getSandboxMetrics: async (sandboxId, from, to, xDaytonaOrganizationID, metricNames, options = {}) => {
506
+ // verify required parameter 'sandboxId' is not null or undefined
507
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'sandboxId', sandboxId);
508
+ // verify required parameter 'from' is not null or undefined
509
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'from', from);
510
+ // verify required parameter 'to' is not null or undefined
511
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'to', to);
512
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/metrics`
513
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ }
520
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
521
+ const localVarHeaderParameter = {};
522
+ const localVarQueryParameter = {};
523
+ // authentication bearer required
524
+ // http bearer authentication required
525
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
526
+ // authentication oauth2 required
527
+ if (from !== undefined) {
528
+ localVarQueryParameter['from'] = (from instanceof Date) ?
529
+ from.toISOString() :
530
+ from;
531
+ }
532
+ if (to !== undefined) {
533
+ localVarQueryParameter['to'] = (to instanceof Date) ?
534
+ to.toISOString() :
535
+ to;
536
+ }
537
+ if (metricNames) {
538
+ localVarQueryParameter['metricNames'] = metricNames;
539
+ }
540
+ if (xDaytonaOrganizationID != null) {
541
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
542
+ }
543
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
545
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
546
+ return {
547
+ url: (0, common_1.toPathString)(localVarUrlObj),
548
+ options: localVarRequestOptions,
549
+ };
550
+ },
551
+ /**
552
+ * Retrieve all spans for a specific trace
553
+ * @summary Get trace spans
554
+ * @param {string} sandboxId ID of the sandbox
555
+ * @param {string} traceId ID of the trace
556
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ getSandboxTraceSpans: async (sandboxId, traceId, xDaytonaOrganizationID, options = {}) => {
561
+ // verify required parameter 'sandboxId' is not null or undefined
562
+ (0, common_1.assertParamExists)('getSandboxTraceSpans', 'sandboxId', sandboxId);
563
+ // verify required parameter 'traceId' is not null or undefined
564
+ (0, common_1.assertParamExists)('getSandboxTraceSpans', 'traceId', traceId);
565
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/traces/{traceId}`
566
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)))
567
+ .replace(`{${"traceId"}}`, encodeURIComponent(String(traceId)));
568
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
569
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
570
+ let baseOptions;
571
+ if (configuration) {
572
+ baseOptions = configuration.baseOptions;
573
+ }
574
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
575
+ const localVarHeaderParameter = {};
576
+ const localVarQueryParameter = {};
577
+ // authentication bearer required
578
+ // http bearer authentication required
579
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
580
+ // authentication oauth2 required
581
+ if (xDaytonaOrganizationID != null) {
582
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
583
+ }
584
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
585
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
586
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
587
+ return {
588
+ url: (0, common_1.toPathString)(localVarUrlObj),
589
+ options: localVarRequestOptions,
590
+ };
591
+ },
592
+ /**
593
+ * Retrieve OTEL traces for a sandbox within a time range
594
+ * @summary Get sandbox traces
595
+ * @param {string} sandboxId ID of the sandbox
596
+ * @param {Date} from Start of time range (ISO 8601)
597
+ * @param {Date} to End of time range (ISO 8601)
598
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
599
+ * @param {number} [page] Page number (1-indexed)
600
+ * @param {number} [limit] Number of items per page
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ getSandboxTraces: async (sandboxId, from, to, xDaytonaOrganizationID, page, limit, options = {}) => {
605
+ // verify required parameter 'sandboxId' is not null or undefined
606
+ (0, common_1.assertParamExists)('getSandboxTraces', 'sandboxId', sandboxId);
607
+ // verify required parameter 'from' is not null or undefined
608
+ (0, common_1.assertParamExists)('getSandboxTraces', 'from', from);
609
+ // verify required parameter 'to' is not null or undefined
610
+ (0, common_1.assertParamExists)('getSandboxTraces', 'to', to);
611
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/traces`
612
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
613
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
614
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
615
+ let baseOptions;
616
+ if (configuration) {
617
+ baseOptions = configuration.baseOptions;
618
+ }
619
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
620
+ const localVarHeaderParameter = {};
621
+ const localVarQueryParameter = {};
622
+ // authentication bearer required
623
+ // http bearer authentication required
624
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
625
+ // authentication oauth2 required
626
+ if (from !== undefined) {
627
+ localVarQueryParameter['from'] = (from instanceof Date) ?
628
+ from.toISOString() :
629
+ from;
630
+ }
631
+ if (to !== undefined) {
632
+ localVarQueryParameter['to'] = (to instanceof Date) ?
633
+ to.toISOString() :
634
+ to;
635
+ }
636
+ if (page !== undefined) {
637
+ localVarQueryParameter['page'] = page;
638
+ }
639
+ if (limit !== undefined) {
640
+ localVarQueryParameter['limit'] = limit;
641
+ }
642
+ if (xDaytonaOrganizationID != null) {
643
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
644
+ }
645
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
647
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
648
+ return {
649
+ url: (0, common_1.toPathString)(localVarUrlObj),
650
+ options: localVarRequestOptions,
651
+ };
652
+ },
653
+ /**
654
+ *
655
+ * @summary Get sandboxes for the authenticated runner
656
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
657
+ * @param {string} [states] Comma-separated list of sandbox states to filter by
658
+ * @param {boolean} [skipReconcilingSandboxes] Skip sandboxes where state differs from desired state
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ getSandboxesForRunner: async (xDaytonaOrganizationID, states, skipReconcilingSandboxes, options = {}) => {
663
+ const localVarPath = `/sandbox/for-runner`;
664
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
665
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
666
+ let baseOptions;
667
+ if (configuration) {
668
+ baseOptions = configuration.baseOptions;
669
+ }
670
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
671
+ const localVarHeaderParameter = {};
672
+ const localVarQueryParameter = {};
673
+ // authentication bearer required
674
+ // http bearer authentication required
675
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
676
+ // authentication oauth2 required
677
+ if (states !== undefined) {
678
+ localVarQueryParameter['states'] = states;
679
+ }
680
+ if (skipReconcilingSandboxes !== undefined) {
681
+ localVarQueryParameter['skipReconcilingSandboxes'] = skipReconcilingSandboxes;
682
+ }
683
+ if (xDaytonaOrganizationID != null) {
684
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
685
+ }
686
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
688
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
689
+ return {
690
+ url: (0, common_1.toPathString)(localVarUrlObj),
691
+ options: localVarRequestOptions,
692
+ };
693
+ },
694
+ /**
695
+ *
696
+ * @summary Get signed preview URL for a sandbox port
697
+ * @param {string} sandboxIdOrName ID or name of the sandbox
698
+ * @param {number} port Port number to get signed preview URL for
699
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
700
+ * @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ */
704
+ getSignedPortPreviewUrl: async (sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options = {}) => {
705
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
706
+ (0, common_1.assertParamExists)('getSignedPortPreviewUrl', 'sandboxIdOrName', sandboxIdOrName);
707
+ // verify required parameter 'port' is not null or undefined
708
+ (0, common_1.assertParamExists)('getSignedPortPreviewUrl', 'port', port);
709
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url`
710
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
711
+ .replace(`{${"port"}}`, encodeURIComponent(String(port)));
712
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
713
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
714
+ let baseOptions;
715
+ if (configuration) {
716
+ baseOptions = configuration.baseOptions;
717
+ }
718
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
719
+ const localVarHeaderParameter = {};
720
+ const localVarQueryParameter = {};
721
+ // authentication bearer required
722
+ // http bearer authentication required
723
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
724
+ // authentication oauth2 required
725
+ if (expiresInSeconds !== undefined) {
726
+ localVarQueryParameter['expiresInSeconds'] = expiresInSeconds;
727
+ }
728
+ if (xDaytonaOrganizationID != null) {
729
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
730
+ }
731
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
733
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
734
+ return {
735
+ url: (0, common_1.toPathString)(localVarUrlObj),
736
+ options: localVarRequestOptions,
737
+ };
738
+ },
739
+ /**
740
+ *
741
+ * @summary Get toolbox proxy URL for a sandbox
742
+ * @param {string} sandboxId ID of the sandbox
743
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ getToolboxProxyUrl: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
748
+ // verify required parameter 'sandboxId' is not null or undefined
749
+ (0, common_1.assertParamExists)('getToolboxProxyUrl', 'sandboxId', sandboxId);
750
+ const localVarPath = `/sandbox/{sandboxId}/toolbox-proxy-url`
751
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
752
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
753
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
754
+ let baseOptions;
755
+ if (configuration) {
756
+ baseOptions = configuration.baseOptions;
757
+ }
758
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
759
+ const localVarHeaderParameter = {};
760
+ const localVarQueryParameter = {};
761
+ // authentication bearer required
762
+ // http bearer authentication required
763
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
764
+ // authentication oauth2 required
765
+ if (xDaytonaOrganizationID != null) {
766
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
767
+ }
768
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
770
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
771
+ return {
772
+ url: (0, common_1.toPathString)(localVarUrlObj),
773
+ options: localVarRequestOptions,
774
+ };
775
+ },
776
+ /**
777
+ *
778
+ * @summary List all sandboxes
779
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
780
+ * @param {boolean} [verbose] Include verbose output
781
+ * @param {string} [labels] JSON encoded labels to filter by
782
+ * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ */
786
+ listSandboxes: async (xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options = {}) => {
787
+ const localVarPath = `/sandbox`;
788
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
789
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
790
+ let baseOptions;
791
+ if (configuration) {
792
+ baseOptions = configuration.baseOptions;
793
+ }
794
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
795
+ const localVarHeaderParameter = {};
796
+ const localVarQueryParameter = {};
797
+ // authentication bearer required
798
+ // http bearer authentication required
799
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
800
+ // authentication oauth2 required
801
+ if (verbose !== undefined) {
802
+ localVarQueryParameter['verbose'] = verbose;
803
+ }
804
+ if (labels !== undefined) {
805
+ localVarQueryParameter['labels'] = labels;
806
+ }
807
+ if (includeErroredDeleted !== undefined) {
808
+ localVarQueryParameter['includeErroredDeleted'] = includeErroredDeleted;
809
+ }
810
+ if (xDaytonaOrganizationID != null) {
811
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
812
+ }
813
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
814
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
815
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
816
+ return {
817
+ url: (0, common_1.toPathString)(localVarUrlObj),
818
+ options: localVarRequestOptions,
819
+ };
820
+ },
821
+ /**
822
+ *
823
+ * @summary List all sandboxes paginated
824
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
825
+ * @param {number} [page] Page number of the results
826
+ * @param {number} [limit] Number of results per page
827
+ * @param {string} [id] Filter by partial ID match
828
+ * @param {string} [name] Filter by partial name match
829
+ * @param {string} [labels] JSON encoded labels to filter by
830
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
831
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
832
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
833
+ * @param {Array<string>} [regions] List of regions to filter by
834
+ * @param {number} [minCpu] Minimum CPU
835
+ * @param {number} [maxCpu] Maximum CPU
836
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
837
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
838
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
839
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
840
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
841
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
842
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
843
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ listSandboxesPaginated: async (xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options = {}) => {
848
+ const localVarPath = `/sandbox/paginated`;
849
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
850
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
851
+ let baseOptions;
852
+ if (configuration) {
853
+ baseOptions = configuration.baseOptions;
854
+ }
855
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
856
+ const localVarHeaderParameter = {};
857
+ const localVarQueryParameter = {};
858
+ // authentication bearer required
859
+ // http bearer authentication required
860
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
861
+ // authentication oauth2 required
862
+ if (page !== undefined) {
863
+ localVarQueryParameter['page'] = page;
864
+ }
865
+ if (limit !== undefined) {
866
+ localVarQueryParameter['limit'] = limit;
867
+ }
868
+ if (id !== undefined) {
869
+ localVarQueryParameter['id'] = id;
870
+ }
871
+ if (name !== undefined) {
872
+ localVarQueryParameter['name'] = name;
873
+ }
874
+ if (labels !== undefined) {
875
+ localVarQueryParameter['labels'] = labels;
876
+ }
877
+ if (includeErroredDeleted !== undefined) {
878
+ localVarQueryParameter['includeErroredDeleted'] = includeErroredDeleted;
879
+ }
880
+ if (states) {
881
+ localVarQueryParameter['states'] = states;
882
+ }
883
+ if (snapshots) {
884
+ localVarQueryParameter['snapshots'] = snapshots;
885
+ }
886
+ if (regions) {
887
+ localVarQueryParameter['regions'] = regions;
888
+ }
889
+ if (minCpu !== undefined) {
890
+ localVarQueryParameter['minCpu'] = minCpu;
891
+ }
892
+ if (maxCpu !== undefined) {
893
+ localVarQueryParameter['maxCpu'] = maxCpu;
894
+ }
895
+ if (minMemoryGiB !== undefined) {
896
+ localVarQueryParameter['minMemoryGiB'] = minMemoryGiB;
897
+ }
898
+ if (maxMemoryGiB !== undefined) {
899
+ localVarQueryParameter['maxMemoryGiB'] = maxMemoryGiB;
900
+ }
901
+ if (minDiskGiB !== undefined) {
902
+ localVarQueryParameter['minDiskGiB'] = minDiskGiB;
903
+ }
904
+ if (maxDiskGiB !== undefined) {
905
+ localVarQueryParameter['maxDiskGiB'] = maxDiskGiB;
906
+ }
907
+ if (lastEventAfter !== undefined) {
908
+ localVarQueryParameter['lastEventAfter'] = (lastEventAfter instanceof Date) ?
909
+ lastEventAfter.toISOString() :
910
+ lastEventAfter;
911
+ }
912
+ if (lastEventBefore !== undefined) {
913
+ localVarQueryParameter['lastEventBefore'] = (lastEventBefore instanceof Date) ?
914
+ lastEventBefore.toISOString() :
915
+ lastEventBefore;
916
+ }
917
+ if (sort !== undefined) {
918
+ localVarQueryParameter['sort'] = sort;
919
+ }
920
+ if (order !== undefined) {
921
+ localVarQueryParameter['order'] = order;
922
+ }
923
+ if (xDaytonaOrganizationID != null) {
924
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
925
+ }
926
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
927
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
929
+ return {
930
+ url: (0, common_1.toPathString)(localVarUrlObj),
931
+ options: localVarRequestOptions,
932
+ };
933
+ },
934
+ /**
935
+ *
936
+ * @summary Recover sandbox from error state
937
+ * @param {string} sandboxIdOrName ID or name of the sandbox
938
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ recoverSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
943
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
944
+ (0, common_1.assertParamExists)('recoverSandbox', 'sandboxIdOrName', sandboxIdOrName);
945
+ const localVarPath = `/sandbox/{sandboxIdOrName}/recover`
946
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
947
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
948
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
949
+ let baseOptions;
950
+ if (configuration) {
951
+ baseOptions = configuration.baseOptions;
952
+ }
953
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
954
+ const localVarHeaderParameter = {};
955
+ const localVarQueryParameter = {};
956
+ // authentication bearer required
957
+ // http bearer authentication required
958
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
959
+ // authentication oauth2 required
960
+ if (xDaytonaOrganizationID != null) {
961
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
962
+ }
963
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
964
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
965
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
966
+ return {
967
+ url: (0, common_1.toPathString)(localVarUrlObj),
968
+ options: localVarRequestOptions,
969
+ };
970
+ },
971
+ /**
972
+ *
973
+ * @summary Replace sandbox labels
974
+ * @param {string} sandboxIdOrName ID or name of the sandbox
975
+ * @param {SandboxLabels} sandboxLabels
976
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ replaceLabels: async (sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options = {}) => {
981
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
982
+ (0, common_1.assertParamExists)('replaceLabels', 'sandboxIdOrName', sandboxIdOrName);
983
+ // verify required parameter 'sandboxLabels' is not null or undefined
984
+ (0, common_1.assertParamExists)('replaceLabels', 'sandboxLabels', sandboxLabels);
985
+ const localVarPath = `/sandbox/{sandboxIdOrName}/labels`
986
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
987
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
988
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
989
+ let baseOptions;
990
+ if (configuration) {
991
+ baseOptions = configuration.baseOptions;
992
+ }
993
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
994
+ const localVarHeaderParameter = {};
995
+ const localVarQueryParameter = {};
996
+ // authentication bearer required
997
+ // http bearer authentication required
998
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
999
+ // authentication oauth2 required
1000
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1001
+ if (xDaytonaOrganizationID != null) {
1002
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1003
+ }
1004
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1005
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1006
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1007
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sandboxLabels, localVarRequestOptions, configuration);
1008
+ return {
1009
+ url: (0, common_1.toPathString)(localVarUrlObj),
1010
+ options: localVarRequestOptions,
1011
+ };
1012
+ },
1013
+ /**
1014
+ *
1015
+ * @summary Resize sandbox resources
1016
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1017
+ * @param {ResizeSandbox} resizeSandbox
1018
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ resizeSandbox: async (sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options = {}) => {
1023
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1024
+ (0, common_1.assertParamExists)('resizeSandbox', 'sandboxIdOrName', sandboxIdOrName);
1025
+ // verify required parameter 'resizeSandbox' is not null or undefined
1026
+ (0, common_1.assertParamExists)('resizeSandbox', 'resizeSandbox', resizeSandbox);
1027
+ const localVarPath = `/sandbox/{sandboxIdOrName}/resize`
1028
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
1029
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1030
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1031
+ let baseOptions;
1032
+ if (configuration) {
1033
+ baseOptions = configuration.baseOptions;
1034
+ }
1035
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1036
+ const localVarHeaderParameter = {};
1037
+ const localVarQueryParameter = {};
1038
+ // authentication bearer required
1039
+ // http bearer authentication required
1040
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1041
+ // authentication oauth2 required
1042
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1043
+ if (xDaytonaOrganizationID != null) {
1044
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1045
+ }
1046
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1047
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1048
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1049
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resizeSandbox, localVarRequestOptions, configuration);
1050
+ return {
1051
+ url: (0, common_1.toPathString)(localVarUrlObj),
1052
+ options: localVarRequestOptions,
1053
+ };
1054
+ },
1055
+ /**
1056
+ *
1057
+ * @summary Revoke SSH access for sandbox
1058
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1059
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1060
+ * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1061
+ * @param {*} [options] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ revokeSshAccess: async (sandboxIdOrName, xDaytonaOrganizationID, token, options = {}) => {
1065
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1066
+ (0, common_1.assertParamExists)('revokeSshAccess', 'sandboxIdOrName', sandboxIdOrName);
1067
+ const localVarPath = `/sandbox/{sandboxIdOrName}/ssh-access`
1068
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
1069
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1070
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1071
+ let baseOptions;
1072
+ if (configuration) {
1073
+ baseOptions = configuration.baseOptions;
1074
+ }
1075
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1076
+ const localVarHeaderParameter = {};
1077
+ const localVarQueryParameter = {};
1078
+ // authentication bearer required
1079
+ // http bearer authentication required
1080
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1081
+ // authentication oauth2 required
1082
+ if (token !== undefined) {
1083
+ localVarQueryParameter['token'] = token;
1084
+ }
1085
+ if (xDaytonaOrganizationID != null) {
1086
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1087
+ }
1088
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1089
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1090
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1091
+ return {
1092
+ url: (0, common_1.toPathString)(localVarUrlObj),
1093
+ options: localVarRequestOptions,
1094
+ };
1095
+ },
1096
+ /**
1097
+ *
1098
+ * @summary Set sandbox auto-archive interval
1099
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1100
+ * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1101
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ setAutoArchiveInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
1106
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1107
+ (0, common_1.assertParamExists)('setAutoArchiveInterval', 'sandboxIdOrName', sandboxIdOrName);
1108
+ // verify required parameter 'interval' is not null or undefined
1109
+ (0, common_1.assertParamExists)('setAutoArchiveInterval', 'interval', interval);
1110
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autoarchive/{interval}`
1111
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
1112
+ .replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
1113
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1114
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1115
+ let baseOptions;
1116
+ if (configuration) {
1117
+ baseOptions = configuration.baseOptions;
1118
+ }
1119
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1120
+ const localVarHeaderParameter = {};
1121
+ const localVarQueryParameter = {};
1122
+ // authentication bearer required
1123
+ // http bearer authentication required
1124
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1125
+ // authentication oauth2 required
1126
+ if (xDaytonaOrganizationID != null) {
1127
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1128
+ }
1129
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1131
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1132
+ return {
1133
+ url: (0, common_1.toPathString)(localVarUrlObj),
1134
+ options: localVarRequestOptions,
1135
+ };
1136
+ },
1137
+ /**
1138
+ *
1139
+ * @summary Set sandbox auto-delete interval
1140
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1141
+ * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1142
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ */
1146
+ setAutoDeleteInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
1147
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1148
+ (0, common_1.assertParamExists)('setAutoDeleteInterval', 'sandboxIdOrName', sandboxIdOrName);
1149
+ // verify required parameter 'interval' is not null or undefined
1150
+ (0, common_1.assertParamExists)('setAutoDeleteInterval', 'interval', interval);
1151
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autodelete/{interval}`
1152
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
1153
+ .replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
1154
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1155
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1156
+ let baseOptions;
1157
+ if (configuration) {
1158
+ baseOptions = configuration.baseOptions;
1159
+ }
1160
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1161
+ const localVarHeaderParameter = {};
1162
+ const localVarQueryParameter = {};
1163
+ // authentication bearer required
1164
+ // http bearer authentication required
1165
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1166
+ // authentication oauth2 required
1167
+ if (xDaytonaOrganizationID != null) {
1168
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1169
+ }
1170
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1172
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1173
+ return {
1174
+ url: (0, common_1.toPathString)(localVarUrlObj),
1175
+ options: localVarRequestOptions,
1176
+ };
1177
+ },
1178
+ /**
1179
+ *
1180
+ * @summary Set sandbox auto-stop interval
1181
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1182
+ * @param {number} interval Auto-stop interval in minutes (0 to disable)
1183
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ */
1187
+ setAutostopInterval: async (sandboxIdOrName, interval, xDaytonaOrganizationID, options = {}) => {
1188
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1189
+ (0, common_1.assertParamExists)('setAutostopInterval', 'sandboxIdOrName', sandboxIdOrName);
1190
+ // verify required parameter 'interval' is not null or undefined
1191
+ (0, common_1.assertParamExists)('setAutostopInterval', 'interval', interval);
1192
+ const localVarPath = `/sandbox/{sandboxIdOrName}/autostop/{interval}`
1193
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
1194
+ .replace(`{${"interval"}}`, encodeURIComponent(String(interval)));
1195
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1196
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1197
+ let baseOptions;
1198
+ if (configuration) {
1199
+ baseOptions = configuration.baseOptions;
1200
+ }
1201
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1202
+ const localVarHeaderParameter = {};
1203
+ const localVarQueryParameter = {};
1204
+ // authentication bearer required
1205
+ // http bearer authentication required
1206
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1207
+ // authentication oauth2 required
1208
+ if (xDaytonaOrganizationID != null) {
1209
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1210
+ }
1211
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1213
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1214
+ return {
1215
+ url: (0, common_1.toPathString)(localVarUrlObj),
1216
+ options: localVarRequestOptions,
1217
+ };
1218
+ },
1219
+ /**
1220
+ *
1221
+ * @summary Start sandbox
1222
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1223
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ */
1227
+ startSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, options = {}) => {
1228
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1229
+ (0, common_1.assertParamExists)('startSandbox', 'sandboxIdOrName', sandboxIdOrName);
1230
+ const localVarPath = `/sandbox/{sandboxIdOrName}/start`
1231
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
1232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1233
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1234
+ let baseOptions;
1235
+ if (configuration) {
1236
+ baseOptions = configuration.baseOptions;
1237
+ }
1238
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1239
+ const localVarHeaderParameter = {};
1240
+ const localVarQueryParameter = {};
1241
+ // authentication bearer required
1242
+ // http bearer authentication required
1243
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1244
+ // authentication oauth2 required
1245
+ if (xDaytonaOrganizationID != null) {
1246
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1247
+ }
1248
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1250
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1251
+ return {
1252
+ url: (0, common_1.toPathString)(localVarUrlObj),
1253
+ options: localVarRequestOptions,
1254
+ };
1255
+ },
1256
+ /**
1257
+ *
1258
+ * @summary Stop sandbox
1259
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1260
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1261
+ * @param {boolean} [force] Force stop the sandbox using SIGKILL instead of SIGTERM
1262
+ * @param {*} [options] Override http request option.
1263
+ * @throws {RequiredError}
1264
+ */
1265
+ stopSandbox: async (sandboxIdOrName, xDaytonaOrganizationID, force, options = {}) => {
1266
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1267
+ (0, common_1.assertParamExists)('stopSandbox', 'sandboxIdOrName', sandboxIdOrName);
1268
+ const localVarPath = `/sandbox/{sandboxIdOrName}/stop`
1269
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)));
1270
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1271
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1272
+ let baseOptions;
1273
+ if (configuration) {
1274
+ baseOptions = configuration.baseOptions;
1275
+ }
1276
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1277
+ const localVarHeaderParameter = {};
1278
+ const localVarQueryParameter = {};
1279
+ // authentication bearer required
1280
+ // http bearer authentication required
1281
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1282
+ // authentication oauth2 required
1283
+ if (force !== undefined) {
1284
+ localVarQueryParameter['force'] = force;
1285
+ }
1286
+ if (xDaytonaOrganizationID != null) {
1287
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1288
+ }
1289
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1291
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1292
+ return {
1293
+ url: (0, common_1.toPathString)(localVarUrlObj),
1294
+ options: localVarRequestOptions,
1295
+ };
1296
+ },
1297
+ /**
1298
+ *
1299
+ * @summary Update sandbox last activity
1300
+ * @param {string} sandboxId ID of the sandbox
1301
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1302
+ * @param {*} [options] Override http request option.
1303
+ * @throws {RequiredError}
1304
+ */
1305
+ updateLastActivity: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
1306
+ // verify required parameter 'sandboxId' is not null or undefined
1307
+ (0, common_1.assertParamExists)('updateLastActivity', 'sandboxId', sandboxId);
1308
+ const localVarPath = `/sandbox/{sandboxId}/last-activity`
1309
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
1310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1311
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1312
+ let baseOptions;
1313
+ if (configuration) {
1314
+ baseOptions = configuration.baseOptions;
1315
+ }
1316
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1317
+ const localVarHeaderParameter = {};
1318
+ const localVarQueryParameter = {};
1319
+ // authentication bearer required
1320
+ // http bearer authentication required
1321
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1322
+ // authentication oauth2 required
1323
+ if (xDaytonaOrganizationID != null) {
1324
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1325
+ }
1326
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1327
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1328
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1329
+ return {
1330
+ url: (0, common_1.toPathString)(localVarUrlObj),
1331
+ options: localVarRequestOptions,
1332
+ };
1333
+ },
1334
+ /**
1335
+ *
1336
+ * @summary Update public status
1337
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1338
+ * @param {boolean} isPublic Public status to set
1339
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1340
+ * @param {*} [options] Override http request option.
1341
+ * @throws {RequiredError}
1342
+ */
1343
+ updatePublicStatus: async (sandboxIdOrName, isPublic, xDaytonaOrganizationID, options = {}) => {
1344
+ // verify required parameter 'sandboxIdOrName' is not null or undefined
1345
+ (0, common_1.assertParamExists)('updatePublicStatus', 'sandboxIdOrName', sandboxIdOrName);
1346
+ // verify required parameter 'isPublic' is not null or undefined
1347
+ (0, common_1.assertParamExists)('updatePublicStatus', 'isPublic', isPublic);
1348
+ const localVarPath = `/sandbox/{sandboxIdOrName}/public/{isPublic}`
1349
+ .replace(`{${"sandboxIdOrName"}}`, encodeURIComponent(String(sandboxIdOrName)))
1350
+ .replace(`{${"isPublic"}}`, encodeURIComponent(String(isPublic)));
1351
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1352
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1353
+ let baseOptions;
1354
+ if (configuration) {
1355
+ baseOptions = configuration.baseOptions;
1356
+ }
1357
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1358
+ const localVarHeaderParameter = {};
1359
+ const localVarQueryParameter = {};
1360
+ // authentication bearer required
1361
+ // http bearer authentication required
1362
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1363
+ // authentication oauth2 required
1364
+ if (xDaytonaOrganizationID != null) {
1365
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1366
+ }
1367
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1368
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1369
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1370
+ return {
1371
+ url: (0, common_1.toPathString)(localVarUrlObj),
1372
+ options: localVarRequestOptions,
1373
+ };
1374
+ },
1375
+ /**
1376
+ *
1377
+ * @summary Update sandbox state
1378
+ * @param {string} sandboxId ID of the sandbox
1379
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
1380
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1381
+ * @param {*} [options] Override http request option.
1382
+ * @throws {RequiredError}
1383
+ */
1384
+ updateSandboxState: async (sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options = {}) => {
1385
+ // verify required parameter 'sandboxId' is not null or undefined
1386
+ (0, common_1.assertParamExists)('updateSandboxState', 'sandboxId', sandboxId);
1387
+ // verify required parameter 'updateSandboxStateDto' is not null or undefined
1388
+ (0, common_1.assertParamExists)('updateSandboxState', 'updateSandboxStateDto', updateSandboxStateDto);
1389
+ const localVarPath = `/sandbox/{sandboxId}/state`
1390
+ .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
1391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1392
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1393
+ let baseOptions;
1394
+ if (configuration) {
1395
+ baseOptions = configuration.baseOptions;
1396
+ }
1397
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1398
+ const localVarHeaderParameter = {};
1399
+ const localVarQueryParameter = {};
1400
+ // authentication bearer required
1401
+ // http bearer authentication required
1402
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1403
+ // authentication oauth2 required
1404
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1405
+ if (xDaytonaOrganizationID != null) {
1406
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1407
+ }
1408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1410
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1411
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSandboxStateDto, localVarRequestOptions, configuration);
1412
+ return {
1413
+ url: (0, common_1.toPathString)(localVarUrlObj),
1414
+ options: localVarRequestOptions,
1415
+ };
1416
+ },
1417
+ /**
1418
+ *
1419
+ * @summary Validate SSH access for sandbox
1420
+ * @param {string} token SSH access token to validate
1421
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1422
+ * @param {*} [options] Override http request option.
1423
+ * @throws {RequiredError}
1424
+ */
1425
+ validateSshAccess: async (token, xDaytonaOrganizationID, options = {}) => {
1426
+ // verify required parameter 'token' is not null or undefined
1427
+ (0, common_1.assertParamExists)('validateSshAccess', 'token', token);
1428
+ const localVarPath = `/sandbox/ssh-access/validate`;
1429
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1430
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1431
+ let baseOptions;
1432
+ if (configuration) {
1433
+ baseOptions = configuration.baseOptions;
1434
+ }
1435
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1436
+ const localVarHeaderParameter = {};
1437
+ const localVarQueryParameter = {};
1438
+ // authentication bearer required
1439
+ // http bearer authentication required
1440
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1441
+ // authentication oauth2 required
1442
+ if (token !== undefined) {
1443
+ localVarQueryParameter['token'] = token;
1444
+ }
1445
+ if (xDaytonaOrganizationID != null) {
1446
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
1447
+ }
1448
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1449
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1450
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1451
+ return {
1452
+ url: (0, common_1.toPathString)(localVarUrlObj),
1453
+ options: localVarRequestOptions,
1454
+ };
1455
+ },
1456
+ };
1457
+ };
1458
+ exports.SandboxApiAxiosParamCreator = SandboxApiAxiosParamCreator;
1459
+ /**
1460
+ * SandboxApi - functional programming interface
1461
+ * @export
1462
+ */
1463
+ const SandboxApiFp = function (configuration) {
1464
+ const localVarAxiosParamCreator = (0, exports.SandboxApiAxiosParamCreator)(configuration);
1465
+ return {
1466
+ /**
1467
+ *
1468
+ * @summary Archive sandbox
1469
+ * @param {string} sandboxIdOrName
1470
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1471
+ * @param {*} [options] Override http request option.
1472
+ * @throws {RequiredError}
1473
+ */
1474
+ async archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1476
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1477
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.archiveSandbox']?.[localVarOperationServerIndex]?.url;
1478
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1479
+ },
1480
+ /**
1481
+ *
1482
+ * @summary Create sandbox backup
1483
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1484
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1485
+ * @param {*} [options] Override http request option.
1486
+ * @throws {RequiredError}
1487
+ */
1488
+ async createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1489
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBackup(sandboxIdOrName, xDaytonaOrganizationID, options);
1490
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1491
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createBackup']?.[localVarOperationServerIndex]?.url;
1492
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1493
+ },
1494
+ /**
1495
+ *
1496
+ * @summary Create a new sandbox
1497
+ * @param {CreateSandbox} createSandbox
1498
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1499
+ * @param {*} [options] Override http request option.
1500
+ * @throws {RequiredError}
1501
+ */
1502
+ async createSandbox(createSandbox, xDaytonaOrganizationID, options) {
1503
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSandbox(createSandbox, xDaytonaOrganizationID, options);
1504
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1505
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSandbox']?.[localVarOperationServerIndex]?.url;
1506
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1507
+ },
1508
+ /**
1509
+ *
1510
+ * @summary Create SSH access for sandbox
1511
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1512
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1513
+ * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
1514
+ * @param {*} [options] Override http request option.
1515
+ * @throws {RequiredError}
1516
+ */
1517
+ async createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
1518
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options);
1519
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1520
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.createSshAccess']?.[localVarOperationServerIndex]?.url;
1521
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1522
+ },
1523
+ /**
1524
+ *
1525
+ * @summary Delete sandbox
1526
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1527
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ */
1531
+ async deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1533
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1534
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.deleteSandbox']?.[localVarOperationServerIndex]?.url;
1535
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1536
+ },
1537
+ /**
1538
+ *
1539
+ * @summary Expire signed preview URL for a sandbox port
1540
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1541
+ * @param {number} port Port number to expire signed preview URL for
1542
+ * @param {string} token Token to expire signed preview URL for
1543
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1544
+ * @param {*} [options] Override http request option.
1545
+ * @throws {RequiredError}
1546
+ */
1547
+ async expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
1548
+ const localVarAxiosArgs = await localVarAxiosParamCreator.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options);
1549
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1550
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.expireSignedPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
1551
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1552
+ },
1553
+ /**
1554
+ * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
1555
+ * @summary Get build logs
1556
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1557
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1558
+ * @param {boolean} [follow] Whether to follow the logs stream
1559
+ * @param {*} [options] Override http request option.
1560
+ * @deprecated
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ async getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
1564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options);
1565
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1566
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogs']?.[localVarOperationServerIndex]?.url;
1567
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1568
+ },
1569
+ /**
1570
+ *
1571
+ * @summary Get build logs URL
1572
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1573
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1574
+ * @param {*} [options] Override http request option.
1575
+ * @throws {RequiredError}
1576
+ */
1577
+ async getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
1578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options);
1579
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1580
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getBuildLogsUrl']?.[localVarOperationServerIndex]?.url;
1581
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1582
+ },
1583
+ /**
1584
+ *
1585
+ * @summary Get preview URL for a sandbox port
1586
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1587
+ * @param {number} port Port number to get preview URL for
1588
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1589
+ * @param {*} [options] Override http request option.
1590
+ * @throws {RequiredError}
1591
+ */
1592
+ async getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
1593
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options);
1594
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1595
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
1596
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1597
+ },
1598
+ /**
1599
+ *
1600
+ * @summary Get sandbox details
1601
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1602
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1603
+ * @param {boolean} [verbose] Include verbose output
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ */
1607
+ async getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
1608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options);
1609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1610
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
1611
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1612
+ },
1613
+ /**
1614
+ * Retrieve OTEL logs for a sandbox within a time range
1615
+ * @summary Get sandbox logs
1616
+ * @param {string} sandboxId ID of the sandbox
1617
+ * @param {Date} from Start of time range (ISO 8601)
1618
+ * @param {Date} to End of time range (ISO 8601)
1619
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1620
+ * @param {number} [page] Page number (1-indexed)
1621
+ * @param {number} [limit] Number of items per page
1622
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
1623
+ * @param {string} [search] Search in log body
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ */
1627
+ async getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
1628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options);
1629
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1630
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxLogs']?.[localVarOperationServerIndex]?.url;
1631
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1632
+ },
1633
+ /**
1634
+ * Retrieve OTEL metrics for a sandbox within a time range
1635
+ * @summary Get sandbox metrics
1636
+ * @param {string} sandboxId ID of the sandbox
1637
+ * @param {Date} from Start of time range (ISO 8601)
1638
+ * @param {Date} to End of time range (ISO 8601)
1639
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1640
+ * @param {Array<string>} [metricNames] Filter by metric names
1641
+ * @param {*} [options] Override http request option.
1642
+ * @throws {RequiredError}
1643
+ */
1644
+ async getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
1645
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options);
1646
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1647
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxMetrics']?.[localVarOperationServerIndex]?.url;
1648
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1649
+ },
1650
+ /**
1651
+ * Retrieve all spans for a specific trace
1652
+ * @summary Get trace spans
1653
+ * @param {string} sandboxId ID of the sandbox
1654
+ * @param {string} traceId ID of the trace
1655
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ */
1659
+ async getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
1660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options);
1661
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1662
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxTraceSpans']?.[localVarOperationServerIndex]?.url;
1663
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1664
+ },
1665
+ /**
1666
+ * Retrieve OTEL traces for a sandbox within a time range
1667
+ * @summary Get sandbox traces
1668
+ * @param {string} sandboxId ID of the sandbox
1669
+ * @param {Date} from Start of time range (ISO 8601)
1670
+ * @param {Date} to End of time range (ISO 8601)
1671
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1672
+ * @param {number} [page] Page number (1-indexed)
1673
+ * @param {number} [limit] Number of items per page
1674
+ * @param {*} [options] Override http request option.
1675
+ * @throws {RequiredError}
1676
+ */
1677
+ async getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
1678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options);
1679
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1680
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxTraces']?.[localVarOperationServerIndex]?.url;
1681
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1682
+ },
1683
+ /**
1684
+ *
1685
+ * @summary Get sandboxes for the authenticated runner
1686
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1687
+ * @param {string} [states] Comma-separated list of sandbox states to filter by
1688
+ * @param {boolean} [skipReconcilingSandboxes] Skip sandboxes where state differs from desired state
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ */
1692
+ async getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options) {
1693
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options);
1694
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1695
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxesForRunner']?.[localVarOperationServerIndex]?.url;
1696
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1697
+ },
1698
+ /**
1699
+ *
1700
+ * @summary Get signed preview URL for a sandbox port
1701
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1702
+ * @param {number} port Port number to get signed preview URL for
1703
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1704
+ * @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ */
1708
+ async getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
1709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options);
1710
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1711
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSignedPortPreviewUrl']?.[localVarOperationServerIndex]?.url;
1712
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1713
+ },
1714
+ /**
1715
+ *
1716
+ * @summary Get toolbox proxy URL for a sandbox
1717
+ * @param {string} sandboxId ID of the sandbox
1718
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1719
+ * @param {*} [options] Override http request option.
1720
+ * @throws {RequiredError}
1721
+ */
1722
+ async getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
1723
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options);
1724
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1725
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getToolboxProxyUrl']?.[localVarOperationServerIndex]?.url;
1726
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1727
+ },
1728
+ /**
1729
+ *
1730
+ * @summary List all sandboxes
1731
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1732
+ * @param {boolean} [verbose] Include verbose output
1733
+ * @param {string} [labels] JSON encoded labels to filter by
1734
+ * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
1735
+ * @param {*} [options] Override http request option.
1736
+ * @throws {RequiredError}
1737
+ */
1738
+ async listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
1739
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options);
1740
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1741
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxes']?.[localVarOperationServerIndex]?.url;
1742
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1743
+ },
1744
+ /**
1745
+ *
1746
+ * @summary List all sandboxes paginated
1747
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1748
+ * @param {number} [page] Page number of the results
1749
+ * @param {number} [limit] Number of results per page
1750
+ * @param {string} [id] Filter by partial ID match
1751
+ * @param {string} [name] Filter by partial name match
1752
+ * @param {string} [labels] JSON encoded labels to filter by
1753
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
1754
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
1755
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
1756
+ * @param {Array<string>} [regions] List of regions to filter by
1757
+ * @param {number} [minCpu] Minimum CPU
1758
+ * @param {number} [maxCpu] Maximum CPU
1759
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
1760
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
1761
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
1762
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
1763
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
1764
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
1765
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
1766
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
1767
+ * @param {*} [options] Override http request option.
1768
+ * @throws {RequiredError}
1769
+ */
1770
+ async listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
1771
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options);
1772
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1773
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.listSandboxesPaginated']?.[localVarOperationServerIndex]?.url;
1774
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1775
+ },
1776
+ /**
1777
+ *
1778
+ * @summary Recover sandbox from error state
1779
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1780
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ async recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1785
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1786
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1787
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.recoverSandbox']?.[localVarOperationServerIndex]?.url;
1788
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1789
+ },
1790
+ /**
1791
+ *
1792
+ * @summary Replace sandbox labels
1793
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1794
+ * @param {SandboxLabels} sandboxLabels
1795
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1796
+ * @param {*} [options] Override http request option.
1797
+ * @throws {RequiredError}
1798
+ */
1799
+ async replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
1800
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options);
1801
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1802
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
1803
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1804
+ },
1805
+ /**
1806
+ *
1807
+ * @summary Resize sandbox resources
1808
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1809
+ * @param {ResizeSandbox} resizeSandbox
1810
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ */
1814
+ async resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options) {
1815
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options);
1816
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1817
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.resizeSandbox']?.[localVarOperationServerIndex]?.url;
1818
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1819
+ },
1820
+ /**
1821
+ *
1822
+ * @summary Revoke SSH access for sandbox
1823
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1824
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1825
+ * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
1826
+ * @param {*} [options] Override http request option.
1827
+ * @throws {RequiredError}
1828
+ */
1829
+ async revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
1830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options);
1831
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1832
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.revokeSshAccess']?.[localVarOperationServerIndex]?.url;
1833
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1834
+ },
1835
+ /**
1836
+ *
1837
+ * @summary Set sandbox auto-archive interval
1838
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1839
+ * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
1840
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1841
+ * @param {*} [options] Override http request option.
1842
+ * @throws {RequiredError}
1843
+ */
1844
+ async setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1845
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1846
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1847
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoArchiveInterval']?.[localVarOperationServerIndex]?.url;
1848
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1849
+ },
1850
+ /**
1851
+ *
1852
+ * @summary Set sandbox auto-delete interval
1853
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1854
+ * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
1855
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ */
1859
+ async setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1860
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1861
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1862
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutoDeleteInterval']?.[localVarOperationServerIndex]?.url;
1863
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1864
+ },
1865
+ /**
1866
+ *
1867
+ * @summary Set sandbox auto-stop interval
1868
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1869
+ * @param {number} interval Auto-stop interval in minutes (0 to disable)
1870
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1871
+ * @param {*} [options] Override http request option.
1872
+ * @throws {RequiredError}
1873
+ */
1874
+ async setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
1875
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options);
1876
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1877
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url;
1878
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1879
+ },
1880
+ /**
1881
+ *
1882
+ * @summary Start sandbox
1883
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1884
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ async startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1889
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options);
1890
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1891
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.startSandbox']?.[localVarOperationServerIndex]?.url;
1892
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1893
+ },
1894
+ /**
1895
+ *
1896
+ * @summary Stop sandbox
1897
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1898
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1899
+ * @param {boolean} [force] Force stop the sandbox using SIGKILL instead of SIGTERM
1900
+ * @param {*} [options] Override http request option.
1901
+ * @throws {RequiredError}
1902
+ */
1903
+ async stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options) {
1904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options);
1905
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1906
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.stopSandbox']?.[localVarOperationServerIndex]?.url;
1907
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1908
+ },
1909
+ /**
1910
+ *
1911
+ * @summary Update sandbox last activity
1912
+ * @param {string} sandboxId ID of the sandbox
1913
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ async updateLastActivity(sandboxId, xDaytonaOrganizationID, options) {
1918
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLastActivity(sandboxId, xDaytonaOrganizationID, options);
1919
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1920
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updateLastActivity']?.[localVarOperationServerIndex]?.url;
1921
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1922
+ },
1923
+ /**
1924
+ *
1925
+ * @summary Update public status
1926
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1927
+ * @param {boolean} isPublic Public status to set
1928
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1929
+ * @param {*} [options] Override http request option.
1930
+ * @throws {RequiredError}
1931
+ */
1932
+ async updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
1933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options);
1934
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1935
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url;
1936
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1937
+ },
1938
+ /**
1939
+ *
1940
+ * @summary Update sandbox state
1941
+ * @param {string} sandboxId ID of the sandbox
1942
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
1943
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1944
+ * @param {*} [options] Override http request option.
1945
+ * @throws {RequiredError}
1946
+ */
1947
+ async updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
1948
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options);
1949
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1950
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.updateSandboxState']?.[localVarOperationServerIndex]?.url;
1951
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1952
+ },
1953
+ /**
1954
+ *
1955
+ * @summary Validate SSH access for sandbox
1956
+ * @param {string} token SSH access token to validate
1957
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1958
+ * @param {*} [options] Override http request option.
1959
+ * @throws {RequiredError}
1960
+ */
1961
+ async validateSshAccess(token, xDaytonaOrganizationID, options) {
1962
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateSshAccess(token, xDaytonaOrganizationID, options);
1963
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1964
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.validateSshAccess']?.[localVarOperationServerIndex]?.url;
1965
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1966
+ },
1967
+ };
1968
+ };
1969
+ exports.SandboxApiFp = SandboxApiFp;
1970
+ /**
1971
+ * SandboxApi - factory interface
1972
+ * @export
1973
+ */
1974
+ const SandboxApiFactory = function (configuration, basePath, axios) {
1975
+ const localVarFp = (0, exports.SandboxApiFp)(configuration);
1976
+ return {
1977
+ /**
1978
+ *
1979
+ * @summary Archive sandbox
1980
+ * @param {string} sandboxIdOrName
1981
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1982
+ * @param {*} [options] Override http request option.
1983
+ * @throws {RequiredError}
1984
+ */
1985
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
1986
+ return localVarFp.archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
1987
+ },
1988
+ /**
1989
+ *
1990
+ * @summary Create sandbox backup
1991
+ * @param {string} sandboxIdOrName ID or name of the sandbox
1992
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ */
1996
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
1997
+ return localVarFp.createBackup(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
1998
+ },
1999
+ /**
2000
+ *
2001
+ * @summary Create a new sandbox
2002
+ * @param {CreateSandbox} createSandbox
2003
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ */
2007
+ createSandbox(createSandbox, xDaytonaOrganizationID, options) {
2008
+ return localVarFp.createSandbox(createSandbox, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2009
+ },
2010
+ /**
2011
+ *
2012
+ * @summary Create SSH access for sandbox
2013
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2014
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2015
+ * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
2016
+ * @param {*} [options] Override http request option.
2017
+ * @throws {RequiredError}
2018
+ */
2019
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
2020
+ return localVarFp.createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options).then((request) => request(axios, basePath));
2021
+ },
2022
+ /**
2023
+ *
2024
+ * @summary Delete sandbox
2025
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2026
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2027
+ * @param {*} [options] Override http request option.
2028
+ * @throws {RequiredError}
2029
+ */
2030
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2031
+ return localVarFp.deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2032
+ },
2033
+ /**
2034
+ *
2035
+ * @summary Expire signed preview URL for a sandbox port
2036
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2037
+ * @param {number} port Port number to expire signed preview URL for
2038
+ * @param {string} token Token to expire signed preview URL for
2039
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ */
2043
+ expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
2044
+ return localVarFp.expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2045
+ },
2046
+ /**
2047
+ * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
2048
+ * @summary Get build logs
2049
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2050
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2051
+ * @param {boolean} [follow] Whether to follow the logs stream
2052
+ * @param {*} [options] Override http request option.
2053
+ * @deprecated
2054
+ * @throws {RequiredError}
2055
+ */
2056
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
2057
+ return localVarFp.getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options).then((request) => request(axios, basePath));
2058
+ },
2059
+ /**
2060
+ *
2061
+ * @summary Get build logs URL
2062
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2063
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2064
+ * @param {*} [options] Override http request option.
2065
+ * @throws {RequiredError}
2066
+ */
2067
+ getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
2068
+ return localVarFp.getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2069
+ },
2070
+ /**
2071
+ *
2072
+ * @summary Get preview URL for a sandbox port
2073
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2074
+ * @param {number} port Port number to get preview URL for
2075
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ */
2079
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
2080
+ return localVarFp.getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2081
+ },
2082
+ /**
2083
+ *
2084
+ * @summary Get sandbox details
2085
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2086
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2087
+ * @param {boolean} [verbose] Include verbose output
2088
+ * @param {*} [options] Override http request option.
2089
+ * @throws {RequiredError}
2090
+ */
2091
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
2092
+ return localVarFp.getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
2093
+ },
2094
+ /**
2095
+ * Retrieve OTEL logs for a sandbox within a time range
2096
+ * @summary Get sandbox logs
2097
+ * @param {string} sandboxId ID of the sandbox
2098
+ * @param {Date} from Start of time range (ISO 8601)
2099
+ * @param {Date} to End of time range (ISO 8601)
2100
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2101
+ * @param {number} [page] Page number (1-indexed)
2102
+ * @param {number} [limit] Number of items per page
2103
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
2104
+ * @param {string} [search] Search in log body
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
2109
+ return localVarFp.getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options).then((request) => request(axios, basePath));
2110
+ },
2111
+ /**
2112
+ * Retrieve OTEL metrics for a sandbox within a time range
2113
+ * @summary Get sandbox metrics
2114
+ * @param {string} sandboxId ID of the sandbox
2115
+ * @param {Date} from Start of time range (ISO 8601)
2116
+ * @param {Date} to End of time range (ISO 8601)
2117
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2118
+ * @param {Array<string>} [metricNames] Filter by metric names
2119
+ * @param {*} [options] Override http request option.
2120
+ * @throws {RequiredError}
2121
+ */
2122
+ getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
2123
+ return localVarFp.getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options).then((request) => request(axios, basePath));
2124
+ },
2125
+ /**
2126
+ * Retrieve all spans for a specific trace
2127
+ * @summary Get trace spans
2128
+ * @param {string} sandboxId ID of the sandbox
2129
+ * @param {string} traceId ID of the trace
2130
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
2135
+ return localVarFp.getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2136
+ },
2137
+ /**
2138
+ * Retrieve OTEL traces for a sandbox within a time range
2139
+ * @summary Get sandbox traces
2140
+ * @param {string} sandboxId ID of the sandbox
2141
+ * @param {Date} from Start of time range (ISO 8601)
2142
+ * @param {Date} to End of time range (ISO 8601)
2143
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2144
+ * @param {number} [page] Page number (1-indexed)
2145
+ * @param {number} [limit] Number of items per page
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ */
2149
+ getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
2150
+ return localVarFp.getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options).then((request) => request(axios, basePath));
2151
+ },
2152
+ /**
2153
+ *
2154
+ * @summary Get sandboxes for the authenticated runner
2155
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2156
+ * @param {string} [states] Comma-separated list of sandbox states to filter by
2157
+ * @param {boolean} [skipReconcilingSandboxes] Skip sandboxes where state differs from desired state
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ */
2161
+ getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options) {
2162
+ return localVarFp.getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options).then((request) => request(axios, basePath));
2163
+ },
2164
+ /**
2165
+ *
2166
+ * @summary Get signed preview URL for a sandbox port
2167
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2168
+ * @param {number} port Port number to get signed preview URL for
2169
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2170
+ * @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
2171
+ * @param {*} [options] Override http request option.
2172
+ * @throws {RequiredError}
2173
+ */
2174
+ getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
2175
+ return localVarFp.getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options).then((request) => request(axios, basePath));
2176
+ },
2177
+ /**
2178
+ *
2179
+ * @summary Get toolbox proxy URL for a sandbox
2180
+ * @param {string} sandboxId ID of the sandbox
2181
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2182
+ * @param {*} [options] Override http request option.
2183
+ * @throws {RequiredError}
2184
+ */
2185
+ getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
2186
+ return localVarFp.getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2187
+ },
2188
+ /**
2189
+ *
2190
+ * @summary List all sandboxes
2191
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2192
+ * @param {boolean} [verbose] Include verbose output
2193
+ * @param {string} [labels] JSON encoded labels to filter by
2194
+ * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
2195
+ * @param {*} [options] Override http request option.
2196
+ * @throws {RequiredError}
2197
+ */
2198
+ listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
2199
+ return localVarFp.listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options).then((request) => request(axios, basePath));
2200
+ },
2201
+ /**
2202
+ *
2203
+ * @summary List all sandboxes paginated
2204
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2205
+ * @param {number} [page] Page number of the results
2206
+ * @param {number} [limit] Number of results per page
2207
+ * @param {string} [id] Filter by partial ID match
2208
+ * @param {string} [name] Filter by partial name match
2209
+ * @param {string} [labels] JSON encoded labels to filter by
2210
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2211
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
2212
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
2213
+ * @param {Array<string>} [regions] List of regions to filter by
2214
+ * @param {number} [minCpu] Minimum CPU
2215
+ * @param {number} [maxCpu] Maximum CPU
2216
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
2217
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
2218
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
2219
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
2220
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2221
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2222
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
2223
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
2224
+ * @param {*} [options] Override http request option.
2225
+ * @throws {RequiredError}
2226
+ */
2227
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2228
+ return localVarFp.listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(axios, basePath));
2229
+ },
2230
+ /**
2231
+ *
2232
+ * @summary Recover sandbox from error state
2233
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2234
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2235
+ * @param {*} [options] Override http request option.
2236
+ * @throws {RequiredError}
2237
+ */
2238
+ recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2239
+ return localVarFp.recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2240
+ },
2241
+ /**
2242
+ *
2243
+ * @summary Replace sandbox labels
2244
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2245
+ * @param {SandboxLabels} sandboxLabels
2246
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ */
2250
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
2251
+ return localVarFp.replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2252
+ },
2253
+ /**
2254
+ *
2255
+ * @summary Resize sandbox resources
2256
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2257
+ * @param {ResizeSandbox} resizeSandbox
2258
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options) {
2263
+ return localVarFp.resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2264
+ },
2265
+ /**
2266
+ *
2267
+ * @summary Revoke SSH access for sandbox
2268
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2269
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2270
+ * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
2275
+ return localVarFp.revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options).then((request) => request(axios, basePath));
2276
+ },
2277
+ /**
2278
+ *
2279
+ * @summary Set sandbox auto-archive interval
2280
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2281
+ * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
2282
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2283
+ * @param {*} [options] Override http request option.
2284
+ * @throws {RequiredError}
2285
+ */
2286
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2287
+ return localVarFp.setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2288
+ },
2289
+ /**
2290
+ *
2291
+ * @summary Set sandbox auto-delete interval
2292
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2293
+ * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
2294
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2295
+ * @param {*} [options] Override http request option.
2296
+ * @throws {RequiredError}
2297
+ */
2298
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2299
+ return localVarFp.setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2300
+ },
2301
+ /**
2302
+ *
2303
+ * @summary Set sandbox auto-stop interval
2304
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2305
+ * @param {number} interval Auto-stop interval in minutes (0 to disable)
2306
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2307
+ * @param {*} [options] Override http request option.
2308
+ * @throws {RequiredError}
2309
+ */
2310
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2311
+ return localVarFp.setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2312
+ },
2313
+ /**
2314
+ *
2315
+ * @summary Start sandbox
2316
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2317
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2318
+ * @param {*} [options] Override http request option.
2319
+ * @throws {RequiredError}
2320
+ */
2321
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2322
+ return localVarFp.startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2323
+ },
2324
+ /**
2325
+ *
2326
+ * @summary Stop sandbox
2327
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2328
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2329
+ * @param {boolean} [force] Force stop the sandbox using SIGKILL instead of SIGTERM
2330
+ * @param {*} [options] Override http request option.
2331
+ * @throws {RequiredError}
2332
+ */
2333
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options) {
2334
+ return localVarFp.stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options).then((request) => request(axios, basePath));
2335
+ },
2336
+ /**
2337
+ *
2338
+ * @summary Update sandbox last activity
2339
+ * @param {string} sandboxId ID of the sandbox
2340
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ */
2344
+ updateLastActivity(sandboxId, xDaytonaOrganizationID, options) {
2345
+ return localVarFp.updateLastActivity(sandboxId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2346
+ },
2347
+ /**
2348
+ *
2349
+ * @summary Update public status
2350
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2351
+ * @param {boolean} isPublic Public status to set
2352
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2353
+ * @param {*} [options] Override http request option.
2354
+ * @throws {RequiredError}
2355
+ */
2356
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
2357
+ return localVarFp.updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2358
+ },
2359
+ /**
2360
+ *
2361
+ * @summary Update sandbox state
2362
+ * @param {string} sandboxId ID of the sandbox
2363
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
2364
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2365
+ * @param {*} [options] Override http request option.
2366
+ * @throws {RequiredError}
2367
+ */
2368
+ updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
2369
+ return localVarFp.updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2370
+ },
2371
+ /**
2372
+ *
2373
+ * @summary Validate SSH access for sandbox
2374
+ * @param {string} token SSH access token to validate
2375
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ */
2379
+ validateSshAccess(token, xDaytonaOrganizationID, options) {
2380
+ return localVarFp.validateSshAccess(token, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2381
+ },
2382
+ };
2383
+ };
2384
+ exports.SandboxApiFactory = SandboxApiFactory;
2385
+ /**
2386
+ * SandboxApi - object-oriented interface
2387
+ * @export
2388
+ * @class SandboxApi
2389
+ * @extends {BaseAPI}
2390
+ */
2391
+ class SandboxApi extends base_1.BaseAPI {
2392
+ /**
2393
+ *
2394
+ * @summary Archive sandbox
2395
+ * @param {string} sandboxIdOrName
2396
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2397
+ * @param {*} [options] Override http request option.
2398
+ * @throws {RequiredError}
2399
+ * @memberof SandboxApi
2400
+ */
2401
+ archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2402
+ return (0, exports.SandboxApiFp)(this.configuration).archiveSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2403
+ }
2404
+ /**
2405
+ *
2406
+ * @summary Create sandbox backup
2407
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2408
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2409
+ * @param {*} [options] Override http request option.
2410
+ * @throws {RequiredError}
2411
+ * @memberof SandboxApi
2412
+ */
2413
+ createBackup(sandboxIdOrName, xDaytonaOrganizationID, options) {
2414
+ return (0, exports.SandboxApiFp)(this.configuration).createBackup(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2415
+ }
2416
+ /**
2417
+ *
2418
+ * @summary Create a new sandbox
2419
+ * @param {CreateSandbox} createSandbox
2420
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2421
+ * @param {*} [options] Override http request option.
2422
+ * @throws {RequiredError}
2423
+ * @memberof SandboxApi
2424
+ */
2425
+ createSandbox(createSandbox, xDaytonaOrganizationID, options) {
2426
+ return (0, exports.SandboxApiFp)(this.configuration).createSandbox(createSandbox, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2427
+ }
2428
+ /**
2429
+ *
2430
+ * @summary Create SSH access for sandbox
2431
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2432
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2433
+ * @param {number} [expiresInMinutes] Expiration time in minutes (default: 60)
2434
+ * @param {*} [options] Override http request option.
2435
+ * @throws {RequiredError}
2436
+ * @memberof SandboxApi
2437
+ */
2438
+ createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options) {
2439
+ return (0, exports.SandboxApiFp)(this.configuration).createSshAccess(sandboxIdOrName, xDaytonaOrganizationID, expiresInMinutes, options).then((request) => request(this.axios, this.basePath));
2440
+ }
2441
+ /**
2442
+ *
2443
+ * @summary Delete sandbox
2444
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2445
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2446
+ * @param {*} [options] Override http request option.
2447
+ * @throws {RequiredError}
2448
+ * @memberof SandboxApi
2449
+ */
2450
+ deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2451
+ return (0, exports.SandboxApiFp)(this.configuration).deleteSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2452
+ }
2453
+ /**
2454
+ *
2455
+ * @summary Expire signed preview URL for a sandbox port
2456
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2457
+ * @param {number} port Port number to expire signed preview URL for
2458
+ * @param {string} token Token to expire signed preview URL for
2459
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ * @memberof SandboxApi
2463
+ */
2464
+ expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options) {
2465
+ return (0, exports.SandboxApiFp)(this.configuration).expireSignedPortPreviewUrl(sandboxIdOrName, port, token, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2466
+ }
2467
+ /**
2468
+ * This endpoint is deprecated. Use `getBuildLogsUrl` instead.
2469
+ * @summary Get build logs
2470
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2471
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2472
+ * @param {boolean} [follow] Whether to follow the logs stream
2473
+ * @param {*} [options] Override http request option.
2474
+ * @deprecated
2475
+ * @throws {RequiredError}
2476
+ * @memberof SandboxApi
2477
+ */
2478
+ getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options) {
2479
+ return (0, exports.SandboxApiFp)(this.configuration).getBuildLogs(sandboxIdOrName, xDaytonaOrganizationID, follow, options).then((request) => request(this.axios, this.basePath));
2480
+ }
2481
+ /**
2482
+ *
2483
+ * @summary Get build logs URL
2484
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2485
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2486
+ * @param {*} [options] Override http request option.
2487
+ * @throws {RequiredError}
2488
+ * @memberof SandboxApi
2489
+ */
2490
+ getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options) {
2491
+ return (0, exports.SandboxApiFp)(this.configuration).getBuildLogsUrl(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2492
+ }
2493
+ /**
2494
+ *
2495
+ * @summary Get preview URL for a sandbox port
2496
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2497
+ * @param {number} port Port number to get preview URL for
2498
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2499
+ * @param {*} [options] Override http request option.
2500
+ * @throws {RequiredError}
2501
+ * @memberof SandboxApi
2502
+ */
2503
+ getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options) {
2504
+ return (0, exports.SandboxApiFp)(this.configuration).getPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2505
+ }
2506
+ /**
2507
+ *
2508
+ * @summary Get sandbox details
2509
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2510
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2511
+ * @param {boolean} [verbose] Include verbose output
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ * @memberof SandboxApi
2515
+ */
2516
+ getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options) {
2517
+ return (0, exports.SandboxApiFp)(this.configuration).getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options).then((request) => request(this.axios, this.basePath));
2518
+ }
2519
+ /**
2520
+ * Retrieve OTEL logs for a sandbox within a time range
2521
+ * @summary Get sandbox logs
2522
+ * @param {string} sandboxId ID of the sandbox
2523
+ * @param {Date} from Start of time range (ISO 8601)
2524
+ * @param {Date} to End of time range (ISO 8601)
2525
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2526
+ * @param {number} [page] Page number (1-indexed)
2527
+ * @param {number} [limit] Number of items per page
2528
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
2529
+ * @param {string} [search] Search in log body
2530
+ * @param {*} [options] Override http request option.
2531
+ * @throws {RequiredError}
2532
+ * @memberof SandboxApi
2533
+ */
2534
+ getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
2535
+ return (0, exports.SandboxApiFp)(this.configuration).getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options).then((request) => request(this.axios, this.basePath));
2536
+ }
2537
+ /**
2538
+ * Retrieve OTEL metrics for a sandbox within a time range
2539
+ * @summary Get sandbox metrics
2540
+ * @param {string} sandboxId ID of the sandbox
2541
+ * @param {Date} from Start of time range (ISO 8601)
2542
+ * @param {Date} to End of time range (ISO 8601)
2543
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2544
+ * @param {Array<string>} [metricNames] Filter by metric names
2545
+ * @param {*} [options] Override http request option.
2546
+ * @throws {RequiredError}
2547
+ * @memberof SandboxApi
2548
+ */
2549
+ getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
2550
+ return (0, exports.SandboxApiFp)(this.configuration).getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options).then((request) => request(this.axios, this.basePath));
2551
+ }
2552
+ /**
2553
+ * Retrieve all spans for a specific trace
2554
+ * @summary Get trace spans
2555
+ * @param {string} sandboxId ID of the sandbox
2556
+ * @param {string} traceId ID of the trace
2557
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2558
+ * @param {*} [options] Override http request option.
2559
+ * @throws {RequiredError}
2560
+ * @memberof SandboxApi
2561
+ */
2562
+ getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
2563
+ return (0, exports.SandboxApiFp)(this.configuration).getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2564
+ }
2565
+ /**
2566
+ * Retrieve OTEL traces for a sandbox within a time range
2567
+ * @summary Get sandbox traces
2568
+ * @param {string} sandboxId ID of the sandbox
2569
+ * @param {Date} from Start of time range (ISO 8601)
2570
+ * @param {Date} to End of time range (ISO 8601)
2571
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2572
+ * @param {number} [page] Page number (1-indexed)
2573
+ * @param {number} [limit] Number of items per page
2574
+ * @param {*} [options] Override http request option.
2575
+ * @throws {RequiredError}
2576
+ * @memberof SandboxApi
2577
+ */
2578
+ getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
2579
+ return (0, exports.SandboxApiFp)(this.configuration).getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options).then((request) => request(this.axios, this.basePath));
2580
+ }
2581
+ /**
2582
+ *
2583
+ * @summary Get sandboxes for the authenticated runner
2584
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2585
+ * @param {string} [states] Comma-separated list of sandbox states to filter by
2586
+ * @param {boolean} [skipReconcilingSandboxes] Skip sandboxes where state differs from desired state
2587
+ * @param {*} [options] Override http request option.
2588
+ * @throws {RequiredError}
2589
+ * @memberof SandboxApi
2590
+ */
2591
+ getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options) {
2592
+ return (0, exports.SandboxApiFp)(this.configuration).getSandboxesForRunner(xDaytonaOrganizationID, states, skipReconcilingSandboxes, options).then((request) => request(this.axios, this.basePath));
2593
+ }
2594
+ /**
2595
+ *
2596
+ * @summary Get signed preview URL for a sandbox port
2597
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2598
+ * @param {number} port Port number to get signed preview URL for
2599
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2600
+ * @param {number} [expiresInSeconds] Expiration time in seconds (default: 60 seconds)
2601
+ * @param {*} [options] Override http request option.
2602
+ * @throws {RequiredError}
2603
+ * @memberof SandboxApi
2604
+ */
2605
+ getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options) {
2606
+ return (0, exports.SandboxApiFp)(this.configuration).getSignedPortPreviewUrl(sandboxIdOrName, port, xDaytonaOrganizationID, expiresInSeconds, options).then((request) => request(this.axios, this.basePath));
2607
+ }
2608
+ /**
2609
+ *
2610
+ * @summary Get toolbox proxy URL for a sandbox
2611
+ * @param {string} sandboxId ID of the sandbox
2612
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2613
+ * @param {*} [options] Override http request option.
2614
+ * @throws {RequiredError}
2615
+ * @memberof SandboxApi
2616
+ */
2617
+ getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options) {
2618
+ return (0, exports.SandboxApiFp)(this.configuration).getToolboxProxyUrl(sandboxId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2619
+ }
2620
+ /**
2621
+ *
2622
+ * @summary List all sandboxes
2623
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2624
+ * @param {boolean} [verbose] Include verbose output
2625
+ * @param {string} [labels] JSON encoded labels to filter by
2626
+ * @param {boolean} [includeErroredDeleted] Include errored and deleted sandboxes
2627
+ * @param {*} [options] Override http request option.
2628
+ * @throws {RequiredError}
2629
+ * @memberof SandboxApi
2630
+ */
2631
+ listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options) {
2632
+ return (0, exports.SandboxApiFp)(this.configuration).listSandboxes(xDaytonaOrganizationID, verbose, labels, includeErroredDeleted, options).then((request) => request(this.axios, this.basePath));
2633
+ }
2634
+ /**
2635
+ *
2636
+ * @summary List all sandboxes paginated
2637
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2638
+ * @param {number} [page] Page number of the results
2639
+ * @param {number} [limit] Number of results per page
2640
+ * @param {string} [id] Filter by partial ID match
2641
+ * @param {string} [name] Filter by partial name match
2642
+ * @param {string} [labels] JSON encoded labels to filter by
2643
+ * @param {boolean} [includeErroredDeleted] Include results with errored state and deleted desired state
2644
+ * @param {Array<ListSandboxesPaginatedStatesEnum>} [states] List of states to filter by
2645
+ * @param {Array<string>} [snapshots] List of snapshot names to filter by
2646
+ * @param {Array<string>} [regions] List of regions to filter by
2647
+ * @param {number} [minCpu] Minimum CPU
2648
+ * @param {number} [maxCpu] Maximum CPU
2649
+ * @param {number} [minMemoryGiB] Minimum memory in GiB
2650
+ * @param {number} [maxMemoryGiB] Maximum memory in GiB
2651
+ * @param {number} [minDiskGiB] Minimum disk space in GiB
2652
+ * @param {number} [maxDiskGiB] Maximum disk space in GiB
2653
+ * @param {Date} [lastEventAfter] Include items with last event after this timestamp
2654
+ * @param {Date} [lastEventBefore] Include items with last event before this timestamp
2655
+ * @param {ListSandboxesPaginatedSortEnum} [sort] Field to sort by
2656
+ * @param {ListSandboxesPaginatedOrderEnum} [order] Direction to sort by
2657
+ * @param {*} [options] Override http request option.
2658
+ * @throws {RequiredError}
2659
+ * @memberof SandboxApi
2660
+ */
2661
+ listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options) {
2662
+ return (0, exports.SandboxApiFp)(this.configuration).listSandboxesPaginated(xDaytonaOrganizationID, page, limit, id, name, labels, includeErroredDeleted, states, snapshots, regions, minCpu, maxCpu, minMemoryGiB, maxMemoryGiB, minDiskGiB, maxDiskGiB, lastEventAfter, lastEventBefore, sort, order, options).then((request) => request(this.axios, this.basePath));
2663
+ }
2664
+ /**
2665
+ *
2666
+ * @summary Recover sandbox from error state
2667
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2668
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2669
+ * @param {*} [options] Override http request option.
2670
+ * @throws {RequiredError}
2671
+ * @memberof SandboxApi
2672
+ */
2673
+ recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2674
+ return (0, exports.SandboxApiFp)(this.configuration).recoverSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2675
+ }
2676
+ /**
2677
+ *
2678
+ * @summary Replace sandbox labels
2679
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2680
+ * @param {SandboxLabels} sandboxLabels
2681
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2682
+ * @param {*} [options] Override http request option.
2683
+ * @throws {RequiredError}
2684
+ * @memberof SandboxApi
2685
+ */
2686
+ replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options) {
2687
+ return (0, exports.SandboxApiFp)(this.configuration).replaceLabels(sandboxIdOrName, sandboxLabels, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2688
+ }
2689
+ /**
2690
+ *
2691
+ * @summary Resize sandbox resources
2692
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2693
+ * @param {ResizeSandbox} resizeSandbox
2694
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2695
+ * @param {*} [options] Override http request option.
2696
+ * @throws {RequiredError}
2697
+ * @memberof SandboxApi
2698
+ */
2699
+ resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options) {
2700
+ return (0, exports.SandboxApiFp)(this.configuration).resizeSandbox(sandboxIdOrName, resizeSandbox, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2701
+ }
2702
+ /**
2703
+ *
2704
+ * @summary Revoke SSH access for sandbox
2705
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2706
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2707
+ * @param {string} [token] SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked.
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ * @memberof SandboxApi
2711
+ */
2712
+ revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options) {
2713
+ return (0, exports.SandboxApiFp)(this.configuration).revokeSshAccess(sandboxIdOrName, xDaytonaOrganizationID, token, options).then((request) => request(this.axios, this.basePath));
2714
+ }
2715
+ /**
2716
+ *
2717
+ * @summary Set sandbox auto-archive interval
2718
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2719
+ * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
2720
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2721
+ * @param {*} [options] Override http request option.
2722
+ * @throws {RequiredError}
2723
+ * @memberof SandboxApi
2724
+ */
2725
+ setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2726
+ return (0, exports.SandboxApiFp)(this.configuration).setAutoArchiveInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2727
+ }
2728
+ /**
2729
+ *
2730
+ * @summary Set sandbox auto-delete interval
2731
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2732
+ * @param {number} interval Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping)
2733
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2734
+ * @param {*} [options] Override http request option.
2735
+ * @throws {RequiredError}
2736
+ * @memberof SandboxApi
2737
+ */
2738
+ setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2739
+ return (0, exports.SandboxApiFp)(this.configuration).setAutoDeleteInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2740
+ }
2741
+ /**
2742
+ *
2743
+ * @summary Set sandbox auto-stop interval
2744
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2745
+ * @param {number} interval Auto-stop interval in minutes (0 to disable)
2746
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2747
+ * @param {*} [options] Override http request option.
2748
+ * @throws {RequiredError}
2749
+ * @memberof SandboxApi
2750
+ */
2751
+ setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options) {
2752
+ return (0, exports.SandboxApiFp)(this.configuration).setAutostopInterval(sandboxIdOrName, interval, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2753
+ }
2754
+ /**
2755
+ *
2756
+ * @summary Start sandbox
2757
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2758
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2759
+ * @param {*} [options] Override http request option.
2760
+ * @throws {RequiredError}
2761
+ * @memberof SandboxApi
2762
+ */
2763
+ startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options) {
2764
+ return (0, exports.SandboxApiFp)(this.configuration).startSandbox(sandboxIdOrName, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2765
+ }
2766
+ /**
2767
+ *
2768
+ * @summary Stop sandbox
2769
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2770
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2771
+ * @param {boolean} [force] Force stop the sandbox using SIGKILL instead of SIGTERM
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ * @memberof SandboxApi
2775
+ */
2776
+ stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options) {
2777
+ return (0, exports.SandboxApiFp)(this.configuration).stopSandbox(sandboxIdOrName, xDaytonaOrganizationID, force, options).then((request) => request(this.axios, this.basePath));
2778
+ }
2779
+ /**
2780
+ *
2781
+ * @summary Update sandbox last activity
2782
+ * @param {string} sandboxId ID of the sandbox
2783
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2784
+ * @param {*} [options] Override http request option.
2785
+ * @throws {RequiredError}
2786
+ * @memberof SandboxApi
2787
+ */
2788
+ updateLastActivity(sandboxId, xDaytonaOrganizationID, options) {
2789
+ return (0, exports.SandboxApiFp)(this.configuration).updateLastActivity(sandboxId, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2790
+ }
2791
+ /**
2792
+ *
2793
+ * @summary Update public status
2794
+ * @param {string} sandboxIdOrName ID or name of the sandbox
2795
+ * @param {boolean} isPublic Public status to set
2796
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2797
+ * @param {*} [options] Override http request option.
2798
+ * @throws {RequiredError}
2799
+ * @memberof SandboxApi
2800
+ */
2801
+ updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options) {
2802
+ return (0, exports.SandboxApiFp)(this.configuration).updatePublicStatus(sandboxIdOrName, isPublic, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2803
+ }
2804
+ /**
2805
+ *
2806
+ * @summary Update sandbox state
2807
+ * @param {string} sandboxId ID of the sandbox
2808
+ * @param {UpdateSandboxStateDto} updateSandboxStateDto
2809
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ * @memberof SandboxApi
2813
+ */
2814
+ updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options) {
2815
+ return (0, exports.SandboxApiFp)(this.configuration).updateSandboxState(sandboxId, updateSandboxStateDto, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2816
+ }
2817
+ /**
2818
+ *
2819
+ * @summary Validate SSH access for sandbox
2820
+ * @param {string} token SSH access token to validate
2821
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ * @memberof SandboxApi
2825
+ */
2826
+ validateSshAccess(token, xDaytonaOrganizationID, options) {
2827
+ return (0, exports.SandboxApiFp)(this.configuration).validateSshAccess(token, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2828
+ }
2829
+ }
2830
+ exports.SandboxApi = SandboxApi;
2831
+ /**
2832
+ * @export
2833
+ */
2834
+ exports.ListSandboxesPaginatedStatesEnum = {
2835
+ CREATING: 'creating',
2836
+ RESTORING: 'restoring',
2837
+ DESTROYING: 'destroying',
2838
+ STARTED: 'started',
2839
+ STOPPED: 'stopped',
2840
+ STARTING: 'starting',
2841
+ STOPPING: 'stopping',
2842
+ ERROR: 'error',
2843
+ BUILD_FAILED: 'build_failed',
2844
+ PENDING_BUILD: 'pending_build',
2845
+ BUILDING_SNAPSHOT: 'building_snapshot',
2846
+ UNKNOWN: 'unknown',
2847
+ PULLING_SNAPSHOT: 'pulling_snapshot',
2848
+ ARCHIVED: 'archived',
2849
+ ARCHIVING: 'archiving',
2850
+ RESIZING: 'resizing'
2851
+ };
2852
+ /**
2853
+ * @export
2854
+ */
2855
+ exports.ListSandboxesPaginatedSortEnum = {
2856
+ ID: 'id',
2857
+ NAME: 'name',
2858
+ STATE: 'state',
2859
+ SNAPSHOT: 'snapshot',
2860
+ REGION: 'region',
2861
+ UPDATED_AT: 'updatedAt',
2862
+ CREATED_AT: 'createdAt'
2863
+ };
2864
+ /**
2865
+ * @export
2866
+ */
2867
+ exports.ListSandboxesPaginatedOrderEnum = {
2868
+ ASC: 'asc',
2869
+ DESC: 'desc'
2870
+ };
2871
+ //# sourceMappingURL=sandbox-api.js.map