@daytonaio/api-client 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +7 -0
  4. package/api/api-keys-api.ts +412 -324
  5. package/api/docker-registry-api.ts +731 -549
  6. package/api/images-api.ts +596 -346
  7. package/api/nodes-api.ts +259 -210
  8. package/api/organizations-api.ts +2504 -1671
  9. package/api/preview-api.ts +330 -0
  10. package/api/toolbox-api.ts +4651 -3186
  11. package/api/users-api.ts +317 -271
  12. package/api/workspace-api.ts +1536 -969
  13. package/api.ts +10 -12
  14. package/base.ts +35 -30
  15. package/common.ts +78 -66
  16. package/configuration.ts +102 -89
  17. package/dist/api/api-keys-api.js +66 -63
  18. package/dist/api/docker-registry-api.js +123 -107
  19. package/dist/api/images-api.d.ts +42 -0
  20. package/dist/api/images-api.js +161 -66
  21. package/dist/api/nodes-api.js +46 -47
  22. package/dist/api/organizations-api.d.ts +71 -0
  23. package/dist/api/organizations-api.js +560 -336
  24. package/dist/api/preview-api.d.ts +143 -0
  25. package/dist/api/preview-api.js +269 -0
  26. package/dist/api/toolbox-api.js +709 -569
  27. package/dist/api/users-api.js +49 -59
  28. package/dist/api/workspace-api.d.ts +51 -4
  29. package/dist/api/workspace-api.js +330 -190
  30. package/dist/api.d.ts +1 -0
  31. package/dist/api.js +1 -0
  32. package/dist/base.js +6 -7
  33. package/dist/common.d.ts +3 -3
  34. package/dist/common.js +27 -45
  35. package/dist/configuration.js +2 -1
  36. package/dist/esm/api/api-keys-api.js +67 -64
  37. package/dist/esm/api/docker-registry-api.js +124 -108
  38. package/dist/esm/api/images-api.d.ts +42 -0
  39. package/dist/esm/api/images-api.js +162 -67
  40. package/dist/esm/api/nodes-api.js +47 -48
  41. package/dist/esm/api/organizations-api.d.ts +71 -0
  42. package/dist/esm/api/organizations-api.js +561 -337
  43. package/dist/esm/api/preview-api.d.ts +143 -0
  44. package/dist/esm/api/preview-api.js +262 -0
  45. package/dist/esm/api/toolbox-api.js +710 -570
  46. package/dist/esm/api/users-api.js +50 -60
  47. package/dist/esm/api/workspace-api.d.ts +51 -4
  48. package/dist/esm/api/workspace-api.js +331 -191
  49. package/dist/esm/api.d.ts +1 -0
  50. package/dist/esm/api.js +1 -0
  51. package/dist/esm/base.js +6 -7
  52. package/dist/esm/common.d.ts +3 -3
  53. package/dist/esm/common.js +28 -46
  54. package/dist/esm/configuration.js +2 -1
  55. package/dist/esm/index.d.ts +3 -3
  56. package/dist/esm/index.js +3 -3
  57. package/dist/esm/models/api-key-list.d.ts +12 -12
  58. package/dist/esm/models/api-key-list.js +6 -6
  59. package/dist/esm/models/api-key-response.d.ts +12 -12
  60. package/dist/esm/models/api-key-response.js +6 -6
  61. package/dist/esm/models/command.d.ts +3 -3
  62. package/dist/esm/models/completion-context.d.ts +2 -2
  63. package/dist/esm/models/completion-item.d.ts +7 -7
  64. package/dist/esm/models/completion-list.d.ts +2 -2
  65. package/dist/esm/models/create-api-key.d.ts +9 -9
  66. package/dist/esm/models/create-api-key.js +6 -6
  67. package/dist/esm/models/create-docker-registry.d.ts +8 -8
  68. package/dist/esm/models/create-docker-registry.js +1 -1
  69. package/dist/esm/models/create-image.d.ts +9 -3
  70. package/dist/esm/models/create-node.d.ts +13 -13
  71. package/dist/esm/models/create-node.js +2 -2
  72. package/dist/esm/models/create-organization-invitation.d.ts +6 -6
  73. package/dist/esm/models/create-organization-invitation.js +1 -1
  74. package/dist/esm/models/create-organization-quota.d.ts +11 -11
  75. package/dist/esm/models/create-organization-role.d.ts +10 -10
  76. package/dist/esm/models/create-organization-role.js +6 -6
  77. package/dist/esm/models/create-organization.d.ts +1 -67
  78. package/dist/esm/models/create-session-request.d.ts +1 -1
  79. package/dist/esm/models/create-user.d.ts +15 -4
  80. package/dist/esm/models/create-user.js +4 -1
  81. package/dist/esm/models/create-workspace.d.ts +14 -26
  82. package/dist/esm/models/create-workspace.js +2 -2
  83. package/dist/esm/models/docker-registry.d.ts +11 -11
  84. package/dist/esm/models/docker-registry.js +1 -1
  85. package/dist/esm/models/execute-request.d.ts +3 -3
  86. package/dist/esm/models/execute-response.d.ts +2 -2
  87. package/dist/esm/models/file-info.d.ts +8 -8
  88. package/dist/esm/models/file-status.d.ts +4 -4
  89. package/dist/esm/models/git-add-request.d.ts +2 -2
  90. package/dist/esm/models/git-branch-request.d.ts +2 -2
  91. package/dist/esm/models/git-clone-request.d.ts +6 -6
  92. package/dist/esm/models/git-commit-info.d.ts +5 -5
  93. package/dist/esm/models/git-commit-request.d.ts +4 -4
  94. package/dist/esm/models/git-commit-response.d.ts +1 -1
  95. package/dist/esm/models/git-repo-request.d.ts +3 -3
  96. package/dist/esm/models/git-status.d.ts +4 -4
  97. package/dist/esm/models/image-dto.d.ts +21 -15
  98. package/dist/esm/models/image-state.d.ts +1 -1
  99. package/dist/esm/models/image-state.js +1 -1
  100. package/dist/esm/models/index.d.ts +4 -0
  101. package/dist/esm/models/index.js +4 -0
  102. package/dist/esm/models/list-branch-response.d.ts +1 -1
  103. package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
  104. package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
  105. package/dist/esm/models/lsp-completion-params.d.ts +5 -5
  106. package/dist/esm/models/lsp-document-request.d.ts +3 -3
  107. package/dist/esm/models/lsp-location.d.ts +2 -2
  108. package/dist/esm/models/lsp-server-request.d.ts +2 -2
  109. package/dist/esm/models/lsp-symbol.d.ts +3 -3
  110. package/dist/esm/models/match.d.ts +3 -3
  111. package/dist/esm/models/organization-invitation.d.ts +21 -15
  112. package/dist/esm/models/organization-invitation.js +2 -2
  113. package/dist/esm/models/organization-role.d.ts +16 -16
  114. package/dist/esm/models/organization-role.js +6 -6
  115. package/dist/esm/models/organization-suspension.d.ts +30 -0
  116. package/dist/esm/models/organization-suspension.js +14 -0
  117. package/dist/esm/models/organization-user.d.ts +11 -11
  118. package/dist/esm/models/organization-user.js +1 -1
  119. package/dist/esm/models/organization.d.ts +31 -7
  120. package/dist/esm/models/paginated-images-dto.d.ts +4 -4
  121. package/dist/esm/models/port-preview-url.d.ts +30 -0
  122. package/dist/esm/models/port-preview-url.js +14 -0
  123. package/dist/esm/models/position.d.ts +2 -2
  124. package/dist/esm/models/project-dir-response.d.ts +1 -1
  125. package/dist/esm/models/range.d.ts +2 -2
  126. package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
  127. package/dist/esm/models/replace-request.d.ts +3 -3
  128. package/dist/esm/models/replace-result.d.ts +3 -3
  129. package/dist/esm/models/search-files-response.d.ts +1 -1
  130. package/dist/esm/models/session-execute-request.d.ts +9 -2
  131. package/dist/esm/models/session-execute-response.d.ts +3 -3
  132. package/dist/esm/models/session.d.ts +2 -2
  133. package/dist/esm/models/set-image-general-status.d.ts +24 -0
  134. package/dist/esm/models/set-image-general-status.js +14 -0
  135. package/dist/esm/models/toggle-state.d.ts +1 -1
  136. package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
  137. package/dist/esm/models/update-docker-registry.d.ts +3 -3
  138. package/dist/esm/models/update-organization-invitation.d.ts +5 -5
  139. package/dist/esm/models/update-organization-invitation.js +1 -1
  140. package/dist/esm/models/update-organization-member-role.d.ts +2 -2
  141. package/dist/esm/models/update-organization-member-role.js +1 -1
  142. package/dist/esm/models/update-organization-quota.d.ts +11 -11
  143. package/dist/esm/models/update-organization-role.d.ts +10 -10
  144. package/dist/esm/models/update-organization-role.js +6 -6
  145. package/dist/esm/models/usage-overview.d.ts +15 -15
  146. package/dist/esm/models/user-public-key.d.ts +2 -2
  147. package/dist/esm/models/user.d.ts +4 -4
  148. package/dist/esm/models/workspace-info.d.ts +5 -4
  149. package/dist/esm/models/workspace-labels.d.ts +1 -1
  150. package/dist/esm/models/workspace-state.d.ts +2 -2
  151. package/dist/esm/models/workspace-state.js +2 -2
  152. package/dist/esm/models/workspace.d.ts +26 -19
  153. package/dist/esm/models/workspace.js +1 -1
  154. package/dist/index.d.ts +3 -3
  155. package/dist/models/api-key-list.d.ts +12 -12
  156. package/dist/models/api-key-list.js +6 -6
  157. package/dist/models/api-key-response.d.ts +12 -12
  158. package/dist/models/api-key-response.js +6 -6
  159. package/dist/models/command.d.ts +3 -3
  160. package/dist/models/completion-context.d.ts +2 -2
  161. package/dist/models/completion-item.d.ts +7 -7
  162. package/dist/models/completion-list.d.ts +2 -2
  163. package/dist/models/create-api-key.d.ts +9 -9
  164. package/dist/models/create-api-key.js +6 -6
  165. package/dist/models/create-docker-registry.d.ts +8 -8
  166. package/dist/models/create-docker-registry.js +1 -1
  167. package/dist/models/create-image.d.ts +9 -3
  168. package/dist/models/create-node.d.ts +13 -13
  169. package/dist/models/create-node.js +2 -2
  170. package/dist/models/create-organization-invitation.d.ts +6 -6
  171. package/dist/models/create-organization-invitation.js +1 -1
  172. package/dist/models/create-organization-quota.d.ts +11 -11
  173. package/dist/models/create-organization-role.d.ts +10 -10
  174. package/dist/models/create-organization-role.js +6 -6
  175. package/dist/models/create-organization.d.ts +1 -67
  176. package/dist/models/create-session-request.d.ts +1 -1
  177. package/dist/models/create-user.d.ts +15 -4
  178. package/dist/models/create-user.js +5 -0
  179. package/dist/models/create-workspace.d.ts +14 -26
  180. package/dist/models/create-workspace.js +2 -2
  181. package/dist/models/docker-registry.d.ts +11 -11
  182. package/dist/models/docker-registry.js +1 -1
  183. package/dist/models/execute-request.d.ts +3 -3
  184. package/dist/models/execute-response.d.ts +2 -2
  185. package/dist/models/file-info.d.ts +8 -8
  186. package/dist/models/file-status.d.ts +4 -4
  187. package/dist/models/git-add-request.d.ts +2 -2
  188. package/dist/models/git-branch-request.d.ts +2 -2
  189. package/dist/models/git-clone-request.d.ts +6 -6
  190. package/dist/models/git-commit-info.d.ts +5 -5
  191. package/dist/models/git-commit-request.d.ts +4 -4
  192. package/dist/models/git-commit-response.d.ts +1 -1
  193. package/dist/models/git-repo-request.d.ts +3 -3
  194. package/dist/models/git-status.d.ts +4 -4
  195. package/dist/models/image-dto.d.ts +21 -15
  196. package/dist/models/image-state.d.ts +1 -1
  197. package/dist/models/image-state.js +1 -1
  198. package/dist/models/index.d.ts +4 -0
  199. package/dist/models/index.js +4 -0
  200. package/dist/models/list-branch-response.d.ts +1 -1
  201. package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
  202. package/dist/models/list-workspaces-labels-parameter.js +15 -0
  203. package/dist/models/lsp-completion-params.d.ts +5 -5
  204. package/dist/models/lsp-document-request.d.ts +3 -3
  205. package/dist/models/lsp-location.d.ts +2 -2
  206. package/dist/models/lsp-server-request.d.ts +2 -2
  207. package/dist/models/lsp-symbol.d.ts +3 -3
  208. package/dist/models/match.d.ts +3 -3
  209. package/dist/models/organization-invitation.d.ts +21 -15
  210. package/dist/models/organization-invitation.js +2 -2
  211. package/dist/models/organization-role.d.ts +16 -16
  212. package/dist/models/organization-role.js +6 -6
  213. package/dist/models/organization-suspension.d.ts +30 -0
  214. package/dist/models/organization-suspension.js +15 -0
  215. package/dist/models/organization-user.d.ts +11 -11
  216. package/dist/models/organization-user.js +1 -1
  217. package/dist/models/organization.d.ts +31 -7
  218. package/dist/models/paginated-images-dto.d.ts +4 -4
  219. package/dist/models/port-preview-url.d.ts +30 -0
  220. package/dist/models/port-preview-url.js +15 -0
  221. package/dist/models/position.d.ts +2 -2
  222. package/dist/models/project-dir-response.d.ts +1 -1
  223. package/dist/models/range.d.ts +2 -2
  224. package/dist/models/registry-push-access-dto.d.ts +6 -6
  225. package/dist/models/replace-request.d.ts +3 -3
  226. package/dist/models/replace-result.d.ts +3 -3
  227. package/dist/models/search-files-response.d.ts +1 -1
  228. package/dist/models/session-execute-request.d.ts +9 -2
  229. package/dist/models/session-execute-response.d.ts +3 -3
  230. package/dist/models/session.d.ts +2 -2
  231. package/dist/models/set-image-general-status.d.ts +24 -0
  232. package/dist/models/set-image-general-status.js +15 -0
  233. package/dist/models/toggle-state.d.ts +1 -1
  234. package/dist/models/update-assigned-organization-roles.d.ts +1 -1
  235. package/dist/models/update-docker-registry.d.ts +3 -3
  236. package/dist/models/update-organization-invitation.d.ts +5 -5
  237. package/dist/models/update-organization-invitation.js +1 -1
  238. package/dist/models/update-organization-member-role.d.ts +2 -2
  239. package/dist/models/update-organization-member-role.js +1 -1
  240. package/dist/models/update-organization-quota.d.ts +11 -11
  241. package/dist/models/update-organization-role.d.ts +10 -10
  242. package/dist/models/update-organization-role.js +6 -6
  243. package/dist/models/usage-overview.d.ts +15 -15
  244. package/dist/models/user-public-key.d.ts +2 -2
  245. package/dist/models/user.d.ts +4 -4
  246. package/dist/models/workspace-info.d.ts +5 -4
  247. package/dist/models/workspace-labels.d.ts +1 -1
  248. package/dist/models/workspace-state.d.ts +2 -2
  249. package/dist/models/workspace-state.js +2 -2
  250. package/dist/models/workspace.d.ts +26 -19
  251. package/dist/models/workspace.js +1 -1
  252. package/index.ts +4 -5
  253. package/models/api-key-list.ts +34 -38
  254. package/models/api-key-response.ts +35 -38
  255. package/models/command.ts +20 -23
  256. package/models/completion-context.ts +14 -17
  257. package/models/completion-item.ts +44 -47
  258. package/models/completion-list.ts +15 -17
  259. package/models/create-api-key.ts +22 -26
  260. package/models/create-docker-registry.ts +51 -54
  261. package/models/create-image.ts +20 -17
  262. package/models/create-node.ts +78 -82
  263. package/models/create-organization-invitation.ts +31 -34
  264. package/models/create-organization-quota.ts +68 -71
  265. package/models/create-organization-role.ts +29 -32
  266. package/models/create-organization.ts +8 -77
  267. package/models/create-session-request.ts +8 -11
  268. package/models/create-user.ts +39 -28
  269. package/models/create-workspace.ts +84 -100
  270. package/models/docker-registry.ts +57 -60
  271. package/models/execute-request.ts +20 -23
  272. package/models/execute-response.ts +14 -17
  273. package/models/file-info.ts +50 -53
  274. package/models/file-status.ts +26 -29
  275. package/models/git-add-request.ts +14 -17
  276. package/models/git-branch-request.ts +14 -17
  277. package/models/git-clone-request.ts +38 -41
  278. package/models/git-commit-info.ts +32 -35
  279. package/models/git-commit-request.ts +26 -29
  280. package/models/git-commit-response.ts +8 -11
  281. package/models/git-repo-request.ts +20 -23
  282. package/models/git-status.ts +33 -35
  283. package/models/image-dto.ts +75 -73
  284. package/models/image-state.ts +12 -17
  285. package/models/index.ts +72 -68
  286. package/models/list-branch-response.ts +8 -11
  287. package/models/list-workspaces-labels-parameter.ts +27 -0
  288. package/models/lsp-completion-params.ts +34 -36
  289. package/models/lsp-document-request.ts +20 -23
  290. package/models/lsp-location.ts +15 -17
  291. package/models/lsp-server-request.ts +14 -17
  292. package/models/lsp-symbol.ts +21 -23
  293. package/models/match.ts +20 -23
  294. package/models/organization-invitation.ts +81 -76
  295. package/models/organization-role.ts +53 -56
  296. package/models/organization-suspension.ts +33 -0
  297. package/models/organization-user.ts +55 -58
  298. package/models/organization.ts +62 -41
  299. package/models/paginated-images-dto.ts +27 -29
  300. package/models/port-preview-url.ts +33 -0
  301. package/models/position.ts +14 -17
  302. package/models/project-dir-response.ts +8 -11
  303. package/models/range.ts +15 -17
  304. package/models/registry-push-access-dto.ts +38 -41
  305. package/models/replace-request.ts +20 -23
  306. package/models/replace-result.ts +20 -23
  307. package/models/search-files-response.ts +8 -11
  308. package/models/session-execute-request.ts +21 -17
  309. package/models/session-execute-response.ts +20 -23
  310. package/models/session.ts +15 -17
  311. package/models/set-image-general-status.ts +27 -0
  312. package/models/toggle-state.ts +8 -11
  313. package/models/update-assigned-organization-roles.ts +8 -11
  314. package/models/update-docker-registry.ts +20 -23
  315. package/models/update-organization-invitation.ts +25 -28
  316. package/models/update-organization-member-role.ts +13 -16
  317. package/models/update-organization-quota.ts +68 -71
  318. package/models/update-organization-role.ts +29 -32
  319. package/models/usage-overview.ts +92 -95
  320. package/models/user-public-key.ts +14 -17
  321. package/models/user.ts +27 -29
  322. package/models/workspace-info.ts +21 -23
  323. package/models/workspace-labels.ts +8 -11
  324. package/models/workspace-state.ts +19 -24
  325. package/models/workspace.ts +126 -122
  326. package/package.json +2 -2
  327. package/project.json +49 -0
  328. package/tsconfig.json +3 -8
  329. package/README.md +0 -46
  330. package/git_push.sh +0 -57
