@daytonaio/api-client 0.1.0 → 0.2.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 (218) hide show
  1. package/.openapi-generator/FILES +26 -23
  2. package/README.md +3 -3
  3. package/api/default-api.ts +3621 -0
  4. package/api/docker-registry-api.ts +572 -0
  5. package/api.ts +19 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +110 -0
  9. package/dist/api/default-api.d.ts +1621 -0
  10. package/dist/api/default-api.js +3393 -0
  11. package/dist/api/docker-registry-api.d.ts +269 -0
  12. package/dist/api/docker-registry-api.js +547 -0
  13. package/dist/api.d.ts +13 -0
  14. package/dist/{apis/index.js → api.js} +15 -4
  15. package/dist/base.d.ts +66 -0
  16. package/dist/base.js +65 -0
  17. package/dist/common.d.ts +65 -0
  18. package/dist/common.js +161 -0
  19. package/dist/configuration.d.ts +91 -0
  20. package/dist/configuration.js +43 -0
  21. package/dist/esm/api/default-api.d.ts +1621 -0
  22. package/dist/esm/api/default-api.js +3386 -0
  23. package/dist/esm/api/docker-registry-api.d.ts +269 -0
  24. package/dist/esm/api/docker-registry-api.js +540 -0
  25. package/dist/esm/api.d.ts +13 -0
  26. package/dist/esm/api.js +15 -0
  27. package/dist/esm/base.d.ts +66 -0
  28. package/dist/esm/base.js +60 -0
  29. package/dist/esm/common.d.ts +65 -0
  30. package/dist/esm/common.js +149 -0
  31. package/dist/esm/configuration.d.ts +91 -0
  32. package/dist/esm/configuration.js +39 -0
  33. package/dist/esm/index.d.ts +14 -3
  34. package/dist/esm/index.js +14 -3
  35. package/dist/esm/models/{ApiKeyListDto.d.ts → api-key-list-dto.d.ts} +4 -12
  36. package/dist/esm/models/api-key-list-dto.js +14 -0
  37. package/dist/esm/models/{ApiKeyResponseDto.d.ts → api-key-response-dto.d.ts} +4 -12
  38. package/dist/esm/models/api-key-response-dto.js +14 -0
  39. package/dist/esm/models/create-api-key-dto.d.ts +24 -0
  40. package/dist/esm/models/create-api-key-dto.js +14 -0
  41. package/dist/{models/CreateDockerRegistryDto.d.ts → esm/models/create-docker-registry-dto.d.ts} +6 -14
  42. package/dist/esm/models/create-docker-registry-dto.js +14 -0
  43. package/dist/{models/CreateWorkspaceDto.d.ts → esm/models/create-workspace-dto.d.ts} +6 -14
  44. package/dist/esm/models/create-workspace-dto.js +14 -0
  45. package/dist/esm/models/execute-request-dto.d.ts +30 -0
  46. package/dist/esm/models/execute-request-dto.js +14 -0
  47. package/dist/esm/models/execute-response-dto.d.ts +30 -0
  48. package/dist/esm/models/execute-response-dto.js +14 -0
  49. package/dist/esm/models/git-add-request-dto.d.ts +30 -0
  50. package/dist/esm/models/git-add-request-dto.js +14 -0
  51. package/dist/esm/models/git-branch-request-dto.d.ts +30 -0
  52. package/dist/esm/models/git-branch-request-dto.js +14 -0
  53. package/dist/{models/GitCloneRequestDto.d.ts → esm/models/git-clone-request-dto.d.ts} +6 -14
  54. package/dist/esm/models/git-clone-request-dto.js +14 -0
  55. package/dist/{models/GitCommitRequestDto.d.ts → esm/models/git-commit-request-dto.d.ts} +4 -12
  56. package/dist/esm/models/git-commit-request-dto.js +14 -0
  57. package/dist/esm/models/git-repo-request-dto.d.ts +36 -0
  58. package/dist/esm/models/git-repo-request-dto.js +14 -0
  59. package/dist/esm/models/index.d.ts +17 -17
  60. package/dist/esm/models/index.js +17 -19
  61. package/dist/esm/models/replace-request-dto.d.ts +36 -0
  62. package/dist/esm/models/replace-request-dto.js +14 -0
  63. package/dist/{models/UpdateDockerRegistryDto.d.ts → esm/models/update-docker-registry-dto.d.ts} +6 -14
  64. package/dist/esm/models/update-docker-registry-dto.js +14 -0
  65. package/dist/{models/WorkspaceDto.d.ts → esm/models/workspace-dto.d.ts} +8 -16
  66. package/dist/esm/models/workspace-dto.js +14 -0
  67. package/dist/esm/models/{WorkspaceInfoDto.d.ts → workspace-info-dto.d.ts} +3 -11
  68. package/dist/esm/models/workspace-info-dto.js +14 -0
  69. package/dist/esm/models/workspace-labels-dto.d.ts +26 -0
  70. package/dist/esm/models/workspace-labels-dto.js +14 -0
  71. package/dist/index.d.ts +14 -3
  72. package/dist/index.js +16 -5
  73. package/dist/models/{ApiKeyListDto.d.ts → api-key-list-dto.d.ts} +4 -12
  74. package/dist/models/api-key-list-dto.js +15 -0
  75. package/dist/models/{ApiKeyResponseDto.d.ts → api-key-response-dto.d.ts} +4 -12
  76. package/dist/models/api-key-response-dto.js +15 -0
  77. package/dist/models/create-api-key-dto.d.ts +24 -0
  78. package/dist/models/create-api-key-dto.js +15 -0
  79. package/dist/{esm/models/CreateDockerRegistryDto.d.ts → models/create-docker-registry-dto.d.ts} +6 -14
  80. package/dist/models/create-docker-registry-dto.js +15 -0
  81. package/dist/{esm/models/CreateWorkspaceDto.d.ts → models/create-workspace-dto.d.ts} +6 -14
  82. package/dist/models/create-workspace-dto.js +15 -0
  83. package/dist/models/execute-request-dto.d.ts +30 -0
  84. package/dist/models/execute-request-dto.js +15 -0
  85. package/dist/models/execute-response-dto.d.ts +30 -0
  86. package/dist/models/execute-response-dto.js +15 -0
  87. package/dist/models/git-add-request-dto.d.ts +30 -0
  88. package/dist/models/git-add-request-dto.js +15 -0
  89. package/dist/models/git-branch-request-dto.d.ts +30 -0
  90. package/dist/models/git-branch-request-dto.js +15 -0
  91. package/dist/{esm/models/GitCloneRequestDto.d.ts → models/git-clone-request-dto.d.ts} +6 -14
  92. package/dist/models/git-clone-request-dto.js +15 -0
  93. package/dist/{esm/models/GitCommitRequestDto.d.ts → models/git-commit-request-dto.d.ts} +4 -12
  94. package/dist/models/git-commit-request-dto.js +15 -0
  95. package/dist/models/git-repo-request-dto.d.ts +36 -0
  96. package/dist/models/git-repo-request-dto.js +15 -0
  97. package/dist/models/index.d.ts +17 -17
  98. package/dist/models/index.js +17 -19
  99. package/dist/models/replace-request-dto.d.ts +36 -0
  100. package/dist/models/replace-request-dto.js +15 -0
  101. package/dist/{esm/models/UpdateDockerRegistryDto.d.ts → models/update-docker-registry-dto.d.ts} +6 -14
  102. package/dist/models/update-docker-registry-dto.js +15 -0
  103. package/dist/{esm/models/WorkspaceDto.d.ts → models/workspace-dto.d.ts} +8 -16
  104. package/dist/models/workspace-dto.js +15 -0
  105. package/dist/models/{WorkspaceInfoDto.d.ts → workspace-info-dto.d.ts} +3 -11
  106. package/dist/models/workspace-info-dto.js +15 -0
  107. package/dist/models/workspace-labels-dto.d.ts +26 -0
  108. package/dist/models/workspace-labels-dto.js +15 -0
  109. package/git_push.sh +57 -0
  110. package/index.ts +18 -0
  111. package/models/api-key-list-dto.ts +42 -0
  112. package/models/api-key-response-dto.ts +42 -0
  113. package/models/create-api-key-dto.ts +30 -0
  114. package/models/create-docker-registry-dto.ts +60 -0
  115. package/models/create-workspace-dto.ts +60 -0
  116. package/models/execute-request-dto.ts +36 -0
  117. package/models/execute-response-dto.ts +36 -0
  118. package/models/git-add-request-dto.ts +36 -0
  119. package/models/git-branch-request-dto.ts +36 -0
  120. package/models/git-clone-request-dto.ts +60 -0
  121. package/models/git-commit-request-dto.ts +48 -0
  122. package/models/git-repo-request-dto.ts +42 -0
  123. package/models/index.ts +17 -0
  124. package/models/replace-request-dto.ts +42 -0
  125. package/models/update-docker-registry-dto.ts +60 -0
  126. package/models/workspace-dto.ts +69 -0
  127. package/models/workspace-info-dto.ts +42 -0
  128. package/models/workspace-labels-dto.ts +30 -0
  129. package/package.json +14 -3
  130. package/tsconfig.json +4 -2
  131. package/dist/apis/DefaultApi.d.ts +0 -551
  132. package/dist/apis/DefaultApi.js +0 -1645
  133. package/dist/apis/DockerRegistryApi.d.ts +0 -90
  134. package/dist/apis/DockerRegistryApi.js +0 -257
  135. package/dist/apis/index.d.ts +0 -2
  136. package/dist/esm/apis/DefaultApi.d.ts +0 -551
  137. package/dist/esm/apis/DefaultApi.js +0 -1641
  138. package/dist/esm/apis/DockerRegistryApi.d.ts +0 -90
  139. package/dist/esm/apis/DockerRegistryApi.js +0 -253
  140. package/dist/esm/apis/index.d.ts +0 -2
  141. package/dist/esm/apis/index.js +0 -4
  142. package/dist/esm/models/ApiKeyListDto.js +0 -51
  143. package/dist/esm/models/ApiKeyResponseDto.js +0 -51
  144. package/dist/esm/models/CreateApiKeyDto.d.ts +0 -32
  145. package/dist/esm/models/CreateApiKeyDto.js +0 -43
  146. package/dist/esm/models/CreateDockerRegistryDto.js +0 -61
  147. package/dist/esm/models/CreateWorkspaceDto.js +0 -63
  148. package/dist/esm/models/ExecuteRequestDto.d.ts +0 -38
  149. package/dist/esm/models/ExecuteRequestDto.js +0 -45
  150. package/dist/esm/models/ExecuteResponseDto.d.ts +0 -38
  151. package/dist/esm/models/ExecuteResponseDto.js +0 -47
  152. package/dist/esm/models/GitAddRequestDto.d.ts +0 -38
  153. package/dist/esm/models/GitAddRequestDto.js +0 -47
  154. package/dist/esm/models/GitBranchRequestDto.d.ts +0 -38
  155. package/dist/esm/models/GitBranchRequestDto.js +0 -47
  156. package/dist/esm/models/GitCloneRequestDto.js +0 -55
  157. package/dist/esm/models/GitCommitRequestDto.js +0 -55
  158. package/dist/esm/models/GitRepoRequestDto.d.ts +0 -44
  159. package/dist/esm/models/GitRepoRequestDto.js +0 -47
  160. package/dist/esm/models/ReplaceRequestDto.d.ts +0 -44
  161. package/dist/esm/models/ReplaceRequestDto.js +0 -51
  162. package/dist/esm/models/UpdateDockerRegistryDto.js +0 -51
  163. package/dist/esm/models/WorkspaceDto.js +0 -66
  164. package/dist/esm/models/WorkspaceInfoDto.js +0 -49
  165. package/dist/esm/models/WorkspaceLabelsDto.d.ts +0 -34
  166. package/dist/esm/models/WorkspaceLabelsDto.js +0 -43
  167. package/dist/esm/runtime.d.ts +0 -181
  168. package/dist/esm/runtime.js +0 -326
  169. package/dist/models/ApiKeyListDto.js +0 -59
  170. package/dist/models/ApiKeyResponseDto.js +0 -59
  171. package/dist/models/CreateApiKeyDto.d.ts +0 -32
  172. package/dist/models/CreateApiKeyDto.js +0 -51
  173. package/dist/models/CreateDockerRegistryDto.js +0 -69
  174. package/dist/models/CreateWorkspaceDto.js +0 -71
  175. package/dist/models/ExecuteRequestDto.d.ts +0 -38
  176. package/dist/models/ExecuteRequestDto.js +0 -53
  177. package/dist/models/ExecuteResponseDto.d.ts +0 -38
  178. package/dist/models/ExecuteResponseDto.js +0 -55
  179. package/dist/models/GitAddRequestDto.d.ts +0 -38
  180. package/dist/models/GitAddRequestDto.js +0 -55
  181. package/dist/models/GitBranchRequestDto.d.ts +0 -38
  182. package/dist/models/GitBranchRequestDto.js +0 -55
  183. package/dist/models/GitCloneRequestDto.js +0 -63
  184. package/dist/models/GitCommitRequestDto.js +0 -63
  185. package/dist/models/GitRepoRequestDto.d.ts +0 -44
  186. package/dist/models/GitRepoRequestDto.js +0 -55
  187. package/dist/models/ReplaceRequestDto.d.ts +0 -44
  188. package/dist/models/ReplaceRequestDto.js +0 -59
  189. package/dist/models/UpdateDockerRegistryDto.js +0 -59
  190. package/dist/models/WorkspaceDto.js +0 -74
  191. package/dist/models/WorkspaceInfoDto.js +0 -57
  192. package/dist/models/WorkspaceLabelsDto.d.ts +0 -34
  193. package/dist/models/WorkspaceLabelsDto.js +0 -51
  194. package/dist/runtime.d.ts +0 -181
  195. package/dist/runtime.js +0 -341
  196. package/src/apis/DefaultApi.ts +0 -2380
  197. package/src/apis/DockerRegistryApi.ts +0 -318
  198. package/src/apis/index.ts +0 -4
  199. package/src/index.ts +0 -5
  200. package/src/models/ApiKeyListDto.ts +0 -84
  201. package/src/models/ApiKeyResponseDto.ts +0 -84
  202. package/src/models/CreateApiKeyDto.ts +0 -66
  203. package/src/models/CreateDockerRegistryDto.ts +0 -110
  204. package/src/models/CreateWorkspaceDto.ts +0 -111
  205. package/src/models/ExecuteRequestDto.ts +0 -74
  206. package/src/models/ExecuteResponseDto.ts +0 -75
  207. package/src/models/GitAddRequestDto.ts +0 -75
  208. package/src/models/GitBranchRequestDto.ts +0 -75
  209. package/src/models/GitCloneRequestDto.ts +0 -107
  210. package/src/models/GitCommitRequestDto.ts +0 -93
  211. package/src/models/GitRepoRequestDto.ts +0 -82
  212. package/src/models/ReplaceRequestDto.ts +0 -84
  213. package/src/models/UpdateDockerRegistryDto.ts +0 -105
  214. package/src/models/WorkspaceDto.ts +0 -127
  215. package/src/models/WorkspaceInfoDto.ts +0 -83
  216. package/src/models/WorkspaceLabelsDto.ts +0 -66
  217. package/src/models/index.ts +0 -19
  218. package/src/runtime.ts +0 -426
