@daytonaio/api-client 0.14.0 → 0.16.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 (345) hide show
  1. package/.openapi-generator/FILES +19 -4
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator-ignore +7 -0
  4. package/api/api-keys-api.ts +383 -279
  5. package/api/docker-registry-api.ts +714 -504
  6. package/api/images-api.ts +580 -318
  7. package/api/nodes-api.ts +250 -213
  8. package/api/organizations-api.ts +2390 -0
  9. package/api/preview-api.ts +326 -0
  10. package/api/toolbox-api.ts +4532 -2915
  11. package/api/users-api.ts +335 -373
  12. package/api/workspace-api.ts +1506 -893
  13. package/api.ts +10 -11
  14. package/base.ts +35 -30
  15. package/common.ts +78 -66
  16. package/configuration.ts +102 -89
  17. package/dist/api/api-keys-api.d.ts +32 -16
  18. package/dist/api/api-keys-api.js +92 -73
  19. package/dist/api/docker-registry-api.d.ts +72 -44
  20. package/dist/api/docker-registry-api.js +182 -138
  21. package/dist/api/images-api.d.ts +74 -16
  22. package/dist/api/images-api.js +181 -73
  23. package/dist/api/nodes-api.js +37 -47
  24. package/dist/api/organizations-api.d.ts +856 -0
  25. package/dist/api/organizations-api.js +1746 -0
  26. package/dist/api/preview-api.d.ts +143 -0
  27. package/dist/api/preview-api.js +266 -0
  28. package/dist/api/toolbox-api.d.ts +292 -144
  29. package/dist/api/toolbox-api.js +914 -623
  30. package/dist/api/users-api.d.ts +9 -47
  31. package/dist/api/users-api.js +57 -144
  32. package/dist/api/workspace-api.d.ts +199 -101
  33. package/dist/api/workspace-api.js +469 -280
  34. package/dist/api.d.ts +2 -0
  35. package/dist/api.js +2 -0
  36. package/dist/base.js +6 -7
  37. package/dist/common.d.ts +3 -3
  38. package/dist/common.js +27 -45
  39. package/dist/configuration.js +2 -1
  40. package/dist/esm/api/api-keys-api.d.ts +32 -16
  41. package/dist/esm/api/api-keys-api.js +93 -74
  42. package/dist/esm/api/docker-registry-api.d.ts +72 -44
  43. package/dist/esm/api/docker-registry-api.js +183 -139
  44. package/dist/esm/api/images-api.d.ts +74 -16
  45. package/dist/esm/api/images-api.js +182 -74
  46. package/dist/esm/api/nodes-api.js +38 -48
  47. package/dist/esm/api/organizations-api.d.ts +856 -0
  48. package/dist/esm/api/organizations-api.js +1739 -0
  49. package/dist/esm/api/preview-api.d.ts +143 -0
  50. package/dist/esm/api/preview-api.js +259 -0
  51. package/dist/esm/api/toolbox-api.d.ts +292 -144
  52. package/dist/esm/api/toolbox-api.js +915 -624
  53. package/dist/esm/api/users-api.d.ts +9 -47
  54. package/dist/esm/api/users-api.js +58 -145
  55. package/dist/esm/api/workspace-api.d.ts +199 -101
  56. package/dist/esm/api/workspace-api.js +470 -281
  57. package/dist/esm/api.d.ts +2 -0
  58. package/dist/esm/api.js +2 -0
  59. package/dist/esm/base.js +6 -7
  60. package/dist/esm/common.d.ts +3 -3
  61. package/dist/esm/common.js +28 -46
  62. package/dist/esm/configuration.js +2 -1
  63. package/dist/esm/index.d.ts +3 -3
  64. package/dist/esm/index.js +3 -3
  65. package/dist/esm/models/api-key-list.d.ts +19 -4
  66. package/dist/esm/models/api-key-list.js +8 -1
  67. package/dist/esm/models/api-key-response.d.ts +19 -4
  68. package/dist/esm/models/api-key-response.js +8 -1
  69. package/dist/esm/models/command.d.ts +3 -3
  70. package/dist/esm/models/completion-context.d.ts +2 -2
  71. package/dist/esm/models/completion-item.d.ts +7 -7
  72. package/dist/esm/models/completion-list.d.ts +2 -2
  73. package/dist/esm/models/create-api-key.d.ts +16 -1
  74. package/dist/esm/models/create-api-key.js +8 -1
  75. package/dist/esm/models/create-docker-registry.d.ts +9 -9
  76. package/dist/esm/models/create-docker-registry.js +2 -2
  77. package/dist/esm/models/create-image.d.ts +8 -2
  78. package/dist/esm/models/create-node.d.ts +13 -13
  79. package/dist/esm/models/create-node.js +2 -2
  80. package/dist/esm/models/create-organization-invitation.d.ts +47 -0
  81. package/dist/esm/models/create-organization-invitation.js +17 -0
  82. package/dist/esm/models/create-organization-quota.d.ts +84 -0
  83. package/dist/esm/models/create-organization-role.d.ts +45 -0
  84. package/dist/esm/models/create-organization-role.js +21 -0
  85. package/dist/esm/models/create-organization.d.ts +90 -0
  86. package/dist/esm/models/create-organization.js +14 -0
  87. package/dist/esm/models/create-session-request.d.ts +1 -1
  88. package/dist/esm/models/create-user.d.ts +14 -56
  89. package/dist/esm/models/create-user.js +4 -1
  90. package/dist/esm/models/create-workspace.d.ts +16 -16
  91. package/dist/esm/models/create-workspace.js +2 -2
  92. package/dist/esm/models/docker-registry.d.ts +12 -12
  93. package/dist/esm/models/docker-registry.js +2 -2
  94. package/dist/esm/models/execute-request.d.ts +3 -3
  95. package/dist/esm/models/execute-response.d.ts +2 -2
  96. package/dist/esm/models/file-info.d.ts +8 -8
  97. package/dist/esm/models/file-status.d.ts +4 -4
  98. package/dist/esm/models/git-add-request.d.ts +2 -2
  99. package/dist/esm/models/git-branch-request.d.ts +2 -2
  100. package/dist/esm/models/git-clone-request.d.ts +6 -6
  101. package/dist/esm/models/git-commit-info.d.ts +5 -5
  102. package/dist/esm/models/git-commit-request.d.ts +4 -4
  103. package/dist/esm/models/git-commit-response.d.ts +1 -1
  104. package/dist/esm/models/git-repo-request.d.ts +3 -3
  105. package/dist/esm/models/git-status.d.ts +4 -4
  106. package/dist/esm/models/image-dto.d.ts +20 -14
  107. package/dist/esm/models/image-state.d.ts +1 -1
  108. package/dist/esm/models/image-state.js +1 -1
  109. package/dist/esm/models/index.d.ts +17 -1
  110. package/dist/esm/models/index.js +17 -1
  111. package/dist/esm/models/list-branch-response.d.ts +1 -1
  112. package/dist/esm/models/lsp-completion-params.d.ts +5 -5
  113. package/dist/esm/models/lsp-document-request.d.ts +3 -3
  114. package/dist/esm/models/lsp-location.d.ts +2 -2
  115. package/dist/esm/models/lsp-server-request.d.ts +2 -2
  116. package/dist/esm/models/lsp-symbol.d.ts +3 -3
  117. package/dist/esm/models/match.d.ts +3 -3
  118. package/dist/esm/models/organization-invitation.d.ts +97 -0
  119. package/dist/esm/models/organization-invitation.js +23 -0
  120. package/dist/esm/models/organization-role.d.ts +69 -0
  121. package/dist/esm/models/organization-role.js +21 -0
  122. package/dist/esm/models/organization-user.d.ts +72 -0
  123. package/dist/esm/models/organization-user.js +17 -0
  124. package/dist/esm/models/organization.d.ts +54 -0
  125. package/dist/esm/models/organization.js +14 -0
  126. package/dist/esm/models/paginated-images-dto.d.ts +4 -4
  127. package/dist/esm/models/port-preview-url.d.ts +30 -0
  128. package/dist/esm/models/port-preview-url.js +14 -0
  129. package/dist/esm/models/position.d.ts +2 -2
  130. package/dist/esm/models/project-dir-response.d.ts +1 -1
  131. package/dist/esm/models/range.d.ts +2 -2
  132. package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
  133. package/dist/esm/models/replace-request.d.ts +3 -3
  134. package/dist/esm/models/replace-result.d.ts +3 -3
  135. package/dist/esm/models/search-files-response.d.ts +1 -1
  136. package/dist/esm/models/session-execute-request.d.ts +9 -2
  137. package/dist/esm/models/session-execute-response.d.ts +3 -3
  138. package/dist/esm/models/session.d.ts +2 -2
  139. package/dist/esm/models/set-image-general-status.d.ts +24 -0
  140. package/dist/esm/models/set-image-general-status.js +14 -0
  141. package/dist/esm/models/toggle-state.d.ts +1 -1
  142. package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
  143. package/dist/esm/models/update-assigned-organization-roles.js +14 -0
  144. package/dist/esm/models/update-docker-registry.d.ts +3 -3
  145. package/dist/esm/models/update-organization-invitation.d.ts +41 -0
  146. package/dist/esm/models/update-organization-invitation.js +17 -0
  147. package/dist/esm/models/update-organization-member-role.d.ts +29 -0
  148. package/dist/esm/models/update-organization-member-role.js +17 -0
  149. package/dist/esm/models/update-organization-quota.d.ts +84 -0
  150. package/dist/esm/models/update-organization-quota.js +14 -0
  151. package/dist/esm/models/update-organization-role.d.ts +45 -0
  152. package/dist/esm/models/update-organization-role.js +21 -0
  153. package/dist/esm/models/usage-overview.d.ts +15 -15
  154. package/dist/esm/models/user-public-key.d.ts +30 -0
  155. package/dist/esm/models/user-public-key.js +14 -0
  156. package/dist/esm/models/user.d.ts +43 -0
  157. package/dist/esm/models/user.js +14 -0
  158. package/dist/esm/models/workspace-info.d.ts +3 -3
  159. package/dist/esm/models/workspace-labels.d.ts +1 -1
  160. package/dist/esm/models/workspace-state.d.ts +1 -1
  161. package/dist/esm/models/workspace-state.js +1 -1
  162. package/dist/esm/models/workspace.d.ts +19 -19
  163. package/dist/esm/models/workspace.js +1 -1
  164. package/dist/index.d.ts +3 -3
  165. package/dist/models/api-key-list.d.ts +19 -4
  166. package/dist/models/api-key-list.js +9 -0
  167. package/dist/models/api-key-response.d.ts +19 -4
  168. package/dist/models/api-key-response.js +9 -0
  169. package/dist/models/command.d.ts +3 -3
  170. package/dist/models/completion-context.d.ts +2 -2
  171. package/dist/models/completion-item.d.ts +7 -7
  172. package/dist/models/completion-list.d.ts +2 -2
  173. package/dist/models/create-api-key.d.ts +16 -1
  174. package/dist/models/create-api-key.js +9 -0
  175. package/dist/models/create-docker-registry.d.ts +9 -9
  176. package/dist/models/create-docker-registry.js +2 -2
  177. package/dist/models/create-image.d.ts +8 -2
  178. package/dist/models/create-node.d.ts +13 -13
  179. package/dist/models/create-node.js +2 -2
  180. package/dist/models/create-organization-invitation.d.ts +47 -0
  181. package/dist/models/create-organization-invitation.js +20 -0
  182. package/dist/models/create-organization-quota.d.ts +84 -0
  183. package/dist/models/create-organization-role.d.ts +45 -0
  184. package/dist/models/create-organization-role.js +24 -0
  185. package/dist/models/create-organization.d.ts +90 -0
  186. package/dist/models/create-organization.js +15 -0
  187. package/dist/models/create-session-request.d.ts +1 -1
  188. package/dist/models/create-user.d.ts +14 -56
  189. package/dist/models/create-user.js +5 -0
  190. package/dist/models/create-workspace.d.ts +16 -16
  191. package/dist/models/create-workspace.js +2 -2
  192. package/dist/models/docker-registry.d.ts +12 -12
  193. package/dist/models/docker-registry.js +2 -2
  194. package/dist/models/execute-request.d.ts +3 -3
  195. package/dist/models/execute-response.d.ts +2 -2
  196. package/dist/models/file-info.d.ts +8 -8
  197. package/dist/models/file-status.d.ts +4 -4
  198. package/dist/models/git-add-request.d.ts +2 -2
  199. package/dist/models/git-branch-request.d.ts +2 -2
  200. package/dist/models/git-clone-request.d.ts +6 -6
  201. package/dist/models/git-commit-info.d.ts +5 -5
  202. package/dist/models/git-commit-request.d.ts +4 -4
  203. package/dist/models/git-commit-response.d.ts +1 -1
  204. package/dist/models/git-repo-request.d.ts +3 -3
  205. package/dist/models/git-status.d.ts +4 -4
  206. package/dist/models/image-dto.d.ts +20 -14
  207. package/dist/models/image-state.d.ts +1 -1
  208. package/dist/models/image-state.js +1 -1
  209. package/dist/models/index.d.ts +17 -1
  210. package/dist/models/index.js +17 -1
  211. package/dist/models/list-branch-response.d.ts +1 -1
  212. package/dist/models/lsp-completion-params.d.ts +5 -5
  213. package/dist/models/lsp-document-request.d.ts +3 -3
  214. package/dist/models/lsp-location.d.ts +2 -2
  215. package/dist/models/lsp-server-request.d.ts +2 -2
  216. package/dist/models/lsp-symbol.d.ts +3 -3
  217. package/dist/models/match.d.ts +3 -3
  218. package/dist/models/organization-invitation.d.ts +97 -0
  219. package/dist/models/organization-invitation.js +26 -0
  220. package/dist/models/organization-role.d.ts +69 -0
  221. package/dist/models/organization-role.js +24 -0
  222. package/dist/models/organization-user.d.ts +72 -0
  223. package/dist/models/organization-user.js +20 -0
  224. package/dist/models/organization.d.ts +54 -0
  225. package/dist/models/organization.js +15 -0
  226. package/dist/models/paginated-images-dto.d.ts +4 -4
  227. package/dist/models/port-preview-url.d.ts +30 -0
  228. package/dist/models/port-preview-url.js +15 -0
  229. package/dist/models/position.d.ts +2 -2
  230. package/dist/models/project-dir-response.d.ts +1 -1
  231. package/dist/models/range.d.ts +2 -2
  232. package/dist/models/registry-push-access-dto.d.ts +6 -6
  233. package/dist/models/replace-request.d.ts +3 -3
  234. package/dist/models/replace-result.d.ts +3 -3
  235. package/dist/models/search-files-response.d.ts +1 -1
  236. package/dist/models/session-execute-request.d.ts +9 -2
  237. package/dist/models/session-execute-response.d.ts +3 -3
  238. package/dist/models/session.d.ts +2 -2
  239. package/dist/models/set-image-general-status.d.ts +24 -0
  240. package/dist/models/set-image-general-status.js +15 -0
  241. package/dist/models/toggle-state.d.ts +1 -1
  242. package/dist/models/update-assigned-organization-roles.d.ts +24 -0
  243. package/dist/models/update-assigned-organization-roles.js +15 -0
  244. package/dist/models/update-docker-registry.d.ts +3 -3
  245. package/dist/models/update-organization-invitation.d.ts +41 -0
  246. package/dist/models/update-organization-invitation.js +20 -0
  247. package/dist/models/update-organization-member-role.d.ts +29 -0
  248. package/dist/models/update-organization-member-role.js +20 -0
  249. package/dist/models/update-organization-quota.d.ts +84 -0
  250. package/dist/models/update-organization-quota.js +15 -0
  251. package/dist/models/update-organization-role.d.ts +45 -0
  252. package/dist/models/update-organization-role.js +24 -0
  253. package/dist/models/usage-overview.d.ts +15 -15
  254. package/dist/models/user-public-key.d.ts +30 -0
  255. package/dist/models/user-public-key.js +15 -0
  256. package/dist/models/user.d.ts +43 -0
  257. package/dist/models/user.js +15 -0
  258. package/dist/models/workspace-info.d.ts +3 -3
  259. package/dist/models/workspace-labels.d.ts +1 -1
  260. package/dist/models/workspace-state.d.ts +1 -1
  261. package/dist/models/workspace-state.js +1 -1
  262. package/dist/models/workspace.d.ts +19 -19
  263. package/dist/models/workspace.js +1 -1
  264. package/index.ts +4 -5
  265. package/models/api-key-list.ts +36 -22
  266. package/models/api-key-response.ts +37 -22
  267. package/models/command.ts +20 -23
  268. package/models/completion-context.ts +14 -17
  269. package/models/completion-item.ts +44 -47
  270. package/models/completion-list.ts +15 -17
  271. package/models/create-api-key.ts +24 -10
  272. package/models/create-docker-registry.ts +51 -54
  273. package/models/create-image.ts +20 -17
  274. package/models/create-node.ts +78 -82
  275. package/models/create-organization-invitation.ts +53 -0
  276. package/models/create-organization-quota.ts +87 -0
  277. package/models/create-organization-role.ts +51 -0
  278. package/models/create-organization.ts +93 -0
  279. package/models/create-session-request.ts +8 -11
  280. package/models/create-user.ts +41 -81
  281. package/models/create-workspace.ts +96 -100
  282. package/models/docker-registry.ts +57 -60
  283. package/models/execute-request.ts +20 -23
  284. package/models/execute-response.ts +14 -17
  285. package/models/file-info.ts +50 -53
  286. package/models/file-status.ts +26 -29
  287. package/models/git-add-request.ts +14 -17
  288. package/models/git-branch-request.ts +14 -17
  289. package/models/git-clone-request.ts +38 -41
  290. package/models/git-commit-info.ts +32 -35
  291. package/models/git-commit-request.ts +26 -29
  292. package/models/git-commit-response.ts +8 -11
  293. package/models/git-repo-request.ts +20 -23
  294. package/models/git-status.ts +33 -35
  295. package/models/image-dto.ts +75 -73
  296. package/models/image-state.ts +12 -17
  297. package/models/index.ts +70 -54
  298. package/models/list-branch-response.ts +8 -11
  299. package/models/lsp-completion-params.ts +34 -36
  300. package/models/lsp-document-request.ts +20 -23
  301. package/models/lsp-location.ts +15 -17
  302. package/models/lsp-server-request.ts +14 -17
  303. package/models/lsp-symbol.ts +21 -23
  304. package/models/match.ts +20 -23
  305. package/models/organization-invitation.ts +108 -0
  306. package/models/organization-role.ts +75 -0
  307. package/models/organization-user.ts +80 -0
  308. package/models/organization.ts +57 -0
  309. package/models/paginated-images-dto.ts +27 -29
  310. package/models/port-preview-url.ts +33 -0
  311. package/models/position.ts +14 -17
  312. package/models/project-dir-response.ts +8 -11
  313. package/models/range.ts +15 -17
  314. package/models/registry-push-access-dto.ts +38 -41
  315. package/models/replace-request.ts +20 -23
  316. package/models/replace-result.ts +20 -23
  317. package/models/search-files-response.ts +8 -11
  318. package/models/session-execute-request.ts +21 -17
  319. package/models/session-execute-response.ts +20 -23
  320. package/models/session.ts +15 -17
  321. package/models/set-image-general-status.ts +27 -0
  322. package/models/toggle-state.ts +8 -11
  323. package/models/update-assigned-organization-roles.ts +27 -0
  324. package/models/update-docker-registry.ts +20 -23
  325. package/models/update-organization-invitation.ts +47 -0
  326. package/models/update-organization-member-role.ts +35 -0
  327. package/models/update-organization-quota.ts +87 -0
  328. package/models/update-organization-role.ts +51 -0
  329. package/models/usage-overview.ts +92 -95
  330. package/models/user-public-key.ts +33 -0
  331. package/models/user.ts +49 -0
  332. package/models/workspace-info.ts +20 -23
  333. package/models/workspace-labels.ts +8 -11
  334. package/models/workspace-state.ts +19 -24
  335. package/models/workspace.ts +119 -122
  336. package/package.json +2 -2
  337. package/project.json +49 -0
  338. package/tsconfig.json +3 -8
  339. package/README.md +0 -46
  340. package/dist/esm/models/update-user-quota-dto.d.ts +0 -84
  341. package/dist/models/update-user-quota-dto.d.ts +0 -84
  342. package/git_push.sh +0 -57
  343. package/models/update-user-quota-dto.ts +0 -90
  344. /package/dist/esm/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
  345. /package/dist/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