package/models/user.ts CHANGED
@@ -5,47 +5,45 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  // May contain unused imports in some cases
17
16
  // @ts-ignore
18
- import type { UserPublicKey } from './user-public-key';
17
+ import type { UserPublicKey } from './user-public-key'
19
18
 
20
19
  /**
21
- *
20
+ *
22
21
  * @export
23
22
  * @interface User
24
23
  */
25
24
  export interface User {
26
- /**
27
- * User ID
28
- * @type {string}
29
- * @memberof User
30
- */
31
- 'id': string;
32
- /**
33
- * User name
34
- * @type {string}
35
- * @memberof User
36
- */
37
- 'name': string;
38
- /**
39
- * User email
40
- * @type {string}
41
- * @memberof User
42
- */
43
- 'email': string;
44
- /**
45
- * User public keys
46
- * @type {Array<UserPublicKey>}
47
- * @memberof User
48
- */
49
- 'publicKeys': Array<UserPublicKey>;
25
+ /**
26
+ * User ID
27
+ * @type {string}
28
+ * @memberof User
29
+ */
30
+ id: string
31
+ /**
32
+ * User name
33
+ * @type {string}
34
+ * @memberof User
35
+ */
36
+ name: string
37
+ /**
38
+ * User email
39
+ * @type {string}
40
+ * @memberof User
41
+ */
42
+ email: string
43
+ /**
44
+ * User public keys
45
+ * @type {Array<UserPublicKey>}
46
+ * @memberof User
47
+ */
48
+ publicKeys: Array<UserPublicKey>
50
49
  }
