@daytonaio/api-client 0.0.0-dev

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 (322) hide show
  1. package/package.json +25 -0
  2. package/src/api/api-keys-api.d.ts +220 -0
  3. package/src/api/api-keys-api.js +428 -0
  4. package/src/api/api-keys-api.js.map +1 -0
  5. package/src/api/docker-registry-api.d.ts +299 -0
  6. package/src/api/docker-registry-api.js +592 -0
  7. package/src/api/docker-registry-api.js.map +1 -0
  8. package/src/api/object-storage-api.d.ts +74 -0
  9. package/src/api/object-storage-api.js +127 -0
  10. package/src/api/object-storage-api.js.map +1 -0
  11. package/src/api/organizations-api.d.ts +927 -0
  12. package/src/api/organizations-api.js +1891 -0
  13. package/src/api/organizations-api.js.map +1 -0
  14. package/src/api/preview-api.d.ts +143 -0
  15. package/src/api/preview-api.js +265 -0
  16. package/src/api/preview-api.js.map +1 -0
  17. package/src/api/runners-api.d.ts +204 -0
  18. package/src/api/runners-api.js +402 -0
  19. package/src/api/runners-api.js.map +1 -0
  20. package/src/api/sandbox-api.d.ts +598 -0
  21. package/src/api/sandbox-api.js +1212 -0
  22. package/src/api/sandbox-api.js.map +1 -0
  23. package/src/api/snapshots-api.d.ts +320 -0
  24. package/src/api/snapshots-api.js +629 -0
  25. package/src/api/snapshots-api.js.map +1 -0
  26. package/src/api/toolbox-api.d.ts +1724 -0
  27. package/src/api/toolbox-api.js +3501 -0
  28. package/src/api/toolbox-api.js.map +1 -0
  29. package/src/api/users-api.d.ts +300 -0
  30. package/src/api/users-api.js +599 -0
  31. package/src/api/users-api.js.map +1 -0
  32. package/src/api/volumes-api.d.ts +227 -0
  33. package/src/api/volumes-api.js +447 -0
  34. package/src/api/volumes-api.js.map +1 -0
  35. package/src/api/workspace-api.d.ts +654 -0
  36. package/src/api/workspace-api.js +1269 -0
  37. package/src/api/workspace-api.js.map +1 -0
  38. package/src/api.d.ts +23 -0
  39. package/src/api.js +41 -0
  40. package/src/api.js.map +1 -0
  41. package/src/base.d.ts +66 -0
  42. package/src/base.js +68 -0
  43. package/src/base.js.map +1 -0
  44. package/src/common.d.ts +65 -0
  45. package/src/common.js +146 -0
  46. package/src/common.js.map +1 -0
  47. package/src/configuration.d.ts +91 -0
  48. package/src/configuration.js +105 -0
  49. package/src/configuration.js.map +1 -0
  50. package/src/index.d.ts +14 -0
  51. package/src/index.js +32 -0
  52. package/src/index.js.map +1 -0
  53. package/src/models/account-provider.d.ts +30 -0
  54. package/src/models/account-provider.js +4 -0
  55. package/src/models/account-provider.js.map +1 -0
  56. package/src/models/api-key-list.d.ts +66 -0
  57. package/src/models/api-key-list.js +16 -0
  58. package/src/models/api-key-list.js.map +1 -0
  59. package/src/models/api-key-response.d.ts +60 -0
  60. package/src/models/api-key-response.js +16 -0
  61. package/src/models/api-key-response.js.map +1 -0
  62. package/src/models/build-info.d.ts +42 -0
  63. package/src/models/build-info.js +4 -0
  64. package/src/models/build-info.js.map +1 -0
  65. package/src/models/command.d.ts +36 -0
  66. package/src/models/command.js +4 -0
  67. package/src/models/command.js.map +1 -0
  68. package/src/models/completion-context.d.ts +30 -0
  69. package/src/models/completion-context.js +4 -0
  70. package/src/models/completion-context.js.map +1 -0
  71. package/src/models/completion-item.d.ts +60 -0
  72. package/src/models/completion-item.js +4 -0
  73. package/src/models/completion-item.js.map +1 -0
  74. package/src/models/completion-list.d.ts +31 -0
  75. package/src/models/completion-list.js +16 -0
  76. package/src/models/completion-list.js.map +1 -0
  77. package/src/models/create-api-key.d.ts +48 -0
  78. package/src/models/create-api-key.js +16 -0
  79. package/src/models/create-api-key.js.map +1 -0
  80. package/src/models/create-build-info.d.ts +30 -0
  81. package/src/models/create-build-info.js +4 -0
  82. package/src/models/create-build-info.js.map +1 -0
  83. package/src/models/create-docker-registry.d.ts +67 -0
  84. package/src/models/create-docker-registry.js +11 -0
  85. package/src/models/create-docker-registry.js.map +1 -0
  86. package/src/models/create-linked-account.d.ts +30 -0
  87. package/src/models/create-linked-account.js +4 -0
  88. package/src/models/create-linked-account.js.map +1 -0
  89. package/src/models/create-organization-invitation.d.ts +47 -0
  90. package/src/models/create-organization-invitation.js +9 -0
  91. package/src/models/create-organization-invitation.js.map +1 -0
  92. package/src/models/create-organization-quota.d.ts +72 -0
  93. package/src/models/create-organization-quota.js +4 -0
  94. package/src/models/create-organization-quota.js.map +1 -0
  95. package/src/models/create-organization-role.d.ts +48 -0
  96. package/src/models/create-organization-role.js +16 -0
  97. package/src/models/create-organization-role.js.map +1 -0
  98. package/src/models/create-organization.d.ts +24 -0
  99. package/src/models/create-organization.js +4 -0
  100. package/src/models/create-organization.js.map +1 -0
  101. package/src/models/create-runner.d.ts +96 -0
  102. package/src/models/create-runner.js +15 -0
  103. package/src/models/create-runner.js.map +1 -0
  104. package/src/models/create-sandbox.d.ts +126 -0
  105. package/src/models/create-sandbox.js +27 -0
  106. package/src/models/create-sandbox.js.map +1 -0
  107. package/src/models/create-session-request.d.ts +24 -0
  108. package/src/models/create-session-request.js +4 -0
  109. package/src/models/create-session-request.js.map +1 -0
  110. package/src/models/create-snapshot.d.ts +73 -0
  111. package/src/models/create-snapshot.js +16 -0
  112. package/src/models/create-snapshot.js.map +1 -0
  113. package/src/models/create-user.d.ts +60 -0
  114. package/src/models/create-user.js +21 -0
  115. package/src/models/create-user.js.map +1 -0
  116. package/src/models/create-volume.d.ts +24 -0
  117. package/src/models/create-volume.js +4 -0
  118. package/src/models/create-volume.js.map +1 -0
  119. package/src/models/create-workspace.d.ts +126 -0
  120. package/src/models/create-workspace.js +27 -0
  121. package/src/models/create-workspace.js.map +1 -0
  122. package/src/models/docker-registry.d.ts +73 -0
  123. package/src/models/docker-registry.js +11 -0
  124. package/src/models/docker-registry.js.map +1 -0
  125. package/src/models/execute-request.d.ts +36 -0
  126. package/src/models/execute-request.js +4 -0
  127. package/src/models/execute-request.js.map +1 -0
  128. package/src/models/execute-response.d.ts +30 -0
  129. package/src/models/execute-response.js +4 -0
  130. package/src/models/execute-response.js.map +1 -0
  131. package/src/models/file-info.d.ts +66 -0
  132. package/src/models/file-info.js +4 -0
  133. package/src/models/file-info.js.map +1 -0
  134. package/src/models/file-status.d.ts +42 -0
  135. package/src/models/file-status.js +4 -0
  136. package/src/models/file-status.js.map +1 -0
  137. package/src/models/git-add-request.d.ts +30 -0
  138. package/src/models/git-add-request.js +4 -0
  139. package/src/models/git-add-request.js.map +1 -0
  140. package/src/models/git-branch-request.d.ts +30 -0
  141. package/src/models/git-branch-request.js +4 -0
  142. package/src/models/git-branch-request.js.map +1 -0
  143. package/src/models/git-checkout-request.d.ts +30 -0
  144. package/src/models/git-checkout-request.js +4 -0
  145. package/src/models/git-checkout-request.js.map +1 -0
  146. package/src/models/git-clone-request.d.ts +54 -0
  147. package/src/models/git-clone-request.js +4 -0
  148. package/src/models/git-clone-request.js.map +1 -0
  149. package/src/models/git-commit-info.d.ts +48 -0
  150. package/src/models/git-commit-info.js +4 -0
  151. package/src/models/git-commit-info.js.map +1 -0
  152. package/src/models/git-commit-request.d.ts +42 -0
  153. package/src/models/git-commit-request.js +4 -0
  154. package/src/models/git-commit-request.js.map +1 -0
  155. package/src/models/git-commit-response.d.ts +24 -0
  156. package/src/models/git-commit-response.js +4 -0
  157. package/src/models/git-commit-response.js.map +1 -0
  158. package/src/models/git-delete-branch-request.d.ts +30 -0
  159. package/src/models/git-delete-branch-request.js +4 -0
  160. package/src/models/git-delete-branch-request.js.map +1 -0
  161. package/src/models/git-repo-request.d.ts +36 -0
  162. package/src/models/git-repo-request.js +4 -0
  163. package/src/models/git-repo-request.js.map +1 -0
  164. package/src/models/git-status.d.ts +49 -0
  165. package/src/models/git-status.js +16 -0
  166. package/src/models/git-status.js.map +1 -0
  167. package/src/models/index.d.ts +89 -0
  168. package/src/models/index.js +106 -0
  169. package/src/models/index.js.map +1 -0
  170. package/src/models/list-branch-response.d.ts +24 -0
  171. package/src/models/list-branch-response.js +4 -0
  172. package/src/models/list-branch-response.js.map +1 -0
  173. package/src/models/lsp-completion-params.d.ts +50 -0
  174. package/src/models/lsp-completion-params.js +16 -0
  175. package/src/models/lsp-completion-params.js.map +1 -0
  176. package/src/models/lsp-document-request.d.ts +36 -0
  177. package/src/models/lsp-document-request.js +4 -0
  178. package/src/models/lsp-document-request.js.map +1 -0
  179. package/src/models/lsp-location.d.ts +31 -0
  180. package/src/models/lsp-location.js +16 -0
  181. package/src/models/lsp-location.js.map +1 -0
  182. package/src/models/lsp-server-request.d.ts +30 -0
  183. package/src/models/lsp-server-request.js +4 -0
  184. package/src/models/lsp-server-request.js.map +1 -0
  185. package/src/models/lsp-symbol.d.ts +37 -0
  186. package/src/models/lsp-symbol.js +16 -0
  187. package/src/models/lsp-symbol.js.map +1 -0
  188. package/src/models/match.d.ts +36 -0
  189. package/src/models/match.js +4 -0
  190. package/src/models/match.js.map +1 -0
  191. package/src/models/organization-invitation.d.ts +97 -0
  192. package/src/models/organization-invitation.js +27 -0
  193. package/src/models/organization-invitation.js.map +1 -0
  194. package/src/models/organization-role.d.ts +72 -0
  195. package/src/models/organization-role.js +16 -0
  196. package/src/models/organization-role.js.map +1 -0
  197. package/src/models/organization-suspension.d.ts +30 -0
  198. package/src/models/organization-suspension.js +4 -0
  199. package/src/models/organization-suspension.js.map +1 -0
  200. package/src/models/organization-user.d.ts +72 -0
  201. package/src/models/organization-user.js +21 -0
  202. package/src/models/organization-user.js.map +1 -0
  203. package/src/models/organization.d.ts +78 -0
  204. package/src/models/organization.js +4 -0
  205. package/src/models/organization.js.map +1 -0
  206. package/src/models/paginated-snapshots-dto.d.ts +43 -0
  207. package/src/models/paginated-snapshots-dto.js +16 -0
  208. package/src/models/paginated-snapshots-dto.js.map +1 -0
  209. package/src/models/port-preview-url.d.ts +30 -0
  210. package/src/models/port-preview-url.js +4 -0
  211. package/src/models/port-preview-url.js.map +1 -0
  212. package/src/models/position.d.ts +30 -0
  213. package/src/models/position.js +4 -0
  214. package/src/models/position.js.map +1 -0
  215. package/src/models/project-dir-response.d.ts +24 -0
  216. package/src/models/project-dir-response.js +4 -0
  217. package/src/models/project-dir-response.js.map +1 -0
  218. package/src/models/range.d.ts +31 -0
  219. package/src/models/range.js +16 -0
  220. package/src/models/range.js.map +1 -0
  221. package/src/models/registry-push-access-dto.d.ts +54 -0
  222. package/src/models/registry-push-access-dto.js +4 -0
  223. package/src/models/registry-push-access-dto.js.map +1 -0
  224. package/src/models/replace-request.d.ts +36 -0
  225. package/src/models/replace-request.js +4 -0
  226. package/src/models/replace-request.js.map +1 -0
  227. package/src/models/replace-result.d.ts +36 -0
  228. package/src/models/replace-result.js +4 -0
  229. package/src/models/replace-result.js.map +1 -0
  230. package/src/models/runner-region.d.ts +22 -0
  231. package/src/models/runner-region.js +26 -0
  232. package/src/models/runner-region.js.map +1 -0
  233. package/src/models/runner-snapshot-dto.d.ts +36 -0
  234. package/src/models/runner-snapshot-dto.js +4 -0
  235. package/src/models/runner-snapshot-dto.js.map +1 -0
  236. package/src/models/runner-state.d.ts +24 -0
  237. package/src/models/runner-state.js +28 -0
  238. package/src/models/runner-state.js.map +1 -0
  239. package/src/models/runner.d.ts +129 -0
  240. package/src/models/runner.js +16 -0
  241. package/src/models/runner.js.map +1 -0
  242. package/src/models/sandbox-class.d.ts +22 -0
  243. package/src/models/sandbox-class.js +26 -0
  244. package/src/models/sandbox-class.js.map +1 -0
  245. package/src/models/sandbox-info.d.ts +37 -0
  246. package/src/models/sandbox-info.js +4 -0
  247. package/src/models/sandbox-info.js.map +1 -0
  248. package/src/models/sandbox-labels.d.ts +26 -0
  249. package/src/models/sandbox-labels.js +4 -0
  250. package/src/models/sandbox-labels.js.map +1 -0
  251. package/src/models/sandbox-state.d.ts +35 -0
  252. package/src/models/sandbox-state.js +39 -0
  253. package/src/models/sandbox-state.js.map +1 -0
  254. package/src/models/sandbox-volume.d.ts +30 -0
  255. package/src/models/sandbox-volume.js +4 -0
  256. package/src/models/sandbox-volume.js.map +1 -0
  257. package/src/models/sandbox.d.ts +190 -0
  258. package/src/models/sandbox.js +29 -0
  259. package/src/models/sandbox.js.map +1 -0
  260. package/src/models/search-files-response.d.ts +24 -0
  261. package/src/models/search-files-response.js +4 -0
  262. package/src/models/search-files-response.js.map +1 -0
  263. package/src/models/session-execute-request.d.ts +37 -0
  264. package/src/models/session-execute-request.js +4 -0
  265. package/src/models/session-execute-request.js.map +1 -0
  266. package/src/models/session-execute-response.d.ts +36 -0
  267. package/src/models/session-execute-response.js +4 -0
  268. package/src/models/session-execute-response.js.map +1 -0
  269. package/src/models/session.d.ts +31 -0
  270. package/src/models/session.js +16 -0
  271. package/src/models/session.js.map +1 -0
  272. package/src/models/set-snapshot-general-status-dto.d.ts +24 -0
  273. package/src/models/set-snapshot-general-status-dto.js +4 -0
  274. package/src/models/set-snapshot-general-status-dto.js.map +1 -0
  275. package/src/models/snapshot-dto.d.ts +128 -0
  276. package/src/models/snapshot-dto.js +16 -0
  277. package/src/models/snapshot-dto.js.map +1 -0
  278. package/src/models/snapshot-state.d.ts +29 -0
  279. package/src/models/snapshot-state.js +33 -0
  280. package/src/models/snapshot-state.js.map +1 -0
  281. package/src/models/storage-access-dto.d.ts +54 -0
  282. package/src/models/storage-access-dto.js +4 -0
  283. package/src/models/storage-access-dto.js.map +1 -0
  284. package/src/models/toggle-state.d.ts +24 -0
  285. package/src/models/toggle-state.js +4 -0
  286. package/src/models/toggle-state.js.map +1 -0
  287. package/src/models/update-assigned-organization-roles.d.ts +24 -0
  288. package/src/models/update-assigned-organization-roles.js +4 -0
  289. package/src/models/update-assigned-organization-roles.js.map +1 -0
  290. package/src/models/update-docker-registry.d.ts +36 -0
  291. package/src/models/update-docker-registry.js +4 -0
  292. package/src/models/update-docker-registry.js.map +1 -0
  293. package/src/models/update-organization-invitation.d.ts +41 -0
  294. package/src/models/update-organization-invitation.js +9 -0
  295. package/src/models/update-organization-invitation.js.map +1 -0
  296. package/src/models/update-organization-member-role.d.ts +29 -0
  297. package/src/models/update-organization-member-role.js +9 -0
  298. package/src/models/update-organization-member-role.js.map +1 -0
  299. package/src/models/update-organization-quota.d.ts +72 -0
  300. package/src/models/update-organization-quota.js +4 -0
  301. package/src/models/update-organization-quota.js.map +1 -0
  302. package/src/models/update-organization-role.d.ts +48 -0
  303. package/src/models/update-organization-role.js +16 -0
  304. package/src/models/update-organization-role.js.map +1 -0
  305. package/src/models/usage-overview.d.ts +60 -0
  306. package/src/models/usage-overview.js +4 -0
  307. package/src/models/usage-overview.js.map +1 -0
  308. package/src/models/user-public-key.d.ts +30 -0
  309. package/src/models/user-public-key.js +4 -0
  310. package/src/models/user-public-key.js.map +1 -0
  311. package/src/models/user.d.ts +43 -0
  312. package/src/models/user.js +16 -0
  313. package/src/models/user.js.map +1 -0
  314. package/src/models/volume-dto.d.ts +67 -0
  315. package/src/models/volume-dto.js +16 -0
  316. package/src/models/volume-dto.js.map +1 -0
  317. package/src/models/volume-state.d.ts +26 -0
  318. package/src/models/volume-state.js +30 -0
  319. package/src/models/volume-state.js.map +1 -0
  320. package/src/models/workspace.d.ts +229 -0
  321. package/src/models/workspace.js +36 -0
  322. package/src/models/workspace.js.map +1 -0
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@daytonaio/api-client",
3
+ "version": "0.0.0-dev",
4
+ "description": "OpenAPI client for @daytonaio/api-client",
5
+ "author": "OpenAPI-Generator Contributors",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/daytonaio/daytona.git"
9
+ },
10
+ "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "@daytonaio/api-client"
16
+ ],
17
+ "license": "Apache-2.0",
18
+ "main": "./src/index.js",
19
+ "types": "./src/index.d.ts",
20
+ "dependencies": {
21
+ "axios": "^1.6.1"
22
+ },
23
+ "packageManager": "yarn@4.6.0",
24
+ "type": "commonjs"
25
+ }
@@ -0,0 +1,220 @@
1
+ /**
2
+ * Daytona
3
+ * Daytona AI platform API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: support@daytona.com
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 { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { ApiKeyList } from '../models';
16
+ import type { ApiKeyResponse } from '../models';
17
+ import type { CreateApiKey } from '../models';
18
+ /**
19
+ * ApiKeysApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const ApiKeysApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @summary Create API key
26
+ * @param {CreateApiKey} createApiKey
27
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ createApiKey: (createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ *
34
+ * @summary Delete API key
35
+ * @param {string} name
36
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ deleteApiKey: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ *
43
+ * @summary Get API key
44
+ * @param {string} name
45
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ getApiKey: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ *
52
+ * @summary Get current API key\'s details
53
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ getCurrentApiKey: (xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ *
60
+ * @summary List API keys
61
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ listApiKeys: (xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
66
+ };
67
+ /**
68
+ * ApiKeysApi - functional programming interface
69
+ * @export
70
+ */
71
+ export declare const ApiKeysApiFp: (configuration?: Configuration) => {
72
+ /**
73
+ *
74
+ * @summary Create API key
75
+ * @param {CreateApiKey} createApiKey
76
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
77
+ * @param {*} [options] Override http request option.
78
+ * @throws {RequiredError}
79
+ */
80
+ createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>>;
81
+ /**
82
+ *
83
+ * @summary Delete API key
84
+ * @param {string} name
85
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
90
+ /**
91
+ *
92
+ * @summary Get API key
93
+ * @param {string} name
94
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>>;
99
+ /**
100
+ *
101
+ * @summary Get current API key\'s details
102
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ getCurrentApiKey(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>>;
107
+ /**
108
+ *
109
+ * @summary List API keys
110
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>>;
115
+ };
116
+ /**
117
+ * ApiKeysApi - factory interface
118
+ * @export
119
+ */
120
+ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
121
+ /**
122
+ *
123
+ * @summary Create API key
124
+ * @param {CreateApiKey} createApiKey
125
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse>;
130
+ /**
131
+ *
132
+ * @summary Delete API key
133
+ * @param {string} name
134
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
139
+ /**
140
+ *
141
+ * @summary Get API key
142
+ * @param {string} name
143
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList>;
148
+ /**
149
+ *
150
+ * @summary Get current API key\'s details
151
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ getCurrentApiKey(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList>;
156
+ /**
157
+ *
158
+ * @summary List API keys
159
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>>;
164
+ };
165
+ /**
166
+ * ApiKeysApi - object-oriented interface
167
+ * @export
168
+ * @class ApiKeysApi
169
+ * @extends {BaseAPI}
170
+ */
171
+ export declare class ApiKeysApi extends BaseAPI {
172
+ /**
173
+ *
174
+ * @summary Create API key
175
+ * @param {CreateApiKey} createApiKey
176
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ * @memberof ApiKeysApi
180
+ */
181
+ createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyResponse, any>>;
182
+ /**
183
+ *
184
+ * @summary Delete API key
185
+ * @param {string} name
186
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ * @memberof ApiKeysApi
190
+ */
191
+ deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
192
+ /**
193
+ *
194
+ * @summary Get API key
195
+ * @param {string} name
196
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ * @memberof ApiKeysApi
200
+ */
201
+ getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList, any>>;
202
+ /**
203
+ *
204
+ * @summary Get current API key\'s details
205
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ * @memberof ApiKeysApi
209
+ */
210
+ getCurrentApiKey(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList, any>>;
211
+ /**
212
+ *
213
+ * @summary List API keys
214
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ * @memberof ApiKeysApi
218
+ */
219
+ listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList[], any>>;
220
+ }
@@ -0,0 +1,428 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona
6
+ * Daytona AI platform API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: support@daytona.com
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.ApiKeysApi = exports.ApiKeysApiFactory = exports.ApiKeysApiFp = exports.ApiKeysApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * ApiKeysApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const ApiKeysApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ *
31
+ * @summary Create API key
32
+ * @param {CreateApiKey} createApiKey
33
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
34
+ * @param {*} [options] Override http request option.
35
+ * @throws {RequiredError}
36
+ */
37
+ createApiKey: async (createApiKey, xDaytonaOrganizationID, options = {}) => {
38
+ // verify required parameter 'createApiKey' is not null or undefined
39
+ (0, common_1.assertParamExists)('createApiKey', 'createApiKey', createApiKey);
40
+ const localVarPath = `/api-keys`;
41
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
43
+ let baseOptions;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ }
47
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
48
+ const localVarHeaderParameter = {};
49
+ const localVarQueryParameter = {};
50
+ // authentication bearer required
51
+ // http bearer authentication required
52
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
53
+ // authentication oauth2 required
54
+ localVarHeaderParameter['Content-Type'] = 'application/json';
55
+ if (xDaytonaOrganizationID != null) {
56
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
57
+ }
58
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
61
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApiKey, localVarRequestOptions, configuration);
62
+ return {
63
+ url: (0, common_1.toPathString)(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ },
67
+ /**
68
+ *
69
+ * @summary Delete API key
70
+ * @param {string} name
71
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ deleteApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
76
+ // verify required parameter 'name' is not null or undefined
77
+ (0, common_1.assertParamExists)('deleteApiKey', 'name', name);
78
+ const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication bearer required
89
+ // http bearer authentication required
90
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
91
+ // authentication oauth2 required
92
+ if (xDaytonaOrganizationID != null) {
93
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
94
+ }
95
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
98
+ return {
99
+ url: (0, common_1.toPathString)(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ },
103
+ /**
104
+ *
105
+ * @summary Get API key
106
+ * @param {string} name
107
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ getApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
112
+ // verify required parameter 'name' is not null or undefined
113
+ (0, common_1.assertParamExists)('getApiKey', 'name', name);
114
+ const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
122
+ const localVarHeaderParameter = {};
123
+ const localVarQueryParameter = {};
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
127
+ // authentication oauth2 required
128
+ if (xDaytonaOrganizationID != null) {
129
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
130
+ }
131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
134
+ return {
135
+ url: (0, common_1.toPathString)(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ *
141
+ * @summary Get current API key\'s details
142
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getCurrentApiKey: async (xDaytonaOrganizationID, options = {}) => {
147
+ const localVarPath = `/api-keys/current`;
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ if (configuration) {
152
+ baseOptions = configuration.baseOptions;
153
+ }
154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
155
+ const localVarHeaderParameter = {};
156
+ const localVarQueryParameter = {};
157
+ // authentication bearer required
158
+ // http bearer authentication required
159
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
160
+ // authentication oauth2 required
161
+ if (xDaytonaOrganizationID != null) {
162
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
163
+ }
164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
167
+ return {
168
+ url: (0, common_1.toPathString)(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ },
172
+ /**
173
+ *
174
+ * @summary List API keys
175
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ listApiKeys: async (xDaytonaOrganizationID, options = {}) => {
180
+ const localVarPath = `/api-keys`;
181
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
182
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
183
+ let baseOptions;
184
+ if (configuration) {
185
+ baseOptions = configuration.baseOptions;
186
+ }
187
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
188
+ const localVarHeaderParameter = {};
189
+ const localVarQueryParameter = {};
190
+ // authentication bearer required
191
+ // http bearer authentication required
192
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
193
+ // authentication oauth2 required
194
+ if (xDaytonaOrganizationID != null) {
195
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
196
+ }
197
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
200
+ return {
201
+ url: (0, common_1.toPathString)(localVarUrlObj),
202
+ options: localVarRequestOptions,
203
+ };
204
+ },
205
+ };
206
+ };
207
+ exports.ApiKeysApiAxiosParamCreator = ApiKeysApiAxiosParamCreator;
208
+ /**
209
+ * ApiKeysApi - functional programming interface
210
+ * @export
211
+ */
212
+ const ApiKeysApiFp = function (configuration) {
213
+ const localVarAxiosParamCreator = (0, exports.ApiKeysApiAxiosParamCreator)(configuration);
214
+ return {
215
+ /**
216
+ *
217
+ * @summary Create API key
218
+ * @param {CreateApiKey} createApiKey
219
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ async createApiKey(createApiKey, xDaytonaOrganizationID, options) {
224
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
225
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
226
+ const localVarOperationServerBasePath = base_1.operationServerMap['ApiKeysApi.createApiKey']?.[localVarOperationServerIndex]?.url;
227
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
228
+ },
229
+ /**
230
+ *
231
+ * @summary Delete API key
232
+ * @param {string} name
233
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ async deleteApiKey(name, xDaytonaOrganizationID, options) {
238
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
239
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
240
+ const localVarOperationServerBasePath = base_1.operationServerMap['ApiKeysApi.deleteApiKey']?.[localVarOperationServerIndex]?.url;
241
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
242
+ },
243
+ /**
244
+ *
245
+ * @summary Get API key
246
+ * @param {string} name
247
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ async getApiKey(name, xDaytonaOrganizationID, options) {
252
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
253
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
254
+ const localVarOperationServerBasePath = base_1.operationServerMap['ApiKeysApi.getApiKey']?.[localVarOperationServerIndex]?.url;
255
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
256
+ },
257
+ /**
258
+ *
259
+ * @summary Get current API key\'s details
260
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ async getCurrentApiKey(xDaytonaOrganizationID, options) {
265
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentApiKey(xDaytonaOrganizationID, options);
266
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
267
+ const localVarOperationServerBasePath = base_1.operationServerMap['ApiKeysApi.getCurrentApiKey']?.[localVarOperationServerIndex]?.url;
268
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
269
+ },
270
+ /**
271
+ *
272
+ * @summary List API keys
273
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ async listApiKeys(xDaytonaOrganizationID, options) {
278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
280
+ const localVarOperationServerBasePath = base_1.operationServerMap['ApiKeysApi.listApiKeys']?.[localVarOperationServerIndex]?.url;
281
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
282
+ },
283
+ };
284
+ };
285
+ exports.ApiKeysApiFp = ApiKeysApiFp;
286
+ /**
287
+ * ApiKeysApi - factory interface
288
+ * @export
289
+ */
290
+ const ApiKeysApiFactory = function (configuration, basePath, axios) {
291
+ const localVarFp = (0, exports.ApiKeysApiFp)(configuration);
292
+ return {
293
+ /**
294
+ *
295
+ * @summary Create API key
296
+ * @param {CreateApiKey} createApiKey
297
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ createApiKey(createApiKey, xDaytonaOrganizationID, options) {
302
+ return localVarFp
303
+ .createApiKey(createApiKey, xDaytonaOrganizationID, options)
304
+ .then((request) => request(axios, basePath));
305
+ },
306
+ /**
307
+ *
308
+ * @summary Delete API key
309
+ * @param {string} name
310
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ deleteApiKey(name, xDaytonaOrganizationID, options) {
315
+ return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
316
+ },
317
+ /**
318
+ *
319
+ * @summary Get API key
320
+ * @param {string} name
321
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ getApiKey(name, xDaytonaOrganizationID, options) {
326
+ return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
327
+ },
328
+ /**
329
+ *
330
+ * @summary Get current API key\'s details
331
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ getCurrentApiKey(xDaytonaOrganizationID, options) {
336
+ return localVarFp.getCurrentApiKey(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
337
+ },
338
+ /**
339
+ *
340
+ * @summary List API keys
341
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ listApiKeys(xDaytonaOrganizationID, options) {
346
+ return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
347
+ },
348
+ };
349
+ };
350
+ exports.ApiKeysApiFactory = ApiKeysApiFactory;
351
+ /**
352
+ * ApiKeysApi - object-oriented interface
353
+ * @export
354
+ * @class ApiKeysApi
355
+ * @extends {BaseAPI}
356
+ */
357
+ class ApiKeysApi extends base_1.BaseAPI {
358
+ /**
359
+ *
360
+ * @summary Create API key
361
+ * @param {CreateApiKey} createApiKey
362
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ * @memberof ApiKeysApi
366
+ */
367
+ createApiKey(createApiKey, xDaytonaOrganizationID, options) {
368
+ return (0, exports.ApiKeysApiFp)(this.configuration)
369
+ .createApiKey(createApiKey, xDaytonaOrganizationID, options)
370
+ .then((request) => request(this.axios, this.basePath));
371
+ }
372
+ /**
373
+ *
374
+ * @summary Delete API key
375
+ * @param {string} name
376
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ * @memberof ApiKeysApi
380
+ */
381
+ deleteApiKey(name, xDaytonaOrganizationID, options) {
382
+ return (0, exports.ApiKeysApiFp)(this.configuration)
383
+ .deleteApiKey(name, xDaytonaOrganizationID, options)
384
+ .then((request) => request(this.axios, this.basePath));
385
+ }
386
+ /**
387
+ *
388
+ * @summary Get API key
389
+ * @param {string} name
390
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ * @memberof ApiKeysApi
394
+ */
395
+ getApiKey(name, xDaytonaOrganizationID, options) {
396
+ return (0, exports.ApiKeysApiFp)(this.configuration)
397
+ .getApiKey(name, xDaytonaOrganizationID, options)
398
+ .then((request) => request(this.axios, this.basePath));
399
+ }
400
+ /**
401
+ *
402
+ * @summary Get current API key\'s details
403
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ * @memberof ApiKeysApi
407
+ */
408
+ getCurrentApiKey(xDaytonaOrganizationID, options) {
409
+ return (0, exports.ApiKeysApiFp)(this.configuration)
410
+ .getCurrentApiKey(xDaytonaOrganizationID, options)
411
+ .then((request) => request(this.axios, this.basePath));
412
+ }
413
+ /**
414
+ *
415
+ * @summary List API keys
416
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof ApiKeysApi
420
+ */
421
+ listApiKeys(xDaytonaOrganizationID, options) {
422
+ return (0, exports.ApiKeysApiFp)(this.configuration)
423
+ .listApiKeys(xDaytonaOrganizationID, options)
424
+ .then((request) => request(this.axios, this.basePath));
425
+ }
426
+ }
427
+ exports.ApiKeysApi = ApiKeysApi;
428
+ //# sourceMappingURL=api-keys-api.js.map