@openfilz-sdk/typescript 1.1.5-SNAPSHOT → 1.1.7

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 (309) hide show
  1. package/.openapi-generator/FILES +118 -76
  2. package/.openapi-generator/VERSION +1 -1
  3. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -0
  4. package/README.md +113 -2
  5. package/api/audit-controller-api.ts +4 -17
  6. package/api/dashboard-api.ts +2 -9
  7. package/api/document-controller-api.ts +21 -53
  8. package/api/document-suggestion-controller-api.ts +2 -9
  9. package/api/favorites-api.ts +3 -15
  10. package/api/file-controller-api.ts +3 -19
  11. package/api/folder-controller-api.ts +5 -26
  12. package/api/settings-api.ts +2 -9
  13. package/api/tus-controller-api.ts +8 -30
  14. package/base.ts +0 -24
  15. package/common.ts +19 -42
  16. package/configuration.ts +24 -18
  17. package/dist/api/audit-controller-api.d.ts +0 -12
  18. package/dist/api/audit-controller-api.js +3 -12
  19. package/dist/api/dashboard-api.d.ts +0 -7
  20. package/dist/api/dashboard-api.js +1 -7
  21. package/dist/api/document-controller-api.d.ts +0 -21
  22. package/dist/api/document-controller-api.js +14 -21
  23. package/dist/api/document-suggestion-controller-api.d.ts +0 -7
  24. package/dist/api/document-suggestion-controller-api.js +1 -7
  25. package/dist/api/favorites-api.d.ts +0 -10
  26. package/dist/api/favorites-api.js +2 -10
  27. package/dist/api/file-controller-api.d.ts +0 -10
  28. package/dist/api/file-controller-api.js +2 -10
  29. package/dist/api/folder-controller-api.d.ts +0 -13
  30. package/dist/api/folder-controller-api.js +4 -13
  31. package/dist/api/settings-api.d.ts +0 -7
  32. package/dist/api/settings-api.js +1 -7
  33. package/dist/api/tus-controller-api.d.ts +0 -15
  34. package/dist/api/tus-controller-api.js +7 -18
  35. package/dist/base.d.ts +0 -24
  36. package/dist/base.js +0 -19
  37. package/dist/common.d.ts +4 -35
  38. package/dist/common.js +16 -38
  39. package/dist/configuration.d.ts +24 -17
  40. package/dist/configuration.js +1 -1
  41. package/dist/esm/api/audit-controller-api.d.ts +0 -12
  42. package/dist/esm/api/audit-controller-api.js +3 -12
  43. package/dist/esm/api/dashboard-api.d.ts +0 -7
  44. package/dist/esm/api/dashboard-api.js +1 -7
  45. package/dist/esm/api/document-controller-api.d.ts +0 -21
  46. package/dist/esm/api/document-controller-api.js +14 -21
  47. package/dist/esm/api/document-suggestion-controller-api.d.ts +0 -7
  48. package/dist/esm/api/document-suggestion-controller-api.js +1 -7
  49. package/dist/esm/api/favorites-api.d.ts +0 -10
  50. package/dist/esm/api/favorites-api.js +2 -10
  51. package/dist/esm/api/file-controller-api.d.ts +0 -10
  52. package/dist/esm/api/file-controller-api.js +2 -10
  53. package/dist/esm/api/folder-controller-api.d.ts +0 -13
  54. package/dist/esm/api/folder-controller-api.js +4 -13
  55. package/dist/esm/api/settings-api.d.ts +0 -7
  56. package/dist/esm/api/settings-api.js +1 -7
  57. package/dist/esm/api/tus-controller-api.d.ts +0 -15
  58. package/dist/esm/api/tus-controller-api.js +8 -19
  59. package/dist/esm/base.d.ts +0 -24
  60. package/dist/esm/base.js +0 -19
  61. package/dist/esm/common.d.ts +4 -35
  62. package/dist/esm/common.js +14 -37
  63. package/dist/esm/configuration.d.ts +24 -17
  64. package/dist/esm/configuration.js +1 -1
  65. package/dist/esm/models/ancestor-info.d.ts +0 -20
  66. package/dist/esm/models/audit-log-details-one-of.d.ts +29 -29
  67. package/dist/esm/models/audit-log-details.d.ts +3 -14
  68. package/dist/esm/models/audit-log.d.ts +2 -44
  69. package/dist/esm/models/audit-verification-result.d.ts +2 -29
  70. package/dist/esm/models/broken-link.d.ts +0 -20
  71. package/dist/esm/models/copy-audit.d.ts +3 -28
  72. package/dist/esm/models/copy-request.d.ts +0 -11
  73. package/dist/esm/models/copy-response.d.ts +0 -9
  74. package/dist/esm/models/create-blank-document-request.d.ts +0 -14
  75. package/dist/esm/models/create-folder-audit.d.ts +3 -23
  76. package/dist/esm/models/create-folder-request.d.ts +0 -12
  77. package/dist/esm/models/dashboard-statistics-response.d.ts +4 -29
  78. package/dist/esm/models/delete-audit.d.ts +3 -16
  79. package/dist/esm/models/delete-metadata-audit.d.ts +3 -16
  80. package/dist/esm/models/delete-metadata-request.d.ts +0 -7
  81. package/dist/esm/models/delete-request.d.ts +0 -7
  82. package/dist/esm/models/document-info.d.ts +0 -17
  83. package/dist/esm/models/document-position.d.ts +0 -25
  84. package/dist/esm/models/element-info.d.ts +0 -20
  85. package/dist/esm/models/file-type-stats.d.ts +0 -20
  86. package/dist/esm/models/filter-input.d.ts +0 -15
  87. package/dist/esm/models/folder-element-info.d.ts +0 -11
  88. package/dist/esm/models/folder-response.d.ts +0 -20
  89. package/dist/esm/models/index.d.ts +0 -11
  90. package/dist/esm/models/index.js +0 -11
  91. package/dist/esm/models/move-audit.d.ts +3 -16
  92. package/dist/esm/models/move-request.d.ts +0 -11
  93. package/dist/esm/models/rename-audit.d.ts +3 -16
  94. package/dist/esm/models/rename-request.d.ts +0 -10
  95. package/dist/esm/models/replace-audit.d.ts +3 -24
  96. package/dist/esm/models/search-by-audit-log-request.d.ts +0 -12
  97. package/dist/esm/models/search-by-metadata-request.d.ts +0 -12
  98. package/dist/esm/models/search-metadata-request.d.ts +0 -7
  99. package/dist/esm/models/settings.d.ts +0 -30
  100. package/dist/esm/models/sort-input.d.ts +0 -15
  101. package/dist/esm/models/storage-breakdown.d.ts +2 -22
  102. package/dist/esm/models/suggest.d.ts +0 -20
  103. package/dist/esm/models/tus-config-response.d.ts +0 -30
  104. package/dist/esm/models/tus-finalize-request.d.ts +0 -25
  105. package/dist/esm/models/tus-upload-info.d.ts +0 -30
  106. package/dist/esm/models/update-metadata-audit.d.ts +3 -18
  107. package/dist/esm/models/update-metadata-request.d.ts +0 -7
  108. package/dist/esm/models/upload-audit.d.ts +3 -30
  109. package/dist/esm/models/upload-response.d.ts +0 -35
  110. package/dist/models/ancestor-info.d.ts +0 -20
  111. package/dist/models/audit-log-details-one-of.d.ts +29 -29
  112. package/dist/models/audit-log-details.d.ts +3 -14
  113. package/dist/models/audit-log.d.ts +2 -44
  114. package/dist/models/audit-verification-result.d.ts +2 -29
  115. package/dist/models/broken-link.d.ts +0 -20
  116. package/dist/models/copy-audit.d.ts +3 -28
  117. package/dist/models/copy-request.d.ts +0 -11
  118. package/dist/models/copy-response.d.ts +0 -9
  119. package/dist/models/create-blank-document-request.d.ts +0 -14
  120. package/dist/models/create-folder-audit.d.ts +3 -23
  121. package/dist/models/create-folder-request.d.ts +0 -12
  122. package/dist/models/dashboard-statistics-response.d.ts +4 -29
  123. package/dist/models/delete-audit.d.ts +3 -16
  124. package/dist/models/delete-metadata-audit.d.ts +3 -16
  125. package/dist/models/delete-metadata-request.d.ts +0 -7
  126. package/dist/models/delete-request.d.ts +0 -7
  127. package/dist/models/document-info.d.ts +0 -17
  128. package/dist/models/document-position.d.ts +0 -25
  129. package/dist/models/element-info.d.ts +0 -20
  130. package/dist/models/file-type-stats.d.ts +0 -20
  131. package/dist/models/filter-input.d.ts +0 -15
  132. package/dist/models/folder-element-info.d.ts +0 -11
  133. package/dist/models/folder-response.d.ts +0 -20
  134. package/dist/models/index.d.ts +0 -11
  135. package/dist/models/index.js +0 -11
  136. package/dist/models/move-audit.d.ts +3 -16
  137. package/dist/models/move-request.d.ts +0 -11
  138. package/dist/models/rename-audit.d.ts +3 -16
  139. package/dist/models/rename-request.d.ts +0 -10
  140. package/dist/models/replace-audit.d.ts +3 -24
  141. package/dist/models/search-by-audit-log-request.d.ts +0 -12
  142. package/dist/models/search-by-metadata-request.d.ts +0 -12
  143. package/dist/models/search-metadata-request.d.ts +0 -7
  144. package/dist/models/settings.d.ts +0 -30
  145. package/dist/models/sort-input.d.ts +0 -15
  146. package/dist/models/storage-breakdown.d.ts +2 -22
  147. package/dist/models/suggest.d.ts +0 -20
  148. package/dist/models/tus-config-response.d.ts +0 -30
  149. package/dist/models/tus-finalize-request.d.ts +0 -25
  150. package/dist/models/tus-upload-info.d.ts +0 -30
  151. package/dist/models/update-metadata-audit.d.ts +3 -18
  152. package/dist/models/update-metadata-request.d.ts +0 -7
  153. package/dist/models/upload-audit.d.ts +3 -30
  154. package/dist/models/upload-response.d.ts +0 -35
  155. package/docs/AncestorInfo.md +24 -0
  156. package/docs/AuditControllerApi.md +160 -0
  157. package/docs/AuditLog.md +35 -0
  158. package/docs/AuditLogDetails.md +20 -0
  159. package/docs/AuditLogDetailsOneOf.md +42 -0
  160. package/docs/AuditVerificationResult.md +29 -0
  161. package/docs/BrokenLink.md +24 -0
  162. package/docs/CopyAudit.md +25 -0
  163. package/docs/CopyRequest.md +24 -0
  164. package/docs/CopyResponse.md +22 -0
  165. package/docs/CreateBlankDocumentRequest.md +24 -0
  166. package/docs/CreateFolderAudit.md +23 -0
  167. package/docs/CreateFolderRequest.md +22 -0
  168. package/docs/DashboardApi.md +52 -0
  169. package/docs/DashboardStatisticsResponse.md +26 -0
  170. package/docs/DeleteAudit.md +21 -0
  171. package/docs/DeleteMetadataAudit.md +21 -0
  172. package/docs/DeleteMetadataRequest.md +20 -0
  173. package/docs/DeleteRequest.md +20 -0
  174. package/docs/DocumentControllerApi.md +834 -0
  175. package/docs/DocumentInfo.md +30 -0
  176. package/docs/DocumentPosition.md +26 -0
  177. package/docs/DocumentSuggestionControllerApi.md +65 -0
  178. package/docs/ElementInfo.md +24 -0
  179. package/docs/FavoritesApi.md +215 -0
  180. package/docs/FileControllerApi.md +222 -0
  181. package/docs/FileTypeStats.md +24 -0
  182. package/docs/FilterInput.md +22 -0
  183. package/docs/FolderControllerApi.md +385 -0
  184. package/docs/FolderElementInfo.md +24 -0
  185. package/docs/FolderResponse.md +24 -0
  186. package/docs/MoveAudit.md +21 -0
  187. package/docs/MoveRequest.md +24 -0
  188. package/docs/RenameAudit.md +21 -0
  189. package/docs/RenameRequest.md +20 -0
  190. package/docs/ReplaceAudit.md +23 -0
  191. package/docs/SearchByAuditLogRequest.md +29 -0
  192. package/docs/SearchByMetadataRequest.md +29 -0
  193. package/docs/SearchMetadataRequest.md +20 -0
  194. package/docs/Settings.md +28 -0
  195. package/docs/SettingsApi.md +52 -0
  196. package/docs/SortInput.md +22 -0
  197. package/docs/StorageBreakdown.md +24 -0
  198. package/docs/Suggest.md +24 -0
  199. package/docs/TusConfigResponse.md +28 -0
  200. package/docs/TusControllerApi.md +493 -0
  201. package/docs/TusFinalizeRequest.md +26 -0
  202. package/docs/TusUploadInfo.md +28 -0
  203. package/docs/UpdateMetadataAudit.md +21 -0
  204. package/docs/UpdateMetadataRequest.md +20 -0
  205. package/docs/UploadAudit.md +25 -0
  206. package/docs/UploadResponse.md +30 -0
  207. package/graphql/document-search.graphqls +44 -44
  208. package/graphql/document.graphqls +114 -114
  209. package/models/ancestor-info.ts +0 -20
  210. package/models/audit-log-details-one-of.ts +33 -29
  211. package/models/audit-log-details.ts +3 -36
  212. package/models/audit-log.ts +2 -44
  213. package/models/audit-verification-result.ts +2 -29
  214. package/models/broken-link.ts +0 -20
  215. package/models/copy-audit.ts +6 -28
  216. package/models/copy-request.ts +0 -11
  217. package/models/copy-response.ts +0 -9
  218. package/models/create-blank-document-request.ts +0 -14
  219. package/models/create-folder-audit.ts +6 -22
  220. package/models/create-folder-request.ts +0 -12
  221. package/models/dashboard-statistics-response.ts +4 -29
  222. package/models/delete-audit.ts +6 -16
  223. package/models/delete-metadata-audit.ts +6 -16
  224. package/models/delete-metadata-request.ts +0 -7
  225. package/models/delete-request.ts +0 -7
  226. package/models/document-info.ts +0 -17
  227. package/models/document-position.ts +0 -25
  228. package/models/element-info.ts +0 -20
  229. package/models/file-type-stats.ts +0 -20
  230. package/models/filter-input.ts +0 -15
  231. package/models/folder-element-info.ts +0 -11
  232. package/models/folder-response.ts +0 -20
  233. package/models/index.ts +0 -11
  234. package/models/move-audit.ts +6 -16
  235. package/models/move-request.ts +0 -11
  236. package/models/rename-audit.ts +6 -16
  237. package/models/rename-request.ts +0 -10
  238. package/models/replace-audit.ts +6 -22
  239. package/models/search-by-audit-log-request.ts +0 -12
  240. package/models/search-by-metadata-request.ts +0 -12
  241. package/models/search-metadata-request.ts +0 -7
  242. package/models/settings.ts +0 -30
  243. package/models/sort-input.ts +0 -15
  244. package/models/storage-breakdown.ts +2 -22
  245. package/models/suggest.ts +0 -20
  246. package/models/tus-config-response.ts +0 -30
  247. package/models/tus-finalize-request.ts +0 -25
  248. package/models/tus-upload-info.ts +0 -30
  249. package/models/update-metadata-audit.ts +6 -16
  250. package/models/update-metadata-request.ts +0 -7
  251. package/models/upload-audit.ts +6 -28
  252. package/models/upload-response.ts +0 -35
  253. package/package.json +2 -2
  254. package/.openapi-generator/openfilz-api.json-generate-typescript-sdk.sha256 +0 -1
  255. package/dist/esm/models/audit-log-details-one-of1.d.ts +0 -37
  256. package/dist/esm/models/audit-log-details-one-of1.js +0 -14
  257. package/dist/esm/models/audit-log-details-one-of2.d.ts +0 -30
  258. package/dist/esm/models/audit-log-details-one-of2.js +0 -14
  259. package/dist/esm/models/audit-log-details-one-of3.d.ts +0 -30
  260. package/dist/esm/models/audit-log-details-one-of3.js +0 -14
  261. package/dist/esm/models/audit-log-details-one-of4.d.ts +0 -30
  262. package/dist/esm/models/audit-log-details-one-of4.js +0 -14
  263. package/dist/esm/models/audit-log-details-one-of5.d.ts +0 -30
  264. package/dist/esm/models/audit-log-details-one-of5.js +0 -14
  265. package/dist/esm/models/audit-log-details-one-of6.d.ts +0 -38
  266. package/dist/esm/models/audit-log-details-one-of6.js +0 -14
  267. package/dist/esm/models/audit-log-details-one-of7.d.ts +0 -32
  268. package/dist/esm/models/audit-log-details-one-of7.js +0 -14
  269. package/dist/esm/models/audit-log-details-one-of8.d.ts +0 -44
  270. package/dist/esm/models/audit-log-details-one-of8.js +0 -14
  271. package/dist/esm/models/audit-verification-result-broken-link.d.ts +0 -36
  272. package/dist/esm/models/audit-verification-result-broken-link.js +0 -14
  273. package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
  274. package/dist/esm/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -14
  275. package/dist/esm/models/dashboard-statistics-response-storage.d.ts +0 -37
  276. package/dist/esm/models/dashboard-statistics-response-storage.js +0 -14
  277. package/dist/models/audit-log-details-one-of1.d.ts +0 -37
  278. package/dist/models/audit-log-details-one-of1.js +0 -15
  279. package/dist/models/audit-log-details-one-of2.d.ts +0 -30
  280. package/dist/models/audit-log-details-one-of2.js +0 -15
  281. package/dist/models/audit-log-details-one-of3.d.ts +0 -30
  282. package/dist/models/audit-log-details-one-of3.js +0 -15
  283. package/dist/models/audit-log-details-one-of4.d.ts +0 -30
  284. package/dist/models/audit-log-details-one-of4.js +0 -15
  285. package/dist/models/audit-log-details-one-of5.d.ts +0 -30
  286. package/dist/models/audit-log-details-one-of5.js +0 -15
  287. package/dist/models/audit-log-details-one-of6.d.ts +0 -38
  288. package/dist/models/audit-log-details-one-of6.js +0 -15
  289. package/dist/models/audit-log-details-one-of7.d.ts +0 -32
  290. package/dist/models/audit-log-details-one-of7.js +0 -15
  291. package/dist/models/audit-log-details-one-of8.d.ts +0 -44
  292. package/dist/models/audit-log-details-one-of8.js +0 -15
  293. package/dist/models/audit-verification-result-broken-link.d.ts +0 -36
  294. package/dist/models/audit-verification-result-broken-link.js +0 -15
  295. package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.d.ts +0 -36
  296. package/dist/models/dashboard-statistics-response-storage-file-type-breakdown-inner.js +0 -15
  297. package/dist/models/dashboard-statistics-response-storage.d.ts +0 -37
  298. package/dist/models/dashboard-statistics-response-storage.js +0 -15
  299. package/models/audit-log-details-one-of1.ts +0 -45
  300. package/models/audit-log-details-one-of2.ts +0 -36
  301. package/models/audit-log-details-one-of3.ts +0 -36
  302. package/models/audit-log-details-one-of4.ts +0 -36
  303. package/models/audit-log-details-one-of5.ts +0 -36
  304. package/models/audit-log-details-one-of6.ts +0 -42
  305. package/models/audit-log-details-one-of7.ts +0 -36
  306. package/models/audit-log-details-one-of8.ts +0 -48
  307. package/models/audit-verification-result-broken-link.ts +0 -42
  308. package/models/dashboard-statistics-response-storage-file-type-breakdown-inner.ts +0 -42
  309. package/models/dashboard-statistics-response-storage.ts +0 -45