51
-
@@ -5,38 +5,36 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
-
17
15
  /**
18
- *
16
+ *
19
17
  * @export
20
18
  * @interface WorkspaceInfo
21
19
  */
22
20
  export interface WorkspaceInfo {
23
- /**
24
- * The creation timestamp of the project
25
- * @type {string}
26
- * @memberof WorkspaceInfo
27
- */
28
- 'created': string;
29
- /**
30
- * The name of the workspace
31
- * @type {string}
32
- * @memberof WorkspaceInfo
33
- */
34
- 'name': string;
35
- /**
36
- * Additional metadata provided by the provider
37
- * @type {string}
38
- * @memberof WorkspaceInfo
39
- */
40
- 'providerMetadata'?: string;
21
+ /**
22
+ * The creation timestamp of the project
23
+ * @type {string}
24
+ * @memberof WorkspaceInfo
25
+ */
26
+ created: string
27
+ /**
28
+ * Deprecated: The name of the workspace
29
+ * @type {string}
30
+ * @memberof WorkspaceInfo
31
+ * @deprecated
32
+ */
33
+ name: string
34
+ /**
35
+ * Additional metadata provided by the provider
36
+ * @type {string}
37
+ * @memberof WorkspaceInfo
38
+ */
39
+ providerMetadata?: string
41
40
  }
