@openfilz-sdk/typescript-ee 1.3.5

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 (507) hide show
  1. package/.openapi-generator/FILES +167 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/LICENSE +148 -0
  6. package/README.md +211 -0
  7. package/api/audit-controller-api.ts +283 -0
  8. package/api/collaboration-controller-api.ts +1172 -0
  9. package/api/comments-api.ts +284 -0
  10. package/api/dashboard-api.ts +121 -0
  11. package/api/document-controller-api.ts +1287 -0
  12. package/api/document-suggestion-controller-api.ts +149 -0
  13. package/api/favorites-api.ts +340 -0
  14. package/api/file-controller-api.ts +363 -0
  15. package/api/folder-controller-api.ts +605 -0
  16. package/api/notifications-api.ts +386 -0
  17. package/api/scan-agent-api.ts +206 -0
  18. package/api/scanner-proxy-api.ts +428 -0
  19. package/api/search-administration-api.ts +314 -0
  20. package/api/settings-api.ts +196 -0
  21. package/api/tus-controller-api.ts +738 -0
  22. package/api.ts +32 -0
  23. package/base.ts +62 -0
  24. package/common.ts +127 -0
  25. package/configuration.ts +121 -0
  26. package/dist/api/audit-controller-api.d.ts +138 -0
  27. package/dist/api/audit-controller-api.js +275 -0
  28. package/dist/api/collaboration-controller-api.d.ts +534 -0
  29. package/dist/api/collaboration-controller-api.js +1120 -0
  30. package/dist/api/comments-api.d.ts +137 -0
  31. package/dist/api/comments-api.js +278 -0
  32. package/dist/api/dashboard-api.d.ts +63 -0
  33. package/dist/api/dashboard-api.js +125 -0
  34. package/dist/api/document-controller-api.d.ts +594 -0
  35. package/dist/api/document-controller-api.js +1219 -0
  36. package/dist/api/document-suggestion-controller-api.d.ts +73 -0
  37. package/dist/api/document-suggestion-controller-api.js +146 -0
  38. package/dist/api/favorites-api.d.ts +162 -0
  39. package/dist/api/favorites-api.js +337 -0
  40. package/dist/api/file-controller-api.d.ts +172 -0
  41. package/dist/api/file-controller-api.js +348 -0
  42. package/dist/api/folder-controller-api.d.ts +282 -0
  43. package/dist/api/folder-controller-api.js +573 -0
  44. package/dist/api/notifications-api.d.ts +179 -0
  45. package/dist/api/notifications-api.js +378 -0
  46. package/dist/api/scan-agent-api.d.ts +108 -0
  47. package/dist/api/scan-agent-api.js +208 -0
  48. package/dist/api/scanner-proxy-api.d.ts +202 -0
  49. package/dist/api/scanner-proxy-api.js +414 -0
  50. package/dist/api/search-administration-api.d.ts +146 -0
  51. package/dist/api/search-administration-api.js +311 -0
  52. package/dist/api/settings-api.d.ts +96 -0
  53. package/dist/api/settings-api.js +195 -0
  54. package/dist/api/tus-controller-api.d.ts +338 -0
  55. package/dist/api/tus-controller-api.js +712 -0
  56. package/dist/api.d.ts +26 -0
  57. package/dist/api.js +44 -0
  58. package/dist/base.d.ts +42 -0
  59. package/dist/base.js +46 -0
  60. package/dist/common.d.ts +34 -0
  61. package/dist/common.js +139 -0
  62. package/dist/configuration.d.ts +98 -0
  63. package/dist/configuration.js +44 -0
  64. package/dist/esm/api/audit-controller-api.d.ts +138 -0
  65. package/dist/esm/api/audit-controller-api.js +268 -0
  66. package/dist/esm/api/collaboration-controller-api.d.ts +534 -0
  67. package/dist/esm/api/collaboration-controller-api.js +1113 -0
  68. package/dist/esm/api/comments-api.d.ts +137 -0
  69. package/dist/esm/api/comments-api.js +271 -0
  70. package/dist/esm/api/dashboard-api.d.ts +63 -0
  71. package/dist/esm/api/dashboard-api.js +118 -0
  72. package/dist/esm/api/document-controller-api.d.ts +594 -0
  73. package/dist/esm/api/document-controller-api.js +1212 -0
  74. package/dist/esm/api/document-suggestion-controller-api.d.ts +73 -0
  75. package/dist/esm/api/document-suggestion-controller-api.js +139 -0
  76. package/dist/esm/api/favorites-api.d.ts +162 -0
  77. package/dist/esm/api/favorites-api.js +330 -0
  78. package/dist/esm/api/file-controller-api.d.ts +172 -0
  79. package/dist/esm/api/file-controller-api.js +341 -0
  80. package/dist/esm/api/folder-controller-api.d.ts +282 -0
  81. package/dist/esm/api/folder-controller-api.js +566 -0
  82. package/dist/esm/api/notifications-api.d.ts +179 -0
  83. package/dist/esm/api/notifications-api.js +371 -0
  84. package/dist/esm/api/scan-agent-api.d.ts +108 -0
  85. package/dist/esm/api/scan-agent-api.js +201 -0
  86. package/dist/esm/api/scanner-proxy-api.d.ts +202 -0
  87. package/dist/esm/api/scanner-proxy-api.js +407 -0
  88. package/dist/esm/api/search-administration-api.d.ts +146 -0
  89. package/dist/esm/api/search-administration-api.js +304 -0
  90. package/dist/esm/api/settings-api.d.ts +96 -0
  91. package/dist/esm/api/settings-api.js +188 -0
  92. package/dist/esm/api/tus-controller-api.d.ts +338 -0
  93. package/dist/esm/api/tus-controller-api.js +705 -0
  94. package/dist/esm/api.d.ts +26 -0
  95. package/dist/esm/api.js +28 -0
  96. package/dist/esm/base.d.ts +42 -0
  97. package/dist/esm/base.js +41 -0
  98. package/dist/esm/common.d.ts +34 -0
  99. package/dist/esm/common.js +126 -0
  100. package/dist/esm/configuration.d.ts +98 -0
  101. package/dist/esm/configuration.js +40 -0
  102. package/dist/esm/index.d.ts +14 -0
  103. package/dist/esm/index.js +16 -0
  104. package/dist/esm/models/ancestor-info.d.ts +16 -0
  105. package/dist/esm/models/ancestor-info.js +14 -0
  106. package/dist/esm/models/audit-log-details-one-of.d.ts +42 -0
  107. package/dist/esm/models/audit-log-details-one-of.js +14 -0
  108. package/dist/esm/models/audit-log-details.d.ts +14 -0
  109. package/dist/esm/models/audit-log-details.js +14 -0
  110. package/dist/esm/models/audit-log.d.ts +63 -0
  111. package/dist/esm/models/audit-log.js +49 -0
  112. package/dist/esm/models/audit-verification-result.d.ts +28 -0
  113. package/dist/esm/models/audit-verification-result.js +18 -0
  114. package/dist/esm/models/broken-link.d.ts +16 -0
  115. package/dist/esm/models/broken-link.js +14 -0
  116. package/dist/esm/models/comment-dto.d.ts +22 -0
  117. package/dist/esm/models/comment-dto.js +14 -0
  118. package/dist/esm/models/copy-audit.d.ts +17 -0
  119. package/dist/esm/models/copy-audit.js +14 -0
  120. package/dist/esm/models/copy-request.d.ts +25 -0
  121. package/dist/esm/models/copy-request.js +14 -0
  122. package/dist/esm/models/copy-response.d.ts +21 -0
  123. package/dist/esm/models/copy-response.js +14 -0
  124. package/dist/esm/models/create-blank-document-request.d.ts +29 -0
  125. package/dist/esm/models/create-blank-document-request.js +19 -0
  126. package/dist/esm/models/create-comment-request.d.ts +25 -0
  127. package/dist/esm/models/create-comment-request.js +14 -0
  128. package/dist/esm/models/create-folder-audit.d.ts +17 -0
  129. package/dist/esm/models/create-folder-audit.js +14 -0
  130. package/dist/esm/models/create-folder-request.d.ts +18 -0
  131. package/dist/esm/models/create-folder-request.js +14 -0
  132. package/dist/esm/models/create-team-request.d.ts +15 -0
  133. package/dist/esm/models/create-team-request.js +14 -0
  134. package/dist/esm/models/dashboard-statistics-response.d.ts +19 -0
  135. package/dist/esm/models/dashboard-statistics-response.js +14 -0
  136. package/dist/esm/models/delete-audit.d.ts +17 -0
  137. package/dist/esm/models/delete-audit.js +14 -0
  138. package/dist/esm/models/delete-metadata-audit.d.ts +17 -0
  139. package/dist/esm/models/delete-metadata-audit.js +14 -0
  140. package/dist/esm/models/delete-metadata-request.d.ts +17 -0
  141. package/dist/esm/models/delete-metadata-request.js +14 -0
  142. package/dist/esm/models/delete-request.d.ts +17 -0
  143. package/dist/esm/models/delete-request.js +14 -0
  144. package/dist/esm/models/delete-share-request.d.ts +18 -0
  145. package/dist/esm/models/delete-share-request.js +14 -0
  146. package/dist/esm/models/document-info.d.ts +44 -0
  147. package/dist/esm/models/document-info.js +17 -0
  148. package/dist/esm/models/document-position.d.ts +17 -0
  149. package/dist/esm/models/document-position.js +14 -0
  150. package/dist/esm/models/element-info.d.ts +16 -0
  151. package/dist/esm/models/element-info.js +14 -0
  152. package/dist/esm/models/file-type-stats.d.ts +16 -0
  153. package/dist/esm/models/file-type-stats.js +14 -0
  154. package/dist/esm/models/filter-input.d.ts +15 -0
  155. package/dist/esm/models/filter-input.js +14 -0
  156. package/dist/esm/models/folder-element-info.d.ts +30 -0
  157. package/dist/esm/models/folder-element-info.js +17 -0
  158. package/dist/esm/models/folder-response.d.ts +16 -0
  159. package/dist/esm/models/folder-response.js +14 -0
  160. package/dist/esm/models/index.d.ts +62 -0
  161. package/dist/esm/models/index.js +62 -0
  162. package/dist/esm/models/ingestion-status-dto.d.ts +22 -0
  163. package/dist/esm/models/ingestion-status-dto.js +14 -0
  164. package/dist/esm/models/move-audit.d.ts +17 -0
  165. package/dist/esm/models/move-audit.js +14 -0
  166. package/dist/esm/models/move-request.d.ts +25 -0
  167. package/dist/esm/models/move-request.js +14 -0
  168. package/dist/esm/models/notification-dto.d.ts +29 -0
  169. package/dist/esm/models/notification-dto.js +19 -0
  170. package/dist/esm/models/rename-audit.d.ts +17 -0
  171. package/dist/esm/models/rename-audit.js +14 -0
  172. package/dist/esm/models/rename-request.d.ts +14 -0
  173. package/dist/esm/models/rename-request.js +14 -0
  174. package/dist/esm/models/replace-audit.d.ts +17 -0
  175. package/dist/esm/models/replace-audit.js +14 -0
  176. package/dist/esm/models/scan-job-status-dto.d.ts +20 -0
  177. package/dist/esm/models/scan-job-status-dto.js +14 -0
  178. package/dist/esm/models/scan-request-dto.d.ts +18 -0
  179. package/dist/esm/models/scan-request-dto.js +14 -0
  180. package/dist/esm/models/scanner-info-dto.d.ts +22 -0
  181. package/dist/esm/models/scanner-info-dto.js +14 -0
  182. package/dist/esm/models/search-by-audit-log-request.d.ts +76 -0
  183. package/dist/esm/models/search-by-audit-log-request.js +49 -0
  184. package/dist/esm/models/search-by-metadata-request.d.ts +43 -0
  185. package/dist/esm/models/search-by-metadata-request.js +17 -0
  186. package/dist/esm/models/search-metadata-request.d.ts +17 -0
  187. package/dist/esm/models/search-metadata-request.js +14 -0
  188. package/dist/esm/models/settings.d.ts +19 -0
  189. package/dist/esm/models/settings.js +14 -0
  190. package/dist/esm/models/share-request.d.ts +35 -0
  191. package/dist/esm/models/share-request.js +18 -0
  192. package/dist/esm/models/share-result-error.d.ts +26 -0
  193. package/dist/esm/models/share-result-error.js +22 -0
  194. package/dist/esm/models/share-result-item.d.ts +15 -0
  195. package/dist/esm/models/share-result-item.js +14 -0
  196. package/dist/esm/models/share-result-response.d.ts +18 -0
  197. package/dist/esm/models/share-result-response.js +14 -0
  198. package/dist/esm/models/sort-input.d.ts +20 -0
  199. package/dist/esm/models/sort-input.js +17 -0
  200. package/dist/esm/models/storage-breakdown.d.ts +17 -0
  201. package/dist/esm/models/storage-breakdown.js +14 -0
  202. package/dist/esm/models/suggest.d.ts +17 -0
  203. package/dist/esm/models/suggest.js +14 -0
  204. package/dist/esm/models/team-member-info.d.ts +23 -0
  205. package/dist/esm/models/team-member-info.js +18 -0
  206. package/dist/esm/models/tus-config-response.d.ts +18 -0
  207. package/dist/esm/models/tus-config-response.js +14 -0
  208. package/dist/esm/models/tus-finalize-request.d.ts +19 -0
  209. package/dist/esm/models/tus-finalize-request.js +14 -0
  210. package/dist/esm/models/tus-upload-info.d.ts +18 -0
  211. package/dist/esm/models/tus-upload-info.js +14 -0
  212. package/dist/esm/models/update-comment-request.d.ts +21 -0
  213. package/dist/esm/models/update-comment-request.js +14 -0
  214. package/dist/esm/models/update-metadata-audit.d.ts +17 -0
  215. package/dist/esm/models/update-metadata-audit.js +14 -0
  216. package/dist/esm/models/update-metadata-request.d.ts +19 -0
  217. package/dist/esm/models/update-metadata-request.js +14 -0
  218. package/dist/esm/models/update-team-request.d.ts +15 -0
  219. package/dist/esm/models/update-team-request.js +14 -0
  220. package/dist/esm/models/update-user-request.d.ts +22 -0
  221. package/dist/esm/models/update-user-request.js +18 -0
  222. package/dist/esm/models/upload-audit.d.ts +17 -0
  223. package/dist/esm/models/upload-audit.js +14 -0
  224. package/dist/esm/models/upload-response.d.ts +19 -0
  225. package/dist/esm/models/upload-response.js +14 -0
  226. package/dist/esm/models/user-preferences-request.d.ts +15 -0
  227. package/dist/esm/models/user-preferences-request.js +14 -0
  228. package/dist/esm/models/user-registration-request.d.ts +22 -0
  229. package/dist/esm/models/user-registration-request.js +18 -0
  230. package/dist/index.d.ts +14 -0
  231. package/dist/index.js +32 -0
  232. package/dist/models/ancestor-info.d.ts +16 -0
  233. package/dist/models/ancestor-info.js +15 -0
  234. package/dist/models/audit-log-details-one-of.d.ts +42 -0
  235. package/dist/models/audit-log-details-one-of.js +15 -0
  236. package/dist/models/audit-log-details.d.ts +14 -0
  237. package/dist/models/audit-log-details.js +15 -0
  238. package/dist/models/audit-log.d.ts +63 -0
  239. package/dist/models/audit-log.js +52 -0
  240. package/dist/models/audit-verification-result.d.ts +28 -0
  241. package/dist/models/audit-verification-result.js +21 -0
  242. package/dist/models/broken-link.d.ts +16 -0
  243. package/dist/models/broken-link.js +15 -0
  244. package/dist/models/comment-dto.d.ts +22 -0
  245. package/dist/models/comment-dto.js +15 -0
  246. package/dist/models/copy-audit.d.ts +17 -0
  247. package/dist/models/copy-audit.js +15 -0
  248. package/dist/models/copy-request.d.ts +25 -0
  249. package/dist/models/copy-request.js +15 -0
  250. package/dist/models/copy-response.d.ts +21 -0
  251. package/dist/models/copy-response.js +15 -0
  252. package/dist/models/create-blank-document-request.d.ts +29 -0
  253. package/dist/models/create-blank-document-request.js +22 -0
  254. package/dist/models/create-comment-request.d.ts +25 -0
  255. package/dist/models/create-comment-request.js +15 -0
  256. package/dist/models/create-folder-audit.d.ts +17 -0
  257. package/dist/models/create-folder-audit.js +15 -0
  258. package/dist/models/create-folder-request.d.ts +18 -0
  259. package/dist/models/create-folder-request.js +15 -0
  260. package/dist/models/create-team-request.d.ts +15 -0
  261. package/dist/models/create-team-request.js +15 -0
  262. package/dist/models/dashboard-statistics-response.d.ts +19 -0
  263. package/dist/models/dashboard-statistics-response.js +15 -0
  264. package/dist/models/delete-audit.d.ts +17 -0
  265. package/dist/models/delete-audit.js +15 -0
  266. package/dist/models/delete-metadata-audit.d.ts +17 -0
  267. package/dist/models/delete-metadata-audit.js +15 -0
  268. package/dist/models/delete-metadata-request.d.ts +17 -0
  269. package/dist/models/delete-metadata-request.js +15 -0
  270. package/dist/models/delete-request.d.ts +17 -0
  271. package/dist/models/delete-request.js +15 -0
  272. package/dist/models/delete-share-request.d.ts +18 -0
  273. package/dist/models/delete-share-request.js +15 -0
  274. package/dist/models/document-info.d.ts +44 -0
  275. package/dist/models/document-info.js +20 -0
  276. package/dist/models/document-position.d.ts +17 -0
  277. package/dist/models/document-position.js +15 -0
  278. package/dist/models/element-info.d.ts +16 -0
  279. package/dist/models/element-info.js +15 -0
  280. package/dist/models/file-type-stats.d.ts +16 -0
  281. package/dist/models/file-type-stats.js +15 -0
  282. package/dist/models/filter-input.d.ts +15 -0
  283. package/dist/models/filter-input.js +15 -0
  284. package/dist/models/folder-element-info.d.ts +30 -0
  285. package/dist/models/folder-element-info.js +20 -0
  286. package/dist/models/folder-response.d.ts +16 -0
  287. package/dist/models/folder-response.js +15 -0
  288. package/dist/models/index.d.ts +62 -0
  289. package/dist/models/index.js +78 -0
  290. package/dist/models/ingestion-status-dto.d.ts +22 -0
  291. package/dist/models/ingestion-status-dto.js +15 -0
  292. package/dist/models/move-audit.d.ts +17 -0
  293. package/dist/models/move-audit.js +15 -0
  294. package/dist/models/move-request.d.ts +25 -0
  295. package/dist/models/move-request.js +15 -0
  296. package/dist/models/notification-dto.d.ts +29 -0
  297. package/dist/models/notification-dto.js +22 -0
  298. package/dist/models/rename-audit.d.ts +17 -0
  299. package/dist/models/rename-audit.js +15 -0
  300. package/dist/models/rename-request.d.ts +14 -0
  301. package/dist/models/rename-request.js +15 -0
  302. package/dist/models/replace-audit.d.ts +17 -0
  303. package/dist/models/replace-audit.js +15 -0
  304. package/dist/models/scan-job-status-dto.d.ts +20 -0
  305. package/dist/models/scan-job-status-dto.js +15 -0
  306. package/dist/models/scan-request-dto.d.ts +18 -0
  307. package/dist/models/scan-request-dto.js +15 -0
  308. package/dist/models/scanner-info-dto.d.ts +22 -0
  309. package/dist/models/scanner-info-dto.js +15 -0
  310. package/dist/models/search-by-audit-log-request.d.ts +76 -0
  311. package/dist/models/search-by-audit-log-request.js +52 -0
  312. package/dist/models/search-by-metadata-request.d.ts +43 -0
  313. package/dist/models/search-by-metadata-request.js +20 -0
  314. package/dist/models/search-metadata-request.d.ts +17 -0
  315. package/dist/models/search-metadata-request.js +15 -0
  316. package/dist/models/settings.d.ts +19 -0
  317. package/dist/models/settings.js +15 -0
  318. package/dist/models/share-request.d.ts +35 -0
  319. package/dist/models/share-request.js +21 -0
  320. package/dist/models/share-result-error.d.ts +26 -0
  321. package/dist/models/share-result-error.js +25 -0
  322. package/dist/models/share-result-item.d.ts +15 -0
  323. package/dist/models/share-result-item.js +15 -0
  324. package/dist/models/share-result-response.d.ts +18 -0
  325. package/dist/models/share-result-response.js +15 -0
  326. package/dist/models/sort-input.d.ts +20 -0
  327. package/dist/models/sort-input.js +20 -0
  328. package/dist/models/storage-breakdown.d.ts +17 -0
  329. package/dist/models/storage-breakdown.js +15 -0
  330. package/dist/models/suggest.d.ts +17 -0
  331. package/dist/models/suggest.js +15 -0
  332. package/dist/models/team-member-info.d.ts +23 -0
  333. package/dist/models/team-member-info.js +21 -0
  334. package/dist/models/tus-config-response.d.ts +18 -0
  335. package/dist/models/tus-config-response.js +15 -0
  336. package/dist/models/tus-finalize-request.d.ts +19 -0
  337. package/dist/models/tus-finalize-request.js +15 -0
  338. package/dist/models/tus-upload-info.d.ts +18 -0
  339. package/dist/models/tus-upload-info.js +15 -0
  340. package/dist/models/update-comment-request.d.ts +21 -0
  341. package/dist/models/update-comment-request.js +15 -0
  342. package/dist/models/update-metadata-audit.d.ts +17 -0
  343. package/dist/models/update-metadata-audit.js +15 -0
  344. package/dist/models/update-metadata-request.d.ts +19 -0
  345. package/dist/models/update-metadata-request.js +15 -0
  346. package/dist/models/update-team-request.d.ts +15 -0
  347. package/dist/models/update-team-request.js +15 -0
  348. package/dist/models/update-user-request.d.ts +22 -0
  349. package/dist/models/update-user-request.js +21 -0
  350. package/dist/models/upload-audit.d.ts +17 -0
  351. package/dist/models/upload-audit.js +15 -0
  352. package/dist/models/upload-response.d.ts +19 -0
  353. package/dist/models/upload-response.js +15 -0
  354. package/dist/models/user-preferences-request.d.ts +15 -0
  355. package/dist/models/user-preferences-request.js +15 -0
  356. package/dist/models/user-registration-request.d.ts +22 -0
  357. package/dist/models/user-registration-request.js +21 -0
  358. package/docs/AncestorInfo.md +24 -0
  359. package/docs/AuditControllerApi.md +160 -0
  360. package/docs/AuditLog.md +35 -0
  361. package/docs/AuditLogDetails.md +20 -0
  362. package/docs/AuditLogDetailsOneOf.md +42 -0
  363. package/docs/AuditVerificationResult.md +29 -0
  364. package/docs/BrokenLink.md +24 -0
  365. package/docs/CollaborationControllerApi.md +802 -0
  366. package/docs/CommentDTO.md +36 -0
  367. package/docs/CommentsApi.md +168 -0
  368. package/docs/CopyAudit.md +25 -0
  369. package/docs/CopyRequest.md +24 -0
  370. package/docs/CopyResponse.md +22 -0
  371. package/docs/CreateBlankDocumentRequest.md +24 -0
  372. package/docs/CreateCommentRequest.md +24 -0
  373. package/docs/CreateFolderAudit.md +23 -0
  374. package/docs/CreateFolderRequest.md +22 -0
  375. package/docs/CreateTeamRequest.md +22 -0
  376. package/docs/DashboardApi.md +52 -0
  377. package/docs/DashboardStatisticsResponse.md +26 -0
  378. package/docs/DeleteAudit.md +21 -0
  379. package/docs/DeleteMetadataAudit.md +21 -0
  380. package/docs/DeleteMetadataRequest.md +20 -0
  381. package/docs/DeleteRequest.md +20 -0
  382. package/docs/DeleteShareRequest.md +22 -0
  383. package/docs/DocumentControllerApi.md +834 -0
  384. package/docs/DocumentInfo.md +30 -0
  385. package/docs/DocumentPosition.md +26 -0
  386. package/docs/DocumentSuggestionControllerApi.md +65 -0
  387. package/docs/ElementInfo.md +24 -0
  388. package/docs/FavoritesApi.md +215 -0
  389. package/docs/FileControllerApi.md +222 -0
  390. package/docs/FileTypeStats.md +24 -0
  391. package/docs/FilterInput.md +22 -0
  392. package/docs/FolderControllerApi.md +385 -0
  393. package/docs/FolderElementInfo.md +24 -0
  394. package/docs/FolderResponse.md +24 -0
  395. package/docs/IngestionStatusDto.md +36 -0
  396. package/docs/MoveAudit.md +21 -0
  397. package/docs/MoveRequest.md +24 -0
  398. package/docs/NotificationDTO.md +36 -0
  399. package/docs/NotificationsApi.md +239 -0
  400. package/docs/RenameAudit.md +21 -0
  401. package/docs/RenameRequest.md +20 -0
  402. package/docs/ReplaceAudit.md +23 -0
  403. package/docs/ScanAgentApi.md +110 -0
  404. package/docs/ScanJobStatusDto.md +32 -0
  405. package/docs/ScanRequestDto.md +28 -0
  406. package/docs/ScannerInfoDto.md +36 -0
  407. package/docs/ScannerProxyApi.md +263 -0
  408. package/docs/SearchAdministrationApi.md +187 -0
  409. package/docs/SearchByAuditLogRequest.md +29 -0
  410. package/docs/SearchByMetadataRequest.md +29 -0
  411. package/docs/SearchMetadataRequest.md +20 -0
  412. package/docs/Settings.md +30 -0
  413. package/docs/SettingsApi.md +105 -0
  414. package/docs/ShareRequest.md +26 -0
  415. package/docs/ShareResultError.md +24 -0
  416. package/docs/ShareResultItem.md +22 -0
  417. package/docs/ShareResultResponse.md +24 -0
  418. package/docs/SortInput.md +22 -0
  419. package/docs/StorageBreakdown.md +24 -0
  420. package/docs/Suggest.md +26 -0
  421. package/docs/TeamMemberInfo.md +26 -0
  422. package/docs/TusConfigResponse.md +28 -0
  423. package/docs/TusControllerApi.md +493 -0
  424. package/docs/TusFinalizeRequest.md +26 -0
  425. package/docs/TusUploadInfo.md +28 -0
  426. package/docs/UpdateCommentRequest.md +22 -0
  427. package/docs/UpdateMetadataAudit.md +21 -0
  428. package/docs/UpdateMetadataRequest.md +20 -0
  429. package/docs/UpdateTeamRequest.md +22 -0
  430. package/docs/UpdateUserRequest.md +24 -0
  431. package/docs/UploadAudit.md +25 -0
  432. package/docs/UploadResponse.md +30 -0
  433. package/docs/UserPreferencesRequest.md +22 -0
  434. package/docs/UserRegistrationRequest.md +24 -0
  435. package/git_push.sh +57 -0
  436. package/graphql/analytics.graphqls +101 -0
  437. package/graphql/comment.graphqls +33 -0
  438. package/graphql/document-search.graphqls +44 -0
  439. package/graphql/document.graphqls +116 -0
  440. package/graphql/share.graphqls +168 -0
  441. package/index.ts +18 -0
  442. package/models/ancestor-info.ts +22 -0
  443. package/models/audit-log-details-one-of.ts +70 -0
  444. package/models/audit-log-details.ts +20 -0
  445. package/models/audit-log.ts +75 -0
  446. package/models/audit-verification-result.ts +39 -0
  447. package/models/broken-link.ts +22 -0
  448. package/models/comment-dto.ts +28 -0
  449. package/models/copy-audit.ts +26 -0
  450. package/models/copy-request.ts +31 -0
  451. package/models/copy-response.ts +27 -0
  452. package/models/create-blank-document-request.ts +38 -0
  453. package/models/create-comment-request.ts +31 -0
  454. package/models/create-folder-audit.ts +29 -0
  455. package/models/create-folder-request.ts +24 -0
  456. package/models/create-team-request.ts +21 -0
  457. package/models/dashboard-statistics-response.ts +29 -0
  458. package/models/delete-audit.ts +26 -0
  459. package/models/delete-metadata-audit.ts +26 -0
  460. package/models/delete-metadata-request.ts +23 -0
  461. package/models/delete-request.ts +23 -0
  462. package/models/delete-share-request.ts +24 -0
  463. package/models/document-info.ts +51 -0
  464. package/models/document-position.ts +23 -0
  465. package/models/element-info.ts +22 -0
  466. package/models/file-type-stats.ts +22 -0
  467. package/models/filter-input.ts +21 -0
  468. package/models/folder-element-info.ts +39 -0
  469. package/models/folder-response.ts +22 -0
  470. package/models/index.ts +62 -0
  471. package/models/ingestion-status-dto.ts +28 -0
  472. package/models/move-audit.ts +26 -0
  473. package/models/move-request.ts +31 -0
  474. package/models/notification-dto.ts +38 -0
  475. package/models/rename-audit.ts +26 -0
  476. package/models/rename-request.ts +20 -0
  477. package/models/replace-audit.ts +26 -0
  478. package/models/scan-job-status-dto.ts +26 -0
  479. package/models/scan-request-dto.ts +24 -0
  480. package/models/scanner-info-dto.ts +28 -0
  481. package/models/search-by-audit-log-request.ts +84 -0
  482. package/models/search-by-metadata-request.ts +50 -0
  483. package/models/search-metadata-request.ts +23 -0
  484. package/models/settings.ts +25 -0
  485. package/models/share-request.ts +44 -0
  486. package/models/share-result-error.ts +35 -0
  487. package/models/share-result-item.ts +21 -0
  488. package/models/share-result-response.ts +28 -0
  489. package/models/sort-input.ts +29 -0
  490. package/models/storage-breakdown.ts +25 -0
  491. package/models/suggest.ts +23 -0
  492. package/models/team-member-info.ts +32 -0
  493. package/models/tus-config-response.ts +24 -0
  494. package/models/tus-finalize-request.ts +23 -0
  495. package/models/tus-upload-info.ts +24 -0
  496. package/models/update-comment-request.ts +27 -0
  497. package/models/update-metadata-audit.ts +26 -0
  498. package/models/update-metadata-request.ts +23 -0
  499. package/models/update-team-request.ts +21 -0
  500. package/models/update-user-request.ts +31 -0
  501. package/models/upload-audit.ts +26 -0
  502. package/models/upload-response.ts +25 -0
  503. package/models/user-preferences-request.ts +21 -0
  504. package/models/user-registration-request.ts +31 -0
  505. package/package.json +33 -0
  506. package/tsconfig.esm.json +7 -0
  507. package/tsconfig.json +18 -0
