@daytonaio/api-client 0.15.0 → 0.16.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 +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +396 -324
- package/api/docker-registry-api.ts +703 -549
- package/api/images-api.ts +576 -346
- package/api/nodes-api.ts +250 -213
- package/api/organizations-api.ts +2203 -1671
- package/api/preview-api.ts +326 -0
- package/api/toolbox-api.ts +4507 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1482 -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 +54 -63
- package/dist/api/docker-registry-api.js +102 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +146 -66
- package/dist/api/nodes-api.js +37 -47
- package/dist/api/organizations-api.js +341 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +266 -0
- package/dist/api/toolbox-api.js +601 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +50 -4
- package/dist/api/workspace-api.js +291 -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 +55 -64
- package/dist/esm/api/docker-registry-api.js +103 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +147 -67
- package/dist/esm/api/nodes-api.js +38 -48
- package/dist/esm/api/organizations-api.js +342 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +259 -0
- package/dist/esm/api/toolbox-api.js +602 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +50 -4
- package/dist/esm/api/workspace-api.js +292 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- 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 +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +1 -1
- package/dist/esm/models/workspace-state.js +1 -1
- package/dist/esm/models/workspace.d.ts +19 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +1 -1
- package/dist/models/workspace-state.js +1 -1
- package/dist/models/workspace.d.ts +19 -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 +74 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +96 -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 +70 -68
- package/models/list-branch-response.ts +8 -11
- 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-user.ts +55 -58
- package/models/organization.ts +38 -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 +20 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +119 -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
|
@@ -11,19 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
14
|
import globalAxios from 'axios';
|
|
24
15
|
// Some imports not used depending on template conditions
|
|
25
16
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from '../common';
|
|
27
18
|
// @ts-ignore
|
|
28
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
20
|
/**
|
|
@@ -40,11 +31,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
40
31
|
* @param {*} [options] Override http request option.
|
|
41
32
|
* @throws {RequiredError}
|
|
42
33
|
*/
|
|
43
|
-
archiveWorkspace:
|
|
34
|
+
archiveWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
44
35
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
45
36
|
assertParamExists('archiveWorkspace', 'workspaceId', workspaceId);
|
|
46
|
-
const localVarPath = `/workspace/{workspaceId}/archive`
|
|
47
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
37
|
+
const localVarPath = `/workspace/{workspaceId}/archive`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
48
38
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
39
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
40
|
let baseOptions;
|
|
@@ -56,7 +46,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
56
46
|
const localVarQueryParameter = {};
|
|
57
47
|
// authentication oauth2 required
|
|
58
48
|
// oauth required
|
|
59
|
-
|
|
49
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
60
50
|
if (xDaytonaOrganizationID != null) {
|
|
61
51
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
62
52
|
}
|
|
@@ -67,7 +57,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
67
57
|
url: toPathString(localVarUrlObj),
|
|
68
58
|
options: localVarRequestOptions,
|
|
69
59
|
};
|
|
70
|
-
}
|
|
60
|
+
},
|
|
71
61
|
/**
|
|
72
62
|
*
|
|
73
63
|
* @summary Create workspace snapshot
|
|
@@ -76,11 +66,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
76
66
|
* @param {*} [options] Override http request option.
|
|
77
67
|
* @throws {RequiredError}
|
|
78
68
|
*/
|
|
79
|
-
createSnapshot:
|
|
69
|
+
createSnapshot: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
80
70
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
81
71
|
assertParamExists('createSnapshot', 'workspaceId', workspaceId);
|
|
82
|
-
const localVarPath = `/workspace/{workspaceId}/snapshot`
|
|
83
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
72
|
+
const localVarPath = `/workspace/{workspaceId}/snapshot`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
84
73
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
74
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
86
75
|
let baseOptions;
|
|
@@ -92,7 +81,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
92
81
|
const localVarQueryParameter = {};
|
|
93
82
|
// authentication oauth2 required
|
|
94
83
|
// oauth required
|
|
95
|
-
|
|
84
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
96
85
|
if (xDaytonaOrganizationID != null) {
|
|
97
86
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
98
87
|
}
|
|
@@ -103,7 +92,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
103
92
|
url: toPathString(localVarUrlObj),
|
|
104
93
|
options: localVarRequestOptions,
|
|
105
94
|
};
|
|
106
|
-
}
|
|
95
|
+
},
|
|
107
96
|
/**
|
|
108
97
|
*
|
|
109
98
|
* @summary Create a new workspace
|
|
@@ -112,7 +101,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
112
101
|
* @param {*} [options] Override http request option.
|
|
113
102
|
* @throws {RequiredError}
|
|
114
103
|
*/
|
|
115
|
-
createWorkspace:
|
|
104
|
+
createWorkspace: async (createWorkspace, xDaytonaOrganizationID, options = {}) => {
|
|
116
105
|
// verify required parameter 'createWorkspace' is not null or undefined
|
|
117
106
|
assertParamExists('createWorkspace', 'createWorkspace', createWorkspace);
|
|
118
107
|
const localVarPath = `/workspace`;
|
|
@@ -127,11 +116,11 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
127
116
|
const localVarQueryParameter = {};
|
|
128
117
|
// authentication oauth2 required
|
|
129
118
|
// oauth required
|
|
130
|
-
|
|
119
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
120
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
131
121
|
if (xDaytonaOrganizationID != null) {
|
|
132
122
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
133
123
|
}
|
|
134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
136
125
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
126
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -140,7 +129,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
140
129
|
url: toPathString(localVarUrlObj),
|
|
141
130
|
options: localVarRequestOptions,
|
|
142
131
|
};
|
|
143
|
-
}
|
|
132
|
+
},
|
|
144
133
|
/**
|
|
145
134
|
*
|
|
146
135
|
* @summary Delete workspace
|
|
@@ -150,13 +139,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
150
139
|
* @param {*} [options] Override http request option.
|
|
151
140
|
* @throws {RequiredError}
|
|
152
141
|
*/
|
|
153
|
-
deleteWorkspace:
|
|
142
|
+
deleteWorkspace: async (workspaceId, force, xDaytonaOrganizationID, options = {}) => {
|
|
154
143
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
155
144
|
assertParamExists('deleteWorkspace', 'workspaceId', workspaceId);
|
|
156
145
|
// verify required parameter 'force' is not null or undefined
|
|
157
146
|
assertParamExists('deleteWorkspace', 'force', force);
|
|
158
|
-
const localVarPath = `/workspace/{workspaceId}`
|
|
159
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
147
|
+
const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
160
148
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
162
150
|
let baseOptions;
|
|
@@ -168,7 +156,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
168
156
|
const localVarQueryParameter = {};
|
|
169
157
|
// authentication oauth2 required
|
|
170
158
|
// oauth required
|
|
171
|
-
|
|
159
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
172
160
|
if (force !== undefined) {
|
|
173
161
|
localVarQueryParameter['force'] = force;
|
|
174
162
|
}
|
|
@@ -182,7 +170,47 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
182
170
|
url: toPathString(localVarUrlObj),
|
|
183
171
|
options: localVarRequestOptions,
|
|
184
172
|
};
|
|
185
|
-
}
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @summary Get preview URL for a workspace port
|
|
177
|
+
* @param {string} workspaceId ID of the workspace
|
|
178
|
+
* @param {number} port Port number to get preview URL for
|
|
179
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
getPortPreviewUrl: async (workspaceId, port, xDaytonaOrganizationID, options = {}) => {
|
|
184
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
185
|
+
assertParamExists('getPortPreviewUrl', 'workspaceId', workspaceId);
|
|
186
|
+
// verify required parameter 'port' is not null or undefined
|
|
187
|
+
assertParamExists('getPortPreviewUrl', 'port', port);
|
|
188
|
+
const localVarPath = `/workspace/{workspaceId}/ports/{port}/preview-url`
|
|
189
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
190
|
+
.replace(`{${'port'}}`, encodeURIComponent(String(port)));
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
if (configuration) {
|
|
195
|
+
baseOptions = configuration.baseOptions;
|
|
196
|
+
}
|
|
197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
198
|
+
const localVarHeaderParameter = {};
|
|
199
|
+
const localVarQueryParameter = {};
|
|
200
|
+
// authentication oauth2 required
|
|
201
|
+
// oauth required
|
|
202
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
203
|
+
if (xDaytonaOrganizationID != null) {
|
|
204
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
205
|
+
}
|
|
206
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
return {
|
|
210
|
+
url: toPathString(localVarUrlObj),
|
|
211
|
+
options: localVarRequestOptions,
|
|
212
|
+
};
|
|
213
|
+
},
|
|
186
214
|
/**
|
|
187
215
|
*
|
|
188
216
|
* @summary Get workspace details
|
|
@@ -192,11 +220,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
192
220
|
* @param {*} [options] Override http request option.
|
|
193
221
|
* @throws {RequiredError}
|
|
194
222
|
*/
|
|
195
|
-
getWorkspace:
|
|
223
|
+
getWorkspace: async (workspaceId, xDaytonaOrganizationID, verbose, options = {}) => {
|
|
196
224
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
197
225
|
assertParamExists('getWorkspace', 'workspaceId', workspaceId);
|
|
198
|
-
const localVarPath = `/workspace/{workspaceId}`
|
|
199
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
226
|
+
const localVarPath = `/workspace/{workspaceId}`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
200
227
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
228
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
202
229
|
let baseOptions;
|
|
@@ -208,7 +235,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
208
235
|
const localVarQueryParameter = {};
|
|
209
236
|
// authentication oauth2 required
|
|
210
237
|
// oauth required
|
|
211
|
-
|
|
238
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
212
239
|
if (verbose !== undefined) {
|
|
213
240
|
localVarQueryParameter['verbose'] = verbose;
|
|
214
241
|
}
|
|
@@ -222,16 +249,17 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
222
249
|
url: toPathString(localVarUrlObj),
|
|
223
250
|
options: localVarRequestOptions,
|
|
224
251
|
};
|
|
225
|
-
}
|
|
252
|
+
},
|
|
226
253
|
/**
|
|
227
254
|
*
|
|
228
255
|
* @summary List all workspaces
|
|
229
256
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
230
257
|
* @param {boolean} [verbose] Include verbose output
|
|
258
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
231
259
|
* @param {*} [options] Override http request option.
|
|
232
260
|
* @throws {RequiredError}
|
|
233
261
|
*/
|
|
234
|
-
listWorkspaces:
|
|
262
|
+
listWorkspaces: async (xDaytonaOrganizationID, verbose, labels, options = {}) => {
|
|
235
263
|
const localVarPath = `/workspace`;
|
|
236
264
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
265
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -244,10 +272,15 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
244
272
|
const localVarQueryParameter = {};
|
|
245
273
|
// authentication oauth2 required
|
|
246
274
|
// oauth required
|
|
247
|
-
|
|
275
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
248
276
|
if (verbose !== undefined) {
|
|
249
277
|
localVarQueryParameter['verbose'] = verbose;
|
|
250
278
|
}
|
|
279
|
+
if (labels !== undefined) {
|
|
280
|
+
for (const [key, value] of Object.entries(labels)) {
|
|
281
|
+
localVarQueryParameter[key] = value;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
251
284
|
if (xDaytonaOrganizationID != null) {
|
|
252
285
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
253
286
|
}
|
|
@@ -258,7 +291,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
258
291
|
url: toPathString(localVarUrlObj),
|
|
259
292
|
options: localVarRequestOptions,
|
|
260
293
|
};
|
|
261
|
-
}
|
|
294
|
+
},
|
|
262
295
|
/**
|
|
263
296
|
*
|
|
264
297
|
* @summary Replace workspace labels
|
|
@@ -268,13 +301,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
268
301
|
* @param {*} [options] Override http request option.
|
|
269
302
|
* @throws {RequiredError}
|
|
270
303
|
*/
|
|
271
|
-
replaceLabels:
|
|
304
|
+
replaceLabels: async (workspaceId, workspaceLabels, xDaytonaOrganizationID, options = {}) => {
|
|
272
305
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
273
306
|
assertParamExists('replaceLabels', 'workspaceId', workspaceId);
|
|
274
307
|
// verify required parameter 'workspaceLabels' is not null or undefined
|
|
275
308
|
assertParamExists('replaceLabels', 'workspaceLabels', workspaceLabels);
|
|
276
|
-
const localVarPath = `/workspace/{workspaceId}/labels`
|
|
277
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
309
|
+
const localVarPath = `/workspace/{workspaceId}/labels`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
278
310
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
279
311
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
280
312
|
let baseOptions;
|
|
@@ -286,11 +318,11 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
286
318
|
const localVarQueryParameter = {};
|
|
287
319
|
// authentication oauth2 required
|
|
288
320
|
// oauth required
|
|
289
|
-
|
|
321
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
322
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
290
323
|
if (xDaytonaOrganizationID != null) {
|
|
291
324
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
292
325
|
}
|
|
293
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
294
326
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
327
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
328
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -299,7 +331,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
299
331
|
url: toPathString(localVarUrlObj),
|
|
300
332
|
options: localVarRequestOptions,
|
|
301
333
|
};
|
|
302
|
-
}
|
|
334
|
+
},
|
|
303
335
|
/**
|
|
304
336
|
*
|
|
305
337
|
* @summary Resize workspace
|
|
@@ -309,13 +341,12 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
309
341
|
* @param {*} [options] Override http request option.
|
|
310
342
|
* @throws {RequiredError}
|
|
311
343
|
*/
|
|
312
|
-
resizeWorkspace:
|
|
344
|
+
resizeWorkspace: async (workspaceId, body, xDaytonaOrganizationID, options = {}) => {
|
|
313
345
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
314
346
|
assertParamExists('resizeWorkspace', 'workspaceId', workspaceId);
|
|
315
347
|
// verify required parameter 'body' is not null or undefined
|
|
316
348
|
assertParamExists('resizeWorkspace', 'body', body);
|
|
317
|
-
const localVarPath = `/workspace/{workspaceId}/resize`
|
|
318
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
349
|
+
const localVarPath = `/workspace/{workspaceId}/resize`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
319
350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
351
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
352
|
let baseOptions;
|
|
@@ -327,11 +358,11 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
327
358
|
const localVarQueryParameter = {};
|
|
328
359
|
// authentication oauth2 required
|
|
329
360
|
// oauth required
|
|
330
|
-
|
|
361
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
362
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
363
|
if (xDaytonaOrganizationID != null) {
|
|
332
364
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
333
365
|
}
|
|
334
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
366
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
336
367
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
337
368
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -340,7 +371,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
340
371
|
url: toPathString(localVarUrlObj),
|
|
341
372
|
options: localVarRequestOptions,
|
|
342
373
|
};
|
|
343
|
-
}
|
|
374
|
+
},
|
|
344
375
|
/**
|
|
345
376
|
*
|
|
346
377
|
* @summary Set workspace auto-stop interval
|
|
@@ -350,14 +381,14 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
350
381
|
* @param {*} [options] Override http request option.
|
|
351
382
|
* @throws {RequiredError}
|
|
352
383
|
*/
|
|
353
|
-
setAutostopInterval:
|
|
384
|
+
setAutostopInterval: async (workspaceId, interval, xDaytonaOrganizationID, options = {}) => {
|
|
354
385
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
355
386
|
assertParamExists('setAutostopInterval', 'workspaceId', workspaceId);
|
|
356
387
|
// verify required parameter 'interval' is not null or undefined
|
|
357
388
|
assertParamExists('setAutostopInterval', 'interval', interval);
|
|
358
389
|
const localVarPath = `/workspace/{workspaceId}/autostop/{interval}`
|
|
359
|
-
.replace(`{${
|
|
360
|
-
.replace(`{${
|
|
390
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
391
|
+
.replace(`{${'interval'}}`, encodeURIComponent(String(interval)));
|
|
361
392
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
362
393
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
363
394
|
let baseOptions;
|
|
@@ -369,7 +400,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
369
400
|
const localVarQueryParameter = {};
|
|
370
401
|
// authentication oauth2 required
|
|
371
402
|
// oauth required
|
|
372
|
-
|
|
403
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
373
404
|
if (xDaytonaOrganizationID != null) {
|
|
374
405
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
375
406
|
}
|
|
@@ -380,7 +411,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
380
411
|
url: toPathString(localVarUrlObj),
|
|
381
412
|
options: localVarRequestOptions,
|
|
382
413
|
};
|
|
383
|
-
}
|
|
414
|
+
},
|
|
384
415
|
/**
|
|
385
416
|
*
|
|
386
417
|
* @summary Start workspace
|
|
@@ -389,11 +420,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
389
420
|
* @param {*} [options] Override http request option.
|
|
390
421
|
* @throws {RequiredError}
|
|
391
422
|
*/
|
|
392
|
-
startWorkspace:
|
|
423
|
+
startWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
393
424
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
394
425
|
assertParamExists('startWorkspace', 'workspaceId', workspaceId);
|
|
395
|
-
const localVarPath = `/workspace/{workspaceId}/start`
|
|
396
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
426
|
+
const localVarPath = `/workspace/{workspaceId}/start`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
397
427
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
398
428
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
399
429
|
let baseOptions;
|
|
@@ -405,7 +435,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
405
435
|
const localVarQueryParameter = {};
|
|
406
436
|
// authentication oauth2 required
|
|
407
437
|
// oauth required
|
|
408
|
-
|
|
438
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
409
439
|
if (xDaytonaOrganizationID != null) {
|
|
410
440
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
411
441
|
}
|
|
@@ -416,7 +446,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
416
446
|
url: toPathString(localVarUrlObj),
|
|
417
447
|
options: localVarRequestOptions,
|
|
418
448
|
};
|
|
419
|
-
}
|
|
449
|
+
},
|
|
420
450
|
/**
|
|
421
451
|
*
|
|
422
452
|
* @summary Stop workspace
|
|
@@ -425,11 +455,10 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
425
455
|
* @param {*} [options] Override http request option.
|
|
426
456
|
* @throws {RequiredError}
|
|
427
457
|
*/
|
|
428
|
-
stopWorkspace:
|
|
458
|
+
stopWorkspace: async (workspaceId, xDaytonaOrganizationID, options = {}) => {
|
|
429
459
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
430
460
|
assertParamExists('stopWorkspace', 'workspaceId', workspaceId);
|
|
431
|
-
const localVarPath = `/workspace/{workspaceId}/stop`
|
|
432
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
461
|
+
const localVarPath = `/workspace/{workspaceId}/stop`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
433
462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
434
463
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
435
464
|
let baseOptions;
|
|
@@ -441,7 +470,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
441
470
|
const localVarQueryParameter = {};
|
|
442
471
|
// authentication oauth2 required
|
|
443
472
|
// oauth required
|
|
444
|
-
|
|
473
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
445
474
|
if (xDaytonaOrganizationID != null) {
|
|
446
475
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
447
476
|
}
|
|
@@ -452,7 +481,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
452
481
|
url: toPathString(localVarUrlObj),
|
|
453
482
|
options: localVarRequestOptions,
|
|
454
483
|
};
|
|
455
|
-
}
|
|
484
|
+
},
|
|
456
485
|
/**
|
|
457
486
|
*
|
|
458
487
|
* @summary Update public status
|
|
@@ -462,14 +491,14 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
462
491
|
* @param {*} [options] Override http request option.
|
|
463
492
|
* @throws {RequiredError}
|
|
464
493
|
*/
|
|
465
|
-
updatePublicStatus:
|
|
494
|
+
updatePublicStatus: async (workspaceId, isPublic, xDaytonaOrganizationID, options = {}) => {
|
|
466
495
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
467
496
|
assertParamExists('updatePublicStatus', 'workspaceId', workspaceId);
|
|
468
497
|
// verify required parameter 'isPublic' is not null or undefined
|
|
469
498
|
assertParamExists('updatePublicStatus', 'isPublic', isPublic);
|
|
470
499
|
const localVarPath = `/workspace/{workspaceId}/public/{isPublic}`
|
|
471
|
-
.replace(`{${
|
|
472
|
-
.replace(`{${
|
|
500
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
501
|
+
.replace(`{${'isPublic'}}`, encodeURIComponent(String(isPublic)));
|
|
473
502
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
474
503
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
475
504
|
let baseOptions;
|
|
@@ -481,7 +510,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
481
510
|
const localVarQueryParameter = {};
|
|
482
511
|
// authentication oauth2 required
|
|
483
512
|
// oauth required
|
|
484
|
-
|
|
513
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
485
514
|
if (xDaytonaOrganizationID != null) {
|
|
486
515
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
487
516
|
}
|
|
@@ -492,7 +521,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration) {
|
|
|
492
521
|
url: toPathString(localVarUrlObj),
|
|
493
522
|
options: localVarRequestOptions,
|
|
494
523
|
};
|
|
495
|
-
}
|
|
524
|
+
},
|
|
496
525
|
};
|
|
497
526
|
};
|
|
498
527
|
/**
|
|
@@ -510,14 +539,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
510
539
|
* @param {*} [options] Override http request option.
|
|
511
540
|
* @throws {RequiredError}
|
|
512
541
|
*/
|
|
513
|
-
archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
520
|
-
});
|
|
542
|
+
async archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
543
|
+
var _a, _b, _c;
|
|
544
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
545
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
546
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.archiveWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
547
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
521
548
|
},
|
|
522
549
|
/**
|
|
523
550
|
*
|
|
@@ -527,14 +554,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
527
554
|
* @param {*} [options] Override http request option.
|
|
528
555
|
* @throws {RequiredError}
|
|
529
556
|
*/
|
|
530
|
-
createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
537
|
-
});
|
|
557
|
+
async createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
|
|
558
|
+
var _a, _b, _c;
|
|
559
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(workspaceId, xDaytonaOrganizationID, options);
|
|
560
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
561
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createSnapshot']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
562
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
538
563
|
},
|
|
539
564
|
/**
|
|
540
565
|
*
|
|
@@ -544,14 +569,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
544
569
|
* @param {*} [options] Override http request option.
|
|
545
570
|
* @throws {RequiredError}
|
|
546
571
|
*/
|
|
547
|
-
createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
554
|
-
});
|
|
572
|
+
async createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
|
|
573
|
+
var _a, _b, _c;
|
|
574
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspace, xDaytonaOrganizationID, options);
|
|
575
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
576
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.createWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
555
578
|
},
|
|
556
579
|
/**
|
|
557
580
|
*
|
|
@@ -562,14 +585,28 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
562
585
|
* @param {*} [options] Override http request option.
|
|
563
586
|
* @throws {RequiredError}
|
|
564
587
|
*/
|
|
565
|
-
deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
588
|
+
async deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
589
|
+
var _a, _b, _c;
|
|
590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options);
|
|
591
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
592
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.deleteWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
593
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
594
|
+
},
|
|
595
|
+
/**
|
|
596
|
+
*
|
|
597
|
+
* @summary Get preview URL for a workspace port
|
|
598
|
+
* @param {string} workspaceId ID of the workspace
|
|
599
|
+
* @param {number} port Port number to get preview URL for
|
|
600
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
async getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
605
|
+
var _a, _b, _c;
|
|
606
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options);
|
|
607
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
608
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getPortPreviewUrl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
609
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
573
610
|
},
|
|
574
611
|
/**
|
|
575
612
|
*
|
|
@@ -580,31 +617,28 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
580
617
|
* @param {*} [options] Override http request option.
|
|
581
618
|
* @throws {RequiredError}
|
|
582
619
|
*/
|
|
583
|
-
getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
-
});
|
|
620
|
+
async getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
621
|
+
var _a, _b, _c;
|
|
622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options);
|
|
623
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
624
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.getWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
591
626
|
},
|
|
592
627
|
/**
|
|
593
628
|
*
|
|
594
629
|
* @summary List all workspaces
|
|
595
630
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
596
631
|
* @param {boolean} [verbose] Include verbose output
|
|
632
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
597
633
|
* @param {*} [options] Override http request option.
|
|
598
634
|
* @throws {RequiredError}
|
|
599
635
|
*/
|
|
600
|
-
listWorkspaces(xDaytonaOrganizationID, verbose, options) {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
607
|
-
});
|
|
636
|
+
async listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
|
|
637
|
+
var _a, _b, _c;
|
|
638
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options);
|
|
639
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
640
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.listWorkspaces']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
641
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
608
642
|
},
|
|
609
643
|
/**
|
|
610
644
|
*
|
|
@@ -615,14 +649,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
615
649
|
* @param {*} [options] Override http request option.
|
|
616
650
|
* @throws {RequiredError}
|
|
617
651
|
*/
|
|
618
|
-
replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
625
|
-
});
|
|
652
|
+
async replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
|
|
653
|
+
var _a, _b, _c;
|
|
654
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options);
|
|
655
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
656
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.replaceLabels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
657
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
626
658
|
},
|
|
627
659
|
/**
|
|
628
660
|
*
|
|
@@ -633,14 +665,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
633
665
|
* @param {*} [options] Override http request option.
|
|
634
666
|
* @throws {RequiredError}
|
|
635
667
|
*/
|
|
636
|
-
resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
643
|
-
});
|
|
668
|
+
async resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
|
|
669
|
+
var _a, _b, _c;
|
|
670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options);
|
|
671
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
672
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.resizeWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
673
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
644
674
|
},
|
|
645
675
|
/**
|
|
646
676
|
*
|
|
@@ -651,14 +681,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
651
681
|
* @param {*} [options] Override http request option.
|
|
652
682
|
* @throws {RequiredError}
|
|
653
683
|
*/
|
|
654
|
-
setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
661
|
-
});
|
|
684
|
+
async setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
685
|
+
var _a, _b, _c;
|
|
686
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options);
|
|
687
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
688
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.setAutostopInterval']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
662
690
|
},
|
|
663
691
|
/**
|
|
664
692
|
*
|
|
@@ -668,14 +696,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
668
696
|
* @param {*} [options] Override http request option.
|
|
669
697
|
* @throws {RequiredError}
|
|
670
698
|
*/
|
|
671
|
-
startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
678
|
-
});
|
|
699
|
+
async startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
700
|
+
var _a, _b, _c;
|
|
701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
703
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.startWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
704
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
679
705
|
},
|
|
680
706
|
/**
|
|
681
707
|
*
|
|
@@ -685,14 +711,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
685
711
|
* @param {*} [options] Override http request option.
|
|
686
712
|
* @throws {RequiredError}
|
|
687
713
|
*/
|
|
688
|
-
stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
695
|
-
});
|
|
714
|
+
async stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
715
|
+
var _a, _b, _c;
|
|
716
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopWorkspace(workspaceId, xDaytonaOrganizationID, options);
|
|
717
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
718
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.stopWorkspace']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
719
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
696
720
|
},
|
|
697
721
|
/**
|
|
698
722
|
*
|
|
@@ -703,14 +727,12 @@ export const WorkspaceApiFp = function (configuration) {
|
|
|
703
727
|
* @param {*} [options] Override http request option.
|
|
704
728
|
* @throws {RequiredError}
|
|
705
729
|
*/
|
|
706
|
-
updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
713
|
-
});
|
|
730
|
+
async updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
731
|
+
var _a, _b, _c;
|
|
732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options);
|
|
733
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
734
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WorkspaceApi.updatePublicStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
735
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
714
736
|
},
|
|
715
737
|
};
|
|
716
738
|
};
|
|
@@ -730,7 +752,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
730
752
|
* @throws {RequiredError}
|
|
731
753
|
*/
|
|
732
754
|
archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
733
|
-
return localVarFp
|
|
755
|
+
return localVarFp
|
|
756
|
+
.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
757
|
+
.then((request) => request(axios, basePath));
|
|
734
758
|
},
|
|
735
759
|
/**
|
|
736
760
|
*
|
|
@@ -741,7 +765,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
741
765
|
* @throws {RequiredError}
|
|
742
766
|
*/
|
|
743
767
|
createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
|
|
744
|
-
return localVarFp
|
|
768
|
+
return localVarFp
|
|
769
|
+
.createSnapshot(workspaceId, xDaytonaOrganizationID, options)
|
|
770
|
+
.then((request) => request(axios, basePath));
|
|
745
771
|
},
|
|
746
772
|
/**
|
|
747
773
|
*
|
|
@@ -752,7 +778,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
752
778
|
* @throws {RequiredError}
|
|
753
779
|
*/
|
|
754
780
|
createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
|
|
755
|
-
return localVarFp
|
|
781
|
+
return localVarFp
|
|
782
|
+
.createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
|
|
783
|
+
.then((request) => request(axios, basePath));
|
|
756
784
|
},
|
|
757
785
|
/**
|
|
758
786
|
*
|
|
@@ -764,7 +792,23 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
764
792
|
* @throws {RequiredError}
|
|
765
793
|
*/
|
|
766
794
|
deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
767
|
-
return localVarFp
|
|
795
|
+
return localVarFp
|
|
796
|
+
.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
|
|
797
|
+
.then((request) => request(axios, basePath));
|
|
798
|
+
},
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @summary Get preview URL for a workspace port
|
|
802
|
+
* @param {string} workspaceId ID of the workspace
|
|
803
|
+
* @param {number} port Port number to get preview URL for
|
|
804
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
809
|
+
return localVarFp
|
|
810
|
+
.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
|
|
811
|
+
.then((request) => request(axios, basePath));
|
|
768
812
|
},
|
|
769
813
|
/**
|
|
770
814
|
*
|
|
@@ -776,18 +820,23 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
776
820
|
* @throws {RequiredError}
|
|
777
821
|
*/
|
|
778
822
|
getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
779
|
-
return localVarFp
|
|
823
|
+
return localVarFp
|
|
824
|
+
.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
825
|
+
.then((request) => request(axios, basePath));
|
|
780
826
|
},
|
|
781
827
|
/**
|
|
782
828
|
*
|
|
783
829
|
* @summary List all workspaces
|
|
784
830
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
785
831
|
* @param {boolean} [verbose] Include verbose output
|
|
832
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
786
833
|
* @param {*} [options] Override http request option.
|
|
787
834
|
* @throws {RequiredError}
|
|
788
835
|
*/
|
|
789
|
-
listWorkspaces(xDaytonaOrganizationID, verbose, options) {
|
|
790
|
-
return localVarFp
|
|
836
|
+
listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
|
|
837
|
+
return localVarFp
|
|
838
|
+
.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
|
|
839
|
+
.then((request) => request(axios, basePath));
|
|
791
840
|
},
|
|
792
841
|
/**
|
|
793
842
|
*
|
|
@@ -799,7 +848,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
799
848
|
* @throws {RequiredError}
|
|
800
849
|
*/
|
|
801
850
|
replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
|
|
802
|
-
return localVarFp
|
|
851
|
+
return localVarFp
|
|
852
|
+
.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
|
|
853
|
+
.then((request) => request(axios, basePath));
|
|
803
854
|
},
|
|
804
855
|
/**
|
|
805
856
|
*
|
|
@@ -811,7 +862,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
811
862
|
* @throws {RequiredError}
|
|
812
863
|
*/
|
|
813
864
|
resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
|
|
814
|
-
return localVarFp
|
|
865
|
+
return localVarFp
|
|
866
|
+
.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
|
|
867
|
+
.then((request) => request(axios, basePath));
|
|
815
868
|
},
|
|
816
869
|
/**
|
|
817
870
|
*
|
|
@@ -823,7 +876,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
823
876
|
* @throws {RequiredError}
|
|
824
877
|
*/
|
|
825
878
|
setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
826
|
-
return localVarFp
|
|
879
|
+
return localVarFp
|
|
880
|
+
.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
881
|
+
.then((request) => request(axios, basePath));
|
|
827
882
|
},
|
|
828
883
|
/**
|
|
829
884
|
*
|
|
@@ -834,7 +889,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
834
889
|
* @throws {RequiredError}
|
|
835
890
|
*/
|
|
836
891
|
startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
837
|
-
return localVarFp
|
|
892
|
+
return localVarFp
|
|
893
|
+
.startWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
894
|
+
.then((request) => request(axios, basePath));
|
|
838
895
|
},
|
|
839
896
|
/**
|
|
840
897
|
*
|
|
@@ -845,7 +902,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
845
902
|
* @throws {RequiredError}
|
|
846
903
|
*/
|
|
847
904
|
stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
848
|
-
return localVarFp
|
|
905
|
+
return localVarFp
|
|
906
|
+
.stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
907
|
+
.then((request) => request(axios, basePath));
|
|
849
908
|
},
|
|
850
909
|
/**
|
|
851
910
|
*
|
|
@@ -857,7 +916,9 @@ export const WorkspaceApiFactory = function (configuration, basePath, axios) {
|
|
|
857
916
|
* @throws {RequiredError}
|
|
858
917
|
*/
|
|
859
918
|
updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
860
|
-
return localVarFp
|
|
919
|
+
return localVarFp
|
|
920
|
+
.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
921
|
+
.then((request) => request(axios, basePath));
|
|
861
922
|
},
|
|
862
923
|
};
|
|
863
924
|
};
|
|
@@ -878,7 +939,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
878
939
|
* @memberof WorkspaceApi
|
|
879
940
|
*/
|
|
880
941
|
archiveWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
881
|
-
return WorkspaceApiFp(this.configuration)
|
|
942
|
+
return WorkspaceApiFp(this.configuration)
|
|
943
|
+
.archiveWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
944
|
+
.then((request) => request(this.axios, this.basePath));
|
|
882
945
|
}
|
|
883
946
|
/**
|
|
884
947
|
*
|
|
@@ -890,7 +953,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
890
953
|
* @memberof WorkspaceApi
|
|
891
954
|
*/
|
|
892
955
|
createSnapshot(workspaceId, xDaytonaOrganizationID, options) {
|
|
893
|
-
return WorkspaceApiFp(this.configuration)
|
|
956
|
+
return WorkspaceApiFp(this.configuration)
|
|
957
|
+
.createSnapshot(workspaceId, xDaytonaOrganizationID, options)
|
|
958
|
+
.then((request) => request(this.axios, this.basePath));
|
|
894
959
|
}
|
|
895
960
|
/**
|
|
896
961
|
*
|
|
@@ -902,7 +967,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
902
967
|
* @memberof WorkspaceApi
|
|
903
968
|
*/
|
|
904
969
|
createWorkspace(createWorkspace, xDaytonaOrganizationID, options) {
|
|
905
|
-
return WorkspaceApiFp(this.configuration)
|
|
970
|
+
return WorkspaceApiFp(this.configuration)
|
|
971
|
+
.createWorkspace(createWorkspace, xDaytonaOrganizationID, options)
|
|
972
|
+
.then((request) => request(this.axios, this.basePath));
|
|
906
973
|
}
|
|
907
974
|
/**
|
|
908
975
|
*
|
|
@@ -915,7 +982,24 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
915
982
|
* @memberof WorkspaceApi
|
|
916
983
|
*/
|
|
917
984
|
deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options) {
|
|
918
|
-
return WorkspaceApiFp(this.configuration)
|
|
985
|
+
return WorkspaceApiFp(this.configuration)
|
|
986
|
+
.deleteWorkspace(workspaceId, force, xDaytonaOrganizationID, options)
|
|
987
|
+
.then((request) => request(this.axios, this.basePath));
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
*
|
|
991
|
+
* @summary Get preview URL for a workspace port
|
|
992
|
+
* @param {string} workspaceId ID of the workspace
|
|
993
|
+
* @param {number} port Port number to get preview URL for
|
|
994
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
* @memberof WorkspaceApi
|
|
998
|
+
*/
|
|
999
|
+
getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options) {
|
|
1000
|
+
return WorkspaceApiFp(this.configuration)
|
|
1001
|
+
.getPortPreviewUrl(workspaceId, port, xDaytonaOrganizationID, options)
|
|
1002
|
+
.then((request) => request(this.axios, this.basePath));
|
|
919
1003
|
}
|
|
920
1004
|
/**
|
|
921
1005
|
*
|
|
@@ -928,19 +1012,24 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
928
1012
|
* @memberof WorkspaceApi
|
|
929
1013
|
*/
|
|
930
1014
|
getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options) {
|
|
931
|
-
return WorkspaceApiFp(this.configuration)
|
|
1015
|
+
return WorkspaceApiFp(this.configuration)
|
|
1016
|
+
.getWorkspace(workspaceId, xDaytonaOrganizationID, verbose, options)
|
|
1017
|
+
.then((request) => request(this.axios, this.basePath));
|
|
932
1018
|
}
|
|
933
1019
|
/**
|
|
934
1020
|
*
|
|
935
1021
|
* @summary List all workspaces
|
|
936
1022
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
937
1023
|
* @param {boolean} [verbose] Include verbose output
|
|
1024
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
938
1025
|
* @param {*} [options] Override http request option.
|
|
939
1026
|
* @throws {RequiredError}
|
|
940
1027
|
* @memberof WorkspaceApi
|
|
941
1028
|
*/
|
|
942
|
-
listWorkspaces(xDaytonaOrganizationID, verbose, options) {
|
|
943
|
-
return WorkspaceApiFp(this.configuration)
|
|
1029
|
+
listWorkspaces(xDaytonaOrganizationID, verbose, labels, options) {
|
|
1030
|
+
return WorkspaceApiFp(this.configuration)
|
|
1031
|
+
.listWorkspaces(xDaytonaOrganizationID, verbose, labels, options)
|
|
1032
|
+
.then((request) => request(this.axios, this.basePath));
|
|
944
1033
|
}
|
|
945
1034
|
/**
|
|
946
1035
|
*
|
|
@@ -953,7 +1042,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
953
1042
|
* @memberof WorkspaceApi
|
|
954
1043
|
*/
|
|
955
1044
|
replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options) {
|
|
956
|
-
return WorkspaceApiFp(this.configuration)
|
|
1045
|
+
return WorkspaceApiFp(this.configuration)
|
|
1046
|
+
.replaceLabels(workspaceId, workspaceLabels, xDaytonaOrganizationID, options)
|
|
1047
|
+
.then((request) => request(this.axios, this.basePath));
|
|
957
1048
|
}
|
|
958
1049
|
/**
|
|
959
1050
|
*
|
|
@@ -966,7 +1057,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
966
1057
|
* @memberof WorkspaceApi
|
|
967
1058
|
*/
|
|
968
1059
|
resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options) {
|
|
969
|
-
return WorkspaceApiFp(this.configuration)
|
|
1060
|
+
return WorkspaceApiFp(this.configuration)
|
|
1061
|
+
.resizeWorkspace(workspaceId, body, xDaytonaOrganizationID, options)
|
|
1062
|
+
.then((request) => request(this.axios, this.basePath));
|
|
970
1063
|
}
|
|
971
1064
|
/**
|
|
972
1065
|
*
|
|
@@ -979,7 +1072,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
979
1072
|
* @memberof WorkspaceApi
|
|
980
1073
|
*/
|
|
981
1074
|
setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options) {
|
|
982
|
-
return WorkspaceApiFp(this.configuration)
|
|
1075
|
+
return WorkspaceApiFp(this.configuration)
|
|
1076
|
+
.setAutostopInterval(workspaceId, interval, xDaytonaOrganizationID, options)
|
|
1077
|
+
.then((request) => request(this.axios, this.basePath));
|
|
983
1078
|
}
|
|
984
1079
|
/**
|
|
985
1080
|
*
|
|
@@ -991,7 +1086,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
991
1086
|
* @memberof WorkspaceApi
|
|
992
1087
|
*/
|
|
993
1088
|
startWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
994
|
-
return WorkspaceApiFp(this.configuration)
|
|
1089
|
+
return WorkspaceApiFp(this.configuration)
|
|
1090
|
+
.startWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1091
|
+
.then((request) => request(this.axios, this.basePath));
|
|
995
1092
|
}
|
|
996
1093
|
/**
|
|
997
1094
|
*
|
|
@@ -1003,7 +1100,9 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
1003
1100
|
* @memberof WorkspaceApi
|
|
1004
1101
|
*/
|
|
1005
1102
|
stopWorkspace(workspaceId, xDaytonaOrganizationID, options) {
|
|
1006
|
-
return WorkspaceApiFp(this.configuration)
|
|
1103
|
+
return WorkspaceApiFp(this.configuration)
|
|
1104
|
+
.stopWorkspace(workspaceId, xDaytonaOrganizationID, options)
|
|
1105
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1007
1106
|
}
|
|
1008
1107
|
/**
|
|
1009
1108
|
*
|
|
@@ -1016,6 +1115,8 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
1016
1115
|
* @memberof WorkspaceApi
|
|
1017
1116
|
*/
|
|
1018
1117
|
updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options) {
|
|
1019
|
-
return WorkspaceApiFp(this.configuration)
|
|
1118
|
+
return WorkspaceApiFp(this.configuration)
|
|
1119
|
+
.updatePublicStatus(workspaceId, isPublic, xDaytonaOrganizationID, options)
|
|
1120
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1020
1121
|
}
|
|
1021
1122
|
}
|