@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,14 @@
|
|
|
1
|
+
export * from './ApiKeyApi';
|
|
2
|
+
export * from './BuildApi';
|
|
3
|
+
export * from './ContainerRegistryApi';
|
|
4
|
+
export * from './DefaultApi';
|
|
5
|
+
export * from './GitProviderApi';
|
|
6
|
+
export * from './PrebuildApi';
|
|
7
|
+
export * from './ProfileApi';
|
|
8
|
+
export * from './ProjectConfigApi';
|
|
9
|
+
export * from './ProviderApi';
|
|
10
|
+
export * from './SampleApi';
|
|
11
|
+
export * from './ServerApi';
|
|
12
|
+
export * from './TargetApi';
|
|
13
|
+
export * from './WorkspaceApi';
|
|
14
|
+
export * from './WorkspaceToolboxApi';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ApiKeyApi"), exports);
|
|
20
|
+
__exportStar(require("./BuildApi"), exports);
|
|
21
|
+
__exportStar(require("./ContainerRegistryApi"), exports);
|
|
22
|
+
__exportStar(require("./DefaultApi"), exports);
|
|
23
|
+
__exportStar(require("./GitProviderApi"), exports);
|
|
24
|
+
__exportStar(require("./PrebuildApi"), exports);
|
|
25
|
+
__exportStar(require("./ProfileApi"), exports);
|
|
26
|
+
__exportStar(require("./ProjectConfigApi"), exports);
|
|
27
|
+
__exportStar(require("./ProviderApi"), exports);
|
|
28
|
+
__exportStar(require("./SampleApi"), exports);
|
|
29
|
+
__exportStar(require("./ServerApi"), exports);
|
|
30
|
+
__exportStar(require("./TargetApi"), exports);
|
|
31
|
+
__exportStar(require("./WorkspaceApi"), exports);
|
|
32
|
+
__exportStar(require("./WorkspaceToolboxApi"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
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 type { ApikeyApiKeyType } from './ApikeyApiKeyType';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApiKey
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiKey {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ApiKey
|
|
23
|
+
*/
|
|
24
|
+
keyHash: string;
|
|
25
|
+
/**
|
|
26
|
+
* Project or client name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ApiKey
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ApikeyApiKeyType}
|
|
34
|
+
* @memberof ApiKey
|
|
35
|
+
*/
|
|
36
|
+
type: ApikeyApiKeyType;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ApiKey interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfApiKey(value: object): value is ApiKey;
|
|
42
|
+
export declare function ApiKeyFromJSON(json: any): ApiKey;
|
|
43
|
+
export declare function ApiKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKey;
|
|
44
|
+
export declare function ApiKeyToJSON(json: any): ApiKey;
|
|
45
|
+
export declare function ApiKeyToJSONTyped(value?: ApiKey | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiKeyToJSONTyped = exports.ApiKeyToJSON = exports.ApiKeyFromJSONTyped = exports.ApiKeyFromJSON = exports.instanceOfApiKey = void 0;
|
|
17
|
+
const ApikeyApiKeyType_1 = require("./ApikeyApiKeyType");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the ApiKey interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfApiKey(value) {
|
|
22
|
+
if (!('keyHash' in value) || value['keyHash'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfApiKey = instanceOfApiKey;
|
|
31
|
+
function ApiKeyFromJSON(json) {
|
|
32
|
+
return ApiKeyFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.ApiKeyFromJSON = ApiKeyFromJSON;
|
|
35
|
+
function ApiKeyFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
keyHash: json['keyHash'],
|
|
41
|
+
name: json['name'],
|
|
42
|
+
type: (0, ApikeyApiKeyType_1.ApikeyApiKeyTypeFromJSON)(json['type']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.ApiKeyFromJSONTyped = ApiKeyFromJSONTyped;
|
|
46
|
+
function ApiKeyToJSON(json) {
|
|
47
|
+
return ApiKeyToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
exports.ApiKeyToJSON = ApiKeyToJSON;
|
|
50
|
+
function ApiKeyToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
keyHash: value['keyHash'],
|
|
56
|
+
name: value['name'],
|
|
57
|
+
type: (0, ApikeyApiKeyType_1.ApikeyApiKeyTypeToJSON)(value['type']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.ApiKeyToJSONTyped = ApiKeyToJSONTyped;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ApikeyApiKeyType: {
|
|
17
|
+
readonly ApiKeyTypeClient: "client";
|
|
18
|
+
readonly ApiKeyTypeProject: "project";
|
|
19
|
+
readonly ApiKeyTypeWorkspace: "workspace";
|
|
20
|
+
};
|
|
21
|
+
export type ApikeyApiKeyType = (typeof ApikeyApiKeyType)[keyof typeof ApikeyApiKeyType];
|
|
22
|
+
export declare function instanceOfApikeyApiKeyType(value: any): boolean;
|
|
23
|
+
export declare function ApikeyApiKeyTypeFromJSON(json: any): ApikeyApiKeyType;
|
|
24
|
+
export declare function ApikeyApiKeyTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApikeyApiKeyType;
|
|
25
|
+
export declare function ApikeyApiKeyTypeToJSON(value?: ApikeyApiKeyType | null): any;
|
|
26
|
+
export declare function ApikeyApiKeyTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ApikeyApiKeyType;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApikeyApiKeyTypeToJSONTyped = exports.ApikeyApiKeyTypeToJSON = exports.ApikeyApiKeyTypeFromJSONTyped = exports.ApikeyApiKeyTypeFromJSON = exports.instanceOfApikeyApiKeyType = exports.ApikeyApiKeyType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.ApikeyApiKeyType = {
|
|
22
|
+
ApiKeyTypeClient: 'client',
|
|
23
|
+
ApiKeyTypeProject: 'project',
|
|
24
|
+
ApiKeyTypeWorkspace: 'workspace',
|
|
25
|
+
};
|
|
26
|
+
function instanceOfApikeyApiKeyType(value) {
|
|
27
|
+
for (const key in exports.ApikeyApiKeyType) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(exports.ApikeyApiKeyType, key)) {
|
|
29
|
+
if (exports.ApikeyApiKeyType[key] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfApikeyApiKeyType = instanceOfApikeyApiKeyType;
|
|
37
|
+
function ApikeyApiKeyTypeFromJSON(json) {
|
|
38
|
+
return ApikeyApiKeyTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.ApikeyApiKeyTypeFromJSON = ApikeyApiKeyTypeFromJSON;
|
|
41
|
+
function ApikeyApiKeyTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
exports.ApikeyApiKeyTypeFromJSONTyped = ApikeyApiKeyTypeFromJSONTyped;
|
|
45
|
+
function ApikeyApiKeyTypeToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
exports.ApikeyApiKeyTypeToJSON = ApikeyApiKeyTypeToJSON;
|
|
49
|
+
function ApikeyApiKeyTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
exports.ApikeyApiKeyTypeToJSONTyped = ApikeyApiKeyTypeToJSONTyped;
|
|
@@ -0,0 +1,98 @@
|
|
|
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 type { ContainerConfig } from './ContainerConfig';
|
|
13
|
+
import type { GitRepository } from './GitRepository';
|
|
14
|
+
import type { BuildBuildState } from './BuildBuildState';
|
|
15
|
+
import type { BuildConfig } from './BuildConfig';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Build
|
|
20
|
+
*/
|
|
21
|
+
export interface Build {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {BuildConfig}
|
|
25
|
+
* @memberof Build
|
|
26
|
+
*/
|
|
27
|
+
buildConfig?: BuildConfig;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ContainerConfig}
|
|
31
|
+
* @memberof Build
|
|
32
|
+
*/
|
|
33
|
+
containerConfig: ContainerConfig;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Build
|
|
38
|
+
*/
|
|
39
|
+
createdAt: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: string; }}
|
|
43
|
+
* @memberof Build
|
|
44
|
+
*/
|
|
45
|
+
envVars: {
|
|
46
|
+
[key: string]: string;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Build
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Build
|
|
58
|
+
*/
|
|
59
|
+
image?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Build
|
|
64
|
+
*/
|
|
65
|
+
prebuildId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GitRepository}
|
|
69
|
+
* @memberof Build
|
|
70
|
+
*/
|
|
71
|
+
repository: GitRepository;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {BuildBuildState}
|
|
75
|
+
* @memberof Build
|
|
76
|
+
*/
|
|
77
|
+
state: BuildBuildState;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Build
|
|
82
|
+
*/
|
|
83
|
+
updatedAt: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Build
|
|
88
|
+
*/
|
|
89
|
+
user?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the Build interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfBuild(value: object): value is Build;
|
|
95
|
+
export declare function BuildFromJSON(json: any): Build;
|
|
96
|
+
export declare function BuildFromJSONTyped(json: any, ignoreDiscriminator: boolean): Build;
|
|
97
|
+
export declare function BuildToJSON(json: any): Build;
|
|
98
|
+
export declare function BuildToJSONTyped(value?: Build | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BuildToJSONTyped = exports.BuildToJSON = exports.BuildFromJSONTyped = exports.BuildFromJSON = exports.instanceOfBuild = void 0;
|
|
17
|
+
const ContainerConfig_1 = require("./ContainerConfig");
|
|
18
|
+
const GitRepository_1 = require("./GitRepository");
|
|
19
|
+
const BuildBuildState_1 = require("./BuildBuildState");
|
|
20
|
+
const BuildConfig_1 = require("./BuildConfig");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Build interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuild(value) {
|
|
25
|
+
if (!('containerConfig' in value) || value['containerConfig'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('envVars' in value) || value['envVars'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('prebuildId' in value) || value['prebuildId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('repository' in value) || value['repository'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
exports.instanceOfBuild = instanceOfBuild;
|
|
44
|
+
function BuildFromJSON(json) {
|
|
45
|
+
return BuildFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.BuildFromJSON = BuildFromJSON;
|
|
48
|
+
function BuildFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
buildConfig: json['buildConfig'] == null
|
|
54
|
+
? undefined
|
|
55
|
+
: (0, BuildConfig_1.BuildConfigFromJSON)(json['buildConfig']),
|
|
56
|
+
containerConfig: (0, ContainerConfig_1.ContainerConfigFromJSON)(json['containerConfig']),
|
|
57
|
+
createdAt: json['createdAt'],
|
|
58
|
+
envVars: json['envVars'],
|
|
59
|
+
id: json['id'],
|
|
60
|
+
image: json['image'] == null ? undefined : json['image'],
|
|
61
|
+
prebuildId: json['prebuildId'],
|
|
62
|
+
repository: (0, GitRepository_1.GitRepositoryFromJSON)(json['repository']),
|
|
63
|
+
state: (0, BuildBuildState_1.BuildBuildStateFromJSON)(json['state']),
|
|
64
|
+
updatedAt: json['updatedAt'],
|
|
65
|
+
user: json['user'] == null ? undefined : json['user'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.BuildFromJSONTyped = BuildFromJSONTyped;
|
|
69
|
+
function BuildToJSON(json) {
|
|
70
|
+
return BuildToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
exports.BuildToJSON = BuildToJSON;
|
|
73
|
+
function BuildToJSONTyped(value, ignoreDiscriminator = false) {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
buildConfig: (0, BuildConfig_1.BuildConfigToJSON)(value['buildConfig']),
|
|
79
|
+
containerConfig: (0, ContainerConfig_1.ContainerConfigToJSON)(value['containerConfig']),
|
|
80
|
+
createdAt: value['createdAt'],
|
|
81
|
+
envVars: value['envVars'],
|
|
82
|
+
id: value['id'],
|
|
83
|
+
image: value['image'],
|
|
84
|
+
prebuildId: value['prebuildId'],
|
|
85
|
+
repository: (0, GitRepository_1.GitRepositoryToJSON)(value['repository']),
|
|
86
|
+
state: (0, BuildBuildState_1.BuildBuildStateToJSON)(value['state']),
|
|
87
|
+
updatedAt: value['updatedAt'],
|
|
88
|
+
user: value['user'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
exports.BuildToJSONTyped = BuildToJSONTyped;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BuildBuildState: {
|
|
17
|
+
readonly BuildStatePendingRun: "pending-run";
|
|
18
|
+
readonly BuildStateRunning: "running";
|
|
19
|
+
readonly BuildStateError: "error";
|
|
20
|
+
readonly BuildStateSuccess: "success";
|
|
21
|
+
readonly BuildStatePublished: "published";
|
|
22
|
+
readonly BuildStatePendingDelete: "pending-delete";
|
|
23
|
+
readonly BuildStatePendingForcedDelete: "pending-forced-delete";
|
|
24
|
+
readonly BuildStateDeleting: "deleting";
|
|
25
|
+
};
|
|
26
|
+
export type BuildBuildState = (typeof BuildBuildState)[keyof typeof BuildBuildState];
|
|
27
|
+
export declare function instanceOfBuildBuildState(value: any): boolean;
|
|
28
|
+
export declare function BuildBuildStateFromJSON(json: any): BuildBuildState;
|
|
29
|
+
export declare function BuildBuildStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuildBuildState;
|
|
30
|
+
export declare function BuildBuildStateToJSON(value?: BuildBuildState | null): any;
|
|
31
|
+
export declare function BuildBuildStateToJSONTyped(value: any, ignoreDiscriminator: boolean): BuildBuildState;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BuildBuildStateToJSONTyped = exports.BuildBuildStateToJSON = exports.BuildBuildStateFromJSONTyped = exports.BuildBuildStateFromJSON = exports.instanceOfBuildBuildState = exports.BuildBuildState = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.BuildBuildState = {
|
|
22
|
+
BuildStatePendingRun: 'pending-run',
|
|
23
|
+
BuildStateRunning: 'running',
|
|
24
|
+
BuildStateError: 'error',
|
|
25
|
+
BuildStateSuccess: 'success',
|
|
26
|
+
BuildStatePublished: 'published',
|
|
27
|
+
BuildStatePendingDelete: 'pending-delete',
|
|
28
|
+
BuildStatePendingForcedDelete: 'pending-forced-delete',
|
|
29
|
+
BuildStateDeleting: 'deleting',
|
|
30
|
+
};
|
|
31
|
+
function instanceOfBuildBuildState(value) {
|
|
32
|
+
for (const key in exports.BuildBuildState) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.BuildBuildState, key)) {
|
|
34
|
+
if (exports.BuildBuildState[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
exports.instanceOfBuildBuildState = instanceOfBuildBuildState;
|
|
42
|
+
function BuildBuildStateFromJSON(json) {
|
|
43
|
+
return BuildBuildStateFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
exports.BuildBuildStateFromJSON = BuildBuildStateFromJSON;
|
|
46
|
+
function BuildBuildStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
exports.BuildBuildStateFromJSONTyped = BuildBuildStateFromJSONTyped;
|
|
50
|
+
function BuildBuildStateToJSON(value) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
exports.BuildBuildStateToJSON = BuildBuildStateToJSON;
|
|
54
|
+
function BuildBuildStateToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
exports.BuildBuildStateToJSONTyped = BuildBuildStateToJSONTyped;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 type { CachedBuild } from './CachedBuild';
|
|
13
|
+
import type { DevcontainerConfig } from './DevcontainerConfig';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BuildConfig
|
|
18
|
+
*/
|
|
19
|
+
export interface BuildConfig {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CachedBuild}
|
|
23
|
+
* @memberof BuildConfig
|
|
24
|
+
*/
|
|
25
|
+
cachedBuild?: CachedBuild;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {DevcontainerConfig}
|
|
29
|
+
* @memberof BuildConfig
|
|
30
|
+
*/
|
|
31
|
+
devcontainer?: DevcontainerConfig;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the BuildConfig interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfBuildConfig(value: object): value is BuildConfig;
|
|
37
|
+
export declare function BuildConfigFromJSON(json: any): BuildConfig;
|
|
38
|
+
export declare function BuildConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuildConfig;
|
|
39
|
+
export declare function BuildConfigToJSON(json: any): BuildConfig;
|
|
40
|
+
export declare function BuildConfigToJSONTyped(value?: BuildConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BuildConfigToJSONTyped = exports.BuildConfigToJSON = exports.BuildConfigFromJSONTyped = exports.BuildConfigFromJSON = exports.instanceOfBuildConfig = void 0;
|
|
17
|
+
const CachedBuild_1 = require("./CachedBuild");
|
|
18
|
+
const DevcontainerConfig_1 = require("./DevcontainerConfig");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the BuildConfig interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfBuildConfig(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfBuildConfig = instanceOfBuildConfig;
|
|
26
|
+
function BuildConfigFromJSON(json) {
|
|
27
|
+
return BuildConfigFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.BuildConfigFromJSON = BuildConfigFromJSON;
|
|
30
|
+
function BuildConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
cachedBuild: json['cachedBuild'] == null
|
|
36
|
+
? undefined
|
|
37
|
+
: (0, CachedBuild_1.CachedBuildFromJSON)(json['cachedBuild']),
|
|
38
|
+
devcontainer: json['devcontainer'] == null
|
|
39
|
+
? undefined
|
|
40
|
+
: (0, DevcontainerConfig_1.DevcontainerConfigFromJSON)(json['devcontainer']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.BuildConfigFromJSONTyped = BuildConfigFromJSONTyped;
|
|
44
|
+
function BuildConfigToJSON(json) {
|
|
45
|
+
return BuildConfigToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
exports.BuildConfigToJSON = BuildConfigToJSON;
|
|
48
|
+
function BuildConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
cachedBuild: (0, CachedBuild_1.CachedBuildToJSON)(value['cachedBuild']),
|
|
54
|
+
devcontainer: (0, DevcontainerConfig_1.DevcontainerConfigToJSON)(value['devcontainer']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.BuildConfigToJSONTyped = BuildConfigToJSONTyped;
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CachedBuild
|
|
16
|
+
*/
|
|
17
|
+
export interface CachedBuild {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CachedBuild
|
|
22
|
+
*/
|
|
23
|
+
image: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CachedBuild
|
|
28
|
+
*/
|
|
29
|
+
user: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CachedBuild interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCachedBuild(value: object): value is CachedBuild;
|
|
35
|
+
export declare function CachedBuildFromJSON(json: any): CachedBuild;
|
|
36
|
+
export declare function CachedBuildFromJSONTyped(json: any, ignoreDiscriminator: boolean): CachedBuild;
|
|
37
|
+
export declare function CachedBuildToJSON(json: any): CachedBuild;
|
|
38
|
+
export declare function CachedBuildToJSONTyped(value?: CachedBuild | null, ignoreDiscriminator?: boolean): any;
|