@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.
- package/.openapi-generator/FILES +19 -0
- package/README.md +2 -2
- package/api/api-keys-api.ts +60 -28
- package/api/docker-registry-api.ts +182 -58
- package/api/images-api.ts +60 -28
- package/api/organizations-api.ts +1858 -0
- package/api/toolbox-api.ts +548 -252
- package/api/users-api.ts +14 -14
- package/api/workspace-api.ts +334 -161
- package/api.ts +1 -0
- package/dist/api/api-keys-api.d.ts +32 -16
- package/dist/api/api-keys-api.js +56 -28
- package/dist/api/docker-registry-api.d.ts +98 -40
- package/dist/api/docker-registry-api.js +169 -58
- package/dist/api/images-api.d.ts +32 -16
- package/dist/api/images-api.js +56 -28
- package/dist/api/organizations-api.d.ts +856 -0
- package/dist/api/organizations-api.js +1741 -0
- package/dist/api/toolbox-api.d.ts +292 -144
- package/dist/api/toolbox-api.js +511 -252
- package/dist/api/users-api.d.ts +9 -9
- package/dist/api/users-api.js +13 -13
- package/dist/api/workspace-api.d.ts +182 -97
- package/dist/api/workspace-api.js +319 -162
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/common.d.ts +1 -1
- package/dist/esm/api/api-keys-api.d.ts +32 -16
- package/dist/esm/api/api-keys-api.js +56 -28
- package/dist/esm/api/docker-registry-api.d.ts +98 -40
- package/dist/esm/api/docker-registry-api.js +169 -58
- package/dist/esm/api/images-api.d.ts +32 -16
- package/dist/esm/api/images-api.js +56 -28
- package/dist/esm/api/organizations-api.d.ts +856 -0
- package/dist/esm/api/organizations-api.js +1734 -0
- package/dist/esm/api/toolbox-api.d.ts +292 -144
- package/dist/esm/api/toolbox-api.js +511 -252
- package/dist/esm/api/users-api.d.ts +9 -9
- package/dist/esm/api/users-api.js +13 -13
- package/dist/esm/api/workspace-api.d.ts +182 -97
- package/dist/esm/api/workspace-api.js +319 -162
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/models/api-key-list.d.ts +15 -0
- package/dist/esm/models/api-key-list.js +8 -1
- package/dist/esm/models/api-key-response.d.ts +15 -0
- package/dist/esm/models/api-key-response.js +8 -1
- package/dist/esm/models/create-api-key.d.ts +15 -0
- package/dist/esm/models/create-api-key.js +8 -1
- package/dist/esm/models/create-docker-registry.d.ts +19 -0
- package/dist/esm/models/create-docker-registry.js +6 -1
- package/dist/esm/models/create-node.d.ts +72 -0
- package/dist/esm/models/create-node.js +10 -1
- package/dist/esm/models/create-organization-invitation.d.ts +47 -0
- package/dist/esm/models/create-organization-invitation.js +17 -0
- package/dist/esm/models/create-organization-quota.d.ts +84 -0
- package/dist/esm/models/create-organization-quota.js +14 -0
- package/dist/esm/models/create-organization-role.d.ts +45 -0
- package/dist/esm/models/create-organization-role.js +21 -0
- package/dist/esm/models/create-organization.d.ts +90 -0
- package/dist/esm/models/create-organization.js +14 -0
- package/dist/esm/models/create-user.d.ts +13 -0
- package/dist/esm/models/create-workspace.d.ts +6 -6
- package/dist/esm/models/create-workspace.js +6 -6
- package/dist/esm/models/docker-registry.d.ts +13 -0
- package/dist/esm/models/docker-registry.js +6 -1
- package/dist/esm/models/image-dto.d.ts +4 -12
- package/dist/esm/models/image-dto.js +1 -8
- package/dist/esm/models/image-state.d.ts +26 -0
- package/dist/esm/models/image-state.js +27 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +18 -0
- package/dist/esm/models/organization-invitation.d.ts +91 -0
- package/dist/esm/models/organization-invitation.js +23 -0
- package/dist/esm/models/organization-role.d.ts +69 -0
- package/dist/esm/models/organization-role.js +21 -0
- package/dist/esm/models/organization-user.d.ts +72 -0
- package/dist/esm/models/organization-user.js +17 -0
- package/dist/esm/models/organization.d.ts +54 -0
- package/dist/esm/models/organization.js +14 -0
- package/dist/esm/models/registry-push-access-dto.d.ts +54 -0
- package/dist/esm/models/registry-push-access-dto.js +14 -0
- package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/esm/models/update-assigned-organization-roles.js +14 -0
- package/dist/esm/models/update-organization-invitation.d.ts +41 -0
- package/dist/esm/models/update-organization-invitation.js +17 -0
- package/dist/esm/models/update-organization-member-role.d.ts +29 -0
- package/dist/esm/models/update-organization-member-role.js +17 -0
- package/dist/esm/models/update-organization-quota.d.ts +84 -0
- package/dist/esm/models/update-organization-quota.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +45 -0
- package/dist/esm/models/update-organization-role.js +21 -0
- package/dist/esm/models/user-public-key.d.ts +30 -0
- package/dist/esm/models/user-public-key.js +14 -0
- package/dist/esm/models/user.d.ts +43 -0
- package/dist/esm/models/user.js +14 -0
- package/dist/esm/models/workspace-state.d.ts +33 -0
- package/dist/esm/models/workspace-state.js +34 -0
- package/dist/esm/models/workspace.d.ts +12 -3
- package/dist/esm/models/workspace.js +7 -1
- package/dist/models/api-key-list.d.ts +15 -0
- package/dist/models/api-key-list.js +9 -0
- package/dist/models/api-key-response.d.ts +15 -0
- package/dist/models/api-key-response.js +9 -0
- package/dist/models/create-api-key.d.ts +15 -0
- package/dist/models/create-api-key.js +9 -0
- package/dist/models/create-docker-registry.d.ts +19 -0
- package/dist/models/create-docker-registry.js +7 -0
- package/dist/models/create-node.d.ts +72 -0
- package/dist/models/create-node.js +11 -0
- package/dist/models/create-organization-invitation.d.ts +47 -0
- package/dist/models/create-organization-invitation.js +20 -0
- package/dist/models/create-organization-quota.d.ts +84 -0
- package/dist/models/create-organization-quota.js +15 -0
- package/dist/models/create-organization-role.d.ts +45 -0
- package/dist/models/create-organization-role.js +24 -0
- package/dist/models/create-organization.d.ts +90 -0
- package/dist/models/create-organization.js +15 -0
- package/dist/models/create-user.d.ts +13 -0
- package/dist/models/create-workspace.d.ts +6 -6
- package/dist/models/create-workspace.js +6 -6
- package/dist/models/docker-registry.d.ts +13 -0
- package/dist/models/docker-registry.js +7 -0
- package/dist/models/image-dto.d.ts +4 -12
- package/dist/models/image-dto.js +0 -9
- package/dist/models/image-state.d.ts +26 -0
- package/dist/models/image-state.js +30 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/models/organization-invitation.d.ts +91 -0
- package/dist/models/organization-invitation.js +26 -0
- package/dist/models/organization-role.d.ts +69 -0
- package/dist/models/organization-role.js +24 -0
- package/dist/models/organization-user.d.ts +72 -0
- package/dist/models/organization-user.js +20 -0
- package/dist/models/organization.d.ts +54 -0
- package/dist/models/organization.js +15 -0
- package/dist/models/registry-push-access-dto.d.ts +54 -0
- package/dist/models/registry-push-access-dto.js +15 -0
- package/dist/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/models/update-assigned-organization-roles.js +15 -0
- package/dist/models/update-organization-invitation.d.ts +41 -0
- package/dist/models/update-organization-invitation.js +20 -0
- package/dist/models/update-organization-member-role.d.ts +29 -0
- package/dist/models/update-organization-member-role.js +20 -0
- package/dist/models/update-organization-quota.d.ts +84 -0
- package/dist/models/update-organization-quota.js +15 -0
- package/dist/models/update-organization-role.d.ts +45 -0
- package/dist/models/update-organization-role.js +24 -0
- package/dist/models/user-public-key.d.ts +30 -0
- package/dist/models/user-public-key.js +15 -0
- package/dist/models/user.d.ts +43 -0
- package/dist/models/user.js +15 -0
- package/dist/models/workspace-state.d.ts +33 -0
- package/dist/models/workspace-state.js +37 -0
- package/dist/models/workspace.d.ts +12 -3
- package/dist/models/workspace.js +8 -0
- package/models/api-key-list.ts +18 -0
- package/models/api-key-response.ts +18 -0
- package/models/create-api-key.ts +18 -0
- package/models/create-docker-registry.ts +22 -0
- package/models/create-node.ts +76 -0
- package/models/create-organization-invitation.ts +56 -0
- package/models/create-organization-quota.ts +90 -0
- package/models/create-organization-role.ts +54 -0
- package/models/create-organization.ts +96 -0
- package/models/create-user.ts +15 -0
- package/models/create-workspace.ts +6 -6
- package/models/docker-registry.ts +16 -0
- package/models/image-dto.ts +6 -13
- package/models/image-state.ts +36 -0
- package/models/index.ts +18 -0
- package/models/organization-invitation.ts +103 -0
- package/models/organization-role.ts +78 -0
- package/models/organization-user.ts +83 -0
- package/models/organization.ts +60 -0
- package/models/registry-push-access-dto.ts +60 -0
- package/models/update-assigned-organization-roles.ts +30 -0
- package/models/update-organization-invitation.ts +50 -0
- package/models/update-organization-member-role.ts +38 -0
- package/models/update-organization-quota.ts +90 -0
- package/models/update-organization-role.ts +54 -0
- package/models/user-public-key.ts +36 -0
- package/models/user.ts +51 -0
- package/models/workspace-state.ts +43 -0
- package/models/workspace.ts +17 -3
- 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
|
+
|
package/models/workspace.ts
CHANGED
|
@@ -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 {
|
|
109
|
+
* @type {WorkspaceState}
|
|
107
110
|
* @memberof Workspace
|
|
108
111
|
*/
|
|
109
|
-
'state'?:
|
|
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'?:
|
|
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
|
+
|