42
-
@@ -5,26 +5,23 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
-
17
15
  /**
18
- *
16
+ *
19
17
  * @export
20
18
  * @interface WorkspaceLabels
21
19
  */
22
20
  export interface WorkspaceLabels {
23
- /**
24
- * Key-value pairs of labels
25
- * @type {{ [key: string]: string; }}
26
- * @memberof WorkspaceLabels
27
- */
28
- 'labels': { [key: string]: string; };
21
+ /**
22
+ * Key-value pairs of labels
23
+ * @type {{ [key: string]: string; }}
24
+ * @memberof WorkspaceLabels
25
+ */
26
+ labels: { [key: string]: string }
29
27
  }
30
-
@@ -5,39 +5,34 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
-
17
15
  /**
18
- *
16
+ * The state of the workspace
19
17
  * @export
20
18
  * @enum {string}
21
19
  */
22
20
 
23
21
  export const WorkspaceState = {
24
- CREATING: 'creating',
25
- RESTORING: 'restoring',
26
- DESTROYED: 'destroyed',
27
- DESTROYING: 'destroying',
28
- STARTED: 'started',
29
- STOPPED: 'stopped',
30
- STARTING: 'starting',
31
- STOPPING: 'stopping',
32
- RESIZING: 'resizing',
33
- ERROR: 'error',
34
- UNKNOWN: 'unknown',
35
- PULLING_IMAGE: 'pulling_image',
36
- ARCHIVING: 'archiving',
37
- ARCHIVED: 'archived'
38
- } as const;
39
-
40
- export type WorkspaceState = typeof WorkspaceState[keyof typeof WorkspaceState];
41
-
42
-
43
-
22
+ CREATING: 'creating',
23
+ RESTORING: 'restoring',
24
+ DESTROYED: 'destroyed',
25
+ DESTROYING: 'destroying',
26
+ STARTED: 'started',
27
+ STOPPED: 'stopped',
28
+ STARTING: 'starting',
29
+ STOPPING: 'stopping',
30
+ RESIZING: 'resizing',
31
+ ERROR: 'error',
32
+ UNKNOWN: 'unknown',
33
+ PULLING_IMAGE: 'pulling_image',
34
+ ARCHIVING: 'archiving',
35
+ ARCHIVED: 'archived',
36
+ } as const
37
+
38
+ export type WorkspaceState = (typeof WorkspaceState)[keyof typeof WorkspaceState]
@@ -5,145 +5,149 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
15
  // May contain unused imports in some cases
