@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,83 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { OrganizationRole } from './organization-role';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface OrganizationUser
24
+ */
25
+ export interface OrganizationUser {
26
+ /**
27
+ * User ID
28
+ * @type {string}
29
+ * @memberof OrganizationUser
30
+ */
31
+ 'userId': string;
32
+ /**
33
+ * Organization ID
34
+ * @type {string}
35
+ * @memberof OrganizationUser
36
+ */
37
+ 'organizationId': string;
38
+ /**
39
+ * User name
40
+ * @type {string}
41
+ * @memberof OrganizationUser
42
+ */
43
+ 'name': string;
44
+ /**
45
+ * User email
46
+ * @type {string}
47
+ * @memberof OrganizationUser
48
+ */
49
+ 'email': string;
50
+ /**
51
+ * Member role
52
+ * @type {string}
53
+ * @memberof OrganizationUser
54
+ */
55
+ 'role': OrganizationUserRoleEnum;
56
+ /**
57
+ * Roles assigned to the user
58
+ * @type {Array<OrganizationRole>}
59
+ * @memberof OrganizationUser
60
+ */
61
+ 'assignedRoles': Array<OrganizationRole>;
62
+ /**
63
+ * Creation timestamp
64
+ * @type {string}
65
+ * @memberof OrganizationUser
66
+ */
67
+ 'createdAt': string;
68
+ /**
69
+ * Last update timestamp
70
+ * @type {string}
71
+ * @memberof OrganizationUser
72
+ */
73
+ 'updatedAt': string;
74
+ }
75
+
76
+ export const OrganizationUserRoleEnum = {
77
+ OWNER: 'owner',
78
+ MEMBER: 'member'
79
+ } as const;
80
+
81
+ export type OrganizationUserRoleEnum = typeof OrganizationUserRoleEnum[keyof typeof OrganizationUserRoleEnum];
82
+
83
+
@@ -0,0 +1,60 @@
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 Organization
21
+ */
22
+ export interface Organization {
23
+ /**
24
+ * Organization ID
25
+ * @type {string}
26
+ * @memberof Organization
27
+ */
28
+ 'id': string;
29
+ /**
30
+ * Organization name
31
+ * @type {string}
32
+ * @memberof Organization
33
+ */
34
+ 'name': string;
35
+ /**
36
+ * User ID of the organization creator
37
+ * @type {string}
38
+ * @memberof Organization
39
+ */
40
+ 'createdBy': string;
41
+ /**
42
+ * Personal organization flag
43
+ * @type {boolean}
44
+ * @memberof Organization
45
+ */
46
+ 'personal': boolean;
47
+ /**
48
+ * Creation timestamp
49
+ * @type {string}
50
+ * @memberof Organization
51
+ */
52
+ 'createdAt': string;
53
+ /**
54
+ * Last update timestamp
55
+ * @type {string}
56
+ * @memberof Organization
57
+ */
58
+ 'updatedAt': string;
59
+ }
60
+
@@ -0,0 +1,60 @@
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 RegistryPushAccessDto
21
+ */
22
+ export interface RegistryPushAccessDto {
23
+ /**
24
+ * Temporary username for registry authentication
25
+ * @type {string}
26
+ * @memberof RegistryPushAccessDto
27
+ */
28
+ 'username': string;
29
+ /**
30
+ * Temporary secret for registry authentication
31
+ * @type {string}
32
+ * @memberof RegistryPushAccessDto
33
+ */
34
+ 'secret': string;
35
+ /**
36
+ * Registry URL
37
+ * @type {string}
38
+ * @memberof RegistryPushAccessDto
39
+ */
40
+ 'registryUrl': string;
41
+ /**
42
+ * Registry ID
43
+ * @type {string}
44
+ * @memberof RegistryPushAccessDto
45
+ */
46
+ 'registryId': string;
47
+ /**
48
+ * Registry project ID
49
+ * @type {string}
50
+ * @memberof RegistryPushAccessDto
51
+ */
52
+ 'project': string;
53
+ /**
54
+ * Token expiration time in ISO format
55
+ * @type {string}
56
+ * @memberof RegistryPushAccessDto
57
+ */
58
+ 'expiresAt': string;
59
+ }
60
+
@@ -0,0 +1,30 @@
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 UpdateAssignedOrganizationRoles
21
+ */
22
+ export interface UpdateAssignedOrganizationRoles {
23
+ /**
24
+ * Array of role IDs
25
+ * @type {Array<string>}
26
+ * @memberof UpdateAssignedOrganizationRoles
27
+ */
28
+ 'roleIds': Array<string>;
29
+ }
30
+
@@ -0,0 +1,50 @@
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 UpdateOrganizationInvitation
21
+ */
22
+ export interface UpdateOrganizationInvitation {
23
+ /**
24
+ * Organization member role
25
+ * @type {string}
26
+ * @memberof UpdateOrganizationInvitation
27
+ */
28
+ 'role': UpdateOrganizationInvitationRoleEnum;
29
+ /**
30
+ * Array of role IDs
31
+ * @type {Array<string>}
32
+ * @memberof UpdateOrganizationInvitation
33
+ */
34
+ 'assignedRoleIds': Array<string>;
35
+ /**
36
+ * Expiration date of the invitation
37
+ * @type {string}
38
+ * @memberof UpdateOrganizationInvitation
39
+ */
40
+ 'expiresAt'?: string;
41
+ }
42
+
43
+ export const UpdateOrganizationInvitationRoleEnum = {
44
+ OWNER: 'owner',
45
+ MEMBER: 'member'
46
+ } as const;
47
+
48
+ export type UpdateOrganizationInvitationRoleEnum = typeof UpdateOrganizationInvitationRoleEnum[keyof typeof UpdateOrganizationInvitationRoleEnum];
49
+
50
+
@@ -0,0 +1,38 @@
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 UpdateOrganizationMemberRole
21
+ */
22
+ export interface UpdateOrganizationMemberRole {
23
+ /**
24
+ * Organization member role
25
+ * @type {string}
26
+ * @memberof UpdateOrganizationMemberRole
27
+ */
28
+ 'role': UpdateOrganizationMemberRoleRoleEnum;
29
+ }
30
+
31
+ export const UpdateOrganizationMemberRoleRoleEnum = {
32
+ OWNER: 'owner',
33
+ MEMBER: 'member'
34
+ } as const;
35
+
36
+ export type UpdateOrganizationMemberRoleRoleEnum = typeof UpdateOrganizationMemberRoleRoleEnum[keyof typeof UpdateOrganizationMemberRoleRoleEnum];
37
+
38
+
@@ -0,0 +1,90 @@
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 UpdateOrganizationQuota
21
+ */
22
+ export interface UpdateOrganizationQuota {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof UpdateOrganizationQuota
27
+ */
28
+ 'totalCpuQuota': number;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof UpdateOrganizationQuota
33
+ */
34
+ 'totalMemoryQuota': number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof UpdateOrganizationQuota
39
+ */
40
+ 'totalDiskQuota': number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof UpdateOrganizationQuota
45
+ */
46
+ 'maxCpuPerWorkspace': number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof UpdateOrganizationQuota
51
+ */
52
+ 'maxMemoryPerWorkspace': number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof UpdateOrganizationQuota
57
+ */
58
+ 'maxDiskPerWorkspace': number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof UpdateOrganizationQuota
63
+ */
64
+ 'maxConcurrentWorkspaces': number;
65
+ /**
66
+ *
67
+ * @type {number}
68
+ * @memberof UpdateOrganizationQuota
69
+ */
70
+ 'workspaceQuota': number;
71
+ /**
72
+ *
73
+ * @type {number}
74
+ * @memberof UpdateOrganizationQuota
75
+ */
76
+ 'imageQuota': number;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof UpdateOrganizationQuota
81
+ */
82
+ 'maxImageSize': number;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof UpdateOrganizationQuota
87
+ */
88
+ 'totalImageSize': number;
89
+ }
90
+
@@ -0,0 +1,54 @@
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 UpdateOrganizationRole
21
+ */
22
+ export interface UpdateOrganizationRole {
23
+ /**
24
+ * The name of the role
25
+ * @type {string}
26
+ * @memberof UpdateOrganizationRole
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * The description of the role
31
+ * @type {string}
32
+ * @memberof UpdateOrganizationRole
33
+ */
34
+ 'description': string;
35
+ /**
36
+ * The list of permissions assigned to the role
37
+ * @type {Array<string>}
38
+ * @memberof UpdateOrganizationRole
39
+ */
40
+ 'permissions': Array<UpdateOrganizationRolePermissionsEnum>;
41
+ }
42
+
43
+ export const UpdateOrganizationRolePermissionsEnum = {
44
+ WRITEREGISTRIES: 'write:registries',
45
+ DELETEREGISTRIES: 'delete:registries',
46
+ WRITEIMAGES: 'write:images',
47
+ DELETEIMAGES: 'delete:images',
48
+ WRITESANDBOXES: 'write:sandboxes',
49
+ DELETESANDBOXES: 'delete:sandboxes'
50
+ } as const;
51
+
52
+ export type UpdateOrganizationRolePermissionsEnum = typeof UpdateOrganizationRolePermissionsEnum[keyof typeof UpdateOrganizationRolePermissionsEnum];
53
+
54
+
@@ -0,0 +1,36 @@
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 UserPublicKey
21
+ */
22
+ export interface UserPublicKey {
23
+ /**
24
+ * Public key
25
+ * @type {string}
26
+ * @memberof UserPublicKey
27
+ */
28
+ 'key': string;
29
+ /**
30
+ * Key name
31
+ * @type {string}
32
+ * @memberof UserPublicKey
33
+ */
34
+ 'name': string;
35
+ }
36
+
package/models/user.ts ADDED
@@ -0,0 +1,51 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { UserPublicKey } from './user-public-key';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface User
24
+ */
25
+ 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>;
50
+ }
51
+
@@ -0,0 +1,43 @@
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
+ * @enum {string}
21
+ */
22
+
23
+ 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
+
@@ -16,6 +16,9 @@
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
18
  import type { WorkspaceInfo } from './workspace-info';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { WorkspaceState } from './workspace-state';
19
22
 
20
23
  /**
21
24
  *
@@ -103,10 +106,10 @@ export interface Workspace {
103
106
  'disk'?: number;
104
107
  /**
105
108
  * The state of the workspace
106
- * @type {string}
109
+ * @type {WorkspaceState}
107
110
  * @memberof Workspace
108
111
  */
109
- 'state'?: string;
112
+ 'state'?: WorkspaceState;
110
113
  /**
111
114
  * The error reason of the workspace
112
115
  * @type {string}
@@ -118,7 +121,7 @@ export interface Workspace {
118
121
  * @type {string}
119
122
  * @memberof Workspace
120
123
  */
121
- 'snapshotState'?: string;
124
+ 'snapshotState'?: WorkspaceSnapshotStateEnum;
122
125
  /**
123
126
  * The creation timestamp of the last snapshot
124
127
  * @type {string}
@@ -133,3 +136,14 @@ export interface Workspace {
133
136
  'autoStopInterval'?: number;
134
137
  }
135
138
 
139
+ 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
+
149
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {