@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
package/dist/esm/api.d.ts CHANGED
@@ -13,6 +13,7 @@ export * from './api/api-keys-api';
13
13
  export * from './api/docker-registry-api';
14
14
  export * from './api/images-api';
15
15
  export * from './api/nodes-api';
16
+ export * from './api/organizations-api';
16
17
  export * from './api/toolbox-api';
17
18
  export * from './api/users-api';
18
19
  export * from './api/workspace-api';
package/dist/esm/api.js CHANGED
@@ -15,6 +15,7 @@ export * from './api/api-keys-api';
15
15
  export * from './api/docker-registry-api';
16
16
  export * from './api/images-api';
17
17
  export * from './api/nodes-api';
18
+ export * from './api/organizations-api';
18
19
  export * from './api/toolbox-api';
19
20
  export * from './api/users-api';
20
21
  export * from './api/workspace-api';
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -33,4 +33,19 @@ export interface ApiKeyList {
33
33
  * @memberof ApiKeyList
34
34
  */
35
35
  'createdAt': string;
36
+ /**
37
+ * The list of organization resource permissions assigned to the API key
38
+ * @type {Array<string>}
39
+ * @memberof ApiKeyList
40
+ */
41
+ 'permissions': Array<ApiKeyListPermissionsEnum>;
36
42
  }
43
+ export declare const ApiKeyListPermissionsEnum: {
44
+ readonly WRITEREGISTRIES: "write:registries";
45
+ readonly DELETEREGISTRIES: "delete:registries";
46
+ readonly WRITEIMAGES: "write:images";
47
+ readonly DELETEIMAGES: "delete:images";
48
+ readonly WRITESANDBOXES: "write:sandboxes";
49
+ readonly DELETESANDBOXES: "delete:sandboxes";
50
+ };
51
+ export type ApiKeyListPermissionsEnum = typeof ApiKeyListPermissionsEnum[keyof typeof ApiKeyListPermissionsEnum];
@@ -11,4 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const ApiKeyListPermissionsEnum = {
15
+ WRITEREGISTRIES: 'write:registries',
16
+ DELETEREGISTRIES: 'delete:registries',
17
+ WRITEIMAGES: 'write:images',
18
+ DELETEIMAGES: 'delete:images',
19
+ WRITESANDBOXES: 'write:sandboxes',
20
+ DELETESANDBOXES: 'delete:sandboxes'
21
+ };
@@ -33,4 +33,19 @@ export interface ApiKeyResponse {
33
33
  * @memberof ApiKeyResponse
34
34
  */
35
35
  'createdAt': string;
36
+ /**
37
+ * The list of organization resource permissions assigned to the API key
38
+ * @type {Array<string>}
39
+ * @memberof ApiKeyResponse
40
+ */
41
+ 'permissions': Array<ApiKeyResponsePermissionsEnum>;
36
42
  }
43
+ export declare const ApiKeyResponsePermissionsEnum: {
44
+ readonly WRITEREGISTRIES: "write:registries";
45
+ readonly DELETEREGISTRIES: "delete:registries";
46
+ readonly WRITEIMAGES: "write:images";
47
+ readonly DELETEIMAGES: "delete:images";
48
+ readonly WRITESANDBOXES: "write:sandboxes";
49
+ readonly DELETESANDBOXES: "delete:sandboxes";
50
+ };
51
+ export type ApiKeyResponsePermissionsEnum = typeof ApiKeyResponsePermissionsEnum[keyof typeof ApiKeyResponsePermissionsEnum];
@@ -11,4 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const ApiKeyResponsePermissionsEnum = {
15
+ WRITEREGISTRIES: 'write:registries',
16
+ DELETEREGISTRIES: 'delete:registries',
17
+ WRITEIMAGES: 'write:images',
18
+ DELETEIMAGES: 'delete:images',
19
+ WRITESANDBOXES: 'write:sandboxes',
20
+ DELETESANDBOXES: 'delete:sandboxes'
21
+ };
@@ -21,4 +21,19 @@ export interface CreateApiKey {
21
21
  * @memberof CreateApiKey
22
22
  */
23
23
  'name': string;
24
+ /**
25
+ * The list of organization resource permissions assigned to the API key
26
+ * @type {Array<string>}
27
+ * @memberof CreateApiKey
28
+ */
29
+ 'permissions': Array<CreateApiKeyPermissionsEnum>;
24
30
  }
31
+ export declare const CreateApiKeyPermissionsEnum: {
32
+ readonly WRITEREGISTRIES: "write:registries";
33
+ readonly DELETEREGISTRIES: "delete:registries";
34
+ readonly WRITEIMAGES: "write:images";
35
+ readonly DELETEIMAGES: "delete:images";
36
+ readonly WRITESANDBOXES: "write:sandboxes";
37
+ readonly DELETESANDBOXES: "delete:sandboxes";
38
+ };
39
+ export type CreateApiKeyPermissionsEnum = typeof CreateApiKeyPermissionsEnum[keyof typeof CreateApiKeyPermissionsEnum];
@@ -11,4 +11,11 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const CreateApiKeyPermissionsEnum = {
15
+ WRITEREGISTRIES: 'write:registries',
16
+ DELETEREGISTRIES: 'delete:registries',
17
+ WRITEIMAGES: 'write:images',
18
+ DELETEIMAGES: 'delete:images',
19
+ WRITESANDBOXES: 'write:sandboxes',
20
+ DELETESANDBOXES: 'delete:sandboxes'
21
+ };
@@ -45,4 +45,23 @@ export interface CreateDockerRegistry {
45
45
  * @memberof CreateDockerRegistry
46
46
  */
47
47
  'project': string;
48
+ /**
49
+ * Registry type
50
+ * @type {string}
51
+ * @memberof CreateDockerRegistry
52
+ */
53
+ 'registryType': CreateDockerRegistryRegistryTypeEnum;
54
+ /**
55
+ * Set as default registry
56
+ * @type {boolean}
57
+ * @memberof CreateDockerRegistry
58
+ */
59
+ 'isDefault': boolean;
48
60
  }
61
+ export declare const CreateDockerRegistryRegistryTypeEnum: {
62
+ readonly INTERNAL: "internal";
63
+ readonly ORGANIZATION: "organization";
64
+ readonly PUBLIC: "public";
65
+ readonly TRANSIENT: "transient";
66
+ };
67
+ export type CreateDockerRegistryRegistryTypeEnum = typeof CreateDockerRegistryRegistryTypeEnum[keyof typeof CreateDockerRegistryRegistryTypeEnum];
@@ -11,4 +11,9 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const CreateDockerRegistryRegistryTypeEnum = {
15
+ INTERNAL: 'internal',
16
+ ORGANIZATION: 'organization',
17
+ PUBLIC: 'public',
18
+ TRANSIENT: 'transient'
19
+ };
@@ -21,4 +21,76 @@ export interface CreateNode {
21
21
  * @memberof CreateNode
22
22
  */
23
23
  'domain': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateNode
28
+ */
29
+ 'apiUrl': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateNode
34
+ */
35
+ 'apiKey': string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CreateNode
40
+ */
41
+ 'cpu': number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CreateNode
46
+ */
47
+ 'memory': number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CreateNode
52
+ */
53
+ 'disk': number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CreateNode
58
+ */
59
+ 'gpu': number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CreateNode
64
+ */
65
+ 'gpuType': string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CreateNode
70
+ */
71
+ 'class': CreateNodeClassEnum;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof CreateNode
76
+ */
77
+ 'capacity': number;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof CreateNode
82
+ */
83
+ 'region': CreateNodeRegionEnum;
24
84
  }