package/api/users-api.ts CHANGED
@@ -5,424 +5,386 @@
5
5
  * Daytona Workspaces API Docs
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
14
 
15
-
16
- import type { Configuration } from '../configuration';
17
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
- import globalAxios from 'axios';
15
+ import type { Configuration } from '../configuration'
16
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
17
+ import globalAxios from 'axios'
19
18
  // Some imports not used depending on template conditions
20
19
  // @ts-ignore
21
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
- // @ts-ignore
23
- import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
20
+ import {
21
+ DUMMY_BASE_URL,
22
+ assertParamExists,
23
+ setApiKeyToObject,
24
+ setBasicAuthToObject,
25
+ setBearerAuthToObject,
26
+ setOAuthToObject,
27
+ setSearchParams,
28
+ serializeDataIfNeeded,
29
+ toPathString,
30
+ createRequestFunction,
31
+ } from '../common'
24
32
  // @ts-ignore
25
- import type { CreateUser } from '../models';
33
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
26
34
  // @ts-ignore
27
- import type { UpdateUserQuotaDto } from '../models';
35
+ import type { CreateUser } from '../models'
28
36
  // @ts-ignore
29
- import type { UsageOverview } from '../models';
37
+ import type { User } from '../models'
30
38
  /**
31
39
  * UsersApi - axios parameter creator
32
40
  * @export
33
41
  */
