@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,1212 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * DocumentControllerApi - axios parameter creator
31
+ */
32
+ export const DocumentControllerApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
36
+ * @summary Create a blank document from template
37
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ createBlankDocument: (createBlankDocumentRequest_1, ...args_1) => __awaiter(this, [createBlankDocumentRequest_1, ...args_1], void 0, function* (createBlankDocumentRequest, options = {}) {
42
+ // verify required parameter 'createBlankDocumentRequest' is not null or undefined
43
+ assertParamExists('createBlankDocument', 'createBlankDocumentRequest', createBlankDocumentRequest);
44
+ const localVarPath = `/api/v1/documents/create-blank`;
45
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
+ let baseOptions;
48
+ if (configuration) {
49
+ baseOptions = configuration.baseOptions;
50
+ }
51
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
52
+ const localVarHeaderParameter = {};
53
+ const localVarQueryParameter = {};
54
+ // authentication keycloak_auth required
55
+ // http bearer authentication required
56
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
57
+ localVarHeaderParameter['Content-Type'] = 'application/json';
58
+ localVarHeaderParameter['Accept'] = '*/*';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(createBlankDocumentRequest, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ * Deletes specified metadata keys from a document.
70
+ * @summary Delete specific metadata keys
71
+ * @param {string} documentId
72
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ deleteDocumentMetadata: (documentId_1, deleteMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, deleteMetadataRequest_1, ...args_1], void 0, function* (documentId, deleteMetadataRequest, options = {}) {
77
+ // verify required parameter 'documentId' is not null or undefined
78
+ assertParamExists('deleteDocumentMetadata', 'documentId', documentId);
79
+ // verify required parameter 'deleteMetadataRequest' is not null or undefined
80
+ assertParamExists('deleteDocumentMetadata', 'deleteMetadataRequest', deleteMetadataRequest);
81
+ const localVarPath = `/api/v1/documents/{documentId}/metadata`
82
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication keycloak_auth required
93
+ // http bearer authentication required
94
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
95
+ localVarHeaderParameter['Content-Type'] = 'application/json';
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ localVarRequestOptions.data = serializeDataIfNeeded(deleteMetadataRequest, localVarRequestOptions, configuration);
100
+ return {
101
+ url: toPathString(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ }),
105
+ /**
106
+ * Downloads a single file document.
107
+ * @summary Download a document
108
+ * @param {string} documentId
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ downloadDocument: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
113
+ // verify required parameter 'documentId' is not null or undefined
114
+ assertParamExists('downloadDocument', 'documentId', documentId);
115
+ const localVarPath = `/api/v1/documents/{documentId}/download`
116
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ }
123
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
124
+ const localVarHeaderParameter = {};
125
+ const localVarQueryParameter = {};
126
+ // authentication keycloak_auth required
127
+ // http bearer authentication required
128
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
129
+ localVarHeaderParameter['Accept'] = '*/*';
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
133
+ return {
134
+ url: toPathString(localVarUrlObj),
135
+ options: localVarRequestOptions,
136
+ };
137
+ }),
138
+ /**
139
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
140
+ * @summary Download document for OnlyOffice
141
+ * @param {string} documentId
142
+ * @param {string} token
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ downloadForOnlyOffice: (documentId_1, token_1, ...args_1) => __awaiter(this, [documentId_1, token_1, ...args_1], void 0, function* (documentId, token, options = {}) {
147
+ // verify required parameter 'documentId' is not null or undefined
148
+ assertParamExists('downloadForOnlyOffice', 'documentId', documentId);
149
+ // verify required parameter 'token' is not null or undefined
150
+ assertParamExists('downloadForOnlyOffice', 'token', token);
151
+ const localVarPath = `/api/v1/documents/{documentId}/onlyoffice-download`
152
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ }
159
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
160
+ const localVarHeaderParameter = {};
161
+ const localVarQueryParameter = {};
162
+ // authentication keycloak_auth required
163
+ // http bearer authentication required
164
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
165
+ if (token !== undefined) {
166
+ localVarQueryParameter['token'] = token;
167
+ }
168
+ localVarHeaderParameter['Accept'] = '*/*';
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ }),
177
+ /**
178
+ * Downloads multiple documents as a single ZIP file.
179
+ * @summary Download multiple documents as ZIP
180
+ * @param {Array<string>} requestBody
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ downloadMultipleDocumentsAsZip: (requestBody_1, ...args_1) => __awaiter(this, [requestBody_1, ...args_1], void 0, function* (requestBody, options = {}) {
185
+ // verify required parameter 'requestBody' is not null or undefined
186
+ assertParamExists('downloadMultipleDocumentsAsZip', 'requestBody', requestBody);
187
+ const localVarPath = `/api/v1/documents/download-multiple`;
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ // authentication keycloak_auth required
198
+ // http bearer authentication required
199
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
201
+ localVarHeaderParameter['Accept'] = '*/*';
202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
205
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ }),
211
+ /**
212
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
213
+ * @summary Get document ancestors
214
+ * @param {string} documentId
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ getDocumentAncestors: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
219
+ // verify required parameter 'documentId' is not null or undefined
220
+ assertParamExists('getDocumentAncestors', 'documentId', documentId);
221
+ const localVarPath = `/api/v1/documents/{documentId}/ancestors`
222
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
225
+ let baseOptions;
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ }
229
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
230
+ const localVarHeaderParameter = {};
231
+ const localVarQueryParameter = {};
232
+ // authentication keycloak_auth required
233
+ // http bearer authentication required
234
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
235
+ localVarHeaderParameter['Accept'] = '*/*';
236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
+ return {
240
+ url: toPathString(localVarUrlObj),
241
+ options: localVarRequestOptions,
242
+ };
243
+ }),
244
+ /**
245
+ * Retrieves information for a document.
246
+ * @summary Get information of a document
247
+ * @param {string} documentId
248
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ getDocumentInfo: (documentId_1, withMetadata_1, ...args_1) => __awaiter(this, [documentId_1, withMetadata_1, ...args_1], void 0, function* (documentId, withMetadata, options = {}) {
253
+ // verify required parameter 'documentId' is not null or undefined
254
+ assertParamExists('getDocumentInfo', 'documentId', documentId);
255
+ const localVarPath = `/api/v1/documents/{documentId}/info`
256
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
258
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
259
+ let baseOptions;
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ }
263
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
264
+ const localVarHeaderParameter = {};
265
+ const localVarQueryParameter = {};
266
+ // authentication keycloak_auth required
267
+ // http bearer authentication required
268
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
269
+ if (withMetadata !== undefined) {
270
+ localVarQueryParameter['withMetadata'] = withMetadata;
271
+ }
272
+ localVarHeaderParameter['Accept'] = '*/*';
273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return {
277
+ url: toPathString(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ };
280
+ }),
281
+ /**
282
+ * Retrieves metadata for a document. Can filter by keys.
283
+ * @summary Search metadata of a document
284
+ * @param {string} documentId
285
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ getDocumentMetadata: (documentId_1, searchMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, searchMetadataRequest_1, ...args_1], void 0, function* (documentId, searchMetadataRequest, options = {}) {
290
+ // verify required parameter 'documentId' is not null or undefined
291
+ assertParamExists('getDocumentMetadata', 'documentId', documentId);
292
+ const localVarPath = `/api/v1/documents/{documentId}/search/metadata`
293
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
295
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
296
+ let baseOptions;
297
+ if (configuration) {
298
+ baseOptions = configuration.baseOptions;
299
+ }
300
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
301
+ const localVarHeaderParameter = {};
302
+ const localVarQueryParameter = {};
303
+ // authentication keycloak_auth required
304
+ // http bearer authentication required
305
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
307
+ localVarHeaderParameter['Accept'] = '*/*';
308
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
310
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
311
+ localVarRequestOptions.data = serializeDataIfNeeded(searchMetadataRequest, localVarRequestOptions, configuration);
312
+ return {
313
+ url: toPathString(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ };
316
+ }),
317
+ /**
318
+ * Retrieves the position of a document within its parent folder, useful for pagination.
319
+ * @summary Get document position in folder
320
+ * @param {string} documentId
321
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
322
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ getDocumentPosition: (documentId_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [documentId_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (documentId, sortBy, sortOrder, options = {}) {
327
+ // verify required parameter 'documentId' is not null or undefined
328
+ assertParamExists('getDocumentPosition', 'documentId', documentId);
329
+ const localVarPath = `/api/v1/documents/{documentId}/position`
330
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
332
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
333
+ let baseOptions;
334
+ if (configuration) {
335
+ baseOptions = configuration.baseOptions;
336
+ }
337
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
338
+ const localVarHeaderParameter = {};
339
+ const localVarQueryParameter = {};
340
+ // authentication keycloak_auth required
341
+ // http bearer authentication required
342
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
343
+ if (sortBy !== undefined) {
344
+ localVarQueryParameter['sortBy'] = sortBy;
345
+ }
346
+ if (sortOrder !== undefined) {
347
+ localVarQueryParameter['sortOrder'] = sortOrder;
348
+ }
349
+ localVarHeaderParameter['Accept'] = '*/*';
350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
+ return {
354
+ url: toPathString(localVarUrlObj),
355
+ options: localVarRequestOptions,
356
+ };
357
+ }),
358
+ /**
359
+ * Replaces the content of an existing file document.
360
+ * @summary Replace document content
361
+ * @param {string} documentId
362
+ * @param {File} file
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ replaceDocumentContent: (documentId_1, file_1, ...args_1) => __awaiter(this, [documentId_1, file_1, ...args_1], void 0, function* (documentId, file, options = {}) {
367
+ // verify required parameter 'documentId' is not null or undefined
368
+ assertParamExists('replaceDocumentContent', 'documentId', documentId);
369
+ // verify required parameter 'file' is not null or undefined
370
+ assertParamExists('replaceDocumentContent', 'file', file);
371
+ const localVarPath = `/api/v1/documents/{documentId}/replace-content`
372
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
374
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
375
+ let baseOptions;
376
+ if (configuration) {
377
+ baseOptions = configuration.baseOptions;
378
+ }
379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
380
+ const localVarHeaderParameter = {};
381
+ const localVarQueryParameter = {};
382
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
383
+ // authentication keycloak_auth required
384
+ // http bearer authentication required
385
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
386
+ if (file !== undefined) {
387
+ localVarFormParams.append('file', file);
388
+ }
389
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
390
+ localVarHeaderParameter['Accept'] = '*/*';
391
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
392
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
393
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
394
+ localVarRequestOptions.data = localVarFormParams;
395
+ return {
396
+ url: toPathString(localVarUrlObj),
397
+ options: localVarRequestOptions,
398
+ };
399
+ }),
400
+ /**
401
+ * Replaces all metadata of a document (file or folder).
402
+ * @summary Replace document metadata
403
+ * @param {string} documentId
404
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ replaceDocumentMetadata: (documentId_1, requestBody_1, ...args_1) => __awaiter(this, [documentId_1, requestBody_1, ...args_1], void 0, function* (documentId, requestBody, options = {}) {
409
+ // verify required parameter 'documentId' is not null or undefined
410
+ assertParamExists('replaceDocumentMetadata', 'documentId', documentId);
411
+ // verify required parameter 'requestBody' is not null or undefined
412
+ assertParamExists('replaceDocumentMetadata', 'requestBody', requestBody);
413
+ const localVarPath = `/api/v1/documents/{documentId}/replace-metadata`
414
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
416
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
417
+ let baseOptions;
418
+ if (configuration) {
419
+ baseOptions = configuration.baseOptions;
420
+ }
421
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
422
+ const localVarHeaderParameter = {};
423
+ const localVarQueryParameter = {};
424
+ // authentication keycloak_auth required
425
+ // http bearer authentication required
426
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
427
+ localVarHeaderParameter['Content-Type'] = 'application/json';
428
+ localVarHeaderParameter['Accept'] = '*/*';
429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
432
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
433
+ return {
434
+ url: toPathString(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ };
437
+ }),
438
+ /**
439
+ * Finds document IDs matching all provided metadata criteria.
440
+ * @summary Search document IDs by metadata
441
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ searchDocumentIdsByMetadata: (searchByMetadataRequest_1, ...args_1) => __awaiter(this, [searchByMetadataRequest_1, ...args_1], void 0, function* (searchByMetadataRequest, options = {}) {
446
+ // verify required parameter 'searchByMetadataRequest' is not null or undefined
447
+ assertParamExists('searchDocumentIdsByMetadata', 'searchByMetadataRequest', searchByMetadataRequest);
448
+ const localVarPath = `/api/v1/documents/search/ids-by-metadata`;
449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
451
+ let baseOptions;
452
+ if (configuration) {
453
+ baseOptions = configuration.baseOptions;
454
+ }
455
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
456
+ const localVarHeaderParameter = {};
457
+ const localVarQueryParameter = {};
458
+ // authentication keycloak_auth required
459
+ // http bearer authentication required
460
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
461
+ localVarHeaderParameter['Content-Type'] = 'application/json';
462
+ localVarHeaderParameter['Accept'] = '*/*';
463
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
464
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
465
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
466
+ localVarRequestOptions.data = serializeDataIfNeeded(searchByMetadataRequest, localVarRequestOptions, configuration);
467
+ return {
468
+ url: toPathString(localVarUrlObj),
469
+ options: localVarRequestOptions,
470
+ };
471
+ }),
472
+ /**
473
+ * Updates or adds specific metadata fields for a document.
474
+ * @summary Update document metadata
475
+ * @param {string} documentId
476
+ * @param {UpdateMetadataRequest} updateMetadataRequest
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ updateDocumentMetadata: (documentId_1, updateMetadataRequest_1, ...args_1) => __awaiter(this, [documentId_1, updateMetadataRequest_1, ...args_1], void 0, function* (documentId, updateMetadataRequest, options = {}) {
481
+ // verify required parameter 'documentId' is not null or undefined
482
+ assertParamExists('updateDocumentMetadata', 'documentId', documentId);
483
+ // verify required parameter 'updateMetadataRequest' is not null or undefined
484
+ assertParamExists('updateDocumentMetadata', 'updateMetadataRequest', updateMetadataRequest);
485
+ const localVarPath = `/api/v1/documents/{documentId}/metadata`
486
+ .replace(`{${"documentId"}}`, encodeURIComponent(String(documentId)));
487
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
488
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
489
+ let baseOptions;
490
+ if (configuration) {
491
+ baseOptions = configuration.baseOptions;
492
+ }
493
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
494
+ const localVarHeaderParameter = {};
495
+ const localVarQueryParameter = {};
496
+ // authentication keycloak_auth required
497
+ // http bearer authentication required
498
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
499
+ localVarHeaderParameter['Content-Type'] = 'application/json';
500
+ localVarHeaderParameter['Accept'] = '*/*';
501
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
502
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
503
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
504
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMetadataRequest, localVarRequestOptions, configuration);
505
+ return {
506
+ url: toPathString(localVarUrlObj),
507
+ options: localVarRequestOptions,
508
+ };
509
+ }),
510
+ /**
511
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
512
+ * @summary Upload multiple documents
513
+ * @param {Array<File>} file
514
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
515
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ uploadDocument: (file_1, allowDuplicateFileNames_1, parametersByFilename_1, ...args_1) => __awaiter(this, [file_1, allowDuplicateFileNames_1, parametersByFilename_1, ...args_1], void 0, function* (file, allowDuplicateFileNames, parametersByFilename, options = {}) {
520
+ // verify required parameter 'file' is not null or undefined
521
+ assertParamExists('uploadDocument', 'file', file);
522
+ const localVarPath = `/api/v1/documents/upload-multiple`;
523
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
524
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
525
+ let baseOptions;
526
+ if (configuration) {
527
+ baseOptions = configuration.baseOptions;
528
+ }
529
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
530
+ const localVarHeaderParameter = {};
531
+ const localVarQueryParameter = {};
532
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
533
+ // authentication keycloak_auth required
534
+ // http bearer authentication required
535
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
536
+ if (allowDuplicateFileNames !== undefined) {
537
+ localVarQueryParameter['allowDuplicateFileNames'] = allowDuplicateFileNames;
538
+ }
539
+ if (file) {
540
+ file.forEach((element) => {
541
+ localVarFormParams.append('file', element);
542
+ });
543
+ }
544
+ if (parametersByFilename !== undefined) {
545
+ localVarFormParams.append('parametersByFilename', parametersByFilename);
546
+ }
547
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
548
+ localVarHeaderParameter['Accept'] = '*/*';
549
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
550
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
551
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
552
+ localVarRequestOptions.data = localVarFormParams;
553
+ return {
554
+ url: toPathString(localVarUrlObj),
555
+ options: localVarRequestOptions,
556
+ };
557
+ }),
558
+ /**
559
+ * Uploads a single file, optionally with metadata and a parent folder ID.
560
+ * @summary Upload a single document
561
+ * @param {File} file
562
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
563
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
564
+ * @param {string} [metadata]
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ uploadDocument1: (file_1, allowDuplicateFileNames_1, parentFolderId_1, metadata_1, ...args_1) => __awaiter(this, [file_1, allowDuplicateFileNames_1, parentFolderId_1, metadata_1, ...args_1], void 0, function* (file, allowDuplicateFileNames, parentFolderId, metadata, options = {}) {
569
+ // verify required parameter 'file' is not null or undefined
570
+ assertParamExists('uploadDocument1', 'file', file);
571
+ const localVarPath = `/api/v1/documents/upload`;
572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
574
+ let baseOptions;
575
+ if (configuration) {
576
+ baseOptions = configuration.baseOptions;
577
+ }
578
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
579
+ const localVarHeaderParameter = {};
580
+ const localVarQueryParameter = {};
581
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
582
+ // authentication keycloak_auth required
583
+ // http bearer authentication required
584
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
585
+ if (allowDuplicateFileNames !== undefined) {
586
+ localVarQueryParameter['allowDuplicateFileNames'] = allowDuplicateFileNames;
587
+ }
588
+ if (file !== undefined) {
589
+ localVarFormParams.append('file', file);
590
+ }
591
+ if (parentFolderId !== undefined) {
592
+ localVarFormParams.append('parentFolderId', parentFolderId);
593
+ }
594
+ if (metadata !== undefined) {
595
+ localVarFormParams.append('metadata', metadata);
596
+ }
597
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
598
+ localVarHeaderParameter['Accept'] = '*/*';
599
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
600
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
601
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
602
+ localVarRequestOptions.data = localVarFormParams;
603
+ return {
604
+ url: toPathString(localVarUrlObj),
605
+ options: localVarRequestOptions,
606
+ };
607
+ }),
608
+ };
609
+ };
610
+ /**
611
+ * DocumentControllerApi - functional programming interface
612
+ */
613
+ export const DocumentControllerApiFp = function (configuration) {
614
+ const localVarAxiosParamCreator = DocumentControllerApiAxiosParamCreator(configuration);
615
+ return {
616
+ /**
617
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
618
+ * @summary Create a blank document from template
619
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ */
623
+ createBlankDocument(createBlankDocumentRequest, options) {
624
+ return __awaiter(this, void 0, void 0, function* () {
625
+ var _a, _b, _c;
626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createBlankDocument(createBlankDocumentRequest, options);
627
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
628
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.createBlankDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
629
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
630
+ });
631
+ },
632
+ /**
633
+ * Deletes specified metadata keys from a document.
634
+ * @summary Delete specific metadata keys
635
+ * @param {string} documentId
636
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
641
+ return __awaiter(this, void 0, void 0, function* () {
642
+ var _a, _b, _c;
643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteDocumentMetadata(documentId, deleteMetadataRequest, options);
644
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
645
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.deleteDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
646
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
647
+ });
648
+ },
649
+ /**
650
+ * Downloads a single file document.
651
+ * @summary Download a document
652
+ * @param {string} documentId
653
+ * @param {*} [options] Override http request option.
654
+ * @throws {RequiredError}
655
+ */
656
+ downloadDocument(documentId, options) {
657
+ return __awaiter(this, void 0, void 0, function* () {
658
+ var _a, _b, _c;
659
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadDocument(documentId, options);
660
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
661
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.downloadDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
663
+ });
664
+ },
665
+ /**
666
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
667
+ * @summary Download document for OnlyOffice
668
+ * @param {string} documentId
669
+ * @param {string} token
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ downloadForOnlyOffice(documentId, token, options) {
674
+ return __awaiter(this, void 0, void 0, function* () {
675
+ var _a, _b, _c;
676
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, options);
677
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
678
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.downloadForOnlyOffice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
679
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
680
+ });
681
+ },
682
+ /**
683
+ * Downloads multiple documents as a single ZIP file.
684
+ * @summary Download multiple documents as ZIP
685
+ * @param {Array<string>} requestBody
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ */
689
+ downloadMultipleDocumentsAsZip(requestBody, options) {
690
+ return __awaiter(this, void 0, void 0, function* () {
691
+ var _a, _b, _c;
692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadMultipleDocumentsAsZip(requestBody, options);
693
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.downloadMultipleDocumentsAsZip']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
696
+ });
697
+ },
698
+ /**
699
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
700
+ * @summary Get document ancestors
701
+ * @param {string} documentId
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ getDocumentAncestors(documentId, options) {
706
+ return __awaiter(this, void 0, void 0, function* () {
707
+ var _a, _b, _c;
708
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentAncestors(documentId, 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 = operationServerMap['DocumentControllerApi.getDocumentAncestors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
711
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ });
713
+ },
714
+ /**
715
+ * Retrieves information for a document.
716
+ * @summary Get information of a document
717
+ * @param {string} documentId
718
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ getDocumentInfo(documentId, withMetadata, options) {
723
+ return __awaiter(this, void 0, void 0, function* () {
724
+ var _a, _b, _c;
725
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentInfo(documentId, withMetadata, options);
726
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
727
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.getDocumentInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
728
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
729
+ });
730
+ },
731
+ /**
732
+ * Retrieves metadata for a document. Can filter by keys.
733
+ * @summary Search metadata of a document
734
+ * @param {string} documentId
735
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
736
+ * @param {*} [options] Override http request option.
737
+ * @throws {RequiredError}
738
+ */
739
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
740
+ return __awaiter(this, void 0, void 0, function* () {
741
+ var _a, _b, _c;
742
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentMetadata(documentId, searchMetadataRequest, options);
743
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
744
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.getDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
746
+ });
747
+ },
748
+ /**
749
+ * Retrieves the position of a document within its parent folder, useful for pagination.
750
+ * @summary Get document position in folder
751
+ * @param {string} documentId
752
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
753
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
754
+ * @param {*} [options] Override http request option.
755
+ * @throws {RequiredError}
756
+ */
757
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
758
+ return __awaiter(this, void 0, void 0, function* () {
759
+ var _a, _b, _c;
760
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getDocumentPosition(documentId, sortBy, sortOrder, options);
761
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
762
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.getDocumentPosition']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
764
+ });
765
+ },
766
+ /**
767
+ * Replaces the content of an existing file document.
768
+ * @summary Replace document content
769
+ * @param {string} documentId
770
+ * @param {File} file
771
+ * @param {*} [options] Override http request option.
772
+ * @throws {RequiredError}
773
+ */
774
+ replaceDocumentContent(documentId, file, options) {
775
+ return __awaiter(this, void 0, void 0, function* () {
776
+ var _a, _b, _c;
777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceDocumentContent(documentId, file, options);
778
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
779
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.replaceDocumentContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
780
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
781
+ });
782
+ },
783
+ /**
784
+ * Replaces all metadata of a document (file or folder).
785
+ * @summary Replace document metadata
786
+ * @param {string} documentId
787
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ replaceDocumentMetadata(documentId, requestBody, options) {
792
+ return __awaiter(this, void 0, void 0, function* () {
793
+ var _a, _b, _c;
794
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceDocumentMetadata(documentId, requestBody, options);
795
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
796
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.replaceDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
797
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
798
+ });
799
+ },
800
+ /**
801
+ * Finds document IDs matching all provided metadata criteria.
802
+ * @summary Search document IDs by metadata
803
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
808
+ return __awaiter(this, void 0, void 0, function* () {
809
+ var _a, _b, _c;
810
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.searchDocumentIdsByMetadata(searchByMetadataRequest, options);
811
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
812
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.searchDocumentIdsByMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
813
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
814
+ });
815
+ },
816
+ /**
817
+ * Updates or adds specific metadata fields for a document.
818
+ * @summary Update document metadata
819
+ * @param {string} documentId
820
+ * @param {UpdateMetadataRequest} updateMetadataRequest
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
825
+ return __awaiter(this, void 0, void 0, function* () {
826
+ var _a, _b, _c;
827
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateDocumentMetadata(documentId, updateMetadataRequest, options);
828
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
829
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.updateDocumentMetadata']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
831
+ });
832
+ },
833
+ /**
834
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
835
+ * @summary Upload multiple documents
836
+ * @param {Array<File>} file
837
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
838
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
839
+ * @param {*} [options] Override http request option.
840
+ * @throws {RequiredError}
841
+ */
842
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
843
+ return __awaiter(this, void 0, void 0, function* () {
844
+ var _a, _b, _c;
845
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options);
846
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
847
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.uploadDocument']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
848
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
849
+ });
850
+ },
851
+ /**
852
+ * Uploads a single file, optionally with metadata and a parent folder ID.
853
+ * @summary Upload a single document
854
+ * @param {File} file
855
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
856
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
857
+ * @param {string} [metadata]
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
862
+ return __awaiter(this, void 0, void 0, function* () {
863
+ var _a, _b, _c;
864
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options);
865
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
866
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.uploadDocument1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
867
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
868
+ });
869
+ },
870
+ };
871
+ };
872
+ /**
873
+ * DocumentControllerApi - factory interface
874
+ */
875
+ export const DocumentControllerApiFactory = function (configuration, basePath, axios) {
876
+ const localVarFp = DocumentControllerApiFp(configuration);
877
+ return {
878
+ /**
879
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
880
+ * @summary Create a blank document from template
881
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ createBlankDocument(createBlankDocumentRequest, options) {
886
+ return localVarFp.createBlankDocument(createBlankDocumentRequest, options).then((request) => request(axios, basePath));
887
+ },
888
+ /**
889
+ * Deletes specified metadata keys from a document.
890
+ * @summary Delete specific metadata keys
891
+ * @param {string} documentId
892
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
897
+ return localVarFp.deleteDocumentMetadata(documentId, deleteMetadataRequest, options).then((request) => request(axios, basePath));
898
+ },
899
+ /**
900
+ * Downloads a single file document.
901
+ * @summary Download a document
902
+ * @param {string} documentId
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ downloadDocument(documentId, options) {
907
+ return localVarFp.downloadDocument(documentId, options).then((request) => request(axios, basePath));
908
+ },
909
+ /**
910
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
911
+ * @summary Download document for OnlyOffice
912
+ * @param {string} documentId
913
+ * @param {string} token
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ downloadForOnlyOffice(documentId, token, options) {
918
+ return localVarFp.downloadForOnlyOffice(documentId, token, options).then((request) => request(axios, basePath));
919
+ },
920
+ /**
921
+ * Downloads multiple documents as a single ZIP file.
922
+ * @summary Download multiple documents as ZIP
923
+ * @param {Array<string>} requestBody
924
+ * @param {*} [options] Override http request option.
925
+ * @throws {RequiredError}
926
+ */
927
+ downloadMultipleDocumentsAsZip(requestBody, options) {
928
+ return localVarFp.downloadMultipleDocumentsAsZip(requestBody, options).then((request) => request(axios, basePath));
929
+ },
930
+ /**
931
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
932
+ * @summary Get document ancestors
933
+ * @param {string} documentId
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ getDocumentAncestors(documentId, options) {
938
+ return localVarFp.getDocumentAncestors(documentId, options).then((request) => request(axios, basePath));
939
+ },
940
+ /**
941
+ * Retrieves information for a document.
942
+ * @summary Get information of a document
943
+ * @param {string} documentId
944
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
945
+ * @param {*} [options] Override http request option.
946
+ * @throws {RequiredError}
947
+ */
948
+ getDocumentInfo(documentId, withMetadata, options) {
949
+ return localVarFp.getDocumentInfo(documentId, withMetadata, options).then((request) => request(axios, basePath));
950
+ },
951
+ /**
952
+ * Retrieves metadata for a document. Can filter by keys.
953
+ * @summary Search metadata of a document
954
+ * @param {string} documentId
955
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
960
+ return localVarFp.getDocumentMetadata(documentId, searchMetadataRequest, options).then((request) => request(axios, basePath));
961
+ },
962
+ /**
963
+ * Retrieves the position of a document within its parent folder, useful for pagination.
964
+ * @summary Get document position in folder
965
+ * @param {string} documentId
966
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
967
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
972
+ return localVarFp.getDocumentPosition(documentId, sortBy, sortOrder, options).then((request) => request(axios, basePath));
973
+ },
974
+ /**
975
+ * Replaces the content of an existing file document.
976
+ * @summary Replace document content
977
+ * @param {string} documentId
978
+ * @param {File} file
979
+ * @param {*} [options] Override http request option.
980
+ * @throws {RequiredError}
981
+ */
982
+ replaceDocumentContent(documentId, file, options) {
983
+ return localVarFp.replaceDocumentContent(documentId, file, options).then((request) => request(axios, basePath));
984
+ },
985
+ /**
986
+ * Replaces all metadata of a document (file or folder).
987
+ * @summary Replace document metadata
988
+ * @param {string} documentId
989
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
990
+ * @param {*} [options] Override http request option.
991
+ * @throws {RequiredError}
992
+ */
993
+ replaceDocumentMetadata(documentId, requestBody, options) {
994
+ return localVarFp.replaceDocumentMetadata(documentId, requestBody, options).then((request) => request(axios, basePath));
995
+ },
996
+ /**
997
+ * Finds document IDs matching all provided metadata criteria.
998
+ * @summary Search document IDs by metadata
999
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ */
1003
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
1004
+ return localVarFp.searchDocumentIdsByMetadata(searchByMetadataRequest, options).then((request) => request(axios, basePath));
1005
+ },
1006
+ /**
1007
+ * Updates or adds specific metadata fields for a document.
1008
+ * @summary Update document metadata
1009
+ * @param {string} documentId
1010
+ * @param {UpdateMetadataRequest} updateMetadataRequest
1011
+ * @param {*} [options] Override http request option.
1012
+ * @throws {RequiredError}
1013
+ */
1014
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
1015
+ return localVarFp.updateDocumentMetadata(documentId, updateMetadataRequest, options).then((request) => request(axios, basePath));
1016
+ },
1017
+ /**
1018
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
1019
+ * @summary Upload multiple documents
1020
+ * @param {Array<File>} file
1021
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1022
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
1027
+ return localVarFp.uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options).then((request) => request(axios, basePath));
1028
+ },
1029
+ /**
1030
+ * Uploads a single file, optionally with metadata and a parent folder ID.
1031
+ * @summary Upload a single document
1032
+ * @param {File} file
1033
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1034
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
1035
+ * @param {string} [metadata]
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
1040
+ return localVarFp.uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options).then((request) => request(axios, basePath));
1041
+ },
1042
+ };
1043
+ };
1044
+ /**
1045
+ * DocumentControllerApi - object-oriented interface
1046
+ */
1047
+ export class DocumentControllerApi extends BaseAPI {
1048
+ /**
1049
+ * Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
1050
+ * @summary Create a blank document from template
1051
+ * @param {CreateBlankDocumentRequest} createBlankDocumentRequest
1052
+ * @param {*} [options] Override http request option.
1053
+ * @throws {RequiredError}
1054
+ */
1055
+ createBlankDocument(createBlankDocumentRequest, options) {
1056
+ return DocumentControllerApiFp(this.configuration).createBlankDocument(createBlankDocumentRequest, options).then((request) => request(this.axios, this.basePath));
1057
+ }
1058
+ /**
1059
+ * Deletes specified metadata keys from a document.
1060
+ * @summary Delete specific metadata keys
1061
+ * @param {string} documentId
1062
+ * @param {DeleteMetadataRequest} deleteMetadataRequest
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ deleteDocumentMetadata(documentId, deleteMetadataRequest, options) {
1067
+ return DocumentControllerApiFp(this.configuration).deleteDocumentMetadata(documentId, deleteMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1068
+ }
1069
+ /**
1070
+ * Downloads a single file document.
1071
+ * @summary Download a document
1072
+ * @param {string} documentId
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ */
1076
+ downloadDocument(documentId, options) {
1077
+ return DocumentControllerApiFp(this.configuration).downloadDocument(documentId, options).then((request) => request(this.axios, this.basePath));
1078
+ }
1079
+ /**
1080
+ * Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
1081
+ * @summary Download document for OnlyOffice
1082
+ * @param {string} documentId
1083
+ * @param {string} token
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ */
1087
+ downloadForOnlyOffice(documentId, token, options) {
1088
+ return DocumentControllerApiFp(this.configuration).downloadForOnlyOffice(documentId, token, options).then((request) => request(this.axios, this.basePath));
1089
+ }
1090
+ /**
1091
+ * Downloads multiple documents as a single ZIP file.
1092
+ * @summary Download multiple documents as ZIP
1093
+ * @param {Array<string>} requestBody
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ downloadMultipleDocumentsAsZip(requestBody, options) {
1098
+ return DocumentControllerApiFp(this.configuration).downloadMultipleDocumentsAsZip(requestBody, options).then((request) => request(this.axios, this.basePath));
1099
+ }
1100
+ /**
1101
+ * Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
1102
+ * @summary Get document ancestors
1103
+ * @param {string} documentId
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ */
1107
+ getDocumentAncestors(documentId, options) {
1108
+ return DocumentControllerApiFp(this.configuration).getDocumentAncestors(documentId, options).then((request) => request(this.axios, this.basePath));
1109
+ }
1110
+ /**
1111
+ * Retrieves information for a document.
1112
+ * @summary Get information of a document
1113
+ * @param {string} documentId
1114
+ * @param {boolean} [withMetadata] if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response
1115
+ * @param {*} [options] Override http request option.
1116
+ * @throws {RequiredError}
1117
+ */
1118
+ getDocumentInfo(documentId, withMetadata, options) {
1119
+ return DocumentControllerApiFp(this.configuration).getDocumentInfo(documentId, withMetadata, options).then((request) => request(this.axios, this.basePath));
1120
+ }
1121
+ /**
1122
+ * Retrieves metadata for a document. Can filter by keys.
1123
+ * @summary Search metadata of a document
1124
+ * @param {string} documentId
1125
+ * @param {SearchMetadataRequest} [searchMetadataRequest]
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ getDocumentMetadata(documentId, searchMetadataRequest, options) {
1130
+ return DocumentControllerApiFp(this.configuration).getDocumentMetadata(documentId, searchMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1131
+ }
1132
+ /**
1133
+ * Retrieves the position of a document within its parent folder, useful for pagination.
1134
+ * @summary Get document position in folder
1135
+ * @param {string} documentId
1136
+ * @param {string} [sortBy] Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;.
1137
+ * @param {string} [sortOrder] Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ getDocumentPosition(documentId, sortBy, sortOrder, options) {
1142
+ return DocumentControllerApiFp(this.configuration).getDocumentPosition(documentId, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
1143
+ }
1144
+ /**
1145
+ * Replaces the content of an existing file document.
1146
+ * @summary Replace document content
1147
+ * @param {string} documentId
1148
+ * @param {File} file
1149
+ * @param {*} [options] Override http request option.
1150
+ * @throws {RequiredError}
1151
+ */
1152
+ replaceDocumentContent(documentId, file, options) {
1153
+ return DocumentControllerApiFp(this.configuration).replaceDocumentContent(documentId, file, options).then((request) => request(this.axios, this.basePath));
1154
+ }
1155
+ /**
1156
+ * Replaces all metadata of a document (file or folder).
1157
+ * @summary Replace document metadata
1158
+ * @param {string} documentId
1159
+ * @param {{ [key: string]: any; }} requestBody New metadata map. Replaces all existing metadata.
1160
+ * @param {*} [options] Override http request option.
1161
+ * @throws {RequiredError}
1162
+ */
1163
+ replaceDocumentMetadata(documentId, requestBody, options) {
1164
+ return DocumentControllerApiFp(this.configuration).replaceDocumentMetadata(documentId, requestBody, options).then((request) => request(this.axios, this.basePath));
1165
+ }
1166
+ /**
1167
+ * Finds document IDs matching all provided metadata criteria.
1168
+ * @summary Search document IDs by metadata
1169
+ * @param {SearchByMetadataRequest} searchByMetadataRequest
1170
+ * @param {*} [options] Override http request option.
1171
+ * @throws {RequiredError}
1172
+ */
1173
+ searchDocumentIdsByMetadata(searchByMetadataRequest, options) {
1174
+ return DocumentControllerApiFp(this.configuration).searchDocumentIdsByMetadata(searchByMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1175
+ }
1176
+ /**
1177
+ * Updates or adds specific metadata fields for a document.
1178
+ * @summary Update document metadata
1179
+ * @param {string} documentId
1180
+ * @param {UpdateMetadataRequest} updateMetadataRequest
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ updateDocumentMetadata(documentId, updateMetadataRequest, options) {
1185
+ return DocumentControllerApiFp(this.configuration).updateDocumentMetadata(documentId, updateMetadataRequest, options).then((request) => request(this.axios, this.basePath));
1186
+ }
1187
+ /**
1188
+ * Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
1189
+ * @summary Upload multiple documents
1190
+ * @param {Array<File>} file
1191
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1192
+ * @param {string} [parametersByFilename] Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt;
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options) {
1197
+ return DocumentControllerApiFp(this.configuration).uploadDocument(file, allowDuplicateFileNames, parametersByFilename, options).then((request) => request(this.axios, this.basePath));
1198
+ }
1199
+ /**
1200
+ * Uploads a single file, optionally with metadata and a parent folder ID.
1201
+ * @summary Upload a single document
1202
+ * @param {File} file
1203
+ * @param {boolean} [allowDuplicateFileNames] when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten)
1204
+ * @param {string} [parentFolderId] Target parent folder ID to store the file; if not sent or null, the file is stored at the root level
1205
+ * @param {string} [metadata]
1206
+ * @param {*} [options] Override http request option.
1207
+ * @throws {RequiredError}
1208
+ */
1209
+ uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options) {
1210
+ return DocumentControllerApiFp(this.configuration).uploadDocument1(file, allowDuplicateFileNames, parentFolderId, metadata, options).then((request) => request(this.axios, this.basePath));
1211
+ }
1212
+ }