@daytonaio/sdk 0.7.1
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/LICENCE +43 -0
- package/README.md +181 -0
- package/dist/Daytona.d.ts +106 -0
- package/dist/Daytona.js +141 -0
- package/dist/FileSystem.d.ts +97 -0
- package/dist/FileSystem.js +126 -0
- package/dist/Git.d.ts +67 -0
- package/dist/Git.js +109 -0
- package/dist/LspServer.d.ts +68 -0
- package/dist/LspServer.js +93 -0
- package/dist/Process.d.ts +54 -0
- package/dist/Process.js +84 -0
- package/dist/Workspace.d.ts +53 -0
- package/dist/Workspace.js +51 -0
- package/dist/client/apis/ApiKeyApi.d.ts +54 -0
- package/dist/client/apis/ApiKeyApi.js +135 -0
- package/dist/client/apis/BuildApi.d.ts +95 -0
- package/dist/client/apis/BuildApi.js +228 -0
- package/dist/client/apis/ContainerRegistryApi.d.ts +68 -0
- package/dist/client/apis/ContainerRegistryApi.js +163 -0
- package/dist/client/apis/DefaultApi.d.ts +31 -0
- package/dist/client/apis/DefaultApi.js +72 -0
- package/dist/client/apis/GitProviderApi.d.ts +197 -0
- package/dist/client/apis/GitProviderApi.js +477 -0
- package/dist/client/apis/PrebuildApi.d.ts +97 -0
- package/dist/client/apis/PrebuildApi.js +241 -0
- package/dist/client/apis/ProfileApi.d.ts +51 -0
- package/dist/client/apis/ProfileApi.js +128 -0
- package/dist/client/apis/ProjectConfigApi.d.ts +94 -0
- package/dist/client/apis/ProjectConfigApi.js +220 -0
- package/dist/client/apis/ProviderApi.d.ts +71 -0
- package/dist/client/apis/ProviderApi.js +160 -0
- package/dist/client/apis/SampleApi.d.ts +28 -0
- package/dist/client/apis/SampleApi.js +73 -0
- package/dist/client/apis/ServerApi.d.ts +61 -0
- package/dist/client/apis/ServerApi.js +156 -0
- package/dist/client/apis/TargetApi.d.ts +67 -0
- package/dist/client/apis/TargetApi.js +159 -0
- package/dist/client/apis/WorkspaceApi.d.ts +141 -0
- package/dist/client/apis/WorkspaceApi.js +330 -0
- package/dist/client/apis/WorkspaceToolboxApi.d.ts +464 -0
- package/dist/client/apis/WorkspaceToolboxApi.js +1248 -0
- package/dist/client/apis/index.d.ts +14 -0
- package/dist/client/apis/index.js +32 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +21 -0
- package/dist/client/models/ApiKey.d.ts +45 -0
- package/dist/client/models/ApiKey.js +60 -0
- package/dist/client/models/ApikeyApiKeyType.d.ts +26 -0
- package/dist/client/models/ApikeyApiKeyType.js +52 -0
- package/dist/client/models/Build.d.ts +98 -0
- package/dist/client/models/Build.js +91 -0
- package/dist/client/models/BuildBuildState.d.ts +31 -0
- package/dist/client/models/BuildBuildState.js +57 -0
- package/dist/client/models/BuildConfig.d.ts +40 -0
- package/dist/client/models/BuildConfig.js +57 -0
- package/dist/client/models/CachedBuild.d.ts +38 -0
- package/dist/client/models/CachedBuild.js +55 -0
- package/dist/client/models/CloneTarget.d.ts +25 -0
- package/dist/client/models/CloneTarget.js +51 -0
- package/dist/client/models/CompletionContext.d.ts +38 -0
- package/dist/client/models/CompletionContext.js +53 -0
- package/dist/client/models/CompletionItem.d.ts +68 -0
- package/dist/client/models/CompletionItem.js +63 -0
- package/dist/client/models/CompletionList.d.ts +39 -0
- package/dist/client/models/CompletionList.js +56 -0
- package/dist/client/models/ContainerConfig.d.ts +38 -0
- package/dist/client/models/ContainerConfig.js +55 -0
- package/dist/client/models/ContainerRegistry.d.ts +44 -0
- package/dist/client/models/ContainerRegistry.js +59 -0
- package/dist/client/models/CreateBuildDTO.d.ts +52 -0
- package/dist/client/models/CreateBuildDTO.js +62 -0
- package/dist/client/models/CreatePrebuildDTO.d.ts +56 -0
- package/dist/client/models/CreatePrebuildDTO.js +59 -0
- package/dist/client/models/CreateProjectConfigDTO.d.ts +71 -0
- package/dist/client/models/CreateProjectConfigDTO.js +72 -0
- package/dist/client/models/CreateProjectDTO.d.ts +72 -0
- package/dist/client/models/CreateProjectDTO.js +73 -0
- package/dist/client/models/CreateProjectSourceDTO.d.ts +33 -0
- package/dist/client/models/CreateProjectSourceDTO.js +52 -0
- package/dist/client/models/CreateProviderTargetDTO.d.ts +45 -0
- package/dist/client/models/CreateProviderTargetDTO.js +60 -0
- package/dist/client/models/CreateWorkspaceDTO.d.ts +51 -0
- package/dist/client/models/CreateWorkspaceDTO.js +64 -0
- package/dist/client/models/DevcontainerConfig.d.ts +32 -0
- package/dist/client/models/DevcontainerConfig.js +51 -0
- package/dist/client/models/ExecuteRequest.d.ts +38 -0
- package/dist/client/models/ExecuteRequest.js +53 -0
- package/dist/client/models/ExecuteResponse.d.ts +38 -0
- package/dist/client/models/ExecuteResponse.js +55 -0
- package/dist/client/models/FRPSConfig.d.ts +44 -0
- package/dist/client/models/FRPSConfig.js +59 -0
- package/dist/client/models/FileInfo.d.ts +74 -0
- package/dist/client/models/FileInfo.js +79 -0
- package/dist/client/models/FileStatus.d.ts +51 -0
- package/dist/client/models/FileStatus.js +64 -0
- package/dist/client/models/GetRepositoryContext.d.ts +80 -0
- package/dist/client/models/GetRepositoryContext.js +67 -0
- package/dist/client/models/GitAddRequest.d.ts +38 -0
- package/dist/client/models/GitAddRequest.js +55 -0
- package/dist/client/models/GitBranch.d.ts +38 -0
- package/dist/client/models/GitBranch.js +55 -0
- package/dist/client/models/GitBranchRequest.d.ts +38 -0
- package/dist/client/models/GitBranchRequest.js +55 -0
- package/dist/client/models/GitCloneRequest.d.ts +62 -0
- package/dist/client/models/GitCloneRequest.js +63 -0
- package/dist/client/models/GitCommitInfo.d.ts +56 -0
- package/dist/client/models/GitCommitInfo.js +67 -0
- package/dist/client/models/GitCommitRequest.d.ts +50 -0
- package/dist/client/models/GitCommitRequest.js +63 -0
- package/dist/client/models/GitCommitResponse.d.ts +32 -0
- package/dist/client/models/GitCommitResponse.js +51 -0
- package/dist/client/models/GitNamespace.d.ts +38 -0
- package/dist/client/models/GitNamespace.js +55 -0
- package/dist/client/models/GitProvider.d.ts +75 -0
- package/dist/client/models/GitProvider.js +76 -0
- package/dist/client/models/GitPullRequest.d.ts +68 -0
- package/dist/client/models/GitPullRequest.js +75 -0
- package/dist/client/models/GitRepoRequest.d.ts +44 -0
- package/dist/client/models/GitRepoRequest.js +55 -0
- package/dist/client/models/GitRepository.d.ts +87 -0
- package/dist/client/models/GitRepository.js +84 -0
- package/dist/client/models/GitStatus.d.ts +57 -0
- package/dist/client/models/GitStatus.js +62 -0
- package/dist/client/models/GitUser.d.ts +50 -0
- package/dist/client/models/GitUser.js +63 -0
- package/dist/client/models/InstallProviderRequest.d.ts +40 -0
- package/dist/client/models/InstallProviderRequest.js +55 -0
- package/dist/client/models/ListBranchResponse.d.ts +32 -0
- package/dist/client/models/ListBranchResponse.js +51 -0
- package/dist/client/models/LogFileConfig.d.ts +62 -0
- package/dist/client/models/LogFileConfig.js +67 -0
- package/dist/client/models/LspCompletionParams.d.ts +58 -0
- package/dist/client/models/LspCompletionParams.js +69 -0
- package/dist/client/models/LspDocumentRequest.d.ts +44 -0
- package/dist/client/models/LspDocumentRequest.js +59 -0
- package/dist/client/models/LspLocation.d.ts +39 -0
- package/dist/client/models/LspLocation.js +56 -0
- package/dist/client/models/LspPosition.d.ts +38 -0
- package/dist/client/models/LspPosition.js +55 -0
- package/dist/client/models/LspRange.d.ts +39 -0
- package/dist/client/models/LspRange.js +56 -0
- package/dist/client/models/LspServerRequest.d.ts +38 -0
- package/dist/client/models/LspServerRequest.js +55 -0
- package/dist/client/models/LspSymbol.d.ts +45 -0
- package/dist/client/models/LspSymbol.js +60 -0
- package/dist/client/models/Match.d.ts +44 -0
- package/dist/client/models/Match.js +59 -0
- package/dist/client/models/NetworkKey.d.ts +32 -0
- package/dist/client/models/NetworkKey.js +51 -0
- package/dist/client/models/Position.d.ts +38 -0
- package/dist/client/models/Position.js +55 -0
- package/dist/client/models/PrebuildConfig.d.ts +56 -0
- package/dist/client/models/PrebuildConfig.js +67 -0
- package/dist/client/models/PrebuildDTO.d.ts +62 -0
- package/dist/client/models/PrebuildDTO.js +68 -0
- package/dist/client/models/ProfileData.d.ts +34 -0
- package/dist/client/models/ProfileData.js +51 -0
- package/dist/client/models/Project.d.ts +91 -0
- package/dist/client/models/Project.js +88 -0
- package/dist/client/models/ProjectConfig.d.ts +84 -0
- package/dist/client/models/ProjectConfig.js +87 -0
- package/dist/client/models/ProjectDirResponse.d.ts +32 -0
- package/dist/client/models/ProjectDirResponse.js +49 -0
- package/dist/client/models/ProjectInfo.d.ts +56 -0
- package/dist/client/models/ProjectInfo.js +65 -0
- package/dist/client/models/ProjectState.d.ts +45 -0
- package/dist/client/models/ProjectState.js +60 -0
- package/dist/client/models/Provider.d.ts +44 -0
- package/dist/client/models/Provider.js +57 -0
- package/dist/client/models/ProviderProviderInfo.d.ts +44 -0
- package/dist/client/models/ProviderProviderInfo.js +57 -0
- package/dist/client/models/ProviderProviderTargetProperty.d.ts +72 -0
- package/dist/client/models/ProviderProviderTargetProperty.js +64 -0
- package/dist/client/models/ProviderProviderTargetPropertyType.d.ts +29 -0
- package/dist/client/models/ProviderProviderTargetPropertyType.js +55 -0
- package/dist/client/models/ProviderTarget.d.ts +51 -0
- package/dist/client/models/ProviderTarget.js +64 -0
- package/dist/client/models/ReplaceRequest.d.ts +44 -0
- package/dist/client/models/ReplaceRequest.js +59 -0
- package/dist/client/models/ReplaceResult.d.ts +44 -0
- package/dist/client/models/ReplaceResult.js +53 -0
- package/dist/client/models/RepositoryUrl.d.ts +32 -0
- package/dist/client/models/RepositoryUrl.js +51 -0
- package/dist/client/models/Sample.d.ts +44 -0
- package/dist/client/models/Sample.js +59 -0
- package/dist/client/models/SearchFilesResponse.d.ts +32 -0
- package/dist/client/models/SearchFilesResponse.js +51 -0
- package/dist/client/models/ServerConfig.d.ts +130 -0
- package/dist/client/models/ServerConfig.js +119 -0
- package/dist/client/models/SetGitProviderConfig.d.ts +75 -0
- package/dist/client/models/SetGitProviderConfig.js +70 -0
- package/dist/client/models/SetProjectState.d.ts +39 -0
- package/dist/client/models/SetProjectState.js +56 -0
- package/dist/client/models/SigningMethod.d.ts +25 -0
- package/dist/client/models/SigningMethod.js +51 -0
- package/dist/client/models/Status.d.ts +31 -0
- package/dist/client/models/Status.js +57 -0
- package/dist/client/models/Workspace.d.ts +51 -0
- package/dist/client/models/Workspace.js +64 -0
- package/dist/client/models/WorkspaceDTO.d.ts +58 -0
- package/dist/client/models/WorkspaceDTO.js +67 -0
- package/dist/client/models/WorkspaceInfo.d.ts +45 -0
- package/dist/client/models/WorkspaceInfo.js +58 -0
- package/dist/client/models/index.d.ts +79 -0
- package/dist/client/models/index.js +97 -0
- package/dist/client/runtime.d.ts +182 -0
- package/dist/client/runtime.js +340 -0
- package/dist/code-toolbox/WorkspacePythonCodeToolbox.d.ts +5 -0
- package/dist/code-toolbox/WorkspacePythonCodeToolbox.js +13 -0
- package/dist/code-toolbox/WorkspaceTsCodeToolbox.d.ts +5 -0
- package/dist/code-toolbox/WorkspaceTsCodeToolbox.js +13 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +13 -0
- package/package.json +42 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Server API
|
|
6
|
+
* Daytona Server API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PrebuildApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const index_1 = require("../models/index");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class PrebuildApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Delete prebuild
|
|
48
|
+
* Delete prebuild
|
|
49
|
+
*/
|
|
50
|
+
async deletePrebuildRaw(requestParameters, initOverrides) {
|
|
51
|
+
if (requestParameters['configName'] == null) {
|
|
52
|
+
throw new runtime.RequiredError('configName', 'Required parameter "configName" was null or undefined when calling deletePrebuild().');
|
|
53
|
+
}
|
|
54
|
+
if (requestParameters['prebuildId'] == null) {
|
|
55
|
+
throw new runtime.RequiredError('prebuildId', 'Required parameter "prebuildId" was null or undefined when calling deletePrebuild().');
|
|
56
|
+
}
|
|
57
|
+
const queryParameters = {};
|
|
58
|
+
if (requestParameters['force'] != null) {
|
|
59
|
+
queryParameters['force'] = requestParameters['force'];
|
|
60
|
+
}
|
|
61
|
+
const headerParameters = {};
|
|
62
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
64
|
+
}
|
|
65
|
+
const response = await this.request({
|
|
66
|
+
path: `/project-config/{configName}/prebuild/{prebuildId}`
|
|
67
|
+
.replace(`{${'configName'}}`, encodeURIComponent(String(requestParameters['configName'])))
|
|
68
|
+
.replace(`{${'prebuildId'}}`, encodeURIComponent(String(requestParameters['prebuildId']))),
|
|
69
|
+
method: 'DELETE',
|
|
70
|
+
headers: headerParameters,
|
|
71
|
+
query: queryParameters,
|
|
72
|
+
}, initOverrides);
|
|
73
|
+
return new runtime.VoidApiResponse(response);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete prebuild
|
|
77
|
+
* Delete prebuild
|
|
78
|
+
*/
|
|
79
|
+
async deletePrebuild(requestParameters, initOverrides) {
|
|
80
|
+
await this.deletePrebuildRaw(requestParameters, initOverrides);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get prebuild
|
|
84
|
+
* Get prebuild
|
|
85
|
+
*/
|
|
86
|
+
async getPrebuildRaw(requestParameters, initOverrides) {
|
|
87
|
+
if (requestParameters['configName'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('configName', 'Required parameter "configName" was null or undefined when calling getPrebuild().');
|
|
89
|
+
}
|
|
90
|
+
if (requestParameters['prebuildId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('prebuildId', 'Required parameter "prebuildId" was null or undefined when calling getPrebuild().');
|
|
92
|
+
}
|
|
93
|
+
const queryParameters = {};
|
|
94
|
+
const headerParameters = {};
|
|
95
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
96
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
97
|
+
}
|
|
98
|
+
const response = await this.request({
|
|
99
|
+
path: `/project-config/{configName}/prebuild/{prebuildId}`
|
|
100
|
+
.replace(`{${'configName'}}`, encodeURIComponent(String(requestParameters['configName'])))
|
|
101
|
+
.replace(`{${'prebuildId'}}`, encodeURIComponent(String(requestParameters['prebuildId']))),
|
|
102
|
+
method: 'GET',
|
|
103
|
+
headers: headerParameters,
|
|
104
|
+
query: queryParameters,
|
|
105
|
+
}, initOverrides);
|
|
106
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PrebuildDTOFromJSON)(jsonValue));
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get prebuild
|
|
110
|
+
* Get prebuild
|
|
111
|
+
*/
|
|
112
|
+
async getPrebuild(requestParameters, initOverrides) {
|
|
113
|
+
const response = await this.getPrebuildRaw(requestParameters, initOverrides);
|
|
114
|
+
return await response.value();
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* List prebuilds
|
|
118
|
+
* List prebuilds
|
|
119
|
+
*/
|
|
120
|
+
async listPrebuildsRaw(initOverrides) {
|
|
121
|
+
const queryParameters = {};
|
|
122
|
+
const headerParameters = {};
|
|
123
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
124
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
125
|
+
}
|
|
126
|
+
const response = await this.request({
|
|
127
|
+
path: `/project-config/prebuild`,
|
|
128
|
+
method: 'GET',
|
|
129
|
+
headers: headerParameters,
|
|
130
|
+
query: queryParameters,
|
|
131
|
+
}, initOverrides);
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.PrebuildDTOFromJSON));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* List prebuilds
|
|
136
|
+
* List prebuilds
|
|
137
|
+
*/
|
|
138
|
+
async listPrebuilds(initOverrides) {
|
|
139
|
+
const response = await this.listPrebuildsRaw(initOverrides);
|
|
140
|
+
return await response.value();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* List prebuilds for project config
|
|
144
|
+
* List prebuilds for project config
|
|
145
|
+
*/
|
|
146
|
+
async listPrebuildsForProjectConfigRaw(requestParameters, initOverrides) {
|
|
147
|
+
if (requestParameters['configName'] == null) {
|
|
148
|
+
throw new runtime.RequiredError('configName', 'Required parameter "configName" was null or undefined when calling listPrebuildsForProjectConfig().');
|
|
149
|
+
}
|
|
150
|
+
const queryParameters = {};
|
|
151
|
+
const headerParameters = {};
|
|
152
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
153
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
154
|
+
}
|
|
155
|
+
const response = await this.request({
|
|
156
|
+
path: `/project-config/{configName}/prebuild`.replace(`{${'configName'}}`, encodeURIComponent(String(requestParameters['configName']))),
|
|
157
|
+
method: 'GET',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
}, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.PrebuildDTOFromJSON));
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* List prebuilds for project config
|
|
165
|
+
* List prebuilds for project config
|
|
166
|
+
*/
|
|
167
|
+
async listPrebuildsForProjectConfig(requestParameters, initOverrides) {
|
|
168
|
+
const response = await this.listPrebuildsForProjectConfigRaw(requestParameters, initOverrides);
|
|
169
|
+
return await response.value();
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* ProcessGitEvent
|
|
173
|
+
* ProcessGitEvent
|
|
174
|
+
*/
|
|
175
|
+
async processGitEventRaw(requestParameters, initOverrides) {
|
|
176
|
+
if (requestParameters['workspace'] == null) {
|
|
177
|
+
throw new runtime.RequiredError('workspace', 'Required parameter "workspace" was null or undefined when calling processGitEvent().');
|
|
178
|
+
}
|
|
179
|
+
const queryParameters = {};
|
|
180
|
+
const headerParameters = {};
|
|
181
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
182
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
183
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
184
|
+
}
|
|
185
|
+
const response = await this.request({
|
|
186
|
+
path: `/project-config/prebuild/process-git-event`,
|
|
187
|
+
method: 'POST',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
body: requestParameters['workspace'],
|
|
191
|
+
}, initOverrides);
|
|
192
|
+
return new runtime.VoidApiResponse(response);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* ProcessGitEvent
|
|
196
|
+
* ProcessGitEvent
|
|
197
|
+
*/
|
|
198
|
+
async processGitEvent(requestParameters, initOverrides) {
|
|
199
|
+
await this.processGitEventRaw(requestParameters, initOverrides);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Set prebuild
|
|
203
|
+
* Set prebuild
|
|
204
|
+
*/
|
|
205
|
+
async setPrebuildRaw(requestParameters, initOverrides) {
|
|
206
|
+
if (requestParameters['configName'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('configName', 'Required parameter "configName" was null or undefined when calling setPrebuild().');
|
|
208
|
+
}
|
|
209
|
+
if (requestParameters['prebuild'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('prebuild', 'Required parameter "prebuild" was null or undefined when calling setPrebuild().');
|
|
211
|
+
}
|
|
212
|
+
const queryParameters = {};
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
215
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
216
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
217
|
+
}
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: `/project-config/{configName}/prebuild`.replace(`{${'configName'}}`, encodeURIComponent(String(requestParameters['configName']))),
|
|
220
|
+
method: 'PUT',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
body: (0, index_1.CreatePrebuildDTOToJSON)(requestParameters['prebuild']),
|
|
224
|
+
}, initOverrides);
|
|
225
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
226
|
+
return new runtime.JSONApiResponse(response);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
return new runtime.TextApiResponse(response);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Set prebuild
|
|
234
|
+
* Set prebuild
|
|
235
|
+
*/
|
|
236
|
+
async setPrebuild(requestParameters, initOverrides) {
|
|
237
|
+
const response = await this.setPrebuildRaw(requestParameters, initOverrides);
|
|
238
|
+
return await response.value();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
exports.PrebuildApi = PrebuildApi;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Server API
|
|
3
|
+
* Daytona Server API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ProfileData } from '../models/index';
|
|
14
|
+
export interface SetProfileDataRequest {
|
|
15
|
+
profileData: ProfileData;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class ProfileApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Delete profile data
|
|
23
|
+
* Delete profile data
|
|
24
|
+
*/
|
|
25
|
+
deleteProfileDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete profile data
|
|
28
|
+
* Delete profile data
|
|
29
|
+
*/
|
|
30
|
+
deleteProfileData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Get profile data
|
|
33
|
+
* Get profile data
|
|
34
|
+
*/
|
|
35
|
+
getProfileDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProfileData>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get profile data
|
|
38
|
+
* Get profile data
|
|
39
|
+
*/
|
|
40
|
+
getProfileData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProfileData>;
|
|
41
|
+
/**
|
|
42
|
+
* Set profile data
|
|
43
|
+
* Set profile data
|
|
44
|
+
*/
|
|
45
|
+
setProfileDataRaw(requestParameters: SetProfileDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
46
|
+
/**
|
|
47
|
+
* Set profile data
|
|
48
|
+
* Set profile data
|
|
49
|
+
*/
|
|
50
|
+
setProfileData(requestParameters: SetProfileDataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Daytona Server API
|
|
6
|
+
* Daytona Server API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ProfileApi = void 0;
|
|
40
|
+
const runtime = __importStar(require("../runtime"));
|
|
41
|
+
const index_1 = require("../models/index");
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
class ProfileApi extends runtime.BaseAPI {
|
|
46
|
+
/**
|
|
47
|
+
* Delete profile data
|
|
48
|
+
* Delete profile data
|
|
49
|
+
*/
|
|
50
|
+
async deleteProfileDataRaw(initOverrides) {
|
|
51
|
+
const queryParameters = {};
|
|
52
|
+
const headerParameters = {};
|
|
53
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
54
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
55
|
+
}
|
|
56
|
+
const response = await this.request({
|
|
57
|
+
path: `/profile`,
|
|
58
|
+
method: 'DELETE',
|
|
59
|
+
headers: headerParameters,
|
|
60
|
+
query: queryParameters,
|
|
61
|
+
}, initOverrides);
|
|
62
|
+
return new runtime.VoidApiResponse(response);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Delete profile data
|
|
66
|
+
* Delete profile data
|
|
67
|
+
*/
|
|
68
|
+
async deleteProfileData(initOverrides) {
|
|
69
|
+
await this.deleteProfileDataRaw(initOverrides);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Get profile data
|
|
73
|
+
* Get profile data
|
|
74
|
+
*/
|
|
75
|
+
async getProfileDataRaw(initOverrides) {
|
|
76
|
+
const queryParameters = {};
|
|
77
|
+
const headerParameters = {};
|
|
78
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
79
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
80
|
+
}
|
|
81
|
+
const response = await this.request({
|
|
82
|
+
path: `/profile`,
|
|
83
|
+
method: 'GET',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
}, initOverrides);
|
|
87
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProfileDataFromJSON)(jsonValue));
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Get profile data
|
|
91
|
+
* Get profile data
|
|
92
|
+
*/
|
|
93
|
+
async getProfileData(initOverrides) {
|
|
94
|
+
const response = await this.getProfileDataRaw(initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Set profile data
|
|
99
|
+
* Set profile data
|
|
100
|
+
*/
|
|
101
|
+
async setProfileDataRaw(requestParameters, initOverrides) {
|
|
102
|
+
if (requestParameters['profileData'] == null) {
|
|
103
|
+
throw new runtime.RequiredError('profileData', 'Required parameter "profileData" was null or undefined when calling setProfileData().');
|
|
104
|
+
}
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
const headerParameters = {};
|
|
107
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
+
headerParameters['Authorization'] = await this.configuration.apiKey('Authorization'); // Bearer authentication
|
|
110
|
+
}
|
|
111
|
+
const response = await this.request({
|
|
112
|
+
path: `/profile`,
|
|
113
|
+
method: 'PUT',
|
|
114
|
+
headers: headerParameters,
|
|
115
|
+
query: queryParameters,
|
|
116
|
+
body: (0, index_1.ProfileDataToJSON)(requestParameters['profileData']),
|
|
117
|
+
}, initOverrides);
|
|
118
|
+
return new runtime.VoidApiResponse(response);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Set profile data
|
|
122
|
+
* Set profile data
|
|
123
|
+
*/
|
|
124
|
+
async setProfileData(requestParameters, initOverrides) {
|
|
125
|
+
await this.setProfileDataRaw(requestParameters, initOverrides);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.ProfileApi = ProfileApi;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daytona Server API
|
|
3
|
+
* Daytona Server API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0.0.0-dev
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { CreateProjectConfigDTO, ProjectConfig } from '../models/index';
|
|
14
|
+
export interface DeleteProjectConfigRequest {
|
|
15
|
+
configName: string;
|
|
16
|
+
force?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface GetDefaultProjectConfigRequest {
|
|
19
|
+
gitUrl: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetProjectConfigRequest {
|
|
22
|
+
configName: string;
|
|
23
|
+
}
|
|
24
|
+
export interface SetDefaultProjectConfigRequest {
|
|
25
|
+
configName: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SetProjectConfigRequest {
|
|
28
|
+
projectConfig: CreateProjectConfigDTO;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export declare class ProjectConfigApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Delete project config data
|
|
36
|
+
* Delete project config data
|
|
37
|
+
*/
|
|
38
|
+
deleteProjectConfigRaw(requestParameters: DeleteProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* Delete project config data
|
|
41
|
+
* Delete project config data
|
|
42
|
+
*/
|
|
43
|
+
deleteProjectConfig(requestParameters: DeleteProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Get project configs by git url
|
|
46
|
+
* Get project configs by git url
|
|
47
|
+
*/
|
|
48
|
+
getDefaultProjectConfigRaw(requestParameters: GetDefaultProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectConfig>>;
|
|
49
|
+
/**
|
|
50
|
+
* Get project configs by git url
|
|
51
|
+
* Get project configs by git url
|
|
52
|
+
*/
|
|
53
|
+
getDefaultProjectConfig(requestParameters: GetDefaultProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectConfig>;
|
|
54
|
+
/**
|
|
55
|
+
* Get project config data
|
|
56
|
+
* Get project config data
|
|
57
|
+
*/
|
|
58
|
+
getProjectConfigRaw(requestParameters: GetProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectConfig>>;
|
|
59
|
+
/**
|
|
60
|
+
* Get project config data
|
|
61
|
+
* Get project config data
|
|
62
|
+
*/
|
|
63
|
+
getProjectConfig(requestParameters: GetProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectConfig>;
|
|
64
|
+
/**
|
|
65
|
+
* List project configs
|
|
66
|
+
* List project configs
|
|
67
|
+
*/
|
|
68
|
+
listProjectConfigsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectConfig>>>;
|
|
69
|
+
/**
|
|
70
|
+
* List project configs
|
|
71
|
+
* List project configs
|
|
72
|
+
*/
|
|
73
|
+
listProjectConfigs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectConfig>>;
|
|
74
|
+
/**
|
|
75
|
+
* Set project config to default
|
|
76
|
+
* Set project config to default
|
|
77
|
+
*/
|
|
78
|
+
setDefaultProjectConfigRaw(requestParameters: SetDefaultProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Set project config to default
|
|
81
|
+
* Set project config to default
|
|
82
|
+
*/
|
|
83
|
+
setDefaultProjectConfig(requestParameters: SetDefaultProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Set project config data
|
|
86
|
+
* Set project config data
|
|
87
|
+
*/
|
|
88
|
+
setProjectConfigRaw(requestParameters: SetProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
89
|
+
/**
|
|
90
|
+
* Set project config data
|
|
91
|
+
* Set project config data
|
|
92
|
+
*/
|
|
93
|
+
setProjectConfig(requestParameters: SetProjectConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
94
|
+
}
|