@@ -0,0 +1,834 @@
1
+ # DocumentControllerApi
2
+
3
+ All URIs are relative to *http://localhost:8081*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createBlankDocument**](#createblankdocument) | **POST** /api/v1/documents/create-blank | Create a blank document from template|
8
+ |[**deleteDocumentMetadata**](#deletedocumentmetadata) | **DELETE** /api/v1/documents/{documentId}/metadata | Delete specific metadata keys|
9
+ |[**downloadDocument**](#downloaddocument) | **GET** /api/v1/documents/{documentId}/download | Download a document|
10
+ |[**downloadForOnlyOffice**](#downloadforonlyoffice) | **GET** /api/v1/documents/{documentId}/onlyoffice-download | Download document for OnlyOffice|
11
+ |[**downloadMultipleDocumentsAsZip**](#downloadmultipledocumentsaszip) | **POST** /api/v1/documents/download-multiple | Download multiple documents as ZIP|
12
+ |[**getDocumentAncestors**](#getdocumentancestors) | **GET** /api/v1/documents/{documentId}/ancestors | Get document ancestors|
13
+ |[**getDocumentInfo**](#getdocumentinfo) | **GET** /api/v1/documents/{documentId}/info | Get information of a document|
14
+ |[**getDocumentMetadata**](#getdocumentmetadata) | **POST** /api/v1/documents/{documentId}/search/metadata | Search metadata of a document|
15
+ |[**getDocumentPosition**](#getdocumentposition) | **GET** /api/v1/documents/{documentId}/position | Get document position in folder|
16
+ |[**replaceDocumentContent**](#replacedocumentcontent) | **PUT** /api/v1/documents/{documentId}/replace-content | Replace document content|
17
+ |[**replaceDocumentMetadata**](#replacedocumentmetadata) | **PUT** /api/v1/documents/{documentId}/replace-metadata | Replace document metadata|
18
+ |[**searchDocumentIdsByMetadata**](#searchdocumentidsbymetadata) | **POST** /api/v1/documents/search/ids-by-metadata | Search document IDs by metadata|
19
+ |[**updateDocumentMetadata**](#updatedocumentmetadata) | **PATCH** /api/v1/documents/{documentId}/metadata | Update document metadata|
20
+ |[**uploadDocument**](#uploaddocument) | **POST** /api/v1/documents/upload-multiple | Upload multiple documents|
21
+ |[**uploadDocument1**](#uploaddocument1) | **POST** /api/v1/documents/upload | Upload a single document|
22
+
23
+ # **createBlankDocument**
24
+ > UploadResponse createBlankDocument(createBlankDocumentRequest)
25
+
26
+ Creates a new blank document (Word, Excel, PowerPoint, or Text) from a template in the specified folder.
27
+
28
+ ### Example
29
+
30
+ ```typescript
31
+ import {
32
+ DocumentControllerApi,
33
+ Configuration,
34
+ CreateBlankDocumentRequest
35
+ } from '@openfilz-sdk/typescript';
36
+
37
+ const configuration = new Configuration();
38
+ const apiInstance = new DocumentControllerApi(configuration);
39
+
40
+ let createBlankDocumentRequest: CreateBlankDocumentRequest; //
41
+
42
+ const { status, data } = await apiInstance.createBlankDocument(
43
+ createBlankDocumentRequest
44
+ );
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ |Name | Type | Description | Notes|
50
+ |------------- | ------------- | ------------- | -------------|
51
+ | **createBlankDocumentRequest** | **CreateBlankDocumentRequest**| | |
52
+
53
+
54
+ ### Return type
55
+
56
+ **UploadResponse**
57
+
58
+ ### Authorization
59
+
60
+ [keycloak_auth](../README.md#keycloak_auth)
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json
65
+ - **Accept**: */*
66
+
67
+
68
+ ### HTTP response details
69
+ | Status code | Description | Response headers |
70
+ |-------------|-------------|------------------|
71
+ |**200** | OK | - |
72
+
73
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
74
+
75
+ # **deleteDocumentMetadata**
76
+ > deleteDocumentMetadata(deleteMetadataRequest)
77
+
78
+ Deletes specified metadata keys from a document.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ DocumentControllerApi,
85
+ Configuration,
86
+ DeleteMetadataRequest
87
+ } from '@openfilz-sdk/typescript';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new DocumentControllerApi(configuration);
91
+
92
+ let documentId: string; // (default to undefined)
93
+ let deleteMetadataRequest: DeleteMetadataRequest; //
94
+
95
+ const { status, data } = await apiInstance.deleteDocumentMetadata(
96
+ documentId,
97
+ deleteMetadataRequest
98
+ );
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ |Name | Type | Description | Notes|
104
+ |------------- | ------------- | ------------- | -------------|
105
+ | **deleteMetadataRequest** | **DeleteMetadataRequest**| | |
106
+ | **documentId** | [**string**] | | defaults to undefined|
107
+
108
+
109
+ ### Return type
110
+
111
+ void (empty response body)
112
+
113
+ ### Authorization
114
+
115
+ [keycloak_auth](../README.md#keycloak_auth)
116
+
117
+ ### HTTP request headers
118
+
119
+ - **Content-Type**: application/json
120
+ - **Accept**: Not defined
121
+
122
+
123
+ ### HTTP response details
124
+ | Status code | Description | Response headers |
125
+ |-------------|-------------|------------------|
126
+ |**200** | OK | - |
127
+
128
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
129
+
130
+ # **downloadDocument**
131
+ > File downloadDocument()
132
+
133
+ Downloads a single file document.
134
+
135
+ ### Example
136
+
137
+ ```typescript
138
+ import {
139
+ DocumentControllerApi,
140
+ Configuration
141
+ } from '@openfilz-sdk/typescript';
142
+
143
+ const configuration = new Configuration();
144
+ const apiInstance = new DocumentControllerApi(configuration);
145
+
146
+ let documentId: string; // (default to undefined)
147
+
148
+ const { status, data } = await apiInstance.downloadDocument(
149
+ documentId
150
+ );
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ |Name | Type | Description | Notes|
156
+ |------------- | ------------- | ------------- | -------------|
157
+ | **documentId** | [**string**] | | defaults to undefined|
158
+
159
+
160
+ ### Return type
161
+
162
+ **File**
163
+
164
+ ### Authorization
165
+
166
+ [keycloak_auth](../README.md#keycloak_auth)
167
+
168
+ ### HTTP request headers
169
+
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: */*
172
+
173
+
174
+ ### HTTP response details
175
+ | Status code | Description | Response headers |
176
+ |-------------|-------------|------------------|
177
+ |**200** | OK | - |
178
+
179
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
180
+
181
+ # **downloadForOnlyOffice**
182
+ > File downloadForOnlyOffice()
183
+
184
+ Internal endpoint for OnlyOffice DocumentServer to fetch document content. Uses token-based authentication.
185
+
186
+ ### Example
187
+
188
+ ```typescript
189
+ import {
190
+ DocumentControllerApi,
191
+ Configuration
192
+ } from '@openfilz-sdk/typescript';
193
+
194
+ const configuration = new Configuration();
195
+ const apiInstance = new DocumentControllerApi(configuration);
196
+
197
+ let documentId: string; // (default to undefined)
198
+ let token: string; // (default to undefined)
199
+
200
+ const { status, data } = await apiInstance.downloadForOnlyOffice(
201
+ documentId,
202
+ token
203
+ );
204
+ ```
205
+
206
+ ### Parameters
207
+
208
+ |Name | Type | Description | Notes|
209
+ |------------- | ------------- | ------------- | -------------|
210
+ | **documentId** | [**string**] | | defaults to undefined|
211
+ | **token** | [**string**] | | defaults to undefined|
212
+
213
+
214
+ ### Return type
215
+
216
+ **File**
217
+
218
+ ### Authorization
219
+
220
+ [keycloak_auth](../README.md#keycloak_auth)
221
+
222
+ ### HTTP request headers
223
+
224
+ - **Content-Type**: Not defined
225
+ - **Accept**: */*
226
+
227
+
228
+ ### HTTP response details
229
+ | Status code | Description | Response headers |
230
+ |-------------|-------------|------------------|
231
+ |**200** | OK | - |
232
+
233
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
234
+
235
+ # **downloadMultipleDocumentsAsZip**
236
+ > File downloadMultipleDocumentsAsZip(requestBody)
237
+
238
+ Downloads multiple documents as a single ZIP file.
239
+
240
+ ### Example
241
+
242
+ ```typescript
243
+ import {
244
+ DocumentControllerApi,
245
+ Configuration
246
+ } from '@openfilz-sdk/typescript';
247
+
248
+ const configuration = new Configuration();
249
+ const apiInstance = new DocumentControllerApi(configuration);
250
+
251
+ let requestBody: Array<string>; //
252
+
253
+ const { status, data } = await apiInstance.downloadMultipleDocumentsAsZip(
254
+ requestBody
255
+ );
256
+ ```
257
+
258
+ ### Parameters
259
+
260
+ |Name | Type | Description | Notes|
261
+ |------------- | ------------- | ------------- | -------------|
262
+ | **requestBody** | **Array<string>**| | |
263
+
264
+
265
+ ### Return type
266
+
267
+ **File**
268
+
269
+ ### Authorization
270
+
271
+ [keycloak_auth](../README.md#keycloak_auth)
272
+
273
+ ### HTTP request headers
274
+
275
+ - **Content-Type**: application/json
276
+ - **Accept**: */*
277
+
278
+
279
+ ### HTTP response details
280
+ | Status code | Description | Response headers |
281
+ |-------------|-------------|------------------|
282
+ |**200** | OK | - |
283
+
284
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
285
+
286
+ # **getDocumentAncestors**
287
+ > Array<AncestorInfo> getDocumentAncestors()
288
+
289
+ Retrieves all ancestor folders (parent path) of a document, ordered from root to immediate parent.
290
+
291
+ ### Example
292
+
293
+ ```typescript
294
+ import {
295
+ DocumentControllerApi,
296
+ Configuration
297
+ } from '@openfilz-sdk/typescript';
298
+
299
+ const configuration = new Configuration();
300
+ const apiInstance = new DocumentControllerApi(configuration);
301
+
302
+ let documentId: string; // (default to undefined)
303
+
304
+ const { status, data } = await apiInstance.getDocumentAncestors(
305
+ documentId
306
+ );
307
+ ```
308
+
309
+ ### Parameters
310
+
311
+ |Name | Type | Description | Notes|
312
+ |------------- | ------------- | ------------- | -------------|
313
+ | **documentId** | [**string**] | | defaults to undefined|
314
+
315
+
316
+ ### Return type
317
+
318
+ **Array<AncestorInfo>**
319
+
320
+ ### Authorization
321
+
322
+ [keycloak_auth](../README.md#keycloak_auth)
323
+
324
+ ### HTTP request headers
325
+
326
+ - **Content-Type**: Not defined
327
+ - **Accept**: */*
328
+
329
+
330
+ ### HTTP response details
331
+ | Status code | Description | Response headers |
332
+ |-------------|-------------|------------------|
333
+ |**200** | OK | - |
334
+
335
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
336
+
337
+ # **getDocumentInfo**
338
+ > DocumentInfo getDocumentInfo()
339
+
340
+ Retrieves information for a document.
341
+
342
+ ### Example
343
+
344
+ ```typescript
345
+ import {
346
+ DocumentControllerApi,
347
+ Configuration
348
+ } from '@openfilz-sdk/typescript';
349
+
350
+ const configuration = new Configuration();
351
+ const apiInstance = new DocumentControllerApi(configuration);
352
+
353
+ let documentId: string; // (default to undefined)
354
+ let withMetadata: boolean; //if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response (optional) (default to undefined)
355
+
356
+ const { status, data } = await apiInstance.getDocumentInfo(
357
+ documentId,
358
+ withMetadata
359
+ );
360
+ ```
361
+
362
+ ### Parameters
363
+
364
+ |Name | Type | Description | Notes|
365
+ |------------- | ------------- | ------------- | -------------|
366
+ | **documentId** | [**string**] | | defaults to undefined|
367
+ | **withMetadata** | [**boolean**] | if false : only name, type and parentId are sent (when not null) - if true : metadata and size are added in the response | (optional) defaults to undefined|
368
+
369
+
370
+ ### Return type
371
+
372
+ **DocumentInfo**
373
+
374
+ ### Authorization
375
+
376
+ [keycloak_auth](../README.md#keycloak_auth)
377
+
378
+ ### HTTP request headers
379
+
380
+ - **Content-Type**: Not defined
381
+ - **Accept**: */*
382
+
383
+
384
+ ### HTTP response details
385
+ | Status code | Description | Response headers |
386
+ |-------------|-------------|------------------|
387
+ |**200** | OK | - |
388
+
389
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
390
+
391
+ # **getDocumentMetadata**
392
+ > { [key: string]: any; } getDocumentMetadata()
393
+
394
+ Retrieves metadata for a document. Can filter by keys.
395
+
396
+ ### Example
397
+
398
+ ```typescript
399
+ import {
400
+ DocumentControllerApi,
401
+ Configuration,
402
+ SearchMetadataRequest
403
+ } from '@openfilz-sdk/typescript';
404
+
405
+ const configuration = new Configuration();
406
+ const apiInstance = new DocumentControllerApi(configuration);
407
+
408
+ let documentId: string; // (default to undefined)
409
+ let searchMetadataRequest: SearchMetadataRequest; // (optional)
410
+
411
+ const { status, data } = await apiInstance.getDocumentMetadata(
412
+ documentId,
413
+ searchMetadataRequest
414
+ );
415
+ ```
416
+
417
+ ### Parameters
418
+
419
+ |Name | Type | Description | Notes|
420
+ |------------- | ------------- | ------------- | -------------|
421
+ | **searchMetadataRequest** | **SearchMetadataRequest**| | |
422
+ | **documentId** | [**string**] | | defaults to undefined|
423
+
424
+
425
+ ### Return type
426
+
427
+ **{ [key: string]: any; }**
428
+
429
+ ### Authorization
430
+
431
+ [keycloak_auth](../README.md#keycloak_auth)
432
+
433
+ ### HTTP request headers
434
+
435
+ - **Content-Type**: application/json
436
+ - **Accept**: */*
437
+
438
+
439
+ ### HTTP response details
440
+ | Status code | Description | Response headers |
441
+ |-------------|-------------|------------------|
442
+ |**200** | OK | - |
443
+
444
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
445
+
446
+ # **getDocumentPosition**
447
+ > DocumentPosition getDocumentPosition()
448
+
449
+ Retrieves the position of a document within its parent folder, useful for pagination.
450
+
451
+ ### Example
452
+
453
+ ```typescript
454
+ import {
455
+ DocumentControllerApi,
456
+ Configuration
457
+ } from '@openfilz-sdk/typescript';
458
+
459
+ const configuration = new Configuration();
460
+ const apiInstance = new DocumentControllerApi(configuration);
461
+
462
+ let documentId: string; // (default to undefined)
463
+ let sortBy: string; //Field to sort by (name, updated_at, created_at, size, type). Defaults to \'name\'. (optional) (default to 'name')
464
+ let sortOrder: string; //Sort order (ASC or DESC). Defaults to \'ASC\'. (optional) (default to 'ASC')
465
+
466
+ const { status, data } = await apiInstance.getDocumentPosition(
467
+ documentId,
468
+ sortBy,
469
+ sortOrder
470
+ );
471
+ ```
472
+
473
+ ### Parameters
474
+
475
+ |Name | Type | Description | Notes|
476
+ |------------- | ------------- | ------------- | -------------|
477
+ | **documentId** | [**string**] | | defaults to undefined|
478
+ | **sortBy** | [**string**] | Field to sort by (name, updated_at, created_at, size, type). Defaults to \&#39;name\&#39;. | (optional) defaults to 'name'|
479
+ | **sortOrder** | [**string**] | Sort order (ASC or DESC). Defaults to \&#39;ASC\&#39;. | (optional) defaults to 'ASC'|
480
+
481
+
482
+ ### Return type
483
+
484
+ **DocumentPosition**
485
+
486
+ ### Authorization
487
+
488
+ [keycloak_auth](../README.md#keycloak_auth)
489
+
490
+ ### HTTP request headers
491
+
492
+ - **Content-Type**: Not defined
493
+ - **Accept**: */*
494
+
495
+
496
+ ### HTTP response details
497
+ | Status code | Description | Response headers |
498
+ |-------------|-------------|------------------|
499
+ |**200** | OK | - |
500
+
501
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
502
+
503
+ # **replaceDocumentContent**
504
+ > ElementInfo replaceDocumentContent()
505
+
506
+ Replaces the content of an existing file document.
507
+
508
+ ### Example
509
+
510
+ ```typescript
511
+ import {
512
+ DocumentControllerApi,
513
+ Configuration
514
+ } from '@openfilz-sdk/typescript';
515
+
516
+ const configuration = new Configuration();
517
+ const apiInstance = new DocumentControllerApi(configuration);
518
+
519
+ let documentId: string; // (default to undefined)
520
+ let file: File; // (default to undefined)
521
+
522
+ const { status, data } = await apiInstance.replaceDocumentContent(
523
+ documentId,
524
+ file
525
+ );
526
+ ```
527
+
528
+ ### Parameters
529
+
530
+ |Name | Type | Description | Notes|
531
+ |------------- | ------------- | ------------- | -------------|
532
+ | **documentId** | [**string**] | | defaults to undefined|
533
+ | **file** | [**File**] | | defaults to undefined|
534
+
535
+
536
+ ### Return type
537
+
538
+ **ElementInfo**
539
+
540
+ ### Authorization
541
+
542
+ [keycloak_auth](../README.md#keycloak_auth)
543
+
544
+ ### HTTP request headers
545
+
546
+ - **Content-Type**: multipart/form-data
547
+ - **Accept**: */*
548
+
549
+
550
+ ### HTTP response details
551
+ | Status code | Description | Response headers |
552
+ |-------------|-------------|------------------|
553
+ |**200** | OK | - |
554
+
555
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
556
+
557
+ # **replaceDocumentMetadata**
558
+ > ElementInfo replaceDocumentMetadata(requestBody)
559
+
560
+ Replaces all metadata of a document (file or folder).
561
+
562
+ ### Example
563
+
564
+ ```typescript
565
+ import {
566
+ DocumentControllerApi,
567
+ Configuration
568
+ } from '@openfilz-sdk/typescript';
569
+
570
+ const configuration = new Configuration();
571
+ const apiInstance = new DocumentControllerApi(configuration);
572
+
573
+ let documentId: string; // (default to undefined)
574
+ let requestBody: { [key: string]: any; }; //New metadata map. Replaces all existing metadata.
575
+
576
+ const { status, data } = await apiInstance.replaceDocumentMetadata(
577
+ documentId,
578
+ requestBody
579
+ );
580
+ ```
581
+
582
+ ### Parameters
583
+
584
+ |Name | Type | Description | Notes|
585
+ |------------- | ------------- | ------------- | -------------|
586
+ | **requestBody** | **{ [key: string]: any; }**| New metadata map. Replaces all existing metadata. | |
587
+ | **documentId** | [**string**] | | defaults to undefined|
588
+
589
+
590
+ ### Return type
591
+
592
+ **ElementInfo**
593
+
594
+ ### Authorization
595
+
596
+ [keycloak_auth](../README.md#keycloak_auth)
597
+
598
+ ### HTTP request headers
599
+
600
+ - **Content-Type**: application/json
601
+ - **Accept**: */*
602
+
603
+
604
+ ### HTTP response details
605
+ | Status code | Description | Response headers |
606
+ |-------------|-------------|------------------|
607
+ |**200** | OK | - |
608
+
609
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
610
+
611
+ # **searchDocumentIdsByMetadata**
612
+ > Array<string> searchDocumentIdsByMetadata(searchByMetadataRequest)
613
+
614
+ Finds document IDs matching all provided metadata criteria.
615
+
616
+ ### Example
617
+
618
+ ```typescript
619
+ import {
620
+ DocumentControllerApi,
621
+ Configuration,
622
+ SearchByMetadataRequest
623
+ } from '@openfilz-sdk/typescript';
624
+
625
+ const configuration = new Configuration();
626
+ const apiInstance = new DocumentControllerApi(configuration);
627
+
628
+ let searchByMetadataRequest: SearchByMetadataRequest; //
629
+
630
+ const { status, data } = await apiInstance.searchDocumentIdsByMetadata(
631
+ searchByMetadataRequest
632
+ );
633
+ ```
634
+
635
+ ### Parameters
636
+
637
+ |Name | Type | Description | Notes|
638
+ |------------- | ------------- | ------------- | -------------|
639
+ | **searchByMetadataRequest** | **SearchByMetadataRequest**| | |
640
+
641
+
642
+ ### Return type
643
+
644
+ **Array<string>**
645
+
646
+ ### Authorization
647
+
648
+ [keycloak_auth](../README.md#keycloak_auth)
649
+
650
+ ### HTTP request headers
651
+
652
+ - **Content-Type**: application/json
653
+ - **Accept**: */*
654
+
655
+
656
+ ### HTTP response details
657
+ | Status code | Description | Response headers |
658
+ |-------------|-------------|------------------|
659
+ |**200** | OK | - |
660
+
661
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
662
+
663
+ # **updateDocumentMetadata**
664
+ > ElementInfo updateDocumentMetadata(updateMetadataRequest)
665
+
666
+ Updates or adds specific metadata fields for a document.
667
+
668
+ ### Example
669
+
670
+ ```typescript
671
+ import {
672
+ DocumentControllerApi,
673
+ Configuration,
674
+ UpdateMetadataRequest
675
+ } from '@openfilz-sdk/typescript';
676
+
677
+ const configuration = new Configuration();
678
+ const apiInstance = new DocumentControllerApi(configuration);
679
+
680
+ let documentId: string; // (default to undefined)
681
+ let updateMetadataRequest: UpdateMetadataRequest; //
682
+
683
+ const { status, data } = await apiInstance.updateDocumentMetadata(
684
+ documentId,
685
+ updateMetadataRequest
686
+ );
687
+ ```
688
+
689
+ ### Parameters
690
+
691
+ |Name | Type | Description | Notes|
692
+ |------------- | ------------- | ------------- | -------------|
693
+ | **updateMetadataRequest** | **UpdateMetadataRequest**| | |
694
+ | **documentId** | [**string**] | | defaults to undefined|
695
+
696
+
697
+ ### Return type
698
+
699
+ **ElementInfo**
700
+
701
+ ### Authorization
702
+
703
+ [keycloak_auth](../README.md#keycloak_auth)
704
+
705
+ ### HTTP request headers
706
+
707
+ - **Content-Type**: application/json
708
+ - **Accept**: */*
709
+
710
+
711
+ ### HTTP response details
712
+ | Status code | Description | Response headers |
713
+ |-------------|-------------|------------------|
714
+ |**200** | OK | - |
715
+
716
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
717
+
718
+ # **uploadDocument**
719
+ > Array<UploadResponse> uploadDocument()
720
+
721
+ Uploads multiple files, optionally with metadata and a parent folder ID. Returns HTTP 200 if all uploads succeed, HTTP 207 (Multi-Status) if some succeed and some fail, or an appropriate error status (404, 409, 403, 500) if all uploads fail.
722
+
723
+ ### Example
724
+
725
+ ```typescript
726
+ import {
727
+ DocumentControllerApi,
728
+ Configuration
729
+ } from '@openfilz-sdk/typescript';
730
+
731
+ const configuration = new Configuration();
732
+ const apiInstance = new DocumentControllerApi(configuration);
733
+
734
+ let file: Array<File>; // (default to undefined)
735
+ let allowDuplicateFileNames: boolean; //when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) (optional) (default to false)
736
+ let parametersByFilename: string; //Paste the JSON array here<br>This array provides optional metadata and attributes for the uploaded files<br><section> <h3>Each object in the array must contain:</h3> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>filename</code></td> <td><code>String</code></td> <td>Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.</td> </tr> <tr> <td><code>fileAttributes</code></td> <td><code>JSON Object</code></td> <td>Container for metadata and other file-specific attributes.</td> </tr> </tbody> </table> <h4>Inside <code>fileAttributes</code>:</h4> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>parentFolderId</code></td> <td><code>UUID</code></td> <td>UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)</td> </tr> <tr> <td><code>metadata</code></td> <td><code>Map&lt;String, JSON Object&gt;</code></td> <td>Arbitrary metadata to associate with the file (key/value pairs).</td> </tr> </tbody> </table> <h4>Example of <code>parametersByFilename</code> JSON array :</h4> <pre><code>[ { \\\"filename\\\": \\\"file1.txt\\\", \\\"fileAttributes\\\": { \\\"parentFolderId\\\": \\\"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\", \\\"metadata\\\": { \\\"country\\\": \\\"UK\\\", \\\"owner\\\": { \\\"name\\\": \\\"Joe\\\", \\\"owner_id\\\": 1234568 } } } }, { \\\"filename\\\": \\\"file2.md\\\", \\\"fileAttributes\\\": { \\\"metadata\\\": { \\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\", \\\"key3\\\": \\\"value3\\\" } } } ]</code></pre> </section> (optional) (default to undefined)
737
+
738
+ const { status, data } = await apiInstance.uploadDocument(
739
+ file,
740
+ allowDuplicateFileNames,
741
+ parametersByFilename
742
+ );
743
+ ```
744
+
745
+ ### Parameters
746
+
747
+ |Name | Type | Description | Notes|
748
+ |------------- | ------------- | ------------- | -------------|
749
+ | **file** | **Array&lt;File&gt;** | | defaults to undefined|
750
+ | **allowDuplicateFileNames** | [**boolean**] | when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) | (optional) defaults to false|
751
+ | **parametersByFilename** | [**string**] | Paste the JSON array here&lt;br&gt;This array provides optional metadata and attributes for the uploaded files&lt;br&gt;&lt;section&gt; &lt;h3&gt;Each object in the array must contain:&lt;/h3&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;filename&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;String&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;fileAttributes&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;JSON Object&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Container for metadata and other file-specific attributes.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Inside &lt;code&gt;fileAttributes&lt;/code&gt;:&lt;/h4&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Field&lt;/th&gt; &lt;th&gt;Type&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;parentFolderId&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;UUID&lt;/code&gt;&lt;/td&gt; &lt;td&gt;UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt; &lt;td&gt;&lt;code&gt;Map&amp;lt;String, JSON Object&amp;gt;&lt;/code&gt;&lt;/td&gt; &lt;td&gt;Arbitrary metadata to associate with the file (key/value pairs).&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h4&gt;Example of &lt;code&gt;parametersByFilename&lt;/code&gt; JSON array :&lt;/h4&gt; &lt;pre&gt;&lt;code&gt;[ { \\\&quot;filename\\\&quot;: \\\&quot;file1.txt\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;parentFolderId\\\&quot;: \\\&quot;f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\&quot;, \\\&quot;metadata\\\&quot;: { \\\&quot;country\\\&quot;: \\\&quot;UK\\\&quot;, \\\&quot;owner\\\&quot;: { \\\&quot;name\\\&quot;: \\\&quot;Joe\\\&quot;, \\\&quot;owner_id\\\&quot;: 1234568 } } } }, { \\\&quot;filename\\\&quot;: \\\&quot;file2.md\\\&quot;, \\\&quot;fileAttributes\\\&quot;: { \\\&quot;metadata\\\&quot;: { \\\&quot;key1\\\&quot;: \\\&quot;value1\\\&quot;, \\\&quot;key2\\\&quot;: \\\&quot;value2\\\&quot;, \\\&quot;key3\\\&quot;: \\\&quot;value3\\\&quot; } } } ]&lt;/code&gt;&lt;/pre&gt; &lt;/section&gt; | (optional) defaults to undefined|
752
+
753
+
754
+ ### Return type
755
+
756
+ **Array<UploadResponse>**
757
+
758
+ ### Authorization
759
+
760
+ [keycloak_auth](../README.md#keycloak_auth)
761
+
762
+ ### HTTP request headers
763
+
764
+ - **Content-Type**: multipart/form-data
765
+ - **Accept**: */*
766
+
767
+
768
+ ### HTTP response details
769
+ | Status code | Description | Response headers |
770
+ |-------------|-------------|------------------|
771
+ |**200** | OK | - |
772
+
773
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
774
+
775
+ # **uploadDocument1**
776
+ > UploadResponse uploadDocument1()
777
+
778
+ Uploads a single file, optionally with metadata and a parent folder ID.
779
+
780
+ ### Example
781
+
782
+ ```typescript
783
+ import {
784
+ DocumentControllerApi,
785
+ Configuration
786
+ } from '@openfilz-sdk/typescript';
787
+
788
+ const configuration = new Configuration();
789
+ const apiInstance = new DocumentControllerApi(configuration);
790
+
791
+ let file: File; // (default to undefined)
792
+ let allowDuplicateFileNames: boolean; //when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) (optional) (default to false)
793
+ let parentFolderId: string; //Target parent folder ID to store the file; if not sent or null, the file is stored at the root level (optional) (default to undefined)
794
+ let metadata: string; // (optional) (default to undefined)
795
+
796
+ const { status, data } = await apiInstance.uploadDocument1(
797
+ file,
798
+ allowDuplicateFileNames,
799
+ parentFolderId,
800
+ metadata
801
+ );
802
+ ```
803
+
804
+ ### Parameters
805
+
806
+ |Name | Type | Description | Notes|
807
+ |------------- | ------------- | ------------- | -------------|
808
+ | **file** | [**File**] | | defaults to undefined|
809
+ | **allowDuplicateFileNames** | [**boolean**] | when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) | (optional) defaults to false|
810
+ | **parentFolderId** | [**string**] | Target parent folder ID to store the file; if not sent or null, the file is stored at the root level | (optional) defaults to undefined|
811
+ | **metadata** | [**string**] | | (optional) defaults to undefined|
812
+
813
+
814
+ ### Return type
815
+
816
+ **UploadResponse**
817
+
818
+ ### Authorization
819
+
820
+ [keycloak_auth](../README.md#keycloak_auth)
821
+
822
+ ### HTTP request headers
823
+
824
+ - **Content-Type**: multipart/form-data
825
+ - **Accept**: */*
826
+
827
+
828
+ ### HTTP response details
829
+ | Status code | Description | Response headers |
830
+ |-------------|-------------|------------------|
831
+ |**200** | OK | - |
832
+
833
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
834
+