@openfilz-sdk/typescript-ee 1.10.4 → 1.10.6

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 (109) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +20 -2
  4. package/api/desktop-sync-administration-api.ts +186 -0
  5. package/api/desktop-sync-api.ts +617 -0
  6. package/api/document-controller-api.ts +8 -8
  7. package/api/file-controller-api.ts +82 -0
  8. package/api.ts +2 -0
  9. package/dist/api/desktop-sync-administration-api.d.ts +91 -0
  10. package/dist/api/desktop-sync-administration-api.js +187 -0
  11. package/dist/api/desktop-sync-api.d.ts +282 -0
  12. package/dist/api/desktop-sync-api.js +590 -0
  13. package/dist/api/document-controller-api.d.ts +8 -8
  14. package/dist/api/document-controller-api.js +8 -8
  15. package/dist/api/file-controller-api.d.ts +38 -0
  16. package/dist/api/file-controller-api.js +75 -0
  17. package/dist/api.d.ts +2 -0
  18. package/dist/api.js +2 -0
  19. package/dist/esm/api/desktop-sync-administration-api.d.ts +91 -0
  20. package/dist/esm/api/desktop-sync-administration-api.js +180 -0
  21. package/dist/esm/api/desktop-sync-api.d.ts +282 -0
  22. package/dist/esm/api/desktop-sync-api.js +583 -0
  23. package/dist/esm/api/document-controller-api.d.ts +8 -8
  24. package/dist/esm/api/document-controller-api.js +8 -8
  25. package/dist/esm/api/file-controller-api.d.ts +38 -0
  26. package/dist/esm/api/file-controller-api.js +75 -0
  27. package/dist/esm/api.d.ts +2 -0
  28. package/dist/esm/api.js +2 -0
  29. package/dist/esm/models/copy-request.d.ts +1 -1
  30. package/dist/esm/models/desktop-sync-client-info.d.ts +20 -0
  31. package/dist/esm/models/desktop-sync-client-info.js +14 -0
  32. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  33. package/dist/esm/models/enriched-audit-log.js +1 -0
  34. package/dist/esm/models/index.d.ts +8 -0
  35. package/dist/esm/models/index.js +8 -0
  36. package/dist/esm/models/move-request.d.ts +1 -1
  37. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  38. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  39. package/dist/esm/models/settings.d.ts +3 -0
  40. package/dist/esm/models/sync-backfill-status.d.ts +21 -0
  41. package/dist/esm/models/sync-backfill-status.js +14 -0
  42. package/dist/esm/models/sync-changes-response.d.ts +17 -0
  43. package/dist/esm/models/sync-changes-response.js +14 -0
  44. package/dist/esm/models/sync-item.d.ts +29 -0
  45. package/dist/esm/models/sync-item.js +17 -0
  46. package/dist/esm/models/sync-snapshot-response.d.ts +17 -0
  47. package/dist/esm/models/sync-snapshot-response.js +14 -0
  48. package/dist/esm/models/unzip-request.d.ts +29 -0
  49. package/dist/esm/models/unzip-request.js +14 -0
  50. package/dist/esm/models/unzip-response.d.ts +34 -0
  51. package/dist/esm/models/unzip-response.js +14 -0
  52. package/dist/esm/models/unzip-skipped-entry.d.ts +34 -0
  53. package/dist/esm/models/unzip-skipped-entry.js +21 -0
  54. package/dist/models/copy-request.d.ts +1 -1
  55. package/dist/models/desktop-sync-client-info.d.ts +20 -0
  56. package/dist/models/desktop-sync-client-info.js +15 -0
  57. package/dist/models/enriched-audit-log.d.ts +1 -0
  58. package/dist/models/enriched-audit-log.js +1 -0
  59. package/dist/models/index.d.ts +8 -0
  60. package/dist/models/index.js +8 -0
  61. package/dist/models/move-request.d.ts +1 -1
  62. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  63. package/dist/models/search-by-audit-log-request.js +1 -0
  64. package/dist/models/settings.d.ts +3 -0
  65. package/dist/models/sync-backfill-status.d.ts +21 -0
  66. package/dist/models/sync-backfill-status.js +15 -0
  67. package/dist/models/sync-changes-response.d.ts +17 -0
  68. package/dist/models/sync-changes-response.js +15 -0
  69. package/dist/models/sync-item.d.ts +29 -0
  70. package/dist/models/sync-item.js +20 -0
  71. package/dist/models/sync-snapshot-response.d.ts +17 -0
  72. package/dist/models/sync-snapshot-response.js +15 -0
  73. package/dist/models/unzip-request.d.ts +29 -0
  74. package/dist/models/unzip-request.js +15 -0
  75. package/dist/models/unzip-response.d.ts +34 -0
  76. package/dist/models/unzip-response.js +15 -0
  77. package/dist/models/unzip-skipped-entry.d.ts +34 -0
  78. package/dist/models/unzip-skipped-entry.js +24 -0
  79. package/docs/CopyRequest.md +1 -1
  80. package/docs/DesktopSyncAdministrationApi.md +96 -0
  81. package/docs/DesktopSyncApi.md +376 -0
  82. package/docs/DesktopSyncClientInfo.md +32 -0
  83. package/docs/DocumentControllerApi.md +4 -4
  84. package/docs/FileControllerApi.md +56 -0
  85. package/docs/MoveRequest.md +1 -1
  86. package/docs/Settings.md +2 -0
  87. package/docs/SyncBackfillStatus.md +34 -0
  88. package/docs/SyncChangesResponse.md +24 -0
  89. package/docs/SyncItem.md +40 -0
  90. package/docs/SyncSnapshotResponse.md +24 -0
  91. package/docs/UnzipRequest.md +26 -0
  92. package/docs/UnzipResponse.md +28 -0
  93. package/docs/UnzipSkippedEntry.md +24 -0
  94. package/graphql/document.graphqls +6 -0
  95. package/models/copy-request.ts +1 -1
  96. package/models/desktop-sync-client-info.ts +26 -0
  97. package/models/enriched-audit-log.ts +1 -0
  98. package/models/index.ts +8 -0
  99. package/models/move-request.ts +1 -1
  100. package/models/search-by-audit-log-request.ts +1 -0
  101. package/models/settings.ts +1 -0
  102. package/models/sync-backfill-status.ts +27 -0
  103. package/models/sync-changes-response.ts +25 -0
  104. package/models/sync-item.ts +38 -0
  105. package/models/sync-snapshot-response.ts +25 -0
  106. package/models/unzip-request.ts +35 -0
  107. package/models/unzip-response.ts +42 -0
  108. package/models/unzip-skipped-entry.ts +43 -0
  109. package/package.json +1 -1
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:8081*
8
8
  |[**deleteFiles**](#deletefiles) | **DELETE** /api/v1/files | Delete files|
9
9
  |[**moveFiles**](#movefiles) | **POST** /api/v1/files/move | Move files|
10
10
  |[**renameFile**](#renamefile) | **PUT** /api/v1/files/{fileId}/rename | Rename a file|
11
+ |[**unzipFile**](#unzipfile) | **POST** /api/v1/files/{fileId}/unzip | Extract a ZIP file|
11
12
 
12
13
  # **copyFiles**
13
14
  > Array<CopyResponse> copyFiles(copyRequest)
@@ -220,3 +221,58 @@ const { status, data } = await apiInstance.renameFile(
220
221
 
221
222
  [[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)
222
223
 
224
+ # **unzipFile**
225
+ > UnzipResponse unzipFile()
226
+
227
+ Extracts a ZIP document server-side, recreating its folder tree. Destination: the root when targetRoot is true, else targetFolderId, else the folder containing the ZIP; with newFolderName, a new folder of that name is created there first. Folders that already exist are merged; files whose name already exists are skipped (unless allowDuplicateFileNames) and listed in the response, like any entry that could not be extracted. Archive-wide limits answer 413 (ZIP_TOO_MANY_ENTRIES, ZIP_TOO_LARGE, ZIP_BOMB); a document that is not a readable ZIP answers 422 (NOT_A_ZIP, ZIP_INVALID).
228
+
229
+ ### Example
230
+
231
+ ```typescript
232
+ import {
233
+ FileControllerApi,
234
+ Configuration,
235
+ UnzipRequest
236
+ } from '@openfilz-sdk/typescript-ee';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new FileControllerApi(configuration);
240
+
241
+ let fileId: string; //Id of the ZIP document (default to undefined)
242
+ let unzipRequest: UnzipRequest; // (optional)
243
+
244
+ const { status, data } = await apiInstance.unzipFile(
245
+ fileId,
246
+ unzipRequest
247
+ );
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+ |Name | Type | Description | Notes|
253
+ |------------- | ------------- | ------------- | -------------|
254
+ | **unzipRequest** | **UnzipRequest**| | |
255
+ | **fileId** | [**string**] | Id of the ZIP document | defaults to undefined|
256
+
257
+
258
+ ### Return type
259
+
260
+ **UnzipResponse**
261
+
262
+ ### Authorization
263
+
264
+ [keycloak_auth](../README.md#keycloak_auth)
265
+
266
+ ### HTTP request headers
267
+
268
+ - **Content-Type**: application/json
269
+ - **Accept**: */*
270
+
271
+
272
+ ### HTTP response details
273
+ | Status code | Description | Response headers |
274
+ |-------------|-------------|------------------|
275
+ |**200** | OK | - |
276
+
277
+ [[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)
278
+
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **documentIds** | **Array&lt;string&gt;** | List of document IDs (files or folders) to move. | [optional] [default to undefined]
9
9
  **targetFolderId** | **string** | ID of the target folder. | [optional] [default to undefined]
10
- **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 undefined]
10
+ **allowDuplicateFileNames** | **boolean** | When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned. | [optional] [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
package/docs/Settings.md CHANGED
@@ -34,6 +34,7 @@ Name | Type | Description | Notes
34
34
  **mcpMode** | **string** | | [optional] [default to undefined]
35
35
  **mcpAuthorizationServerUrl** | **string** | | [optional] [default to undefined]
36
36
  **mcpClientId** | **string** | | [optional] [default to undefined]
37
+ **extensions** | **{ [key: string]: any; }** | | [optional] [default to undefined]
37
38
 
38
39
  ## Example
39
40
 
@@ -70,6 +71,7 @@ const instance: Settings = {
70
71
  mcpMode,
71
72
  mcpAuthorizationServerUrl,
72
73
  mcpClientId,
74
+ extensions,
73
75
  };
74
76
  ```
75
77
 
@@ -0,0 +1,34 @@
1
+ # SyncBackfillStatus
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **status** | **string** | | [optional] [default to undefined]
9
+ **startedAt** | **string** | | [optional] [default to undefined]
10
+ **finishedAt** | **string** | | [optional] [default to undefined]
11
+ **files** | **number** | | [optional] [default to undefined]
12
+ **sizesCorrected** | **number** | | [optional] [default to undefined]
13
+ **hashesAdded** | **number** | | [optional] [default to undefined]
14
+ **failures** | **number** | | [optional] [default to undefined]
15
+ **lastError** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { SyncBackfillStatus } from '@openfilz-sdk/typescript-ee';
21
+
22
+ const instance: SyncBackfillStatus = {
23
+ status,
24
+ startedAt,
25
+ finishedAt,
26
+ files,
27
+ sizesCorrected,
28
+ hashesAdded,
29
+ failures,
30
+ lastError,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # SyncChangesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **cursor** | **number** | | [optional] [default to undefined]
9
+ **hasMore** | **boolean** | | [optional] [default to undefined]
10
+ **items** | [**Array&lt;SyncItem&gt;**](SyncItem.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SyncChangesResponse } from '@openfilz-sdk/typescript-ee';
16
+
17
+ const instance: SyncChangesResponse = {
18
+ cursor,
19
+ hasMore,
20
+ items,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,40 @@
1
+ # SyncItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **gone** | **boolean** | | [optional] [default to undefined]
10
+ **type** | **string** | | [optional] [default to undefined]
11
+ **parentId** | **string** | | [optional] [default to undefined]
12
+ **name** | **string** | | [optional] [default to undefined]
13
+ **size** | **number** | | [optional] [default to undefined]
14
+ **sha256** | **string** | | [optional] [default to undefined]
15
+ **updatedAt** | **string** | | [optional] [default to undefined]
16
+ **shareRoot** | **boolean** | | [optional] [default to undefined]
17
+ **canWrite** | **boolean** | | [optional] [default to undefined]
18
+ **canDelete** | **boolean** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { SyncItem } from '@openfilz-sdk/typescript-ee';
24
+
25
+ const instance: SyncItem = {
26
+ id,
27
+ gone,
28
+ type,
29
+ parentId,
30
+ name,
31
+ size,
32
+ sha256,
33
+ updatedAt,
34
+ shareRoot,
35
+ canWrite,
36
+ canDelete,
37
+ };
38
+ ```
39
+
40
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # SyncSnapshotResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **cursor** | **number** | | [optional] [default to undefined]
9
+ **after** | **string** | | [optional] [default to undefined]
10
+ **items** | [**Array&lt;SyncItem&gt;**](SyncItem.md) | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SyncSnapshotResponse } from '@openfilz-sdk/typescript-ee';
16
+
17
+ const instance: SyncSnapshotResponse = {
18
+ cursor,
19
+ after,
20
+ items,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # UnzipRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **targetFolderId** | **string** | Folder to extract into. Omitted (and targetRoot not set): the folder containing the ZIP. | [optional] [default to undefined]
9
+ **targetRoot** | **boolean** | Extract at the root, whatever targetFolderId says. | [optional] [default to undefined]
10
+ **newFolderName** | **string** | Create a folder of this name in the destination and extract into it. | [optional] [default to undefined]
11
+ **allowDuplicateFileNames** | **boolean** | When true, files are extracted even if a document of the same name already exists in their destination folder. When false (default), such entries are skipped and listed in the response. Existing folders are always merged. | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { UnzipRequest } from '@openfilz-sdk/typescript-ee';
17
+
18
+ const instance: UnzipRequest = {
19
+ targetFolderId,
20
+ targetRoot,
21
+ newFolderName,
22
+ allowDuplicateFileNames,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # UnzipResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **targetFolderId** | **string** | Folder the archive was extracted into (null &#x3D; root). | [optional] [default to undefined]
9
+ **createdFolderId** | **string** | Id of the folder created from newFolderName, if any. | [optional] [default to undefined]
10
+ **foldersCreated** | **number** | Number of folders created. | [optional] [default to undefined]
11
+ **filesExtracted** | **number** | Number of files extracted. | [optional] [default to undefined]
12
+ **skipped** | [**Array&lt;UnzipSkippedEntry&gt;**](UnzipSkippedEntry.md) | Entries that were not extracted, with the reason. | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { UnzipResponse } from '@openfilz-sdk/typescript-ee';
18
+
19
+ const instance: UnzipResponse = {
20
+ targetFolderId,
21
+ createdFolderId,
22
+ foldersCreated,
23
+ filesExtracted,
24
+ skipped,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # UnzipSkippedEntry
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **path** | **string** | Path of the entry inside the archive. | [optional] [default to undefined]
9
+ **reason** | **string** | Why it was skipped. | [optional] [default to undefined]
10
+ **message** | **string** | Details, when available. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UnzipSkippedEntry } from '@openfilz-sdk/typescript-ee';
16
+
17
+ const instance: UnzipSkippedEntry = {
18
+ path,
19
+ reason,
20
+ message,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -13,6 +13,12 @@ type Query {
13
13
  count(request: ListFolderRequest): Long
14
14
  listFavorites(request: FavoriteRequest!): [FolderElementInfo]
15
15
  countFavorites(request: FavoriteRequest): Long
16
+ "Count the documents across all folders (listAllFolder's filters; favorite: true counts the favorites)"
17
+ countAllFolder(request: ListFolderRequest): Long
18
+ "0-based index of a document in the listFolder listing the request describes (same filters and sort, paging ignored); null when the listing does not contain it"
19
+ listFolderPosition(request: ListFolderRequest!, documentId: UUID!): Long
20
+ "0-based index of a document in the listAllFolder listing the request describes (same filters and sort, paging ignored); null when the listing does not contain it"
21
+ listAllFolderPosition(request: ListFolderRequest!, documentId: UUID!): Long
16
22
  }
17
23
 
18
24
  type FolderElementInfo {
@@ -24,7 +24,7 @@ export interface CopyRequest {
24
24
  */
25
25
  'targetFolderId'?: string;
26
26
  /**
27
- * 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)
27
+ * When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned.
28
28
  */
29
29
  'allowDuplicateFileNames'?: boolean;
30
30
  }
@@ -0,0 +1,26 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface DesktopSyncClientInfo {
18
+ 'server'?: string;
19
+ 'issuer'?: string;
20
+ 'clientId'?: string;
21
+ 'updateUrl'?: string;
22
+ 'downloadUrl'?: string;
23
+ 'webUrl'?: string;
24
+ 'apiVersion'?: number;
25
+ }
26
+
@@ -51,6 +51,7 @@ export const EnrichedAuditLogActionEnum = {
51
51
  ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
52
52
  UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
53
53
  DownloadDocument: 'DOWNLOAD_DOCUMENT',
54
+ OpenDocument: 'OPEN_DOCUMENT',
54
55
  DeleteDocumentMetadata: 'DELETE_DOCUMENT_METADATA',
55
56
  RestoreFile: 'RESTORE_FILE',
56
57
  RestoreFolder: 'RESTORE_FOLDER',
package/models/index.ts CHANGED
@@ -58,6 +58,7 @@ export * from './delete-metadata-audit';
58
58
  export * from './delete-metadata-request';
59
59
  export * from './delete-request';
60
60
  export * from './delete-share-request';
61
+ export * from './desktop-sync-client-info';
61
62
  export * from './document-info';
62
63
  export * from './document-insight-view';
63
64
  export * from './document-integrity-record';
@@ -162,6 +163,10 @@ export * from './split-request';
162
163
  export * from './start-workflow-request';
163
164
  export * from './storage-breakdown';
164
165
  export * from './suggest';
166
+ export * from './sync-backfill-status';
167
+ export * from './sync-changes-response';
168
+ export * from './sync-item';
169
+ export * from './sync-snapshot-response';
165
170
  export * from './team-inbox-request';
166
171
  export * from './team-inbox-view';
167
172
  export * from './team-member-info';
@@ -170,6 +175,9 @@ export * from './tus-config-response';
170
175
  export * from './tus-finalize-request';
171
176
  export * from './tus-upload-info';
172
177
  export * from './untouched';
178
+ export * from './unzip-request';
179
+ export * from './unzip-response';
180
+ export * from './unzip-skipped-entry';
173
181
  export * from './update-comment-request';
174
182
  export * from './update-metadata-audit';
175
183
  export * from './update-metadata-request';
@@ -24,7 +24,7 @@ export interface MoveRequest {
24
24
  */
25
25
  'targetFolderId'?: string;
26
26
  /**
27
- * 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)
27
+ * When true, the file is stored even if a document of the same name already exists in the target folder (nothing is overwritten). When false (default), a 409 is returned.
28
28
  */
29
29
  'allowDuplicateFileNames'?: boolean;
30
30
  }
@@ -64,6 +64,7 @@ export const SearchByAuditLogRequestActionEnum = {
64
64
  ReplaceDocumentMetadata: 'REPLACE_DOCUMENT_METADATA',
65
65
  UpdateDocumentMetadata: 'UPDATE_DOCUMENT_METADATA',
66
66
  DownloadDocument: 'DOWNLOAD_DOCUMENT',
67
+ OpenDocument: 'OPEN_DOCUMENT',
67
68
  DeleteDocumentMetadata: 'DELETE_DOCUMENT_METADATA',
68
69
  RestoreFile: 'RESTORE_FILE',
69
70
  RestoreFolder: 'RESTORE_FOLDER',
@@ -44,5 +44,6 @@ export interface Settings {
44
44
  'mcpMode'?: string;
45
45
  'mcpAuthorizationServerUrl'?: string;
46
46
  'mcpClientId'?: string;
47
+ 'extensions'?: { [key: string]: any; };
47
48
  }
48
49
 
@@ -0,0 +1,27 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface SyncBackfillStatus {
18
+ 'status'?: string;
19
+ 'startedAt'?: string;
20
+ 'finishedAt'?: string;
21
+ 'files'?: number;
22
+ 'sizesCorrected'?: number;
23
+ 'hashesAdded'?: number;
24
+ 'failures'?: number;
25
+ 'lastError'?: string;
26
+ }
27
+
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { SyncItem } from './sync-item';
19
+
20
+ export interface SyncChangesResponse {
21
+ 'cursor'?: number;
22
+ 'hasMore'?: boolean;
23
+ 'items'?: Array<SyncItem>;
24
+ }
25
+
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface SyncItem {
18
+ 'id'?: string;
19
+ 'gone'?: boolean;
20
+ 'type'?: SyncItemTypeEnum;
21
+ 'parentId'?: string;
22
+ 'name'?: string;
23
+ 'size'?: number;
24
+ 'sha256'?: string;
25
+ 'updatedAt'?: string;
26
+ 'shareRoot'?: boolean;
27
+ 'canWrite'?: boolean;
28
+ 'canDelete'?: boolean;
29
+ }
30
+
31
+ export const SyncItemTypeEnum = {
32
+ File: 'FILE',
33
+ Folder: 'FOLDER',
34
+ } as const;
35
+
36
+ export type SyncItemTypeEnum = typeof SyncItemTypeEnum[keyof typeof SyncItemTypeEnum];
37
+
38
+
@@ -0,0 +1,25 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { SyncItem } from './sync-item';
19
+
20
+ export interface SyncSnapshotResponse {
21
+ 'cursor'?: number;
22
+ 'after'?: string;
23
+ 'items'?: Array<SyncItem>;
24
+ }
25
+
@@ -0,0 +1,35 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface UnzipRequest {
18
+ /**
19
+ * Folder to extract into. Omitted (and targetRoot not set): the folder containing the ZIP.
20
+ */
21
+ 'targetFolderId'?: string;
22
+ /**
23
+ * Extract at the root, whatever targetFolderId says.
24
+ */
25
+ 'targetRoot'?: boolean;
26
+ /**
27
+ * Create a folder of this name in the destination and extract into it.
28
+ */
29
+ 'newFolderName'?: string;
30
+ /**
31
+ * When true, files are extracted even if a document of the same name already exists in their destination folder. When false (default), such entries are skipped and listed in the response. Existing folders are always merged.
32
+ */
33
+ 'allowDuplicateFileNames'?: boolean;
34
+ }
35
+
@@ -0,0 +1,42 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { UnzipSkippedEntry } from './unzip-skipped-entry';
19
+
20
+ export interface UnzipResponse {
21
+ /**
22
+ * Folder the archive was extracted into (null = root).
23
+ */
24
+ 'targetFolderId'?: string;
25
+ /**
26
+ * Id of the folder created from newFolderName, if any.
27
+ */
28
+ 'createdFolderId'?: string;
29
+ /**
30
+ * Number of folders created.
31
+ */
32
+ 'foldersCreated'?: number;
33
+ /**
34
+ * Number of files extracted.
35
+ */
36
+ 'filesExtracted'?: number;
37
+ /**
38
+ * Entries that were not extracted, with the reason.
39
+ */
40
+ 'skipped'?: Array<UnzipSkippedEntry>;
41
+ }
42
+
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface UnzipSkippedEntry {
18
+ /**
19
+ * Path of the entry inside the archive.
20
+ */
21
+ 'path'?: string;
22
+ /**
23
+ * Why it was skipped.
24
+ */
25
+ 'reason'?: UnzipSkippedEntryReasonEnum;
26
+ /**
27
+ * Details, when available.
28
+ */
29
+ 'message'?: string;
30
+ }
31
+
32
+ export const UnzipSkippedEntryReasonEnum = {
33
+ DuplicateName: 'DUPLICATE_NAME',
34
+ UnsafePath: 'UNSAFE_PATH',
35
+ Unsupported: 'UNSUPPORTED',
36
+ FileTooLarge: 'FILE_TOO_LARGE',
37
+ ParentNotCreated: 'PARENT_NOT_CREATED',
38
+ Error: 'ERROR',
39
+ } as const;
40
+
41
+ export type UnzipSkippedEntryReasonEnum = typeof UnzipSkippedEntryReasonEnum[keyof typeof UnzipSkippedEntryReasonEnum];
42
+
43
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfilz-sdk/typescript-ee",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "description": "OpenAPI client for @openfilz-sdk/typescript-ee",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {