@openfilz-sdk/typescript-ee 1.9.11 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/.openapi-generator/FILES +82 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +75 -5
  4. package/api/ai-analytics-admin-controller-api.ts +137 -0
  5. package/api/ai-archiving-admin-controller-api.ts +568 -0
  6. package/api/ai-cloud-usage-admin-controller-api.ts +121 -0
  7. package/api/aichat-api.ts +9 -9
  8. package/api/aidirectory-api.ts +121 -0
  9. package/api/aifiling-rules-api.ts +585 -0
  10. package/api/aigovernance-api.ts +194 -0
  11. package/api/aitaxonomy-api.ts +345 -0
  12. package/api/aiteam-inboxes-api.ts +491 -0
  13. package/api/archive-controller-api.ts +440 -0
  14. package/api/collaboration-audit-controller-api.ts +67 -0
  15. package/api/document-controller-api.ts +74 -0
  16. package/api/document-insights-api.ts +71 -4
  17. package/api/esign-api.ts +9 -9
  18. package/api/esign-enterprise-api.ts +9 -9
  19. package/api/settings-api.ts +18 -11
  20. package/api/smart-filing-api.ts +73 -0
  21. package/api.ts +9 -0
  22. package/dist/api/ai-analytics-admin-controller-api.d.ts +71 -0
  23. package/dist/api/ai-analytics-admin-controller-api.js +139 -0
  24. package/dist/api/ai-archiving-admin-controller-api.d.ts +262 -0
  25. package/dist/api/ai-archiving-admin-controller-api.js +548 -0
  26. package/dist/api/ai-cloud-usage-admin-controller-api.d.ts +63 -0
  27. package/dist/api/ai-cloud-usage-admin-controller-api.js +125 -0
  28. package/dist/api/aichat-api.d.ts +4 -4
  29. package/dist/api/aichat-api.js +9 -9
  30. package/dist/api/aidirectory-api.d.ts +63 -0
  31. package/dist/api/aidirectory-api.js +125 -0
  32. package/dist/api/aifiling-rules-api.d.ts +271 -0
  33. package/dist/api/aifiling-rules-api.js +562 -0
  34. package/dist/api/aigovernance-api.d.ts +95 -0
  35. package/dist/api/aigovernance-api.js +195 -0
  36. package/dist/api/aitaxonomy-api.d.ts +162 -0
  37. package/dist/api/aitaxonomy-api.js +334 -0
  38. package/dist/api/aiteam-inboxes-api.d.ts +228 -0
  39. package/dist/api/aiteam-inboxes-api.js +478 -0
  40. package/dist/api/archive-controller-api.d.ts +239 -0
  41. package/dist/api/archive-controller-api.js +430 -0
  42. package/dist/api/collaboration-audit-controller-api.d.ts +29 -0
  43. package/dist/api/collaboration-audit-controller-api.js +62 -0
  44. package/dist/api/document-controller-api.d.ts +33 -0
  45. package/dist/api/document-controller-api.js +69 -0
  46. package/dist/api/document-insights-api.d.ts +33 -4
  47. package/dist/api/document-insights-api.js +66 -4
  48. package/dist/api/esign-api.d.ts +4 -4
  49. package/dist/api/esign-api.js +9 -9
  50. package/dist/api/esign-enterprise-api.d.ts +4 -4
  51. package/dist/api/esign-enterprise-api.js +9 -9
  52. package/dist/api/settings-api.d.ts +12 -8
  53. package/dist/api/settings-api.js +18 -11
  54. package/dist/api/smart-filing-api.d.ts +33 -0
  55. package/dist/api/smart-filing-api.js +68 -0
  56. package/dist/api.d.ts +9 -0
  57. package/dist/api.js +9 -0
  58. package/dist/esm/api/ai-analytics-admin-controller-api.d.ts +71 -0
  59. package/dist/esm/api/ai-analytics-admin-controller-api.js +132 -0
  60. package/dist/esm/api/ai-archiving-admin-controller-api.d.ts +262 -0
  61. package/dist/esm/api/ai-archiving-admin-controller-api.js +541 -0
  62. package/dist/esm/api/ai-cloud-usage-admin-controller-api.d.ts +63 -0
  63. package/dist/esm/api/ai-cloud-usage-admin-controller-api.js +118 -0
  64. package/dist/esm/api/aichat-api.d.ts +4 -4
  65. package/dist/esm/api/aichat-api.js +9 -9
  66. package/dist/esm/api/aidirectory-api.d.ts +63 -0
  67. package/dist/esm/api/aidirectory-api.js +118 -0
  68. package/dist/esm/api/aifiling-rules-api.d.ts +271 -0
  69. package/dist/esm/api/aifiling-rules-api.js +555 -0
  70. package/dist/esm/api/aigovernance-api.d.ts +95 -0
  71. package/dist/esm/api/aigovernance-api.js +188 -0
  72. package/dist/esm/api/aitaxonomy-api.d.ts +162 -0
  73. package/dist/esm/api/aitaxonomy-api.js +327 -0
  74. package/dist/esm/api/aiteam-inboxes-api.d.ts +228 -0
  75. package/dist/esm/api/aiteam-inboxes-api.js +471 -0
  76. package/dist/esm/api/archive-controller-api.d.ts +239 -0
  77. package/dist/esm/api/archive-controller-api.js +423 -0
  78. package/dist/esm/api/collaboration-audit-controller-api.d.ts +29 -0
  79. package/dist/esm/api/collaboration-audit-controller-api.js +62 -0
  80. package/dist/esm/api/document-controller-api.d.ts +33 -0
  81. package/dist/esm/api/document-controller-api.js +69 -0
  82. package/dist/esm/api/document-insights-api.d.ts +33 -4
  83. package/dist/esm/api/document-insights-api.js +66 -4
  84. package/dist/esm/api/esign-api.d.ts +4 -4
  85. package/dist/esm/api/esign-api.js +9 -9
  86. package/dist/esm/api/esign-enterprise-api.d.ts +4 -4
  87. package/dist/esm/api/esign-enterprise-api.js +9 -9
  88. package/dist/esm/api/settings-api.d.ts +12 -8
  89. package/dist/esm/api/settings-api.js +18 -11
  90. package/dist/esm/api/smart-filing-api.d.ts +33 -0
  91. package/dist/esm/api/smart-filing-api.js +68 -0
  92. package/dist/esm/api.d.ts +9 -0
  93. package/dist/esm/api.js +9 -0
  94. package/dist/esm/models/ai-analytics-view.d.ts +25 -0
  95. package/dist/esm/models/ai-analytics-view.js +14 -0
  96. package/dist/esm/models/ai-cloud-usage-view.d.ts +33 -0
  97. package/dist/esm/models/ai-cloud-usage-view.js +19 -0
  98. package/dist/esm/models/ai-governance-settings.d.ts +22 -0
  99. package/dist/esm/models/ai-governance-settings.js +14 -0
  100. package/dist/esm/models/ai-preferences-view.d.ts +3 -0
  101. package/dist/esm/models/ai-taxonomy-category.d.ts +19 -0
  102. package/dist/esm/models/ai-taxonomy-category.js +14 -0
  103. package/dist/esm/models/ai-taxonomy-rename-request.d.ts +16 -0
  104. package/dist/esm/models/ai-taxonomy-rename-request.js +14 -0
  105. package/dist/esm/models/ai-taxonomy-rename-result.d.ts +17 -0
  106. package/dist/esm/models/ai-taxonomy-rename-result.js +14 -0
  107. package/dist/esm/models/ai-taxonomy-view.d.ts +16 -0
  108. package/dist/esm/models/ai-taxonomy-view.js +14 -0
  109. package/dist/esm/models/archive-preflight.d.ts +38 -0
  110. package/dist/esm/models/archive-preflight.js +14 -0
  111. package/dist/esm/models/archiving-proposal-request.d.ts +19 -0
  112. package/dist/esm/models/archiving-proposal-request.js +14 -0
  113. package/dist/esm/models/archiving-proposal-result.d.ts +19 -0
  114. package/dist/esm/models/archiving-proposal-result.js +14 -0
  115. package/dist/esm/models/archiving-schedule-request.d.ts +22 -0
  116. package/dist/esm/models/archiving-schedule-request.js +14 -0
  117. package/dist/esm/models/archiving-schedule-view.d.ts +29 -0
  118. package/dist/esm/models/archiving-schedule-view.js +14 -0
  119. package/dist/esm/models/audit-integrity-status-response.d.ts +37 -0
  120. package/dist/esm/models/audit-integrity-status-response.js +14 -0
  121. package/dist/esm/models/auto-file-inbox-request.d.ts +14 -0
  122. package/dist/esm/models/auto-file-inbox-request.js +14 -0
  123. package/dist/esm/models/consume-delegated-grant-request.d.ts +1 -1
  124. package/dist/esm/models/corrections.d.ts +16 -0
  125. package/dist/esm/models/corrections.js +14 -0
  126. package/dist/esm/models/create-delegated-grant-request.d.ts +2 -1
  127. package/dist/esm/models/create-delegated-grant-request.js +1 -0
  128. package/dist/esm/models/day-count.d.ts +16 -0
  129. package/dist/esm/models/day-count.js +14 -0
  130. package/dist/esm/models/delegated-grant-dto.d.ts +1 -0
  131. package/dist/esm/models/delegated-grant-dto.js +1 -0
  132. package/dist/esm/models/document-integrity-record.d.ts +23 -0
  133. package/dist/esm/models/document-integrity-record.js +14 -0
  134. package/dist/esm/models/enriched-audit-log.d.ts +3 -0
  135. package/dist/esm/models/enriched-audit-log.js +3 -0
  136. package/dist/esm/models/facet.d.ts +15 -0
  137. package/dist/esm/models/facet.js +14 -0
  138. package/dist/esm/models/filing-rule-event-view.d.ts +19 -0
  139. package/dist/esm/models/filing-rule-event-view.js +14 -0
  140. package/dist/esm/models/filing-rule-request.d.ts +47 -0
  141. package/dist/esm/models/filing-rule-request.js +14 -0
  142. package/dist/esm/models/filing-rule-test-request.d.ts +14 -0
  143. package/dist/esm/models/filing-rule-test-request.js +14 -0
  144. package/dist/esm/models/filing-rule-test-result.d.ts +22 -0
  145. package/dist/esm/models/filing-rule-test-result.js +14 -0
  146. package/dist/esm/models/filing-rule-view.d.ts +30 -0
  147. package/dist/esm/models/filing-rule-view.js +14 -0
  148. package/dist/esm/models/filing.d.ts +24 -0
  149. package/dist/esm/models/filing.js +14 -0
  150. package/dist/esm/models/foreign-item.d.ts +19 -0
  151. package/dist/esm/models/foreign-item.js +14 -0
  152. package/dist/esm/models/index.d.ts +32 -0
  153. package/dist/esm/models/index.js +32 -0
  154. package/dist/esm/models/insight-facets.d.ts +16 -0
  155. package/dist/esm/models/insight-facets.js +14 -0
  156. package/dist/esm/models/insights.d.ts +21 -0
  157. package/dist/esm/models/insights.js +14 -0
  158. package/dist/esm/models/key-count.d.ts +15 -0
  159. package/dist/esm/models/key-count.js +14 -0
  160. package/dist/esm/models/save-ai-preferences-request.d.ts +1 -0
  161. package/dist/esm/models/scan-request-dto.d.ts +3 -0
  162. package/dist/esm/models/search-by-audit-log-request.d.ts +3 -0
  163. package/dist/esm/models/search-by-audit-log-request.js +3 -0
  164. package/dist/esm/models/settings.d.ts +1 -0
  165. package/dist/esm/models/team-inbox-request.d.ts +24 -0
  166. package/dist/esm/models/team-inbox-request.js +14 -0
  167. package/dist/esm/models/team-inbox-view.d.ts +31 -0
  168. package/dist/esm/models/team-inbox-view.js +14 -0
  169. package/dist/esm/models/team-option-view.d.ts +25 -0
  170. package/dist/esm/models/team-option-view.js +14 -0
  171. package/dist/esm/models/untouched.d.ts +16 -0
  172. package/dist/esm/models/untouched.js +14 -0
  173. package/dist/models/ai-analytics-view.d.ts +25 -0
  174. package/dist/models/ai-analytics-view.js +15 -0
  175. package/dist/models/ai-cloud-usage-view.d.ts +33 -0
  176. package/dist/models/ai-cloud-usage-view.js +22 -0
  177. package/dist/models/ai-governance-settings.d.ts +22 -0
  178. package/dist/models/ai-governance-settings.js +15 -0
  179. package/dist/models/ai-preferences-view.d.ts +3 -0
  180. package/dist/models/ai-taxonomy-category.d.ts +19 -0
  181. package/dist/models/ai-taxonomy-category.js +15 -0
  182. package/dist/models/ai-taxonomy-rename-request.d.ts +16 -0
  183. package/dist/models/ai-taxonomy-rename-request.js +15 -0
  184. package/dist/models/ai-taxonomy-rename-result.d.ts +17 -0
  185. package/dist/models/ai-taxonomy-rename-result.js +15 -0
  186. package/dist/models/ai-taxonomy-view.d.ts +16 -0
  187. package/dist/models/ai-taxonomy-view.js +15 -0
  188. package/dist/models/archive-preflight.d.ts +38 -0
  189. package/dist/models/archive-preflight.js +15 -0
  190. package/dist/models/archiving-proposal-request.d.ts +19 -0
  191. package/dist/models/archiving-proposal-request.js +15 -0
  192. package/dist/models/archiving-proposal-result.d.ts +19 -0
  193. package/dist/models/archiving-proposal-result.js +15 -0
  194. package/dist/models/archiving-schedule-request.d.ts +22 -0
  195. package/dist/models/archiving-schedule-request.js +15 -0
  196. package/dist/models/archiving-schedule-view.d.ts +29 -0
  197. package/dist/models/archiving-schedule-view.js +15 -0
  198. package/dist/models/audit-integrity-status-response.d.ts +37 -0
  199. package/dist/models/audit-integrity-status-response.js +15 -0
  200. package/dist/models/auto-file-inbox-request.d.ts +14 -0
  201. package/dist/models/auto-file-inbox-request.js +15 -0
  202. package/dist/models/consume-delegated-grant-request.d.ts +1 -1
  203. package/dist/models/corrections.d.ts +16 -0
  204. package/dist/models/corrections.js +15 -0
  205. package/dist/models/create-delegated-grant-request.d.ts +2 -1
  206. package/dist/models/create-delegated-grant-request.js +1 -0
  207. package/dist/models/day-count.d.ts +16 -0
  208. package/dist/models/day-count.js +15 -0
  209. package/dist/models/delegated-grant-dto.d.ts +1 -0
  210. package/dist/models/delegated-grant-dto.js +1 -0
  211. package/dist/models/document-integrity-record.d.ts +23 -0
  212. package/dist/models/document-integrity-record.js +15 -0
  213. package/dist/models/enriched-audit-log.d.ts +3 -0
  214. package/dist/models/enriched-audit-log.js +3 -0
  215. package/dist/models/facet.d.ts +15 -0
  216. package/dist/models/facet.js +15 -0
  217. package/dist/models/filing-rule-event-view.d.ts +19 -0
  218. package/dist/models/filing-rule-event-view.js +15 -0
  219. package/dist/models/filing-rule-request.d.ts +47 -0
  220. package/dist/models/filing-rule-request.js +15 -0
  221. package/dist/models/filing-rule-test-request.d.ts +14 -0
  222. package/dist/models/filing-rule-test-request.js +15 -0
  223. package/dist/models/filing-rule-test-result.d.ts +22 -0
  224. package/dist/models/filing-rule-test-result.js +15 -0
  225. package/dist/models/filing-rule-view.d.ts +30 -0
  226. package/dist/models/filing-rule-view.js +15 -0
  227. package/dist/models/filing.d.ts +24 -0
  228. package/dist/models/filing.js +15 -0
  229. package/dist/models/foreign-item.d.ts +19 -0
  230. package/dist/models/foreign-item.js +15 -0
  231. package/dist/models/index.d.ts +32 -0
  232. package/dist/models/index.js +32 -0
  233. package/dist/models/insight-facets.d.ts +16 -0
  234. package/dist/models/insight-facets.js +15 -0
  235. package/dist/models/insights.d.ts +21 -0
  236. package/dist/models/insights.js +15 -0
  237. package/dist/models/key-count.d.ts +15 -0
  238. package/dist/models/key-count.js +15 -0
  239. package/dist/models/save-ai-preferences-request.d.ts +1 -0
  240. package/dist/models/scan-request-dto.d.ts +3 -0
  241. package/dist/models/search-by-audit-log-request.d.ts +3 -0
  242. package/dist/models/search-by-audit-log-request.js +3 -0
  243. package/dist/models/settings.d.ts +1 -0
  244. package/dist/models/team-inbox-request.d.ts +24 -0
  245. package/dist/models/team-inbox-request.js +15 -0
  246. package/dist/models/team-inbox-view.d.ts +31 -0
  247. package/dist/models/team-inbox-view.js +15 -0
  248. package/dist/models/team-option-view.d.ts +25 -0
  249. package/dist/models/team-option-view.js +15 -0
  250. package/dist/models/untouched.d.ts +16 -0
  251. package/dist/models/untouched.js +15 -0
  252. package/docs/AIChatApi.md +4 -4
  253. package/docs/AIDirectoryApi.md +51 -0
  254. package/docs/AIFilingRulesApi.md +371 -0
  255. package/docs/AIGovernanceApi.md +104 -0
  256. package/docs/AITaxonomyApi.md +204 -0
  257. package/docs/AITeamInboxesApi.md +313 -0
  258. package/docs/AiAnalyticsAdminControllerApi.md +62 -0
  259. package/docs/AiAnalyticsView.md +32 -0
  260. package/docs/AiArchivingAdminControllerApi.md +365 -0
  261. package/docs/AiCloudUsageAdminControllerApi.md +52 -0
  262. package/docs/AiCloudUsageView.md +44 -0
  263. package/docs/AiGovernanceSettings.md +36 -0
  264. package/docs/AiPreferencesView.md +6 -0
  265. package/docs/AiTaxonomyCategory.md +30 -0
  266. package/docs/AiTaxonomyRenameRequest.md +24 -0
  267. package/docs/AiTaxonomyRenameResult.md +26 -0
  268. package/docs/AiTaxonomyView.md +22 -0
  269. package/docs/ArchiveControllerApi.md +276 -0
  270. package/docs/ArchivePreflight.md +29 -0
  271. package/docs/ArchivingProposalRequest.md +30 -0
  272. package/docs/ArchivingProposalResult.md +30 -0
  273. package/docs/ArchivingScheduleRequest.md +36 -0
  274. package/docs/ArchivingScheduleView.md +50 -0
  275. package/docs/AuditIntegrityStatusResponse.md +29 -0
  276. package/docs/AutoFileInboxRequest.md +20 -0
  277. package/docs/CollaborationAuditControllerApi.md +45 -0
  278. package/docs/ConsumeDelegatedGrantRequest.md +1 -1
  279. package/docs/Corrections.md +24 -0
  280. package/docs/CreateDelegatedGrantRequest.md +1 -1
  281. package/docs/DayCount.md +24 -0
  282. package/docs/DocumentControllerApi.md +52 -0
  283. package/docs/DocumentInsightsApi.md +46 -1
  284. package/docs/DocumentIntegrityRecord.md +33 -0
  285. package/docs/ESignApi.md +4 -4
  286. package/docs/ESignEnterpriseApi.md +4 -4
  287. package/docs/Facet.md +22 -0
  288. package/docs/Filing.md +32 -0
  289. package/docs/FilingRuleEventView.md +30 -0
  290. package/docs/FilingRuleRequest.md +44 -0
  291. package/docs/FilingRuleTestRequest.md +20 -0
  292. package/docs/FilingRuleTestResult.md +36 -0
  293. package/docs/FilingRuleView.md +52 -0
  294. package/docs/ForeignItem.md +25 -0
  295. package/docs/InsightFacets.md +22 -0
  296. package/docs/Insights.md +34 -0
  297. package/docs/KeyCount.md +22 -0
  298. package/docs/SaveAiPreferencesRequest.md +2 -0
  299. package/docs/ScanRequestDto.md +6 -0
  300. package/docs/Settings.md +2 -0
  301. package/docs/SettingsApi.md +5 -2
  302. package/docs/SmartFilingApi.md +53 -0
  303. package/docs/TeamInboxRequest.md +34 -0
  304. package/docs/TeamInboxView.md +54 -0
  305. package/docs/TeamOptionView.md +24 -0
  306. package/docs/Untouched.md +24 -0
  307. package/graphql/document-search.graphqls +4 -0
  308. package/graphql/document.graphqls +4 -0
  309. package/models/ai-analytics-view.ts +41 -0
  310. package/models/ai-cloud-usage-view.ts +42 -0
  311. package/models/ai-governance-settings.ts +28 -0
  312. package/models/ai-preferences-view.ts +3 -0
  313. package/models/ai-taxonomy-category.ts +25 -0
  314. package/models/ai-taxonomy-rename-request.ts +22 -0
  315. package/models/ai-taxonomy-rename-result.ts +23 -0
  316. package/models/ai-taxonomy-view.ts +24 -0
  317. package/models/archive-preflight.ts +48 -0
  318. package/models/archiving-proposal-request.ts +25 -0
  319. package/models/archiving-proposal-result.ts +25 -0
  320. package/models/archiving-schedule-request.ts +28 -0
  321. package/models/archiving-schedule-view.ts +35 -0
  322. package/models/audit-integrity-status-response.ts +45 -0
  323. package/models/auto-file-inbox-request.ts +20 -0
  324. package/models/consume-delegated-grant-request.ts +1 -1
  325. package/models/corrections.ts +22 -0
  326. package/models/create-delegated-grant-request.ts +2 -1
  327. package/models/day-count.ts +22 -0
  328. package/models/delegated-grant-dto.ts +1 -0
  329. package/models/document-integrity-record.ts +29 -0
  330. package/models/enriched-audit-log.ts +3 -0
  331. package/models/facet.ts +21 -0
  332. package/models/filing-rule-event-view.ts +25 -0
  333. package/models/filing-rule-request.ts +53 -0
  334. package/models/filing-rule-test-request.ts +20 -0
  335. package/models/filing-rule-test-result.ts +28 -0
  336. package/models/filing-rule-view.ts +36 -0
  337. package/models/filing.ts +32 -0
  338. package/models/foreign-item.ts +25 -0
  339. package/models/index.ts +32 -0
  340. package/models/insight-facets.ts +24 -0
  341. package/models/insights.ts +27 -0
  342. package/models/key-count.ts +21 -0
  343. package/models/save-ai-preferences-request.ts +1 -0
  344. package/models/scan-request-dto.ts +3 -0
  345. package/models/search-by-audit-log-request.ts +3 -0
  346. package/models/settings.ts +1 -0
  347. package/models/team-inbox-request.ts +30 -0
  348. package/models/team-inbox-view.ts +37 -0
  349. package/models/team-option-view.ts +31 -0
  350. package/models/untouched.ts +22 -0
  351. package/package.json +1 -1
@@ -0,0 +1,440 @@
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
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ArchivePreflight } from '../models';
26
+ /**
27
+ * ArchiveControllerApi - axios parameter creator
28
+ */
29
+ export const ArchiveControllerApiAxiosParamCreator = function (configuration?: Configuration) {
30
+ return {
31
+ /**
32
+ * Copy to the archive, verify the fingerprint it recorded, then PERMANENTLY delete the source — even when soft delete is enabled, because a recycle-bin restore would resurrect a document that also lives in the archive. Owner only. Once this succeeds there is nothing to undo in this instance: recovery means restoring from the archive.
33
+ * @summary Archive a document
34
+ * @param {string} documentId
35
+ * @param {string} [onBehalfOf]
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ archive: async (documentId: string, onBehalfOf?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
40
+ // verify required parameter 'documentId' is not null or undefined
41
+ assertParamExists('archive', 'documentId', documentId)
42
+ const localVarPath = `/api/v1/archive/documents/{documentId}`
43
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+
51
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
52
+ const localVarHeaderParameter = {} as any;
53
+ const localVarQueryParameter = {} as any;
54
+
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
58
+
59
+ if (onBehalfOf !== undefined) {
60
+ localVarQueryParameter['onBehalfOf'] = onBehalfOf;
61
+ }
62
+
63
+ localVarHeaderParameter['Accept'] = '*/*';
64
+
65
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
66
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
68
+
69
+ return {
70
+ url: toPathString(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ },
74
+ /**
75
+ * Partial by design: files owned by other people stay where they are, because only an owner may archive. Run the pre-flight first — it names what will be left behind and who owns it. Sequential, so a failure part-way leaves a state a human can read: what moved is in the archive, the rest is untouched here.
76
+ * @summary Archive the caller\'s own files in a folder subtree
77
+ * @param {string} folderId
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ archiveFolder: async (folderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
82
+ // verify required parameter 'folderId' is not null or undefined
83
+ assertParamExists('archiveFolder', 'folderId', folderId)
84
+ const localVarPath = `/api/v1/archive/folders/{folderId}`
85
+ .replace('{folderId}', encodeURIComponent(String(folderId)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+
93
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
94
+ const localVarHeaderParameter = {} as any;
95
+ const localVarQueryParameter = {} as any;
96
+
97
+ // authentication keycloak_auth required
98
+ // http bearer authentication required
99
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
100
+
101
+ localVarHeaderParameter['Accept'] = '*/*';
102
+
103
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
104
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
106
+
107
+ return {
108
+ url: toPathString(localVarUrlObj),
109
+ options: localVarRequestOptions,
110
+ };
111
+ },
112
+ /**
113
+ * Computed before anything happens (§7.1): what will be archived, what stays behind because the caller does not own it (with the owners named), who loses a share, and how many comments the cascade destroys. Archiving hard-deletes the source even where soft delete is on, so this is a required step of the flow rather than a courtesy.
114
+ * @summary What archiving this would actually do
115
+ * @param {string} documentId
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ preflight: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
120
+ // verify required parameter 'documentId' is not null or undefined
121
+ assertParamExists('preflight', 'documentId', documentId)
122
+ const localVarPath = `/api/v1/archive/preflight/{documentId}`
123
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
124
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
125
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
126
+ let baseOptions;
127
+ if (configuration) {
128
+ baseOptions = configuration.baseOptions;
129
+ }
130
+
131
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
132
+ const localVarHeaderParameter = {} as any;
133
+ const localVarQueryParameter = {} as any;
134
+
135
+ // authentication keycloak_auth required
136
+ // http bearer authentication required
137
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
138
+
139
+ localVarHeaderParameter['Accept'] = '*/*';
140
+
141
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
142
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
+
145
+ return {
146
+ url: toPathString(localVarUrlObj),
147
+ options: localVarRequestOptions,
148
+ };
149
+ },
150
+ /**
151
+ * ADMIN only. Changes who may retrieve the document and nothing else: content, metadata, the deposit record and the integrity ledger stay frozen. Audited as ARCHIVE_OWNER_REASSIGNED. Refused when the deployment has disabled reassignment — 403 on a WORM instance, 404 elsewhere.
152
+ * @summary Hand custody of an archived document to another user
153
+ * @param {string} documentId
154
+ * @param {{ [key: string]: string; }} requestBody
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ reassignOwner: async (documentId: string, requestBody: { [key: string]: string; }, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
159
+ // verify required parameter 'documentId' is not null or undefined
160
+ assertParamExists('reassignOwner', 'documentId', documentId)
161
+ // verify required parameter 'requestBody' is not null or undefined
162
+ assertParamExists('reassignOwner', 'requestBody', requestBody)
163
+ const localVarPath = `/api/v1/archive/documents/{documentId}/owner`
164
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
165
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
167
+ let baseOptions;
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ }
171
+
172
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
173
+ const localVarHeaderParameter = {} as any;
174
+ const localVarQueryParameter = {} as any;
175
+
176
+ // authentication keycloak_auth required
177
+ // http bearer authentication required
178
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
179
+
180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
181
+ localVarHeaderParameter['Accept'] = '*/*';
182
+
183
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
184
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
186
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ /**
194
+ * Needs ARCHIVIST and CONTRIBUTOR. The archived original is untouched — a restore is a copy, never a move. The new document goes through the ordinary upload pipeline, so audit, checksum, indexing and antivirus all apply.
195
+ * @summary Restore an archived document into this instance
196
+ * @param {string} archiveDocumentId
197
+ * @param {string} [targetFolderId]
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ restore: async (archiveDocumentId: string, targetFolderId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
202
+ // verify required parameter 'archiveDocumentId' is not null or undefined
203
+ assertParamExists('restore', 'archiveDocumentId', archiveDocumentId)
204
+ const localVarPath = `/api/v1/archive/documents/{archiveDocumentId}/restore`
205
+ .replace('{archiveDocumentId}', encodeURIComponent(String(archiveDocumentId)));
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ }
212
+
213
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
214
+ const localVarHeaderParameter = {} as any;
215
+ const localVarQueryParameter = {} as any;
216
+
217
+ // authentication keycloak_auth required
218
+ // http bearer authentication required
219
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
220
+
221
+ if (targetFolderId !== undefined) {
222
+ localVarQueryParameter['targetFolderId'] = targetFolderId;
223
+ }
224
+
225
+ localVarHeaderParameter['Accept'] = '*/*';
226
+
227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
229
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
230
+
231
+ return {
232
+ url: toPathString(localVarUrlObj),
233
+ options: localVarRequestOptions,
234
+ };
235
+ },
236
+ }
237
+ };
238
+
239
+ /**
240
+ * ArchiveControllerApi - functional programming interface
241
+ */
242
+ export const ArchiveControllerApiFp = function(configuration?: Configuration) {
243
+ const localVarAxiosParamCreator = ArchiveControllerApiAxiosParamCreator(configuration)
244
+ return {
245
+ /**
246
+ * Copy to the archive, verify the fingerprint it recorded, then PERMANENTLY delete the source — even when soft delete is enabled, because a recycle-bin restore would resurrect a document that also lives in the archive. Owner only. Once this succeeds there is nothing to undo in this instance: recovery means restoring from the archive.
247
+ * @summary Archive a document
248
+ * @param {string} documentId
249
+ * @param {string} [onBehalfOf]
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ async archive(documentId: string, onBehalfOf?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
254
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archive(documentId, onBehalfOf, options);
255
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
256
+ const localVarOperationServerBasePath = operationServerMap['ArchiveControllerApi.archive']?.[localVarOperationServerIndex]?.url;
257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
+ },
259
+ /**
260
+ * Partial by design: files owned by other people stay where they are, because only an owner may archive. Run the pre-flight first — it names what will be left behind and who owns it. Sequential, so a failure part-way leaves a state a human can read: what moved is in the archive, the rest is untouched here.
261
+ * @summary Archive the caller\'s own files in a folder subtree
262
+ * @param {string} folderId
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ async archiveFolder(folderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveFolder(folderId, options);
268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
269
+ const localVarOperationServerBasePath = operationServerMap['ArchiveControllerApi.archiveFolder']?.[localVarOperationServerIndex]?.url;
270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
271
+ },
272
+ /**
273
+ * Computed before anything happens (§7.1): what will be archived, what stays behind because the caller does not own it (with the owners named), who loses a share, and how many comments the cascade destroys. Archiving hard-deletes the source even where soft delete is on, so this is a required step of the flow rather than a courtesy.
274
+ * @summary What archiving this would actually do
275
+ * @param {string} documentId
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ async preflight(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ArchivePreflight>> {
280
+ const localVarAxiosArgs = await localVarAxiosParamCreator.preflight(documentId, options);
281
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
282
+ const localVarOperationServerBasePath = operationServerMap['ArchiveControllerApi.preflight']?.[localVarOperationServerIndex]?.url;
283
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
+ },
285
+ /**
286
+ * ADMIN only. Changes who may retrieve the document and nothing else: content, metadata, the deposit record and the integrity ledger stay frozen. Audited as ARCHIVE_OWNER_REASSIGNED. Refused when the deployment has disabled reassignment — 403 on a WORM instance, 404 elsewhere.
287
+ * @summary Hand custody of an archived document to another user
288
+ * @param {string} documentId
289
+ * @param {{ [key: string]: string; }} requestBody
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ async reassignOwner(documentId: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reassignOwner(documentId, requestBody, options);
295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
296
+ const localVarOperationServerBasePath = operationServerMap['ArchiveControllerApi.reassignOwner']?.[localVarOperationServerIndex]?.url;
297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
298
+ },
299
+ /**
300
+ * Needs ARCHIVIST and CONTRIBUTOR. The archived original is untouched — a restore is a copy, never a move. The new document goes through the ordinary upload pipeline, so audit, checksum, indexing and antivirus all apply.
301
+ * @summary Restore an archived document into this instance
302
+ * @param {string} archiveDocumentId
303
+ * @param {string} [targetFolderId]
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ */
307
+ async restore(archiveDocumentId: string, targetFolderId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restore(archiveDocumentId, targetFolderId, options);
309
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
310
+ const localVarOperationServerBasePath = operationServerMap['ArchiveControllerApi.restore']?.[localVarOperationServerIndex]?.url;
311
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
+ },
313
+ }
314
+ };
315
+
316
+ /**
317
+ * ArchiveControllerApi - factory interface
318
+ */
319
+ export const ArchiveControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
320
+ const localVarFp = ArchiveControllerApiFp(configuration)
321
+ return {
322
+ /**
323
+ * Copy to the archive, verify the fingerprint it recorded, then PERMANENTLY delete the source — even when soft delete is enabled, because a recycle-bin restore would resurrect a document that also lives in the archive. Owner only. Once this succeeds there is nothing to undo in this instance: recovery means restoring from the archive.
324
+ * @summary Archive a document
325
+ * @param {string} documentId
326
+ * @param {string} [onBehalfOf]
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ archive(documentId: string, onBehalfOf?: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
331
+ return localVarFp.archive(documentId, onBehalfOf, options).then((request) => request(axios, basePath));
332
+ },
333
+ /**
334
+ * Partial by design: files owned by other people stay where they are, because only an owner may archive. Run the pre-flight first — it names what will be left behind and who owns it. Sequential, so a failure part-way leaves a state a human can read: what moved is in the archive, the rest is untouched here.
335
+ * @summary Archive the caller\'s own files in a folder subtree
336
+ * @param {string} folderId
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ archiveFolder(folderId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
341
+ return localVarFp.archiveFolder(folderId, options).then((request) => request(axios, basePath));
342
+ },
343
+ /**
344
+ * Computed before anything happens (§7.1): what will be archived, what stays behind because the caller does not own it (with the owners named), who loses a share, and how many comments the cascade destroys. Archiving hard-deletes the source even where soft delete is on, so this is a required step of the flow rather than a courtesy.
345
+ * @summary What archiving this would actually do
346
+ * @param {string} documentId
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ preflight(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<ArchivePreflight> {
351
+ return localVarFp.preflight(documentId, options).then((request) => request(axios, basePath));
352
+ },
353
+ /**
354
+ * ADMIN only. Changes who may retrieve the document and nothing else: content, metadata, the deposit record and the integrity ledger stay frozen. Audited as ARCHIVE_OWNER_REASSIGNED. Refused when the deployment has disabled reassignment — 403 on a WORM instance, 404 elsewhere.
355
+ * @summary Hand custody of an archived document to another user
356
+ * @param {string} documentId
357
+ * @param {{ [key: string]: string; }} requestBody
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ reassignOwner(documentId: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
362
+ return localVarFp.reassignOwner(documentId, requestBody, options).then((request) => request(axios, basePath));
363
+ },
364
+ /**
365
+ * Needs ARCHIVIST and CONTRIBUTOR. The archived original is untouched — a restore is a copy, never a move. The new document goes through the ordinary upload pipeline, so audit, checksum, indexing and antivirus all apply.
366
+ * @summary Restore an archived document into this instance
367
+ * @param {string} archiveDocumentId
368
+ * @param {string} [targetFolderId]
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ restore(archiveDocumentId: string, targetFolderId?: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
373
+ return localVarFp.restore(archiveDocumentId, targetFolderId, options).then((request) => request(axios, basePath));
374
+ },
375
+ };
376
+ };
377
+
378
+ /**
379
+ * ArchiveControllerApi - object-oriented interface
380
+ */
381
+ export class ArchiveControllerApi extends BaseAPI {
382
+ /**
383
+ * Copy to the archive, verify the fingerprint it recorded, then PERMANENTLY delete the source — even when soft delete is enabled, because a recycle-bin restore would resurrect a document that also lives in the archive. Owner only. Once this succeeds there is nothing to undo in this instance: recovery means restoring from the archive.
384
+ * @summary Archive a document
385
+ * @param {string} documentId
386
+ * @param {string} [onBehalfOf]
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ public archive(documentId: string, onBehalfOf?: string, options?: RawAxiosRequestConfig) {
391
+ return ArchiveControllerApiFp(this.configuration).archive(documentId, onBehalfOf, options).then((request) => request(this.axios, this.basePath));
392
+ }
393
+
394
+ /**
395
+ * Partial by design: files owned by other people stay where they are, because only an owner may archive. Run the pre-flight first — it names what will be left behind and who owns it. Sequential, so a failure part-way leaves a state a human can read: what moved is in the archive, the rest is untouched here.
396
+ * @summary Archive the caller\'s own files in a folder subtree
397
+ * @param {string} folderId
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ public archiveFolder(folderId: string, options?: RawAxiosRequestConfig) {
402
+ return ArchiveControllerApiFp(this.configuration).archiveFolder(folderId, options).then((request) => request(this.axios, this.basePath));
403
+ }
404
+
405
+ /**
406
+ * Computed before anything happens (§7.1): what will be archived, what stays behind because the caller does not own it (with the owners named), who loses a share, and how many comments the cascade destroys. Archiving hard-deletes the source even where soft delete is on, so this is a required step of the flow rather than a courtesy.
407
+ * @summary What archiving this would actually do
408
+ * @param {string} documentId
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ public preflight(documentId: string, options?: RawAxiosRequestConfig) {
413
+ return ArchiveControllerApiFp(this.configuration).preflight(documentId, options).then((request) => request(this.axios, this.basePath));
414
+ }
415
+
416
+ /**
417
+ * ADMIN only. Changes who may retrieve the document and nothing else: content, metadata, the deposit record and the integrity ledger stay frozen. Audited as ARCHIVE_OWNER_REASSIGNED. Refused when the deployment has disabled reassignment — 403 on a WORM instance, 404 elsewhere.
418
+ * @summary Hand custody of an archived document to another user
419
+ * @param {string} documentId
420
+ * @param {{ [key: string]: string; }} requestBody
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ public reassignOwner(documentId: string, requestBody: { [key: string]: string; }, options?: RawAxiosRequestConfig) {
425
+ return ArchiveControllerApiFp(this.configuration).reassignOwner(documentId, requestBody, options).then((request) => request(this.axios, this.basePath));
426
+ }
427
+
428
+ /**
429
+ * Needs ARCHIVIST and CONTRIBUTOR. The archived original is untouched — a restore is a copy, never a move. The new document goes through the ordinary upload pipeline, so audit, checksum, indexing and antivirus all apply.
430
+ * @summary Restore an archived document into this instance
431
+ * @param {string} archiveDocumentId
432
+ * @param {string} [targetFolderId]
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ public restore(archiveDocumentId: string, targetFolderId?: string, options?: RawAxiosRequestConfig) {
437
+ return ArchiveControllerApiFp(this.configuration).restore(archiveDocumentId, targetFolderId, options).then((request) => request(this.axios, this.basePath));
438
+ }
439
+ }
440
+
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { AuditIntegrityStatusResponse } from '../models';
26
+ // @ts-ignore
25
27
  import type { AuditVerificationResult } from '../models';
26
28
  // @ts-ignore
27
29
  import type { EnrichedAuditLog } from '../models';
@@ -32,6 +34,40 @@ import type { SearchByAuditLogRequest } from '../models';
32
34
  */
33
35
  export const CollaborationAuditControllerApiAxiosParamCreator = function (configuration?: Configuration) {
34
36
  return {
37
+ /**
38
+ * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid.
39
+ * @summary Last scheduled audit chain verification
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ auditIntegrityStatus: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ const localVarPath = `/api/v1/audit/verify/status`;
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
+
52
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
53
+ const localVarHeaderParameter = {} as any;
54
+ const localVarQueryParameter = {} as any;
55
+
56
+ // authentication keycloak_auth required
57
+ // http bearer authentication required
58
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
59
+
60
+ localVarHeaderParameter['Accept'] = '*/*';
61
+
62
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
63
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
64
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65
+
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ },
35
71
  /**
36
72
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
37
73
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -157,6 +193,18 @@ export const CollaborationAuditControllerApiAxiosParamCreator = function (config
157
193
  export const CollaborationAuditControllerApiFp = function(configuration?: Configuration) {
158
194
  const localVarAxiosParamCreator = CollaborationAuditControllerApiAxiosParamCreator(configuration)
159
195
  return {
196
+ /**
197
+ * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid.
198
+ * @summary Last scheduled audit chain verification
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ async auditIntegrityStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditIntegrityStatusResponse>> {
203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.auditIntegrityStatus(options);
204
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
205
+ const localVarOperationServerBasePath = operationServerMap['CollaborationAuditControllerApi.auditIntegrityStatus']?.[localVarOperationServerIndex]?.url;
206
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
207
+ },
160
208
  /**
161
209
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
162
210
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -205,6 +253,15 @@ export const CollaborationAuditControllerApiFp = function(configuration?: Config
205
253
  export const CollaborationAuditControllerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
254
  const localVarFp = CollaborationAuditControllerApiFp(configuration)
207
255
  return {
256
+ /**
257
+ * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid.
258
+ * @summary Last scheduled audit chain verification
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ auditIntegrityStatus(options?: RawAxiosRequestConfig): AxiosPromise<AuditIntegrityStatusResponse> {
263
+ return localVarFp.auditIntegrityStatus(options).then((request) => request(axios, basePath));
264
+ },
208
265
  /**
209
266
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
210
267
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -242,6 +299,16 @@ export const CollaborationAuditControllerApiFactory = function (configuration?:
242
299
  * CollaborationAuditControllerApi - object-oriented interface
243
300
  */
244
301
  export class CollaborationAuditControllerApi extends BaseAPI {
302
+ /**
303
+ * Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid.
304
+ * @summary Last scheduled audit chain verification
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ public auditIntegrityStatus(options?: RawAxiosRequestConfig) {
309
+ return CollaborationAuditControllerApiFp(this.configuration).auditIntegrityStatus(options).then((request) => request(this.axios, this.basePath));
310
+ }
311
+
245
312
  /**
246
313
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
247
314
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -30,6 +30,8 @@ import type { DeleteMetadataRequest } from '../models';
30
30
  // @ts-ignore
31
31
  import type { DocumentInfo } from '../models';
32
32
  // @ts-ignore
33
+ import type { DocumentIntegrityRecord } from '../models';
34
+ // @ts-ignore
33
35
  import type { DocumentPosition } from '../models';
34
36
  // @ts-ignore
35
37
  import type { ElementInfo } from '../models';
@@ -335,6 +337,44 @@ export const DocumentControllerApiAxiosParamCreator = function (configuration?:
335
337
  options: localVarRequestOptions,
336
338
  };
337
339
  },
340
+ /**
341
+ * Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
342
+ * @summary Get a document\'s integrity ledger
343
+ * @param {string} documentId
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ getDocumentIntegrity: async (documentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
348
+ // verify required parameter 'documentId' is not null or undefined
349
+ assertParamExists('getDocumentIntegrity', 'documentId', documentId)
350
+ const localVarPath = `/api/v1/documents/{documentId}/integrity`
351
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
354
+ let baseOptions;
355
+ if (configuration) {
356
+ baseOptions = configuration.baseOptions;
357
+ }
358
+
359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
360
+ const localVarHeaderParameter = {} as any;
361
+ const localVarQueryParameter = {} as any;
362
+
363
+ // authentication keycloak_auth required
364
+ // http bearer authentication required
365
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
366
+
367
+ localVarHeaderParameter['Accept'] = '*/*';
368
+
369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
372
+
373
+ return {
374
+ url: toPathString(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ };
377
+ },
338
378
  /**
339
379
  * Retrieves metadata for a document. Can filter by keys.
340
380
  * @summary Search metadata of a document
@@ -826,6 +866,19 @@ export const DocumentControllerApiFp = function(configuration?: Configuration) {
826
866
  const localVarOperationServerBasePath = operationServerMap['DocumentControllerApi.getDocumentInfo']?.[localVarOperationServerIndex]?.url;
827
867
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
828
868
  },
869
+ /**
870
+ * Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
871
+ * @summary Get a document\'s integrity ledger
872
+ * @param {string} documentId
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
876
+ async getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DocumentIntegrityRecord>>> {
877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocumentIntegrity(documentId, options);
878
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
879
+ const localVarOperationServerBasePath = operationServerMap['DocumentControllerApi.getDocumentIntegrity']?.[localVarOperationServerIndex]?.url;
880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
881
+ },
829
882
  /**
830
883
  * Retrieves metadata for a document. Can filter by keys.
831
884
  * @summary Search metadata of a document
@@ -1026,6 +1079,16 @@ export const DocumentControllerApiFactory = function (configuration?: Configurat
1026
1079
  getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DocumentInfo> {
1027
1080
  return localVarFp.getDocumentInfo(documentId, withMetadata, options).then((request) => request(axios, basePath));
1028
1081
  },
1082
+ /**
1083
+ * Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
1084
+ * @summary Get a document\'s integrity ledger
1085
+ * @param {string} documentId
1086
+ * @param {*} [options] Override http request option.
1087
+ * @throws {RequiredError}
1088
+ */
1089
+ getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DocumentIntegrityRecord>> {
1090
+ return localVarFp.getDocumentIntegrity(documentId, options).then((request) => request(axios, basePath));
1091
+ },
1029
1092
  /**
1030
1093
  * Retrieves metadata for a document. Can filter by keys.
1031
1094
  * @summary Search metadata of a document
@@ -1207,6 +1270,17 @@ export class DocumentControllerApi extends BaseAPI {
1207
1270
  return DocumentControllerApiFp(this.configuration).getDocumentInfo(documentId, withMetadata, options).then((request) => request(this.axios, this.basePath));
1208
1271
  }
1209
1272
 
1273
+ /**
1274
+ * Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
1275
+ * @summary Get a document\'s integrity ledger
1276
+ * @param {string} documentId
1277
+ * @param {*} [options] Override http request option.
1278
+ * @throws {RequiredError}
1279
+ */
1280
+ public getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig) {
1281
+ return DocumentControllerApiFp(this.configuration).getDocumentIntegrity(documentId, options).then((request) => request(this.axios, this.basePath));
1282
+ }
1283
+
1210
1284
  /**
1211
1285
  * Retrieves metadata for a document. Can filter by keys.
1212
1286
  * @summary Search metadata of a document