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