17
16
  // @ts-ignore
18
- import type { WorkspaceInfo } from './workspace-info';
17
+ import type { WorkspaceInfo } from './workspace-info'
19
18
  // May contain unused imports in some cases
20
19
  // @ts-ignore
21
- import type { WorkspaceState } from './workspace-state';
20
+ import type { WorkspaceState } from './workspace-state'
22
21
 
23
22
  /**
24
- *
23
+ *
25
24
  * @export
26
25
  * @interface Workspace
27
26
  */
28
27
  export interface Workspace {
29
- /**
30
- * The ID of the workspace
31
- * @type {string}
32
- * @memberof Workspace
33
- */
34
- 'id': string;
35
- /**
36
- * The name of the workspace
37
- * @type {string}
38
- * @memberof Workspace
39
- */
40
- 'name': string;
41
- /**
42
- * The image used for the workspace
43
- * @type {string}
44
- * @memberof Workspace
45
- */
46
- 'image': string;
47
- /**
48
- * The user associated with the project
49
- * @type {string}
50
- * @memberof Workspace
51
- */
52
- 'user': string;
53
- /**
54
- * Environment variables for the workspace
55
- * @type {{ [key: string]: string; }}
56
- * @memberof Workspace
57
- */
58
- 'env': { [key: string]: string; };
59
- /**
60
- * Labels for the workspace
61
- * @type {{ [key: string]: string; }}
62
- * @memberof Workspace
63
- */
64
- 'labels': { [key: string]: string; };
65
- /**
66
- * Whether the workspace http preview is public
67
- * @type {boolean}
68
- * @memberof Workspace
69
- */
70
- 'public': boolean;
71
- /**
72
- * The target environment for the workspace
73
- * @type {string}
74
- * @memberof Workspace
75
- */
76
- 'target': string;
77
- /**
78
- * Additional information about the workspace
79
- * @type {WorkspaceInfo}
80
- * @memberof Workspace
81
- */
82
- 'info'?: WorkspaceInfo;
83
- /**
84
- * The CPU quota for the workspace
85
- * @type {number}
86
- * @memberof Workspace
87
- */
88
- 'cpu'?: number;
89
- /**
90
- * The GPU quota for the workspace
91
- * @type {number}
92
- * @memberof Workspace
93
- */
94
- 'gpu'?: number;
95
- /**
96
- * The memory quota for the workspace
97
- * @type {number}
98
- * @memberof Workspace
99
- */
100
- 'memory'?: number;
101
- /**
102
- * The disk quota for the workspace
103
- * @type {number}
104
- * @memberof Workspace
105
- */
106
- 'disk'?: number;
107
- /**
108
- * The state of the workspace
109
- * @type {WorkspaceState}
110
- * @memberof Workspace
111
- */
112
- 'state'?: WorkspaceState;
113
- /**
114
- * The error reason of the workspace
115
- * @type {string}
116
- * @memberof Workspace
117
- */
118
- 'errorReason'?: string;
119
- /**
120
- * The state of the snapshot
121
- * @type {string}
122
- * @memberof Workspace
123
- */
124
- 'snapshotState'?: WorkspaceSnapshotStateEnum;
125
- /**
126
- * The creation timestamp of the last snapshot
127
- * @type {string}
128
- * @memberof Workspace
129
- */
130
- 'snapshotCreatedAt'?: string;
131
- /**
132
- * Auto-stop interval in minutes (0 means disabled)
133
- * @type {number}
134
- * @memberof Workspace
135
- */
136
- 'autoStopInterval'?: number;
28
+ /**
29
+ * The ID of the workspace
30
+ * @type {string}
31
+ * @memberof Workspace
32
+ */
33
+ id: string
34
+ /**
35
+ * The name of the workspace
36
+ * @type {string}
37
+ * @memberof Workspace
38
+ * @deprecated
39
+ */
40
+ name: string
41
+ /**
42
+ * The organization ID of the workspace
43
+ * @type {string}
44
+ * @memberof Workspace
45
+ */
46
+ organizationId: string
47
+ /**
48
+ * The image used for the workspace
49
+ * @type {string}
50
+ * @memberof Workspace
51
+ */
52
+ image: string
53
+ /**
54
+ * The user associated with the project
55
+ * @type {string}
56
+ * @memberof Workspace
57
+ */
58
+ user: string
59
+ /**
60
+ * Environment variables for the workspace
61
+ * @type {{ [key: string]: string; }}
62
+ * @memberof Workspace
63
+ */
64
+ env: { [key: string]: string }
65
+ /**
66
+ * Labels for the workspace
67
+ * @type {{ [key: string]: string; }}
68
+ * @memberof Workspace
69
+ */
70
+ labels: { [key: string]: string }
71
+ /**
72
+ * Whether the workspace http preview is public
73
+ * @type {boolean}
74
+ * @memberof Workspace
75
+ */
76
+ public: boolean
77
+ /**
78
+ * The target environment for the workspace
79
+ * @type {string}
80
+ * @memberof Workspace
81
+ */
82
+ target: string
83
+ /**
84
+ * Additional information about the workspace
85
+ * @type {WorkspaceInfo}
86
+ * @memberof Workspace
87
+ */
88
+ info?: WorkspaceInfo
89
+ /**
90
+ * The CPU quota for the workspace
91
+ * @type {number}
92
+ * @memberof Workspace
93
+ */
94
+ cpu?: number
95
+ /**
96
+ * The GPU quota for the workspace
97
+ * @type {number}
98
+ * @memberof Workspace
99
+ */
100
+ gpu?: number
101
+ /**
102
+ * The memory quota for the workspace
103
+ * @type {number}
104
+ * @memberof Workspace
105
+ */
106
+ memory?: number
107
+ /**
108
+ * The disk quota for the workspace
109
+ * @type {number}
110
+ * @memberof Workspace
111
+ */
112
+ disk?: number
113
+ /**
114
+ * The state of the workspace
115
+ * @type {WorkspaceState}
116
+ * @memberof Workspace
117
+ */
118
+ state?: WorkspaceState
119
+ /**
120
+ * The error reason of the workspace
121
+ * @type {string}
122
+ * @memberof Workspace
123
+ */
124
+ errorReason?: string
125
+ /**
126
+ * The state of the snapshot
127
+ * @type {string}
128
+ * @memberof Workspace
129
+ */
130
+ snapshotState?: WorkspaceSnapshotStateEnum
131
+ /**
132
+ * The creation timestamp of the last snapshot
133
+ * @type {string}
134
+ * @memberof Workspace
135
+ */
136
+ snapshotCreatedAt?: string
137
+ /**
138
+ * Auto-stop interval in minutes (0 means disabled)
139
+ * @type {number}
140
+ * @memberof Workspace
141
+ */
142
+ autoStopInterval?: number
137
143
  }
