@daytonaio/api-client 0.12.2 → 0.14.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 +4 -0
- package/README.md +2 -2
- package/api/docker-registry-api.ts +68 -0
- package/api/users-api.ts +84 -0
- package/api/workspace-api.ts +153 -0
- package/dist/api/docker-registry-api.d.ts +30 -0
- package/dist/api/docker-registry-api.js +62 -0
- package/dist/api/users-api.d.ts +38 -0
- package/dist/api/users-api.js +77 -0
- package/dist/api/workspace-api.d.ts +70 -0
- package/dist/api/workspace-api.js +145 -0
- package/dist/common.d.ts +1 -1
- package/dist/esm/api/docker-registry-api.d.ts +30 -0
- package/dist/esm/api/docker-registry-api.js +62 -0
- package/dist/esm/api/users-api.d.ts +38 -0
- package/dist/esm/api/users-api.js +77 -0
- package/dist/esm/api/workspace-api.d.ts +70 -0
- package/dist/esm/api/workspace-api.js +145 -0
- package/dist/esm/common.d.ts +1 -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-user.d.ts +66 -0
- package/dist/esm/models/create-workspace.d.ts +12 -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 +3 -11
- 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 +4 -0
- package/dist/esm/models/index.js +4 -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-user-quota-dto.d.ts +84 -0
- package/dist/esm/models/update-user-quota-dto.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 +18 -3
- package/dist/esm/models/workspace.js +7 -1
- 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-user.d.ts +66 -0
- package/dist/models/create-workspace.d.ts +12 -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 +3 -11
- 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 +4 -0
- package/dist/models/index.js +4 -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-user-quota-dto.d.ts +84 -0
- package/dist/models/update-user-quota-dto.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 +18 -3
- package/dist/models/workspace.js +8 -0
- package/models/create-docker-registry.ts +22 -0
- package/models/create-node.ts +76 -0
- package/models/create-user.ts +66 -0
- package/models/create-workspace.ts +12 -6
- package/models/docker-registry.ts +16 -0
- package/models/image-dto.ts +5 -12
- package/models/image-state.ts +36 -0
- package/models/index.ts +4 -0
- package/models/registry-push-access-dto.ts +60 -0
- package/models/update-user-quota-dto.ts +90 -0
- package/models/workspace-state.ts +43 -0
- package/models/workspace.ts +23 -3
- package/package.json +1 -1
|
@@ -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 {
|
|
104
|
+
* @type {WorkspaceState}
|
|
104
105
|
* @memberof Workspace
|
|
105
106
|
*/
|
|
106
|
-
'state'?:
|
|
107
|
+
'state'?: WorkspaceState;
|
|
107
108
|
/**
|
|
108
109
|
* The error reason of the workspace
|
|
109
110
|
* @type {string}
|
|
@@ -115,11 +116,25 @@ export interface Workspace {
|
|
|
115
116
|
* @type {string}
|
|
116
117
|
* @memberof Workspace
|
|
117
118
|
*/
|
|
118
|
-
'snapshotState'?:
|
|
119
|
+
'snapshotState'?: WorkspaceSnapshotStateEnum;
|
|
119
120
|
/**
|
|
120
121
|
* The creation timestamp of the last snapshot
|
|
121
122
|
* @type {string}
|
|
122
123
|
* @memberof Workspace
|
|
123
124
|
*/
|
|
124
125
|
'snapshotCreatedAt'?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof Workspace
|
|
130
|
+
*/
|
|
131
|
+
'autoStopInterval'?: number;
|
|
125
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];
|
package/dist/models/workspace.js
CHANGED
|
@@ -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
|
+
};
|
|
@@ -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
|
+
USER: 'user',
|
|
70
|
+
PUBLIC: 'public',
|
|
71
|
+
TRANSIENT: 'transient'
|
|
72
|
+
} as const;
|
|
73
|
+
|
|
74
|
+
export type CreateDockerRegistryRegistryTypeEnum = typeof CreateDockerRegistryRegistryTypeEnum[keyof typeof CreateDockerRegistryRegistryTypeEnum];
|
|
75
|
+
|
|
76
|
+
|
package/models/create-node.ts
CHANGED
|
@@ -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
|
+
|
package/models/create-user.ts
CHANGED
|
@@ -32,5 +32,71 @@ export interface CreateUser {
|
|
|
32
32
|
* @memberof CreateUser
|
|
33
33
|
*/
|
|
34
34
|
'name': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof CreateUser
|
|
39
|
+
*/
|
|
40
|
+
'totalCpuQuota': number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof CreateUser
|
|
45
|
+
*/
|
|
46
|
+
'totalMemoryQuota': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof CreateUser
|
|
51
|
+
*/
|
|
52
|
+
'totalDiskQuota': number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof CreateUser
|
|
57
|
+
*/
|
|
58
|
+
'maxCpuPerWorkspace': number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof CreateUser
|
|
63
|
+
*/
|
|
64
|
+
'maxMemoryPerWorkspace': number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CreateUser
|
|
69
|
+
*/
|
|
70
|
+
'maxDiskPerWorkspace': number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof CreateUser
|
|
75
|
+
*/
|
|
76
|
+
'maxConcurrentWorkspaces': number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof CreateUser
|
|
81
|
+
*/
|
|
82
|
+
'workspaceQuota': number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof CreateUser
|
|
87
|
+
*/
|
|
88
|
+
'imageQuota': number;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof CreateUser
|
|
93
|
+
*/
|
|
94
|
+
'maxImageSize': number;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof CreateUser
|
|
99
|
+
*/
|
|
100
|
+
'totalImageSize': number;
|
|
35
101
|
}
|
|
36
102
|
|
|
@@ -98,19 +98,25 @@ export interface CreateWorkspace {
|
|
|
98
98
|
* @memberof CreateWorkspace
|
|
99
99
|
*/
|
|
100
100
|
'disk'?: number;
|
|
101
|
+
/**
|
|
102
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof CreateWorkspace
|
|
105
|
+
*/
|
|
106
|
+
'autoStopInterval'?: number;
|
|
101
107
|
}
|
|
102
108
|
|
|
103
109
|
export const CreateWorkspaceClassEnum = {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
110
|
+
SMALL: 'small',
|
|
111
|
+
MEDIUM: 'medium',
|
|
112
|
+
LARGE: 'large'
|
|
107
113
|
} as const;
|
|
108
114
|
|
|
109
115
|
export type CreateWorkspaceClassEnum = typeof CreateWorkspaceClassEnum[keyof typeof CreateWorkspaceClassEnum];
|
|
110
116
|
export const CreateWorkspaceTargetEnum = {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
EU: 'eu',
|
|
118
|
+
US: 'us',
|
|
119
|
+
ASIA: 'asia'
|
|
114
120
|
} as const;
|
|
115
121
|
|
|
116
122
|
export type CreateWorkspaceTargetEnum = typeof CreateWorkspaceTargetEnum[keyof typeof CreateWorkspaceTargetEnum];
|
|
@@ -50,6 +50,12 @@ export interface DockerRegistry {
|
|
|
50
50
|
* @memberof DockerRegistry
|
|
51
51
|
*/
|
|
52
52
|
'project': string;
|
|
53
|
+
/**
|
|
54
|
+
* Registry type
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof DockerRegistry
|
|
57
|
+
*/
|
|
58
|
+
'registryType': DockerRegistryRegistryTypeEnum;
|
|
53
59
|
/**
|
|
54
60
|
* Creation timestamp
|
|
55
61
|
* @type {string}
|
|
@@ -64,3 +70,13 @@ export interface DockerRegistry {
|
|
|
64
70
|
'updatedAt': string;
|
|
65
71
|
}
|
|
66
72
|
|
|
73
|
+
export const DockerRegistryRegistryTypeEnum = {
|
|
74
|
+
INTERNAL: 'internal',
|
|
75
|
+
USER: 'user',
|
|
76
|
+
PUBLIC: 'public',
|
|
77
|
+
TRANSIENT: 'transient'
|
|
78
|
+
} as const;
|
|
79
|
+
|
|
80
|
+
export type DockerRegistryRegistryTypeEnum = typeof DockerRegistryRegistryTypeEnum[keyof typeof DockerRegistryRegistryTypeEnum];
|
|
81
|
+
|
|
82
|
+
|
package/models/image-dto.ts
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ImageState } from './image-state';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
@@ -46,10 +49,10 @@ export interface ImageDto {
|
|
|
46
49
|
'enabled': boolean;
|
|
47
50
|
/**
|
|
48
51
|
*
|
|
49
|
-
* @type {
|
|
52
|
+
* @type {ImageState}
|
|
50
53
|
* @memberof ImageDto
|
|
51
54
|
*/
|
|
52
|
-
'state':
|
|
55
|
+
'state': ImageState;
|
|
53
56
|
/**
|
|
54
57
|
*
|
|
55
58
|
* @type {number}
|
|
@@ -88,15 +91,5 @@ export interface ImageDto {
|
|
|
88
91
|
'lastUsedAt': string | null;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
|
-
export const ImageDtoStateEnum = {
|
|
92
|
-
Pending: 'pending',
|
|
93
|
-
PullingImage: 'pulling_image',
|
|
94
|
-
Validating: 'validating',
|
|
95
|
-
Active: 'active',
|
|
96
|
-
Error: 'error',
|
|
97
|
-
Removing: 'removing'
|
|
98
|
-
} as const;
|
|
99
|
-
|
|
100
|
-
export type ImageDtoStateEnum = typeof ImageDtoStateEnum[keyof typeof ImageDtoStateEnum];
|
|
101
94
|
|
|
102
95
|
|
|
@@ -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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const ImageState = {
|
|
24
|
+
PENDING: 'pending',
|
|
25
|
+
PULLING_IMAGE: 'pulling_image',
|
|
26
|
+
PENDING_VALIDATION: 'pending_validation',
|
|
27
|
+
VALIDATING: 'validating',
|
|
28
|
+
ACTIVE: 'active',
|
|
29
|
+
ERROR: 'error',
|
|
30
|
+
REMOVING: 'removing'
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export type ImageState = typeof ImageState[keyof typeof ImageState];
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
package/models/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export * from './git-commit-response';
|
|
|
25
25
|
export * from './git-repo-request';
|
|
26
26
|
export * from './git-status';
|
|
27
27
|
export * from './image-dto';
|
|
28
|
+
export * from './image-state';
|
|
28
29
|
export * from './list-branch-response';
|
|
29
30
|
export * from './lsp-completion-params';
|
|
30
31
|
export * from './lsp-document-request';
|
|
@@ -36,6 +37,7 @@ export * from './paginated-images-dto';
|
|
|
36
37
|
export * from './position';
|
|
37
38
|
export * from './project-dir-response';
|
|
38
39
|
export * from './range';
|
|
40
|
+
export * from './registry-push-access-dto';
|
|
39
41
|
export * from './replace-request';
|
|
40
42
|
export * from './replace-result';
|
|
41
43
|
export * from './search-files-response';
|
|
@@ -44,7 +46,9 @@ export * from './session-execute-request';
|
|
|
44
46
|
export * from './session-execute-response';
|
|
45
47
|
export * from './toggle-state';
|
|
46
48
|
export * from './update-docker-registry';
|
|
49
|
+
export * from './update-user-quota-dto';
|
|
47
50
|
export * from './usage-overview';
|
|
48
51
|
export * from './workspace';
|
|
49
52
|
export * from './workspace-info';
|
|
50
53
|
export * from './workspace-labels';
|
|
54
|
+
export * from './workspace-state';
|
|
@@ -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,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 UpdateUserQuotaDto
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateUserQuotaDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof UpdateUserQuotaDto
|
|
27
|
+
*/
|
|
28
|
+
'totalCpuQuota': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof UpdateUserQuotaDto
|
|
33
|
+
*/
|
|
34
|
+
'totalMemoryQuota': number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof UpdateUserQuotaDto
|
|
39
|
+
*/
|
|
40
|
+
'totalDiskQuota': number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof UpdateUserQuotaDto
|
|
45
|
+
*/
|
|
46
|
+
'maxCpuPerWorkspace': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof UpdateUserQuotaDto
|
|
51
|
+
*/
|
|
52
|
+
'maxMemoryPerWorkspace': number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof UpdateUserQuotaDto
|
|
57
|
+
*/
|
|
58
|
+
'maxDiskPerWorkspace': number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof UpdateUserQuotaDto
|
|
63
|
+
*/
|
|
64
|
+
'maxConcurrentWorkspaces': number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof UpdateUserQuotaDto
|
|
69
|
+
*/
|
|
70
|
+
'workspaceQuota': number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof UpdateUserQuotaDto
|
|
75
|
+
*/
|
|
76
|
+
'imageQuota': number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof UpdateUserQuotaDto
|
|
81
|
+
*/
|
|
82
|
+
'maxImageSize': number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof UpdateUserQuotaDto
|
|
87
|
+
*/
|
|
88
|
+
'totalImageSize': number;
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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,12 +121,29 @@ 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}
|
|
125
128
|
* @memberof Workspace
|
|
126
129
|
*/
|
|
127
130
|
'snapshotCreatedAt'?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
133
|
+
* @type {number}
|
|
134
|
+
* @memberof Workspace
|
|
135
|
+
*/
|
|
136
|
+
'autoStopInterval'?: number;
|
|
128
137
|
}
|
|
129
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
|
+
|