@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.
Files changed (215) hide show
  1. package/LICENCE +43 -0
  2. package/README.md +181 -0
  3. package/dist/Daytona.d.ts +106 -0
  4. package/dist/Daytona.js +141 -0
  5. package/dist/FileSystem.d.ts +97 -0
  6. package/dist/FileSystem.js +126 -0
  7. package/dist/Git.d.ts +67 -0
  8. package/dist/Git.js +109 -0
  9. package/dist/LspServer.d.ts +68 -0
  10. package/dist/LspServer.js +93 -0
  11. package/dist/Process.d.ts +54 -0
  12. package/dist/Process.js +84 -0
  13. package/dist/Workspace.d.ts +53 -0
  14. package/dist/Workspace.js +51 -0
  15. package/dist/client/apis/ApiKeyApi.d.ts +54 -0
  16. package/dist/client/apis/ApiKeyApi.js +135 -0
  17. package/dist/client/apis/BuildApi.d.ts +95 -0
  18. package/dist/client/apis/BuildApi.js +228 -0
  19. package/dist/client/apis/ContainerRegistryApi.d.ts +68 -0
  20. package/dist/client/apis/ContainerRegistryApi.js +163 -0
  21. package/dist/client/apis/DefaultApi.d.ts +31 -0
  22. package/dist/client/apis/DefaultApi.js +72 -0
  23. package/dist/client/apis/GitProviderApi.d.ts +197 -0
  24. package/dist/client/apis/GitProviderApi.js +477 -0
  25. package/dist/client/apis/PrebuildApi.d.ts +97 -0
  26. package/dist/client/apis/PrebuildApi.js +241 -0
  27. package/dist/client/apis/ProfileApi.d.ts +51 -0
  28. package/dist/client/apis/ProfileApi.js +128 -0
  29. package/dist/client/apis/ProjectConfigApi.d.ts +94 -0
  30. package/dist/client/apis/ProjectConfigApi.js +220 -0
  31. package/dist/client/apis/ProviderApi.d.ts +71 -0
  32. package/dist/client/apis/ProviderApi.js +160 -0
  33. package/dist/client/apis/SampleApi.d.ts +28 -0
  34. package/dist/client/apis/SampleApi.js +73 -0
  35. package/dist/client/apis/ServerApi.d.ts +61 -0
  36. package/dist/client/apis/ServerApi.js +156 -0
  37. package/dist/client/apis/TargetApi.d.ts +67 -0
  38. package/dist/client/apis/TargetApi.js +159 -0
  39. package/dist/client/apis/WorkspaceApi.d.ts +141 -0
  40. package/dist/client/apis/WorkspaceApi.js +330 -0
  41. package/dist/client/apis/WorkspaceToolboxApi.d.ts +464 -0
  42. package/dist/client/apis/WorkspaceToolboxApi.js +1248 -0
  43. package/dist/client/apis/index.d.ts +14 -0
  44. package/dist/client/apis/index.js +32 -0
  45. package/dist/client/index.d.ts +3 -0
  46. package/dist/client/index.js +21 -0
  47. package/dist/client/models/ApiKey.d.ts +45 -0
  48. package/dist/client/models/ApiKey.js +60 -0
  49. package/dist/client/models/ApikeyApiKeyType.d.ts +26 -0
  50. package/dist/client/models/ApikeyApiKeyType.js +52 -0
  51. package/dist/client/models/Build.d.ts +98 -0
  52. package/dist/client/models/Build.js +91 -0
  53. package/dist/client/models/BuildBuildState.d.ts +31 -0
  54. package/dist/client/models/BuildBuildState.js +57 -0
  55. package/dist/client/models/BuildConfig.d.ts +40 -0
  56. package/dist/client/models/BuildConfig.js +57 -0
  57. package/dist/client/models/CachedBuild.d.ts +38 -0
  58. package/dist/client/models/CachedBuild.js +55 -0
  59. package/dist/client/models/CloneTarget.d.ts +25 -0
  60. package/dist/client/models/CloneTarget.js +51 -0
  61. package/dist/client/models/CompletionContext.d.ts +38 -0
  62. package/dist/client/models/CompletionContext.js +53 -0
  63. package/dist/client/models/CompletionItem.d.ts +68 -0
  64. package/dist/client/models/CompletionItem.js +63 -0
  65. package/dist/client/models/CompletionList.d.ts +39 -0
  66. package/dist/client/models/CompletionList.js +56 -0
  67. package/dist/client/models/ContainerConfig.d.ts +38 -0
  68. package/dist/client/models/ContainerConfig.js +55 -0
  69. package/dist/client/models/ContainerRegistry.d.ts +44 -0
  70. package/dist/client/models/ContainerRegistry.js +59 -0
  71. package/dist/client/models/CreateBuildDTO.d.ts +52 -0
  72. package/dist/client/models/CreateBuildDTO.js +62 -0
  73. package/dist/client/models/CreatePrebuildDTO.d.ts +56 -0
  74. package/dist/client/models/CreatePrebuildDTO.js +59 -0
  75. package/dist/client/models/CreateProjectConfigDTO.d.ts +71 -0
  76. package/dist/client/models/CreateProjectConfigDTO.js +72 -0
  77. package/dist/client/models/CreateProjectDTO.d.ts +72 -0
  78. package/dist/client/models/CreateProjectDTO.js +73 -0
  79. package/dist/client/models/CreateProjectSourceDTO.d.ts +33 -0
  80. package/dist/client/models/CreateProjectSourceDTO.js +52 -0
  81. package/dist/client/models/CreateProviderTargetDTO.d.ts +45 -0
  82. package/dist/client/models/CreateProviderTargetDTO.js +60 -0
  83. package/dist/client/models/CreateWorkspaceDTO.d.ts +51 -0
  84. package/dist/client/models/CreateWorkspaceDTO.js +64 -0
  85. package/dist/client/models/DevcontainerConfig.d.ts +32 -0
  86. package/dist/client/models/DevcontainerConfig.js +51 -0
  87. package/dist/client/models/ExecuteRequest.d.ts +38 -0
  88. package/dist/client/models/ExecuteRequest.js +53 -0
  89. package/dist/client/models/ExecuteResponse.d.ts +38 -0
  90. package/dist/client/models/ExecuteResponse.js +55 -0
  91. package/dist/client/models/FRPSConfig.d.ts +44 -0
  92. package/dist/client/models/FRPSConfig.js +59 -0
  93. package/dist/client/models/FileInfo.d.ts +74 -0
  94. package/dist/client/models/FileInfo.js +79 -0
  95. package/dist/client/models/FileStatus.d.ts +51 -0
  96. package/dist/client/models/FileStatus.js +64 -0
  97. package/dist/client/models/GetRepositoryContext.d.ts +80 -0
  98. package/dist/client/models/GetRepositoryContext.js +67 -0
  99. package/dist/client/models/GitAddRequest.d.ts +38 -0
  100. package/dist/client/models/GitAddRequest.js +55 -0
  101. package/dist/client/models/GitBranch.d.ts +38 -0
  102. package/dist/client/models/GitBranch.js +55 -0
  103. package/dist/client/models/GitBranchRequest.d.ts +38 -0
  104. package/dist/client/models/GitBranchRequest.js +55 -0
  105. package/dist/client/models/GitCloneRequest.d.ts +62 -0
  106. package/dist/client/models/GitCloneRequest.js +63 -0
  107. package/dist/client/models/GitCommitInfo.d.ts +56 -0
  108. package/dist/client/models/GitCommitInfo.js +67 -0
  109. package/dist/client/models/GitCommitRequest.d.ts +50 -0
  110. package/dist/client/models/GitCommitRequest.js +63 -0
  111. package/dist/client/models/GitCommitResponse.d.ts +32 -0
  112. package/dist/client/models/GitCommitResponse.js +51 -0
  113. package/dist/client/models/GitNamespace.d.ts +38 -0
  114. package/dist/client/models/GitNamespace.js +55 -0
  115. package/dist/client/models/GitProvider.d.ts +75 -0
  116. package/dist/client/models/GitProvider.js +76 -0
  117. package/dist/client/models/GitPullRequest.d.ts +68 -0
  118. package/dist/client/models/GitPullRequest.js +75 -0
  119. package/dist/client/models/GitRepoRequest.d.ts +44 -0
  120. package/dist/client/models/GitRepoRequest.js +55 -0
  121. package/dist/client/models/GitRepository.d.ts +87 -0
  122. package/dist/client/models/GitRepository.js +84 -0
  123. package/dist/client/models/GitStatus.d.ts +57 -0
  124. package/dist/client/models/GitStatus.js +62 -0
  125. package/dist/client/models/GitUser.d.ts +50 -0
  126. package/dist/client/models/GitUser.js +63 -0
  127. package/dist/client/models/InstallProviderRequest.d.ts +40 -0
  128. package/dist/client/models/InstallProviderRequest.js +55 -0
  129. package/dist/client/models/ListBranchResponse.d.ts +32 -0
  130. package/dist/client/models/ListBranchResponse.js +51 -0
  131. package/dist/client/models/LogFileConfig.d.ts +62 -0
  132. package/dist/client/models/LogFileConfig.js +67 -0
  133. package/dist/client/models/LspCompletionParams.d.ts +58 -0
  134. package/dist/client/models/LspCompletionParams.js +69 -0
  135. package/dist/client/models/LspDocumentRequest.d.ts +44 -0
  136. package/dist/client/models/LspDocumentRequest.js +59 -0
  137. package/dist/client/models/LspLocation.d.ts +39 -0
  138. package/dist/client/models/LspLocation.js +56 -0
  139. package/dist/client/models/LspPosition.d.ts +38 -0
  140. package/dist/client/models/LspPosition.js +55 -0
  141. package/dist/client/models/LspRange.d.ts +39 -0
  142. package/dist/client/models/LspRange.js +56 -0
  143. package/dist/client/models/LspServerRequest.d.ts +38 -0
  144. package/dist/client/models/LspServerRequest.js +55 -0
  145. package/dist/client/models/LspSymbol.d.ts +45 -0
  146. package/dist/client/models/LspSymbol.js +60 -0
  147. package/dist/client/models/Match.d.ts +44 -0
  148. package/dist/client/models/Match.js +59 -0
  149. package/dist/client/models/NetworkKey.d.ts +32 -0
  150. package/dist/client/models/NetworkKey.js +51 -0
  151. package/dist/client/models/Position.d.ts +38 -0
  152. package/dist/client/models/Position.js +55 -0
  153. package/dist/client/models/PrebuildConfig.d.ts +56 -0
  154. package/dist/client/models/PrebuildConfig.js +67 -0
  155. package/dist/client/models/PrebuildDTO.d.ts +62 -0
  156. package/dist/client/models/PrebuildDTO.js +68 -0
  157. package/dist/client/models/ProfileData.d.ts +34 -0
  158. package/dist/client/models/ProfileData.js +51 -0
  159. package/dist/client/models/Project.d.ts +91 -0
  160. package/dist/client/models/Project.js +88 -0
  161. package/dist/client/models/ProjectConfig.d.ts +84 -0
  162. package/dist/client/models/ProjectConfig.js +87 -0
  163. package/dist/client/models/ProjectDirResponse.d.ts +32 -0
  164. package/dist/client/models/ProjectDirResponse.js +49 -0
  165. package/dist/client/models/ProjectInfo.d.ts +56 -0
  166. package/dist/client/models/ProjectInfo.js +65 -0
  167. package/dist/client/models/ProjectState.d.ts +45 -0
  168. package/dist/client/models/ProjectState.js +60 -0
  169. package/dist/client/models/Provider.d.ts +44 -0
  170. package/dist/client/models/Provider.js +57 -0
  171. package/dist/client/models/ProviderProviderInfo.d.ts +44 -0
  172. package/dist/client/models/ProviderProviderInfo.js +57 -0
  173. package/dist/client/models/ProviderProviderTargetProperty.d.ts +72 -0
  174. package/dist/client/models/ProviderProviderTargetProperty.js +64 -0
  175. package/dist/client/models/ProviderProviderTargetPropertyType.d.ts +29 -0
  176. package/dist/client/models/ProviderProviderTargetPropertyType.js +55 -0
  177. package/dist/client/models/ProviderTarget.d.ts +51 -0
  178. package/dist/client/models/ProviderTarget.js +64 -0
  179. package/dist/client/models/ReplaceRequest.d.ts +44 -0
  180. package/dist/client/models/ReplaceRequest.js +59 -0
  181. package/dist/client/models/ReplaceResult.d.ts +44 -0
  182. package/dist/client/models/ReplaceResult.js +53 -0
  183. package/dist/client/models/RepositoryUrl.d.ts +32 -0
  184. package/dist/client/models/RepositoryUrl.js +51 -0
  185. package/dist/client/models/Sample.d.ts +44 -0
  186. package/dist/client/models/Sample.js +59 -0
  187. package/dist/client/models/SearchFilesResponse.d.ts +32 -0
  188. package/dist/client/models/SearchFilesResponse.js +51 -0
  189. package/dist/client/models/ServerConfig.d.ts +130 -0
  190. package/dist/client/models/ServerConfig.js +119 -0
  191. package/dist/client/models/SetGitProviderConfig.d.ts +75 -0
  192. package/dist/client/models/SetGitProviderConfig.js +70 -0
  193. package/dist/client/models/SetProjectState.d.ts +39 -0
  194. package/dist/client/models/SetProjectState.js +56 -0
  195. package/dist/client/models/SigningMethod.d.ts +25 -0
  196. package/dist/client/models/SigningMethod.js +51 -0
  197. package/dist/client/models/Status.d.ts +31 -0
  198. package/dist/client/models/Status.js +57 -0
  199. package/dist/client/models/Workspace.d.ts +51 -0
  200. package/dist/client/models/Workspace.js +64 -0
  201. package/dist/client/models/WorkspaceDTO.d.ts +58 -0
  202. package/dist/client/models/WorkspaceDTO.js +67 -0
  203. package/dist/client/models/WorkspaceInfo.d.ts +45 -0
  204. package/dist/client/models/WorkspaceInfo.js +58 -0
  205. package/dist/client/models/index.d.ts +79 -0
  206. package/dist/client/models/index.js +97 -0
  207. package/dist/client/runtime.d.ts +182 -0
  208. package/dist/client/runtime.js +340 -0
  209. package/dist/code-toolbox/WorkspacePythonCodeToolbox.d.ts +5 -0
  210. package/dist/code-toolbox/WorkspacePythonCodeToolbox.js +13 -0
  211. package/dist/code-toolbox/WorkspaceTsCodeToolbox.d.ts +5 -0
  212. package/dist/code-toolbox/WorkspaceTsCodeToolbox.js +13 -0
  213. package/dist/index.d.ts +8 -0
  214. package/dist/index.js +13 -0
  215. package/package.json +42 -0
