@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,67 @@
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.PrebuildConfigToJSONTyped = exports.PrebuildConfigToJSON = exports.PrebuildConfigFromJSONTyped = exports.PrebuildConfigFromJSON = exports.instanceOfPrebuildConfig = void 0;
17
+ /**
18
+ * Check if a given object implements the PrebuildConfig interface.
19
+ */
20
+ function instanceOfPrebuildConfig(value) {
21
+ if (!('branch' in value) || value['branch'] === undefined)
22
+ return false;
23
+ if (!('commitInterval' in value) || value['commitInterval'] === undefined)
24
+ return false;
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('retention' in value) || value['retention'] === undefined)
28
+ return false;
29
+ if (!('triggerFiles' in value) || value['triggerFiles'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ exports.instanceOfPrebuildConfig = instanceOfPrebuildConfig;
34
+ function PrebuildConfigFromJSON(json) {
35
+ return PrebuildConfigFromJSONTyped(json, false);
36
+ }
37
+ exports.PrebuildConfigFromJSON = PrebuildConfigFromJSON;
38
+ function PrebuildConfigFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ branch: json['branch'],
44
+ commitInterval: json['commitInterval'],
45
+ id: json['id'],
46
+ retention: json['retention'],
47
+ triggerFiles: json['triggerFiles'],
48
+ };
49
+ }
50
+ exports.PrebuildConfigFromJSONTyped = PrebuildConfigFromJSONTyped;
51
+ function PrebuildConfigToJSON(json) {
52
+ return PrebuildConfigToJSONTyped(json, false);
53
+ }
54
+ exports.PrebuildConfigToJSON = PrebuildConfigToJSON;
55
+ function PrebuildConfigToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ branch: value['branch'],
61
+ commitInterval: value['commitInterval'],
62
+ id: value['id'],
63
+ retention: value['retention'],
64
+ triggerFiles: value['triggerFiles'],
65
+ };
66
+ }
67
+ exports.PrebuildConfigToJSONTyped = PrebuildConfigToJSONTyped;
@@ -0,0 +1,62 @@
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 PrebuildDTO
16
+ */
17
+ export interface PrebuildDTO {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PrebuildDTO
22
+ */
23
+ branch: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PrebuildDTO
28
+ */
29
+ commitInterval?: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PrebuildDTO
34
+ */
35
+ id: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PrebuildDTO
40
+ */
41
+ projectConfigName: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PrebuildDTO
46
+ */
47
+ retention: number;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof PrebuildDTO
52
+ */
53
+ triggerFiles?: Array<string>;
54
+ }
55
+ /**
56
+ * Check if a given object implements the PrebuildDTO interface.
57
+ */
58
+ export declare function instanceOfPrebuildDTO(value: object): value is PrebuildDTO;
59
+ export declare function PrebuildDTOFromJSON(json: any): PrebuildDTO;
60
+ export declare function PrebuildDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PrebuildDTO;
61
+ export declare function PrebuildDTOToJSON(json: any): PrebuildDTO;
62
+ export declare function PrebuildDTOToJSONTyped(value?: PrebuildDTO | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.PrebuildDTOToJSONTyped = exports.PrebuildDTOToJSON = exports.PrebuildDTOFromJSONTyped = exports.PrebuildDTOFromJSON = exports.instanceOfPrebuildDTO = void 0;
17
+ /**
18
+ * Check if a given object implements the PrebuildDTO interface.
19
+ */
20
+ function instanceOfPrebuildDTO(value) {
21
+ if (!('branch' in value) || value['branch'] === undefined)
22
+ return false;
23
+ if (!('id' in value) || value['id'] === undefined)
24
+ return false;
25
+ if (!('projectConfigName' in value) ||
26
+ value['projectConfigName'] === undefined)
27
+ return false;
28
+ if (!('retention' in value) || value['retention'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ exports.instanceOfPrebuildDTO = instanceOfPrebuildDTO;
33
+ function PrebuildDTOFromJSON(json) {
34
+ return PrebuildDTOFromJSONTyped(json, false);
35
+ }
36
+ exports.PrebuildDTOFromJSON = PrebuildDTOFromJSON;
37
+ function PrebuildDTOFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ branch: json['branch'],
43
+ commitInterval: json['commitInterval'] == null ? undefined : json['commitInterval'],
44
+ id: json['id'],
45
+ projectConfigName: json['projectConfigName'],
46
+ retention: json['retention'],
47
+ triggerFiles: json['triggerFiles'] == null ? undefined : json['triggerFiles'],
48
+ };
49
+ }
50
+ exports.PrebuildDTOFromJSONTyped = PrebuildDTOFromJSONTyped;
51
+ function PrebuildDTOToJSON(json) {
52
+ return PrebuildDTOToJSONTyped(json, false);
53
+ }
54
+ exports.PrebuildDTOToJSON = PrebuildDTOToJSON;
55
+ function PrebuildDTOToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ branch: value['branch'],
61
+ commitInterval: value['commitInterval'],
62
+ id: value['id'],
63
+ projectConfigName: value['projectConfigName'],
64
+ retention: value['retention'],
65
+ triggerFiles: value['triggerFiles'],
66
+ };
67
+ }
68
+ exports.PrebuildDTOToJSONTyped = PrebuildDTOToJSONTyped;
@@ -0,0 +1,34 @@
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 ProfileData
16
+ */
17
+ export interface ProfileData {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof ProfileData
22
+ */
23
+ envVars: {
24
+ [key: string]: string;
25
+ };
26
+ }
27
+ /**
28
+ * Check if a given object implements the ProfileData interface.
29
+ */
30
+ export declare function instanceOfProfileData(value: object): value is ProfileData;
31
+ export declare function ProfileDataFromJSON(json: any): ProfileData;
32
+ export declare function ProfileDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileData;
33
+ export declare function ProfileDataToJSON(json: any): ProfileData;
34
+ export declare function ProfileDataToJSONTyped(value?: ProfileData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.ProfileDataToJSONTyped = exports.ProfileDataToJSON = exports.ProfileDataFromJSONTyped = exports.ProfileDataFromJSON = exports.instanceOfProfileData = void 0;
17
+ /**
18
+ * Check if a given object implements the ProfileData interface.
19
+ */
20
+ function instanceOfProfileData(value) {
21
+ if (!('envVars' in value) || value['envVars'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ exports.instanceOfProfileData = instanceOfProfileData;
26
+ function ProfileDataFromJSON(json) {
27
+ return ProfileDataFromJSONTyped(json, false);
28
+ }
29
+ exports.ProfileDataFromJSON = ProfileDataFromJSON;
30
+ function ProfileDataFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ envVars: json['envVars'],
36
+ };
37
+ }
38
+ exports.ProfileDataFromJSONTyped = ProfileDataFromJSONTyped;
39
+ function ProfileDataToJSON(json) {
40
+ return ProfileDataToJSONTyped(json, false);
41
+ }
42
+ exports.ProfileDataToJSON = ProfileDataToJSON;
43
+ function ProfileDataToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ envVars: value['envVars'],
49
+ };
50
+ }
51
+ exports.ProfileDataToJSONTyped = ProfileDataToJSONTyped;
@@ -0,0 +1,91 @@
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 { GitRepository } from './GitRepository';
13
+ import type { BuildConfig } from './BuildConfig';
14
+ import type { ProjectState } from './ProjectState';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface Project
19
+ */
20
+ export interface Project {
21
+ /**
22
+ *
23
+ * @type {BuildConfig}
24
+ * @memberof Project
25
+ */
26
+ buildConfig?: BuildConfig;
27
+ /**
28
+ *
29
+ * @type {{ [key: string]: string; }}
30
+ * @memberof Project
31
+ */
32
+ envVars: {
33
+ [key: string]: string;
34
+ };
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Project
39
+ */
40
+ gitProviderConfigId?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof Project
45
+ */
46
+ image: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof Project
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {GitRepository}
56
+ * @memberof Project
57
+ */
58
+ repository: GitRepository;
59
+ /**
60
+ *
61
+ * @type {ProjectState}
62
+ * @memberof Project
63
+ */
64
+ state?: ProjectState;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof Project
69
+ */
70
+ target: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof Project
75
+ */
76
+ user: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof Project
81
+ */
82
+ workspaceId: string;
83
+ }
84
+ /**
85
+ * Check if a given object implements the Project interface.
86
+ */
87
+ export declare function instanceOfProject(value: object): value is Project;
88
+ export declare function ProjectFromJSON(json: any): Project;
89
+ export declare function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project;
90
+ export declare function ProjectToJSON(json: any): Project;
91
+ export declare function ProjectToJSONTyped(value?: Project | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,88 @@
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.ProjectToJSONTyped = exports.ProjectToJSON = exports.ProjectFromJSONTyped = exports.ProjectFromJSON = exports.instanceOfProject = void 0;
17
+ const GitRepository_1 = require("./GitRepository");
18
+ const BuildConfig_1 = require("./BuildConfig");
19
+ const ProjectState_1 = require("./ProjectState");
20
+ /**
21
+ * Check if a given object implements the Project interface.
22
+ */
23
+ function instanceOfProject(value) {
24
+ if (!('envVars' in value) || value['envVars'] === undefined)
25
+ return false;
26
+ if (!('image' in value) || value['image'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('repository' in value) || value['repository'] === undefined)
31
+ return false;
32
+ if (!('target' in value) || value['target'] === undefined)
33
+ return false;
34
+ if (!('user' in value) || value['user'] === undefined)
35
+ return false;
36
+ if (!('workspaceId' in value) || value['workspaceId'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ exports.instanceOfProject = instanceOfProject;
41
+ function ProjectFromJSON(json) {
42
+ return ProjectFromJSONTyped(json, false);
43
+ }
44
+ exports.ProjectFromJSON = ProjectFromJSON;
45
+ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ buildConfig: json['buildConfig'] == null
51
+ ? undefined
52
+ : (0, BuildConfig_1.BuildConfigFromJSON)(json['buildConfig']),
53
+ envVars: json['envVars'],
54
+ gitProviderConfigId: json['gitProviderConfigId'] == null
55
+ ? undefined
56
+ : json['gitProviderConfigId'],
57
+ image: json['image'],
58
+ name: json['name'],
59
+ repository: (0, GitRepository_1.GitRepositoryFromJSON)(json['repository']),
60
+ state: json['state'] == null ? undefined : (0, ProjectState_1.ProjectStateFromJSON)(json['state']),
61
+ target: json['target'],
62
+ user: json['user'],
63
+ workspaceId: json['workspaceId'],
64
+ };
65
+ }
66
+ exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
67
+ function ProjectToJSON(json) {
68
+ return ProjectToJSONTyped(json, false);
69
+ }
70
+ exports.ProjectToJSON = ProjectToJSON;
71
+ function ProjectToJSONTyped(value, ignoreDiscriminator = false) {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+ return {
76
+ buildConfig: (0, BuildConfig_1.BuildConfigToJSON)(value['buildConfig']),
77
+ envVars: value['envVars'],
78
+ gitProviderConfigId: value['gitProviderConfigId'],
79
+ image: value['image'],
80
+ name: value['name'],
81
+ repository: (0, GitRepository_1.GitRepositoryToJSON)(value['repository']),
82
+ state: (0, ProjectState_1.ProjectStateToJSON)(value['state']),
83
+ target: value['target'],
84
+ user: value['user'],
85
+ workspaceId: value['workspaceId'],
86
+ };
87
+ }
88
+ exports.ProjectToJSONTyped = ProjectToJSONTyped;
@@ -0,0 +1,84 @@
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 { PrebuildConfig } from './PrebuildConfig';
13
+ import type { BuildConfig } from './BuildConfig';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProjectConfig
18
+ */
19
+ export interface ProjectConfig {
20
+ /**
21
+ *
22
+ * @type {BuildConfig}
23
+ * @memberof ProjectConfig
24
+ */
25
+ buildConfig?: BuildConfig;
26
+ /**
27
+ *
28
+ * @type {boolean}
29
+ * @memberof ProjectConfig
30
+ */
31
+ _default: boolean;
32
+ /**
33
+ *
34
+ * @type {{ [key: string]: string; }}
35
+ * @memberof ProjectConfig
36
+ */
37
+ envVars: {
38
+ [key: string]: string;
39
+ };
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ProjectConfig
44
+ */
45
+ gitProviderConfigId?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ProjectConfig
50
+ */
51
+ image: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ProjectConfig
56
+ */
57
+ name: string;
58
+ /**
59
+ *
60
+ * @type {Array<PrebuildConfig>}
61
+ * @memberof ProjectConfig
62
+ */
63
+ prebuilds?: Array<PrebuildConfig>;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ProjectConfig
68
+ */
69
+ repositoryUrl: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof ProjectConfig
74
+ */
75
+ user: string;
76
+ }
77
+ /**
78
+ * Check if a given object implements the ProjectConfig interface.
79
+ */
80
+ export declare function instanceOfProjectConfig(value: object): value is ProjectConfig;
81
+ export declare function ProjectConfigFromJSON(json: any): ProjectConfig;
82
+ export declare function ProjectConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectConfig;
83
+ export declare function ProjectConfigToJSON(json: any): ProjectConfig;
84
+ export declare function ProjectConfigToJSONTyped(value?: ProjectConfig | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,87 @@
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.ProjectConfigToJSONTyped = exports.ProjectConfigToJSON = exports.ProjectConfigFromJSONTyped = exports.ProjectConfigFromJSON = exports.instanceOfProjectConfig = void 0;
17
+ const PrebuildConfig_1 = require("./PrebuildConfig");
18
+ const BuildConfig_1 = require("./BuildConfig");
19
+ /**
20
+ * Check if a given object implements the ProjectConfig interface.
21
+ */
22
+ function instanceOfProjectConfig(value) {
23
+ if (!('_default' in value) || value['_default'] === undefined)
24
+ return false;
25
+ if (!('envVars' in value) || value['envVars'] === undefined)
26
+ return false;
27
+ if (!('image' in value) || value['image'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('repositoryUrl' in value) || value['repositoryUrl'] === undefined)
32
+ return false;
33
+ if (!('user' in value) || value['user'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ exports.instanceOfProjectConfig = instanceOfProjectConfig;
38
+ function ProjectConfigFromJSON(json) {
39
+ return ProjectConfigFromJSONTyped(json, false);
40
+ }
41
+ exports.ProjectConfigFromJSON = ProjectConfigFromJSON;
42
+ function ProjectConfigFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ buildConfig: json['buildConfig'] == null
48
+ ? undefined
49
+ : (0, BuildConfig_1.BuildConfigFromJSON)(json['buildConfig']),
50
+ _default: json['default'],
51
+ envVars: json['envVars'],
52
+ gitProviderConfigId: json['gitProviderConfigId'] == null
53
+ ? undefined
54
+ : json['gitProviderConfigId'],
55
+ image: json['image'],
56
+ name: json['name'],
57
+ prebuilds: json['prebuilds'] == null
58
+ ? undefined
59
+ : json['prebuilds'].map(PrebuildConfig_1.PrebuildConfigFromJSON),
60
+ repositoryUrl: json['repositoryUrl'],
61
+ user: json['user'],
62
+ };
63
+ }
64
+ exports.ProjectConfigFromJSONTyped = ProjectConfigFromJSONTyped;
65
+ function ProjectConfigToJSON(json) {
66
+ return ProjectConfigToJSONTyped(json, false);
67
+ }
68
+ exports.ProjectConfigToJSON = ProjectConfigToJSON;
69
+ function ProjectConfigToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ buildConfig: (0, BuildConfig_1.BuildConfigToJSON)(value['buildConfig']),
75
+ default: value['_default'],
76
+ envVars: value['envVars'],
77
+ gitProviderConfigId: value['gitProviderConfigId'],
78
+ image: value['image'],
79
+ name: value['name'],
80
+ prebuilds: value['prebuilds'] == null
81
+ ? undefined
82
+ : value['prebuilds'].map(PrebuildConfig_1.PrebuildConfigToJSON),
83
+ repositoryUrl: value['repositoryUrl'],
84
+ user: value['user'],
85
+ };
86
+ }
87
+ exports.ProjectConfigToJSONTyped = ProjectConfigToJSONTyped;
@@ -0,0 +1,32 @@
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 ProjectDirResponse
16
+ */
17
+ export interface ProjectDirResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ProjectDirResponse
22
+ */
23
+ dir?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ProjectDirResponse interface.
27
+ */
28
+ export declare function instanceOfProjectDirResponse(value: object): value is ProjectDirResponse;
29
+ export declare function ProjectDirResponseFromJSON(json: any): ProjectDirResponse;
30
+ export declare function ProjectDirResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectDirResponse;
31
+ export declare function ProjectDirResponseToJSON(json: any): ProjectDirResponse;
32
+ export declare function ProjectDirResponseToJSONTyped(value?: ProjectDirResponse | null, ignoreDiscriminator?: boolean): any;