@openfilz-sdk/typescript 1.3.19 → 1.3.21
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 +10 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +11 -2
- package/api/audit-controller-api.ts +67 -0
- package/api/document-controller-api.ts +74 -0
- 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/audit-controller-api.d.ts +29 -0
- package/dist/api/audit-controller-api.js +62 -0
- package/dist/api/document-controller-api.d.ts +33 -0
- package/dist/api/document-controller-api.js +69 -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/audit-controller-api.d.ts +29 -0
- package/dist/esm/api/audit-controller-api.js +62 -0
- package/dist/esm/api/document-controller-api.d.ts +33 -0
- package/dist/esm/api/document-controller-api.js +69 -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/audit-integrity-status-response.d.ts +37 -0
- package/dist/esm/models/audit-integrity-status-response.js +14 -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/document-integrity-record.d.ts +23 -0
- package/dist/esm/models/document-integrity-record.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 +5 -0
- package/dist/esm/models/index.js +5 -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/audit-integrity-status-response.d.ts +37 -0
- package/dist/models/audit-integrity-status-response.js +15 -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/document-integrity-record.d.ts +23 -0
- package/dist/models/document-integrity-record.js +15 -0
- package/dist/models/facet.d.ts +15 -0
- package/dist/models/facet.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -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/AuditControllerApi.md +45 -0
- package/docs/AuditIntegrityStatusResponse.md +29 -0
- package/docs/AutoFileInboxRequest.md +20 -0
- package/docs/DocumentControllerApi.md +52 -0
- package/docs/DocumentInsightsApi.md +46 -1
- package/docs/DocumentIntegrityRecord.md +33 -0
- 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/audit-integrity-status-response.ts +45 -0
- package/models/auto-file-inbox-request.ts +20 -0
- package/models/document-integrity-record.ts +29 -0
- package/models/facet.ts +21 -0
- package/models/index.ts +5 -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
|
@@ -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
|
|
|
@@ -4,10 +4,55 @@ All URIs are relative to *http://localhost:8081*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**auditIntegrityStatus**](#auditintegritystatus) | **GET** /api/v1/audit/verify/status | Last scheduled audit chain verification|
|
|
7
8
|
|[**getAuditTrail**](#getaudittrail) | **GET** /api/v1/audit/{id} | Get audit trail for a resource|
|
|
8
9
|
|[**searchAuditTrail**](#searchaudittrail) | **POST** /api/v1/audit/search | Search for audit trails|
|
|
9
10
|
|[**verifyChain**](#verifychain) | **GET** /api/v1/audit/verify | Verify audit chain integrity|
|
|
10
11
|
|
|
12
|
+
# **auditIntegrityStatus**
|
|
13
|
+
> AuditIntegrityStatusResponse auditIntegrityStatus()
|
|
14
|
+
|
|
15
|
+
Returns the cached verdict of the last scheduled verification on this instance, without re-walking the chain. Poll this for monitoring; call /verify for an authoritative, on-demand answer. `verified=false` means the chain has not been checked yet on this instance — it does not mean the chain is valid.
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
AuditControllerApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@openfilz-sdk/typescript';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new AuditControllerApi(configuration);
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.auditIntegrityStatus();
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
This endpoint does not have any parameters.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Return type
|
|
36
|
+
|
|
37
|
+
**AuditIntegrityStatusResponse**
|
|
38
|
+
|
|
39
|
+
### Authorization
|
|
40
|
+
|
|
41
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
42
|
+
|
|
43
|
+
### HTTP request headers
|
|
44
|
+
|
|
45
|
+
- **Content-Type**: Not defined
|
|
46
|
+
- **Accept**: */*
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### HTTP response details
|
|
50
|
+
| Status code | Description | Response headers |
|
|
51
|
+
|-------------|-------------|------------------|
|
|
52
|
+
|**200** | OK | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
11
56
|
# **getAuditTrail**
|
|
12
57
|
> Array<AuditLog> getAuditTrail()
|
|
13
58
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AuditIntegrityStatusResponse
|
|
2
|
+
|
|
3
|
+
Last known result of the scheduled audit chain verification on this instance
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**chainBroken** | **boolean** | true when the last scheduled pass reported a broken chain | [optional] [default to undefined]
|
|
10
|
+
**verified** | **boolean** | false until the first scheduled verification has completed on this instance, or when the last one could not run. Not verified is not the same as valid. | [optional] [default to undefined]
|
|
11
|
+
**lastResult** | [**AuditVerificationResult**](AuditVerificationResult.md) | Verdict of the last completed scheduled verification, if any | [optional] [default to undefined]
|
|
12
|
+
**lastFailureMessage** | **string** | Why the last scheduled verification could not run, if it failed | [optional] [default to undefined]
|
|
13
|
+
**lastFailureAt** | **string** | When the last scheduled verification failed to run, if it did | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AuditIntegrityStatusResponse } from '@openfilz-sdk/typescript';
|
|
19
|
+
|
|
20
|
+
const instance: AuditIntegrityStatusResponse = {
|
|
21
|
+
chainBroken,
|
|
22
|
+
verified,
|
|
23
|
+
lastResult,
|
|
24
|
+
lastFailureMessage,
|
|
25
|
+
lastFailureAt,
|
|
26
|
+
};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
[[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
|
+
# 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)
|
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
11
11
|
|[**downloadMultipleDocumentsAsZip**](#downloadmultipledocumentsaszip) | **POST** /api/v1/documents/download-multiple | Download multiple documents as ZIP|
|
|
12
12
|
|[**getDocumentAncestors**](#getdocumentancestors) | **GET** /api/v1/documents/{documentId}/ancestors | Get document ancestors|
|
|
13
13
|
|[**getDocumentInfo**](#getdocumentinfo) | **GET** /api/v1/documents/{documentId}/info | Get information of a document|
|
|
14
|
+
|[**getDocumentIntegrity**](#getdocumentintegrity) | **GET** /api/v1/documents/{documentId}/integrity | Get a document\'s integrity ledger|
|
|
14
15
|
|[**getDocumentMetadata**](#getdocumentmetadata) | **POST** /api/v1/documents/{documentId}/search/metadata | Search metadata of a document|
|
|
15
16
|
|[**getDocumentPosition**](#getdocumentposition) | **GET** /api/v1/documents/{documentId}/position | Get document position in folder|
|
|
16
17
|
|[**replaceDocumentContent**](#replacedocumentcontent) | **PUT** /api/v1/documents/{documentId}/replace-content | Replace document content|
|
|
@@ -384,6 +385,57 @@ const { status, data } = await apiInstance.getDocumentInfo(
|
|
|
384
385
|
- **Accept**: */*
|
|
385
386
|
|
|
386
387
|
|
|
388
|
+
### HTTP response details
|
|
389
|
+
| Status code | Description | Response headers |
|
|
390
|
+
|-------------|-------------|------------------|
|
|
391
|
+
|**200** | OK | - |
|
|
392
|
+
|
|
393
|
+
[[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)
|
|
394
|
+
|
|
395
|
+
# **getDocumentIntegrity**
|
|
396
|
+
> Array<DocumentIntegrityRecord> getDocumentIntegrity()
|
|
397
|
+
|
|
398
|
+
Append-only history of what this document\'s content hashed to, newest first. Unlike the sha256 in metadata, these entries cannot be modified or deleted — a database trigger refuses UPDATE and DELETE on the table. Empty for documents uploaded before the ledger existed, or when openfilz.calculate-checksum is off.
|
|
399
|
+
|
|
400
|
+
### Example
|
|
401
|
+
|
|
402
|
+
```typescript
|
|
403
|
+
import {
|
|
404
|
+
DocumentControllerApi,
|
|
405
|
+
Configuration
|
|
406
|
+
} from '@openfilz-sdk/typescript';
|
|
407
|
+
|
|
408
|
+
const configuration = new Configuration();
|
|
409
|
+
const apiInstance = new DocumentControllerApi(configuration);
|
|
410
|
+
|
|
411
|
+
let documentId: string; // (default to undefined)
|
|
412
|
+
|
|
413
|
+
const { status, data } = await apiInstance.getDocumentIntegrity(
|
|
414
|
+
documentId
|
|
415
|
+
);
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
### Parameters
|
|
419
|
+
|
|
420
|
+
|Name | Type | Description | Notes|
|
|
421
|
+
|------------- | ------------- | ------------- | -------------|
|
|
422
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Return type
|
|
426
|
+
|
|
427
|
+
**Array<DocumentIntegrityRecord>**
|
|
428
|
+
|
|
429
|
+
### Authorization
|
|
430
|
+
|
|
431
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
432
|
+
|
|
433
|
+
### HTTP request headers
|
|
434
|
+
|
|
435
|
+
- **Content-Type**: Not defined
|
|
436
|
+
- **Accept**: */*
|
|
437
|
+
|
|
438
|
+
|
|
387
439
|
### HTTP response details
|
|
388
440
|
| Status code | Description | Response headers |
|
|
389
441
|
|-------------|-------------|------------------|
|
|
@@ -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
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# DocumentIntegrityRecord
|
|
2
|
+
|
|
3
|
+
One entry of a document\'s append-only integrity ledger
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**storagePath** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**versionId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**algorithm** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**hash** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**recordedAt** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**recordedBy** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { DocumentIntegrityRecord } from '@openfilz-sdk/typescript';
|
|
21
|
+
|
|
22
|
+
const instance: DocumentIntegrityRecord = {
|
|
23
|
+
documentId,
|
|
24
|
+
storagePath,
|
|
25
|
+
versionId,
|
|
26
|
+
algorithm,
|
|
27
|
+
hash,
|
|
28
|
+
recordedAt,
|
|
29
|
+
recordedBy,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
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,45 @@
|
|
|
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 { AuditVerificationResult } from './audit-verification-result';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Last known result of the scheduled audit chain verification on this instance
|
|
22
|
+
*/
|
|
23
|
+
export interface AuditIntegrityStatusResponse {
|
|
24
|
+
/**
|
|
25
|
+
* true when the last scheduled pass reported a broken chain
|
|
26
|
+
*/
|
|
27
|
+
'chainBroken'?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* false until the first scheduled verification has completed on this instance, or when the last one could not run. Not verified is not the same as valid.
|
|
30
|
+
*/
|
|
31
|
+
'verified'?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Verdict of the last completed scheduled verification, if any
|
|
34
|
+
*/
|
|
35
|
+
'lastResult'?: AuditVerificationResult;
|
|
36
|
+
/**
|
|
37
|
+
* Why the last scheduled verification could not run, if it failed
|
|
38
|
+
*/
|
|
39
|
+
'lastFailureMessage'?: string;
|
|
40
|
+
/**
|
|
41
|
+
* When the last scheduled verification failed to run, if it did
|
|
42
|
+
*/
|
|
43
|
+
'lastFailureAt'?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/**
|
|
18
|
+
* One entry of a document\'s append-only integrity ledger
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentIntegrityRecord {
|
|
21
|
+
'documentId'?: string;
|
|
22
|
+
'storagePath'?: string;
|
|
23
|
+
'versionId'?: string;
|
|
24
|
+
'algorithm'?: string;
|
|
25
|
+
'hash'?: string;
|
|
26
|
+
'recordedAt'?: string;
|
|
27
|
+
'recordedBy'?: string;
|
|
28
|
+
}
|
|
29
|
+
|
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
|
+
|