85
+ export declare const CreateNodeClassEnum: {
86
+ readonly SMALL: "small";
87
+ readonly MEDIUM: "medium";
88
+ readonly LARGE: "large";
89
+ };
90
+ export type CreateNodeClassEnum = typeof CreateNodeClassEnum[keyof typeof CreateNodeClassEnum];
91
+ export declare const CreateNodeRegionEnum: {
92
+ readonly EU: "eu";
93
+ readonly US: "us";
94
+ readonly ASIA: "asia";
95
+ };
96
+ export type CreateNodeRegionEnum = typeof CreateNodeRegionEnum[keyof typeof CreateNodeRegionEnum];
@@ -11,4 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export {};
14
+ export const CreateNodeClassEnum = {
15
+ SMALL: 'small',
16
+ MEDIUM: 'medium',
17
+ LARGE: 'large'
18
+ };
19
+ export const CreateNodeRegionEnum = {
20
+ EU: 'eu',
21
+ US: 'us',
22
+ ASIA: 'asia'
23
+ };
@@ -0,0 +1,47 @@
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 CreateOrganizationInvitation
16
+ */
17
+ export interface CreateOrganizationInvitation {
18
+ /**
19
+ * Email address of the invitee
20
+ * @type {string}
21
+ * @memberof CreateOrganizationInvitation
22
+ */
23
+ 'email': string;
24
+ /**
25
+ * Organization member role for the invitee
26
+ * @type {string}
27
+ * @memberof CreateOrganizationInvitation
28
+ */
29
+ 'role': CreateOrganizationInvitationRoleEnum;
30
+ /**
31
+ * Array of assigned role IDs for the invitee
32
+ * @type {Array<string>}
33
+ * @memberof CreateOrganizationInvitation
34
+ */
35
+ 'assignedRoleIds': Array<string>;
36
+ /**
37
+ * Expiration date of the invitation
38
+ * @type {string}
39
+ * @memberof CreateOrganizationInvitation
40
+ */
41
+ 'expiresAt'?: string;
42
+ }
43
+ export declare const CreateOrganizationInvitationRoleEnum: {
44
+ readonly OWNER: "owner";
45
+ readonly MEMBER: "member";
46
+ };
47
+ export type CreateOrganizationInvitationRoleEnum = typeof CreateOrganizationInvitationRoleEnum[keyof typeof CreateOrganizationInvitationRoleEnum];
@@ -0,0 +1,17 @@
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
+ export const CreateOrganizationInvitationRoleEnum = {
15
+ OWNER: 'owner',
16
+ MEMBER: 'member'
17
+ };
@@ -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 CreateOrganizationQuota
16
+ */
17
+ export interface CreateOrganizationQuota {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CreateOrganizationQuota
22
+ */
23
+ 'totalCpuQuota'?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CreateOrganizationQuota
28
+ */
29
+ 'totalMemoryQuota'?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CreateOrganizationQuota
34
+ */
35
+ 'totalDiskQuota'?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CreateOrganizationQuota
40
+ */
41
+ 'maxCpuPerWorkspace'?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CreateOrganizationQuota
46
+ */
47
+ 'maxMemoryPerWorkspace'?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CreateOrganizationQuota
52
+ */
53
+ 'maxDiskPerWorkspace'?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CreateOrganizationQuota
58
+ */
59
+ 'maxConcurrentWorkspaces'?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CreateOrganizationQuota
64
+ */
65
+ 'workspaceQuota'?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof CreateOrganizationQuota
70
+ */
71
+ 'imageQuota'?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof CreateOrganizationQuota
76
+ */
77
+ 'maxImageSize'?: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof CreateOrganizationQuota
82
+ */
83
+ 'totalImageSize'?: number;
84
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -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 CreateOrganizationRole
16
+ */
17
+ export interface CreateOrganizationRole {
18
+ /**
19
+ * The name of the role
20
+ * @type {string}
21
+ * @memberof CreateOrganizationRole
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * The description of the role
26
+ * @type {string}
27
+ * @memberof CreateOrganizationRole
28
+ */
29
+ 'description': string;
30
+ /**
31
+ * The list of permissions assigned to the role
32
+ * @type {Array<string>}
33
+ * @memberof CreateOrganizationRole
34
+ */
35
+ 'permissions': Array<CreateOrganizationRolePermissionsEnum>;
36
+ }
37
+ export declare const CreateOrganizationRolePermissionsEnum: {
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 CreateOrganizationRolePermissionsEnum = typeof CreateOrganizationRolePermissionsEnum[keyof typeof CreateOrganizationRolePermissionsEnum];
@@ -0,0 +1,21 @@
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
+ export const CreateOrganizationRolePermissionsEnum = {
15
+ WRITEREGISTRIES: 'write:registries',
16
+ DELETEREGISTRIES: 'delete:registries',
17
+ WRITEIMAGES: 'write:images',
18
+ DELETEIMAGES: 'delete:images',
19
+ WRITESANDBOXES: 'write:sandboxes',
20
+ DELETESANDBOXES: 'delete:sandboxes'
21
+ };
@@ -0,0 +1,90 @@
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 CreateOrganization
16
+ */
17
+ export interface CreateOrganization {
18
+ /**
19
+ * The name of organization
20
+ * @type {string}
21
+ * @memberof CreateOrganization
22
+ */
23
+ 'name': string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CreateOrganization
28
+ */
29
+ 'totalCpuQuota'?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof CreateOrganization
34
+ */
35
+ 'totalMemoryQuota'?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof CreateOrganization
40
+ */
41
+ 'totalDiskQuota'?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof CreateOrganization
46
+ */
47
+ 'maxCpuPerWorkspace'?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CreateOrganization
52
+ */
53
+ 'maxMemoryPerWorkspace'?: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CreateOrganization
58
+ */
59
+ 'maxDiskPerWorkspace'?: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CreateOrganization
64
+ */
65
+ 'maxConcurrentWorkspaces'?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof CreateOrganization
70
+ */
71
+ 'workspaceQuota'?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof CreateOrganization
76
+ */
77
+ 'imageQuota'?: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof CreateOrganization
82
+ */
83
+ 'maxImageSize'?: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof CreateOrganization
88
+ */
89
+ 'totalImageSize'?: number;
90
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { CreateOrganizationQuota } from './create-organization-quota';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,4 +28,16 @@ export interface CreateUser {
27
28
  * @memberof CreateUser
28
29
  */
29
30
  'name': string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateUser
35
+ */
36
+ 'email'?: string;
37
+ /**
38
+ *
39
+ * @type {CreateOrganizationQuota}
40
+ * @memberof CreateUser
41
+ */
42
+ 'personalOrganizationQuota'?: CreateOrganizationQuota;
30
43
  }
@@ -105,14 +105,14 @@ export interface CreateWorkspace {
105
105
  'autoStopInterval'?: number;
106
106
  }
107
107
  export declare const CreateWorkspaceClassEnum: {
108
- readonly Small: "small";
109
- readonly Medium: "medium";
110
- readonly Large: "large";
108
+ readonly SMALL: "small";
109
+ readonly MEDIUM: "medium";
110
+ readonly LARGE: "large";
111
111
  };
112
112
  export type CreateWorkspaceClassEnum = typeof CreateWorkspaceClassEnum[keyof typeof CreateWorkspaceClassEnum];
113
113
  export declare const CreateWorkspaceTargetEnum: {
114
- readonly Eu: "eu";
115
- readonly Us: "us";
116
- readonly Asia: "asia";
114
+ readonly EU: "eu";
115
+ readonly US: "us";
116
+ readonly ASIA: "asia";
117
117
  };
118
118
  export type CreateWorkspaceTargetEnum = typeof CreateWorkspaceTargetEnum[keyof typeof CreateWorkspaceTargetEnum];
@@ -12,12 +12,12 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  export const CreateWorkspaceClassEnum = {
15
- Small: 'small',
16
- Medium: 'medium',
17
- Large: 'large'
15
+ SMALL: 'small',
16
+ MEDIUM: 'medium',
17
+ LARGE: 'large'
18
18
  };
19
19
  export const CreateWorkspaceTargetEnum = {
20
- Eu: 'eu',
21
- Us: 'us',
22
- Asia: 'asia'
20
+ EU: 'eu',
21
+ US: 'us',
22
+ ASIA: 'asia'
23
23
  };