@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
package/models/user.ts
CHANGED
|
@@ -5,47 +5,45 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
// May contain unused imports in some cases
|
|
17
16
|
// @ts-ignore
|
|
18
|
-
import type { UserPublicKey } from './user-public-key'
|
|
17
|
+
import type { UserPublicKey } from './user-public-key'
|
|
19
18
|
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
*
|
|
22
21
|
* @export
|
|
23
22
|
* @interface User
|
|
24
23
|
*/
|
|
25
24
|
export interface User {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
25
|
+
/**
|
|
26
|
+
* User ID
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof User
|
|
29
|
+
*/
|
|
30
|
+
id: string
|
|
31
|
+
/**
|
|
32
|
+
* User name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof User
|
|
35
|
+
*/
|
|
36
|
+
name: string
|
|
37
|
+
/**
|
|
38
|
+
* User email
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof User
|
|
41
|
+
*/
|
|
42
|
+
email: string
|
|
43
|
+
/**
|
|
44
|
+
* User public keys
|
|
45
|
+
* @type {Array<UserPublicKey>}
|
|
46
|
+
* @memberof User
|
|
47
|
+
*/
|
|
48
|
+
publicKeys: Array<UserPublicKey>
|
|
50
49
|
}
|
|
51
|
-
|
package/models/workspace-info.ts
CHANGED
|
@@ -5,38 +5,36 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
16
|
+
*
|
|
19
17
|
* @export
|
|
20
18
|
* @interface WorkspaceInfo
|
|
21
19
|
*/
|
|
22
20
|
export interface WorkspaceInfo {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The creation timestamp of the project
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof WorkspaceInfo
|
|
25
|
+
*/
|
|
26
|
+
created: string
|
|
27
|
+
/**
|
|
28
|
+
* Deprecated: The name of the workspace
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof WorkspaceInfo
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
33
|
+
name: string
|
|
34
|
+
/**
|
|
35
|
+
* Additional metadata provided by the provider
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof WorkspaceInfo
|
|
38
|
+
*/
|
|
39
|
+
providerMetadata?: string
|
|
41
40
|
}
|
|
42
|
-
|
|
@@ -5,26 +5,23 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
16
|
+
*
|
|
19
17
|
* @export
|
|
20
18
|
* @interface WorkspaceLabels
|
|
21
19
|
*/
|
|
22
20
|
export interface WorkspaceLabels {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Key-value pairs of labels
|
|
23
|
+
* @type {{ [key: string]: string; }}
|
|
24
|
+
* @memberof WorkspaceLabels
|
|
25
|
+
*/
|
|
26
|
+
labels: { [key: string]: string }
|
|
29
27
|
}
|
|
30
|
-
|
|
@@ -5,39 +5,34 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
|
-
*
|
|
16
|
+
* The state of the workspace
|
|
19
17
|
* @export
|
|
20
18
|
* @enum {string}
|
|
21
19
|
*/
|
|
22
20
|
|
|
23
21
|
export const WorkspaceState = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} as const
|
|
39
|
-
|
|
40
|
-
export type WorkspaceState = typeof WorkspaceState[keyof typeof WorkspaceState]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
CREATING: 'creating',
|
|
23
|
+
RESTORING: 'restoring',
|
|
24
|
+
DESTROYED: 'destroyed',
|
|
25
|
+
DESTROYING: 'destroying',
|
|
26
|
+
STARTED: 'started',
|
|
27
|
+
STOPPED: 'stopped',
|
|
28
|
+
STARTING: 'starting',
|
|
29
|
+
STOPPING: 'stopping',
|
|
30
|
+
RESIZING: 'resizing',
|
|
31
|
+
ERROR: 'error',
|
|
32
|
+
UNKNOWN: 'unknown',
|
|
33
|
+
PULLING_IMAGE: 'pulling_image',
|
|
34
|
+
ARCHIVING: 'archiving',
|
|
35
|
+
ARCHIVED: 'archived',
|
|
36
|
+
} as const
|
|
37
|
+
|
|
38
|
+
export type WorkspaceState = (typeof WorkspaceState)[keyof typeof WorkspaceState]
|
package/models/workspace.ts
CHANGED
|
@@ -5,145 +5,149 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
// May contain unused imports in some cases
|
|
17
16
|
// @ts-ignore
|
|
18
|
-
import type { WorkspaceInfo } from './workspace-info'
|
|
17
|
+
import type { WorkspaceInfo } from './workspace-info'
|
|
19
18
|
// May contain unused imports in some cases
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
import type { WorkspaceState } from './workspace-state'
|
|
20
|
+
import type { WorkspaceState } from './workspace-state'
|
|
22
21
|
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
23
|
+
*
|
|
25
24
|
* @export
|
|
26
25
|
* @interface Workspace
|
|
27
26
|
*/
|
|
28
27
|
export interface Workspace {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the workspace
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Workspace
|
|
32
|
+
*/
|
|
33
|
+
id: string
|
|
34
|
+
/**
|
|
35
|
+
* The name of the workspace
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Workspace
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
40
|
+
name: string
|
|
41
|
+
/**
|
|
42
|
+
* The organization ID of the workspace
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Workspace
|
|
45
|
+
*/
|
|
46
|
+
organizationId: string
|
|
47
|
+
/**
|
|
48
|
+
* The image used for the workspace
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Workspace
|
|
51
|
+
*/
|
|
52
|
+
image: string
|
|
53
|
+
/**
|
|
54
|
+
* The user associated with the project
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Workspace
|
|
57
|
+
*/
|
|
58
|
+
user: string
|
|
59
|
+
/**
|
|
60
|
+
* Environment variables for the workspace
|
|
61
|
+
* @type {{ [key: string]: string; }}
|
|
62
|
+
* @memberof Workspace
|
|
63
|
+
*/
|
|
64
|
+
env: { [key: string]: string }
|
|
65
|
+
/**
|
|
66
|
+
* Labels for the workspace
|
|
67
|
+
* @type {{ [key: string]: string; }}
|
|
68
|
+
* @memberof Workspace
|
|
69
|
+
*/
|
|
70
|
+
labels: { [key: string]: string }
|
|
71
|
+
/**
|
|
72
|
+
* Whether the workspace http preview is public
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof Workspace
|
|
75
|
+
*/
|
|
76
|
+
public: boolean
|
|
77
|
+
/**
|
|
78
|
+
* The target environment for the workspace
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof Workspace
|
|
81
|
+
*/
|
|
82
|
+
target: string
|
|
83
|
+
/**
|
|
84
|
+
* Additional information about the workspace
|
|
85
|
+
* @type {WorkspaceInfo}
|
|
86
|
+
* @memberof Workspace
|
|
87
|
+
*/
|
|
88
|
+
info?: WorkspaceInfo
|
|
89
|
+
/**
|
|
90
|
+
* The CPU quota for the workspace
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof Workspace
|
|
93
|
+
*/
|
|
94
|
+
cpu?: number
|
|
95
|
+
/**
|
|
96
|
+
* The GPU quota for the workspace
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof Workspace
|
|
99
|
+
*/
|
|
100
|
+
gpu?: number
|
|
101
|
+
/**
|
|
102
|
+
* The memory quota for the workspace
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof Workspace
|
|
105
|
+
*/
|
|
106
|
+
memory?: number
|
|
107
|
+
/**
|
|
108
|
+
* The disk quota for the workspace
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof Workspace
|
|
111
|
+
*/
|
|
112
|
+
disk?: number
|
|
113
|
+
/**
|
|
114
|
+
* The state of the workspace
|
|
115
|
+
* @type {WorkspaceState}
|
|
116
|
+
* @memberof Workspace
|
|
117
|
+
*/
|
|
118
|
+
state?: WorkspaceState
|
|
119
|
+
/**
|
|
120
|
+
* The error reason of the workspace
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof Workspace
|
|
123
|
+
*/
|
|
124
|
+
errorReason?: string
|
|
125
|
+
/**
|
|
126
|
+
* The state of the snapshot
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof Workspace
|
|
129
|
+
*/
|
|
130
|
+
snapshotState?: WorkspaceSnapshotStateEnum
|
|
131
|
+
/**
|
|
132
|
+
* The creation timestamp of the last snapshot
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof Workspace
|
|
135
|
+
*/
|
|
136
|
+
snapshotCreatedAt?: string
|
|
137
|
+
/**
|
|
138
|
+
* Auto-stop interval in minutes (0 means disabled)
|
|
139
|
+
* @type {number}
|
|
140
|
+
* @memberof Workspace
|
|
141
|
+
*/
|
|
142
|
+
autoStopInterval?: number
|
|
137
143
|
}
|
|
138
144
|
|
|
139
145
|
export const WorkspaceSnapshotStateEnum = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
} as const
|
|
146
|
-
|
|
147
|
-
export type WorkspaceSnapshotStateEnum = typeof WorkspaceSnapshotStateEnum[keyof typeof WorkspaceSnapshotStateEnum];
|
|
148
|
-
|
|
146
|
+
NONE: 'None',
|
|
147
|
+
PENDING: 'Pending',
|
|
148
|
+
IN_PROGRESS: 'InProgress',
|
|
149
|
+
COMPLETED: 'Completed',
|
|
150
|
+
ERROR: 'Error',
|
|
151
|
+
} as const
|
|
149
152
|
|
|
153
|
+
export type WorkspaceSnapshotStateEnum = (typeof WorkspaceSnapshotStateEnum)[keyof typeof WorkspaceSnapshotStateEnum]
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daytonaio/api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "OpenAPI client for @daytonaio/api-client",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/daytonaio/sdk.git"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
11
11
|
"axios",
|
package/project.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "api-client",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"sourceRoot": "libs/api-client",
|
|
5
|
+
"projectType": "library",
|
|
6
|
+
"targets": {
|
|
7
|
+
"build": {
|
|
8
|
+
"executor": "@nx/js:tsc",
|
|
9
|
+
"outputs": ["{options.outputPath}"],
|
|
10
|
+
"options": {
|
|
11
|
+
"outputPath": "dist/libs/api-client",
|
|
12
|
+
"tsConfig": "libs/api-client/tsconfig.lib.json",
|
|
13
|
+
"packageJson": "libs/api-client/package.json",
|
|
14
|
+
"main": "libs/api-client/index.ts",
|
|
15
|
+
"updateBuildableProjectDepsInPackageJson": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"generate:api-client": {
|
|
19
|
+
"executor": "nx:run-commands",
|
|
20
|
+
"options": {
|
|
21
|
+
"commands": [
|
|
22
|
+
"yarn run openapi-generator-cli generate --git-repo-id=sdk --git-user-id=daytonaio -i dist/apps/api/openapi.json -g typescript-axios --additional-properties=npmName=@daytonaio/api-client,supportsES6=true,npmVersion=$NX_PACKAGE_PUBLISH_VERSION,typescriptThreePlus=true,withSeparateModelsAndApi=true,apiPackage=api,modelPackage=models,useTags=true,enumPropertyNaming=UPPERCASE --type-mappings=DateTime=Date -o libs/api-client",
|
|
23
|
+
"yarn nx format api-client"
|
|
24
|
+
],
|
|
25
|
+
"parallel": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"format": {
|
|
29
|
+
"executor": "nx:run-commands",
|
|
30
|
+
"options": {
|
|
31
|
+
"command": "cd {projectRoot} && prettier --write \"**/*.{ts,json}\" --config ../../.prettierrc"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"publish": {
|
|
35
|
+
"executor": "nx:run-commands",
|
|
36
|
+
"options": {
|
|
37
|
+
"commands": ["npm version $NX_PACKAGE_PUBLISH_VERSION", "npm publish"],
|
|
38
|
+
"cwd": "dist/libs/api-client",
|
|
39
|
+
"parallel": false
|
|
40
|
+
},
|
|
41
|
+
"dependsOn": [
|
|
42
|
+
{
|
|
43
|
+
"target": "build"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"tags": []
|
|
49
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
"declaration": true,
|
|
4
|
-
"target": "
|
|
4
|
+
"target": "ES2017",
|
|
5
5
|
"module": "commonjs",
|
|
6
6
|
"noImplicitAny": true,
|
|
7
7
|
"outDir": "dist",
|
|
8
8
|
"rootDir": ".",
|
|
9
9
|
"moduleResolution": "node",
|
|
10
|
-
"typeRoots": [
|
|
11
|
-
"node_modules/@types"
|
|
12
|
-
]
|
|
10
|
+
"typeRoots": ["node_modules/@types"]
|
|
13
11
|
},
|
|
14
|
-
"exclude": [
|
|
15
|
-
"dist",
|
|
16
|
-
"node_modules"
|
|
17
|
-
]
|
|
12
|
+
"exclude": ["dist", "node_modules"]
|
|
18
13
|
}
|
package/README.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.15.0
|
|
2
|
-
|
|
3
|
-
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
|
-
|
|
5
|
-
Environment
|
|
6
|
-
* Node.js
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
9
|
-
|
|
10
|
-
Language level
|
|
11
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
-
* ES6
|
|
13
|
-
|
|
14
|
-
Module system
|
|
15
|
-
* CommonJS
|
|
16
|
-
* ES6 module system
|
|
17
|
-
|
|
18
|
-
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
|
|
19
|
-
|
|
20
|
-
### Building
|
|
21
|
-
|
|
22
|
-
To build and compile the typescript sources to javascript use:
|
|
23
|
-
```
|
|
24
|
-
npm install
|
|
25
|
-
npm run build
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Publishing
|
|
29
|
-
|
|
30
|
-
First build the package then run `npm publish`
|
|
31
|
-
|
|
32
|
-
### Consuming
|
|
33
|
-
|
|
34
|
-
navigate to the folder of your consuming project and run one of the following commands.
|
|
35
|
-
|
|
36
|
-
_published:_
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
npm install @daytonaio/api-client@0.15.0 --save
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
_unPublished (not recommended):_
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
|
-
```
|