@daytonaio/api-client 0.1.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 +30 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/DefaultApi.d.ts +551 -0
- package/dist/apis/DefaultApi.js +1645 -0
- package/dist/apis/DockerRegistryApi.d.ts +90 -0
- package/dist/apis/DockerRegistryApi.js +257 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +20 -0
- package/dist/esm/apis/DefaultApi.d.ts +551 -0
- package/dist/esm/apis/DefaultApi.js +1641 -0
- package/dist/esm/apis/DockerRegistryApi.d.ts +90 -0
- package/dist/esm/apis/DockerRegistryApi.js +253 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/ApiKeyListDto.d.ts +44 -0
- package/dist/esm/models/ApiKeyListDto.js +51 -0
- package/dist/esm/models/ApiKeyResponseDto.d.ts +44 -0
- package/dist/esm/models/ApiKeyResponseDto.js +51 -0
- package/dist/esm/models/CreateApiKeyDto.d.ts +32 -0
- package/dist/esm/models/CreateApiKeyDto.js +43 -0
- package/dist/esm/models/CreateDockerRegistryDto.d.ts +62 -0
- package/dist/esm/models/CreateDockerRegistryDto.js +61 -0
- package/dist/esm/models/CreateWorkspaceDto.d.ts +64 -0
- package/dist/esm/models/CreateWorkspaceDto.js +63 -0
- package/dist/esm/models/ExecuteRequestDto.d.ts +38 -0
- package/dist/esm/models/ExecuteRequestDto.js +45 -0
- package/dist/esm/models/ExecuteResponseDto.d.ts +38 -0
- package/dist/esm/models/ExecuteResponseDto.js +47 -0
- package/dist/esm/models/GitAddRequestDto.d.ts +38 -0
- package/dist/esm/models/GitAddRequestDto.js +47 -0
- package/dist/esm/models/GitBranchRequestDto.d.ts +38 -0
- package/dist/esm/models/GitBranchRequestDto.js +47 -0
- package/dist/esm/models/GitCloneRequestDto.d.ts +62 -0
- package/dist/esm/models/GitCloneRequestDto.js +55 -0
- package/dist/esm/models/GitCommitRequestDto.d.ts +50 -0
- package/dist/esm/models/GitCommitRequestDto.js +55 -0
- package/dist/esm/models/GitRepoRequestDto.d.ts +44 -0
- package/dist/esm/models/GitRepoRequestDto.js +47 -0
- package/dist/esm/models/ReplaceRequestDto.d.ts +44 -0
- package/dist/esm/models/ReplaceRequestDto.js +51 -0
- package/dist/esm/models/UpdateDockerRegistryDto.d.ts +62 -0
- package/dist/esm/models/UpdateDockerRegistryDto.js +51 -0
- package/dist/esm/models/WorkspaceDto.d.ts +71 -0
- package/dist/esm/models/WorkspaceDto.js +66 -0
- package/dist/esm/models/WorkspaceInfoDto.d.ts +44 -0
- package/dist/esm/models/WorkspaceInfoDto.js +49 -0
- package/dist/esm/models/WorkspaceLabelsDto.d.ts +34 -0
- package/dist/esm/models/WorkspaceLabelsDto.js +43 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +19 -0
- package/dist/esm/runtime.d.ts +181 -0
- package/dist/esm/runtime.js +326 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/ApiKeyListDto.d.ts +44 -0
- package/dist/models/ApiKeyListDto.js +59 -0
- package/dist/models/ApiKeyResponseDto.d.ts +44 -0
- package/dist/models/ApiKeyResponseDto.js +59 -0
- package/dist/models/CreateApiKeyDto.d.ts +32 -0
- package/dist/models/CreateApiKeyDto.js +51 -0
- package/dist/models/CreateDockerRegistryDto.d.ts +62 -0
- package/dist/models/CreateDockerRegistryDto.js +69 -0
- package/dist/models/CreateWorkspaceDto.d.ts +64 -0
- package/dist/models/CreateWorkspaceDto.js +71 -0
- package/dist/models/ExecuteRequestDto.d.ts +38 -0
- package/dist/models/ExecuteRequestDto.js +53 -0
- package/dist/models/ExecuteResponseDto.d.ts +38 -0
- package/dist/models/ExecuteResponseDto.js +55 -0
- package/dist/models/GitAddRequestDto.d.ts +38 -0
- package/dist/models/GitAddRequestDto.js +55 -0
- package/dist/models/GitBranchRequestDto.d.ts +38 -0
- package/dist/models/GitBranchRequestDto.js +55 -0
- package/dist/models/GitCloneRequestDto.d.ts +62 -0
- package/dist/models/GitCloneRequestDto.js +63 -0
- package/dist/models/GitCommitRequestDto.d.ts +50 -0
- package/dist/models/GitCommitRequestDto.js +63 -0
- package/dist/models/GitRepoRequestDto.d.ts +44 -0
- package/dist/models/GitRepoRequestDto.js +55 -0
- package/dist/models/ReplaceRequestDto.d.ts +44 -0
- package/dist/models/ReplaceRequestDto.js +59 -0
- package/dist/models/UpdateDockerRegistryDto.d.ts +62 -0
- package/dist/models/UpdateDockerRegistryDto.js +59 -0
- package/dist/models/WorkspaceDto.d.ts +71 -0
- package/dist/models/WorkspaceDto.js +74 -0
- package/dist/models/WorkspaceInfoDto.d.ts +44 -0
- package/dist/models/WorkspaceInfoDto.js +57 -0
- package/dist/models/WorkspaceLabelsDto.d.ts +34 -0
- package/dist/models/WorkspaceLabelsDto.js +51 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +35 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +341 -0
- package/package.json +22 -0
- package/src/apis/DefaultApi.ts +2380 -0
- package/src/apis/DockerRegistryApi.ts +318 -0
- package/src/apis/index.ts +4 -0
- package/src/index.ts +5 -0
- package/src/models/ApiKeyListDto.ts +84 -0
- package/src/models/ApiKeyResponseDto.ts +84 -0
- package/src/models/CreateApiKeyDto.ts +66 -0
- package/src/models/CreateDockerRegistryDto.ts +110 -0
- package/src/models/CreateWorkspaceDto.ts +111 -0
- package/src/models/ExecuteRequestDto.ts +74 -0
- package/src/models/ExecuteResponseDto.ts +75 -0
- package/src/models/GitAddRequestDto.ts +75 -0
- package/src/models/GitBranchRequestDto.ts +75 -0
- package/src/models/GitCloneRequestDto.ts +107 -0
- package/src/models/GitCommitRequestDto.ts +93 -0
- package/src/models/GitRepoRequestDto.ts +82 -0
- package/src/models/ReplaceRequestDto.ts +84 -0
- package/src/models/UpdateDockerRegistryDto.ts +105 -0
- package/src/models/WorkspaceDto.ts +127 -0
- package/src/models/WorkspaceInfoDto.ts +83 -0
- package/src/models/WorkspaceLabelsDto.ts +66 -0
- package/src/models/index.ts +19 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateWorkspaceDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateWorkspaceDto {
|
|
22
|
+
/**
|
|
23
|
+
* The ID of the workspace to be created
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateWorkspaceDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The name of the workspace to be created
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateWorkspaceDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The image used for the workspace
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreateWorkspaceDto
|
|
38
|
+
*/
|
|
39
|
+
image: string;
|
|
40
|
+
/**
|
|
41
|
+
* The user associated with the project
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreateWorkspaceDto
|
|
44
|
+
*/
|
|
45
|
+
user: string;
|
|
46
|
+
/**
|
|
47
|
+
* Environment variables for the workspace
|
|
48
|
+
* @type {{ [key: string]: string; }}
|
|
49
|
+
* @memberof CreateWorkspaceDto
|
|
50
|
+
*/
|
|
51
|
+
env: { [key: string]: string; };
|
|
52
|
+
/**
|
|
53
|
+
* The target environment for the workspace
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateWorkspaceDto
|
|
56
|
+
*/
|
|
57
|
+
target: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the CreateWorkspaceDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfCreateWorkspaceDto(value: object): value is CreateWorkspaceDto {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('image' in value) || value['image'] === undefined) return false;
|
|
67
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
68
|
+
if (!('env' in value) || value['env'] === undefined) return false;
|
|
69
|
+
if (!('target' in value) || value['target'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function CreateWorkspaceDtoFromJSON(json: any): CreateWorkspaceDto {
|
|
74
|
+
return CreateWorkspaceDtoFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function CreateWorkspaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWorkspaceDto {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'image': json['image'],
|
|
86
|
+
'user': json['user'],
|
|
87
|
+
'env': json['env'],
|
|
88
|
+
'target': json['target'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function CreateWorkspaceDtoToJSON(json: any): CreateWorkspaceDto {
|
|
93
|
+
return CreateWorkspaceDtoToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function CreateWorkspaceDtoToJSONTyped(value?: CreateWorkspaceDto | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'name': value['name'],
|
|
105
|
+
'image': value['image'],
|
|
106
|
+
'user': value['user'],
|
|
107
|
+
'env': value['env'],
|
|
108
|
+
'target': value['target'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExecuteRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecuteRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExecuteRequestDto
|
|
26
|
+
*/
|
|
27
|
+
command: string;
|
|
28
|
+
/**
|
|
29
|
+
* Timeout in seconds, defaults to 10 seconds
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ExecuteRequestDto
|
|
32
|
+
*/
|
|
33
|
+
timeout?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ExecuteRequestDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfExecuteRequestDto(value: object): value is ExecuteRequestDto {
|
|
40
|
+
if (!('command' in value) || value['command'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ExecuteRequestDtoFromJSON(json: any): ExecuteRequestDto {
|
|
45
|
+
return ExecuteRequestDtoFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ExecuteRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecuteRequestDto {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'command': json['command'],
|
|
55
|
+
'timeout': json['timeout'] == null ? undefined : json['timeout'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ExecuteRequestDtoToJSON(json: any): ExecuteRequestDto {
|
|
60
|
+
return ExecuteRequestDtoToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ExecuteRequestDtoToJSONTyped(value?: ExecuteRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'command': value['command'],
|
|
71
|
+
'timeout': value['timeout'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ExecuteResponseDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecuteResponseDto {
|
|
22
|
+
/**
|
|
23
|
+
* Response code
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ExecuteResponseDto
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
* Command output
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ExecuteResponseDto
|
|
32
|
+
*/
|
|
33
|
+
result: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ExecuteResponseDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfExecuteResponseDto(value: object): value is ExecuteResponseDto {
|
|
40
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
41
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ExecuteResponseDtoFromJSON(json: any): ExecuteResponseDto {
|
|
46
|
+
return ExecuteResponseDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ExecuteResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecuteResponseDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'code': json['code'],
|
|
56
|
+
'result': json['result'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ExecuteResponseDtoToJSON(json: any): ExecuteResponseDto {
|
|
61
|
+
return ExecuteResponseDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ExecuteResponseDtoToJSONTyped(value?: ExecuteResponseDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'code': value['code'],
|
|
72
|
+
'result': value['result'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GitAddRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface GitAddRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GitAddRequestDto
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
* files to add (use . for all files)
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof GitAddRequestDto
|
|
32
|
+
*/
|
|
33
|
+
files: Array<string>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GitAddRequestDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGitAddRequestDto(value: object): value is GitAddRequestDto {
|
|
40
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
41
|
+
if (!('files' in value) || value['files'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GitAddRequestDtoFromJSON(json: any): GitAddRequestDto {
|
|
46
|
+
return GitAddRequestDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GitAddRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitAddRequestDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'path': json['path'],
|
|
56
|
+
'files': json['files'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GitAddRequestDtoToJSON(json: any): GitAddRequestDto {
|
|
61
|
+
return GitAddRequestDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GitAddRequestDtoToJSONTyped(value?: GitAddRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'path': value['path'],
|
|
72
|
+
'files': value['files'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GitBranchRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface GitBranchRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GitBranchRequestDto
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GitBranchRequestDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GitBranchRequestDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGitBranchRequestDto(value: object): value is GitBranchRequestDto {
|
|
40
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GitBranchRequestDtoFromJSON(json: any): GitBranchRequestDto {
|
|
46
|
+
return GitBranchRequestDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GitBranchRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitBranchRequestDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'path': json['path'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GitBranchRequestDtoToJSON(json: any): GitBranchRequestDto {
|
|
61
|
+
return GitBranchRequestDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GitBranchRequestDtoToJSONTyped(value?: GitBranchRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'path': value['path'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GitCloneRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface GitCloneRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GitCloneRequestDto
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GitCloneRequestDto
|
|
32
|
+
*/
|
|
33
|
+
path: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GitCloneRequestDto
|
|
38
|
+
*/
|
|
39
|
+
username?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GitCloneRequestDto
|
|
44
|
+
*/
|
|
45
|
+
password?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GitCloneRequestDto
|
|
50
|
+
*/
|
|
51
|
+
branch?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof GitCloneRequestDto
|
|
56
|
+
*/
|
|
57
|
+
commitId?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GitCloneRequestDto interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfGitCloneRequestDto(value: object): value is GitCloneRequestDto {
|
|
64
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
65
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function GitCloneRequestDtoFromJSON(json: any): GitCloneRequestDto {
|
|
70
|
+
return GitCloneRequestDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function GitCloneRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitCloneRequestDto {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'url': json['url'],
|
|
80
|
+
'path': json['path'],
|
|
81
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
82
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
83
|
+
'branch': json['branch'] == null ? undefined : json['branch'],
|
|
84
|
+
'commitId': json['commit_id'] == null ? undefined : json['commit_id'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GitCloneRequestDtoToJSON(json: any): GitCloneRequestDto {
|
|
89
|
+
return GitCloneRequestDtoToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GitCloneRequestDtoToJSONTyped(value?: GitCloneRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'url': value['url'],
|
|
100
|
+
'path': value['path'],
|
|
101
|
+
'username': value['username'],
|
|
102
|
+
'password': value['password'],
|
|
103
|
+
'branch': value['branch'],
|
|
104
|
+
'commit_id': value['commitId'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GitCommitRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface GitCommitRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GitCommitRequestDto
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GitCommitRequestDto
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GitCommitRequestDto
|
|
38
|
+
*/
|
|
39
|
+
author: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GitCommitRequestDto
|
|
44
|
+
*/
|
|
45
|
+
email: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GitCommitRequestDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGitCommitRequestDto(value: object): value is GitCommitRequestDto {
|
|
52
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
53
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
54
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
55
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GitCommitRequestDtoFromJSON(json: any): GitCommitRequestDto {
|
|
60
|
+
return GitCommitRequestDtoFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GitCommitRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitCommitRequestDto {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'path': json['path'],
|
|
70
|
+
'message': json['message'],
|
|
71
|
+
'author': json['author'],
|
|
72
|
+
'email': json['email'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GitCommitRequestDtoToJSON(json: any): GitCommitRequestDto {
|
|
77
|
+
return GitCommitRequestDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GitCommitRequestDtoToJSONTyped(value?: GitCommitRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'path': value['path'],
|
|
88
|
+
'message': value['message'],
|
|
89
|
+
'author': value['author'],
|
|
90
|
+
'email': value['email'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GitRepoRequestDto
|
|
20
|
+
*/
|
|
21
|
+
export interface GitRepoRequestDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GitRepoRequestDto
|
|
26
|
+
*/
|
|
27
|
+
path: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GitRepoRequestDto
|
|
32
|
+
*/
|
|
33
|
+
username?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GitRepoRequestDto
|
|
38
|
+
*/
|
|
39
|
+
password?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GitRepoRequestDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGitRepoRequestDto(value: object): value is GitRepoRequestDto {
|
|
46
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function GitRepoRequestDtoFromJSON(json: any): GitRepoRequestDto {
|
|
51
|
+
return GitRepoRequestDtoFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function GitRepoRequestDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitRepoRequestDto {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'path': json['path'],
|
|
61
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
62
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GitRepoRequestDtoToJSON(json: any): GitRepoRequestDto {
|
|
67
|
+
return GitRepoRequestDtoToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GitRepoRequestDtoToJSONTyped(value?: GitRepoRequestDto | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'path': value['path'],
|
|
78
|
+
'username': value['username'],
|
|
79
|
+
'password': value['password'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|