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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/package.json +5 -8
  2. package/src/api/api-keys-api.d.ts +220 -0
  3. package/src/api/api-keys-api.js +428 -0
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +299 -0
  6. package/src/api/docker-registry-api.js +592 -0
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/src/api/images-api.d.ts +317 -0
  9. package/src/api/images-api.js +624 -0
  10. package/src/api/images-api.js.map +1 -0
  11. package/src/api/nodes-api.d.ts +136 -0
  12. package/src/api/nodes-api.js +261 -0
  13. package/src/api/nodes-api.js.map +1 -0
  14. package/src/api/object-storage-api.d.ts +74 -0
  15. package/src/api/object-storage-api.js +127 -0
  16. package/src/api/object-storage-api.js.map +1 -0
  17. package/src/api/organizations-api.d.ts +927 -0
  18. package/src/api/organizations-api.js +1891 -0
  19. package/src/api/organizations-api.js.map +1 -0
  20. package/src/api/preview-api.d.ts +143 -0
  21. package/src/api/preview-api.js +265 -0
  22. package/src/api/preview-api.js.map +1 -0
  23. package/src/api/toolbox-api.d.ts +1599 -0
  24. package/src/api/toolbox-api.js +3250 -0
  25. package/src/api/toolbox-api.js.map +1 -0
  26. package/src/api/users-api.d.ts +166 -0
  27. package/src/api/users-api.js +311 -0
  28. package/src/api/users-api.js.map +1 -0
  29. package/src/api/volumes-api.d.ts +227 -0
  30. package/src/api/volumes-api.js +447 -0
  31. package/src/api/volumes-api.js.map +1 -0
  32. package/src/api/workspace-api.d.ts +516 -0
  33. package/src/api/workspace-api.js +1043 -0
  34. package/src/api/workspace-api.js.map +1 -0
  35. package/src/api.d.ts +22 -0
  36. package/src/api.js +28 -0
  37. package/src/api.js.map +1 -0
  38. package/src/base.d.ts +66 -0
  39. package/src/base.js +68 -0
  40. package/src/base.js.map +1 -0
  41. package/src/common.d.ts +65 -0
  42. package/src/common.js +146 -0
  43. package/src/common.js.map +1 -0
  44. package/src/configuration.d.ts +91 -0
  45. package/src/configuration.js +105 -0
  46. package/src/configuration.js.map +1 -0
  47. package/src/index.d.ts +14 -0
  48. package/src/index.js +20 -0
  49. package/src/index.js.map +1 -0
  50. package/src/models/api-key-list.d.ts +54 -0
  51. package/src/models/api-key-list.js +28 -0
  52. package/src/models/api-key-list.js.map +1 -0
  53. package/src/models/api-key-response.d.ts +54 -0
  54. package/src/models/api-key-response.js +28 -0
  55. package/src/models/api-key-response.js.map +1 -0
  56. package/src/models/build-image.d.ts +31 -0
  57. package/src/models/build-image.js +16 -0
  58. package/src/models/build-image.js.map +1 -0
  59. package/src/models/{command.ts → command.d.ts} +18 -21
  60. package/src/models/command.js +16 -0
  61. package/src/models/command.js.map +1 -0
  62. package/src/models/{completion-context.ts → completion-context.d.ts} +12 -15
  63. package/src/models/completion-context.js +16 -0
  64. package/src/models/completion-context.js.map +1 -0
  65. package/src/models/completion-item.d.ts +60 -0
  66. package/src/models/completion-item.js +16 -0
  67. package/src/models/completion-item.js.map +1 -0
  68. package/src/models/{completion-list.ts → completion-list.d.ts} +13 -19
  69. package/src/models/completion-list.js +16 -0
  70. package/src/models/completion-list.js.map +1 -0
  71. package/src/models/create-api-key.d.ts +42 -0
  72. package/src/models/create-api-key.js +28 -0
  73. package/src/models/create-api-key.js.map +1 -0
  74. package/src/models/{create-build-info.ts → create-build-info.d.ts} +12 -15
  75. package/src/models/create-build-info.js +16 -0
  76. package/src/models/create-build-info.js.map +1 -0
  77. package/src/models/create-docker-registry.d.ts +67 -0
  78. package/src/models/create-docker-registry.js +23 -0
  79. package/src/models/create-docker-registry.js.map +1 -0
  80. package/src/models/create-image.d.ts +36 -0
  81. package/src/models/create-image.js +16 -0
  82. package/src/models/create-image.js.map +1 -0
  83. package/src/models/create-node.d.ts +96 -0
  84. package/src/models/create-node.js +27 -0
  85. package/src/models/create-node.js.map +1 -0
  86. package/src/models/create-organization-invitation.d.ts +47 -0
  87. package/src/models/create-organization-invitation.js +21 -0
  88. package/src/models/create-organization-invitation.js.map +1 -0
  89. package/src/models/create-organization-quota.d.ts +84 -0
  90. package/src/models/create-organization-quota.js +16 -0
  91. package/src/models/create-organization-quota.js.map +1 -0
  92. package/src/models/create-organization-role.d.ts +48 -0
  93. package/src/models/create-organization-role.js +28 -0
  94. package/src/models/create-organization-role.js.map +1 -0
  95. package/src/models/{create-organization.ts → create-organization.d.ts} +6 -9
  96. package/src/models/create-organization.js +16 -0
  97. package/src/models/create-organization.js.map +1 -0
  98. package/src/models/{create-session-request.ts → create-session-request.d.ts} +6 -9
  99. package/src/models/create-session-request.js +16 -0
  100. package/src/models/create-session-request.js.map +1 -0
  101. package/src/models/create-user.d.ts +60 -0
  102. package/src/models/create-user.js +21 -0
  103. package/src/models/create-user.js.map +1 -0
  104. package/src/models/{create-volume.ts → create-volume.d.ts} +6 -9
  105. package/src/models/create-volume.js +16 -0
  106. package/src/models/create-volume.js.map +1 -0
  107. package/src/models/create-workspace.d.ts +120 -0
  108. package/src/models/create-workspace.js +27 -0
  109. package/src/models/create-workspace.js.map +1 -0
  110. package/src/models/docker-registry.d.ts +73 -0
  111. package/src/models/docker-registry.js +23 -0
  112. package/src/models/docker-registry.js.map +1 -0
  113. package/src/models/{execute-request.ts → execute-request.d.ts} +18 -21
  114. package/src/models/execute-request.js +16 -0
  115. package/src/models/execute-request.js.map +1 -0
  116. package/src/models/{execute-response.ts → execute-response.d.ts} +12 -15
  117. package/src/models/execute-response.js +16 -0
  118. package/src/models/execute-response.js.map +1 -0
  119. package/src/models/file-info.d.ts +66 -0
  120. package/src/models/file-info.js +16 -0
  121. package/src/models/file-info.js.map +1 -0
  122. package/src/models/{file-status.ts → file-status.d.ts} +24 -27
  123. package/src/models/file-status.js +16 -0
  124. package/src/models/file-status.js.map +1 -0
  125. package/src/models/{git-add-request.ts → git-add-request.d.ts} +12 -15
  126. package/src/models/git-add-request.js +16 -0
  127. package/src/models/git-add-request.js.map +1 -0
  128. package/src/models/{git-branch-request.ts → git-branch-request.d.ts} +12 -15
  129. package/src/models/git-branch-request.js +16 -0
  130. package/src/models/git-branch-request.js.map +1 -0
  131. package/src/models/git-clone-request.d.ts +54 -0
  132. package/src/models/git-clone-request.js +16 -0
  133. package/src/models/git-clone-request.js.map +1 -0
  134. package/src/models/git-commit-info.d.ts +48 -0
  135. package/src/models/git-commit-info.js +16 -0
  136. package/src/models/git-commit-info.js.map +1 -0
  137. package/src/models/git-commit-request.d.ts +42 -0
  138. package/src/models/git-commit-request.js +16 -0
  139. package/src/models/git-commit-request.js.map +1 -0
  140. package/src/models/{git-commit-response.ts → git-commit-response.d.ts} +6 -9
  141. package/src/models/git-commit-response.js +16 -0
  142. package/src/models/git-commit-response.js.map +1 -0
  143. package/src/models/{git-repo-request.ts → git-repo-request.d.ts} +18 -21
  144. package/src/models/git-repo-request.js +16 -0
  145. package/src/models/git-repo-request.js.map +1 -0
  146. package/src/models/git-status.d.ts +49 -0
  147. package/src/models/git-status.js +16 -0
  148. package/src/models/git-status.js.map +1 -0
  149. package/src/models/image-dto.d.ts +91 -0
  150. package/src/models/image-dto.js +16 -0
  151. package/src/models/image-dto.js.map +1 -0
  152. package/src/models/{image-state.ts → image-state.d.ts} +12 -17
  153. package/src/models/image-state.js +33 -0
  154. package/src/models/image-state.js.map +1 -0
  155. package/src/models/index.d.ts +77 -0
  156. package/src/models/index.js +81 -0
  157. package/src/models/index.js.map +1 -0
  158. package/src/models/{list-branch-response.ts → list-branch-response.d.ts} +6 -9
  159. package/src/models/list-branch-response.js +16 -0
  160. package/src/models/list-branch-response.js.map +1 -0
  161. package/src/models/lsp-completion-params.d.ts +50 -0
  162. package/src/models/lsp-completion-params.js +16 -0
  163. package/src/models/lsp-completion-params.js.map +1 -0
  164. package/src/models/{lsp-document-request.ts → lsp-document-request.d.ts} +18 -21
  165. package/src/models/lsp-document-request.js +16 -0
  166. package/src/models/lsp-document-request.js.map +1 -0
  167. package/src/models/{lsp-location.ts → lsp-location.d.ts} +13 -19
  168. package/src/models/lsp-location.js +16 -0
  169. package/src/models/lsp-location.js.map +1 -0
  170. package/src/models/{lsp-server-request.ts → lsp-server-request.d.ts} +12 -15
  171. package/src/models/lsp-server-request.js +16 -0
  172. package/src/models/lsp-server-request.js.map +1 -0
  173. package/src/models/lsp-symbol.d.ts +37 -0
  174. package/src/models/lsp-symbol.js +16 -0
  175. package/src/models/lsp-symbol.js.map +1 -0
  176. package/src/models/{match.ts → match.d.ts} +18 -21
  177. package/src/models/match.js +16 -0
  178. package/src/models/match.js.map +1 -0
  179. package/src/models/organization-invitation.d.ts +97 -0
  180. package/src/models/organization-invitation.js +27 -0
  181. package/src/models/organization-invitation.js.map +1 -0
  182. package/src/models/organization-role.d.ts +72 -0
  183. package/src/models/organization-role.js +28 -0
  184. package/src/models/organization-role.js.map +1 -0
  185. package/src/models/{organization-suspension.ts → organization-suspension.d.ts} +12 -15
  186. package/src/models/organization-suspension.js +16 -0
  187. package/src/models/organization-suspension.js.map +1 -0
  188. package/src/models/organization-user.d.ts +72 -0
  189. package/src/models/organization-user.js +21 -0
  190. package/src/models/organization-user.js.map +1 -0
  191. package/src/models/organization.d.ts +78 -0
  192. package/src/models/organization.js +16 -0
  193. package/src/models/organization.js.map +1 -0
  194. package/src/models/paginated-images-dto.d.ts +43 -0
  195. package/src/models/paginated-images-dto.js +16 -0
  196. package/src/models/paginated-images-dto.js.map +1 -0
  197. package/src/models/{port-preview-url.ts → port-preview-url.d.ts} +12 -15
  198. package/src/models/port-preview-url.js +16 -0
  199. package/src/models/port-preview-url.js.map +1 -0
  200. package/src/models/{position.ts → position.d.ts} +12 -15
  201. package/src/models/position.js +16 -0
  202. package/src/models/position.js.map +1 -0
  203. package/src/models/{project-dir-response.ts → project-dir-response.d.ts} +6 -9
  204. package/src/models/project-dir-response.js +16 -0
  205. package/src/models/project-dir-response.js.map +1 -0
  206. package/src/models/{range.ts → range.d.ts} +13 -19
  207. package/src/models/range.js +16 -0
  208. package/src/models/range.js.map +1 -0
  209. package/src/models/registry-push-access-dto.d.ts +54 -0
  210. package/src/models/registry-push-access-dto.js +16 -0
  211. package/src/models/registry-push-access-dto.js.map +1 -0
  212. package/src/models/{replace-request.ts → replace-request.d.ts} +18 -21
  213. package/src/models/replace-request.js +16 -0
  214. package/src/models/replace-request.js.map +1 -0
  215. package/src/models/{replace-result.ts → replace-result.d.ts} +18 -21
  216. package/src/models/replace-result.js +16 -0
  217. package/src/models/replace-result.js.map +1 -0
  218. package/src/models/{search-files-response.ts → search-files-response.d.ts} +6 -9
  219. package/src/models/search-files-response.js +16 -0
  220. package/src/models/search-files-response.js.map +1 -0
  221. package/src/models/session-execute-request.d.ts +37 -0
  222. package/src/models/session-execute-request.js +16 -0
  223. package/src/models/session-execute-request.js.map +1 -0
  224. package/src/models/session-execute-response.d.ts +36 -0
  225. package/src/models/session-execute-response.js +16 -0
  226. package/src/models/session-execute-response.js.map +1 -0
  227. package/src/models/session.d.ts +31 -0
  228. package/src/models/session.js +16 -0
  229. package/src/models/session.js.map +1 -0
  230. package/src/models/{set-image-general-status.ts → set-image-general-status.d.ts} +6 -9
  231. package/src/models/set-image-general-status.js +16 -0
  232. package/src/models/set-image-general-status.js.map +1 -0
  233. package/src/models/storage-access-dto.d.ts +54 -0
  234. package/src/models/storage-access-dto.js +16 -0
  235. package/src/models/storage-access-dto.js.map +1 -0
  236. package/src/models/{toggle-state.ts → toggle-state.d.ts} +6 -9
  237. package/src/models/toggle-state.js +16 -0
  238. package/src/models/toggle-state.js.map +1 -0
  239. package/src/models/{update-assigned-organization-roles.ts → update-assigned-organization-roles.d.ts} +6 -9
  240. package/src/models/update-assigned-organization-roles.js +16 -0
  241. package/src/models/update-assigned-organization-roles.js.map +1 -0
  242. package/src/models/{update-docker-registry.ts → update-docker-registry.d.ts} +18 -21
  243. package/src/models/update-docker-registry.js +16 -0
  244. package/src/models/update-docker-registry.js.map +1 -0
  245. package/src/models/update-organization-invitation.d.ts +41 -0
  246. package/src/models/update-organization-invitation.js +21 -0
  247. package/src/models/update-organization-invitation.js.map +1 -0
  248. package/src/models/update-organization-member-role.d.ts +29 -0
  249. package/src/models/update-organization-member-role.js +21 -0
  250. package/src/models/update-organization-member-role.js.map +1 -0
  251. package/src/models/update-organization-quota.d.ts +84 -0
  252. package/src/models/update-organization-quota.js +16 -0
  253. package/src/models/update-organization-quota.js.map +1 -0
  254. package/src/models/update-organization-role.d.ts +48 -0
  255. package/src/models/update-organization-role.js +28 -0
  256. package/src/models/update-organization-role.js.map +1 -0
  257. package/src/models/usage-overview.d.ts +108 -0
  258. package/src/models/usage-overview.js +16 -0
  259. package/src/models/usage-overview.js.map +1 -0
  260. package/src/models/{user-public-key.ts → user-public-key.d.ts} +12 -15
  261. package/src/models/user-public-key.js +16 -0
  262. package/src/models/user-public-key.js.map +1 -0
  263. package/src/models/user.d.ts +43 -0
  264. package/src/{index.ts → models/user.js} +3 -4
  265. package/src/models/user.js.map +1 -0
  266. package/src/models/volume-dto.d.ts +70 -0
  267. package/src/models/volume-dto.js +26 -0
  268. package/src/models/volume-dto.js.map +1 -0
  269. package/src/models/workspace-info.d.ts +37 -0
  270. package/src/models/workspace-info.js +16 -0
  271. package/src/models/workspace-info.js.map +1 -0
  272. package/src/models/{workspace-labels.ts → workspace-labels.d.ts} +8 -9
  273. package/src/models/workspace-labels.js +16 -0
  274. package/src/models/workspace-labels.js.map +1 -0
  275. package/src/models/workspace-state.d.ts +34 -0
  276. package/src/models/workspace-state.js +39 -0
  277. package/src/models/workspace-state.js.map +1 -0
  278. package/src/models/{workspace-volume.ts → workspace-volume.d.ts} +12 -15
  279. package/src/models/workspace-volume.js +16 -0
  280. package/src/models/workspace-volume.js.map +1 -0
  281. package/src/models/workspace.d.ts +154 -0
  282. package/src/models/workspace.js +24 -0
  283. package/src/models/workspace.js.map +1 -0
  284. package/project.json +0 -55
  285. package/src/.openapi-generator/FILES +0 -97
  286. package/src/.openapi-generator/VERSION +0 -1
  287. package/src/.openapi-generator-ignore +0 -23
  288. package/src/api/api-keys-api.ts +0 -553
  289. package/src/api/docker-registry-api.ts +0 -800
  290. package/src/api/images-api.ts +0 -957
  291. package/src/api/nodes-api.ts +0 -319
  292. package/src/api/object-storage-api.ts +0 -159
  293. package/src/api/organizations-api.ts +0 -2641
  294. package/src/api/preview-api.ts +0 -328
  295. package/src/api/toolbox-api.ts +0 -4879
  296. package/src/api/users-api.ts +0 -382
  297. package/src/api/volumes-api.ts +0 -594
  298. package/src/api/workspace-api.ts +0 -1610
  299. package/src/api.ts +0 -25
  300. package/src/base.ts +0 -91
  301. package/src/common.ts +0 -162
  302. package/src/configuration.ts +0 -122
  303. package/src/git_push.sh +0 -57
  304. package/src/models/api-key-list.ts +0 -59
  305. package/src/models/api-key-response.ts +0 -60
  306. package/src/models/build-image.ts +0 -37
  307. package/src/models/build-info.ts +0 -51
  308. package/src/models/completion-item.ts +0 -63
  309. package/src/models/create-api-key.ts +0 -47
  310. package/src/models/create-docker-registry.ts +0 -73
  311. package/src/models/create-image.ts +0 -39
  312. package/src/models/create-node.ts +0 -102
  313. package/src/models/create-organization-invitation.ts +0 -53
  314. package/src/models/create-organization-quota.ts +0 -87
  315. package/src/models/create-organization-role.ts +0 -54
  316. package/src/models/create-user.ts +0 -68
  317. package/src/models/create-workspace.ts +0 -127
  318. package/src/models/docker-registry.ts +0 -79
  319. package/src/models/file-info.ts +0 -69
  320. package/src/models/get-build-logs400-response.ts +0 -33
  321. package/src/models/git-clone-request.ts +0 -57
  322. package/src/models/git-commit-info.ts +0 -51
  323. package/src/models/git-commit-request.ts +0 -45
  324. package/src/models/git-status.ts +0 -55
  325. package/src/models/image-dto.ts +0 -97
  326. package/src/models/index.ts +0 -77
  327. package/src/models/lsp-completion-params.ts +0 -58
  328. package/src/models/lsp-symbol.ts +0 -43
  329. package/src/models/organization-invitation.ts +0 -108
  330. package/src/models/organization-role.ts +0 -78
  331. package/src/models/organization-user.ts +0 -80
  332. package/src/models/organization.ts +0 -81
  333. package/src/models/paginated-images-dto.ts +0 -49
  334. package/src/models/registry-push-access-dto.ts +0 -57
  335. package/src/models/session-execute-request.ts +0 -40
  336. package/src/models/session-execute-response.ts +0 -39
  337. package/src/models/session.ts +0 -37
  338. package/src/models/storage-access-dto.ts +0 -63
  339. package/src/models/update-organization-invitation.ts +0 -47
  340. package/src/models/update-organization-member-role.ts +0 -35
  341. package/src/models/update-organization-quota.ts +0 -87
  342. package/src/models/update-organization-role.ts +0 -54
  343. package/src/models/usage-overview.ts +0 -111
  344. package/src/models/user.ts +0 -49
  345. package/src/models/volume-dto.ts +0 -75
  346. package/src/models/workspace-info.ts +0 -40
  347. package/src/models/workspace-state.ts +0 -39
  348. package/src/models/workspace.ts +0 -162
  349. package/tsconfig.json +0 -20
  350. package/tsconfig.lib.json +0 -9
