@daytonaio/api-client 0.15.0 → 0.17.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 +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
|
@@ -20,71 +20,5 @@ export interface CreateOrganization {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateOrganization
|
|
22
22
|
*/
|
|
23
|
-
|
|
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;
|
|
23
|
+
name: string;
|
|
90
24
|
}
|
|
@@ -21,23 +21,34 @@ export interface CreateUser {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateUser
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
id: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CreateUser
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
name: string;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateUser
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
email?: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {CreateOrganizationQuota}
|
|
40
40
|
* @memberof CreateUser
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
personalOrganizationQuota?: CreateOrganizationQuota;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateUser
|
|
47
|
+
*/
|
|
48
|
+
role?: CreateUserRoleEnum;
|
|
43
49
|
}
|
|
50
|
+
export declare const CreateUserRoleEnum: {
|
|
51
|
+
readonly ADMIN: "admin";
|
|
52
|
+
readonly USER: "user";
|
|
53
|
+
};
|
|
54
|
+
export type CreateUserRoleEnum = (typeof CreateUserRoleEnum)[keyof typeof CreateUserRoleEnum];
|
|
@@ -15,36 +15,24 @@
|
|
|
15
15
|
* @interface CreateWorkspace
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateWorkspace {
|
|
18
|
-
/**
|
|
19
|
-
* The ID of the workspace
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof CreateWorkspace
|
|
22
|
-
*/
|
|
23
|
-
'id'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The name of the workspace
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateWorkspace
|
|
28
|
-
*/
|
|
29
|
-
'name'?: string;
|
|
30
18
|
/**
|
|
31
19
|
* The image used for the workspace
|
|
32
20
|
* @type {string}
|
|
33
21
|
* @memberof CreateWorkspace
|
|
34
22
|
*/
|
|
35
|
-
|
|
23
|
+
image?: string;
|
|
36
24
|
/**
|
|
37
25
|
* The user associated with the project
|
|
38
26
|
* @type {string}
|
|
39
27
|
* @memberof CreateWorkspace
|
|
40
28
|
*/
|
|
41
|
-
|
|
29
|
+
user?: string;
|
|
42
30
|
/**
|
|
43
31
|
* Environment variables for the workspace
|
|
44
32
|
* @type {{ [key: string]: string; }}
|
|
45
33
|
* @memberof CreateWorkspace
|
|
46
34
|
*/
|
|
47
|
-
|
|
35
|
+
env?: {
|
|
48
36
|
[key: string]: string;
|
|
49
37
|
};
|
|
50
38
|
/**
|
|
@@ -52,7 +40,7 @@ export interface CreateWorkspace {
|
|
|
52
40
|
* @type {{ [key: string]: string; }}
|
|
53
41
|
* @memberof CreateWorkspace
|
|
54
42
|
*/
|
|
55
|
-
|
|
43
|
+
labels?: {
|
|
56
44
|
[key: string]: string;
|
|
57
45
|
};
|
|
58
46
|
/**
|
|
@@ -60,59 +48,59 @@ export interface CreateWorkspace {
|
|
|
60
48
|
* @type {boolean}
|
|
61
49
|
* @memberof CreateWorkspace
|
|
62
50
|
*/
|
|
63
|
-
|
|
51
|
+
public?: boolean;
|
|
64
52
|
/**
|
|
65
53
|
* The workspace class type
|
|
66
54
|
* @type {string}
|
|
67
55
|
* @memberof CreateWorkspace
|
|
68
56
|
*/
|
|
69
|
-
|
|
57
|
+
class?: CreateWorkspaceClassEnum;
|
|
70
58
|
/**
|
|
71
59
|
* The target (region) where the workspace will be created
|
|
72
60
|
* @type {string}
|
|
73
61
|
* @memberof CreateWorkspace
|
|
74
62
|
*/
|
|
75
|
-
|
|
63
|
+
target?: CreateWorkspaceTargetEnum;
|
|
76
64
|
/**
|
|
77
65
|
* CPU cores allocated to the workspace
|
|
78
66
|
* @type {number}
|
|
79
67
|
* @memberof CreateWorkspace
|
|
80
68
|
*/
|
|
81
|
-
|
|
69
|
+
cpu?: number;
|
|
82
70
|
/**
|
|
83
71
|
* GPU units allocated to the workspace
|
|
84
72
|
* @type {number}
|
|
85
73
|
* @memberof CreateWorkspace
|
|
86
74
|
*/
|
|
87
|
-
|
|
75
|
+
gpu?: number;
|
|
88
76
|
/**
|
|
89
77
|
* Memory allocated to the workspace in MB
|
|
90
78
|
* @type {number}
|
|
91
79
|
* @memberof CreateWorkspace
|
|
92
80
|
*/
|
|
93
|
-
|
|
81
|
+
memory?: number;
|
|
94
82
|
/**
|
|
95
83
|
* Disk space allocated to the workspace in GB
|
|
96
84
|
* @type {number}
|
|
97
85
|
* @memberof CreateWorkspace
|
|
98
86
|
*/
|
|
99
|
-
|
|
87
|
+
disk?: number;
|
|
100
88
|
/**
|
|
101
89
|
* Auto-stop interval in minutes (0 means disabled)
|
|
102
90
|
* @type {number}
|
|
103
91
|
* @memberof CreateWorkspace
|
|
104
92
|
*/
|
|
105
|
-
|
|
93
|
+
autoStopInterval?: number;
|
|
106
94
|
}
|
|
107
95
|
export declare const CreateWorkspaceClassEnum: {
|
|
108
96
|
readonly SMALL: "small";
|
|
109
97
|
readonly MEDIUM: "medium";
|
|
110
98
|
readonly LARGE: "large";
|
|
111
99
|
};
|
|
112
|
-
export type CreateWorkspaceClassEnum = typeof CreateWorkspaceClassEnum[keyof typeof CreateWorkspaceClassEnum];
|
|
100
|
+
export type CreateWorkspaceClassEnum = (typeof CreateWorkspaceClassEnum)[keyof typeof CreateWorkspaceClassEnum];
|
|
113
101
|
export declare const CreateWorkspaceTargetEnum: {
|
|
114
102
|
readonly EU: "eu";
|
|
115
103
|
readonly US: "us";
|
|
116
104
|
readonly ASIA: "asia";
|
|
117
105
|
};
|
|
118
|
-
export type CreateWorkspaceTargetEnum = typeof CreateWorkspaceTargetEnum[keyof typeof CreateWorkspaceTargetEnum];
|
|
106
|
+
export type CreateWorkspaceTargetEnum = (typeof CreateWorkspaceTargetEnum)[keyof typeof CreateWorkspaceTargetEnum];
|
|
@@ -17,10 +17,10 @@ exports.CreateWorkspaceTargetEnum = exports.CreateWorkspaceClassEnum = void 0;
|
|
|
17
17
|
exports.CreateWorkspaceClassEnum = {
|
|
18
18
|
SMALL: 'small',
|
|
19
19
|
MEDIUM: 'medium',
|
|
20
|
-
LARGE: 'large'
|
|
20
|
+
LARGE: 'large',
|
|
21
21
|
};
|
|
22
22
|
exports.CreateWorkspaceTargetEnum = {
|
|
23
23
|
EU: 'eu',
|
|
24
24
|
US: 'us',
|
|
25
|
-
ASIA: 'asia'
|
|
25
|
+
ASIA: 'asia',
|
|
26
26
|
};
|
|
@@ -20,49 +20,49 @@ export interface DockerRegistry {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof DockerRegistry
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
id: string;
|
|
24
24
|
/**
|
|
25
25
|
* Registry name
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof DockerRegistry
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
name: string;
|
|
30
30
|
/**
|
|
31
31
|
* Registry URL
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof DockerRegistry
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
url: string;
|
|
36
36
|
/**
|
|
37
37
|
* Registry username
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof DockerRegistry
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
username: string;
|
|
42
42
|
/**
|
|
43
43
|
* Registry project
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof DockerRegistry
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
project: string;
|
|
48
48
|
/**
|
|
49
49
|
* Registry type
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof DockerRegistry
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
registryType: DockerRegistryRegistryTypeEnum;
|
|
54
54
|
/**
|
|
55
55
|
* Creation timestamp
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {Date}
|
|
57
57
|
* @memberof DockerRegistry
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
createdAt: Date;
|
|
60
60
|
/**
|
|
61
61
|
* Last update timestamp
|
|
62
|
-
* @type {
|
|
62
|
+
* @type {Date}
|
|
63
63
|
* @memberof DockerRegistry
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
updatedAt: Date;
|
|
66
66
|
}
|
|
67
67
|
export declare const DockerRegistryRegistryTypeEnum: {
|
|
68
68
|
readonly INTERNAL: "internal";
|
|
@@ -70,4 +70,4 @@ export declare const DockerRegistryRegistryTypeEnum: {
|
|
|
70
70
|
readonly PUBLIC: "public";
|
|
71
71
|
readonly TRANSIENT: "transient";
|
|
72
72
|
};
|
|
73
|
-
export type DockerRegistryRegistryTypeEnum = typeof DockerRegistryRegistryTypeEnum[keyof typeof DockerRegistryRegistryTypeEnum];
|
|
73
|
+
export type DockerRegistryRegistryTypeEnum = (typeof DockerRegistryRegistryTypeEnum)[keyof typeof DockerRegistryRegistryTypeEnum];
|
|
@@ -20,17 +20,17 @@ export interface ExecuteRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ExecuteRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
command: string;
|
|
24
24
|
/**
|
|
25
25
|
* Current working directory
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ExecuteRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
cwd?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Timeout in seconds, defaults to 10 seconds
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof ExecuteRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
timeout?: number;
|
|
36
36
|
}
|
|
@@ -20,11 +20,11 @@ export interface ExecuteResponse {
|
|
|
20
20
|
* @type {number}
|
|
21
21
|
* @memberof ExecuteResponse
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
exitCode: number;
|
|
24
24
|
/**
|
|
25
25
|
* Command output
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ExecuteResponse
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
result: string;
|
|
30
30
|
}
|
|
@@ -20,47 +20,47 @@ export interface FileInfo {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof FileInfo
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
name: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {boolean}
|
|
27
27
|
* @memberof FileInfo
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
isDir: boolean;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof FileInfo
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
size: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof FileInfo
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
modTime: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof FileInfo
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
mode: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof FileInfo
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
permissions: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof FileInfo
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
owner: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof FileInfo
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
group: string;
|
|
66
66
|
}
|
|
@@ -20,23 +20,23 @@ export interface FileStatus {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof FileStatus
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
name: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof FileStatus
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
staging: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof FileStatus
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
worktree: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof FileStatus
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
extra: string;
|
|
42
42
|
}
|
|
@@ -20,11 +20,11 @@ export interface GitAddRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GitAddRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
path: string;
|
|
24
24
|
/**
|
|
25
25
|
* files to add (use . for all files)
|
|
26
26
|
* @type {Array<string>}
|
|
27
27
|
* @memberof GitAddRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
files: Array<string>;
|
|
30
30
|
}
|
|
@@ -20,35 +20,35 @@ export interface GitCloneRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GitCloneRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
url: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GitCloneRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
path: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof GitCloneRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
username?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof GitCloneRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
password?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof GitCloneRequest
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
branch?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof GitCloneRequest
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
commit_id?: string;
|
|
54
54
|
}
|
|
@@ -20,29 +20,29 @@ export interface GitCommitInfo {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GitCommitInfo
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
hash: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GitCommitInfo
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
message: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof GitCommitInfo
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
author: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof GitCommitInfo
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
email: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof GitCommitInfo
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
timestamp: string;
|
|
48
48
|
}
|
|
@@ -20,23 +20,23 @@ export interface GitCommitRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GitCommitRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
path: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GitCommitRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
message: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof GitCommitRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
author: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof GitCommitRequest
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
email: string;
|
|
42
42
|
}
|
|
@@ -20,17 +20,17 @@ export interface GitRepoRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof GitRepoRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
path: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GitRepoRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
username?: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof GitRepoRequest
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
password?: string;
|
|
36
36
|
}
|
|
@@ -21,7 +21,7 @@ export interface GitStatus {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof GitStatus
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
currentBranch: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {Array<FileStatus>}
|
|
@@ -33,17 +33,17 @@ export interface GitStatus {
|
|
|
33
33
|
* @type {number}
|
|
34
34
|
* @memberof GitStatus
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
ahead?: number;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {number}
|
|
40
40
|
* @memberof GitStatus
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
behind?: number;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {boolean}
|
|
46
46
|
* @memberof GitStatus
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
branchPublished?: boolean;
|
|
49
49
|
}
|