@@ -0,0 +1,1113 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * CollaborationControllerApi - axios parameter creator
31
+ */
32
+ export const CollaborationControllerApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
36
+ * @summary Accept a share request
37
+ * @param {string} id
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ acceptShareRequest: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
42
+ // verify required parameter 'id' is not null or undefined
43
+ assertParamExists('acceptShareRequest', 'id', id);
44
+ const localVarPath = `/api/v1/users/share-requests/{id}/accept`
45
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Accept'] = '*/*';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ * Adds users to a team. Requires ADMIN_USERS role.
69
+ * @summary Add team members
70
+ * @param {string} teamId
71
+ * @param {Array<string>} requestBody
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ addTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
76
+ // verify required parameter 'teamId' is not null or undefined
77
+ assertParamExists('addTeamMembers', 'teamId', teamId);
78
+ // verify required parameter 'requestBody' is not null or undefined
79
+ assertParamExists('addTeamMembers', 'requestBody', requestBody);
80
+ const localVarPath = `/api/v1/users/teams/{teamId}/members`
81
+ .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
89
+ const localVarHeaderParameter = {};
90
+ const localVarQueryParameter = {};
91
+ // authentication keycloak_auth required
92
+ // http bearer authentication required
93
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
94
+ localVarHeaderParameter['Content-Type'] = 'application/json';
95
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
99
+ return {
100
+ url: toPathString(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ * Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
106
+ * @summary Create Share for document(s)
107
+ * @param {ShareRequest} shareRequest
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ createSharedDocuments: (shareRequest_1, ...args_1) => __awaiter(this, [shareRequest_1, ...args_1], void 0, function* (shareRequest, options = {}) {
112
+ // verify required parameter 'shareRequest' is not null or undefined
113
+ assertParamExists('createSharedDocuments', 'shareRequest', shareRequest);
114
+ const localVarPath = `/api/v1/users/share`;
115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
117
+ let baseOptions;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
122
+ const localVarHeaderParameter = {};
123
+ const localVarQueryParameter = {};
124
+ // authentication keycloak_auth required
125
+ // http bearer authentication required
126
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
127
+ localVarHeaderParameter['Content-Type'] = 'application/json';
128
+ localVarHeaderParameter['Accept'] = '*/*';
129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ localVarRequestOptions.data = serializeDataIfNeeded(shareRequest, localVarRequestOptions, configuration);
133
+ return {
134
+ url: toPathString(localVarUrlObj),
135
+ options: localVarRequestOptions,
136
+ };
137
+ }),
138
+ /**
139
+ * Creates a new team. Requires ADMIN_USERS role.
140
+ * @summary Create a team
141
+ * @param {CreateTeamRequest} createTeamRequest
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ createTeam: (createTeamRequest_1, ...args_1) => __awaiter(this, [createTeamRequest_1, ...args_1], void 0, function* (createTeamRequest, options = {}) {
146
+ // verify required parameter 'createTeamRequest' is not null or undefined
147
+ assertParamExists('createTeam', 'createTeamRequest', createTeamRequest);
148
+ const localVarPath = `/api/v1/users/teams`;
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ }
155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
156
+ const localVarHeaderParameter = {};
157
+ const localVarQueryParameter = {};
158
+ // authentication keycloak_auth required
159
+ // http bearer authentication required
160
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
161
+ localVarHeaderParameter['Content-Type'] = 'application/json';
162
+ localVarHeaderParameter['Accept'] = '*/*';
163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
166
+ localVarRequestOptions.data = serializeDataIfNeeded(createTeamRequest, localVarRequestOptions, configuration);
167
+ return {
168
+ url: toPathString(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ }),
172
+ /**
173
+ * Create a new user to share documents with
174
+ * @summary Create a new user
175
+ * @param {UserRegistrationRequest} userRegistrationRequest
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ createUser: (userRegistrationRequest_1, ...args_1) => __awaiter(this, [userRegistrationRequest_1, ...args_1], void 0, function* (userRegistrationRequest, options = {}) {
180
+ // verify required parameter 'userRegistrationRequest' is not null or undefined
181
+ assertParamExists('createUser', 'userRegistrationRequest', userRegistrationRequest);
182
+ const localVarPath = `/api/v1/users`;
183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
185
+ let baseOptions;
186
+ if (configuration) {
187
+ baseOptions = configuration.baseOptions;
188
+ }
189
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
190
+ const localVarHeaderParameter = {};
191
+ const localVarQueryParameter = {};
192
+ // authentication keycloak_auth required
193
+ // http bearer authentication required
194
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
195
+ localVarHeaderParameter['Content-Type'] = 'application/json';
196
+ localVarHeaderParameter['Accept'] = '*/*';
197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ localVarRequestOptions.data = serializeDataIfNeeded(userRegistrationRequest, localVarRequestOptions, configuration);
201
+ return {
202
+ url: toPathString(localVarUrlObj),
203
+ options: localVarRequestOptions,
204
+ };
205
+ }),
206
+ /**
207
+ * Deactivates a user. Requires ADMIN_USERS role.
208
+ * @summary Deactivate a user
209
+ * @param {string} userId
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ deactivateUser: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
214
+ // verify required parameter 'userId' is not null or undefined
215
+ assertParamExists('deactivateUser', 'userId', userId);
216
+ const localVarPath = `/api/v1/users/{userId}`
217
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
220
+ let baseOptions;
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ }
224
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
225
+ const localVarHeaderParameter = {};
226
+ const localVarQueryParameter = {};
227
+ // authentication keycloak_auth required
228
+ // http bearer authentication required
229
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
233
+ return {
234
+ url: toPathString(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ };
237
+ }),
238
+ /**
239
+ * Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
240
+ * @summary Delete Share for document(s)
241
+ * @param {DeleteShareRequest} deleteShareRequest
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ deleteSharedDocuments: (deleteShareRequest_1, ...args_1) => __awaiter(this, [deleteShareRequest_1, ...args_1], void 0, function* (deleteShareRequest, options = {}) {
246
+ // verify required parameter 'deleteShareRequest' is not null or undefined
247
+ assertParamExists('deleteSharedDocuments', 'deleteShareRequest', deleteShareRequest);
248
+ const localVarPath = `/api/v1/users/share`;
249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
251
+ let baseOptions;
252
+ if (configuration) {
253
+ baseOptions = configuration.baseOptions;
254
+ }
255
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
256
+ const localVarHeaderParameter = {};
257
+ const localVarQueryParameter = {};
258
+ // authentication keycloak_auth required
259
+ // http bearer authentication required
260
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
261
+ localVarHeaderParameter['Content-Type'] = 'application/json';
262
+ localVarHeaderParameter['Accept'] = '*/*';
263
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
264
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
266
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteShareRequest, localVarRequestOptions, configuration);
267
+ return {
268
+ url: toPathString(localVarUrlObj),
269
+ options: localVarRequestOptions,
270
+ };
271
+ }),
272
+ /**
273
+ * Deletes a team. Requires ADMIN_USERS role.
274
+ * @summary Delete a team
275
+ * @param {string} teamId
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ deleteTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
280
+ // verify required parameter 'teamId' is not null or undefined
281
+ assertParamExists('deleteTeam', 'teamId', teamId);
282
+ const localVarPath = `/api/v1/users/teams/{teamId}`
283
+ .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
286
+ let baseOptions;
287
+ if (configuration) {
288
+ baseOptions = configuration.baseOptions;
289
+ }
290
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
291
+ const localVarHeaderParameter = {};
292
+ const localVarQueryParameter = {};
293
+ // authentication keycloak_auth required
294
+ // http bearer authentication required
295
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ }),
304
+ /**
305
+ * Lists all members of a team. Requires ADMIN_USERS role.
306
+ * @summary Get team members
307
+ * @param {string} teamId
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ getTeamMembers: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
312
+ // verify required parameter 'teamId' is not null or undefined
313
+ assertParamExists('getTeamMembers', 'teamId', teamId);
314
+ const localVarPath = `/api/v1/users/teams/{teamId}/members`
315
+ .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
318
+ let baseOptions;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ }
322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
323
+ const localVarHeaderParameter = {};
324
+ const localVarQueryParameter = {};
325
+ // authentication keycloak_auth required
326
+ // http bearer authentication required
327
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
328
+ localVarHeaderParameter['Accept'] = '*/*';
329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
331
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
332
+ return {
333
+ url: toPathString(localVarUrlObj),
334
+ options: localVarRequestOptions,
335
+ };
336
+ }),
337
+ /**
338
+ * Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
339
+ * @summary Check user status
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ getUserStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
344
+ const localVarPath = `/api/v1/users/me/status`;
345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
346
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
347
+ let baseOptions;
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ }
351
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
352
+ const localVarHeaderParameter = {};
353
+ const localVarQueryParameter = {};
354
+ // authentication keycloak_auth required
355
+ // http bearer authentication required
356
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ return {
361
+ url: toPathString(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ };
364
+ }),
365
+ /**
366
+ * Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
367
+ * @summary Reject a share request
368
+ * @param {string} id
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ rejectShareRequest: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
373
+ // verify required parameter 'id' is not null or undefined
374
+ assertParamExists('rejectShareRequest', 'id', id);
375
+ const localVarPath = `/api/v1/users/share-requests/{id}`
376
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
377
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
378
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
379
+ let baseOptions;
380
+ if (configuration) {
381
+ baseOptions = configuration.baseOptions;
382
+ }
383
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
384
+ const localVarHeaderParameter = {};
385
+ const localVarQueryParameter = {};
386
+ // authentication keycloak_auth required
387
+ // http bearer authentication required
388
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
392
+ return {
393
+ url: toPathString(localVarUrlObj),
394
+ options: localVarRequestOptions,
395
+ };
396
+ }),
397
+ /**
398
+ * Removes users from a team. Requires ADMIN_USERS role.
399
+ * @summary Remove team members
400
+ * @param {string} teamId
401
+ * @param {Array<string>} requestBody
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ removeTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
406
+ // verify required parameter 'teamId' is not null or undefined
407
+ assertParamExists('removeTeamMembers', 'teamId', teamId);
408
+ // verify required parameter 'requestBody' is not null or undefined
409
+ assertParamExists('removeTeamMembers', 'requestBody', requestBody);
410
+ const localVarPath = `/api/v1/users/teams/{teamId}/members`
411
+ .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
414
+ let baseOptions;
415
+ if (configuration) {
416
+ baseOptions = configuration.baseOptions;
417
+ }
418
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
419
+ const localVarHeaderParameter = {};
420
+ const localVarQueryParameter = {};
421
+ // authentication keycloak_auth required
422
+ // http bearer authentication required
423
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
424
+ localVarHeaderParameter['Content-Type'] = 'application/json';
425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
427
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
428
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
429
+ return {
430
+ url: toPathString(localVarUrlObj),
431
+ options: localVarRequestOptions,
432
+ };
433
+ }),
434
+ /**
435
+ * Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
436
+ * @summary Update Share for document(s)
437
+ * @param {ShareRequest} shareRequest
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ updateSharedDocuments: (shareRequest_1, ...args_1) => __awaiter(this, [shareRequest_1, ...args_1], void 0, function* (shareRequest, options = {}) {
442
+ // verify required parameter 'shareRequest' is not null or undefined
443
+ assertParamExists('updateSharedDocuments', 'shareRequest', shareRequest);
444
+ const localVarPath = `/api/v1/users/share`;
445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
446
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
447
+ let baseOptions;
448
+ if (configuration) {
449
+ baseOptions = configuration.baseOptions;
450
+ }
451
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
452
+ const localVarHeaderParameter = {};
453
+ const localVarQueryParameter = {};
454
+ // authentication keycloak_auth required
455
+ // http bearer authentication required
456
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
457
+ localVarHeaderParameter['Content-Type'] = 'application/json';
458
+ localVarHeaderParameter['Accept'] = '*/*';
459
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
460
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
461
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
462
+ localVarRequestOptions.data = serializeDataIfNeeded(shareRequest, localVarRequestOptions, configuration);
463
+ return {
464
+ url: toPathString(localVarUrlObj),
465
+ options: localVarRequestOptions,
466
+ };
467
+ }),
468
+ /**
469
+ * Updates team name and email. Requires ADMIN_USERS role.
470
+ * @summary Update a team
471
+ * @param {string} teamId
472
+ * @param {UpdateTeamRequest} updateTeamRequest
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ updateTeam: (teamId_1, updateTeamRequest_1, ...args_1) => __awaiter(this, [teamId_1, updateTeamRequest_1, ...args_1], void 0, function* (teamId, updateTeamRequest, options = {}) {
477
+ // verify required parameter 'teamId' is not null or undefined
478
+ assertParamExists('updateTeam', 'teamId', teamId);
479
+ // verify required parameter 'updateTeamRequest' is not null or undefined
480
+ assertParamExists('updateTeam', 'updateTeamRequest', updateTeamRequest);
481
+ const localVarPath = `/api/v1/users/teams/{teamId}`
482
+ .replace(`{${"teamId"}}`, encodeURIComponent(String(teamId)));
483
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
484
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
485
+ let baseOptions;
486
+ if (configuration) {
487
+ baseOptions = configuration.baseOptions;
488
+ }
489
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
490
+ const localVarHeaderParameter = {};
491
+ const localVarQueryParameter = {};
492
+ // authentication keycloak_auth required
493
+ // http bearer authentication required
494
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
495
+ localVarHeaderParameter['Content-Type'] = 'application/json';
496
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
497
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
498
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
499
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTeamRequest, localVarRequestOptions, configuration);
500
+ return {
501
+ url: toPathString(localVarUrlObj),
502
+ options: localVarRequestOptions,
503
+ };
504
+ }),
505
+ /**
506
+ * Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
507
+ * @summary Update a user
508
+ * @param {string} userId
509
+ * @param {UpdateUserRequest} updateUserRequest
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ */
513
+ updateUser: (userId_1, updateUserRequest_1, ...args_1) => __awaiter(this, [userId_1, updateUserRequest_1, ...args_1], void 0, function* (userId, updateUserRequest, options = {}) {
514
+ // verify required parameter 'userId' is not null or undefined
515
+ assertParamExists('updateUser', 'userId', userId);
516
+ // verify required parameter 'updateUserRequest' is not null or undefined
517
+ assertParamExists('updateUser', 'updateUserRequest', updateUserRequest);
518
+ const localVarPath = `/api/v1/users/{userId}`
519
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
520
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
521
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
522
+ let baseOptions;
523
+ if (configuration) {
524
+ baseOptions = configuration.baseOptions;
525
+ }
526
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
527
+ const localVarHeaderParameter = {};
528
+ const localVarQueryParameter = {};
529
+ // authentication keycloak_auth required
530
+ // http bearer authentication required
531
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
532
+ localVarHeaderParameter['Content-Type'] = 'application/json';
533
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
536
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequest, localVarRequestOptions, configuration);
537
+ return {
538
+ url: toPathString(localVarUrlObj),
539
+ options: localVarRequestOptions,
540
+ };
541
+ }),
542
+ };
543
+ };
544
+ /**
545
+ * CollaborationControllerApi - functional programming interface
546
+ */
547
+ export const CollaborationControllerApiFp = function (configuration) {
548
+ const localVarAxiosParamCreator = CollaborationControllerApiAxiosParamCreator(configuration);
549
+ return {
550
+ /**
551
+ * Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
552
+ * @summary Accept a share request
553
+ * @param {string} id
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ acceptShareRequest(id, options) {
558
+ return __awaiter(this, void 0, void 0, function* () {
559
+ var _a, _b, _c;
560
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptShareRequest(id, options);
561
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
562
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.acceptShareRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
563
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
564
+ });
565
+ },
566
+ /**
567
+ * Adds users to a team. Requires ADMIN_USERS role.
568
+ * @summary Add team members
569
+ * @param {string} teamId
570
+ * @param {Array<string>} requestBody
571
+ * @param {*} [options] Override http request option.
572
+ * @throws {RequiredError}
573
+ */
574
+ addTeamMembers(teamId, requestBody, options) {
575
+ return __awaiter(this, void 0, void 0, function* () {
576
+ var _a, _b, _c;
577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeamMembers(teamId, requestBody, options);
578
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
579
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.addTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
580
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
581
+ });
582
+ },
583
+ /**
584
+ * Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
585
+ * @summary Create Share for document(s)
586
+ * @param {ShareRequest} shareRequest
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ */
590
+ createSharedDocuments(shareRequest, options) {
591
+ return __awaiter(this, void 0, void 0, function* () {
592
+ var _a, _b, _c;
593
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSharedDocuments(shareRequest, options);
594
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
595
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.createSharedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
596
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
597
+ });
598
+ },
599
+ /**
600
+ * Creates a new team. Requires ADMIN_USERS role.
601
+ * @summary Create a team
602
+ * @param {CreateTeamRequest} createTeamRequest
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ */
606
+ createTeam(createTeamRequest, options) {
607
+ return __awaiter(this, void 0, void 0, function* () {
608
+ var _a, _b, _c;
609
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTeam(createTeamRequest, options);
610
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
611
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.createTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
612
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
613
+ });
614
+ },
615
+ /**
616
+ * Create a new user to share documents with
617
+ * @summary Create a new user
618
+ * @param {UserRegistrationRequest} userRegistrationRequest
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ */
622
+ createUser(userRegistrationRequest, options) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ var _a, _b, _c;
625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(userRegistrationRequest, options);
626
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
627
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.createUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
629
+ });
630
+ },
631
+ /**
632
+ * Deactivates a user. Requires ADMIN_USERS role.
633
+ * @summary Deactivate a user
634
+ * @param {string} userId
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ deactivateUser(userId, options) {
639
+ return __awaiter(this, void 0, void 0, function* () {
640
+ var _a, _b, _c;
641
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deactivateUser(userId, options);
642
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
643
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.deactivateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
644
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
645
+ });
646
+ },
647
+ /**
648
+ * Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
649
+ * @summary Delete Share for document(s)
650
+ * @param {DeleteShareRequest} deleteShareRequest
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ deleteSharedDocuments(deleteShareRequest, options) {
655
+ return __awaiter(this, void 0, void 0, function* () {
656
+ var _a, _b, _c;
657
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSharedDocuments(deleteShareRequest, options);
658
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
659
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.deleteSharedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
660
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
661
+ });
662
+ },
663
+ /**
664
+ * Deletes a team. Requires ADMIN_USERS role.
665
+ * @summary Delete a team
666
+ * @param {string} teamId
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ */
670
+ deleteTeam(teamId, options) {
671
+ return __awaiter(this, void 0, void 0, function* () {
672
+ var _a, _b, _c;
673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTeam(teamId, options);
674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
675
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.deleteTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
+ });
678
+ },
679
+ /**
680
+ * Lists all members of a team. Requires ADMIN_USERS role.
681
+ * @summary Get team members
682
+ * @param {string} teamId
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ getTeamMembers(teamId, options) {
687
+ return __awaiter(this, void 0, void 0, function* () {
688
+ var _a, _b, _c;
689
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTeamMembers(teamId, options);
690
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
691
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.getTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
692
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
693
+ });
694
+ },
695
+ /**
696
+ * Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
697
+ * @summary Check user status
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ getUserStatus(options) {
702
+ return __awaiter(this, void 0, void 0, function* () {
703
+ var _a, _b, _c;
704
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserStatus(options);
705
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
706
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.getUserStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
707
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
708
+ });
709
+ },
710
+ /**
711
+ * Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
712
+ * @summary Reject a share request
713
+ * @param {string} id
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ rejectShareRequest(id, options) {
718
+ return __awaiter(this, void 0, void 0, function* () {
719
+ var _a, _b, _c;
720
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectShareRequest(id, options);
721
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
722
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.rejectShareRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
724
+ });
725
+ },
726
+ /**
727
+ * Removes users from a team. Requires ADMIN_USERS role.
728
+ * @summary Remove team members
729
+ * @param {string} teamId
730
+ * @param {Array<string>} requestBody
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ removeTeamMembers(teamId, requestBody, options) {
735
+ return __awaiter(this, void 0, void 0, function* () {
736
+ var _a, _b, _c;
737
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeTeamMembers(teamId, requestBody, options);
738
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
739
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.removeTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
740
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
741
+ });
742
+ },
743
+ /**
744
+ * Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
745
+ * @summary Update Share for document(s)
746
+ * @param {ShareRequest} shareRequest
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ updateSharedDocuments(shareRequest, options) {
751
+ return __awaiter(this, void 0, void 0, function* () {
752
+ var _a, _b, _c;
753
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSharedDocuments(shareRequest, options);
754
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
755
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.updateSharedDocuments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
757
+ });
758
+ },
759
+ /**
760
+ * Updates team name and email. Requires ADMIN_USERS role.
761
+ * @summary Update a team
762
+ * @param {string} teamId
763
+ * @param {UpdateTeamRequest} updateTeamRequest
764
+ * @param {*} [options] Override http request option.
765
+ * @throws {RequiredError}
766
+ */
767
+ updateTeam(teamId, updateTeamRequest, options) {
768
+ return __awaiter(this, void 0, void 0, function* () {
769
+ var _a, _b, _c;
770
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTeam(teamId, updateTeamRequest, options);
771
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
772
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.updateTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
773
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
774
+ });
775
+ },
776
+ /**
777
+ * Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
778
+ * @summary Update a user
779
+ * @param {string} userId
780
+ * @param {UpdateUserRequest} updateUserRequest
781
+ * @param {*} [options] Override http request option.
782
+ * @throws {RequiredError}
783
+ */
784
+ updateUser(userId, updateUserRequest, options) {
785
+ return __awaiter(this, void 0, void 0, function* () {
786
+ var _a, _b, _c;
787
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(userId, updateUserRequest, options);
788
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
789
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationControllerApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
790
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
791
+ });
792
+ },
793
+ };
794
+ };
795
+ /**
796
+ * CollaborationControllerApi - factory interface
797
+ */
798
+ export const CollaborationControllerApiFactory = function (configuration, basePath, axios) {
799
+ const localVarFp = CollaborationControllerApiFp(configuration);
800
+ return {
801
+ /**
802
+ * Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
803
+ * @summary Accept a share request
804
+ * @param {string} id
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
808
+ acceptShareRequest(id, options) {
809
+ return localVarFp.acceptShareRequest(id, options).then((request) => request(axios, basePath));
810
+ },
811
+ /**
812
+ * Adds users to a team. Requires ADMIN_USERS role.
813
+ * @summary Add team members
814
+ * @param {string} teamId
815
+ * @param {Array<string>} requestBody
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ addTeamMembers(teamId, requestBody, options) {
820
+ return localVarFp.addTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
821
+ },
822
+ /**
823
+ * Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
824
+ * @summary Create Share for document(s)
825
+ * @param {ShareRequest} shareRequest
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ */
829
+ createSharedDocuments(shareRequest, options) {
830
+ return localVarFp.createSharedDocuments(shareRequest, options).then((request) => request(axios, basePath));
831
+ },
832
+ /**
833
+ * Creates a new team. Requires ADMIN_USERS role.
834
+ * @summary Create a team
835
+ * @param {CreateTeamRequest} createTeamRequest
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ createTeam(createTeamRequest, options) {
840
+ return localVarFp.createTeam(createTeamRequest, options).then((request) => request(axios, basePath));
841
+ },
842
+ /**
843
+ * Create a new user to share documents with
844
+ * @summary Create a new user
845
+ * @param {UserRegistrationRequest} userRegistrationRequest
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ createUser(userRegistrationRequest, options) {
850
+ return localVarFp.createUser(userRegistrationRequest, options).then((request) => request(axios, basePath));
851
+ },
852
+ /**
853
+ * Deactivates a user. Requires ADMIN_USERS role.
854
+ * @summary Deactivate a user
855
+ * @param {string} userId
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ deactivateUser(userId, options) {
860
+ return localVarFp.deactivateUser(userId, options).then((request) => request(axios, basePath));
861
+ },
862
+ /**
863
+ * Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
864
+ * @summary Delete Share for document(s)
865
+ * @param {DeleteShareRequest} deleteShareRequest
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ deleteSharedDocuments(deleteShareRequest, options) {
870
+ return localVarFp.deleteSharedDocuments(deleteShareRequest, options).then((request) => request(axios, basePath));
871
+ },
872
+ /**
873
+ * Deletes a team. Requires ADMIN_USERS role.
874
+ * @summary Delete a team
875
+ * @param {string} teamId
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ */
879
+ deleteTeam(teamId, options) {
880
+ return localVarFp.deleteTeam(teamId, options).then((request) => request(axios, basePath));
881
+ },
882
+ /**
883
+ * Lists all members of a team. Requires ADMIN_USERS role.
884
+ * @summary Get team members
885
+ * @param {string} teamId
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ getTeamMembers(teamId, options) {
890
+ return localVarFp.getTeamMembers(teamId, options).then((request) => request(axios, basePath));
891
+ },
892
+ /**
893
+ * Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
894
+ * @summary Check user status
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ getUserStatus(options) {
899
+ return localVarFp.getUserStatus(options).then((request) => request(axios, basePath));
900
+ },
901
+ /**
902
+ * Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
903
+ * @summary Reject a share request
904
+ * @param {string} id
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ rejectShareRequest(id, options) {
909
+ return localVarFp.rejectShareRequest(id, options).then((request) => request(axios, basePath));
910
+ },
911
+ /**
912
+ * Removes users from a team. Requires ADMIN_USERS role.
913
+ * @summary Remove team members
914
+ * @param {string} teamId
915
+ * @param {Array<string>} requestBody
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ */
919
+ removeTeamMembers(teamId, requestBody, options) {
920
+ return localVarFp.removeTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
921
+ },
922
+ /**
923
+ * Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
924
+ * @summary Update Share for document(s)
925
+ * @param {ShareRequest} shareRequest
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ */
929
+ updateSharedDocuments(shareRequest, options) {
930
+ return localVarFp.updateSharedDocuments(shareRequest, options).then((request) => request(axios, basePath));
931
+ },
932
+ /**
933
+ * Updates team name and email. Requires ADMIN_USERS role.
934
+ * @summary Update a team
935
+ * @param {string} teamId
936
+ * @param {UpdateTeamRequest} updateTeamRequest
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ updateTeam(teamId, updateTeamRequest, options) {
941
+ return localVarFp.updateTeam(teamId, updateTeamRequest, options).then((request) => request(axios, basePath));
942
+ },
943
+ /**
944
+ * Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
945
+ * @summary Update a user
946
+ * @param {string} userId
947
+ * @param {UpdateUserRequest} updateUserRequest
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ updateUser(userId, updateUserRequest, options) {
952
+ return localVarFp.updateUser(userId, updateUserRequest, options).then((request) => request(axios, basePath));
953
+ },
954
+ };
955
+ };
956
+ /**
957
+ * CollaborationControllerApi - object-oriented interface
958
+ */
959
+ export class CollaborationControllerApi extends BaseAPI {
960
+ /**
961
+ * Accepts a share request: creates the share and deletes the request. Accessible only by users with EDIT_SHARE role.
962
+ * @summary Accept a share request
963
+ * @param {string} id
964
+ * @param {*} [options] Override http request option.
965
+ * @throws {RequiredError}
966
+ */
967
+ acceptShareRequest(id, options) {
968
+ return CollaborationControllerApiFp(this.configuration).acceptShareRequest(id, options).then((request) => request(this.axios, this.basePath));
969
+ }
970
+ /**
971
+ * Adds users to a team. Requires ADMIN_USERS role.
972
+ * @summary Add team members
973
+ * @param {string} teamId
974
+ * @param {Array<string>} requestBody
975
+ * @param {*} [options] Override http request option.
976
+ * @throws {RequiredError}
977
+ */
978
+ addTeamMembers(teamId, requestBody, options) {
979
+ return CollaborationControllerApiFp(this.configuration).addTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
980
+ }
981
+ /**
982
+ * Creates new Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_ALREADY_EXISTS: A share already exists for this document and user
983
+ * @summary Create Share for document(s)
984
+ * @param {ShareRequest} shareRequest
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ createSharedDocuments(shareRequest, options) {
989
+ return CollaborationControllerApiFp(this.configuration).createSharedDocuments(shareRequest, options).then((request) => request(this.axios, this.basePath));
990
+ }
991
+ /**
992
+ * Creates a new team. Requires ADMIN_USERS role.
993
+ * @summary Create a team
994
+ * @param {CreateTeamRequest} createTeamRequest
995
+ * @param {*} [options] Override http request option.
996
+ * @throws {RequiredError}
997
+ */
998
+ createTeam(createTeamRequest, options) {
999
+ return CollaborationControllerApiFp(this.configuration).createTeam(createTeamRequest, options).then((request) => request(this.axios, this.basePath));
1000
+ }
1001
+ /**
1002
+ * Create a new user to share documents with
1003
+ * @summary Create a new user
1004
+ * @param {UserRegistrationRequest} userRegistrationRequest
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ */
1008
+ createUser(userRegistrationRequest, options) {
1009
+ return CollaborationControllerApiFp(this.configuration).createUser(userRegistrationRequest, options).then((request) => request(this.axios, this.basePath));
1010
+ }
1011
+ /**
1012
+ * Deactivates a user. Requires ADMIN_USERS role.
1013
+ * @summary Deactivate a user
1014
+ * @param {string} userId
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ deactivateUser(userId, options) {
1019
+ return CollaborationControllerApiFp(this.configuration).deactivateUser(userId, options).then((request) => request(this.axios, this.basePath));
1020
+ }
1021
+ /**
1022
+ * Deletes existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
1023
+ * @summary Delete Share for document(s)
1024
+ * @param {DeleteShareRequest} deleteShareRequest
1025
+ * @param {*} [options] Override http request option.
1026
+ * @throws {RequiredError}
1027
+ */
1028
+ deleteSharedDocuments(deleteShareRequest, options) {
1029
+ return CollaborationControllerApiFp(this.configuration).deleteSharedDocuments(deleteShareRequest, options).then((request) => request(this.axios, this.basePath));
1030
+ }
1031
+ /**
1032
+ * Deletes a team. Requires ADMIN_USERS role.
1033
+ * @summary Delete a team
1034
+ * @param {string} teamId
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
1038
+ deleteTeam(teamId, options) {
1039
+ return CollaborationControllerApiFp(this.configuration).deleteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
1040
+ }
1041
+ /**
1042
+ * Lists all members of a team. Requires ADMIN_USERS role.
1043
+ * @summary Get team members
1044
+ * @param {string} teamId
1045
+ * @param {*} [options] Override http request option.
1046
+ * @throws {RequiredError}
1047
+ */
1048
+ getTeamMembers(teamId, options) {
1049
+ return CollaborationControllerApiFp(this.configuration).getTeamMembers(teamId, options).then((request) => request(this.axios, this.basePath));
1050
+ }
1051
+ /**
1052
+ * Confirms the current user exists in the local database. User sync happens during JWT authentication, so this endpoint simply confirms authentication was successful.
1053
+ * @summary Check user status
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ */
1057
+ getUserStatus(options) {
1058
+ return CollaborationControllerApiFp(this.configuration).getUserStatus(options).then((request) => request(this.axios, this.basePath));
1059
+ }
1060
+ /**
1061
+ * Rejects and deletes a share request. Accessible only by users with EDIT_SHARE role.
1062
+ * @summary Reject a share request
1063
+ * @param {string} id
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ */
1067
+ rejectShareRequest(id, options) {
1068
+ return CollaborationControllerApiFp(this.configuration).rejectShareRequest(id, options).then((request) => request(this.axios, this.basePath));
1069
+ }
1070
+ /**
1071
+ * Removes users from a team. Requires ADMIN_USERS role.
1072
+ * @summary Remove team members
1073
+ * @param {string} teamId
1074
+ * @param {Array<string>} requestBody
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ */
1078
+ removeTeamMembers(teamId, requestBody, options) {
1079
+ return CollaborationControllerApiFp(this.configuration).removeTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
1080
+ }
1081
+ /**
1082
+ * Updates existing Shared document(s) with users. Returns 200 when all items are processed successfully. Returns 207 when there is a mix of successes, share requests, and/or errors. Error codes in response: - SHARE_ERR_USER_DEACTIVATED: Cannot share with a deactivated user in read-only mode - SHARE_ERR_USER_NOT_LICENSED: User must have a license to be shared with in editor or commenter mode - SHARE_ERR_PARENT_AND_CHILD: A folder and its children cannot both be in the share list - SHARE_ERR_NOT_ALREADY_SHARED: No existing share found for this document and user
1083
+ * @summary Update Share for document(s)
1084
+ * @param {ShareRequest} shareRequest
1085
+ * @param {*} [options] Override http request option.
1086
+ * @throws {RequiredError}
1087
+ */
1088
+ updateSharedDocuments(shareRequest, options) {
1089
+ return CollaborationControllerApiFp(this.configuration).updateSharedDocuments(shareRequest, options).then((request) => request(this.axios, this.basePath));
1090
+ }
1091
+ /**
1092
+ * Updates team name and email. Requires ADMIN_USERS role.
1093
+ * @summary Update a team
1094
+ * @param {string} teamId
1095
+ * @param {UpdateTeamRequest} updateTeamRequest
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ updateTeam(teamId, updateTeamRequest, options) {
1100
+ return CollaborationControllerApiFp(this.configuration).updateTeam(teamId, updateTeamRequest, options).then((request) => request(this.axios, this.basePath));
1101
+ }
1102
+ /**
1103
+ * Updates user name, email and/or status. Requires ADMIN_USERS role. Status changes also require ASSIGN_LICENSES.
1104
+ * @summary Update a user
1105
+ * @param {string} userId
1106
+ * @param {UpdateUserRequest} updateUserRequest
1107
+ * @param {*} [options] Override http request option.
1108
+ * @throws {RequiredError}
1109
+ */
1110
+ updateUser(userId, updateUserRequest, options) {
1111
+ return CollaborationControllerApiFp(this.configuration).updateUser(userId, updateUserRequest, options).then((request) => request(this.axios, this.basePath));
1112
+ }
1113
+ }