package/src/api.ts DELETED
@@ -1,25 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- export * from './api/api-keys-api'
16
- export * from './api/docker-registry-api'
17
- export * from './api/images-api'
18
- export * from './api/nodes-api'
19
- export * from './api/object-storage-api'
20
- export * from './api/organizations-api'
21
- export * from './api/preview-api'
22
- export * from './api/toolbox-api'
23
- export * from './api/users-api'
24
- export * from './api/volumes-api'
25
- export * from './api/workspace-api'
package/src/base.ts DELETED
@@ -1,91 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import type { Configuration } from './configuration'
16
- // Some imports not used depending on template conditions
17
- // @ts-ignore
18
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
19
- import globalAxios from 'axios'
20
-
21
- export const BASE_PATH = 'http://localhost:3000'.replace(/\/+$/, '')
22
-
23
- /**
24
- *
25
- * @export
26
- */
27
- export const COLLECTION_FORMATS = {
28
- csv: ',',
29
- ssv: ' ',
30
- tsv: '\t',
31
- pipes: '|',
32
- }
33
-
34
- /**
35
- *
36
- * @export
37
- * @interface RequestArgs
38
- */
39
- export interface RequestArgs {
40
- url: string
41
- options: RawAxiosRequestConfig
42
- }
43
-
44
- /**
45
- *
46
- * @export
47
- * @class BaseAPI
48
- */
49
- export class BaseAPI {
50
- protected configuration: Configuration | undefined
51
-
52
- constructor(
53
- configuration?: Configuration,
54
- protected basePath: string = BASE_PATH,
55
- protected axios: AxiosInstance = globalAxios,
56
- ) {
57
- if (configuration) {
58
- this.configuration = configuration
59
- this.basePath = configuration.basePath ?? basePath
60
- }
61
- }
62
- }
63
-
64
- /**
65
- *
66
- * @export
67
- * @class RequiredError
68
- * @extends {Error}
69
- */
70
- export class RequiredError extends Error {
71
- constructor(
72
- public field: string,
73
- msg?: string,
74
- ) {
75
- super(msg)
76
- this.name = 'RequiredError'
77
- }
78
- }
79
-
80
- interface ServerMap {
81
- [key: string]: {
82
- url: string
83
- description: string
84
- }[]
85
- }
86
-
87
- /**
88
- *
89
- * @export
90
- */
91
- export const operationServerMap: ServerMap = {}
package/src/common.ts DELETED
@@ -1,162 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import type { Configuration } from './configuration'
16
- import type { RequestArgs } from './base'
17
- import type { AxiosInstance, AxiosResponse } from 'axios'
18
- import { RequiredError } from './base'
19
-
20
- /**
21
- *
22
- * @export
23
- */
24
- export const DUMMY_BASE_URL = 'https://example.com'
25
-
26
- /**
27
- *
28
- * @throws {RequiredError}
29
- * @export
30
- */
31
- export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
32
- if (paramValue === null || paramValue === undefined) {
33
- throw new RequiredError(
34
- paramName,
35
- `Required parameter ${paramName} was null or undefined when calling ${functionName}.`,
36
- )
37
- }
38
- }
39
-
40
- /**
41
- *
42
- * @export
43
- */
44
- export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
45
- if (configuration && configuration.apiKey) {
46
- const localVarApiKeyValue =
47
- typeof configuration.apiKey === 'function' ? await configuration.apiKey(keyParamName) : await configuration.apiKey
48
- object[keyParamName] = localVarApiKeyValue
49
- }
50
- }
51
-
52
- /**
53
- *
54
- * @export
55
- */
56
- export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
57
- if (configuration && (configuration.username || configuration.password)) {
58
- object['auth'] = { username: configuration.username, password: configuration.password }
59
- }
60
- }
61
-
62
- /**
63
- *
64
- * @export
65
- */
66
- export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
67
- if (configuration && configuration.accessToken) {
68
- const accessToken =
69
- typeof configuration.accessToken === 'function'
70
- ? await configuration.accessToken()
71
- : await configuration.accessToken
72
- object['Authorization'] = 'Bearer ' + accessToken
73
- }
74
- }
75
-
76
- /**
77
- *
78
- * @export
79
- */
80
- export const setOAuthToObject = async function (
81
- object: any,
82
- name: string,
83
- scopes: string[],
84
- configuration?: Configuration,
85
- ) {
86
- if (configuration && configuration.accessToken) {
87
- const localVarAccessTokenValue =
88
- typeof configuration.accessToken === 'function'
89
- ? await configuration.accessToken(name, scopes)
90
- : await configuration.accessToken
91
- object['Authorization'] = 'Bearer ' + localVarAccessTokenValue
92
- }
93
- }
94
-
95
- function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ''): void {
96
- if (parameter == null) return
97
- if (typeof parameter === 'object') {
98
- if (Array.isArray(parameter)) {
99
- ;(parameter as any[]).forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key))
100
- } else {
101
- Object.keys(parameter).forEach((currentKey) =>
102
- setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`),
103
- )
104
- }
105
- } else {
106
- if (urlSearchParams.has(key)) {
107
- urlSearchParams.append(key, parameter)
108
- } else {
109
- urlSearchParams.set(key, parameter)
110
- }
111
- }
112
- }
113
-
114
- /**
115
- *
116
- * @export
117
- */
118
- export const setSearchParams = function (url: URL, ...objects: any[]) {
119
- const searchParams = new URLSearchParams(url.search)
120
- setFlattenedQueryParams(searchParams, objects)
121
- url.search = searchParams.toString()
122
- }
123
-
124
- /**
125
- *
126
- * @export
127
- */
128
- export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
129
- const nonString = typeof value !== 'string'
130
- const needsSerialization =
131
- nonString && configuration && configuration.isJsonMime
132
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
133
- : nonString
134
- return needsSerialization ? JSON.stringify(value !== undefined ? value : {}) : value || ''
135
- }
136
-
137
- /**
138
- *
139
- * @export
140
- */
141
- export const toPathString = function (url: URL) {
142
- return url.pathname + url.search + url.hash
143
- }
144
-
145
- /**
146
- *
147
- * @export
148
- */
149
- export const createRequestFunction = function (
150
- axiosArgs: RequestArgs,
151
- globalAxios: AxiosInstance,
152
- BASE_PATH: string,
153
- configuration?: Configuration,
154
- ) {
155
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
156
- const axiosRequestArgs = {
157
- ...axiosArgs.options,
158
- url: (axios.defaults.baseURL ? '' : (configuration?.basePath ?? basePath)) + axiosArgs.url,
159
- }
160
- return axios.request<T, R>(axiosRequestArgs)
161
- }
162
- }
@@ -1,122 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- export interface ConfigurationParameters {
16
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>)
17
- username?: string
18
- password?: string
19
- accessToken?:
20
- | string
21
- | Promise<string>
22
- | ((name?: string, scopes?: string[]) => string)
23
- | ((name?: string, scopes?: string[]) => Promise<string>)
24
- basePath?: string
25
- serverIndex?: number
26
- baseOptions?: any
27
- formDataCtor?: new () => any
28
- }
29
-
30
- export class Configuration {
31
- /**
32
- * parameter for apiKey security
33
- * @param name security name
34
- * @memberof Configuration
35
- */
36
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>)
37
- /**
38
- * parameter for basic security
39
- *
40
- * @type {string}
41
- * @memberof Configuration
42
- */
43
- username?: string
44
- /**
45
- * parameter for basic security
46
- *
47
- * @type {string}
48
- * @memberof Configuration
49
- */
50
- password?: string
51
- /**
52
- * parameter for oauth2 security
53
- * @param name security name
54
- * @param scopes oauth2 scope
55
- * @memberof Configuration
56
- */
57
- accessToken?:
58
- | string
59
- | Promise<string>
60
- | ((name?: string, scopes?: string[]) => string)
61
- | ((name?: string, scopes?: string[]) => Promise<string>)
62
- /**
63
- * override base path
64
- *
65
- * @type {string}
66
- * @memberof Configuration
67
- */
68
- basePath?: string
69
- /**
70
- * override server index
71
- *
72
- * @type {number}
73
- * @memberof Configuration
74
- */
75
- serverIndex?: number
76
- /**
77
- * base options for axios calls
78
- *
79
- * @type {any}
80
- * @memberof Configuration
81
- */
82
- baseOptions?: any
83
- /**
84
- * The FormData constructor that will be used to create multipart form data
85
- * requests. You can inject this here so that execution environments that
86
- * do not support the FormData class can still run the generated client.
87
- *
88
- * @type {new () => FormData}
89
- */
90
- formDataCtor?: new () => any
91
-
92
- constructor(param: ConfigurationParameters = {}) {
93
- this.apiKey = param.apiKey
94
- this.username = param.username
95
- this.password = param.password
96
- this.accessToken = param.accessToken
97
- this.basePath = param.basePath
98
- this.serverIndex = param.serverIndex
99
- this.baseOptions = {
100
- ...param.baseOptions,
101
- headers: {
102
- ...param.baseOptions?.headers,
103
- },
104
- }
105
- this.formDataCtor = param.formDataCtor
106
- }
107
-
108
- /**
109
- * Check if the given MIME is a JSON MIME.
110
- * JSON MIME examples:
111
- * application/json
112
- * application/json; charset=UTF8
113
- * APPLICATION/JSON
114
- * application/vnd.company+json
115
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
116
- * @return True if the given MIME is JSON, false otherwise.
117
- */
118
- public isJsonMime(mime: string): boolean {
119
- const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i')
120
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json')
121
- }
122
- }
package/src/git_push.sh DELETED
@@ -1,57 +0,0 @@
1
- #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
-
6
- git_user_id=$1
7
- git_repo_id=$2
8
- release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
-
16
- if [ "$git_user_id" = "" ]; then
17
- git_user_id="daytonaio"
18
- echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
- fi
20
-
21
- if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="sdk"
23
- echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
- fi
25
-
26
- if [ "$release_note" = "" ]; then
27
- release_note="Minor update"
28
- echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
- fi
30
-
31
- # Initialize the local directory as a Git repository
32
- git init
33
-
34
- # Adds the files in the local repository and stages them for commit.
35
- git add .
36
-
37
- # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
- git commit -m "$release_note"
39
-
40
- # Sets the new remote
41
- git_remote=$(git remote)
42
- if [ "$git_remote" = "" ]; then # git remote not defined
43
-
44
- if [ "$GIT_TOKEN" = "" ]; then
45
- echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
- else
48
- git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
- fi
50
-
51
- fi
52
-
53
- git pull origin master
54
-
55
- # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
- git push origin master 2>&1 | grep -v 'To https'
@@ -1,59 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- /**
16
- *
17
- * @export
18
- * @interface ApiKeyList
19
- */
20
- export interface ApiKeyList {
21
- /**
22
- * The name of the API key
23
- * @type {string}
24
- * @memberof ApiKeyList
25
- */
26
- name: string
27
- /**
28
- * The masked API key value
29
- * @type {string}
30
- * @memberof ApiKeyList
31
- */
32
- value: string
33
- /**
34
- * When the API key was created
35
- * @type {Date}
36
- * @memberof ApiKeyList
37
- */
38
- createdAt: Date
39
- /**
40
- * The list of organization resource permissions assigned to the API key
41
- * @type {Array<string>}
42
- * @memberof ApiKeyList
43
- */
44
- permissions: Array<ApiKeyListPermissionsEnum>
45
- }
46
-
47
- export const ApiKeyListPermissionsEnum = {
48
- WRITE_REGISTRIES: 'write:registries',
49
- DELETE_REGISTRIES: 'delete:registries',
50
- WRITE_IMAGES: 'write:images',
51
- DELETE_IMAGES: 'delete:images',
52
- WRITE_SANDBOXES: 'write:sandboxes',
53
- DELETE_SANDBOXES: 'delete:sandboxes',
54
- READ_VOLUMES: 'read:volumes',
55
- WRITE_VOLUMES: 'write:volumes',
56
- DELETE_VOLUMES: 'delete:volumes',
57
- } as const
58
-
59
- export type ApiKeyListPermissionsEnum = (typeof ApiKeyListPermissionsEnum)[keyof typeof ApiKeyListPermissionsEnum]
@@ -1,60 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- /**
16
- *
17
- * @export
18
- * @interface ApiKeyResponse
19
- */
20
- export interface ApiKeyResponse {
21
- /**
22
- * The name of the API key
23
- * @type {string}
24
- * @memberof ApiKeyResponse
25
- */
26
- name: string
27
- /**
28
- * The API key value
29
- * @type {string}
30
- * @memberof ApiKeyResponse
31
- */
32
- value: string
33
- /**
34
- * When the API key was created
35
- * @type {Date}
36
- * @memberof ApiKeyResponse
37
- */
38
- createdAt: Date
39
- /**
40
- * The list of organization resource permissions assigned to the API key
41
- * @type {Array<string>}
42
- * @memberof ApiKeyResponse
43
- */
44
- permissions: Array<ApiKeyResponsePermissionsEnum>
45
- }
46
-
47
- export const ApiKeyResponsePermissionsEnum = {
48
- WRITE_REGISTRIES: 'write:registries',
49
- DELETE_REGISTRIES: 'delete:registries',
50
- WRITE_IMAGES: 'write:images',
51
- DELETE_IMAGES: 'delete:images',
52
- WRITE_SANDBOXES: 'write:sandboxes',
53
- DELETE_SANDBOXES: 'delete:sandboxes',
54
- READ_VOLUMES: 'read:volumes',
55
- WRITE_VOLUMES: 'write:volumes',
56
- DELETE_VOLUMES: 'delete:volumes',
57
- } as const
58
-
59
- export type ApiKeyResponsePermissionsEnum =
60
- (typeof ApiKeyResponsePermissionsEnum)[keyof typeof ApiKeyResponsePermissionsEnum]
@@ -1,37 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- // May contain unused imports in some cases
16
- // @ts-ignore
17
- import type { CreateBuildInfo } from './create-build-info'
18
-
19
- /**
20
- *
21
- * @export
22
- * @interface BuildImage
23
- */
24
- export interface BuildImage {
25
- /**
26
- * The name of the image to build
27
- * @type {string}
28
- * @memberof BuildImage
29
- */
30
- name: string
31
- /**
32
- * Build information for the image
33
- * @type {CreateBuildInfo}
34
- * @memberof BuildImage
35
- */
36
- buildInfo: CreateBuildInfo
37
- }
@@ -1,51 +0,0 @@
1
- /* tslint:disable */
2
-
3
- /**
4
- * Daytona
5
- * Daytona AI platform API Docs
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: support@daytona.com
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- /**
16
- *
17
- * @export
18
- * @interface BuildInfo
19
- */
20
- export interface BuildInfo {
21
- /**
22
- * The unique identifier for the build info
23
- * @type {string}
24
- * @memberof BuildInfo
25
- */
26
- imageRef: string
27
- /**
28
- * The Dockerfile content used for the build
29
- * @type {string}
30
- * @memberof BuildInfo
31
- */
32
- dockerfileContent?: string
33
- /**
34
- * The context hashes used for the build
35
- * @type {Array<string>}
36
- * @memberof BuildInfo
37
- */
38
- contextHashes?: Array<string>
39
- /**
40
- * The creation timestamp
41
- * @type {Date}
42
- * @memberof BuildInfo
43
- */
44
- createdAt: Date
45
- /**
46
- * The last update timestamp
47
- * @type {Date}
48
- * @memberof BuildInfo
49
- */
50
- updatedAt: Date
51
- }