@openfilz-sdk/typescript-ee 1.14.5 → 1.14.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 (45) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +8 -3
  4. package/api/collaboration-controller-api.ts +4 -4
  5. package/api/comments-api.ts +152 -0
  6. package/api/notifications-api.ts +8 -8
  7. package/dist/api/collaboration-controller-api.d.ts +4 -4
  8. package/dist/api/collaboration-controller-api.js +4 -4
  9. package/dist/api/comments-api.d.ts +67 -0
  10. package/dist/api/comments-api.js +140 -0
  11. package/dist/api/notifications-api.d.ts +8 -8
  12. package/dist/api/notifications-api.js +8 -8
  13. package/dist/esm/api/collaboration-controller-api.d.ts +4 -4
  14. package/dist/esm/api/collaboration-controller-api.js +4 -4
  15. package/dist/esm/api/comments-api.d.ts +67 -0
  16. package/dist/esm/api/comments-api.js +140 -0
  17. package/dist/esm/api/notifications-api.d.ts +8 -8
  18. package/dist/esm/api/notifications-api.js +8 -8
  19. package/dist/esm/models/index.d.ts +3 -0
  20. package/dist/esm/models/index.js +3 -0
  21. package/dist/esm/models/mention-access-item.d.ts +29 -0
  22. package/dist/esm/models/mention-access-item.js +21 -0
  23. package/dist/esm/models/mention-access-preview.d.ts +15 -0
  24. package/dist/esm/models/mention-access-preview.js +14 -0
  25. package/dist/esm/models/mention-access-request.d.ts +21 -0
  26. package/dist/esm/models/mention-access-request.js +14 -0
  27. package/dist/models/index.d.ts +3 -0
  28. package/dist/models/index.js +3 -0
  29. package/dist/models/mention-access-item.d.ts +29 -0
  30. package/dist/models/mention-access-item.js +24 -0
  31. package/dist/models/mention-access-preview.d.ts +15 -0
  32. package/dist/models/mention-access-preview.js +15 -0
  33. package/dist/models/mention-access-request.d.ts +21 -0
  34. package/dist/models/mention-access-request.js +15 -0
  35. package/docs/CollaborationControllerApi.md +1 -1
  36. package/docs/CommentsApi.md +106 -0
  37. package/docs/MentionAccessItem.md +32 -0
  38. package/docs/MentionAccessPreview.md +20 -0
  39. package/docs/MentionAccessRequest.md +22 -0
  40. package/docs/NotificationsApi.md +2 -2
  41. package/models/index.ts +3 -0
  42. package/models/mention-access-item.ts +38 -0
  43. package/models/mention-access-preview.ts +23 -0
  44. package/models/mention-access-request.ts +27 -0
  45. package/package.json +1 -1
