@openfilz-sdk/typescript-ee 1.9.11 → 1.10.1

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,423 @@
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
+ * ArchiveControllerApi - axios parameter creator
31
+ */
32
+ export const ArchiveControllerApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * 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.
36
+ * @summary Archive a document
37
+ * @param {string} documentId
38
+ * @param {string} [onBehalfOf]
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ archive: (documentId_1, onBehalfOf_1, ...args_1) => __awaiter(this, [documentId_1, onBehalfOf_1, ...args_1], void 0, function* (documentId, onBehalfOf, options = {}) {
43
+ // verify required parameter 'documentId' is not null or undefined
44
+ assertParamExists('archive', 'documentId', documentId);
45
+ const localVarPath = `/api/v1/archive/documents/{documentId}`
46
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
54
+ const localVarHeaderParameter = {};
55
+ const localVarQueryParameter = {};
56
+ // authentication keycloak_auth required
57
+ // http bearer authentication required
58
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
59
+ if (onBehalfOf !== undefined) {
60
+ localVarQueryParameter['onBehalfOf'] = onBehalfOf;
61
+ }
62
+ localVarHeaderParameter['Accept'] = '*/*';
63
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
64
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
66
+ return {
67
+ url: toPathString(localVarUrlObj),
68
+ options: localVarRequestOptions,
69
+ };
70
+ }),
71
+ /**
72
+ * 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.
73
+ * @summary Archive the caller\'s own files in a folder subtree
74
+ * @param {string} folderId
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ archiveFolder: (folderId_1, ...args_1) => __awaiter(this, [folderId_1, ...args_1], void 0, function* (folderId, options = {}) {
79
+ // verify required parameter 'folderId' is not null or undefined
80
+ assertParamExists('archiveFolder', 'folderId', folderId);
81
+ const localVarPath = `/api/v1/archive/folders/{folderId}`
82
+ .replace('{folderId}', encodeURIComponent(String(folderId)));
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: 'POST' }, 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['Accept'] = '*/*';
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
+ return {
100
+ url: toPathString(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ }),
104
+ /**
105
+ * 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.
106
+ * @summary What archiving this would actually do
107
+ * @param {string} documentId
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ preflight: (documentId_1, ...args_1) => __awaiter(this, [documentId_1, ...args_1], void 0, function* (documentId, options = {}) {
112
+ // verify required parameter 'documentId' is not null or undefined
113
+ assertParamExists('preflight', 'documentId', documentId);
114
+ const localVarPath = `/api/v1/archive/preflight/{documentId}`
115
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
123
+ const localVarHeaderParameter = {};
124
+ const localVarQueryParameter = {};
125
+ // authentication keycloak_auth required
126
+ // http bearer authentication required
127
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
128
+ localVarHeaderParameter['Accept'] = '*/*';
129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ }),
137
+ /**
138
+ * 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.
139
+ * @summary Hand custody of an archived document to another user
140
+ * @param {string} documentId
141
+ * @param {{ [key: string]: string; }} requestBody
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ reassignOwner: (documentId_1, requestBody_1, ...args_1) => __awaiter(this, [documentId_1, requestBody_1, ...args_1], void 0, function* (documentId, requestBody, options = {}) {
146
+ // verify required parameter 'documentId' is not null or undefined
147
+ assertParamExists('reassignOwner', 'documentId', documentId);
148
+ // verify required parameter 'requestBody' is not null or undefined
149
+ assertParamExists('reassignOwner', 'requestBody', requestBody);
150
+ const localVarPath = `/api/v1/archive/documents/{documentId}/owner`
151
+ .replace('{documentId}', encodeURIComponent(String(documentId)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ }
158
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
159
+ const localVarHeaderParameter = {};
160
+ const localVarQueryParameter = {};
161
+ // authentication keycloak_auth required
162
+ // http bearer authentication required
163
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
164
+ localVarHeaderParameter['Content-Type'] = 'application/json';
165
+ localVarHeaderParameter['Accept'] = '*/*';
166
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
170
+ return {
171
+ url: toPathString(localVarUrlObj),
172
+ options: localVarRequestOptions,
173
+ };
174
+ }),
175
+ /**
176
+ * 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.
177
+ * @summary Restore an archived document into this instance
178
+ * @param {string} archiveDocumentId
179
+ * @param {string} [targetFolderId]
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ restore: (archiveDocumentId_1, targetFolderId_1, ...args_1) => __awaiter(this, [archiveDocumentId_1, targetFolderId_1, ...args_1], void 0, function* (archiveDocumentId, targetFolderId, options = {}) {
184
+ // verify required parameter 'archiveDocumentId' is not null or undefined
185
+ assertParamExists('restore', 'archiveDocumentId', archiveDocumentId);
186
+ const localVarPath = `/api/v1/archive/documents/{archiveDocumentId}/restore`
187
+ .replace('{archiveDocumentId}', encodeURIComponent(String(archiveDocumentId)));
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
+ if (targetFolderId !== undefined) {
201
+ localVarQueryParameter['targetFolderId'] = targetFolderId;
202
+ }
203
+ localVarHeaderParameter['Accept'] = '*/*';
204
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
205
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
206
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
207
+ return {
208
+ url: toPathString(localVarUrlObj),
209
+ options: localVarRequestOptions,
210
+ };
211
+ }),
212
+ };
213
+ };
214
+ /**
215
+ * ArchiveControllerApi - functional programming interface
216
+ */
217
+ export const ArchiveControllerApiFp = function (configuration) {
218
+ const localVarAxiosParamCreator = ArchiveControllerApiAxiosParamCreator(configuration);
219
+ return {
220
+ /**
221
+ * 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.
222
+ * @summary Archive a document
223
+ * @param {string} documentId
224
+ * @param {string} [onBehalfOf]
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ archive(documentId, onBehalfOf, options) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ var _a, _b, _c;
231
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archive(documentId, onBehalfOf, options);
232
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
233
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArchiveControllerApi.archive']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
234
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
235
+ });
236
+ },
237
+ /**
238
+ * 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.
239
+ * @summary Archive the caller\'s own files in a folder subtree
240
+ * @param {string} folderId
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ archiveFolder(folderId, options) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ var _a, _b, _c;
247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveFolder(folderId, options);
248
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
249
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArchiveControllerApi.archiveFolder']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
251
+ });
252
+ },
253
+ /**
254
+ * 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.
255
+ * @summary What archiving this would actually do
256
+ * @param {string} documentId
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ preflight(documentId, options) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ var _a, _b, _c;
263
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.preflight(documentId, options);
264
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
265
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArchiveControllerApi.preflight']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
266
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
267
+ });
268
+ },
269
+ /**
270
+ * 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.
271
+ * @summary Hand custody of an archived document to another user
272
+ * @param {string} documentId
273
+ * @param {{ [key: string]: string; }} requestBody
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ reassignOwner(documentId, requestBody, options) {
278
+ return __awaiter(this, void 0, void 0, function* () {
279
+ var _a, _b, _c;
280
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.reassignOwner(documentId, requestBody, options);
281
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
282
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArchiveControllerApi.reassignOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
283
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
+ });
285
+ },
286
+ /**
287
+ * 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.
288
+ * @summary Restore an archived document into this instance
289
+ * @param {string} archiveDocumentId
290
+ * @param {string} [targetFolderId]
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ restore(archiveDocumentId, targetFolderId, options) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ var _a, _b, _c;
297
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restore(archiveDocumentId, targetFolderId, options);
298
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
299
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ArchiveControllerApi.restore']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
300
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
301
+ });
302
+ },
303
+ };
304
+ };
305
+ /**
306
+ * ArchiveControllerApi - factory interface
307
+ */
308
+ export const ArchiveControllerApiFactory = function (configuration, basePath, axios) {
309
+ const localVarFp = ArchiveControllerApiFp(configuration);
310
+ return {
311
+ /**
312
+ * 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.
313
+ * @summary Archive a document
314
+ * @param {string} documentId
315
+ * @param {string} [onBehalfOf]
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ archive(documentId, onBehalfOf, options) {
320
+ return localVarFp.archive(documentId, onBehalfOf, options).then((request) => request(axios, basePath));
321
+ },
322
+ /**
323
+ * 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.
324
+ * @summary Archive the caller\'s own files in a folder subtree
325
+ * @param {string} folderId
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ archiveFolder(folderId, options) {
330
+ return localVarFp.archiveFolder(folderId, options).then((request) => request(axios, basePath));
331
+ },
332
+ /**
333
+ * 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.
334
+ * @summary What archiving this would actually do
335
+ * @param {string} documentId
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ preflight(documentId, options) {
340
+ return localVarFp.preflight(documentId, options).then((request) => request(axios, basePath));
341
+ },
342
+ /**
343
+ * 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.
344
+ * @summary Hand custody of an archived document to another user
345
+ * @param {string} documentId
346
+ * @param {{ [key: string]: string; }} requestBody
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ */
350
+ reassignOwner(documentId, requestBody, options) {
351
+ return localVarFp.reassignOwner(documentId, requestBody, options).then((request) => request(axios, basePath));
352
+ },
353
+ /**
354
+ * 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.
355
+ * @summary Restore an archived document into this instance
356
+ * @param {string} archiveDocumentId
357
+ * @param {string} [targetFolderId]
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ restore(archiveDocumentId, targetFolderId, options) {
362
+ return localVarFp.restore(archiveDocumentId, targetFolderId, options).then((request) => request(axios, basePath));
363
+ },
364
+ };
365
+ };
366
+ /**
367
+ * ArchiveControllerApi - object-oriented interface
368
+ */
369
+ export class ArchiveControllerApi extends BaseAPI {
370
+ /**
371
+ * 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.
372
+ * @summary Archive a document
373
+ * @param {string} documentId
374
+ * @param {string} [onBehalfOf]
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ archive(documentId, onBehalfOf, options) {
379
+ return ArchiveControllerApiFp(this.configuration).archive(documentId, onBehalfOf, options).then((request) => request(this.axios, this.basePath));
380
+ }
381
+ /**
382
+ * 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.
383
+ * @summary Archive the caller\'s own files in a folder subtree
384
+ * @param {string} folderId
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ archiveFolder(folderId, options) {
389
+ return ArchiveControllerApiFp(this.configuration).archiveFolder(folderId, options).then((request) => request(this.axios, this.basePath));
390
+ }
391
+ /**
392
+ * 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.
393
+ * @summary What archiving this would actually do
394
+ * @param {string} documentId
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ */
398
+ preflight(documentId, options) {
399
+ return ArchiveControllerApiFp(this.configuration).preflight(documentId, options).then((request) => request(this.axios, this.basePath));
400
+ }
401
+ /**
402
+ * 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.
403
+ * @summary Hand custody of an archived document to another user
404
+ * @param {string} documentId
405
+ * @param {{ [key: string]: string; }} requestBody
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ reassignOwner(documentId, requestBody, options) {
410
+ return ArchiveControllerApiFp(this.configuration).reassignOwner(documentId, requestBody, options).then((request) => request(this.axios, this.basePath));
411
+ }
412
+ /**
413
+ * 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.
414
+ * @summary Restore an archived document into this instance
415
+ * @param {string} archiveDocumentId
416
+ * @param {string} [targetFolderId]
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ restore(archiveDocumentId, targetFolderId, options) {
421
+ return ArchiveControllerApiFp(this.configuration).restore(archiveDocumentId, targetFolderId, options).then((request) => request(this.axios, this.basePath));
422
+ }
423
+ }
@@ -12,6 +12,7 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { AuditIntegrityStatusResponse } from '../models';
15
16
  import type { AuditVerificationResult } from '../models';
16
17
  import type { EnrichedAuditLog } from '../models';
17
18
  import type { SearchByAuditLogRequest } from '../models';
@@ -19,6 +20,13 @@ import type { SearchByAuditLogRequest } from '../models';
19
20
  * CollaborationAuditControllerApi - axios parameter creator
20
21
  */
21
22
  export declare const CollaborationAuditControllerApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * 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.
25
+ * @summary Last scheduled audit chain verification
26
+ * @param {*} [options] Override http request option.
27
+ * @throws {RequiredError}
28
+ */
29
+ auditIntegrityStatus: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22
30
  /**
23
31
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
24
32
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -48,6 +56,13 @@ export declare const CollaborationAuditControllerApiAxiosParamCreator: (configur
48
56
  * CollaborationAuditControllerApi - functional programming interface
49
57
  */
50
58
  export declare const CollaborationAuditControllerApiFp: (configuration?: Configuration) => {
59
+ /**
60
+ * 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.
61
+ * @summary Last scheduled audit chain verification
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ auditIntegrityStatus(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditIntegrityStatusResponse>>;
51
66
  /**
52
67
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
53
68
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -77,6 +92,13 @@ export declare const CollaborationAuditControllerApiFp: (configuration?: Configu
77
92
  * CollaborationAuditControllerApi - factory interface
78
93
  */
79
94
  export declare const CollaborationAuditControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
95
+ /**
96
+ * 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.
97
+ * @summary Last scheduled audit chain verification
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ auditIntegrityStatus(options?: RawAxiosRequestConfig): AxiosPromise<AuditIntegrityStatusResponse>;
80
102
  /**
81
103
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
82
104
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -106,6 +128,13 @@ export declare const CollaborationAuditControllerApiFactory: (configuration?: Co
106
128
  * CollaborationAuditControllerApi - object-oriented interface
107
129
  */
108
130
  export declare class CollaborationAuditControllerApi extends BaseAPI {
131
+ /**
132
+ * 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.
133
+ * @summary Last scheduled audit chain verification
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ auditIntegrityStatus(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuditIntegrityStatusResponse, any, {}, any>>;
109
138
  /**
110
139
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
111
140
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -31,6 +31,35 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
31
31
  */
32
32
  export const CollaborationAuditControllerApiAxiosParamCreator = function (configuration) {
33
33
  return {
34
+ /**
35
+ * 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.
36
+ * @summary Last scheduled audit chain verification
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ auditIntegrityStatus: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
41
+ const localVarPath = `/api/v1/audit/verify/status`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
49
+ const localVarHeaderParameter = {};
50
+ const localVarQueryParameter = {};
51
+ // authentication keycloak_auth required
52
+ // http bearer authentication required
53
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
54
+ localVarHeaderParameter['Accept'] = '*/*';
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
58
+ return {
59
+ url: toPathString(localVarUrlObj),
60
+ options: localVarRequestOptions,
61
+ };
62
+ }),
34
63
  /**
35
64
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
36
65
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -139,6 +168,21 @@ export const CollaborationAuditControllerApiAxiosParamCreator = function (config
139
168
  export const CollaborationAuditControllerApiFp = function (configuration) {
140
169
  const localVarAxiosParamCreator = CollaborationAuditControllerApiAxiosParamCreator(configuration);
141
170
  return {
171
+ /**
172
+ * 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.
173
+ * @summary Last scheduled audit chain verification
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ auditIntegrityStatus(options) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ var _a, _b, _c;
180
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.auditIntegrityStatus(options);
181
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
182
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollaborationAuditControllerApi.auditIntegrityStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
183
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
184
+ });
185
+ },
142
186
  /**
143
187
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
144
188
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -195,6 +239,15 @@ export const CollaborationAuditControllerApiFp = function (configuration) {
195
239
  export const CollaborationAuditControllerApiFactory = function (configuration, basePath, axios) {
196
240
  const localVarFp = CollaborationAuditControllerApiFp(configuration);
197
241
  return {
242
+ /**
243
+ * 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.
244
+ * @summary Last scheduled audit chain verification
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ auditIntegrityStatus(options) {
249
+ return localVarFp.auditIntegrityStatus(options).then((request) => request(axios, basePath));
250
+ },
198
251
  /**
199
252
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
200
253
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -231,6 +284,15 @@ export const CollaborationAuditControllerApiFactory = function (configuration, b
231
284
  * CollaborationAuditControllerApi - object-oriented interface
232
285
  */
233
286
  export class CollaborationAuditControllerApi extends BaseAPI {
287
+ /**
288
+ * 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.
289
+ * @summary Last scheduled audit chain verification
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ auditIntegrityStatus(options) {
294
+ return CollaborationAuditControllerApiFp(this.configuration).auditIntegrityStatus(options).then((request) => request(this.axios, this.basePath));
295
+ }
234
296
  /**
235
297
  * EE variant — adds `azp` and `actedViaIntegration` to every row when the audit was authorized via an integration JWT.
236
298
  * @summary Get audit trail for a resource (enriched with actor azp)
@@ -16,6 +16,7 @@ import type { AncestorInfo } from '../models';
16
16
  import type { CreateBlankDocumentRequest } from '../models';
17
17
  import type { DeleteMetadataRequest } from '../models';
18
18
  import type { DocumentInfo } from '../models';
19
+ import type { DocumentIntegrityRecord } from '../models';
19
20
  import type { DocumentPosition } from '../models';
20
21
  import type { ElementInfo } from '../models';
21
22
  import type { SearchByMetadataRequest } from '../models';
@@ -86,6 +87,14 @@ export declare const DocumentControllerApiAxiosParamCreator: (configuration?: Co
86
87
  * @throws {RequiredError}
87
88
  */
88
89
  getDocumentInfo: (documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ * 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.
92
+ * @summary Get a document\'s integrity ledger
93
+ * @param {string} documentId
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ getDocumentIntegrity: (documentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
89
98
  /**
90
99
  * Retrieves metadata for a document. Can filter by keys.
91
100
  * @summary Search metadata of a document
@@ -230,6 +239,14 @@ export declare const DocumentControllerApiFp: (configuration?: Configuration) =>
230
239
  * @throws {RequiredError}
231
240
  */
232
241
  getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DocumentInfo>>;
242
+ /**
243
+ * 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.
244
+ * @summary Get a document\'s integrity ledger
245
+ * @param {string} documentId
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DocumentIntegrityRecord>>>;
233
250
  /**
234
251
  * Retrieves metadata for a document. Can filter by keys.
235
252
  * @summary Search metadata of a document
@@ -376,6 +393,14 @@ export declare const DocumentControllerApiFactory: (configuration?: Configuratio
376
393
  * @throws {RequiredError}
377
394
  */
378
395
  getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<DocumentInfo>;
396
+ /**
397
+ * 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.
398
+ * @summary Get a document\'s integrity ledger
399
+ * @param {string} documentId
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<DocumentIntegrityRecord>>;
379
404
  /**
380
405
  * Retrieves metadata for a document. Can filter by keys.
381
406
  * @summary Search metadata of a document
@@ -522,6 +547,14 @@ export declare class DocumentControllerApi extends BaseAPI {
522
547
  * @throws {RequiredError}
523
548
  */
524
549
  getDocumentInfo(documentId: string, withMetadata?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentInfo, any, {}, any>>;
550
+ /**
551
+ * 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.
552
+ * @summary Get a document\'s integrity ledger
553
+ * @param {string} documentId
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ */
557
+ getDocumentIntegrity(documentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DocumentIntegrityRecord[], any, {}, any>>;
525
558
  /**
526
559
  * Retrieves metadata for a document. Can filter by keys.
527
560
  * @summary Search metadata of a document