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