@@ -0,0 +1,68 @@
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 GitPullRequest
16
+ */
17
+ export interface GitPullRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GitPullRequest
22
+ */
23
+ branch: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitPullRequest
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GitPullRequest
34
+ */
35
+ sha: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GitPullRequest
40
+ */
41
+ sourceRepoId: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GitPullRequest
46
+ */
47
+ sourceRepoName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof GitPullRequest
52
+ */
53
+ sourceRepoOwner: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof GitPullRequest
58
+ */
59
+ sourceRepoUrl: string;
60
+ }
61
+ /**
62
+ * Check if a given object implements the GitPullRequest interface.
63
+ */
64
+ export declare function instanceOfGitPullRequest(value: object): value is GitPullRequest;
65
+ export declare function GitPullRequestFromJSON(json: any): GitPullRequest;
66
+ export declare function GitPullRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitPullRequest;
67
+ export declare function GitPullRequestToJSON(json: any): GitPullRequest;
68
+ export declare function GitPullRequestToJSONTyped(value?: GitPullRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.GitPullRequestToJSONTyped = exports.GitPullRequestToJSON = exports.GitPullRequestFromJSONTyped = exports.GitPullRequestFromJSON = exports.instanceOfGitPullRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the GitPullRequest interface.
19
+ */
20
+ function instanceOfGitPullRequest(value) {
21
+ if (!('branch' in value) || value['branch'] === undefined)
22
+ return false;
23
+ if (!('name' in value) || value['name'] === undefined)
24
+ return false;
25
+ if (!('sha' in value) || value['sha'] === undefined)
26
+ return false;
27
+ if (!('sourceRepoId' in value) || value['sourceRepoId'] === undefined)
28
+ return false;
29
+ if (!('sourceRepoName' in value) || value['sourceRepoName'] === undefined)
30
+ return false;
31
+ if (!('sourceRepoOwner' in value) || value['sourceRepoOwner'] === undefined)
32
+ return false;
33
+ if (!('sourceRepoUrl' in value) || value['sourceRepoUrl'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ exports.instanceOfGitPullRequest = instanceOfGitPullRequest;
38
+ function GitPullRequestFromJSON(json) {
39
+ return GitPullRequestFromJSONTyped(json, false);
40
+ }
41
+ exports.GitPullRequestFromJSON = GitPullRequestFromJSON;
42
+ function GitPullRequestFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ branch: json['branch'],
48
+ name: json['name'],
49
+ sha: json['sha'],
50
+ sourceRepoId: json['sourceRepoId'],
51
+ sourceRepoName: json['sourceRepoName'],
52
+ sourceRepoOwner: json['sourceRepoOwner'],
53
+ sourceRepoUrl: json['sourceRepoUrl'],
54
+ };
55
+ }
56
+ exports.GitPullRequestFromJSONTyped = GitPullRequestFromJSONTyped;
57
+ function GitPullRequestToJSON(json) {
58
+ return GitPullRequestToJSONTyped(json, false);
59
+ }
60
+ exports.GitPullRequestToJSON = GitPullRequestToJSON;
61
+ function GitPullRequestToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ branch: value['branch'],
67
+ name: value['name'],
68
+ sha: value['sha'],
69
+ sourceRepoId: value['sourceRepoId'],
70
+ sourceRepoName: value['sourceRepoName'],
71
+ sourceRepoOwner: value['sourceRepoOwner'],
72
+ sourceRepoUrl: value['sourceRepoUrl'],
73
+ };
74
+ }
75
+ exports.GitPullRequestToJSONTyped = GitPullRequestToJSONTyped;
@@ -0,0 +1,44 @@
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 GitRepoRequest
16
+ */
17
+ export interface GitRepoRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GitRepoRequest
22
+ */
23
+ password?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitRepoRequest
28
+ */
29
+ path: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GitRepoRequest
34
+ */
35
+ username?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the GitRepoRequest interface.
39
+ */
40
+ export declare function instanceOfGitRepoRequest(value: object): value is GitRepoRequest;
41
+ export declare function GitRepoRequestFromJSON(json: any): GitRepoRequest;
42
+ export declare function GitRepoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitRepoRequest;
43
+ export declare function GitRepoRequestToJSON(json: any): GitRepoRequest;
44
+ export declare function GitRepoRequestToJSONTyped(value?: GitRepoRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.GitRepoRequestToJSONTyped = exports.GitRepoRequestToJSON = exports.GitRepoRequestFromJSONTyped = exports.GitRepoRequestFromJSON = exports.instanceOfGitRepoRequest = void 0;
17
+ /**
18
+ * Check if a given object implements the GitRepoRequest interface.
19
+ */
20
+ function instanceOfGitRepoRequest(value) {
21
+ if (!('path' in value) || value['path'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ exports.instanceOfGitRepoRequest = instanceOfGitRepoRequest;
26
+ function GitRepoRequestFromJSON(json) {
27
+ return GitRepoRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.GitRepoRequestFromJSON = GitRepoRequestFromJSON;
30
+ function GitRepoRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ password: json['password'] == null ? undefined : json['password'],
36
+ path: json['path'],
37
+ username: json['username'] == null ? undefined : json['username'],
38
+ };
39
+ }
40
+ exports.GitRepoRequestFromJSONTyped = GitRepoRequestFromJSONTyped;
41
+ function GitRepoRequestToJSON(json) {
42
+ return GitRepoRequestToJSONTyped(json, false);
43
+ }
44
+ exports.GitRepoRequestToJSON = GitRepoRequestToJSON;
45
+ function GitRepoRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ password: value['password'],
51
+ path: value['path'],
52
+ username: value['username'],
53
+ };
54
+ }
55
+ exports.GitRepoRequestToJSONTyped = GitRepoRequestToJSONTyped;
@@ -0,0 +1,87 @@
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 { CloneTarget } from './CloneTarget';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GitRepository
17
+ */
18
+ export interface GitRepository {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GitRepository
23
+ */
24
+ branch: string;
25
+ /**
26
+ *
27
+ * @type {CloneTarget}
28
+ * @memberof GitRepository
29
+ */
30
+ cloneTarget?: CloneTarget;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GitRepository
35
+ */
36
+ id: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GitRepository
41
+ */
42
+ name: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof GitRepository
47
+ */
48
+ owner: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof GitRepository
53
+ */
54
+ path?: string;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof GitRepository
59
+ */
60
+ prNumber?: number;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof GitRepository
65
+ */
66
+ sha: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof GitRepository
71
+ */
72
+ source: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof GitRepository
77
+ */
78
+ url: string;
79
+ }
80
+ /**
81
+ * Check if a given object implements the GitRepository interface.
82
+ */
83
+ export declare function instanceOfGitRepository(value: object): value is GitRepository;
84
+ export declare function GitRepositoryFromJSON(json: any): GitRepository;
85
+ export declare function GitRepositoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitRepository;
86
+ export declare function GitRepositoryToJSON(json: any): GitRepository;
87
+ export declare function GitRepositoryToJSONTyped(value?: GitRepository | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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.GitRepositoryToJSONTyped = exports.GitRepositoryToJSON = exports.GitRepositoryFromJSONTyped = exports.GitRepositoryFromJSON = exports.instanceOfGitRepository = void 0;
17
+ const CloneTarget_1 = require("./CloneTarget");
18
+ /**
19
+ * Check if a given object implements the GitRepository interface.
20
+ */
21
+ function instanceOfGitRepository(value) {
22
+ if (!('branch' in value) || value['branch'] === undefined)
23
+ return false;
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('owner' in value) || value['owner'] === undefined)
29
+ return false;
30
+ if (!('sha' in value) || value['sha'] === undefined)
31
+ return false;
32
+ if (!('source' in value) || value['source'] === undefined)
33
+ return false;
34
+ if (!('url' in value) || value['url'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ exports.instanceOfGitRepository = instanceOfGitRepository;
39
+ function GitRepositoryFromJSON(json) {
40
+ return GitRepositoryFromJSONTyped(json, false);
41
+ }
42
+ exports.GitRepositoryFromJSON = GitRepositoryFromJSON;
43
+ function GitRepositoryFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ branch: json['branch'],
49
+ cloneTarget: json['cloneTarget'] == null
50
+ ? undefined
51
+ : (0, CloneTarget_1.CloneTargetFromJSON)(json['cloneTarget']),
52
+ id: json['id'],
53
+ name: json['name'],
54
+ owner: json['owner'],
55
+ path: json['path'] == null ? undefined : json['path'],
56
+ prNumber: json['prNumber'] == null ? undefined : json['prNumber'],
57
+ sha: json['sha'],
58
+ source: json['source'],
59
+ url: json['url'],
60
+ };
61
+ }
62
+ exports.GitRepositoryFromJSONTyped = GitRepositoryFromJSONTyped;
63
+ function GitRepositoryToJSON(json) {
64
+ return GitRepositoryToJSONTyped(json, false);
65
+ }
66
+ exports.GitRepositoryToJSON = GitRepositoryToJSON;
67
+ function GitRepositoryToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ branch: value['branch'],
73
+ cloneTarget: (0, CloneTarget_1.CloneTargetToJSON)(value['cloneTarget']),
74
+ id: value['id'],
75
+ name: value['name'],
76
+ owner: value['owner'],
77
+ path: value['path'],
78
+ prNumber: value['prNumber'],
79
+ sha: value['sha'],
80
+ source: value['source'],
81
+ url: value['url'],
82
+ };
83
+ }
84
+ exports.GitRepositoryToJSONTyped = GitRepositoryToJSONTyped;
@@ -0,0 +1,57 @@
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 { FileStatus } from './FileStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GitStatus
17
+ */
18
+ export interface GitStatus {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GitStatus
23
+ */
24
+ ahead?: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GitStatus
29
+ */
30
+ behind?: number;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof GitStatus
35
+ */
36
+ branchPublished?: boolean;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GitStatus
41
+ */
42
+ currentBranch: string;
43
+ /**
44
+ *
45
+ * @type {Array<FileStatus>}
46
+ * @memberof GitStatus
47
+ */
48
+ fileStatus: Array<FileStatus>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GitStatus interface.
52
+ */
53
+ export declare function instanceOfGitStatus(value: object): value is GitStatus;
54
+ export declare function GitStatusFromJSON(json: any): GitStatus;
55
+ export declare function GitStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitStatus;
56
+ export declare function GitStatusToJSON(json: any): GitStatus;
57
+ export declare function GitStatusToJSONTyped(value?: GitStatus | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.GitStatusToJSONTyped = exports.GitStatusToJSON = exports.GitStatusFromJSONTyped = exports.GitStatusFromJSON = exports.instanceOfGitStatus = void 0;
17
+ const FileStatus_1 = require("./FileStatus");
18
+ /**
19
+ * Check if a given object implements the GitStatus interface.
20
+ */
21
+ function instanceOfGitStatus(value) {
22
+ if (!('currentBranch' in value) || value['currentBranch'] === undefined)
23
+ return false;
24
+ if (!('fileStatus' in value) || value['fileStatus'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ exports.instanceOfGitStatus = instanceOfGitStatus;
29
+ function GitStatusFromJSON(json) {
30
+ return GitStatusFromJSONTyped(json, false);
31
+ }
32
+ exports.GitStatusFromJSON = GitStatusFromJSON;
33
+ function GitStatusFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ ahead: json['ahead'] == null ? undefined : json['ahead'],
39
+ behind: json['behind'] == null ? undefined : json['behind'],
40
+ branchPublished: json['branchPublished'] == null ? undefined : json['branchPublished'],
41
+ currentBranch: json['currentBranch'],
42
+ fileStatus: json['fileStatus'].map(FileStatus_1.FileStatusFromJSON),
43
+ };
44
+ }
45
+ exports.GitStatusFromJSONTyped = GitStatusFromJSONTyped;
46
+ function GitStatusToJSON(json) {
47
+ return GitStatusToJSONTyped(json, false);
48
+ }
49
+ exports.GitStatusToJSON = GitStatusToJSON;
50
+ function GitStatusToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ ahead: value['ahead'],
56
+ behind: value['behind'],
57
+ branchPublished: value['branchPublished'],
58
+ currentBranch: value['currentBranch'],
59
+ fileStatus: value['fileStatus'].map(FileStatus_1.FileStatusToJSON),
60
+ };
61
+ }
62
+ exports.GitStatusToJSONTyped = GitStatusToJSONTyped;
@@ -0,0 +1,50 @@
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 GitUser
16
+ */
17
+ export interface GitUser {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GitUser
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitUser
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GitUser
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GitUser
40
+ */
41
+ username: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the GitUser interface.
45
+ */
46
+ export declare function instanceOfGitUser(value: object): value is GitUser;
47
+ export declare function GitUserFromJSON(json: any): GitUser;
48
+ export declare function GitUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GitUser;
49
+ export declare function GitUserToJSON(json: any): GitUser;
50
+ export declare function GitUserToJSONTyped(value?: GitUser | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.GitUserToJSONTyped = exports.GitUserToJSON = exports.GitUserFromJSONTyped = exports.GitUserFromJSON = exports.instanceOfGitUser = void 0;
17
+ /**
18
+ * Check if a given object implements the GitUser interface.
19
+ */
20
+ function instanceOfGitUser(value) {
21
+ if (!('email' in value) || value['email'] === undefined)
22
+ return false;
23
+ if (!('id' in value) || value['id'] === undefined)
24
+ return false;
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('username' in value) || value['username'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ exports.instanceOfGitUser = instanceOfGitUser;
32
+ function GitUserFromJSON(json) {
33
+ return GitUserFromJSONTyped(json, false);
34
+ }
35
+ exports.GitUserFromJSON = GitUserFromJSON;
36
+ function GitUserFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ email: json['email'],
42
+ id: json['id'],
43
+ name: json['name'],
44
+ username: json['username'],
45
+ };
46
+ }
47
+ exports.GitUserFromJSONTyped = GitUserFromJSONTyped;
48
+ function GitUserToJSON(json) {
49
+ return GitUserToJSONTyped(json, false);
50
+ }
51
+ exports.GitUserToJSON = GitUserToJSON;
52
+ function GitUserToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ email: value['email'],
58
+ id: value['id'],
59
+ name: value['name'],
60
+ username: value['username'],
61
+ };
62
+ }
63
+ exports.GitUserToJSONTyped = GitUserToJSONTyped;
@@ -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
+ /**
13
+ *
14
+ * @export
15
+ * @interface InstallProviderRequest
16
+ */
17
+ export interface InstallProviderRequest {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof InstallProviderRequest
22
+ */
23
+ downloadUrls: {
24
+ [key: string]: string;
25
+ };
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof InstallProviderRequest
30
+ */
31
+ name: string;
32
+ }
33
+ /**
34
+ * Check if a given object implements the InstallProviderRequest interface.
35
+ */
36
+ export declare function instanceOfInstallProviderRequest(value: object): value is InstallProviderRequest;
37
+ export declare function InstallProviderRequestFromJSON(json: any): InstallProviderRequest;
38
+ export declare function InstallProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallProviderRequest;
39
+ export declare function InstallProviderRequestToJSON(json: any): InstallProviderRequest;
40
+ export declare function InstallProviderRequestToJSONTyped(value?: InstallProviderRequest | null, ignoreDiscriminator?: boolean): any;