@openfilz-sdk/typescript 1.3.19 → 1.3.20
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.
- package/.openapi-generator/FILES +6 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +7 -2
- package/api/document-insights-api.ts +71 -4
- package/api/settings-api.ts +18 -11
- package/api/smart-filing-api.ts +73 -0
- package/dist/api/document-insights-api.d.ts +33 -4
- package/dist/api/document-insights-api.js +66 -4
- package/dist/api/settings-api.d.ts +12 -8
- package/dist/api/settings-api.js +18 -11
- package/dist/api/smart-filing-api.d.ts +33 -0
- package/dist/api/smart-filing-api.js +68 -0
- package/dist/esm/api/document-insights-api.d.ts +33 -4
- package/dist/esm/api/document-insights-api.js +66 -4
- package/dist/esm/api/settings-api.d.ts +12 -8
- package/dist/esm/api/settings-api.js +18 -11
- package/dist/esm/api/smart-filing-api.d.ts +33 -0
- package/dist/esm/api/smart-filing-api.js +68 -0
- package/dist/esm/models/ai-preferences-view.d.ts +3 -0
- package/dist/esm/models/auto-file-inbox-request.d.ts +14 -0
- package/dist/esm/models/auto-file-inbox-request.js +14 -0
- package/dist/esm/models/facet.d.ts +15 -0
- package/dist/esm/models/facet.js +14 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/insight-facets.d.ts +16 -0
- package/dist/esm/models/insight-facets.js +14 -0
- package/dist/esm/models/save-ai-preferences-request.d.ts +1 -0
- package/dist/esm/models/settings.d.ts +1 -0
- package/dist/models/ai-preferences-view.d.ts +3 -0
- package/dist/models/auto-file-inbox-request.d.ts +14 -0
- package/dist/models/auto-file-inbox-request.js +15 -0
- package/dist/models/facet.d.ts +15 -0
- package/dist/models/facet.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/insight-facets.d.ts +16 -0
- package/dist/models/insight-facets.js +15 -0
- package/dist/models/save-ai-preferences-request.d.ts +1 -0
- package/dist/models/settings.d.ts +1 -0
- package/docs/AiPreferencesView.md +6 -0
- package/docs/AutoFileInboxRequest.md +20 -0
- package/docs/DocumentInsightsApi.md +46 -1
- package/docs/Facet.md +22 -0
- package/docs/InsightFacets.md +22 -0
- package/docs/SaveAiPreferencesRequest.md +2 -0
- package/docs/Settings.md +2 -0
- package/docs/SettingsApi.md +5 -2
- package/docs/SmartFilingApi.md +53 -0
- package/graphql/document-search.graphqls +4 -0
- package/graphql/document.graphqls +4 -0
- package/models/ai-preferences-view.ts +3 -0
- package/models/auto-file-inbox-request.ts +20 -0
- package/models/facet.ts +21 -0
- package/models/index.ts +3 -0
- package/models/insight-facets.ts +24 -0
- package/models/save-ai-preferences-request.ts +1 -0
- package/models/settings.ts +1 -0
- package/package.json +1 -1
|
@@ -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,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
|
+
export interface Facet {
|
|
13
|
+
'key'?: string;
|
|
14
|
+
'count'?: number;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './audit-log';
|
|
|
11
11
|
export * from './audit-log-details';
|
|
12
12
|
export * from './audit-log-details-one-of';
|
|
13
13
|
export * from './audit-verification-result';
|
|
14
|
+
export * from './auto-file-inbox-request';
|
|
14
15
|
export * from './auto-file-job-view';
|
|
15
16
|
export * from './auto-file-jobs-request';
|
|
16
17
|
export * from './auto-file-request';
|
|
@@ -39,6 +40,7 @@ export * from './document-version-info';
|
|
|
39
40
|
export * from './element-info';
|
|
40
41
|
export * from './embedding-backfill-request';
|
|
41
42
|
export * from './embedding-backfill-status';
|
|
43
|
+
export * from './facet';
|
|
42
44
|
export * from './file-type-stats';
|
|
43
45
|
export * from './filing-outcome';
|
|
44
46
|
export * from './filter-input';
|
|
@@ -47,6 +49,7 @@ export * from './folder-response';
|
|
|
47
49
|
export * from './insight-backfill-request';
|
|
48
50
|
export * from './insight-backfill-status';
|
|
49
51
|
export * from './insight-category-update';
|
|
52
|
+
export * from './insight-facets';
|
|
50
53
|
export * from './instantiate-template-request';
|
|
51
54
|
export * from './item';
|
|
52
55
|
export * from './item-result';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./audit-log"), exports);
|
|
|
27
27
|
__exportStar(require("./audit-log-details"), exports);
|
|
28
28
|
__exportStar(require("./audit-log-details-one-of"), exports);
|
|
29
29
|
__exportStar(require("./audit-verification-result"), exports);
|
|
30
|
+
__exportStar(require("./auto-file-inbox-request"), exports);
|
|
30
31
|
__exportStar(require("./auto-file-job-view"), exports);
|
|
31
32
|
__exportStar(require("./auto-file-jobs-request"), exports);
|
|
32
33
|
__exportStar(require("./auto-file-request"), exports);
|
|
@@ -55,6 +56,7 @@ __exportStar(require("./document-version-info"), exports);
|
|
|
55
56
|
__exportStar(require("./element-info"), exports);
|
|
56
57
|
__exportStar(require("./embedding-backfill-request"), exports);
|
|
57
58
|
__exportStar(require("./embedding-backfill-status"), exports);
|
|
59
|
+
__exportStar(require("./facet"), exports);
|
|
58
60
|
__exportStar(require("./file-type-stats"), exports);
|
|
59
61
|
__exportStar(require("./filing-outcome"), exports);
|
|
60
62
|
__exportStar(require("./filter-input"), exports);
|
|
@@ -63,6 +65,7 @@ __exportStar(require("./folder-response"), exports);
|
|
|
63
65
|
__exportStar(require("./insight-backfill-request"), exports);
|
|
64
66
|
__exportStar(require("./insight-backfill-status"), exports);
|
|
65
67
|
__exportStar(require("./insight-category-update"), exports);
|
|
68
|
+
__exportStar(require("./insight-facets"), exports);
|
|
66
69
|
__exportStar(require("./instantiate-template-request"), exports);
|
|
67
70
|
__exportStar(require("./item"), exports);
|
|
68
71
|
__exportStar(require("./item-result"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { Facet } from './facet';
|
|
13
|
+
export interface InsightFacets {
|
|
14
|
+
'categories'?: Array<Facet>;
|
|
15
|
+
'languages'?: Array<Facet>;
|
|
16
|
+
}
|
|
@@ -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 });
|
|
@@ -18,6 +18,7 @@ export interface Settings {
|
|
|
18
18
|
'thumbnailsActive'?: boolean;
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiChatActive'?: boolean;
|
|
21
|
+
'aiChatUnavailableReason'?: string;
|
|
21
22
|
'aiUserSettingsEnabled'?: boolean;
|
|
22
23
|
'aiInsightsActive'?: boolean;
|
|
23
24
|
'aiInsightsCategories'?: Array<string>;
|
|
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**autoFileAvailable** | **boolean** | | [optional] [default to undefined]
|
|
9
9
|
**autoFile** | **boolean** | | [optional] [default to undefined]
|
|
10
10
|
**autoFileNewFolders** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**inboxAvailable** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**inbox** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**inboxFolderId** | **string** | | [optional] [default to undefined]
|
|
11
14
|
|
|
12
15
|
## Example
|
|
13
16
|
|
|
@@ -18,6 +21,9 @@ const instance: AiPreferencesView = {
|
|
|
18
21
|
autoFileAvailable,
|
|
19
22
|
autoFile,
|
|
20
23
|
autoFileNewFolders,
|
|
24
|
+
inboxAvailable,
|
|
25
|
+
inbox,
|
|
26
|
+
inboxFolderId,
|
|
21
27
|
};
|
|
22
28
|
```
|
|
23
29
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AutoFileInboxRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**allowNewFolders** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AutoFileInboxRequest } from '@openfilz-sdk/typescript';
|
|
14
|
+
|
|
15
|
+
const instance: AutoFileInboxRequest = {
|
|
16
|
+
allowNewFolders,
|
|
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)
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**backfill**](#backfill) | **POST** /api/v1/ai/insights/backfill | Enrich existing documents|
|
|
8
8
|
|[**backfillStatus**](#backfillstatus) | **GET** /api/v1/ai/insights/backfill/{jobId} | Progress of a backfill job|
|
|
9
|
+
|[**facets**](#facets) | **GET** /api/v1/ai/insights/facets | The category and language facets of the library|
|
|
9
10
|
|[**getInsights**](#getinsights) | **GET** /api/v1/documents/{documentId}/insights | Get the insights of a document|
|
|
10
11
|
|[**setCategory**](#setcategory) | **PATCH** /api/v1/documents/{documentId}/insights | Correct the kind of a document|
|
|
11
12
|
|
|
@@ -104,6 +105,50 @@ const { status, data } = await apiInstance.backfillStatus(
|
|
|
104
105
|
- **Accept**: application/json
|
|
105
106
|
|
|
106
107
|
|
|
108
|
+
### HTTP response details
|
|
109
|
+
| Status code | Description | Response headers |
|
|
110
|
+
|-------------|-------------|------------------|
|
|
111
|
+
|**200** | OK | - |
|
|
112
|
+
|
|
113
|
+
[[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)
|
|
114
|
+
|
|
115
|
+
# **facets**
|
|
116
|
+
> InsightFacets facets()
|
|
117
|
+
|
|
118
|
+
How many active files carry each tier-2 category and each detected language, from the document insights (largest first). The keys are what searchDocuments accepts in its \'category\' / \'language\' filters. 404 when the AI features are off (openfilz.ai.active); READER.
|
|
119
|
+
|
|
120
|
+
### Example
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import {
|
|
124
|
+
DocumentInsightsApi,
|
|
125
|
+
Configuration
|
|
126
|
+
} from '@openfilz-sdk/typescript';
|
|
127
|
+
|
|
128
|
+
const configuration = new Configuration();
|
|
129
|
+
const apiInstance = new DocumentInsightsApi(configuration);
|
|
130
|
+
|
|
131
|
+
const { status, data } = await apiInstance.facets();
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Parameters
|
|
135
|
+
This endpoint does not have any parameters.
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Return type
|
|
139
|
+
|
|
140
|
+
**InsightFacets**
|
|
141
|
+
|
|
142
|
+
### Authorization
|
|
143
|
+
|
|
144
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
145
|
+
|
|
146
|
+
### HTTP request headers
|
|
147
|
+
|
|
148
|
+
- **Content-Type**: Not defined
|
|
149
|
+
- **Accept**: application/json
|
|
150
|
+
|
|
151
|
+
|
|
107
152
|
### HTTP response details
|
|
108
153
|
| Status code | Description | Response headers |
|
|
109
154
|
|-------------|-------------|------------------|
|
|
@@ -165,7 +210,7 @@ const { status, data } = await apiInstance.getInsights(
|
|
|
165
210
|
# **setCategory**
|
|
166
211
|
> DocumentInsightView setCategory(insightCategoryUpdate)
|
|
167
212
|
|
|
168
|
-
Sets the tier-2 category to one of the deployment\'s
|
|
213
|
+
Sets the tier-2 category to one of the deployment\'s kinds (the category taxonomy: openfilz.ai.insights.categories, or \'other\'), recorded as written by the user: it is never overwritten by a non-forced backfill, it teaches the learned classifier, and the by-kind reorganisation and smart filing use it like a model\'s label. 400 for a kind the deployment does not know; 403 without modify access.
|
|
169
214
|
|
|
170
215
|
### Example
|
|
171
216
|
|
package/docs/Facet.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Facet
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**key** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**count** | **number** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Facet } from '@openfilz-sdk/typescript';
|
|
15
|
+
|
|
16
|
+
const instance: Facet = {
|
|
17
|
+
key,
|
|
18
|
+
count,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# InsightFacets
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**categories** | [**Array<Facet>**](Facet.md) | | [optional] [default to undefined]
|
|
9
|
+
**languages** | [**Array<Facet>**](Facet.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InsightFacets } from '@openfilz-sdk/typescript';
|
|
15
|
+
|
|
16
|
+
const instance: InsightFacets = {
|
|
17
|
+
categories,
|
|
18
|
+
languages,
|
|
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)
|
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**autoFile** | **boolean** | | [optional] [default to undefined]
|
|
9
9
|
**autoFileNewFolders** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**inbox** | **boolean** | | [optional] [default to undefined]
|
|
10
11
|
|
|
11
12
|
## Example
|
|
12
13
|
|
|
@@ -16,6 +17,7 @@ import { SaveAiPreferencesRequest } from '@openfilz-sdk/typescript';
|
|
|
16
17
|
const instance: SaveAiPreferencesRequest = {
|
|
17
18
|
autoFile,
|
|
18
19
|
autoFileNewFolders,
|
|
20
|
+
inbox,
|
|
19
21
|
};
|
|
20
22
|
```
|
|
21
23
|
|
package/docs/Settings.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**thumbnailsActive** | **boolean** | | [optional] [default to undefined]
|
|
14
14
|
**aiActive** | **boolean** | | [optional] [default to undefined]
|
|
15
15
|
**aiChatActive** | **boolean** | | [optional] [default to undefined]
|
|
16
|
+
**aiChatUnavailableReason** | **string** | | [optional] [default to undefined]
|
|
16
17
|
**aiUserSettingsEnabled** | **boolean** | | [optional] [default to undefined]
|
|
17
18
|
**aiInsightsActive** | **boolean** | | [optional] [default to undefined]
|
|
18
19
|
**aiInsightsCategories** | **Array<string>** | | [optional] [default to undefined]
|
|
@@ -47,6 +48,7 @@ const instance: Settings = {
|
|
|
47
48
|
thumbnailsActive,
|
|
48
49
|
aiActive,
|
|
49
50
|
aiChatActive,
|
|
51
|
+
aiChatUnavailableReason,
|
|
50
52
|
aiUserSettingsEnabled,
|
|
51
53
|
aiInsightsActive,
|
|
52
54
|
aiInsightsCategories,
|
package/docs/SettingsApi.md
CHANGED
|
@@ -98,7 +98,7 @@ This endpoint does not have any parameters.
|
|
|
98
98
|
# **save**
|
|
99
99
|
> AiPreferencesView save(saveAiPreferencesRequest)
|
|
100
100
|
|
|
101
|
-
A null field leaves the current value unchanged.
|
|
101
|
+
A null field leaves the current value unchanged. inbox=true creates the caller\'s Inbox folder at their root on demand (named from Accept-Language, else the deployment\'s default language); inbox=false forgets it without deleting the folder. 400 when the Inbox is not offered.
|
|
102
102
|
|
|
103
103
|
### Example
|
|
104
104
|
|
|
@@ -113,9 +113,11 @@ const configuration = new Configuration();
|
|
|
113
113
|
const apiInstance = new SettingsApi(configuration);
|
|
114
114
|
|
|
115
115
|
let saveAiPreferencesRequest: SaveAiPreferencesRequest; //
|
|
116
|
+
let acceptLanguage: string; // (optional) (default to undefined)
|
|
116
117
|
|
|
117
118
|
const { status, data } = await apiInstance.save(
|
|
118
|
-
saveAiPreferencesRequest
|
|
119
|
+
saveAiPreferencesRequest,
|
|
120
|
+
acceptLanguage
|
|
119
121
|
);
|
|
120
122
|
```
|
|
121
123
|
|
|
@@ -124,6 +126,7 @@ const { status, data } = await apiInstance.save(
|
|
|
124
126
|
|Name | Type | Description | Notes|
|
|
125
127
|
|------------- | ------------- | ------------- | -------------|
|
|
126
128
|
| **saveAiPreferencesRequest** | **SaveAiPreferencesRequest**| | |
|
|
129
|
+
| **acceptLanguage** | [**string**] | | (optional) defaults to undefined|
|
|
127
130
|
|
|
128
131
|
|
|
129
132
|
### Return type
|
package/docs/SmartFilingApi.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**file**](#file) | **POST** /api/v1/ai/auto-file | File existing documents on demand|
|
|
8
|
+
|[**fileInbox**](#fileinbox) | **POST** /api/v1/ai/auto-file/inbox | File everything lying loose in the caller\'s Inbox|
|
|
8
9
|
|[**job**](#job) | **GET** /api/v1/ai/auto-file/{jobId} | Progress and outcome of a filing job|
|
|
9
10
|
|[**jobs**](#jobs) | **POST** /api/v1/ai/auto-file/jobs | Progress and outcome of several filing jobs|
|
|
10
11
|
|[**lastFiling**](#lastfiling) | **GET** /api/v1/ai/auto-file/document/{documentId} | The latest filing record of a document (the \"Filed by OpenFilz\" chip)|
|
|
@@ -42,6 +43,58 @@ const { status, data } = await apiInstance.file(
|
|
|
42
43
|
| **autoFileRequest** | **AutoFileRequest**| | |
|
|
43
44
|
|
|
44
45
|
|
|
46
|
+
### Return type
|
|
47
|
+
|
|
48
|
+
**AutoFileJobView**
|
|
49
|
+
|
|
50
|
+
### Authorization
|
|
51
|
+
|
|
52
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
53
|
+
|
|
54
|
+
### HTTP request headers
|
|
55
|
+
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: application/json
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
### HTTP response details
|
|
61
|
+
| Status code | Description | Response headers |
|
|
62
|
+
|-------------|-------------|------------------|
|
|
63
|
+
|**200** | OK | - |
|
|
64
|
+
|
|
65
|
+
[[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)
|
|
66
|
+
|
|
67
|
+
# **fileInbox**
|
|
68
|
+
> AutoFileJobView fileInbox()
|
|
69
|
+
|
|
70
|
+
Schedules one filing job for every active file directly in the caller\'s Inbox folder (the per-user Inbox of the smart-filing preferences) and returns the job at once, like the on-demand endpoint. 404 when the caller has no Inbox, 400 when the deployment does not offer it.
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
SmartFilingApi,
|
|
77
|
+
Configuration,
|
|
78
|
+
AutoFileInboxRequest
|
|
79
|
+
} from '@openfilz-sdk/typescript';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new SmartFilingApi(configuration);
|
|
83
|
+
|
|
84
|
+
let autoFileInboxRequest: AutoFileInboxRequest; // (optional)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.fileInbox(
|
|
87
|
+
autoFileInboxRequest
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **autoFileInboxRequest** | **AutoFileInboxRequest**| | |
|
|
96
|
+
|
|
97
|
+
|
|
45
98
|
### Return type
|
|
46
99
|
|
|
47
100
|
**AutoFileJobView**
|
|
@@ -10,6 +10,10 @@ type DocumentSearchInfo {
|
|
|
10
10
|
updatedAt: DateTime
|
|
11
11
|
createdBy: String
|
|
12
12
|
updatedBy: String
|
|
13
|
+
"The AI document insight's category of the file (OpenSearch search path only; null on the database path)"
|
|
14
|
+
category: String
|
|
15
|
+
"The document insight's language, BCP-47 primary tag (OpenSearch search path only; null on the database path)"
|
|
16
|
+
language: String
|
|
13
17
|
contentSnippet: String # return a snippet instead of the full content
|
|
14
18
|
"URL to fetch the thumbnail image, null if not available"
|
|
15
19
|
thumbnailUrl: String
|
|
@@ -79,6 +79,10 @@ input ListFolderRequest {
|
|
|
79
79
|
recursive : Boolean
|
|
80
80
|
"Keep only the folders the caller may write into (Enterprise: owned, or shared in editor mode). Ignored by the Community Edition, which has no per-document permissions."
|
|
81
81
|
writableOnly : Boolean
|
|
82
|
+
"Keep only the files whose AI document insight carries one of these categories (the deployment's category keys, e.g. invoice, contract). Needs document insights; a file without an insight row never matches."
|
|
83
|
+
categories : [String]
|
|
84
|
+
"Keep only the files whose document insight names one of these languages (BCP-47 primary tags, e.g. fr, en)."
|
|
85
|
+
languages : [String]
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
input FavoriteRequest {
|
|
@@ -0,0 +1,20 @@
|
|
|
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 AutoFileInboxRequest {
|
|
18
|
+
'allowNewFolders'?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
package/models/facet.ts
ADDED
|
@@ -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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export interface Facet {
|
|
18
|
+
'key'?: string;
|
|
19
|
+
'count'?: number;
|
|
20
|
+
}
|
|
21
|
+
|
package/models/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './audit-log';
|
|
|
11
11
|
export * from './audit-log-details';
|
|
12
12
|
export * from './audit-log-details-one-of';
|
|
13
13
|
export * from './audit-verification-result';
|
|
14
|
+
export * from './auto-file-inbox-request';
|
|
14
15
|
export * from './auto-file-job-view';
|
|
15
16
|
export * from './auto-file-jobs-request';
|
|
16
17
|
export * from './auto-file-request';
|
|
@@ -39,6 +40,7 @@ export * from './document-version-info';
|
|
|
39
40
|
export * from './element-info';
|
|
40
41
|
export * from './embedding-backfill-request';
|
|
41
42
|
export * from './embedding-backfill-status';
|
|
43
|
+
export * from './facet';
|
|
42
44
|
export * from './file-type-stats';
|
|
43
45
|
export * from './filing-outcome';
|
|
44
46
|
export * from './filter-input';
|
|
@@ -47,6 +49,7 @@ export * from './folder-response';
|
|
|
47
49
|
export * from './insight-backfill-request';
|
|
48
50
|
export * from './insight-backfill-status';
|
|
49
51
|
export * from './insight-category-update';
|
|
52
|
+
export * from './insight-facets';
|
|
50
53
|
export * from './instantiate-template-request';
|
|
51
54
|
export * from './item';
|
|
52
55
|
export * from './item-result';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Facet } from './facet';
|
|
19
|
+
|
|
20
|
+
export interface InsightFacets {
|
|
21
|
+
'categories'?: Array<Facet>;
|
|
22
|
+
'languages'?: Array<Facet>;
|
|
23
|
+
}
|
|
24
|
+
|
package/models/settings.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface Settings {
|
|
|
23
23
|
'thumbnailsActive'?: boolean;
|
|
24
24
|
'aiActive'?: boolean;
|
|
25
25
|
'aiChatActive'?: boolean;
|
|
26
|
+
'aiChatUnavailableReason'?: string;
|
|
26
27
|
'aiUserSettingsEnabled'?: boolean;
|
|
27
28
|
'aiInsightsActive'?: boolean;
|
|
28
29
|
'aiInsightsCategories'?: Array<string>;
|