@@ -0,0 +1,540 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * DockerRegistryApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const DockerRegistryApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary Create a new docker registry
38
+ * @param {CreateDockerRegistryDto} createDockerRegistryDto
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ dockerRegistryControllerCreate: (createDockerRegistryDto_1, ...args_1) => __awaiter(this, [createDockerRegistryDto_1, ...args_1], void 0, function* (createDockerRegistryDto, options = {}) {
43
+ // verify required parameter 'createDockerRegistryDto' is not null or undefined
44
+ assertParamExists('dockerRegistryControllerCreate', 'createDockerRegistryDto', createDockerRegistryDto);
45
+ const localVarPath = `/docker-registry`;
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication oauth2 required
56
+ // oauth required
57
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(createDockerRegistryDto, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ *
70
+ * @summary Get all docker registries
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ dockerRegistryControllerFindAll: (...args_2) => __awaiter(this, [...args_2], void 0, function* (options = {}) {
75
+ const localVarPath = `/docker-registry`;
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ if (configuration) {
80
+ baseOptions = configuration.baseOptions;
81
+ }
82
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
83
+ const localVarHeaderParameter = {};
84
+ const localVarQueryParameter = {};
85
+ // authentication oauth2 required
86
+ // oauth required
87
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
91
+ return {
92
+ url: toPathString(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ }),
96
+ /**
97
+ *
98
+ * @summary Get a docker registry by id
99
+ * @param {string} id
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ dockerRegistryControllerFindOne: (id_1, ...args_3) => __awaiter(this, [id_1, ...args_3], void 0, function* (id, options = {}) {
104
+ // verify required parameter 'id' is not null or undefined
105
+ assertParamExists('dockerRegistryControllerFindOne', 'id', id);
106
+ const localVarPath = `/docker-registry/{id}`
107
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
110
+ let baseOptions;
111
+ if (configuration) {
112
+ baseOptions = configuration.baseOptions;
113
+ }
114
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
115
+ const localVarHeaderParameter = {};
116
+ const localVarQueryParameter = {};
117
+ // authentication oauth2 required
118
+ // oauth required
119
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
123
+ return {
124
+ url: toPathString(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ }),
128
+ /**
129
+ *
130
+ * @summary Get the default docker registry
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ dockerRegistryControllerGetDefault: (...args_4) => __awaiter(this, [...args_4], void 0, function* (options = {}) {
135
+ const localVarPath = `/docker-registry/default`;
136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
+ let baseOptions;
139
+ if (configuration) {
140
+ baseOptions = configuration.baseOptions;
141
+ }
142
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
143
+ const localVarHeaderParameter = {};
144
+ const localVarQueryParameter = {};
145
+ // authentication oauth2 required
146
+ // oauth required
147
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ *
158
+ * @summary Delete a docker registry
159
+ * @param {string} id
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ dockerRegistryControllerRemove: (id_2, ...args_5) => __awaiter(this, [id_2, ...args_5], void 0, function* (id, options = {}) {
164
+ // verify required parameter 'id' is not null or undefined
165
+ assertParamExists('dockerRegistryControllerRemove', 'id', id);
166
+ const localVarPath = `/docker-registry/{id}`
167
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
170
+ let baseOptions;
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ }
174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
175
+ const localVarHeaderParameter = {};
176
+ const localVarQueryParameter = {};
177
+ // authentication oauth2 required
178
+ // oauth required
179
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
183
+ return {
184
+ url: toPathString(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ }),
188
+ /**
189
+ *
190
+ * @summary Set a docker registry as default
191
+ * @param {string} id
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ dockerRegistryControllerSetDefault: (id_3, ...args_6) => __awaiter(this, [id_3, ...args_6], void 0, function* (id, options = {}) {
196
+ // verify required parameter 'id' is not null or undefined
197
+ assertParamExists('dockerRegistryControllerSetDefault', 'id', id);
198
+ const localVarPath = `/docker-registry/{id}/set-default`
199
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
200
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
201
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
202
+ let baseOptions;
203
+ if (configuration) {
204
+ baseOptions = configuration.baseOptions;
205
+ }
206
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
207
+ const localVarHeaderParameter = {};
208
+ const localVarQueryParameter = {};
209
+ // authentication oauth2 required
210
+ // oauth required
211
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ };
219
+ }),
220
+ /**
221
+ *
222
+ * @summary Update a docker registry
223
+ * @param {string} id
224
+ * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ dockerRegistryControllerUpdate: (id_4, updateDockerRegistryDto_1, ...args_7) => __awaiter(this, [id_4, updateDockerRegistryDto_1, ...args_7], void 0, function* (id, updateDockerRegistryDto, options = {}) {
229
+ // verify required parameter 'id' is not null or undefined
230
+ assertParamExists('dockerRegistryControllerUpdate', 'id', id);
231
+ // verify required parameter 'updateDockerRegistryDto' is not null or undefined
232
+ assertParamExists('dockerRegistryControllerUpdate', 'updateDockerRegistryDto', updateDockerRegistryDto);
233
+ const localVarPath = `/docker-registry/{id}`
234
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
237
+ let baseOptions;
238
+ if (configuration) {
239
+ baseOptions = configuration.baseOptions;
240
+ }
241
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
242
+ const localVarHeaderParameter = {};
243
+ const localVarQueryParameter = {};
244
+ // authentication oauth2 required
245
+ // oauth required
246
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
247
+ localVarHeaderParameter['Content-Type'] = 'application/json';
248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
251
+ localVarRequestOptions.data = serializeDataIfNeeded(updateDockerRegistryDto, localVarRequestOptions, configuration);
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ }),
257
+ };
258
+ };
259
+ /**
260
+ * DockerRegistryApi - functional programming interface
261
+ * @export
262
+ */
263
+ export const DockerRegistryApiFp = function (configuration) {
264
+ const localVarAxiosParamCreator = DockerRegistryApiAxiosParamCreator(configuration);
265
+ return {
266
+ /**
267
+ *
268
+ * @summary Create a new docker registry
269
+ * @param {CreateDockerRegistryDto} createDockerRegistryDto
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ dockerRegistryControllerCreate(createDockerRegistryDto, options) {
274
+ return __awaiter(this, void 0, void 0, function* () {
275
+ var _a, _b, _c;
276
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerCreate(createDockerRegistryDto, options);
277
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
278
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
280
+ });
281
+ },
282
+ /**
283
+ *
284
+ * @summary Get all docker registries
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ dockerRegistryControllerFindAll(options) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ var _a, _b, _c;
291
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindAll(options);
292
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
293
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerFindAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
295
+ });
296
+ },
297
+ /**
298
+ *
299
+ * @summary Get a docker registry by id
300
+ * @param {string} id
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ dockerRegistryControllerFindOne(id, options) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ var _a, _b, _c;
307
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerFindOne(id, options);
308
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
309
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerFindOne']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
310
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
311
+ });
312
+ },
313
+ /**
314
+ *
315
+ * @summary Get the default docker registry
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ dockerRegistryControllerGetDefault(options) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ var _a, _b, _c;
322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerGetDefault(options);
323
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
324
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerGetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
325
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
326
+ });
327
+ },
328
+ /**
329
+ *
330
+ * @summary Delete a docker registry
331
+ * @param {string} id
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ dockerRegistryControllerRemove(id, options) {
336
+ return __awaiter(this, void 0, void 0, function* () {
337
+ var _a, _b, _c;
338
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerRemove(id, options);
339
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
340
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerRemove']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
341
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
342
+ });
343
+ },
344
+ /**
345
+ *
346
+ * @summary Set a docker registry as default
347
+ * @param {string} id
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ dockerRegistryControllerSetDefault(id, options) {
352
+ return __awaiter(this, void 0, void 0, function* () {
353
+ var _a, _b, _c;
354
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerSetDefault(id, options);
355
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
356
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerSetDefault']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
357
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
358
+ });
359
+ },
360
+ /**
361
+ *
362
+ * @summary Update a docker registry
363
+ * @param {string} id
364
+ * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ var _a, _b, _c;
371
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options);
372
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
373
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DockerRegistryApi.dockerRegistryControllerUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
374
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
375
+ });
376
+ },
377
+ };
378
+ };
379
+ /**
380
+ * DockerRegistryApi - factory interface
381
+ * @export
382
+ */
383
+ export const DockerRegistryApiFactory = function (configuration, basePath, axios) {
384
+ const localVarFp = DockerRegistryApiFp(configuration);
385
+ return {
386
+ /**
387
+ *
388
+ * @summary Create a new docker registry
389
+ * @param {CreateDockerRegistryDto} createDockerRegistryDto
390
+ * @param {*} [options] Override http request option.
391
+ * @throws {RequiredError}
392
+ */
393
+ dockerRegistryControllerCreate(createDockerRegistryDto, options) {
394
+ return localVarFp.dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(axios, basePath));
395
+ },
396
+ /**
397
+ *
398
+ * @summary Get all docker registries
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ dockerRegistryControllerFindAll(options) {
403
+ return localVarFp.dockerRegistryControllerFindAll(options).then((request) => request(axios, basePath));
404
+ },
405
+ /**
406
+ *
407
+ * @summary Get a docker registry by id
408
+ * @param {string} id
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ dockerRegistryControllerFindOne(id, options) {
413
+ return localVarFp.dockerRegistryControllerFindOne(id, options).then((request) => request(axios, basePath));
414
+ },
415
+ /**
416
+ *
417
+ * @summary Get the default docker registry
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ dockerRegistryControllerGetDefault(options) {
422
+ return localVarFp.dockerRegistryControllerGetDefault(options).then((request) => request(axios, basePath));
423
+ },
424
+ /**
425
+ *
426
+ * @summary Delete a docker registry
427
+ * @param {string} id
428
+ * @param {*} [options] Override http request option.
429
+ * @throws {RequiredError}
430
+ */
431
+ dockerRegistryControllerRemove(id, options) {
432
+ return localVarFp.dockerRegistryControllerRemove(id, options).then((request) => request(axios, basePath));
433
+ },
434
+ /**
435
+ *
436
+ * @summary Set a docker registry as default
437
+ * @param {string} id
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ dockerRegistryControllerSetDefault(id, options) {
442
+ return localVarFp.dockerRegistryControllerSetDefault(id, options).then((request) => request(axios, basePath));
443
+ },
444
+ /**
445
+ *
446
+ * @summary Update a docker registry
447
+ * @param {string} id
448
+ * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
453
+ return localVarFp.dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(axios, basePath));
454
+ },
455
+ };
456
+ };
457
+ /**
458
+ * DockerRegistryApi - object-oriented interface
459
+ * @export
460
+ * @class DockerRegistryApi
461
+ * @extends {BaseAPI}
462
+ */
463
+ export class DockerRegistryApi extends BaseAPI {
464
+ /**
465
+ *
466
+ * @summary Create a new docker registry
467
+ * @param {CreateDockerRegistryDto} createDockerRegistryDto
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ * @memberof DockerRegistryApi
471
+ */
472
+ dockerRegistryControllerCreate(createDockerRegistryDto, options) {
473
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerCreate(createDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
474
+ }
475
+ /**
476
+ *
477
+ * @summary Get all docker registries
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ * @memberof DockerRegistryApi
481
+ */
482
+ dockerRegistryControllerFindAll(options) {
483
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerFindAll(options).then((request) => request(this.axios, this.basePath));
484
+ }
485
+ /**
486
+ *
487
+ * @summary Get a docker registry by id
488
+ * @param {string} id
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ * @memberof DockerRegistryApi
492
+ */
493
+ dockerRegistryControllerFindOne(id, options) {
494
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerFindOne(id, options).then((request) => request(this.axios, this.basePath));
495
+ }
496
+ /**
497
+ *
498
+ * @summary Get the default docker registry
499
+ * @param {*} [options] Override http request option.
500
+ * @throws {RequiredError}
501
+ * @memberof DockerRegistryApi
502
+ */
503
+ dockerRegistryControllerGetDefault(options) {
504
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerGetDefault(options).then((request) => request(this.axios, this.basePath));
505
+ }
506
+ /**
507
+ *
508
+ * @summary Delete a docker registry
509
+ * @param {string} id
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ * @memberof DockerRegistryApi
513
+ */
514
+ dockerRegistryControllerRemove(id, options) {
515
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerRemove(id, options).then((request) => request(this.axios, this.basePath));
516
+ }
517
+ /**
518
+ *
519
+ * @summary Set a docker registry as default
520
+ * @param {string} id
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ * @memberof DockerRegistryApi
524
+ */
525
+ dockerRegistryControllerSetDefault(id, options) {
526
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerSetDefault(id, options).then((request) => request(this.axios, this.basePath));
527
+ }
528
+ /**
529
+ *
530
+ * @summary Update a docker registry
531
+ * @param {string} id
532
+ * @param {UpdateDockerRegistryDto} updateDockerRegistryDto
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ * @memberof DockerRegistryApi
536
+ */
537
+ dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options) {
538
+ return DockerRegistryApiFp(this.configuration).dockerRegistryControllerUpdate(id, updateDockerRegistryDto, options).then((request) => request(this.axios, this.basePath));
539
+ }
540
+ }
@@ -0,0 +1,13 @@
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
+ export * from './api/default-api';
13
+ export * from './api/docker-registry-api';
@@ -0,0 +1,15 @@
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
+ export * from './api/default-api';
15
+ export * from './api/docker-registry-api';
@@ -0,0 +1,66 @@
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
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};