@@ -32,8 +32,8 @@ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
32
32
  export const NotificationsApiAxiosParamCreator = function (configuration) {
33
33
  return {
34
34
  /**
35
- * Retrieve all notifications for the authenticated user
36
- * @summary Get all notifications
35
+ * The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
36
+ * @summary Get notifications
37
37
  * @param {*} [options] Override http request option.
38
38
  * @throws {RequiredError}
39
39
  */
@@ -187,8 +187,8 @@ export const NotificationsApiFp = function (configuration) {
187
187
  const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator(configuration);
188
188
  return {
189
189
  /**
190
- * Retrieve all notifications for the authenticated user
191
- * @summary Get all notifications
190
+ * The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
191
+ * @summary Get notifications
192
192
  * @param {*} [options] Override http request option.
193
193
  * @throws {RequiredError}
194
194
  */
@@ -271,8 +271,8 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
271
271
  const localVarFp = NotificationsApiFp(configuration);
272
272
  return {
273
273
  /**
274
- * Retrieve all notifications for the authenticated user
275
- * @summary Get all notifications
274
+ * The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
275
+ * @summary Get notifications
276
276
  * @param {*} [options] Override http request option.
277
277
  * @throws {RequiredError}
278
278
  */
@@ -323,8 +323,8 @@ export const NotificationsApiFactory = function (configuration, basePath, axios)
323
323
  */
324
324
  export class NotificationsApi extends BaseAPI {
325
325
  /**
326
- * Retrieve all notifications for the authenticated user
327
- * @summary Get all notifications
326
+ * The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
327
+ * @summary Get notifications
328
328
  * @param {*} [options] Override http request option.
329
329
  * @throws {RequiredError}
330
330
  */
@@ -109,6 +109,9 @@ export * from './list-ai-models-request';
109
109
  export * from './mcp-agent-token-config';
110
110
  export * from './mcp-agent-token-info';
111
111
  export * from './mcp-agent-token-response';
112
+ export * from './mention-access-item';
113
+ export * from './mention-access-preview';
114
+ export * from './mention-access-request';
112
115
  export * from './merge-request';
113
116
  export * from './merge-source';
114
117
  export * from './metadata-key-suggestion';
@@ -109,6 +109,9 @@ export * from './list-ai-models-request';
109
109
  export * from './mcp-agent-token-config';
110
110
  export * from './mcp-agent-token-info';
111
111
  export * from './mcp-agent-token-response';
112
+ export * from './mention-access-item';
113
+ export * from './mention-access-preview';
114
+ export * from './mention-access-request';
112
115
  export * from './merge-request';
113
116
  export * from './merge-source';
114
117
  export * from './metadata-key-suggestion';
@@ -0,0 +1,29 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface MentionAccessItem {
13
+ 'docId'?: string;
14
+ 'docName'?: string;
15
+ 'userId'?: string;
16
+ 'userName'?: string;
17
+ 'userEmail'?: string;
18
+ 'canRead'?: boolean;
19
+ 'action'?: MentionAccessItemActionEnum;
20
+ }
21
+ export declare const MentionAccessItemActionEnum: {
22
+ readonly Share: "SHARE";
23
+ readonly Upgrade: "UPGRADE";
24
+ readonly RequestShare: "REQUEST_SHARE";
25
+ readonly RequestUpgrade: "REQUEST_UPGRADE";
26
+ readonly NotLicensed: "NOT_LICENSED";
27
+ readonly NotAllowed: "NOT_ALLOWED";
28
+ };
29
+ export type MentionAccessItemActionEnum = typeof MentionAccessItemActionEnum[keyof typeof MentionAccessItemActionEnum];
@@ -0,0 +1,21 @@
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
+ export const MentionAccessItemActionEnum = {
15
+ Share: 'SHARE',
16
+ Upgrade: 'UPGRADE',
17
+ RequestShare: 'REQUEST_SHARE',
18
+ RequestUpgrade: 'REQUEST_UPGRADE',
19
+ NotLicensed: 'NOT_LICENSED',
20
+ NotAllowed: 'NOT_ALLOWED',
21
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MentionAccessItem } from './mention-access-item';
13
+ export interface MentionAccessPreview {
14
+ 'items'?: Array<MentionAccessItem>;
15
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface MentionAccessRequest {
13
+ /**
14
+ * Document IDs the comment is saved on (at most 200)
15
+ */
16
+ 'docIds': Set<string>;
17
+ /**
18
+ * User IDs mentioned in the comment (at most 100)
19
+ */
20
+ 'mentionedUserIds': Set<string>;
21
+ }
@@ -0,0 +1,14 @@
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
+ export {};
@@ -109,6 +109,9 @@ export * from './list-ai-models-request';
109
109
  export * from './mcp-agent-token-config';
110
110
  export * from './mcp-agent-token-info';
111
111
  export * from './mcp-agent-token-response';
112
+ export * from './mention-access-item';
113
+ export * from './mention-access-preview';
114
+ export * from './mention-access-request';
112
115
  export * from './merge-request';
113
116
  export * from './merge-source';
114
117
  export * from './metadata-key-suggestion';
@@ -125,6 +125,9 @@ __exportStar(require("./list-ai-models-request"), exports);
125
125
  __exportStar(require("./mcp-agent-token-config"), exports);
126
126
  __exportStar(require("./mcp-agent-token-info"), exports);
127
127
  __exportStar(require("./mcp-agent-token-response"), exports);
128
+ __exportStar(require("./mention-access-item"), exports);
129
+ __exportStar(require("./mention-access-preview"), exports);
130
+ __exportStar(require("./mention-access-request"), exports);
128
131
  __exportStar(require("./merge-request"), exports);
129
132
  __exportStar(require("./merge-source"), exports);
130
133
  __exportStar(require("./metadata-key-suggestion"), exports);
@@ -0,0 +1,29 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface MentionAccessItem {
13
+ 'docId'?: string;
14
+ 'docName'?: string;
15
+ 'userId'?: string;
16
+ 'userName'?: string;
17
+ 'userEmail'?: string;
18
+ 'canRead'?: boolean;
19
+ 'action'?: MentionAccessItemActionEnum;
20
+ }
21
+ export declare const MentionAccessItemActionEnum: {
22
+ readonly Share: "SHARE";
23
+ readonly Upgrade: "UPGRADE";
24
+ readonly RequestShare: "REQUEST_SHARE";
25
+ readonly RequestUpgrade: "REQUEST_UPGRADE";
26
+ readonly NotLicensed: "NOT_LICENSED";
27
+ readonly NotAllowed: "NOT_ALLOWED";
28
+ };
29
+ export type MentionAccessItemActionEnum = typeof MentionAccessItemActionEnum[keyof typeof MentionAccessItemActionEnum];
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MentionAccessItemActionEnum = void 0;
17
+ exports.MentionAccessItemActionEnum = {
18
+ Share: 'SHARE',
19
+ Upgrade: 'UPGRADE',
20
+ RequestShare: 'REQUEST_SHARE',
21
+ RequestUpgrade: 'REQUEST_UPGRADE',
22
+ NotLicensed: 'NOT_LICENSED',
23
+ NotAllowed: 'NOT_ALLOWED',
24
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { MentionAccessItem } from './mention-access-item';
13
+ export interface MentionAccessPreview {
14
+ 'items'?: Array<MentionAccessItem>;
15
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface MentionAccessRequest {
13
+ /**
14
+ * Document IDs the comment is saved on (at most 200)
15
+ */
16
+ 'docIds': Set<string>;
17
+ /**
18
+ * User IDs mentioned in the comment (at most 100)
19
+ */
20
+ 'mentionedUserIds': Set<string>;
21
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * openfilz-api
6
+ * API for Document Management System
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -389,7 +389,7 @@ const { status, data } = await apiInstance.deleteSharedDocuments(
389
389
  # **deleteTeam**
390
390
  > deleteTeam()
391
391
 
392
- Deletes a team. Requires ADMIN_USERS role.
392
+ Deletes a team of any kind; its members are told by a notification. Requires ADMIN_USERS role.
393
393
 
394
394
  ### Example
395
395
 
@@ -6,6 +6,8 @@ All URIs are relative to *http://localhost:8081*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**createComment**](#createcomment) | **POST** /api/v1/documents/comments | Create a comment|
8
8
  |[**deleteComment**](#deletecomment) | **DELETE** /api/v1/documents/comments/{id} | Delete a comment|
9
+ |[**grantMentionAccess**](#grantmentionaccess) | **POST** /api/v1/documents/comments/mention-access/grant | Give mentioned users comment access|
10
+ |[**previewMentionAccess**](#previewmentionaccess) | **POST** /api/v1/documents/comments/mention-access | Preview comment access for mentioned users|
9
11
  |[**updateComment**](#updatecomment) | **PUT** /api/v1/documents/comments/{id} | Update a comment|
10
12
 
11
13
  # **createComment**
@@ -104,6 +106,110 @@ void (empty response body)
104
106
  - **Accept**: Not defined
105
107
 
106
108
 
109
+ ### HTTP response details
110
+ | Status code | Description | Response headers |
111
+ |-------------|-------------|------------------|
112
+ |**200** | OK | - |
113
+
114
+ [[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)
115
+
116
+ # **grantMentionAccess**
117
+ > ShareResultResponse grantMentionAccess(mentionAccessRequest)
118
+
119
+ Does what the preview lists: silent COMMENTER shares on the documents the caller manages, share requests to the owner on the others. Call it before saving the comment so the mentioned users are notified.
120
+
121
+ ### Example
122
+
123
+ ```typescript
124
+ import {
125
+ CommentsApi,
126
+ Configuration,
127
+ MentionAccessRequest
128
+ } from '@openfilz-sdk/typescript-ee';
129
+
130
+ const configuration = new Configuration();
131
+ const apiInstance = new CommentsApi(configuration);
132
+
133
+ let mentionAccessRequest: MentionAccessRequest; //
134
+
135
+ const { status, data } = await apiInstance.grantMentionAccess(
136
+ mentionAccessRequest
137
+ );
138
+ ```
139
+
140
+ ### Parameters
141
+
142
+ |Name | Type | Description | Notes|
143
+ |------------- | ------------- | ------------- | -------------|
144
+ | **mentionAccessRequest** | **MentionAccessRequest**| | |
145
+
146
+
147
+ ### Return type
148
+
149
+ **ShareResultResponse**
150
+
151
+ ### Authorization
152
+
153
+ [keycloak_auth](../README.md#keycloak_auth)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: application/json
158
+ - **Accept**: application/json
159
+
160
+
161
+ ### HTTP response details
162
+ | Status code | Description | Response headers |
163
+ |-------------|-------------|------------------|
164
+ |**200** | OK | - |
165
+
166
+ [[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)
167
+
168
+ # **previewMentionAccess**
169
+ > MentionAccessPreview previewMentionAccess(mentionAccessRequest)
170
+
171
+ Lists the mentioned users who cannot comment on the documents yet and what giving them access takes: a COMMENTER share (or READER → COMMENTER) on a document the caller manages, a share request to the owner on the others. Changes nothing.
172
+
173
+ ### Example
174
+
175
+ ```typescript
176
+ import {
177
+ CommentsApi,
178
+ Configuration,
179
+ MentionAccessRequest
180
+ } from '@openfilz-sdk/typescript-ee';
181
+
182
+ const configuration = new Configuration();
183
+ const apiInstance = new CommentsApi(configuration);
184
+
185
+ let mentionAccessRequest: MentionAccessRequest; //
186
+
187
+ const { status, data } = await apiInstance.previewMentionAccess(
188
+ mentionAccessRequest
189
+ );
190
+ ```
191
+
192
+ ### Parameters
193
+
194
+ |Name | Type | Description | Notes|
195
+ |------------- | ------------- | ------------- | -------------|
196
+ | **mentionAccessRequest** | **MentionAccessRequest**| | |
197
+
198
+
199
+ ### Return type
200
+
201
+ **MentionAccessPreview**
202
+
203
+ ### Authorization
204
+
205
+ [keycloak_auth](../README.md#keycloak_auth)
206
+
207
+ ### HTTP request headers
208
+
209
+ - **Content-Type**: application/json
210
+ - **Accept**: application/json
211
+
212
+
107
213
  ### HTTP response details
108
214
  | Status code | Description | Response headers |
109
215
  |-------------|-------------|------------------|
@@ -0,0 +1,32 @@
1
+ # MentionAccessItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **docId** | **string** | | [optional] [default to undefined]
9
+ **docName** | **string** | | [optional] [default to undefined]
10
+ **userId** | **string** | | [optional] [default to undefined]
11
+ **userName** | **string** | | [optional] [default to undefined]
12
+ **userEmail** | **string** | | [optional] [default to undefined]
13
+ **canRead** | **boolean** | | [optional] [default to undefined]
14
+ **action** | **string** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { MentionAccessItem } from '@openfilz-sdk/typescript-ee';
20
+
21
+ const instance: MentionAccessItem = {
22
+ docId,
23
+ docName,
24
+ userId,
25
+ userName,
26
+ userEmail,
27
+ canRead,
28
+ action,
29
+ };
30
+ ```
31
+
32
+ [[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,20 @@
1
+ # MentionAccessPreview
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;MentionAccessItem&gt;**](MentionAccessItem.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { MentionAccessPreview } from '@openfilz-sdk/typescript-ee';
14
+
15
+ const instance: MentionAccessPreview = {
16
+ items,
17
+ };
18
+ ```
19
+
20
+ [[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,22 @@
1
+ # MentionAccessRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **docIds** | **Set&lt;string&gt;** | Document IDs the comment is saved on (at most 200) | [default to undefined]
9
+ **mentionedUserIds** | **Set&lt;string&gt;** | User IDs mentioned in the comment (at most 100) | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { MentionAccessRequest } from '@openfilz-sdk/typescript-ee';
15
+
16
+ const instance: MentionAccessRequest = {
17
+ docIds,
18
+ mentionedUserIds,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost:8081*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getNotifications**](#getnotifications) | **GET** /api/v1/notifications | Get all notifications|
7
+ |[**getNotifications**](#getnotifications) | **GET** /api/v1/notifications | Get notifications|
8
8
  |[**getUnreadCount**](#getunreadcount) | **GET** /api/v1/notifications/unread/count | Get unread notification count|
9
9
  |[**markAllAsRead**](#markallasread) | **PUT** /api/v1/notifications/read-all | Mark all notifications as read|
10
10
  |[**markAsRead**](#markasread) | **PUT** /api/v1/notifications/{id}/read | Mark notification as read|
@@ -13,7 +13,7 @@ All URIs are relative to *http://localhost:8081*
13
13
  # **getNotifications**
14
14
  > Array<NotificationDTO> getNotifications()
15
15
 
16
- Retrieve all notifications for the authenticated user
16
+ The most recent notifications of the authenticated user, newest first (100 by default, 500 at most)
17
17
 
18
18
  ### Example
19
19
 
package/models/index.ts CHANGED
@@ -109,6 +109,9 @@ export * from './list-ai-models-request';
109
109
  export * from './mcp-agent-token-config';
110
110
  export * from './mcp-agent-token-info';
111
111
  export * from './mcp-agent-token-response';
112
+ export * from './mention-access-item';
113
+ export * from './mention-access-preview';
114
+ export * from './mention-access-request';
112
115
  export * from './merge-request';
113
116
  export * from './merge-source';
114
117
  export * from './metadata-key-suggestion';
@@ -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 MentionAccessItem {
18
+ 'docId'?: string;
19
+ 'docName'?: string;
20
+ 'userId'?: string;
21
+ 'userName'?: string;
22
+ 'userEmail'?: string;
23
+ 'canRead'?: boolean;
24
+ 'action'?: MentionAccessItemActionEnum;
25
+ }
26
+
27
+ export const MentionAccessItemActionEnum = {
28
+ Share: 'SHARE',
29
+ Upgrade: 'UPGRADE',
30
+ RequestShare: 'REQUEST_SHARE',
31
+ RequestUpgrade: 'REQUEST_UPGRADE',
32
+ NotLicensed: 'NOT_LICENSED',
33
+ NotAllowed: 'NOT_ALLOWED',
34
+ } as const;
35
+
36
+ export type MentionAccessItemActionEnum = typeof MentionAccessItemActionEnum[keyof typeof MentionAccessItemActionEnum];
37
+
38
+
@@ -0,0 +1,23 @@
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 { MentionAccessItem } from './mention-access-item';
19
+
20
+ export interface MentionAccessPreview {
21
+ 'items'?: Array<MentionAccessItem>;
22
+ }
23
+
@@ -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 MentionAccessRequest {
18
+ /**
19
+ * Document IDs the comment is saved on (at most 200)
20
+ */
21
+ 'docIds': Set<string>;
22
+ /**
23
+ * User IDs mentioned in the comment (at most 100)
24
+ */
25
+ 'mentionedUserIds': Set<string>;
26
+ }
27
+