@daytonaio/api-client 0.13.0 → 0.15.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 (188) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/api-keys-api.ts +60 -28
  4. package/api/docker-registry-api.ts +182 -58
  5. package/api/images-api.ts +60 -28
  6. package/api/organizations-api.ts +1858 -0
  7. package/api/toolbox-api.ts +548 -252
  8. package/api/users-api.ts +14 -14
  9. package/api/workspace-api.ts +334 -161
  10. package/api.ts +1 -0
  11. package/dist/api/api-keys-api.d.ts +32 -16
  12. package/dist/api/api-keys-api.js +56 -28
  13. package/dist/api/docker-registry-api.d.ts +98 -40
  14. package/dist/api/docker-registry-api.js +169 -58
  15. package/dist/api/images-api.d.ts +32 -16
  16. package/dist/api/images-api.js +56 -28
  17. package/dist/api/organizations-api.d.ts +856 -0
  18. package/dist/api/organizations-api.js +1741 -0
  19. package/dist/api/toolbox-api.d.ts +292 -144
  20. package/dist/api/toolbox-api.js +511 -252
  21. package/dist/api/users-api.d.ts +9 -9
  22. package/dist/api/users-api.js +13 -13
  23. package/dist/api/workspace-api.d.ts +182 -97
  24. package/dist/api/workspace-api.js +319 -162
  25. package/dist/api.d.ts +1 -0
  26. package/dist/api.js +1 -0
  27. package/dist/common.d.ts +1 -1
  28. package/dist/esm/api/api-keys-api.d.ts +32 -16
  29. package/dist/esm/api/api-keys-api.js +56 -28
  30. package/dist/esm/api/docker-registry-api.d.ts +98 -40
  31. package/dist/esm/api/docker-registry-api.js +169 -58
  32. package/dist/esm/api/images-api.d.ts +32 -16
  33. package/dist/esm/api/images-api.js +56 -28
  34. package/dist/esm/api/organizations-api.d.ts +856 -0
  35. package/dist/esm/api/organizations-api.js +1734 -0
  36. package/dist/esm/api/toolbox-api.d.ts +292 -144
  37. package/dist/esm/api/toolbox-api.js +511 -252
  38. package/dist/esm/api/users-api.d.ts +9 -9
  39. package/dist/esm/api/users-api.js +13 -13
  40. package/dist/esm/api/workspace-api.d.ts +182 -97
  41. package/dist/esm/api/workspace-api.js +319 -162
  42. package/dist/esm/api.d.ts +1 -0
  43. package/dist/esm/api.js +1 -0
  44. package/dist/esm/common.d.ts +1 -1
  45. package/dist/esm/models/api-key-list.d.ts +15 -0
  46. package/dist/esm/models/api-key-list.js +8 -1
  47. package/dist/esm/models/api-key-response.d.ts +15 -0
  48. package/dist/esm/models/api-key-response.js +8 -1
  49. package/dist/esm/models/create-api-key.d.ts +15 -0
  50. package/dist/esm/models/create-api-key.js +8 -1
  51. package/dist/esm/models/create-docker-registry.d.ts +19 -0
  52. package/dist/esm/models/create-docker-registry.js +6 -1
  53. package/dist/esm/models/create-node.d.ts +72 -0
  54. package/dist/esm/models/create-node.js +10 -1
  55. package/dist/esm/models/create-organization-invitation.d.ts +47 -0
  56. package/dist/esm/models/create-organization-invitation.js +17 -0
  57. package/dist/esm/models/create-organization-quota.d.ts +84 -0
  58. package/dist/esm/models/create-organization-quota.js +14 -0
  59. package/dist/esm/models/create-organization-role.d.ts +45 -0
  60. package/dist/esm/models/create-organization-role.js +21 -0
  61. package/dist/esm/models/create-organization.d.ts +90 -0
  62. package/dist/esm/models/create-organization.js +14 -0
  63. package/dist/esm/models/create-user.d.ts +13 -0
  64. package/dist/esm/models/create-workspace.d.ts +6 -6
  65. package/dist/esm/models/create-workspace.js +6 -6
  66. package/dist/esm/models/docker-registry.d.ts +13 -0
  67. package/dist/esm/models/docker-registry.js +6 -1
  68. package/dist/esm/models/image-dto.d.ts +4 -12
  69. package/dist/esm/models/image-dto.js +1 -8
  70. package/dist/esm/models/image-state.d.ts +26 -0
  71. package/dist/esm/models/image-state.js +27 -0
  72. package/dist/esm/models/index.d.ts +18 -0
  73. package/dist/esm/models/index.js +18 -0
  74. package/dist/esm/models/organization-invitation.d.ts +91 -0
  75. package/dist/esm/models/organization-invitation.js +23 -0
  76. package/dist/esm/models/organization-role.d.ts +69 -0
  77. package/dist/esm/models/organization-role.js +21 -0
  78. package/dist/esm/models/organization-user.d.ts +72 -0
  79. package/dist/esm/models/organization-user.js +17 -0
  80. package/dist/esm/models/organization.d.ts +54 -0
  81. package/dist/esm/models/organization.js +14 -0
  82. package/dist/esm/models/registry-push-access-dto.d.ts +54 -0
  83. package/dist/esm/models/registry-push-access-dto.js +14 -0
  84. package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
  85. package/dist/esm/models/update-assigned-organization-roles.js +14 -0
  86. package/dist/esm/models/update-organization-invitation.d.ts +41 -0
  87. package/dist/esm/models/update-organization-invitation.js +17 -0
  88. package/dist/esm/models/update-organization-member-role.d.ts +29 -0
  89. package/dist/esm/models/update-organization-member-role.js +17 -0
  90. package/dist/esm/models/update-organization-quota.d.ts +84 -0
  91. package/dist/esm/models/update-organization-quota.js +14 -0
  92. package/dist/esm/models/update-organization-role.d.ts +45 -0
  93. package/dist/esm/models/update-organization-role.js +21 -0
  94. package/dist/esm/models/user-public-key.d.ts +30 -0
  95. package/dist/esm/models/user-public-key.js +14 -0
  96. package/dist/esm/models/user.d.ts +43 -0
  97. package/dist/esm/models/user.js +14 -0
  98. package/dist/esm/models/workspace-state.d.ts +33 -0
  99. package/dist/esm/models/workspace-state.js +34 -0
  100. package/dist/esm/models/workspace.d.ts +12 -3
  101. package/dist/esm/models/workspace.js +7 -1
  102. package/dist/models/api-key-list.d.ts +15 -0
  103. package/dist/models/api-key-list.js +9 -0
  104. package/dist/models/api-key-response.d.ts +15 -0
  105. package/dist/models/api-key-response.js +9 -0
  106. package/dist/models/create-api-key.d.ts +15 -0
  107. package/dist/models/create-api-key.js +9 -0
  108. package/dist/models/create-docker-registry.d.ts +19 -0
  109. package/dist/models/create-docker-registry.js +7 -0
  110. package/dist/models/create-node.d.ts +72 -0
  111. package/dist/models/create-node.js +11 -0
  112. package/dist/models/create-organization-invitation.d.ts +47 -0
  113. package/dist/models/create-organization-invitation.js +20 -0
  114. package/dist/models/create-organization-quota.d.ts +84 -0
  115. package/dist/models/create-organization-quota.js +15 -0
  116. package/dist/models/create-organization-role.d.ts +45 -0
  117. package/dist/models/create-organization-role.js +24 -0
  118. package/dist/models/create-organization.d.ts +90 -0
  119. package/dist/models/create-organization.js +15 -0
  120. package/dist/models/create-user.d.ts +13 -0
  121. package/dist/models/create-workspace.d.ts +6 -6
  122. package/dist/models/create-workspace.js +6 -6
  123. package/dist/models/docker-registry.d.ts +13 -0
  124. package/dist/models/docker-registry.js +7 -0
  125. package/dist/models/image-dto.d.ts +4 -12
  126. package/dist/models/image-dto.js +0 -9
  127. package/dist/models/image-state.d.ts +26 -0
  128. package/dist/models/image-state.js +30 -0
  129. package/dist/models/index.d.ts +18 -0
  130. package/dist/models/index.js +18 -0
  131. package/dist/models/organization-invitation.d.ts +91 -0
  132. package/dist/models/organization-invitation.js +26 -0
  133. package/dist/models/organization-role.d.ts +69 -0
  134. package/dist/models/organization-role.js +24 -0
  135. package/dist/models/organization-user.d.ts +72 -0
  136. package/dist/models/organization-user.js +20 -0
  137. package/dist/models/organization.d.ts +54 -0
  138. package/dist/models/organization.js +15 -0
  139. package/dist/models/registry-push-access-dto.d.ts +54 -0
  140. package/dist/models/registry-push-access-dto.js +15 -0
  141. package/dist/models/update-assigned-organization-roles.d.ts +24 -0
  142. package/dist/models/update-assigned-organization-roles.js +15 -0
  143. package/dist/models/update-organization-invitation.d.ts +41 -0
  144. package/dist/models/update-organization-invitation.js +20 -0
  145. package/dist/models/update-organization-member-role.d.ts +29 -0
  146. package/dist/models/update-organization-member-role.js +20 -0
  147. package/dist/models/update-organization-quota.d.ts +84 -0
  148. package/dist/models/update-organization-quota.js +15 -0
  149. package/dist/models/update-organization-role.d.ts +45 -0
  150. package/dist/models/update-organization-role.js +24 -0
  151. package/dist/models/user-public-key.d.ts +30 -0
  152. package/dist/models/user-public-key.js +15 -0
  153. package/dist/models/user.d.ts +43 -0
  154. package/dist/models/user.js +15 -0
  155. package/dist/models/workspace-state.d.ts +33 -0
  156. package/dist/models/workspace-state.js +37 -0
  157. package/dist/models/workspace.d.ts +12 -3
  158. package/dist/models/workspace.js +8 -0
  159. package/models/api-key-list.ts +18 -0
  160. package/models/api-key-response.ts +18 -0
  161. package/models/create-api-key.ts +18 -0
  162. package/models/create-docker-registry.ts +22 -0
  163. package/models/create-node.ts +76 -0
  164. package/models/create-organization-invitation.ts +56 -0
  165. package/models/create-organization-quota.ts +90 -0
  166. package/models/create-organization-role.ts +54 -0
  167. package/models/create-organization.ts +96 -0
  168. package/models/create-user.ts +15 -0
  169. package/models/create-workspace.ts +6 -6
  170. package/models/docker-registry.ts +16 -0
  171. package/models/image-dto.ts +6 -13
  172. package/models/image-state.ts +36 -0
  173. package/models/index.ts +18 -0
  174. package/models/organization-invitation.ts +103 -0
  175. package/models/organization-role.ts +78 -0
  176. package/models/organization-user.ts +83 -0
  177. package/models/organization.ts +60 -0
  178. package/models/registry-push-access-dto.ts +60 -0
  179. package/models/update-assigned-organization-roles.ts +30 -0
  180. package/models/update-organization-invitation.ts +50 -0
  181. package/models/update-organization-member-role.ts +38 -0
  182. package/models/update-organization-quota.ts +90 -0
  183. package/models/update-organization-role.ts +54 -0
  184. package/models/user-public-key.ts +36 -0
  185. package/models/user.ts +51 -0
  186. package/models/workspace-state.ts +43 -0
  187. package/models/workspace.ts +17 -3
  188. package/package.json +1 -1
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.UpdateOrganizationMemberRoleRoleEnum = void 0;
17
+ exports.UpdateOrganizationMemberRoleRoleEnum = {
18
+ OWNER: 'owner',
19
+ MEMBER: 'member'
20
+ };
@@ -0,0 +1,84 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateOrganizationQuota
16
+ */
17
+ export interface UpdateOrganizationQuota {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UpdateOrganizationQuota
22
+ */
23
+ 'totalCpuQuota': number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof UpdateOrganizationQuota
28
+ */
29
+ 'totalMemoryQuota': number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof UpdateOrganizationQuota
34
+ */
35
+ 'totalDiskQuota': number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UpdateOrganizationQuota
40
+ */
41
+ 'maxCpuPerWorkspace': number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof UpdateOrganizationQuota
46
+ */
47
+ 'maxMemoryPerWorkspace': number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof UpdateOrganizationQuota
52
+ */
53
+ 'maxDiskPerWorkspace': number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof UpdateOrganizationQuota
58
+ */
59
+ 'maxConcurrentWorkspaces': number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof UpdateOrganizationQuota
64
+ */
65
+ 'workspaceQuota': number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof UpdateOrganizationQuota
70
+ */
71
+ 'imageQuota': number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof UpdateOrganizationQuota
76
+ */
77
+ 'maxImageSize': number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof UpdateOrganizationQuota
82
+ */
83
+ 'totalImageSize': number;
84
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateOrganizationRole
16
+ */
17
+ export interface UpdateOrganizationRole {
18
+ /**
19
+ * The name of the role
20
+ * @type {string}
21
+ * @memberof UpdateOrganizationRole
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * The description of the role
26
+ * @type {string}
27
+ * @memberof UpdateOrganizationRole
28
+ */
29
+ 'description': string;
30
+ /**
31
+ * The list of permissions assigned to the role
32
+ * @type {Array<string>}
33
+ * @memberof UpdateOrganizationRole
34
+ */
35
+ 'permissions': Array<UpdateOrganizationRolePermissionsEnum>;
36
+ }
37
+ export declare const UpdateOrganizationRolePermissionsEnum: {
38
+ readonly WRITEREGISTRIES: "write:registries";
39
+ readonly DELETEREGISTRIES: "delete:registries";
40
+ readonly WRITEIMAGES: "write:images";
41
+ readonly DELETEIMAGES: "delete:images";
42
+ readonly WRITESANDBOXES: "write:sandboxes";
43
+ readonly DELETESANDBOXES: "delete:sandboxes";
44
+ };
45
+ export type UpdateOrganizationRolePermissionsEnum = typeof UpdateOrganizationRolePermissionsEnum[keyof typeof UpdateOrganizationRolePermissionsEnum];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.UpdateOrganizationRolePermissionsEnum = void 0;
17
+ exports.UpdateOrganizationRolePermissionsEnum = {
18
+ WRITEREGISTRIES: 'write:registries',
19
+ DELETEREGISTRIES: 'delete:registries',
20
+ WRITEIMAGES: 'write:images',
21
+ DELETEIMAGES: 'delete:images',
22
+ WRITESANDBOXES: 'write:sandboxes',
23
+ DELETESANDBOXES: 'delete:sandboxes'
24
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UserPublicKey
16
+ */
17
+ export interface UserPublicKey {
18
+ /**
19
+ * Public key
20
+ * @type {string}
21
+ * @memberof UserPublicKey
22
+ */
23
+ 'key': string;
24
+ /**
25
+ * Key name
26
+ * @type {string}
27
+ * @memberof UserPublicKey
28
+ */
29
+ 'name': string;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { UserPublicKey } from './user-public-key';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface User
17
+ */
18
+ export interface User {
19
+ /**
20
+ * User ID
21
+ * @type {string}
22
+ * @memberof User
23
+ */
24
+ 'id': string;
25
+ /**
26
+ * User name
27
+ * @type {string}
28
+ * @memberof User
29
+ */
30
+ 'name': string;
31
+ /**
32
+ * User email
33
+ * @type {string}
34
+ * @memberof User
35
+ */
36
+ 'email': string;
37
+ /**
38
+ * User public keys
39
+ * @type {Array<UserPublicKey>}
40
+ * @memberof User
41
+ */
42
+ 'publicKeys': Array<UserPublicKey>;
43
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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 });
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare const WorkspaceState: {
18
+ readonly CREATING: "creating";
19
+ readonly RESTORING: "restoring";
20
+ readonly DESTROYED: "destroyed";
21
+ readonly DESTROYING: "destroying";
22
+ readonly STARTED: "started";
23
+ readonly STOPPED: "stopped";
24
+ readonly STARTING: "starting";
25
+ readonly STOPPING: "stopping";
26
+ readonly RESIZING: "resizing";
27
+ readonly ERROR: "error";
28
+ readonly UNKNOWN: "unknown";
29
+ readonly PULLING_IMAGE: "pulling_image";
30
+ readonly ARCHIVING: "archiving";
31
+ readonly ARCHIVED: "archived";
32
+ };
33
+ export type WorkspaceState = typeof WorkspaceState[keyof typeof WorkspaceState];
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
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.WorkspaceState = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ exports.WorkspaceState = {
23
+ CREATING: 'creating',
24
+ RESTORING: 'restoring',
25
+ DESTROYED: 'destroyed',
26
+ DESTROYING: 'destroying',
27
+ STARTED: 'started',
28
+ STOPPED: 'stopped',
29
+ STARTING: 'starting',
30
+ STOPPING: 'stopping',
31
+ RESIZING: 'resizing',
32
+ ERROR: 'error',
33
+ UNKNOWN: 'unknown',
34
+ PULLING_IMAGE: 'pulling_image',
35
+ ARCHIVING: 'archiving',
36
+ ARCHIVED: 'archived'
37
+ };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { WorkspaceInfo } from './workspace-info';
13
+ import type { WorkspaceState } from './workspace-state';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -100,10 +101,10 @@ export interface Workspace {
100
101
  'disk'?: number;
101
102
  /**
102
103
  * The state of the workspace
103
- * @type {string}
104
+ * @type {WorkspaceState}
104
105
  * @memberof Workspace
105
106
  */
106
- 'state'?: string;
107
+ 'state'?: WorkspaceState;
107
108
  /**
108
109
  * The error reason of the workspace
109
110
  * @type {string}
@@ -115,7 +116,7 @@ export interface Workspace {
115
116
  * @type {string}
116
117
  * @memberof Workspace
117
118
  */
118
- 'snapshotState'?: string;
119
+ 'snapshotState'?: WorkspaceSnapshotStateEnum;
119
120
  /**
120
121
  * The creation timestamp of the last snapshot
121
122
  * @type {string}
@@ -129,3 +130,11 @@ export interface Workspace {
129
130
  */
130
131
  'autoStopInterval'?: number;
131
132
  }
133
+ export declare const WorkspaceSnapshotStateEnum: {
134
+ readonly NONE: "None";
135
+ readonly PENDING: "Pending";
136
+ readonly IN_PROGRESS: "InProgress";
137
+ readonly COMPLETED: "Completed";
138
+ readonly ERROR: "Error";
139
+ };
140
+ export type WorkspaceSnapshotStateEnum = typeof WorkspaceSnapshotStateEnum[keyof typeof WorkspaceSnapshotStateEnum];
@@ -13,3 +13,11 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.WorkspaceSnapshotStateEnum = void 0;
17
+ exports.WorkspaceSnapshotStateEnum = {
18
+ NONE: 'None',
19
+ PENDING: 'Pending',
20
+ IN_PROGRESS: 'InProgress',
21
+ COMPLETED: 'Completed',
22
+ ERROR: 'Error'
23
+ };
@@ -38,5 +38,23 @@ export interface ApiKeyList {
38
38
  * @memberof ApiKeyList
39
39
  */
40
40
  'createdAt': string;
41
+ /**
42
+ * The list of organization resource permissions assigned to the API key
43
+ * @type {Array<string>}
44
+ * @memberof ApiKeyList
45
+ */
46
+ 'permissions': Array<ApiKeyListPermissionsEnum>;
41
47
  }
42
48
 
49
+ export const ApiKeyListPermissionsEnum = {
50
+ WRITEREGISTRIES: 'write:registries',
51
+ DELETEREGISTRIES: 'delete:registries',
52
+ WRITEIMAGES: 'write:images',
53
+ DELETEIMAGES: 'delete:images',
54
+ WRITESANDBOXES: 'write:sandboxes',
55
+ DELETESANDBOXES: 'delete:sandboxes'
56
+ } as const;
57
+
58
+ export type ApiKeyListPermissionsEnum = typeof ApiKeyListPermissionsEnum[keyof typeof ApiKeyListPermissionsEnum];
59
+
60
+
@@ -38,5 +38,23 @@ export interface ApiKeyResponse {
38
38
  * @memberof ApiKeyResponse
39
39
  */
40
40
  'createdAt': string;
41
+ /**
42
+ * The list of organization resource permissions assigned to the API key
43
+ * @type {Array<string>}
44
+ * @memberof ApiKeyResponse
45
+ */
46
+ 'permissions': Array<ApiKeyResponsePermissionsEnum>;
41
47
  }
42
48
 
49
+ export const ApiKeyResponsePermissionsEnum = {
50
+ WRITEREGISTRIES: 'write:registries',
51
+ DELETEREGISTRIES: 'delete:registries',
52
+ WRITEIMAGES: 'write:images',
53
+ DELETEIMAGES: 'delete:images',
54
+ WRITESANDBOXES: 'write:sandboxes',
55
+ DELETESANDBOXES: 'delete:sandboxes'
56
+ } as const;
57
+
58
+ export type ApiKeyResponsePermissionsEnum = typeof ApiKeyResponsePermissionsEnum[keyof typeof ApiKeyResponsePermissionsEnum];
59
+
60
+
@@ -26,5 +26,23 @@ export interface CreateApiKey {
26
26
  * @memberof CreateApiKey
27
27
  */
28
28
  'name': string;
29
+ /**
30
+ * The list of organization resource permissions assigned to the API key
31
+ * @type {Array<string>}
32
+ * @memberof CreateApiKey
33
+ */
34
+ 'permissions': Array<CreateApiKeyPermissionsEnum>;
29
35
  }
30
36
 
37
+ export const CreateApiKeyPermissionsEnum = {
38
+ WRITEREGISTRIES: 'write:registries',
39
+ DELETEREGISTRIES: 'delete:registries',
40
+ WRITEIMAGES: 'write:images',
41
+ DELETEIMAGES: 'delete:images',
42
+ WRITESANDBOXES: 'write:sandboxes',
43
+ DELETESANDBOXES: 'delete:sandboxes'
44
+ } as const;
45
+
46
+ export type CreateApiKeyPermissionsEnum = typeof CreateApiKeyPermissionsEnum[keyof typeof CreateApiKeyPermissionsEnum];
47
+
48
+
@@ -50,5 +50,27 @@ export interface CreateDockerRegistry {
50
50
  * @memberof CreateDockerRegistry
51
51
  */
52
52
  'project': string;
53
+ /**
54
+ * Registry type
55
+ * @type {string}
56
+ * @memberof CreateDockerRegistry
57
+ */
58
+ 'registryType': CreateDockerRegistryRegistryTypeEnum;
59
+ /**
60
+ * Set as default registry
61
+ * @type {boolean}
62
+ * @memberof CreateDockerRegistry
63
+ */
64
+ 'isDefault': boolean;
53
65
  }
54
66
 
67
+ export const CreateDockerRegistryRegistryTypeEnum = {
68
+ INTERNAL: 'internal',
69
+ ORGANIZATION: 'organization',
70
+ PUBLIC: 'public',
71
+ TRANSIENT: 'transient'
72
+ } as const;
73
+
74
+ export type CreateDockerRegistryRegistryTypeEnum = typeof CreateDockerRegistryRegistryTypeEnum[keyof typeof CreateDockerRegistryRegistryTypeEnum];
75
+
76
+
@@ -26,5 +26,81 @@ export interface CreateNode {
26
26
  * @memberof CreateNode
27
27
  */
28
28
  'domain': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof CreateNode
33
+ */
34
+ 'apiUrl': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof CreateNode
39
+ */
40
+ 'apiKey': string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof CreateNode
45
+ */
46
+ 'cpu': number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof CreateNode
51
+ */
52
+ 'memory': number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof CreateNode
57
+ */
58
+ 'disk': number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof CreateNode
63
+ */
64
+ 'gpu': number;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof CreateNode
69
+ */
70
+ 'gpuType': string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof CreateNode
75
+ */
76
+ 'class': CreateNodeClassEnum;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof CreateNode
81
+ */
82
+ 'capacity': number;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof CreateNode
87
+ */
88
+ 'region': CreateNodeRegionEnum;
29
89
  }
30
90
 
91
+ export const CreateNodeClassEnum = {
92
+ SMALL: 'small',
93
+ MEDIUM: 'medium',
94
+ LARGE: 'large'
95
+ } as const;
96
+
97
+ export type CreateNodeClassEnum = typeof CreateNodeClassEnum[keyof typeof CreateNodeClassEnum];
98
+ export const CreateNodeRegionEnum = {
99
+ EU: 'eu',
100
+ US: 'us',
101
+ ASIA: 'asia'
102
+ } as const;
103
+
104
+ export type CreateNodeRegionEnum = typeof CreateNodeRegionEnum[keyof typeof CreateNodeRegionEnum];
105
+
106
+
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
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
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateOrganizationInvitation
21
+ */
22
+ export interface CreateOrganizationInvitation {
23
+ /**
24
+ * Email address of the invitee
25
+ * @type {string}
26
+ * @memberof CreateOrganizationInvitation
27
+ */
28
+ 'email': string;
29
+ /**
30
+ * Organization member role for the invitee
31
+ * @type {string}
32
+ * @memberof CreateOrganizationInvitation
33
+ */
34
+ 'role': CreateOrganizationInvitationRoleEnum;
35
+ /**
36
+ * Array of assigned role IDs for the invitee
37
+ * @type {Array<string>}
38
+ * @memberof CreateOrganizationInvitation
39
+ */
40
+ 'assignedRoleIds': Array<string>;
41
+ /**
42
+ * Expiration date of the invitation
43
+ * @type {string}
44
+ * @memberof CreateOrganizationInvitation
45
+ */
46
+ 'expiresAt'?: string;
47
+ }
48
+
49
+ export const CreateOrganizationInvitationRoleEnum = {
50
+ OWNER: 'owner',
51
+ MEMBER: 'member'
52
+ } as const;
53
+
54
+ export type CreateOrganizationInvitationRoleEnum = typeof CreateOrganizationInvitationRoleEnum[keyof typeof CreateOrganizationInvitationRoleEnum];
55
+
56
+