34
42
  export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
35
- return {
36
- /**
37
- *
38
- * @summary Create user
39
- * @param {CreateUser} createUser
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- createUser: async (createUser: CreateUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- // verify required parameter 'createUser' is not null or undefined
45
- assertParamExists('createUser', 'createUser', createUser)
46
- const localVarPath = `/users`;
47
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
- let baseOptions;
50
- if (configuration) {
51
- baseOptions = configuration.baseOptions;
52
- }
53
-
54
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
- const localVarHeaderParameter = {} as any;
56
- const localVarQueryParameter = {} as any;
57
-
58
- // authentication oauth2 required
59
- // oauth required
60
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
61
-
62
-
63
-
64
- localVarHeaderParameter['Content-Type'] = 'application/json';
65
-
66
- setSearchParams(localVarUrlObj, localVarQueryParameter);
67
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
69
- localVarRequestOptions.data = serializeDataIfNeeded(createUser, localVarRequestOptions, configuration)
70
-
71
- return {
72
- url: toPathString(localVarUrlObj),
73
- options: localVarRequestOptions,
74
- };
75
- },
76
- /**
77
- *
78
- * @summary Get user current usage overview
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- getUserUsageOverview: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
83
- const localVarPath = `/users/overview`;
84
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
85
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
86
- let baseOptions;
87
- if (configuration) {
88
- baseOptions = configuration.baseOptions;
89
- }
90
-
91
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
92
- const localVarHeaderParameter = {} as any;
93
- const localVarQueryParameter = {} as any;
94
-
95
- // authentication oauth2 required
96
- // oauth required
97
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
98
-
99
-
100
-
101
- setSearchParams(localVarUrlObj, localVarQueryParameter);
102
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
103
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
104
-
105
- return {
106
- url: toPathString(localVarUrlObj),
107
- options: localVarRequestOptions,
108
- };
109
- },
110
- /**
111
- *
112
- * @summary List all users
113
- * @param {*} [options] Override http request option.
114
- * @throws {RequiredError}
115
- */
116
- listUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
117
- const localVarPath = `/users`;
118
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
119
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
120
- let baseOptions;
121
- if (configuration) {
122
- baseOptions = configuration.baseOptions;
123
- }
124
-
125
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
126
- const localVarHeaderParameter = {} as any;
127
- const localVarQueryParameter = {} as any;
128
-
129
- // authentication oauth2 required
130
- // oauth required
131
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
132
-
133
-
134
-
135
- setSearchParams(localVarUrlObj, localVarQueryParameter);
136
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
138
-
139
- return {
140
- url: toPathString(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- };
143
- },
144
- /**
145
- *
146
- * @summary Regenerate user key pair
147
- * @param {string} id
148
- * @param {*} [options] Override http request option.
149
- * @throws {RequiredError}
150
- */
151
- regenerateKeyPair: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
152
- // verify required parameter 'id' is not null or undefined
153
- assertParamExists('regenerateKeyPair', 'id', id)
154
- const localVarPath = `/users/{id}/regenerate-key-pair`
155
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
156
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
- let baseOptions;
159
- if (configuration) {
160
- baseOptions = configuration.baseOptions;
161
- }
162
-
163
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
164
- const localVarHeaderParameter = {} as any;
165
- const localVarQueryParameter = {} as any;
166
-
167
- // authentication oauth2 required
168
- // oauth required
169
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
170
-
171
-
172
-
173
- setSearchParams(localVarUrlObj, localVarQueryParameter);
174
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
175
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
176
-
177
- return {
178
- url: toPathString(localVarUrlObj),
179
- options: localVarRequestOptions,
180
- };
181
- },
182
- /**
183
- *
184
- * @summary Update user quota
185
- * @param {string} id
186
- * @param {UpdateUserQuotaDto} updateUserQuotaDto
187
- * @param {*} [options] Override http request option.
188
- * @throws {RequiredError}
189
- */
190
- updateUserQuota: async (id: string, updateUserQuotaDto: UpdateUserQuotaDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
191
- // verify required parameter 'id' is not null or undefined
192
- assertParamExists('updateUserQuota', 'id', id)
193
- // verify required parameter 'updateUserQuotaDto' is not null or undefined
194
- assertParamExists('updateUserQuota', 'updateUserQuotaDto', updateUserQuotaDto)
195
- const localVarPath = `/users/{id}/quota`
196
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
197
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
- let baseOptions;
200
- if (configuration) {
201
- baseOptions = configuration.baseOptions;
202
- }
203
-
204
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
205
- const localVarHeaderParameter = {} as any;
206
- const localVarQueryParameter = {} as any;
207
-
208
- // authentication oauth2 required
209
- // oauth required
210
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
211
-
212
-
213
-
214
- localVarHeaderParameter['Content-Type'] = 'application/json';
215
-
216
- setSearchParams(localVarUrlObj, localVarQueryParameter);
217
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
219
- localVarRequestOptions.data = serializeDataIfNeeded(updateUserQuotaDto, localVarRequestOptions, configuration)
220
-
221
- return {
222
- url: toPathString(localVarUrlObj),
223
- options: localVarRequestOptions,
224
- };
225
- },
226
- }
227
- };
43
+ return {
44
+ /**
45
+ *
46
+ * @summary Create user
47
+ * @param {CreateUser} createUser
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ createUser: async (createUser: CreateUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ // verify required parameter 'createUser' is not null or undefined
53
+ assertParamExists('createUser', 'createUser', createUser)
54
+ const localVarPath = `/users`
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
57
+ let baseOptions
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
63
+ const localVarHeaderParameter = {} as any
64
+ const localVarQueryParameter = {} as any
65
+
66
+ // authentication oauth2 required
67
+ // oauth required
68
+ await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
69
+
70
+ localVarHeaderParameter['Content-Type'] = 'application/json'
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter)
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
74
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
75
+ localVarRequestOptions.data = serializeDataIfNeeded(createUser, localVarRequestOptions, configuration)
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ }
81
+ },
82
+ /**
83
+ *
84
+ * @summary Get authenticated user
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ getAuthenticatedUser: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
89
+ const localVarPath = `/users/me`
90
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
92
+ let baseOptions
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions
95
+ }
96
+
97
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
98
+ const localVarHeaderParameter = {} as any
99
+ const localVarQueryParameter = {} as any
100
+
101
+ // authentication oauth2 required
102
+ // oauth required
103
+ await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
104
+
105
+ setSearchParams(localVarUrlObj, localVarQueryParameter)
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
107
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
108
+
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions,
112
+ }
113
+ },
114
+ /**
115
+ *
116
+ * @summary List all users
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ listUsers: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
121
+ const localVarPath = `/users`
122
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
124
+ let baseOptions
125
+ if (configuration) {
126
+ baseOptions = configuration.baseOptions
127
+ }
128
+
129
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
130
+ const localVarHeaderParameter = {} as any
131
+ const localVarQueryParameter = {} as any
132
+
133
+ // authentication oauth2 required
134
+ // oauth required
135
+ await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
136
+
137
+ setSearchParams(localVarUrlObj, localVarQueryParameter)
138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
139
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
140
+
141
+ return {
142
+ url: toPathString(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ }
145
+ },
146
+ /**
147
+ *
148
+ * @summary Regenerate user key pair
149
+ * @param {string} id
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ regenerateKeyPair: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
154
+ // verify required parameter 'id' is not null or undefined
155
+ assertParamExists('regenerateKeyPair', 'id', id)
156
+ const localVarPath = `/users/{id}/regenerate-key-pair`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
159
+ let baseOptions
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions
162
+ }
163
+
164
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
165
+ const localVarHeaderParameter = {} as any
166
+ const localVarQueryParameter = {} as any
167
+
168
+ // authentication oauth2 required
169
+ // oauth required
170
+ await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
171
+
172
+ setSearchParams(localVarUrlObj, localVarQueryParameter)
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
174
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ }
180
+ },
181
+ }
182
+ }
228
183
 
229
184
  /**
230
185
  * UsersApi - functional programming interface
231
186
  * @export
232
187
  */
233
- export const UsersApiFp = function(configuration?: Configuration) {
234
- const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
235
- return {
236
- /**
237
- *
238
- * @summary Create user
239
- * @param {CreateUser} createUser
240
- * @param {*} [options] Override http request option.
241
- * @throws {RequiredError}
242
- */
243
- async createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
- const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUser, options);
245
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
246
- const localVarOperationServerBasePath = operationServerMap['UsersApi.createUser']?.[localVarOperationServerIndex]?.url;
247
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
248
- },
249
- /**
250
- *
251
- * @summary Get user current usage overview
252
- * @param {*} [options] Override http request option.
253
- * @throws {RequiredError}
254
- */
255
- async getUserUsageOverview(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsageOverview>> {
256
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserUsageOverview(options);
257
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
258
- const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserUsageOverview']?.[localVarOperationServerIndex]?.url;
259
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
260
- },
261
- /**
262
- *
263
- * @summary List all users
264
- * @param {*} [options] Override http request option.
265
- * @throws {RequiredError}
266
- */
267
- async listUsers(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
268
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options);
269
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
270
- const localVarOperationServerBasePath = operationServerMap['UsersApi.listUsers']?.[localVarOperationServerIndex]?.url;
271
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
272
- },
273
- /**
274
- *
275
- * @summary Regenerate user key pair
276
- * @param {string} id
277
- * @param {*} [options] Override http request option.
278
- * @throws {RequiredError}
279
- */
280
- async regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
281
- const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateKeyPair(id, options);
282
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
283
- const localVarOperationServerBasePath = operationServerMap['UsersApi.regenerateKeyPair']?.[localVarOperationServerIndex]?.url;
284
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
285
- },
286
- /**
287
- *
288
- * @summary Update user quota
289
- * @param {string} id
290
- * @param {UpdateUserQuotaDto} updateUserQuotaDto
291
- * @param {*} [options] Override http request option.
292
- * @throws {RequiredError}
293
- */
294
- async updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
295
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserQuota(id, updateUserQuotaDto, options);
296
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
297
- const localVarOperationServerBasePath = operationServerMap['UsersApi.updateUserQuota']?.[localVarOperationServerIndex]?.url;
298
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
299
- },
300
- }
301
- };
188
+ export const UsersApiFp = function (configuration?: Configuration) {
189
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
190
+ return {
191
+ /**
192
+ *
193
+ * @summary Create user
194
+ * @param {CreateUser} createUser
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ async createUser(
199
+ createUser: CreateUser,
200
+ options?: RawAxiosRequestConfig,
201
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUser, options)
203
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0
204
+ const localVarOperationServerBasePath =
205
+ operationServerMap['UsersApi.createUser']?.[localVarOperationServerIndex]?.url
206
+ return (axios, basePath) =>
207
+ createRequestFunction(
208
+ localVarAxiosArgs,
209
+ globalAxios,
210
+ BASE_PATH,
211
+ configuration,
212
+ )(axios, localVarOperationServerBasePath || basePath)
213
+ },
214
+ /**
215
+ *
216
+ * @summary Get authenticated user
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ async getAuthenticatedUser(
221
+ options?: RawAxiosRequestConfig,
222
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
223
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthenticatedUser(options)
224
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0
225
+ const localVarOperationServerBasePath =
226
+ operationServerMap['UsersApi.getAuthenticatedUser']?.[localVarOperationServerIndex]?.url
227
+ return (axios, basePath) =>
228
+ createRequestFunction(
229
+ localVarAxiosArgs,
230
+ globalAxios,
231
+ BASE_PATH,
232
+ configuration,
233
+ )(axios, localVarOperationServerBasePath || basePath)
234
+ },
235
+ /**
236
+ *
237
+ * @summary List all users
238
+ * @param {*} [options] Override http request option.
239
+ * @throws {RequiredError}
240
+ */
241
+ async listUsers(
242
+ options?: RawAxiosRequestConfig,
243
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
244
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options)
245
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0
246
+ const localVarOperationServerBasePath =
247
+ operationServerMap['UsersApi.listUsers']?.[localVarOperationServerIndex]?.url
248
+ return (axios, basePath) =>
249
+ createRequestFunction(
250
+ localVarAxiosArgs,
251
+ globalAxios,
252
+ BASE_PATH,
253
+ configuration,
254
+ )(axios, localVarOperationServerBasePath || basePath)
255
+ },
256
+ /**
257
+ *
258
+ * @summary Regenerate user key pair
259
+ * @param {string} id
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ async regenerateKeyPair(
264
+ id: string,
265
+ options?: RawAxiosRequestConfig,
266
+ ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateKeyPair(id, options)
268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0
269
+ const localVarOperationServerBasePath =
270
+ operationServerMap['UsersApi.regenerateKeyPair']?.[localVarOperationServerIndex]?.url
271
+ return (axios, basePath) =>
272
+ createRequestFunction(
273
+ localVarAxiosArgs,
274
+ globalAxios,
275
+ BASE_PATH,
276
+ configuration,
277
+ )(axios, localVarOperationServerBasePath || basePath)
278
+ },
279
+ }
280
+ }
302
281
 
303
282
  /**
304
283
  * UsersApi - factory interface
305
284
  * @export
306
285
  */
307
286
  export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
308
- const localVarFp = UsersApiFp(configuration)
309
- return {
310
- /**
311
- *
312
- * @summary Create user
313
- * @param {CreateUser} createUser
314
- * @param {*} [options] Override http request option.
315
- * @throws {RequiredError}
316
- */
317
- createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void> {
318
- return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
319
- },
320
- /**
321
- *
322
- * @summary Get user current usage overview
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- getUserUsageOverview(options?: RawAxiosRequestConfig): AxiosPromise<UsageOverview> {
327
- return localVarFp.getUserUsageOverview(options).then((request) => request(axios, basePath));
328
- },
329
- /**
330
- *
331
- * @summary List all users
332
- * @param {*} [options] Override http request option.
333
- * @throws {RequiredError}
334
- */
335
- listUsers(options?: RawAxiosRequestConfig): AxiosPromise<void> {
336
- return localVarFp.listUsers(options).then((request) => request(axios, basePath));
337
- },
338
- /**
339
- *
340
- * @summary Regenerate user key pair
341
- * @param {string} id
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
346
- return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath));
347
- },
348
- /**
349
- *
350
- * @summary Update user quota
351
- * @param {string} id
352
- * @param {UpdateUserQuotaDto} updateUserQuotaDto
353
- * @param {*} [options] Override http request option.
354
- * @throws {RequiredError}
355
- */
356
- updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
357
- return localVarFp.updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(axios, basePath));
358
- },
359
- };
360
- };
361
-
362
- /**
363
- * UsersApi - object-oriented interface
364
- * @export
365
- * @class UsersApi
366
- * @extends {BaseAPI}
367
- */
368
- export class UsersApi extends BaseAPI {
287
+ const localVarFp = UsersApiFp(configuration)
288
+ return {
369
289
  /**
370
- *
290
+ *
371
291
  * @summary Create user
372
- * @param {CreateUser} createUser
292
+ * @param {CreateUser} createUser
373
293
  * @param {*} [options] Override http request option.
374
294
  * @throws {RequiredError}
375
- * @memberof UsersApi
376
295
  */
377
- public createUser(createUser: CreateUser, options?: RawAxiosRequestConfig) {
378
- return UsersApiFp(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
379
- }
380
-
296
+ createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void> {
297
+ return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath))
298
+ },
381
299
  /**
382
- *
383
- * @summary Get user current usage overview
300
+ *
301
+ * @summary Get authenticated user
384
302
  * @param {*} [options] Override http request option.
385
303
  * @throws {RequiredError}
386
- * @memberof UsersApi
387
304
  */
388
- public getUserUsageOverview(options?: RawAxiosRequestConfig) {
389
- return UsersApiFp(this.configuration).getUserUsageOverview(options).then((request) => request(this.axios, this.basePath));
390
- }
391
-
305
+ getAuthenticatedUser(options?: RawAxiosRequestConfig): AxiosPromise<User> {
306
+ return localVarFp.getAuthenticatedUser(options).then((request) => request(axios, basePath))
307
+ },
392
308
  /**
393
- *
309
+ *
394
310
  * @summary List all users
395
311
  * @param {*} [options] Override http request option.
396
312
  * @throws {RequiredError}
397
- * @memberof UsersApi
398
313
  */
399
- public listUsers(options?: RawAxiosRequestConfig) {
400
- return UsersApiFp(this.configuration).listUsers(options).then((request) => request(this.axios, this.basePath));
401
- }
402
-
314
+ listUsers(options?: RawAxiosRequestConfig): AxiosPromise<void> {
315
+ return localVarFp.listUsers(options).then((request) => request(axios, basePath))
316
+ },
403
317
  /**
404
- *
318
+ *
405
319
  * @summary Regenerate user key pair
406
- * @param {string} id
320
+ * @param {string} id
407
321
  * @param {*} [options] Override http request option.
408
322
  * @throws {RequiredError}
409
- * @memberof UsersApi
410
323
  */
411
- public regenerateKeyPair(id: string, options?: RawAxiosRequestConfig) {
412
- return UsersApiFp(this.configuration).regenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
413
- }
414
-
415
- /**
416
- *
417
- * @summary Update user quota
418
- * @param {string} id
419
- * @param {UpdateUserQuotaDto} updateUserQuotaDto
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- * @memberof UsersApi
423
- */
424
- public updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig) {
425
- return UsersApiFp(this.configuration).updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(this.axios, this.basePath));
426
- }
324
+ regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
325
+ return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath))
326
+ },
327
+ }
427
328
  }