138
144
 
139
145
  export const WorkspaceSnapshotStateEnum = {
140
- NONE: 'None',
141
- PENDING: 'Pending',
142
- IN_PROGRESS: 'InProgress',
143
- COMPLETED: 'Completed',
144
- ERROR: 'Error'
145
- } as const;
146
-
147
- export type WorkspaceSnapshotStateEnum = typeof WorkspaceSnapshotStateEnum[keyof typeof WorkspaceSnapshotStateEnum];
148
-
146
+ NONE: 'None',
147
+ PENDING: 'Pending',
148
+ IN_PROGRESS: 'InProgress',
149
+ COMPLETED: 'Completed',
150
+ ERROR: 'Error',
151
+ } as const
149
152
 
153
+ export type WorkspaceSnapshotStateEnum = (typeof WorkspaceSnapshotStateEnum)[keyof typeof WorkspaceSnapshotStateEnum]
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.15.0",
3
+ "version": "0.17.0",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
8
+ "url": "https://github.com/daytonaio/sdk.git"
9
9
  },
10
10
  "keywords": [
11
11
  "axios",
package/project.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "api-client",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "libs/api-client",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "@nx/js:tsc",
9
+ "outputs": ["{options.outputPath}"],
10
+ "options": {
11
+ "outputPath": "dist/libs/api-client",
12
+ "tsConfig": "libs/api-client/tsconfig.lib.json",
13
+ "packageJson": "libs/api-client/package.json",
14
+ "main": "libs/api-client/index.ts",
15
+ "updateBuildableProjectDepsInPackageJson": true
16
+ }
17
+ },
18
+ "generate:api-client": {
19
+ "executor": "nx:run-commands",
20
+ "options": {
21
+ "commands": [
22
+ "yarn run openapi-generator-cli generate --git-repo-id=sdk --git-user-id=daytonaio -i dist/apps/api/openapi.json -g typescript-axios --additional-properties=npmName=@daytonaio/api-client,supportsES6=true,npmVersion=$NX_PACKAGE_PUBLISH_VERSION,typescriptThreePlus=true,withSeparateModelsAndApi=true,apiPackage=api,modelPackage=models,useTags=true,enumPropertyNaming=UPPERCASE --type-mappings=DateTime=Date -o libs/api-client",
23
+ "yarn nx format api-client"
24
+ ],
25
+ "parallel": false
26
+ }
27
+ },
28
+ "format": {
29
+ "executor": "nx:run-commands",
30
+ "options": {
31
+ "command": "cd {projectRoot} && prettier --write \"**/*.{ts,json}\" --config ../../.prettierrc"
32
+ }
33
+ },
34
+ "publish": {
35
+ "executor": "nx:run-commands",
36
+ "options": {
37
+ "commands": ["npm version $NX_PACKAGE_PUBLISH_VERSION", "npm publish"],
38
+ "cwd": "dist/libs/api-client",
39
+ "parallel": false
40
+ },
41
+ "dependsOn": [
42
+ {
43
+ "target": "build"
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "tags": []
49
+ }
package/tsconfig.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "target": "ES6",
4
+ "target": "ES2017",
5
5
  "module": "commonjs",
6
6
  "noImplicitAny": true,
7
7
  "outDir": "dist",
8
8
  "rootDir": ".",
9
9
  "moduleResolution": "node",
10
- "typeRoots": [
11
- "node_modules/@types"
12
- ]
10
+ "typeRoots": ["node_modules/@types"]
13
11
  },
14
- "exclude": [
15
- "dist",
16
- "node_modules"
17
- ]
12
+ "exclude": ["dist", "node_modules"]
18
13
  }
package/README.md DELETED
@@ -1,46 +0,0 @@
1
- ## @daytonaio/api-client@0.15.0
2
-
3
- This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
-
5
- Environment
6
- * Node.js
7
- * Webpack
8
- * Browserify
9
-
10
- Language level
11
- * ES5 - you must have a Promises/A+ library installed
12
- * ES6
13
-
14
- Module system
15
- * CommonJS
16
- * ES6 module system
17
-
18
- It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19
-
20
- ### Building
21
-
22
- To build and compile the typescript sources to javascript use:
23
- ```
24
- npm install
25
- npm run build
26
- ```
27
-
28
- ### Publishing
29
-
30
- First build the package then run `npm publish`
31
-
32
- ### Consuming
33
-
34
- navigate to the folder of your consuming project and run one of the following commands.
35
-
36
- _published:_
37
-
38
- ```
39
- npm install @daytonaio/api-client@0.15.0 --save
40
- ```
41
-
42
- _unPublished (not recommended):_
43
-
44
- ```
45
- npm install PATH_TO_GENERATED_PACKAGE --save
46
- ```