@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/api/workspace-api.ts
CHANGED
|
@@ -5,1087 +5,1654 @@
|
|
|
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
|
-
import type {
|
|
17
|
-
import
|
|
18
|
-
import globalAxios from 'axios';
|
|
15
|
+
import type { Configuration } from '../configuration'
|
|
16
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
|
|
17
|
+
import globalAxios from 'axios'
|
|
19
18
|
// Some imports not used depending on template conditions
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
DUMMY_BASE_URL,
|
|
22
|
+
assertParamExists,
|
|
23
|
+
setApiKeyToObject,
|
|
24
|
+
setBasicAuthToObject,
|
|
25
|
+
setBearerAuthToObject,
|
|
26
|
+
setOAuthToObject,
|
|
27
|
+
setSearchParams,
|
|
28
|
+
serializeDataIfNeeded,
|
|
29
|
+
toPathString,
|
|
30
|
+
createRequestFunction,
|
|
31
|
+
} from '../common'
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { CreateWorkspace } from '../models'
|
|
22
36
|
// @ts-ignore
|
|
23
|
-
import
|
|
37
|
+
import type { ListWorkspacesLabelsParameter } from '../models'
|
|
24
38
|
// @ts-ignore
|
|
25
|
-
import type {
|
|
39
|
+
import type { PortPreviewUrl } from '../models'
|
|
26
40
|
// @ts-ignore
|
|
27
|
-
import type { Workspace } from '../models'
|
|
41
|
+
import type { Workspace } from '../models'
|
|
28
42
|
// @ts-ignore
|
|
29
|
-
import type { WorkspaceLabels } from '../models'
|
|
43
|
+
import type { WorkspaceLabels } from '../models'
|
|
30
44
|
/**
|
|
31
45
|
* WorkspaceApi - axios parameter creator
|
|
32
46
|
* @export
|
|
33
47
|
*/
|
|
34
48
|
export const WorkspaceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
}
|
|
49
|
+
return {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary Archive workspace
|
|
53
|
+
* @param {string} workspaceId
|
|
54
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
archiveWorkspace: async (
|
|
59
|
+
workspaceId: string,
|
|
60
|
+
xDaytonaOrganizationID?: string,
|
|
61
|
+
options: RawAxiosRequestConfig = {},
|
|
62
|
+
): Promise<RequestArgs> => {
|
|
63
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
64
|
+
assertParamExists('archiveWorkspace', 'workspaceId', workspaceId)
|
|
65
|
+
const localVarPath = `/workspace/{workspaceId}/archive`.replace(
|
|
66
|
+
`{${'workspaceId'}}`,
|
|
67
|
+
encodeURIComponent(String(workspaceId)),
|
|
68
|
+
)
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
71
|
+
let baseOptions
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
77
|
+
const localVarHeaderParameter = {} as any
|
|
78
|
+
const localVarQueryParameter = {} as any
|
|
79
|
+
|
|
80
|
+
// authentication bearer required
|
|
81
|
+
// http bearer authentication required
|
|
82
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
83
|
+
|
|
84
|
+
// authentication oauth2 required
|
|
85
|
+
// oauth required
|
|
86
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
87
|
+
|
|
88
|
+
if (xDaytonaOrganizationID != null) {
|
|
89
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
90
|
+
}
|
|
91
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
93
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
url: toPathString(localVarUrlObj),
|
|
97
|
+
options: localVarRequestOptions,
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Create workspace snapshot
|
|
103
|
+
* @param {string} workspaceId ID of the workspace
|
|
104
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
createSnapshot: async (
|
|
109
|
+
workspaceId: string,
|
|
110
|
+
xDaytonaOrganizationID?: string,
|
|
111
|
+
options: RawAxiosRequestConfig = {},
|
|
112
|
+
): Promise<RequestArgs> => {
|
|
113
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
114
|
+
assertParamExists('createSnapshot', 'workspaceId', workspaceId)
|
|
115
|
+
const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(
|
|
116
|
+
`{${'workspaceId'}}`,
|
|
117
|
+
encodeURIComponent(String(workspaceId)),
|
|
118
|
+
)
|
|
119
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
120
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
121
|
+
let baseOptions
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
127
|
+
const localVarHeaderParameter = {} as any
|
|
128
|
+
const localVarQueryParameter = {} as any
|
|
129
|
+
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
133
|
+
|
|
134
|
+
// authentication oauth2 required
|
|
135
|
+
// oauth required
|
|
136
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
137
|
+
|
|
138
|
+
if (xDaytonaOrganizationID != null) {
|
|
139
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
140
|
+
}
|
|
141
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
142
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
url: toPathString(localVarUrlObj),
|
|
147
|
+
options: localVarRequestOptions,
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @summary Create a new workspace
|
|
153
|
+
* @param {CreateWorkspace} createWorkspace
|
|
154
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
createWorkspace: async (
|
|
159
|
+
createWorkspace: CreateWorkspace,
|
|
160
|
+
xDaytonaOrganizationID?: string,
|
|
161
|
+
options: RawAxiosRequestConfig = {},
|
|
162
|
+
): Promise<RequestArgs> => {
|
|
163
|
+
// verify required parameter 'createWorkspace' is not null or undefined
|
|
164
|
+
assertParamExists('createWorkspace', 'createWorkspace', createWorkspace)
|
|
165
|
+
const localVarPath = `/workspace`
|
|
166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
168
|
+
let baseOptions
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
174
|
+
const localVarHeaderParameter = {} as any
|
|
175
|
+
const localVarQueryParameter = {} as any
|
|
176
|
+
|
|
177
|
+
// authentication bearer required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
180
|
+
|
|
181
|
+
// authentication oauth2 required
|
|
182
|
+
// oauth required
|
|
183
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
184
|
+
|
|
185
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
186
|
+
|
|
187
|
+
if (xDaytonaOrganizationID != null) {
|
|
188
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
189
|
+
}
|
|
190
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
191
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
192
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
193
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWorkspace, localVarRequestOptions, configuration)
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
url: toPathString(localVarUrlObj),
|
|
197
|
+
options: localVarRequestOptions,
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @summary Delete workspace
|
|
203
|
+
* @param {string} workspaceId ID of the workspace
|
|
204
|
+
* @param {boolean} force
|
|
205
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
deleteWorkspace: async (
|
|
210
|
+
workspaceId: string,
|
|
211
|
+
force: boolean,
|
|
212
|
+
xDaytonaOrganizationID?: string,
|
|
213
|
+
options: RawAxiosRequestConfig = {},
|
|
214
|
+
): Promise<RequestArgs> => {
|
|
215
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
216
|
+
assertParamExists('deleteWorkspace', 'workspaceId', workspaceId)
|
|
217
|
+
// verify required parameter 'force' is not null or undefined
|
|
218
|
+
assertParamExists('deleteWorkspace', 'force', force)
|
|
219
|
+
const localVarPath = `/workspace/{workspaceId}`.replace(
|
|
220
|
+
`{${'workspaceId'}}`,
|
|
221
|
+
encodeURIComponent(String(workspaceId)),
|
|
222
|
+
)
|
|
223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
225
|
+
let baseOptions
|
|
226
|
+
if (configuration) {
|
|
227
|
+
baseOptions = configuration.baseOptions
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
231
|
+
const localVarHeaderParameter = {} as any
|
|
232
|
+
const localVarQueryParameter = {} as any
|
|
233
|
+
|
|
234
|
+
// authentication bearer required
|
|
235
|
+
// http bearer authentication required
|
|
236
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
237
|
+
|
|
238
|
+
// authentication oauth2 required
|
|
239
|
+
// oauth required
|
|
240
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
241
|
+
|
|
242
|
+
if (force !== undefined) {
|
|
243
|
+
localVarQueryParameter['force'] = force
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (xDaytonaOrganizationID != null) {
|
|
247
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
248
|
+
}
|
|
249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
251
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
252
|
+
|
|
253
|
+
return {
|
|
254
|
+
url: toPathString(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Get preview URL for a workspace port
|
|
261
|
+
* @param {string} workspaceId ID of the workspace
|
|
262
|
+
* @param {number} port Port number to get preview URL for
|
|
263
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
getPortPreviewUrl: async (
|
|
268
|
+
workspaceId: string,
|
|
269
|
+
port: number,
|
|
270
|
+
xDaytonaOrganizationID?: string,
|
|
271
|
+
options: RawAxiosRequestConfig = {},
|
|
272
|
+
): Promise<RequestArgs> => {
|
|
273
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
274
|
+
assertParamExists('getPortPreviewUrl', 'workspaceId', workspaceId)
|
|
275
|
+
// verify required parameter 'port' is not null or undefined
|
|
276
|
+
assertParamExists('getPortPreviewUrl', 'port', port)
|
|
277
|
+
const localVarPath = `/workspace/{workspaceId}/ports/{port}/preview-url`
|
|
278
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
279
|
+
.replace(`{${'port'}}`, encodeURIComponent(String(port)))
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
282
|
+
let baseOptions
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
288
|
+
const localVarHeaderParameter = {} as any
|
|
289
|
+
const localVarQueryParameter = {} as any
|
|
290
|
+
|
|
291
|
+
// authentication bearer required
|
|
292
|
+
// http bearer authentication required
|
|
293
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
294
|
+
|
|
295
|
+
// authentication oauth2 required
|
|
296
|
+
// oauth required
|
|
297
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
298
|
+
|
|
299
|
+
if (xDaytonaOrganizationID != null) {
|
|
300
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
301
|
+
}
|
|
302
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
303
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
304
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
url: toPathString(localVarUrlObj),
|
|
308
|
+
options: localVarRequestOptions,
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @summary Get workspace details
|
|
314
|
+
* @param {string} workspaceId ID of the workspace
|
|
315
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
316
|
+
* @param {boolean} [verbose] Include verbose output
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
*/
|
|
320
|
+
getWorkspace: async (
|
|
321
|
+
workspaceId: string,
|
|
322
|
+
xDaytonaOrganizationID?: string,
|
|
323
|
+
verbose?: boolean,
|
|
324
|
+
options: RawAxiosRequestConfig = {},
|
|
325
|
+
): Promise<RequestArgs> => {
|
|
326
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
327
|
+
assertParamExists('getWorkspace', 'workspaceId', workspaceId)
|
|
328
|
+
const localVarPath = `/workspace/{workspaceId}`.replace(
|
|
329
|
+
`{${'workspaceId'}}`,
|
|
330
|
+
encodeURIComponent(String(workspaceId)),
|
|
331
|
+
)
|
|
332
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
333
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
334
|
+
let baseOptions
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
340
|
+
const localVarHeaderParameter = {} as any
|
|
341
|
+
const localVarQueryParameter = {} as any
|
|
342
|
+
|
|
343
|
+
// authentication bearer required
|
|
344
|
+
// http bearer authentication required
|
|
345
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
346
|
+
|
|
347
|
+
// authentication oauth2 required
|
|
348
|
+
// oauth required
|
|
349
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
350
|
+
|
|
351
|
+
if (verbose !== undefined) {
|
|
352
|
+
localVarQueryParameter['verbose'] = verbose
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (xDaytonaOrganizationID != null) {
|
|
356
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
357
|
+
}
|
|
358
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
360
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
361
|
+
|
|
362
|
+
return {
|
|
363
|
+
url: toPathString(localVarUrlObj),
|
|
364
|
+
options: localVarRequestOptions,
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @summary List all workspaces
|
|
370
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
371
|
+
* @param {boolean} [verbose] Include verbose output
|
|
372
|
+
* @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
listWorkspaces: async (
|
|
377
|
+
xDaytonaOrganizationID?: string,
|
|
378
|
+
verbose?: boolean,
|
|
379
|
+
labels?: ListWorkspacesLabelsParameter,
|
|
380
|
+
options: RawAxiosRequestConfig = {},
|
|
381
|
+
): Promise<RequestArgs> => {
|
|
382
|
+
const localVarPath = `/workspace`
|
|
383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
384
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
385
|
+
let baseOptions
|
|
386
|
+
if (configuration) {
|
|
387
|
+
baseOptions = configuration.baseOptions
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
391
|
+
const localVarHeaderParameter = {} as any
|
|
392
|
+
const localVarQueryParameter = {} as any
|
|
393
|
+
|
|
394
|
+
// authentication bearer required
|
|
395
|
+
// http bearer authentication required
|
|
396
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
397
|
+
|
|
398
|
+
// authentication oauth2 required
|
|
399
|
+
// oauth required
|
|
400
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
401
|
+
|
|
402
|
+
if (verbose !== undefined) {
|
|
403
|
+
localVarQueryParameter['verbose'] = verbose
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (labels !== undefined) {
|
|
407
|
+
for (const [key, value] of Object.entries(labels)) {
|
|
408
|
+
localVarQueryParameter[key] = value
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
if (xDaytonaOrganizationID != null) {
|
|
413
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
414
|
+
}
|
|
415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
417
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
418
|
+
|
|
419
|
+
return {
|
|
420
|
+
url: toPathString(localVarUrlObj),
|
|
421
|
+
options: localVarRequestOptions,
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Replace workspace labels
|
|
427
|
+
* @param {string} workspaceId ID of the workspace
|
|
428
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
429
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
*/
|
|
433
|
+
replaceLabels: async (
|
|
434
|
+
workspaceId: string,
|
|
435
|
+
workspaceLabels: WorkspaceLabels,
|
|
436
|
+
xDaytonaOrganizationID?: string,
|
|
437
|
+
options: RawAxiosRequestConfig = {},
|
|
438
|
+
): Promise<RequestArgs> => {
|
|
439
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
440
|
+
assertParamExists('replaceLabels', 'workspaceId', workspaceId)
|
|
441
|
+
// verify required parameter 'workspaceLabels' is not null or undefined
|
|
442
|
+
assertParamExists('replaceLabels', 'workspaceLabels', workspaceLabels)
|
|
443
|
+
const localVarPath = `/workspace/{workspaceId}/labels`.replace(
|
|
444
|
+
`{${'workspaceId'}}`,
|
|
445
|
+
encodeURIComponent(String(workspaceId)),
|
|
446
|
+
)
|
|
447
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
448
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
449
|
+
let baseOptions
|
|
450
|
+
if (configuration) {
|
|
451
|
+
baseOptions = configuration.baseOptions
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
|
455
|
+
const localVarHeaderParameter = {} as any
|
|
456
|
+
const localVarQueryParameter = {} as any
|
|
457
|
+
|
|
458
|
+
// authentication bearer required
|
|
459
|
+
// http bearer authentication required
|
|
460
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
461
|
+
|
|
462
|
+
// authentication oauth2 required
|
|
463
|
+
// oauth required
|
|
464
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
465
|
+
|
|
466
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
467
|
+
|
|
468
|
+
if (xDaytonaOrganizationID != null) {
|
|
469
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
470
|
+
}
|
|
471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
473
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
474
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceLabels, localVarRequestOptions, configuration)
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
url: toPathString(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Resize workspace
|
|
484
|
+
* @param {string} workspaceId ID of the workspace
|
|
485
|
+
* @param {object} body
|
|
486
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
resizeWorkspace: async (
|
|
491
|
+
workspaceId: string,
|
|
492
|
+
body: object,
|
|
493
|
+
xDaytonaOrganizationID?: string,
|
|
494
|
+
options: RawAxiosRequestConfig = {},
|
|
495
|
+
): Promise<RequestArgs> => {
|
|
496
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
497
|
+
assertParamExists('resizeWorkspace', 'workspaceId', workspaceId)
|
|
498
|
+
// verify required parameter 'body' is not null or undefined
|
|
499
|
+
assertParamExists('resizeWorkspace', 'body', body)
|
|
500
|
+
const localVarPath = `/workspace/{workspaceId}/resize`.replace(
|
|
501
|
+
`{${'workspaceId'}}`,
|
|
502
|
+
encodeURIComponent(String(workspaceId)),
|
|
503
|
+
)
|
|
504
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
505
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
506
|
+
let baseOptions
|
|
507
|
+
if (configuration) {
|
|
508
|
+
baseOptions = configuration.baseOptions
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
512
|
+
const localVarHeaderParameter = {} as any
|
|
513
|
+
const localVarQueryParameter = {} as any
|
|
514
|
+
|
|
515
|
+
// authentication bearer required
|
|
516
|
+
// http bearer authentication required
|
|
517
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
518
|
+
|
|
519
|
+
// authentication oauth2 required
|
|
520
|
+
// oauth required
|
|
521
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
522
|
+
|
|
523
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
524
|
+
|
|
525
|
+
if (xDaytonaOrganizationID != null) {
|
|
526
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
527
|
+
}
|
|
528
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
529
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
530
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
531
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
532
|
+
|
|
533
|
+
return {
|
|
534
|
+
url: toPathString(localVarUrlObj),
|
|
535
|
+
options: localVarRequestOptions,
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @summary Set workspace auto-stop interval
|
|
541
|
+
* @param {string} workspaceId ID of the workspace
|
|
542
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
543
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
544
|
+
* @param {*} [options] Override http request option.
|
|
545
|
+
* @throws {RequiredError}
|
|
546
|
+
*/
|
|
547
|
+
setAutostopInterval: async (
|
|
548
|
+
workspaceId: string,
|
|
549
|
+
interval: number,
|
|
550
|
+
xDaytonaOrganizationID?: string,
|
|
551
|
+
options: RawAxiosRequestConfig = {},
|
|
552
|
+
): Promise<RequestArgs> => {
|
|
553
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
554
|
+
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId)
|
|
555
|
+
// verify required parameter 'interval' is not null or undefined
|
|
556
|
+
assertParamExists('setAutostopInterval', 'interval', interval)
|
|
557
|
+
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
558
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
559
|
+
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)))
|
|
560
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
561
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
562
|
+
let baseOptions
|
|
563
|
+
if (configuration) {
|
|
564
|
+
baseOptions = configuration.baseOptions
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
568
|
+
const localVarHeaderParameter = {} as any
|
|
569
|
+
const localVarQueryParameter = {} as any
|
|
570
|
+
|
|
571
|
+
// authentication bearer required
|
|
572
|
+
// http bearer authentication required
|
|
573
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
574
|
+
|
|
575
|
+
// authentication oauth2 required
|
|
576
|
+
// oauth required
|
|
577
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
578
|
+
|
|
579
|
+
if (xDaytonaOrganizationID != null) {
|
|
580
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
581
|
+
}
|
|
582
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
583
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
584
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
585
|
+
|
|
586
|
+
return {
|
|
587
|
+
url: toPathString(localVarUrlObj),
|
|
588
|
+
options: localVarRequestOptions,
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @summary Start workspace
|
|
594
|
+
* @param {string} workspaceId ID of the workspace
|
|
595
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
startWorkspace: async (
|
|
600
|
+
workspaceId: string,
|
|
601
|
+
xDaytonaOrganizationID?: string,
|
|
602
|
+
options: RawAxiosRequestConfig = {},
|
|
603
|
+
): Promise<RequestArgs> => {
|
|
604
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
605
|
+
assertParamExists('startWorkspace', 'workspaceId', workspaceId)
|
|
606
|
+
const localVarPath = `/workspace/{workspaceId}/start`.replace(
|
|
607
|
+
`{${'workspaceId'}}`,
|
|
608
|
+
encodeURIComponent(String(workspaceId)),
|
|
609
|
+
)
|
|
610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
611
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
612
|
+
let baseOptions
|
|
613
|
+
if (configuration) {
|
|
614
|
+
baseOptions = configuration.baseOptions
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
618
|
+
const localVarHeaderParameter = {} as any
|
|
619
|
+
const localVarQueryParameter = {} as any
|
|
620
|
+
|
|
621
|
+
// authentication bearer required
|
|
622
|
+
// http bearer authentication required
|
|
623
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
624
|
+
|
|
625
|
+
// authentication oauth2 required
|
|
626
|
+
// oauth required
|
|
627
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
628
|
+
|
|
629
|
+
if (xDaytonaOrganizationID != null) {
|
|
630
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
631
|
+
}
|
|
632
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
634
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
635
|
+
|
|
636
|
+
return {
|
|
637
|
+
url: toPathString(localVarUrlObj),
|
|
638
|
+
options: localVarRequestOptions,
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
/**
|
|
642
|
+
*
|
|
643
|
+
* @summary Stop workspace
|
|
644
|
+
* @param {string} workspaceId ID of the workspace
|
|
645
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
stopWorkspace: async (
|
|
650
|
+
workspaceId: string,
|
|
651
|
+
xDaytonaOrganizationID?: string,
|
|
652
|
+
options: RawAxiosRequestConfig = {},
|
|
653
|
+
): Promise<RequestArgs> => {
|
|
654
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
655
|
+
assertParamExists('stopWorkspace', 'workspaceId', workspaceId)
|
|
656
|
+
const localVarPath = `/workspace/{workspaceId}/stop`.replace(
|
|
657
|
+
`{${'workspaceId'}}`,
|
|
658
|
+
encodeURIComponent(String(workspaceId)),
|
|
659
|
+
)
|
|
660
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
661
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
662
|
+
let baseOptions
|
|
663
|
+
if (configuration) {
|
|
664
|
+
baseOptions = configuration.baseOptions
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
668
|
+
const localVarHeaderParameter = {} as any
|
|
669
|
+
const localVarQueryParameter = {} as any
|
|
670
|
+
|
|
671
|
+
// authentication bearer required
|
|
672
|
+
// http bearer authentication required
|
|
673
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
674
|
+
|
|
675
|
+
// authentication oauth2 required
|
|
676
|
+
// oauth required
|
|
677
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
678
|
+
|
|
679
|
+
if (xDaytonaOrganizationID != null) {
|
|
680
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
681
|
+
}
|
|
682
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
684
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
685
|
+
|
|
686
|
+
return {
|
|
687
|
+
url: toPathString(localVarUrlObj),
|
|
688
|
+
options: localVarRequestOptions,
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Update public status
|
|
694
|
+
* @param {string} workspaceId ID of the workspace
|
|
695
|
+
* @param {boolean} isPublic Public status to set
|
|
696
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
updatePublicStatus: async (
|
|
701
|
+
workspaceId: string,
|
|
702
|
+
isPublic: boolean,
|
|
703
|
+
xDaytonaOrganizationID?: string,
|
|
704
|
+
options: RawAxiosRequestConfig = {},
|
|
705
|
+
): Promise<RequestArgs> => {
|
|
706
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
707
|
+
assertParamExists('updatePublicStatus', 'workspaceId', workspaceId)
|
|
708
|
+
// verify required parameter 'isPublic' is not null or undefined
|
|
709
|
+
assertParamExists('updatePublicStatus', 'isPublic', isPublic)
|
|
710
|
+
const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
|
|
711
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
712
|
+
.replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)))
|
|
713
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
714
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
715
|
+
let baseOptions
|
|
716
|
+
if (configuration) {
|
|
717
|
+
baseOptions = configuration.baseOptions
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
721
|
+
const localVarHeaderParameter = {} as any
|
|
722
|
+
const localVarQueryParameter = {} as any
|
|
723
|
+
|
|
724
|
+
// authentication bearer required
|
|
725
|
+
// http bearer authentication required
|
|
726
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
727
|
+
|
|
728
|
+
// authentication oauth2 required
|
|
729
|
+
// oauth required
|
|
730
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
731
|
+
|
|
732
|
+
if (xDaytonaOrganizationID != null) {
|
|
733
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
734
|
+
}
|
|
735
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
736
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
737
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
738
|
+
|
|
739
|
+
return {
|
|
740
|
+
url: toPathString(localVarUrlObj),
|
|
741
|
+
options: localVarRequestOptions,
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
}
|
|
745
|
+
}
|
|
589
746
|
|
|
590
747
|
/**
|
|
591
748
|
* WorkspaceApi - functional programming interface
|
|
592
749
|
* @export
|
|
593
750
|
*/
|
|
594
|
-
export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
751
|
+
export const WorkspaceApiFp = function (configuration?: Configuration) {
|
|
752
|
+
const localVarAxiosParamCreator = WorkspaceApiAxiosParamCreator(configuration)
|
|
753
|
+
return {
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @summary Archive workspace
|
|
757
|
+
* @param {string} workspaceId
|
|
758
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
759
|
+
* @param {*} [options] Override http request option.
|
|
760
|
+
* @throws {RequiredError}
|
|
761
|
+
*/
|
|
762
|
+
async archiveWorkspace(
|
|
763
|
+
workspaceId: string,
|
|
764
|
+
xDaytonaOrganizationID?: string,
|
|
765
|
+
options?: RawAxiosRequestConfig,
|
|
766
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
767
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(
|
|
768
|
+
workspaceId,
|
|
769
|
+
xDaytonaOrganizationID,
|
|
770
|
+
options,
|
|
771
|
+
)
|
|
772
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
773
|
+
const localVarOperationServerBasePath =
|
|
774
|
+
operationServerMap['WorkspaceApi.archiveWorkspace']?.[localVarOperationServerIndex]?.url
|
|
775
|
+
return (axios, basePath) =>
|
|
776
|
+
createRequestFunction(
|
|
777
|
+
localVarAxiosArgs,
|
|
778
|
+
globalAxios,
|
|
779
|
+
BASE_PATH,
|
|
780
|
+
configuration,
|
|
781
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
782
|
+
},
|
|
783
|
+
/**
|
|
784
|
+
*
|
|
785
|
+
* @summary Create workspace snapshot
|
|
786
|
+
* @param {string} workspaceId ID of the workspace
|
|
787
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
*/
|
|
791
|
+
async createSnapshot(
|
|
792
|
+
workspaceId: string,
|
|
793
|
+
xDaytonaOrganizationID?: string,
|
|
794
|
+
options?: RawAxiosRequestConfig,
|
|
795
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
796
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(
|
|
797
|
+
workspaceId,
|
|
798
|
+
xDaytonaOrganizationID,
|
|
799
|
+
options,
|
|
800
|
+
)
|
|
801
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
802
|
+
const localVarOperationServerBasePath =
|
|
803
|
+
operationServerMap['WorkspaceApi.createSnapshot']?.[localVarOperationServerIndex]?.url
|
|
804
|
+
return (axios, basePath) =>
|
|
805
|
+
createRequestFunction(
|
|
806
|
+
localVarAxiosArgs,
|
|
807
|
+
globalAxios,
|
|
808
|
+
BASE_PATH,
|
|
809
|
+
configuration,
|
|
810
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
811
|
+
},
|
|
812
|
+
/**
|
|
813
|
+
*
|
|
814
|
+
* @summary Create a new workspace
|
|
815
|
+
* @param {CreateWorkspace} createWorkspace
|
|
816
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
async createWorkspace(
|
|
821
|
+
createWorkspace: CreateWorkspace,
|
|
822
|
+
xDaytonaOrganizationID?: string,
|
|
823
|
+
options?: RawAxiosRequestConfig,
|
|
824
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
825
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(
|
|
826
|
+
createWorkspace,
|
|
827
|
+
xDaytonaOrganizationID,
|
|
828
|
+
options,
|
|
829
|
+
)
|
|
830
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
831
|
+
const localVarOperationServerBasePath =
|
|
832
|
+
operationServerMap['WorkspaceApi.createWorkspace']?.[localVarOperationServerIndex]?.url
|
|
833
|
+
return (axios, basePath) =>
|
|
834
|
+
createRequestFunction(
|
|
835
|
+
localVarAxiosArgs,
|
|
836
|
+
globalAxios,
|
|
837
|
+
BASE_PATH,
|
|
838
|
+
configuration,
|
|
839
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
840
|
+
},
|
|
841
|
+
/**
|
|
842
|
+
*
|
|
843
|
+
* @summary Delete workspace
|
|
844
|
+
* @param {string} workspaceId ID of the workspace
|
|
845
|
+
* @param {boolean} force
|
|
846
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
async deleteWorkspace(
|
|
851
|
+
workspaceId: string,
|
|
852
|
+
force: boolean,
|
|
853
|
+
xDaytonaOrganizationID?: string,
|
|
854
|
+
options?: RawAxiosRequestConfig,
|
|
855
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
856
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(
|
|
857
|
+
workspaceId,
|
|
858
|
+
force,
|
|
859
|
+
xDaytonaOrganizationID,
|
|
860
|
+
options,
|
|
861
|
+
)
|
|
862
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
863
|
+
const localVarOperationServerBasePath =
|
|
864
|
+
operationServerMap['WorkspaceApi.deleteWorkspace']?.[localVarOperationServerIndex]?.url
|
|
865
|
+
return (axios, basePath) =>
|
|
866
|
+
createRequestFunction(
|
|
867
|
+
localVarAxiosArgs,
|
|
868
|
+
globalAxios,
|
|
869
|
+
BASE_PATH,
|
|
870
|
+
configuration,
|
|
871
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
872
|
+
},
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @summary Get preview URL for a workspace port
|
|
876
|
+
* @param {string} workspaceId ID of the workspace
|
|
877
|
+
* @param {number} port Port number to get preview URL for
|
|
878
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
879
|
+
* @param {*} [options] Override http request option.
|
|
880
|
+
* @throws {RequiredError}
|
|
881
|
+
*/
|
|
882
|
+
async getPortPreviewUrl(
|
|
883
|
+
workspaceId: string,
|
|
884
|
+
port: number,
|
|
885
|
+
xDaytonaOrganizationID?: string,
|
|
886
|
+
options?: RawAxiosRequestConfig,
|
|
887
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortPreviewUrl>> {
|
|
888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(
|
|
889
|
+
workspaceId,
|
|
890
|
+
port,
|
|
891
|
+
xDaytonaOrganizationID,
|
|
892
|
+
options,
|
|
893
|
+
)
|
|
894
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
895
|
+
const localVarOperationServerBasePath =
|
|
896
|
+
operationServerMap['WorkspaceApi.getPortPreviewUrl']?.[localVarOperationServerIndex]?.url
|
|
897
|
+
return (axios, basePath) =>
|
|
898
|
+
createRequestFunction(
|
|
899
|
+
localVarAxiosArgs,
|
|
900
|
+
globalAxios,
|
|
901
|
+
BASE_PATH,
|
|
902
|
+
configuration,
|
|
903
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
904
|
+
},
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @summary Get workspace details
|
|
908
|
+
* @param {string} workspaceId ID of the workspace
|
|
909
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
910
|
+
* @param {boolean} [verbose] Include verbose output
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
async getWorkspace(
|
|
915
|
+
workspaceId: string,
|
|
916
|
+
xDaytonaOrganizationID?: string,
|
|
917
|
+
verbose?: boolean,
|
|
918
|
+
options?: RawAxiosRequestConfig,
|
|
919
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
920
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(
|
|
921
|
+
workspaceId,
|
|
922
|
+
xDaytonaOrganizationID,
|
|
923
|
+
verbose,
|
|
924
|
+
options,
|
|
925
|
+
)
|
|
926
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
927
|
+
const localVarOperationServerBasePath =
|
|
928
|
+
operationServerMap['WorkspaceApi.getWorkspace']?.[localVarOperationServerIndex]?.url
|
|
929
|
+
return (axios, basePath) =>
|
|
930
|
+
createRequestFunction(
|
|
931
|
+
localVarAxiosArgs,
|
|
932
|
+
globalAxios,
|
|
933
|
+
BASE_PATH,
|
|
934
|
+
configuration,
|
|
935
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
936
|
+
},
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @summary List all workspaces
|
|
940
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
941
|
+
* @param {boolean} [verbose] Include verbose output
|
|
942
|
+
* @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
|
|
943
|
+
* @param {*} [options] Override http request option.
|
|
944
|
+
* @throws {RequiredError}
|
|
945
|
+
*/
|
|
946
|
+
async listWorkspaces(
|
|
947
|
+
xDaytonaOrganizationID?: string,
|
|
948
|
+
verbose?: boolean,
|
|
949
|
+
labels?: ListWorkspacesLabelsParameter,
|
|
950
|
+
options?: RawAxiosRequestConfig,
|
|
951
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>> {
|
|
952
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(
|
|
953
|
+
xDaytonaOrganizationID,
|
|
954
|
+
verbose,
|
|
955
|
+
labels,
|
|
956
|
+
options,
|
|
957
|
+
)
|
|
958
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
959
|
+
const localVarOperationServerBasePath =
|
|
960
|
+
operationServerMap['WorkspaceApi.listWorkspaces']?.[localVarOperationServerIndex]?.url
|
|
961
|
+
return (axios, basePath) =>
|
|
962
|
+
createRequestFunction(
|
|
963
|
+
localVarAxiosArgs,
|
|
964
|
+
globalAxios,
|
|
965
|
+
BASE_PATH,
|
|
966
|
+
configuration,
|
|
967
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
968
|
+
},
|
|
969
|
+
/**
|
|
970
|
+
*
|
|
971
|
+
* @summary Replace workspace labels
|
|
972
|
+
* @param {string} workspaceId ID of the workspace
|
|
973
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
974
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
975
|
+
* @param {*} [options] Override http request option.
|
|
976
|
+
* @throws {RequiredError}
|
|
977
|
+
*/
|
|
978
|
+
async replaceLabels(
|
|
979
|
+
workspaceId: string,
|
|
980
|
+
workspaceLabels: WorkspaceLabels,
|
|
981
|
+
xDaytonaOrganizationID?: string,
|
|
982
|
+
options?: RawAxiosRequestConfig,
|
|
983
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>> {
|
|
984
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(
|
|
985
|
+
workspaceId,
|
|
986
|
+
workspaceLabels,
|
|
987
|
+
xDaytonaOrganizationID,
|
|
988
|
+
options,
|
|
989
|
+
)
|
|
990
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
991
|
+
const localVarOperationServerBasePath =
|
|
992
|
+
operationServerMap['WorkspaceApi.replaceLabels']?.[localVarOperationServerIndex]?.url
|
|
993
|
+
return (axios, basePath) =>
|
|
994
|
+
createRequestFunction(
|
|
995
|
+
localVarAxiosArgs,
|
|
996
|
+
globalAxios,
|
|
997
|
+
BASE_PATH,
|
|
998
|
+
configuration,
|
|
999
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1000
|
+
},
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @summary Resize workspace
|
|
1004
|
+
* @param {string} workspaceId ID of the workspace
|
|
1005
|
+
* @param {object} body
|
|
1006
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
async resizeWorkspace(
|
|
1011
|
+
workspaceId: string,
|
|
1012
|
+
body: object,
|
|
1013
|
+
xDaytonaOrganizationID?: string,
|
|
1014
|
+
options?: RawAxiosRequestConfig,
|
|
1015
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resizeWorkspace(
|
|
1017
|
+
workspaceId,
|
|
1018
|
+
body,
|
|
1019
|
+
xDaytonaOrganizationID,
|
|
1020
|
+
options,
|
|
1021
|
+
)
|
|
1022
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1023
|
+
const localVarOperationServerBasePath =
|
|
1024
|
+
operationServerMap['WorkspaceApi.resizeWorkspace']?.[localVarOperationServerIndex]?.url
|
|
1025
|
+
return (axios, basePath) =>
|
|
1026
|
+
createRequestFunction(
|
|
1027
|
+
localVarAxiosArgs,
|
|
1028
|
+
globalAxios,
|
|
1029
|
+
BASE_PATH,
|
|
1030
|
+
configuration,
|
|
1031
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1032
|
+
},
|
|
1033
|
+
/**
|
|
1034
|
+
*
|
|
1035
|
+
* @summary Set workspace auto-stop interval
|
|
1036
|
+
* @param {string} workspaceId ID of the workspace
|
|
1037
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
1038
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
async setAutostopInterval(
|
|
1043
|
+
workspaceId: string,
|
|
1044
|
+
interval: number,
|
|
1045
|
+
xDaytonaOrganizationID?: string,
|
|
1046
|
+
options?: RawAxiosRequestConfig,
|
|
1047
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(
|
|
1049
|
+
workspaceId,
|
|
1050
|
+
interval,
|
|
1051
|
+
xDaytonaOrganizationID,
|
|
1052
|
+
options,
|
|
1053
|
+
)
|
|
1054
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1055
|
+
const localVarOperationServerBasePath =
|
|
1056
|
+
operationServerMap['WorkspaceApi.setAutostopInterval']?.[localVarOperationServerIndex]?.url
|
|
1057
|
+
return (axios, basePath) =>
|
|
1058
|
+
createRequestFunction(
|
|
1059
|
+
localVarAxiosArgs,
|
|
1060
|
+
globalAxios,
|
|
1061
|
+
BASE_PATH,
|
|
1062
|
+
configuration,
|
|
1063
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1064
|
+
},
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary Start workspace
|
|
1068
|
+
* @param {string} workspaceId ID of the workspace
|
|
1069
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
async startWorkspace(
|
|
1074
|
+
workspaceId: string,
|
|
1075
|
+
xDaytonaOrganizationID?: string,
|
|
1076
|
+
options?: RawAxiosRequestConfig,
|
|
1077
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1078
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspace(
|
|
1079
|
+
workspaceId,
|
|
1080
|
+
xDaytonaOrganizationID,
|
|
1081
|
+
options,
|
|
1082
|
+
)
|
|
1083
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1084
|
+
const localVarOperationServerBasePath =
|
|
1085
|
+
operationServerMap['WorkspaceApi.startWorkspace']?.[localVarOperationServerIndex]?.url
|
|
1086
|
+
return (axios, basePath) =>
|
|
1087
|
+
createRequestFunction(
|
|
1088
|
+
localVarAxiosArgs,
|
|
1089
|
+
globalAxios,
|
|
1090
|
+
BASE_PATH,
|
|
1091
|
+
configuration,
|
|
1092
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1093
|
+
},
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @summary Stop workspace
|
|
1097
|
+
* @param {string} workspaceId ID of the workspace
|
|
1098
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
*/
|
|
1102
|
+
async stopWorkspace(
|
|
1103
|
+
workspaceId: string,
|
|
1104
|
+
xDaytonaOrganizationID?: string,
|
|
1105
|
+
options?: RawAxiosRequestConfig,
|
|
1106
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1107
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspace(
|
|
1108
|
+
workspaceId,
|
|
1109
|
+
xDaytonaOrganizationID,
|
|
1110
|
+
options,
|
|
1111
|
+
)
|
|
1112
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1113
|
+
const localVarOperationServerBasePath =
|
|
1114
|
+
operationServerMap['WorkspaceApi.stopWorkspace']?.[localVarOperationServerIndex]?.url
|
|
1115
|
+
return (axios, basePath) =>
|
|
1116
|
+
createRequestFunction(
|
|
1117
|
+
localVarAxiosArgs,
|
|
1118
|
+
globalAxios,
|
|
1119
|
+
BASE_PATH,
|
|
1120
|
+
configuration,
|
|
1121
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1122
|
+
},
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
* @summary Update public status
|
|
1126
|
+
* @param {string} workspaceId ID of the workspace
|
|
1127
|
+
* @param {boolean} isPublic Public status to set
|
|
1128
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1129
|
+
* @param {*} [options] Override http request option.
|
|
1130
|
+
* @throws {RequiredError}
|
|
1131
|
+
*/
|
|
1132
|
+
async updatePublicStatus(
|
|
1133
|
+
workspaceId: string,
|
|
1134
|
+
isPublic: boolean,
|
|
1135
|
+
xDaytonaOrganizationID?: string,
|
|
1136
|
+
options?: RawAxiosRequestConfig,
|
|
1137
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(
|
|
1139
|
+
workspaceId,
|
|
1140
|
+
isPublic,
|
|
1141
|
+
xDaytonaOrganizationID,
|
|
1142
|
+
options,
|
|
1143
|
+
)
|
|
1144
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1145
|
+
const localVarOperationServerBasePath =
|
|
1146
|
+
operationServerMap['WorkspaceApi.updatePublicStatus']?.[localVarOperationServerIndex]?.url
|
|
1147
|
+
return (axios, basePath) =>
|
|
1148
|
+
createRequestFunction(
|
|
1149
|
+
localVarAxiosArgs,
|
|
1150
|
+
globalAxios,
|
|
1151
|
+
BASE_PATH,
|
|
1152
|
+
configuration,
|
|
1153
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1154
|
+
},
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
773
1157
|
|
|
774
1158
|
/**
|
|
775
1159
|
* WorkspaceApi - factory interface
|
|
776
1160
|
* @export
|
|
777
1161
|
*/
|
|
778
1162
|
export const WorkspaceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
*
|
|
783
|
-
* @summary Archive workspace
|
|
784
|
-
* @param {string} workspaceId
|
|
785
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
*/
|
|
789
|
-
archiveWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
790
|
-
return localVarFp.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
791
|
-
},
|
|
792
|
-
/**
|
|
793
|
-
*
|
|
794
|
-
* @summary Create workspace snapshot
|
|
795
|
-
* @param {string} workspaceId ID of the workspace
|
|
796
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
797
|
-
* @param {*} [options] Override http request option.
|
|
798
|
-
* @throws {RequiredError}
|
|
799
|
-
*/
|
|
800
|
-
createSnapshot(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
801
|
-
return localVarFp.createSnapshot(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
802
|
-
},
|
|
803
|
-
/**
|
|
804
|
-
*
|
|
805
|
-
* @summary Create a new workspace
|
|
806
|
-
* @param {CreateWorkspace} createWorkspace
|
|
807
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
808
|
-
* @param {*} [options] Override http request option.
|
|
809
|
-
* @throws {RequiredError}
|
|
810
|
-
*/
|
|
811
|
-
createWorkspace(createWorkspace: CreateWorkspace, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
812
|
-
return localVarFp.createWorkspace(createWorkspace, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
813
|
-
},
|
|
814
|
-
/**
|
|
815
|
-
*
|
|
816
|
-
* @summary Delete workspace
|
|
817
|
-
* @param {string} workspaceId ID of the workspace
|
|
818
|
-
* @param {boolean} force
|
|
819
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
820
|
-
* @param {*} [options] Override http request option.
|
|
821
|
-
* @throws {RequiredError}
|
|
822
|
-
*/
|
|
823
|
-
deleteWorkspace(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
824
|
-
return localVarFp.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
825
|
-
},
|
|
826
|
-
/**
|
|
827
|
-
*
|
|
828
|
-
* @summary Get workspace details
|
|
829
|
-
* @param {string} workspaceId ID of the workspace
|
|
830
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
831
|
-
* @param {boolean} [verbose] Include verbose output
|
|
832
|
-
* @param {*} [options] Override http request option.
|
|
833
|
-
* @throws {RequiredError}
|
|
834
|
-
*/
|
|
835
|
-
getWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
836
|
-
return localVarFp.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
|
|
837
|
-
},
|
|
838
|
-
/**
|
|
839
|
-
*
|
|
840
|
-
* @summary List all workspaces
|
|
841
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
842
|
-
* @param {boolean} [verbose] Include verbose output
|
|
843
|
-
* @param {*} [options] Override http request option.
|
|
844
|
-
* @throws {RequiredError}
|
|
845
|
-
*/
|
|
846
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>> {
|
|
847
|
-
return localVarFp.listWorkspaces(xDaytonaOrganizationID, verbose, options).then((request) => request(axios, basePath));
|
|
848
|
-
},
|
|
849
|
-
/**
|
|
850
|
-
*
|
|
851
|
-
* @summary Replace workspace labels
|
|
852
|
-
* @param {string} workspaceId ID of the workspace
|
|
853
|
-
* @param {WorkspaceLabels} workspaceLabels
|
|
854
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
855
|
-
* @param {*} [options] Override http request option.
|
|
856
|
-
* @throws {RequiredError}
|
|
857
|
-
*/
|
|
858
|
-
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels> {
|
|
859
|
-
return localVarFp.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
860
|
-
},
|
|
861
|
-
/**
|
|
862
|
-
*
|
|
863
|
-
* @summary Resize workspace
|
|
864
|
-
* @param {string} workspaceId ID of the workspace
|
|
865
|
-
* @param {object} body
|
|
866
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
867
|
-
* @param {*} [options] Override http request option.
|
|
868
|
-
* @throws {RequiredError}
|
|
869
|
-
*/
|
|
870
|
-
resizeWorkspace(workspaceId: string, body: object, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
871
|
-
return localVarFp.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
872
|
-
},
|
|
873
|
-
/**
|
|
874
|
-
*
|
|
875
|
-
* @summary Set workspace auto-stop interval
|
|
876
|
-
* @param {string} workspaceId ID of the workspace
|
|
877
|
-
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
878
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
879
|
-
* @param {*} [options] Override http request option.
|
|
880
|
-
* @throws {RequiredError}
|
|
881
|
-
*/
|
|
882
|
-
setAutostopInterval(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
883
|
-
return localVarFp.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
884
|
-
},
|
|
885
|
-
/**
|
|
886
|
-
*
|
|
887
|
-
* @summary Start workspace
|
|
888
|
-
* @param {string} workspaceId ID of the workspace
|
|
889
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
890
|
-
* @param {*} [options] Override http request option.
|
|
891
|
-
* @throws {RequiredError}
|
|
892
|
-
*/
|
|
893
|
-
startWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
894
|
-
return localVarFp.startWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
895
|
-
},
|
|
896
|
-
/**
|
|
897
|
-
*
|
|
898
|
-
* @summary Stop workspace
|
|
899
|
-
* @param {string} workspaceId ID of the workspace
|
|
900
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
901
|
-
* @param {*} [options] Override http request option.
|
|
902
|
-
* @throws {RequiredError}
|
|
903
|
-
*/
|
|
904
|
-
stopWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
905
|
-
return localVarFp.stopWorkspace(workspaceId, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
906
|
-
},
|
|
907
|
-
/**
|
|
908
|
-
*
|
|
909
|
-
* @summary Update public status
|
|
910
|
-
* @param {string} workspaceId ID of the workspace
|
|
911
|
-
* @param {boolean} isPublic Public status to set
|
|
912
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
913
|
-
* @param {*} [options] Override http request option.
|
|
914
|
-
* @throws {RequiredError}
|
|
915
|
-
*/
|
|
916
|
-
updatePublicStatus(workspaceId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
917
|
-
return localVarFp.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
918
|
-
},
|
|
919
|
-
};
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* WorkspaceApi - object-oriented interface
|
|
924
|
-
* @export
|
|
925
|
-
* @class WorkspaceApi
|
|
926
|
-
* @extends {BaseAPI}
|
|
927
|
-
*/
|
|
928
|
-
export class WorkspaceApi extends BaseAPI {
|
|
1163
|
+
const localVarFp = WorkspaceApiFp(configuration)
|
|
1164
|
+
return {
|
|
929
1165
|
/**
|
|
930
|
-
*
|
|
1166
|
+
*
|
|
931
1167
|
* @summary Archive workspace
|
|
932
|
-
* @param {string} workspaceId
|
|
1168
|
+
* @param {string} workspaceId
|
|
933
1169
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
934
1170
|
* @param {*} [options] Override http request option.
|
|
935
1171
|
* @throws {RequiredError}
|
|
936
|
-
* @memberof WorkspaceApi
|
|
937
1172
|
*/
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1173
|
+
archiveWorkspace(
|
|
1174
|
+
workspaceId: string,
|
|
1175
|
+
xDaytonaOrganizationID?: string,
|
|
1176
|
+
options?: RawAxiosRequestConfig,
|
|
1177
|
+
): AxiosPromise<void> {
|
|
1178
|
+
return localVarFp
|
|
1179
|
+
.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1180
|
+
.then((request) => request(axios, basePath))
|
|
1181
|
+
},
|
|
942
1182
|
/**
|
|
943
|
-
*
|
|
1183
|
+
*
|
|
944
1184
|
* @summary Create workspace snapshot
|
|
945
1185
|
* @param {string} workspaceId ID of the workspace
|
|
946
1186
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
947
1187
|
* @param {*} [options] Override http request option.
|
|
948
1188
|
* @throws {RequiredError}
|
|
949
|
-
* @memberof WorkspaceApi
|
|
950
1189
|
*/
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
1190
|
+
createSnapshot(
|
|
1191
|
+
workspaceId: string,
|
|
1192
|
+
xDaytonaOrganizationID?: string,
|
|
1193
|
+
options?: RawAxiosRequestConfig,
|
|
1194
|
+
): AxiosPromise<Workspace> {
|
|
1195
|
+
return localVarFp
|
|
1196
|
+
.createSnapshot(workspaceId, xDaytonaOrganizationID, options)
|
|
1197
|
+
.then((request) => request(axios, basePath))
|
|
1198
|
+
},
|
|
955
1199
|
/**
|
|
956
|
-
*
|
|
1200
|
+
*
|
|
957
1201
|
* @summary Create a new workspace
|
|
958
|
-
* @param {CreateWorkspace} createWorkspace
|
|
1202
|
+
* @param {CreateWorkspace} createWorkspace
|
|
959
1203
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
960
1204
|
* @param {*} [options] Override http request option.
|
|
961
1205
|
* @throws {RequiredError}
|
|
962
|
-
* @memberof WorkspaceApi
|
|
963
1206
|
*/
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1207
|
+
createWorkspace(
|
|
1208
|
+
createWorkspace: CreateWorkspace,
|
|
1209
|
+
xDaytonaOrganizationID?: string,
|
|
1210
|
+
options?: RawAxiosRequestConfig,
|
|
1211
|
+
): AxiosPromise<Workspace> {
|
|
1212
|
+
return localVarFp
|
|
1213
|
+
.createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
|
|
1214
|
+
.then((request) => request(axios, basePath))
|
|
1215
|
+
},
|
|
968
1216
|
/**
|
|
969
|
-
*
|
|
1217
|
+
*
|
|
970
1218
|
* @summary Delete workspace
|
|
971
1219
|
* @param {string} workspaceId ID of the workspace
|
|
972
|
-
* @param {boolean} force
|
|
1220
|
+
* @param {boolean} force
|
|
973
1221
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
974
1222
|
* @param {*} [options] Override http request option.
|
|
975
1223
|
* @throws {RequiredError}
|
|
976
|
-
* @memberof WorkspaceApi
|
|
977
1224
|
*/
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
1225
|
+
deleteWorkspace(
|
|
1226
|
+
workspaceId: string,
|
|
1227
|
+
force: boolean,
|
|
1228
|
+
xDaytonaOrganizationID?: string,
|
|
1229
|
+
options?: RawAxiosRequestConfig,
|
|
1230
|
+
): AxiosPromise<void> {
|
|
1231
|
+
return localVarFp
|
|
1232
|
+
.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
|
|
1233
|
+
.then((request) => request(axios, basePath))
|
|
1234
|
+
},
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @summary Get preview URL for a workspace port
|
|
1238
|
+
* @param {string} workspaceId ID of the workspace
|
|
1239
|
+
* @param {number} port Port number to get preview URL for
|
|
1240
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1241
|
+
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @throws {RequiredError}
|
|
1243
|
+
*/
|
|
1244
|
+
getPortPreviewUrl(
|
|
1245
|
+
workspaceId: string,
|
|
1246
|
+
port: number,
|
|
1247
|
+
xDaytonaOrganizationID?: string,
|
|
1248
|
+
options?: RawAxiosRequestConfig,
|
|
1249
|
+
): AxiosPromise<PortPreviewUrl> {
|
|
1250
|
+
return localVarFp
|
|
1251
|
+
.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
|
|
1252
|
+
.then((request) => request(axios, basePath))
|
|
1253
|
+
},
|
|
982
1254
|
/**
|
|
983
|
-
*
|
|
1255
|
+
*
|
|
984
1256
|
* @summary Get workspace details
|
|
985
1257
|
* @param {string} workspaceId ID of the workspace
|
|
986
1258
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
987
1259
|
* @param {boolean} [verbose] Include verbose output
|
|
988
1260
|
* @param {*} [options] Override http request option.
|
|
989
1261
|
* @throws {RequiredError}
|
|
990
|
-
* @memberof WorkspaceApi
|
|
991
1262
|
*/
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1263
|
+
getWorkspace(
|
|
1264
|
+
workspaceId: string,
|
|
1265
|
+
xDaytonaOrganizationID?: string,
|
|
1266
|
+
verbose?: boolean,
|
|
1267
|
+
options?: RawAxiosRequestConfig,
|
|
1268
|
+
): AxiosPromise<Workspace> {
|
|
1269
|
+
return localVarFp
|
|
1270
|
+
.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
1271
|
+
.then((request) => request(axios, basePath))
|
|
1272
|
+
},
|
|
996
1273
|
/**
|
|
997
|
-
*
|
|
1274
|
+
*
|
|
998
1275
|
* @summary List all workspaces
|
|
999
1276
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1000
1277
|
* @param {boolean} [verbose] Include verbose output
|
|
1278
|
+
* @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
|
|
1001
1279
|
* @param {*} [options] Override http request option.
|
|
1002
1280
|
* @throws {RequiredError}
|
|
1003
|
-
* @memberof WorkspaceApi
|
|
1004
1281
|
*/
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1282
|
+
listWorkspaces(
|
|
1283
|
+
xDaytonaOrganizationID?: string,
|
|
1284
|
+
verbose?: boolean,
|
|
1285
|
+
labels?: ListWorkspacesLabelsParameter,
|
|
1286
|
+
options?: RawAxiosRequestConfig,
|
|
1287
|
+
): AxiosPromise<Array<Workspace>> {
|
|
1288
|
+
return localVarFp
|
|
1289
|
+
.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
|
|
1290
|
+
.then((request) => request(axios, basePath))
|
|
1291
|
+
},
|
|
1009
1292
|
/**
|
|
1010
|
-
*
|
|
1293
|
+
*
|
|
1011
1294
|
* @summary Replace workspace labels
|
|
1012
1295
|
* @param {string} workspaceId ID of the workspace
|
|
1013
|
-
* @param {WorkspaceLabels} workspaceLabels
|
|
1296
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
1014
1297
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1015
1298
|
* @param {*} [options] Override http request option.
|
|
1016
1299
|
* @throws {RequiredError}
|
|
1017
|
-
* @memberof WorkspaceApi
|
|
1018
1300
|
*/
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1301
|
+
replaceLabels(
|
|
1302
|
+
workspaceId: string,
|
|
1303
|
+
workspaceLabels: WorkspaceLabels,
|
|
1304
|
+
xDaytonaOrganizationID?: string,
|
|
1305
|
+
options?: RawAxiosRequestConfig,
|
|
1306
|
+
): AxiosPromise<WorkspaceLabels> {
|
|
1307
|
+
return localVarFp
|
|
1308
|
+
.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
|
|
1309
|
+
.then((request) => request(axios, basePath))
|
|
1310
|
+
},
|
|
1023
1311
|
/**
|
|
1024
|
-
*
|
|
1312
|
+
*
|
|
1025
1313
|
* @summary Resize workspace
|
|
1026
1314
|
* @param {string} workspaceId ID of the workspace
|
|
1027
|
-
* @param {object} body
|
|
1315
|
+
* @param {object} body
|
|
1028
1316
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1029
1317
|
* @param {*} [options] Override http request option.
|
|
1030
1318
|
* @throws {RequiredError}
|
|
1031
|
-
* @memberof WorkspaceApi
|
|
1032
1319
|
*/
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1320
|
+
resizeWorkspace(
|
|
1321
|
+
workspaceId: string,
|
|
1322
|
+
body: object,
|
|
1323
|
+
xDaytonaOrganizationID?: string,
|
|
1324
|
+
options?: RawAxiosRequestConfig,
|
|
1325
|
+
): AxiosPromise<void> {
|
|
1326
|
+
return localVarFp
|
|
1327
|
+
.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
|
|
1328
|
+
.then((request) => request(axios, basePath))
|
|
1329
|
+
},
|
|
1037
1330
|
/**
|
|
1038
|
-
*
|
|
1331
|
+
*
|
|
1039
1332
|
* @summary Set workspace auto-stop interval
|
|
1040
1333
|
* @param {string} workspaceId ID of the workspace
|
|
1041
1334
|
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
1042
1335
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1043
1336
|
* @param {*} [options] Override http request option.
|
|
1044
1337
|
* @throws {RequiredError}
|
|
1045
|
-
* @memberof WorkspaceApi
|
|
1046
1338
|
*/
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1339
|
+
setAutostopInterval(
|
|
1340
|
+
workspaceId: string,
|
|
1341
|
+
interval: number,
|
|
1342
|
+
xDaytonaOrganizationID?: string,
|
|
1343
|
+
options?: RawAxiosRequestConfig,
|
|
1344
|
+
): AxiosPromise<void> {
|
|
1345
|
+
return localVarFp
|
|
1346
|
+
.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
1347
|
+
.then((request) => request(axios, basePath))
|
|
1348
|
+
},
|
|
1051
1349
|
/**
|
|
1052
|
-
*
|
|
1350
|
+
*
|
|
1053
1351
|
* @summary Start workspace
|
|
1054
1352
|
* @param {string} workspaceId ID of the workspace
|
|
1055
1353
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1056
1354
|
* @param {*} [options] Override http request option.
|
|
1057
1355
|
* @throws {RequiredError}
|
|
1058
|
-
* @memberof WorkspaceApi
|
|
1059
1356
|
*/
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1357
|
+
startWorkspace(
|
|
1358
|
+
workspaceId: string,
|
|
1359
|
+
xDaytonaOrganizationID?: string,
|
|
1360
|
+
options?: RawAxiosRequestConfig,
|
|
1361
|
+
): AxiosPromise<void> {
|
|
1362
|
+
return localVarFp
|
|
1363
|
+
.startWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1364
|
+
.then((request) => request(axios, basePath))
|
|
1365
|
+
},
|
|
1064
1366
|
/**
|
|
1065
|
-
*
|
|
1367
|
+
*
|
|
1066
1368
|
* @summary Stop workspace
|
|
1067
1369
|
* @param {string} workspaceId ID of the workspace
|
|
1068
1370
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1069
1371
|
* @param {*} [options] Override http request option.
|
|
1070
1372
|
* @throws {RequiredError}
|
|
1071
|
-
* @memberof WorkspaceApi
|
|
1072
1373
|
*/
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1374
|
+
stopWorkspace(
|
|
1375
|
+
workspaceId: string,
|
|
1376
|
+
xDaytonaOrganizationID?: string,
|
|
1377
|
+
options?: RawAxiosRequestConfig,
|
|
1378
|
+
): AxiosPromise<void> {
|
|
1379
|
+
return localVarFp
|
|
1380
|
+
.stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1381
|
+
.then((request) => request(axios, basePath))
|
|
1382
|
+
},
|
|
1077
1383
|
/**
|
|
1078
|
-
*
|
|
1384
|
+
*
|
|
1079
1385
|
* @summary Update public status
|
|
1080
1386
|
* @param {string} workspaceId ID of the workspace
|
|
1081
1387
|
* @param {boolean} isPublic Public status to set
|
|
1082
1388
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1083
1389
|
* @param {*} [options] Override http request option.
|
|
1084
1390
|
* @throws {RequiredError}
|
|
1085
|
-
* @memberof WorkspaceApi
|
|
1086
1391
|
*/
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1392
|
+
updatePublicStatus(
|
|
1393
|
+
workspaceId: string,
|
|
1394
|
+
isPublic: boolean,
|
|
1395
|
+
xDaytonaOrganizationID?: string,
|
|
1396
|
+
options?: RawAxiosRequestConfig,
|
|
1397
|
+
): AxiosPromise<void> {
|
|
1398
|
+
return localVarFp
|
|
1399
|
+
.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
1400
|
+
.then((request) => request(axios, basePath))
|
|
1401
|
+
},
|
|
1402
|
+
}
|
|
1090
1403
|
}
|
|
1091
1404
|
|
|
1405
|
+
/**
|
|
1406
|
+
* WorkspaceApi - object-oriented interface
|
|
1407
|
+
* @export
|
|
1408
|
+
* @class WorkspaceApi
|
|
1409
|
+
* @extends {BaseAPI}
|
|
1410
|
+
*/
|
|
1411
|
+
export class WorkspaceApi extends BaseAPI {
|
|
1412
|
+
/**
|
|
1413
|
+
*
|
|
1414
|
+
* @summary Archive workspace
|
|
1415
|
+
* @param {string} workspaceId
|
|
1416
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
* @memberof WorkspaceApi
|
|
1420
|
+
*/
|
|
1421
|
+
public archiveWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
1422
|
+
return WorkspaceApiFp(this.configuration)
|
|
1423
|
+
.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1424
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Create workspace snapshot
|
|
1430
|
+
* @param {string} workspaceId ID of the workspace
|
|
1431
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1432
|
+
* @param {*} [options] Override http request option.
|
|
1433
|
+
* @throws {RequiredError}
|
|
1434
|
+
* @memberof WorkspaceApi
|
|
1435
|
+
*/
|
|
1436
|
+
public createSnapshot(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
1437
|
+
return WorkspaceApiFp(this.configuration)
|
|
1438
|
+
.createSnapshot(workspaceId, xDaytonaOrganizationID, options)
|
|
1439
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @summary Create a new workspace
|
|
1445
|
+
* @param {CreateWorkspace} createWorkspace
|
|
1446
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
* @memberof WorkspaceApi
|
|
1450
|
+
*/
|
|
1451
|
+
public createWorkspace(
|
|
1452
|
+
createWorkspace: CreateWorkspace,
|
|
1453
|
+
xDaytonaOrganizationID?: string,
|
|
1454
|
+
options?: RawAxiosRequestConfig,
|
|
1455
|
+
) {
|
|
1456
|
+
return WorkspaceApiFp(this.configuration)
|
|
1457
|
+
.createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
|
|
1458
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
/**
|
|
1462
|
+
*
|
|
1463
|
+
* @summary Delete workspace
|
|
1464
|
+
* @param {string} workspaceId ID of the workspace
|
|
1465
|
+
* @param {boolean} force
|
|
1466
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1467
|
+
* @param {*} [options] Override http request option.
|
|
1468
|
+
* @throws {RequiredError}
|
|
1469
|
+
* @memberof WorkspaceApi
|
|
1470
|
+
*/
|
|
1471
|
+
public deleteWorkspace(
|
|
1472
|
+
workspaceId: string,
|
|
1473
|
+
force: boolean,
|
|
1474
|
+
xDaytonaOrganizationID?: string,
|
|
1475
|
+
options?: RawAxiosRequestConfig,
|
|
1476
|
+
) {
|
|
1477
|
+
return WorkspaceApiFp(this.configuration)
|
|
1478
|
+
.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
|
|
1479
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
*
|
|
1484
|
+
* @summary Get preview URL for a workspace port
|
|
1485
|
+
* @param {string} workspaceId ID of the workspace
|
|
1486
|
+
* @param {number} port Port number to get preview URL for
|
|
1487
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1488
|
+
* @param {*} [options] Override http request option.
|
|
1489
|
+
* @throws {RequiredError}
|
|
1490
|
+
* @memberof WorkspaceApi
|
|
1491
|
+
*/
|
|
1492
|
+
public getPortPreviewUrl(
|
|
1493
|
+
workspaceId: string,
|
|
1494
|
+
port: number,
|
|
1495
|
+
xDaytonaOrganizationID?: string,
|
|
1496
|
+
options?: RawAxiosRequestConfig,
|
|
1497
|
+
) {
|
|
1498
|
+
return WorkspaceApiFp(this.configuration)
|
|
1499
|
+
.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
|
|
1500
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
* @summary Get workspace details
|
|
1506
|
+
* @param {string} workspaceId ID of the workspace
|
|
1507
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1508
|
+
* @param {boolean} [verbose] Include verbose output
|
|
1509
|
+
* @param {*} [options] Override http request option.
|
|
1510
|
+
* @throws {RequiredError}
|
|
1511
|
+
* @memberof WorkspaceApi
|
|
1512
|
+
*/
|
|
1513
|
+
public getWorkspace(
|
|
1514
|
+
workspaceId: string,
|
|
1515
|
+
xDaytonaOrganizationID?: string,
|
|
1516
|
+
verbose?: boolean,
|
|
1517
|
+
options?: RawAxiosRequestConfig,
|
|
1518
|
+
) {
|
|
1519
|
+
return WorkspaceApiFp(this.configuration)
|
|
1520
|
+
.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
1521
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
*
|
|
1526
|
+
* @summary List all workspaces
|
|
1527
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1528
|
+
* @param {boolean} [verbose] Include verbose output
|
|
1529
|
+
* @param {ListWorkspacesLabelsParameter} [labels] Filter workspaces by labels
|
|
1530
|
+
* @param {*} [options] Override http request option.
|
|
1531
|
+
* @throws {RequiredError}
|
|
1532
|
+
* @memberof WorkspaceApi
|
|
1533
|
+
*/
|
|
1534
|
+
public listWorkspaces(
|
|
1535
|
+
xDaytonaOrganizationID?: string,
|
|
1536
|
+
verbose?: boolean,
|
|
1537
|
+
labels?: ListWorkspacesLabelsParameter,
|
|
1538
|
+
options?: RawAxiosRequestConfig,
|
|
1539
|
+
) {
|
|
1540
|
+
return WorkspaceApiFp(this.configuration)
|
|
1541
|
+
.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
|
|
1542
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
*
|
|
1547
|
+
* @summary Replace workspace labels
|
|
1548
|
+
* @param {string} workspaceId ID of the workspace
|
|
1549
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
1550
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1551
|
+
* @param {*} [options] Override http request option.
|
|
1552
|
+
* @throws {RequiredError}
|
|
1553
|
+
* @memberof WorkspaceApi
|
|
1554
|
+
*/
|
|
1555
|
+
public replaceLabels(
|
|
1556
|
+
workspaceId: string,
|
|
1557
|
+
workspaceLabels: WorkspaceLabels,
|
|
1558
|
+
xDaytonaOrganizationID?: string,
|
|
1559
|
+
options?: RawAxiosRequestConfig,
|
|
1560
|
+
) {
|
|
1561
|
+
return WorkspaceApiFp(this.configuration)
|
|
1562
|
+
.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
|
|
1563
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @summary Resize workspace
|
|
1569
|
+
* @param {string} workspaceId ID of the workspace
|
|
1570
|
+
* @param {object} body
|
|
1571
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
* @memberof WorkspaceApi
|
|
1575
|
+
*/
|
|
1576
|
+
public resizeWorkspace(
|
|
1577
|
+
workspaceId: string,
|
|
1578
|
+
body: object,
|
|
1579
|
+
xDaytonaOrganizationID?: string,
|
|
1580
|
+
options?: RawAxiosRequestConfig,
|
|
1581
|
+
) {
|
|
1582
|
+
return WorkspaceApiFp(this.configuration)
|
|
1583
|
+
.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
|
|
1584
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
*
|
|
1589
|
+
* @summary Set workspace auto-stop interval
|
|
1590
|
+
* @param {string} workspaceId ID of the workspace
|
|
1591
|
+
* @param {number} interval Auto-stop interval in minutes (0 to disable)
|
|
1592
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1593
|
+
* @param {*} [options] Override http request option.
|
|
1594
|
+
* @throws {RequiredError}
|
|
1595
|
+
* @memberof WorkspaceApi
|
|
1596
|
+
*/
|
|
1597
|
+
public setAutostopInterval(
|
|
1598
|
+
workspaceId: string,
|
|
1599
|
+
interval: number,
|
|
1600
|
+
xDaytonaOrganizationID?: string,
|
|
1601
|
+
options?: RawAxiosRequestConfig,
|
|
1602
|
+
) {
|
|
1603
|
+
return WorkspaceApiFp(this.configuration)
|
|
1604
|
+
.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
1605
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @summary Start workspace
|
|
1611
|
+
* @param {string} workspaceId ID of the workspace
|
|
1612
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1613
|
+
* @param {*} [options] Override http request option.
|
|
1614
|
+
* @throws {RequiredError}
|
|
1615
|
+
* @memberof WorkspaceApi
|
|
1616
|
+
*/
|
|
1617
|
+
public startWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
1618
|
+
return WorkspaceApiFp(this.configuration)
|
|
1619
|
+
.startWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1620
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
*
|
|
1625
|
+
* @summary Stop workspace
|
|
1626
|
+
* @param {string} workspaceId ID of the workspace
|
|
1627
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1628
|
+
* @param {*} [options] Override http request option.
|
|
1629
|
+
* @throws {RequiredError}
|
|
1630
|
+
* @memberof WorkspaceApi
|
|
1631
|
+
*/
|
|
1632
|
+
public stopWorkspace(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
1633
|
+
return WorkspaceApiFp(this.configuration)
|
|
1634
|
+
.stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1635
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @summary Update public status
|
|
1641
|
+
* @param {string} workspaceId ID of the workspace
|
|
1642
|
+
* @param {boolean} isPublic Public status to set
|
|
1643
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1644
|
+
* @param {*} [options] Override http request option.
|
|
1645
|
+
* @throws {RequiredError}
|
|
1646
|
+
* @memberof WorkspaceApi
|
|
1647
|
+
*/
|
|
1648
|
+
public updatePublicStatus(
|
|
1649
|
+
workspaceId: string,
|
|
1650
|
+
isPublic: boolean,
|
|
1651
|
+
xDaytonaOrganizationID?: string,
|
|
1652
|
+
options?: RawAxiosRequestConfig,
|
|
1653
|
+
) {
|
|
1654
|
+
return WorkspaceApiFp(this.configuration)
|
|
1655
|
+
.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
1656
|
+
.then((request) => request(this.axios, this.basePath))
|
|
1657
|
+
}
|
|
1658
|
+
}
|