@daytonaio/api-client 0.14.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 +19 -4
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +383 -279
- package/api/docker-registry-api.ts +714 -504
- package/api/images-api.ts +580 -318
- package/api/nodes-api.ts +250 -213
- package/api/organizations-api.ts +2390 -0
- package/api/preview-api.ts +326 -0
- package/api/toolbox-api.ts +4532 -2915
- package/api/users-api.ts +335 -373
- package/api/workspace-api.ts +1506 -893
- package/api.ts +10 -11
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.d.ts +32 -16
- package/dist/api/api-keys-api.js +92 -73
- package/dist/api/docker-registry-api.d.ts +72 -44
- package/dist/api/docker-registry-api.js +182 -138
- package/dist/api/images-api.d.ts +74 -16
- package/dist/api/images-api.js +181 -73
- package/dist/api/nodes-api.js +37 -47
- package/dist/api/organizations-api.d.ts +856 -0
- package/dist/api/organizations-api.js +1746 -0
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +266 -0
- package/dist/api/toolbox-api.d.ts +292 -144
- package/dist/api/toolbox-api.js +914 -623
- package/dist/api/users-api.d.ts +9 -47
- package/dist/api/users-api.js +57 -144
- package/dist/api/workspace-api.d.ts +199 -101
- package/dist/api/workspace-api.js +469 -280
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -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.d.ts +32 -16
- package/dist/esm/api/api-keys-api.js +93 -74
- package/dist/esm/api/docker-registry-api.d.ts +72 -44
- package/dist/esm/api/docker-registry-api.js +183 -139
- package/dist/esm/api/images-api.d.ts +74 -16
- package/dist/esm/api/images-api.js +182 -74
- package/dist/esm/api/nodes-api.js +38 -48
- package/dist/esm/api/organizations-api.d.ts +856 -0
- package/dist/esm/api/organizations-api.js +1739 -0
- 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.d.ts +292 -144
- package/dist/esm/api/toolbox-api.js +915 -624
- package/dist/esm/api/users-api.d.ts +9 -47
- package/dist/esm/api/users-api.js +58 -145
- package/dist/esm/api/workspace-api.d.ts +199 -101
- package/dist/esm/api/workspace-api.js +470 -281
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -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 +19 -4
- package/dist/esm/models/api-key-list.js +8 -1
- package/dist/esm/models/api-key-response.d.ts +19 -4
- package/dist/esm/models/api-key-response.js +8 -1
- 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 +16 -1
- package/dist/esm/models/create-api-key.js +8 -1
- package/dist/esm/models/create-docker-registry.d.ts +9 -9
- package/dist/esm/models/create-docker-registry.js +2 -2
- 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 +47 -0
- package/dist/esm/models/create-organization-invitation.js +17 -0
- package/dist/esm/models/create-organization-quota.d.ts +84 -0
- package/dist/esm/models/create-organization-role.d.ts +45 -0
- package/dist/esm/models/create-organization-role.js +21 -0
- package/dist/esm/models/create-organization.d.ts +90 -0
- package/dist/esm/models/create-organization.js +14 -0
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +14 -56
- 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 +12 -12
- package/dist/esm/models/docker-registry.js +2 -2
- 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 +17 -1
- package/dist/esm/models/index.js +17 -1
- 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 +97 -0
- package/dist/esm/models/organization-invitation.js +23 -0
- package/dist/esm/models/organization-role.d.ts +69 -0
- package/dist/esm/models/organization-role.js +21 -0
- package/dist/esm/models/organization-user.d.ts +72 -0
- package/dist/esm/models/organization-user.js +17 -0
- package/dist/esm/models/organization.d.ts +54 -0
- package/dist/esm/models/organization.js +14 -0
- 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 +24 -0
- package/dist/esm/models/update-assigned-organization-roles.js +14 -0
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +41 -0
- package/dist/esm/models/update-organization-invitation.js +17 -0
- package/dist/esm/models/update-organization-member-role.d.ts +29 -0
- package/dist/esm/models/update-organization-member-role.js +17 -0
- package/dist/esm/models/update-organization-quota.d.ts +84 -0
- package/dist/esm/models/update-organization-quota.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +45 -0
- package/dist/esm/models/update-organization-role.js +21 -0
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +30 -0
- package/dist/esm/models/user-public-key.js +14 -0
- package/dist/esm/models/user.d.ts +43 -0
- package/dist/esm/models/user.js +14 -0
- 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 +19 -4
- package/dist/models/api-key-list.js +9 -0
- package/dist/models/api-key-response.d.ts +19 -4
- package/dist/models/api-key-response.js +9 -0
- 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 +16 -1
- package/dist/models/create-api-key.js +9 -0
- package/dist/models/create-docker-registry.d.ts +9 -9
- package/dist/models/create-docker-registry.js +2 -2
- 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 +47 -0
- package/dist/models/create-organization-invitation.js +20 -0
- package/dist/models/create-organization-quota.d.ts +84 -0
- package/dist/models/create-organization-role.d.ts +45 -0
- package/dist/models/create-organization-role.js +24 -0
- package/dist/models/create-organization.d.ts +90 -0
- package/dist/models/create-organization.js +15 -0
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +14 -56
- 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 +12 -12
- package/dist/models/docker-registry.js +2 -2
- 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 +17 -1
- package/dist/models/index.js +17 -1
- 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 +97 -0
- package/dist/models/organization-invitation.js +26 -0
- package/dist/models/organization-role.d.ts +69 -0
- package/dist/models/organization-role.js +24 -0
- package/dist/models/organization-user.d.ts +72 -0
- package/dist/models/organization-user.js +20 -0
- package/dist/models/organization.d.ts +54 -0
- package/dist/models/organization.js +15 -0
- 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 +24 -0
- package/dist/models/update-assigned-organization-roles.js +15 -0
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +41 -0
- package/dist/models/update-organization-invitation.js +20 -0
- package/dist/models/update-organization-member-role.d.ts +29 -0
- package/dist/models/update-organization-member-role.js +20 -0
- package/dist/models/update-organization-quota.d.ts +84 -0
- package/dist/models/update-organization-quota.js +15 -0
- package/dist/models/update-organization-role.d.ts +45 -0
- package/dist/models/update-organization-role.js +24 -0
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +30 -0
- package/dist/models/user-public-key.js +15 -0
- package/dist/models/user.d.ts +43 -0
- package/dist/models/user.js +15 -0
- 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 +36 -22
- package/models/api-key-response.ts +37 -22
- 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 +24 -10
- 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 +53 -0
- package/models/create-organization-quota.ts +87 -0
- package/models/create-organization-role.ts +51 -0
- package/models/create-organization.ts +93 -0
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +41 -81
- 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 -54
- 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 +108 -0
- package/models/organization-role.ts +75 -0
- package/models/organization-user.ts +80 -0
- package/models/organization.ts +57 -0
- 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 +27 -0
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +47 -0
- package/models/update-organization-member-role.ts +35 -0
- package/models/update-organization-quota.ts +87 -0
- package/models/update-organization-role.ts +51 -0
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +33 -0
- package/models/user.ts +49 -0
- 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/dist/esm/models/update-user-quota-dto.d.ts +0 -84
- package/dist/models/update-user-quota-dto.d.ts +0 -84
- package/git_push.sh +0 -57
- package/models/update-user-quota-dto.ts +0 -90
- /package/dist/esm/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
- /package/dist/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Workspaces
|
|
3
|
+
* Daytona Workspaces API Docs
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
/**
|
|
16
|
+
* PreviewApi - axios parameter creator
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const PreviewApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @summary Check if user has access to the workspace
|
|
23
|
+
* @param {string} workspaceId
|
|
24
|
+
* @param {*} [options] Override http request option.
|
|
25
|
+
* @throws {RequiredError}
|
|
26
|
+
*/
|
|
27
|
+
hasWorkspaceAccess: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Check if workspace auth token is valid
|
|
31
|
+
* @param {string} workspaceId ID of the workspace
|
|
32
|
+
* @param {string} authToken Auth token of the workspace
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
isValidAuthToken: (workspaceId: string, authToken: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Check if workspace is public
|
|
40
|
+
* @param {string} workspaceId ID of the workspace
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
isWorkspacePublic: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* PreviewApi - functional programming interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const PreviewApiFp: (configuration?: Configuration) => {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @summary Check if user has access to the workspace
|
|
54
|
+
* @param {string} workspaceId
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
hasWorkspaceAccess(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @summary Check if workspace auth token is valid
|
|
62
|
+
* @param {string} workspaceId ID of the workspace
|
|
63
|
+
* @param {string} authToken Auth token of the workspace
|
|
64
|
+
* @param {*} [options] Override http request option.
|
|
65
|
+
* @throws {RequiredError}
|
|
66
|
+
*/
|
|
67
|
+
isValidAuthToken(workspaceId: string, authToken: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Check if workspace is public
|
|
71
|
+
* @param {string} workspaceId ID of the workspace
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
isWorkspacePublic(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* PreviewApi - factory interface
|
|
79
|
+
* @export
|
|
80
|
+
*/
|
|
81
|
+
export declare const PreviewApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Check if user has access to the workspace
|
|
85
|
+
* @param {string} workspaceId
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
hasWorkspaceAccess(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary Check if workspace auth token is valid
|
|
93
|
+
* @param {string} workspaceId ID of the workspace
|
|
94
|
+
* @param {string} authToken Auth token of the workspace
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
isValidAuthToken(workspaceId: string, authToken: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary Check if workspace is public
|
|
102
|
+
* @param {string} workspaceId ID of the workspace
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
isWorkspacePublic(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* PreviewApi - object-oriented interface
|
|
110
|
+
* @export
|
|
111
|
+
* @class PreviewApi
|
|
112
|
+
* @extends {BaseAPI}
|
|
113
|
+
*/
|
|
114
|
+
export declare class PreviewApi extends BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @summary Check if user has access to the workspace
|
|
118
|
+
* @param {string} workspaceId
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof PreviewApi
|
|
122
|
+
*/
|
|
123
|
+
hasWorkspaceAccess(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary Check if workspace auth token is valid
|
|
127
|
+
* @param {string} workspaceId ID of the workspace
|
|
128
|
+
* @param {string} authToken Auth token of the workspace
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
* @memberof PreviewApi
|
|
132
|
+
*/
|
|
133
|
+
isValidAuthToken(workspaceId: string, authToken: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @summary Check if workspace is public
|
|
137
|
+
* @param {string} workspaceId ID of the workspace
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
* @memberof PreviewApi
|
|
141
|
+
*/
|
|
142
|
+
isWorkspacePublic(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
143
|
+
}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Workspaces
|
|
6
|
+
* Daytona Workspaces API Docs
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PreviewApi = exports.PreviewApiFactory = exports.PreviewApiFp = exports.PreviewApiAxiosParamCreator = void 0;
|
|
17
|
+
const axios_1 = require("axios");
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
const common_1 = require("../common");
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
/**
|
|
24
|
+
* PreviewApi - axios parameter creator
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
const PreviewApiAxiosParamCreator = function (configuration) {
|
|
28
|
+
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Check if user has access to the workspace
|
|
32
|
+
* @param {string} workspaceId
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
hasWorkspaceAccess: async (workspaceId, options = {}) => {
|
|
37
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
38
|
+
(0, common_1.assertParamExists)('hasWorkspaceAccess', 'workspaceId', workspaceId);
|
|
39
|
+
const localVarPath = `/preview/{workspaceId}/access`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
40
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
42
|
+
let baseOptions;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
baseOptions = configuration.baseOptions;
|
|
45
|
+
}
|
|
46
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
47
|
+
const localVarHeaderParameter = {};
|
|
48
|
+
const localVarQueryParameter = {};
|
|
49
|
+
// authentication oauth2 required
|
|
50
|
+
// oauth required
|
|
51
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
52
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
53
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
55
|
+
return {
|
|
56
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
57
|
+
options: localVarRequestOptions,
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @summary Check if workspace auth token is valid
|
|
63
|
+
* @param {string} workspaceId ID of the workspace
|
|
64
|
+
* @param {string} authToken Auth token of the workspace
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
isValidAuthToken: async (workspaceId, authToken, options = {}) => {
|
|
69
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
70
|
+
(0, common_1.assertParamExists)('isValidAuthToken', 'workspaceId', workspaceId);
|
|
71
|
+
// verify required parameter 'authToken' is not null or undefined
|
|
72
|
+
(0, common_1.assertParamExists)('isValidAuthToken', 'authToken', authToken);
|
|
73
|
+
const localVarPath = `/preview/{workspaceId}/validate/{authToken}`
|
|
74
|
+
.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)))
|
|
75
|
+
.replace(`{${'authToken'}}`, encodeURIComponent(String(authToken)));
|
|
76
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
77
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
78
|
+
let baseOptions;
|
|
79
|
+
if (configuration) {
|
|
80
|
+
baseOptions = configuration.baseOptions;
|
|
81
|
+
}
|
|
82
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
83
|
+
const localVarHeaderParameter = {};
|
|
84
|
+
const localVarQueryParameter = {};
|
|
85
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
86
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
87
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
88
|
+
return {
|
|
89
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
90
|
+
options: localVarRequestOptions,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @summary Check if workspace is public
|
|
96
|
+
* @param {string} workspaceId ID of the workspace
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
isWorkspacePublic: async (workspaceId, options = {}) => {
|
|
101
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
102
|
+
(0, common_1.assertParamExists)('isWorkspacePublic', 'workspaceId', workspaceId);
|
|
103
|
+
const localVarPath = `/preview/{workspaceId}/public`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
}
|
|
110
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
111
|
+
const localVarHeaderParameter = {};
|
|
112
|
+
const localVarQueryParameter = {};
|
|
113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
116
|
+
return {
|
|
117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
118
|
+
options: localVarRequestOptions,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
exports.PreviewApiAxiosParamCreator = PreviewApiAxiosParamCreator;
|
|
124
|
+
/**
|
|
125
|
+
* PreviewApi - functional programming interface
|
|
126
|
+
* @export
|
|
127
|
+
*/
|
|
128
|
+
const PreviewApiFp = function (configuration) {
|
|
129
|
+
const localVarAxiosParamCreator = (0, exports.PreviewApiAxiosParamCreator)(configuration);
|
|
130
|
+
return {
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @summary Check if user has access to the workspace
|
|
134
|
+
* @param {string} workspaceId
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
*/
|
|
138
|
+
async hasWorkspaceAccess(workspaceId, options) {
|
|
139
|
+
var _a, _b, _c;
|
|
140
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.hasWorkspaceAccess(workspaceId, options);
|
|
141
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
142
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.hasWorkspaceAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
143
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
144
|
+
},
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
* @summary Check if workspace auth token is valid
|
|
148
|
+
* @param {string} workspaceId ID of the workspace
|
|
149
|
+
* @param {string} authToken Auth token of the workspace
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
async isValidAuthToken(workspaceId, authToken, options) {
|
|
154
|
+
var _a, _b, _c;
|
|
155
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.isValidAuthToken(workspaceId, authToken, options);
|
|
156
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
157
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isValidAuthToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
158
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary Check if workspace is public
|
|
163
|
+
* @param {string} workspaceId ID of the workspace
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
async isWorkspacePublic(workspaceId, options) {
|
|
168
|
+
var _a, _b, _c;
|
|
169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.isWorkspacePublic(workspaceId, options);
|
|
170
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
171
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isWorkspacePublic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
172
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
exports.PreviewApiFp = PreviewApiFp;
|
|
177
|
+
/**
|
|
178
|
+
* PreviewApi - factory interface
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
const PreviewApiFactory = function (configuration, basePath, axios) {
|
|
182
|
+
const localVarFp = (0, exports.PreviewApiFp)(configuration);
|
|
183
|
+
return {
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @summary Check if user has access to the workspace
|
|
187
|
+
* @param {string} workspaceId
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
hasWorkspaceAccess(workspaceId, options) {
|
|
192
|
+
return localVarFp.hasWorkspaceAccess(workspaceId, options).then((request) => request(axios, basePath));
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
*
|
|
196
|
+
* @summary Check if workspace auth token is valid
|
|
197
|
+
* @param {string} workspaceId ID of the workspace
|
|
198
|
+
* @param {string} authToken Auth token of the workspace
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
isValidAuthToken(workspaceId, authToken, options) {
|
|
203
|
+
return localVarFp.isValidAuthToken(workspaceId, authToken, options).then((request) => request(axios, basePath));
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
*
|
|
207
|
+
* @summary Check if workspace is public
|
|
208
|
+
* @param {string} workspaceId ID of the workspace
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
isWorkspacePublic(workspaceId, options) {
|
|
213
|
+
return localVarFp.isWorkspacePublic(workspaceId, options).then((request) => request(axios, basePath));
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
exports.PreviewApiFactory = PreviewApiFactory;
|
|
218
|
+
/**
|
|
219
|
+
* PreviewApi - object-oriented interface
|
|
220
|
+
* @export
|
|
221
|
+
* @class PreviewApi
|
|
222
|
+
* @extends {BaseAPI}
|
|
223
|
+
*/
|
|
224
|
+
class PreviewApi extends base_1.BaseAPI {
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Check if user has access to the workspace
|
|
228
|
+
* @param {string} workspaceId
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
* @memberof PreviewApi
|
|
232
|
+
*/
|
|
233
|
+
hasWorkspaceAccess(workspaceId, options) {
|
|
234
|
+
return (0, exports.PreviewApiFp)(this.configuration)
|
|
235
|
+
.hasWorkspaceAccess(workspaceId, options)
|
|
236
|
+
.then((request) => request(this.axios, this.basePath));
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @summary Check if workspace auth token is valid
|
|
241
|
+
* @param {string} workspaceId ID of the workspace
|
|
242
|
+
* @param {string} authToken Auth token of the workspace
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
* @memberof PreviewApi
|
|
246
|
+
*/
|
|
247
|
+
isValidAuthToken(workspaceId, authToken, options) {
|
|
248
|
+
return (0, exports.PreviewApiFp)(this.configuration)
|
|
249
|
+
.isValidAuthToken(workspaceId, authToken, options)
|
|
250
|
+
.then((request) => request(this.axios, this.basePath));
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @summary Check if workspace is public
|
|
255
|
+
* @param {string} workspaceId ID of the workspace
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
* @memberof PreviewApi
|
|
259
|
+
*/
|
|
260
|
+
isWorkspacePublic(workspaceId, options) {
|
|
261
|
+
return (0, exports.PreviewApiFp)(this.configuration)
|
|
262
|
+
.isWorkspacePublic(workspaceId, options)
|
|
263
|
+
.then((request) => request(this.axios, this.basePath));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
exports.PreviewApi = PreviewApi;
|