428
329
 
330
+ /**
331
+ * UsersApi - object-oriented interface
332
+ * @export
333
+ * @class UsersApi
334
+ * @extends {BaseAPI}
335
+ */
336
+ export class UsersApi extends BaseAPI {
337
+ /**
338
+ *
339
+ * @summary Create user
340
+ * @param {CreateUser} createUser
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ * @memberof UsersApi
344
+ */
345
+ public createUser(createUser: CreateUser, options?: RawAxiosRequestConfig) {
346
+ return UsersApiFp(this.configuration)
347
+ .createUser(createUser, options)
348
+ .then((request) => request(this.axios, this.basePath))
349
+ }
350
+
351
+ /**
352
+ *
353
+ * @summary Get authenticated user
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ * @memberof UsersApi
357
+ */
358
+ public getAuthenticatedUser(options?: RawAxiosRequestConfig) {
359
+ return UsersApiFp(this.configuration)
360
+ .getAuthenticatedUser(options)
361
+ .then((request) => request(this.axios, this.basePath))
362
+ }
363
+
364
+ /**
365
+ *
366
+ * @summary List all users
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ * @memberof UsersApi
370
+ */
371
+ public listUsers(options?: RawAxiosRequestConfig) {
372
+ return UsersApiFp(this.configuration)
373
+ .listUsers(options)
374
+ .then((request) => request(this.axios, this.basePath))
375
+ }
376
+
377
+ /**
378
+ *
379
+ * @summary Regenerate user key pair
380
+ * @param {string} id
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ * @memberof UsersApi
384
+ */
385
+ public regenerateKeyPair(id: string, options?: RawAxiosRequestConfig) {
386
+ return UsersApiFp(this.configuration)
387
+ .regenerateKeyPair(id, options)
388
+ .then((request) => request(this.axios, this.basePath))
389
+ }
390
+ }