@openfilz-sdk/typescript-ee 1.9.6 → 1.9.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.
- package/.openapi-generator/FILES +22 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +23 -4
- package/api/aichat-api.ts +9 -9
- package/api/document-controller-api.ts +30 -14
- package/api/document-insights-api.ts +275 -0
- package/api/esign-api.ts +9 -9
- package/api/settings-api.ts +142 -0
- package/api/smart-filing-api.ts +421 -0
- package/api.ts +2 -0
- package/dist/api/aichat-api.d.ts +4 -4
- package/dist/api/aichat-api.js +9 -9
- package/dist/api/document-controller-api.d.ts +16 -8
- package/dist/api/document-controller-api.js +28 -14
- package/dist/api/document-insights-api.d.ts +133 -0
- package/dist/api/document-insights-api.js +269 -0
- package/dist/api/esign-api.d.ts +4 -4
- package/dist/api/esign-api.js +9 -9
- package/dist/api/settings-api.d.ts +62 -0
- package/dist/api/settings-api.js +132 -0
- package/dist/api/smart-filing-api.d.ts +197 -0
- package/dist/api/smart-filing-api.js +409 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/aichat-api.d.ts +4 -4
- package/dist/esm/api/aichat-api.js +9 -9
- package/dist/esm/api/document-controller-api.d.ts +16 -8
- package/dist/esm/api/document-controller-api.js +28 -14
- package/dist/esm/api/document-insights-api.d.ts +133 -0
- package/dist/esm/api/document-insights-api.js +262 -0
- package/dist/esm/api/esign-api.d.ts +4 -4
- package/dist/esm/api/esign-api.js +9 -9
- package/dist/esm/api/settings-api.d.ts +62 -0
- package/dist/esm/api/settings-api.js +132 -0
- package/dist/esm/api/smart-filing-api.d.ts +197 -0
- package/dist/esm/api/smart-filing-api.js +402 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/ai-preferences-view.d.ts +16 -0
- package/dist/esm/models/ai-preferences-view.js +14 -0
- package/dist/esm/models/auto-file-job-view.d.ts +25 -0
- package/dist/esm/models/auto-file-job-view.js +14 -0
- package/dist/esm/models/auto-file-request.d.ts +15 -0
- package/dist/esm/models/auto-file-request.js +14 -0
- package/dist/esm/models/auto-file-ticket.d.ts +15 -0
- package/dist/esm/models/auto-file-ticket.js +14 -0
- package/dist/esm/models/document-insight-view.d.ts +33 -0
- package/dist/esm/models/document-insight-view.js +14 -0
- package/dist/esm/models/filing-outcome.d.ts +25 -0
- package/dist/esm/models/filing-outcome.js +14 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/insight-backfill-request.d.ts +15 -0
- package/dist/esm/models/insight-backfill-request.js +14 -0
- package/dist/esm/models/insight-backfill-status.d.ts +23 -0
- package/dist/esm/models/insight-backfill-status.js +14 -0
- package/dist/esm/models/save-ai-preferences-request.d.ts +15 -0
- package/dist/esm/models/save-ai-preferences-request.js +14 -0
- package/dist/esm/models/settings.d.ts +2 -0
- package/dist/esm/models/tus-finalize-request.d.ts +1 -0
- package/dist/esm/models/upload-response.d.ts +2 -0
- package/dist/models/ai-preferences-view.d.ts +16 -0
- package/dist/models/ai-preferences-view.js +15 -0
- package/dist/models/auto-file-job-view.d.ts +25 -0
- package/dist/models/auto-file-job-view.js +15 -0
- package/dist/models/auto-file-request.d.ts +15 -0
- package/dist/models/auto-file-request.js +15 -0
- package/dist/models/auto-file-ticket.d.ts +15 -0
- package/dist/models/auto-file-ticket.js +15 -0
- package/dist/models/document-insight-view.d.ts +33 -0
- package/dist/models/document-insight-view.js +15 -0
- package/dist/models/filing-outcome.d.ts +25 -0
- package/dist/models/filing-outcome.js +15 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/insight-backfill-request.d.ts +15 -0
- package/dist/models/insight-backfill-request.js +15 -0
- package/dist/models/insight-backfill-status.d.ts +23 -0
- package/dist/models/insight-backfill-status.js +15 -0
- package/dist/models/save-ai-preferences-request.d.ts +15 -0
- package/dist/models/save-ai-preferences-request.js +15 -0
- package/dist/models/settings.d.ts +2 -0
- package/dist/models/tus-finalize-request.d.ts +1 -0
- package/dist/models/upload-response.d.ts +2 -0
- package/docs/AIChatApi.md +4 -4
- package/docs/AiPreferencesView.md +24 -0
- package/docs/AutoFileJobView.md +40 -0
- package/docs/AutoFileRequest.md +22 -0
- package/docs/AutoFileTicket.md +22 -0
- package/docs/DocumentControllerApi.md +6 -0
- package/docs/DocumentInsightView.md +54 -0
- package/docs/DocumentInsightsApi.md +163 -0
- package/docs/ESignApi.md +4 -4
- package/docs/FilingOutcome.md +42 -0
- package/docs/InsightBackfillRequest.md +22 -0
- package/docs/InsightBackfillStatus.md +38 -0
- package/docs/SaveAiPreferencesRequest.md +22 -0
- package/docs/Settings.md +4 -0
- package/docs/SettingsApi.md +97 -0
- package/docs/SmartFilingApi.md +264 -0
- package/docs/TusFinalizeRequest.md +2 -0
- package/docs/UploadResponse.md +2 -0
- package/models/ai-preferences-view.ts +22 -0
- package/models/auto-file-job-view.ts +33 -0
- package/models/auto-file-request.ts +21 -0
- package/models/auto-file-ticket.ts +21 -0
- package/models/document-insight-view.ts +37 -0
- package/models/filing-outcome.ts +31 -0
- package/models/index.ts +9 -0
- package/models/insight-backfill-request.ts +21 -0
- package/models/insight-backfill-status.ts +29 -0
- package/models/save-ai-preferences-request.ts +21 -0
- package/models/settings.ts +2 -0
- package/models/tus-finalize-request.ts +1 -0
- package/models/upload-response.ts +4 -0
- package/package.json +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -3,11 +3,15 @@ export * from './ai-chat-request';
|
|
|
3
3
|
export * from './ai-chat-response';
|
|
4
4
|
export * from './ai-connection-test-result';
|
|
5
5
|
export * from './ai-models-response';
|
|
6
|
+
export * from './ai-preferences-view';
|
|
6
7
|
export * from './ai-settings-response';
|
|
7
8
|
export * from './ancestor-info';
|
|
8
9
|
export * from './apply-signature-request';
|
|
9
10
|
export * from './audit-log-details';
|
|
10
11
|
export * from './audit-verification-result';
|
|
12
|
+
export * from './auto-file-job-view';
|
|
13
|
+
export * from './auto-file-request';
|
|
14
|
+
export * from './auto-file-ticket';
|
|
11
15
|
export * from './broken-link';
|
|
12
16
|
export * from './bulk-row';
|
|
13
17
|
export * from './bulk-row-result';
|
|
@@ -36,6 +40,7 @@ export * from './delete-metadata-request';
|
|
|
36
40
|
export * from './delete-request';
|
|
37
41
|
export * from './delete-share-request';
|
|
38
42
|
export * from './document-info';
|
|
43
|
+
export * from './document-insight-view';
|
|
39
44
|
export * from './document-position';
|
|
40
45
|
export * from './document-version-info';
|
|
41
46
|
export * from './element-info';
|
|
@@ -44,10 +49,13 @@ export * from './enriched-audit-log';
|
|
|
44
49
|
export * from './enriched-audit-log-details';
|
|
45
50
|
export * from './feature-entitlement';
|
|
46
51
|
export * from './file-type-stats';
|
|
52
|
+
export * from './filing-outcome';
|
|
47
53
|
export * from './filter-input';
|
|
48
54
|
export * from './folder-element-info';
|
|
49
55
|
export * from './folder-response';
|
|
50
56
|
export * from './ingestion-status-dto';
|
|
57
|
+
export * from './insight-backfill-request';
|
|
58
|
+
export * from './insight-backfill-status';
|
|
51
59
|
export * from './instantiate-template-request';
|
|
52
60
|
export * from './item';
|
|
53
61
|
export * from './item-result';
|
|
@@ -83,6 +91,7 @@ export * from './restore-version-audit';
|
|
|
83
91
|
export * from './restore-version-response';
|
|
84
92
|
export * from './role-binding';
|
|
85
93
|
export * from './rotate-request';
|
|
94
|
+
export * from './save-ai-preferences-request';
|
|
86
95
|
export * from './save-ai-settings-request';
|
|
87
96
|
export * from './scan-job-status-dto';
|
|
88
97
|
export * from './scan-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -19,11 +19,15 @@ __exportStar(require("./ai-chat-request"), exports);
|
|
|
19
19
|
__exportStar(require("./ai-chat-response"), exports);
|
|
20
20
|
__exportStar(require("./ai-connection-test-result"), exports);
|
|
21
21
|
__exportStar(require("./ai-models-response"), exports);
|
|
22
|
+
__exportStar(require("./ai-preferences-view"), exports);
|
|
22
23
|
__exportStar(require("./ai-settings-response"), exports);
|
|
23
24
|
__exportStar(require("./ancestor-info"), exports);
|
|
24
25
|
__exportStar(require("./apply-signature-request"), exports);
|
|
25
26
|
__exportStar(require("./audit-log-details"), exports);
|
|
26
27
|
__exportStar(require("./audit-verification-result"), exports);
|
|
28
|
+
__exportStar(require("./auto-file-job-view"), exports);
|
|
29
|
+
__exportStar(require("./auto-file-request"), exports);
|
|
30
|
+
__exportStar(require("./auto-file-ticket"), exports);
|
|
27
31
|
__exportStar(require("./broken-link"), exports);
|
|
28
32
|
__exportStar(require("./bulk-row"), exports);
|
|
29
33
|
__exportStar(require("./bulk-row-result"), exports);
|
|
@@ -52,6 +56,7 @@ __exportStar(require("./delete-metadata-request"), exports);
|
|
|
52
56
|
__exportStar(require("./delete-request"), exports);
|
|
53
57
|
__exportStar(require("./delete-share-request"), exports);
|
|
54
58
|
__exportStar(require("./document-info"), exports);
|
|
59
|
+
__exportStar(require("./document-insight-view"), exports);
|
|
55
60
|
__exportStar(require("./document-position"), exports);
|
|
56
61
|
__exportStar(require("./document-version-info"), exports);
|
|
57
62
|
__exportStar(require("./element-info"), exports);
|
|
@@ -60,10 +65,13 @@ __exportStar(require("./enriched-audit-log"), exports);
|
|
|
60
65
|
__exportStar(require("./enriched-audit-log-details"), exports);
|
|
61
66
|
__exportStar(require("./feature-entitlement"), exports);
|
|
62
67
|
__exportStar(require("./file-type-stats"), exports);
|
|
68
|
+
__exportStar(require("./filing-outcome"), exports);
|
|
63
69
|
__exportStar(require("./filter-input"), exports);
|
|
64
70
|
__exportStar(require("./folder-element-info"), exports);
|
|
65
71
|
__exportStar(require("./folder-response"), exports);
|
|
66
72
|
__exportStar(require("./ingestion-status-dto"), exports);
|
|
73
|
+
__exportStar(require("./insight-backfill-request"), exports);
|
|
74
|
+
__exportStar(require("./insight-backfill-status"), exports);
|
|
67
75
|
__exportStar(require("./instantiate-template-request"), exports);
|
|
68
76
|
__exportStar(require("./item"), exports);
|
|
69
77
|
__exportStar(require("./item-result"), exports);
|
|
@@ -99,6 +107,7 @@ __exportStar(require("./restore-version-audit"), exports);
|
|
|
99
107
|
__exportStar(require("./restore-version-response"), exports);
|
|
100
108
|
__exportStar(require("./role-binding"), exports);
|
|
101
109
|
__exportStar(require("./rotate-request"), exports);
|
|
110
|
+
__exportStar(require("./save-ai-preferences-request"), exports);
|
|
102
111
|
__exportStar(require("./save-ai-settings-request"), exports);
|
|
103
112
|
__exportStar(require("./scan-job-status-dto"), exports);
|
|
104
113
|
__exportStar(require("./scan-request-dto"), exports);
|
|
@@ -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 InsightBackfillRequest {
|
|
13
|
+
'folderId'?: string;
|
|
14
|
+
'force'?: boolean;
|
|
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,23 @@
|
|
|
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 InsightBackfillStatus {
|
|
13
|
+
'jobId'?: string;
|
|
14
|
+
'folderId'?: string;
|
|
15
|
+
'force'?: boolean;
|
|
16
|
+
'status'?: string;
|
|
17
|
+
'total'?: number;
|
|
18
|
+
'done'?: number;
|
|
19
|
+
'failed'?: number;
|
|
20
|
+
'skipped'?: number;
|
|
21
|
+
'startedAt'?: string;
|
|
22
|
+
'finishedAt'?: string;
|
|
23
|
+
}
|
|
@@ -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 SaveAiPreferencesRequest {
|
|
13
|
+
'autoFile'?: boolean;
|
|
14
|
+
'autoFileNewFolders'?: boolean;
|
|
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 });
|
|
@@ -18,6 +18,8 @@ export interface Settings {
|
|
|
18
18
|
'thumbnailsActive'?: boolean;
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiUserSettingsEnabled'?: boolean;
|
|
21
|
+
'aiInsightsActive'?: boolean;
|
|
22
|
+
'aiAutoFileActive'?: boolean;
|
|
21
23
|
'signatureActive'?: boolean;
|
|
22
24
|
'pdfToolsActive'?: boolean;
|
|
23
25
|
'signatureRequesterRoleRequired'?: boolean;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AutoFileTicket } from './auto-file-ticket';
|
|
12
13
|
export interface UploadResponse {
|
|
13
14
|
'id'?: string;
|
|
14
15
|
'name'?: string;
|
|
@@ -16,4 +17,5 @@ export interface UploadResponse {
|
|
|
16
17
|
'size'?: number;
|
|
17
18
|
'errorType'?: string;
|
|
18
19
|
'errorMessage'?: string;
|
|
20
|
+
'autoFile'?: AutoFileTicket;
|
|
19
21
|
}
|
package/docs/AIChatApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
8
8
|
|[**chat**](#chat) | **POST** /api/v1/ai/chat | Chat with AI assistant|
|
|
9
9
|
|[**deleteConversation**](#deleteconversation) | **DELETE** /api/v1/ai/conversations/{conversationId} | Delete conversation|
|
|
10
10
|
|[**discard**](#discard) | **POST** /api/v1/ai/reorganization/{planId}/discard | Discard a proposed reorganisation plan|
|
|
11
|
-
|[**
|
|
11
|
+
|[**get4**](#get4) | **GET** /api/v1/ai/reorganization/{planId} | Get a reorganisation plan proposed by the AI assistant|
|
|
12
12
|
|[**getConversationHistory**](#getconversationhistory) | **GET** /api/v1/ai/conversations/{conversationId} | Get conversation history|
|
|
13
13
|
|[**listConversations**](#listconversations) | **GET** /api/v1/ai/conversations | List conversations|
|
|
14
14
|
|
|
@@ -220,8 +220,8 @@ const { status, data } = await apiInstance.discard(
|
|
|
220
220
|
|
|
221
221
|
[[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
222
|
|
|
223
|
-
# **
|
|
224
|
-
> ReorganizationPlanView
|
|
223
|
+
# **get4**
|
|
224
|
+
> ReorganizationPlanView get4()
|
|
225
225
|
|
|
226
226
|
The plan\'s items (what moves where), which are applicable, and its status.
|
|
227
227
|
|
|
@@ -238,7 +238,7 @@ const apiInstance = new AIChatApi(configuration);
|
|
|
238
238
|
|
|
239
239
|
let planId: string; // (default to undefined)
|
|
240
240
|
|
|
241
|
-
const { status, data } = await apiInstance.
|
|
241
|
+
const { status, data } = await apiInstance.get4(
|
|
242
242
|
planId
|
|
243
243
|
);
|
|
244
244
|
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# AiPreferencesView
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**autoFileAvailable** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**autoFile** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
**autoFileNewFolders** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { AiPreferencesView } from '@openfilz-sdk/typescript-ee';
|
|
16
|
+
|
|
17
|
+
const instance: AiPreferencesView = {
|
|
18
|
+
autoFileAvailable,
|
|
19
|
+
autoFile,
|
|
20
|
+
autoFileNewFolders,
|
|
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
|
+
# AutoFileJobView
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**jobId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**filed** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**skipped** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**failed** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**pending** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**items** | [**Array<FilingOutcome>**](FilingOutcome.md) | | [optional] [default to undefined]
|
|
17
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**finishedAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { AutoFileJobView } from '@openfilz-sdk/typescript-ee';
|
|
24
|
+
|
|
25
|
+
const instance: AutoFileJobView = {
|
|
26
|
+
jobId,
|
|
27
|
+
createdBy,
|
|
28
|
+
status,
|
|
29
|
+
total,
|
|
30
|
+
filed,
|
|
31
|
+
skipped,
|
|
32
|
+
failed,
|
|
33
|
+
pending,
|
|
34
|
+
items,
|
|
35
|
+
createdAt,
|
|
36
|
+
finishedAt,
|
|
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,22 @@
|
|
|
1
|
+
# AutoFileRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentIds** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**allowNewFolders** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AutoFileRequest } from '@openfilz-sdk/typescript-ee';
|
|
15
|
+
|
|
16
|
+
const instance: AutoFileRequest = {
|
|
17
|
+
documentIds,
|
|
18
|
+
allowNewFolders,
|
|
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
|
+
# AutoFileTicket
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**jobId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AutoFileTicket } from '@openfilz-sdk/typescript-ee';
|
|
15
|
+
|
|
16
|
+
const instance: AutoFileTicket = {
|
|
17
|
+
jobId,
|
|
18
|
+
status,
|
|
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)
|
|
@@ -736,11 +736,13 @@ const apiInstance = new DocumentControllerApi(configuration);
|
|
|
736
736
|
|
|
737
737
|
let file: Array<File>; // (default to undefined)
|
|
738
738
|
let allowDuplicateFileNames: boolean; //when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) (optional) (default to false)
|
|
739
|
+
let autoFile: boolean; //Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. (optional) (default to undefined)
|
|
739
740
|
let parametersByFilename: string; //Paste the JSON array here<br>This array provides optional metadata and attributes for the uploaded files<br><section> <h3>Each object in the array must contain:</h3> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>filename</code></td> <td><code>String</code></td> <td>Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.</td> </tr> <tr> <td><code>fileAttributes</code></td> <td><code>JSON Object</code></td> <td>Container for metadata and other file-specific attributes.</td> </tr> </tbody> </table> <h4>Inside <code>fileAttributes</code>:</h4> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>parentFolderId</code></td> <td><code>UUID</code></td> <td>UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)</td> </tr> <tr> <td><code>metadata</code></td> <td><code>Map<String, JSON Object></code></td> <td>Arbitrary metadata to associate with the file (key/value pairs).</td> </tr> </tbody> </table> <h4>Example of <code>parametersByFilename</code> JSON array :</h4> <pre><code>[ { \\\"filename\\\": \\\"file1.txt\\\", \\\"fileAttributes\\\": { \\\"parentFolderId\\\": \\\"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\", \\\"metadata\\\": { \\\"country\\\": \\\"UK\\\", \\\"owner\\\": { \\\"name\\\": \\\"Joe\\\", \\\"owner_id\\\": 1234568 } } } }, { \\\"filename\\\": \\\"file2.md\\\", \\\"fileAttributes\\\": { \\\"metadata\\\": { \\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\", \\\"key3\\\": \\\"value3\\\" } } } ]</code></pre> </section> (optional) (default to undefined)
|
|
740
741
|
|
|
741
742
|
const { status, data } = await apiInstance.uploadDocument(
|
|
742
743
|
file,
|
|
743
744
|
allowDuplicateFileNames,
|
|
745
|
+
autoFile,
|
|
744
746
|
parametersByFilename
|
|
745
747
|
);
|
|
746
748
|
```
|
|
@@ -751,6 +753,7 @@ const { status, data } = await apiInstance.uploadDocument(
|
|
|
751
753
|
|------------- | ------------- | ------------- | -------------|
|
|
752
754
|
| **file** | **Array<File>** | | defaults to undefined|
|
|
753
755
|
| **allowDuplicateFileNames** | [**boolean**] | when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) | (optional) defaults to false|
|
|
756
|
+
| **autoFile** | [**boolean**] | Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. | (optional) defaults to undefined|
|
|
754
757
|
| **parametersByFilename** | [**string**] | Paste the JSON array here<br>This array provides optional metadata and attributes for the uploaded files<br><section> <h3>Each object in the array must contain:</h3> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>filename</code></td> <td><code>String</code></td> <td>Must match the filename of one of the uploaded files. Filenames must be unique in the upload request.</td> </tr> <tr> <td><code>fileAttributes</code></td> <td><code>JSON Object</code></td> <td>Container for metadata and other file-specific attributes.</td> </tr> </tbody> </table> <h4>Inside <code>fileAttributes</code>:</h4> <table> <thead> <tr> <th>Field</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>parentFolderId</code></td> <td><code>UUID</code></td> <td>UUID of the target folder to upload the file (if not provided : the file will be uploaded at the root level)</td> </tr> <tr> <td><code>metadata</code></td> <td><code>Map&lt;String, JSON Object&gt;</code></td> <td>Arbitrary metadata to associate with the file (key/value pairs).</td> </tr> </tbody> </table> <h4>Example of <code>parametersByFilename</code> JSON array :</h4> <pre><code>[ { \\\"filename\\\": \\\"file1.txt\\\", \\\"fileAttributes\\\": { \\\"parentFolderId\\\": \\\"f8c3de3d-1fea-4d7c-a8b0-29f63c4c3454\\\", \\\"metadata\\\": { \\\"country\\\": \\\"UK\\\", \\\"owner\\\": { \\\"name\\\": \\\"Joe\\\", \\\"owner_id\\\": 1234568 } } } }, { \\\"filename\\\": \\\"file2.md\\\", \\\"fileAttributes\\\": { \\\"metadata\\\": { \\\"key1\\\": \\\"value1\\\", \\\"key2\\\": \\\"value2\\\", \\\"key3\\\": \\\"value3\\\" } } } ]</code></pre> </section> | (optional) defaults to undefined|
|
|
755
758
|
|
|
756
759
|
|
|
@@ -793,12 +796,14 @@ const apiInstance = new DocumentControllerApi(configuration);
|
|
|
793
796
|
|
|
794
797
|
let file: File; // (default to undefined)
|
|
795
798
|
let allowDuplicateFileNames: boolean; //when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) (optional) (default to false)
|
|
799
|
+
let autoFile: boolean; //Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. (optional) (default to undefined)
|
|
796
800
|
let parentFolderId: string; //Target parent folder ID to store the file; if not sent or null, the file is stored at the root level (optional) (default to undefined)
|
|
797
801
|
let metadata: string; // (optional) (default to undefined)
|
|
798
802
|
|
|
799
803
|
const { status, data } = await apiInstance.uploadDocument1(
|
|
800
804
|
file,
|
|
801
805
|
allowDuplicateFileNames,
|
|
806
|
+
autoFile,
|
|
802
807
|
parentFolderId,
|
|
803
808
|
metadata
|
|
804
809
|
);
|
|
@@ -810,6 +815,7 @@ const { status, data } = await apiInstance.uploadDocument1(
|
|
|
810
815
|
|------------- | ------------- | ------------- | -------------|
|
|
811
816
|
| **file** | [**File**] | | defaults to undefined|
|
|
812
817
|
| **allowDuplicateFileNames** | [**boolean**] | when true : if a file with the same name already exists in the target parent folder, a 409 error is raised. When false : the file will be stored (but no existing file with same name will be overwritten) | (optional) defaults to false|
|
|
818
|
+
| **autoFile** | [**boolean**] | Smart filing: true asks OpenFilz to choose the destination folder of the uploaded file(s) after the upload (a job id comes back in autoFile.jobId); false leaves them where they are; absent = the user\'s own switch. Needs openfilz.ai.auto-file.active. | (optional) defaults to undefined|
|
|
813
819
|
| **parentFolderId** | [**string**] | Target parent folder ID to store the file; if not sent or null, the file is stored at the root level | (optional) defaults to undefined|
|
|
814
820
|
| **metadata** | [**string**] | | (optional) defaults to undefined|
|
|
815
821
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# DocumentInsightView
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**fileTitle** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**fileAuthor** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**fileCreatedAt** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**fileModifiedAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**pageCount** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**language** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**summary** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**keywords** | **Array<string>** | | [optional] [default to undefined]
|
|
18
|
+
**entities** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
19
|
+
**tier** | **number** | | [optional] [default to undefined]
|
|
20
|
+
**model** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**promptVersion** | **number** | | [optional] [default to undefined]
|
|
22
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**error** | **string** | | [optional] [default to undefined]
|
|
24
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
25
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { DocumentInsightView } from '@openfilz-sdk/typescript-ee';
|
|
31
|
+
|
|
32
|
+
const instance: DocumentInsightView = {
|
|
33
|
+
documentId,
|
|
34
|
+
fileTitle,
|
|
35
|
+
fileAuthor,
|
|
36
|
+
fileCreatedAt,
|
|
37
|
+
fileModifiedAt,
|
|
38
|
+
pageCount,
|
|
39
|
+
language,
|
|
40
|
+
category,
|
|
41
|
+
summary,
|
|
42
|
+
keywords,
|
|
43
|
+
entities,
|
|
44
|
+
tier,
|
|
45
|
+
model,
|
|
46
|
+
promptVersion,
|
|
47
|
+
status,
|
|
48
|
+
error,
|
|
49
|
+
createdAt,
|
|
50
|
+
updatedAt,
|
|
51
|
+
};
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[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,163 @@
|
|
|
1
|
+
# DocumentInsightsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**backfill**](#backfill) | **POST** /api/v1/ai/insights/backfill | Enrich existing documents|
|
|
8
|
+
|[**backfillStatus**](#backfillstatus) | **GET** /api/v1/ai/insights/backfill/{jobId} | Progress of a backfill job|
|
|
9
|
+
|[**getInsights**](#getinsights) | **GET** /api/v1/documents/{documentId}/insights | Get the insights of a document|
|
|
10
|
+
|
|
11
|
+
# **backfill**
|
|
12
|
+
> InsightBackfillStatus backfill()
|
|
13
|
+
|
|
14
|
+
Queues every FILE without a tier-2 insight (or with an older prompt version when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
DocumentInsightsApi,
|
|
21
|
+
Configuration,
|
|
22
|
+
InsightBackfillRequest
|
|
23
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new DocumentInsightsApi(configuration);
|
|
27
|
+
|
|
28
|
+
let insightBackfillRequest: InsightBackfillRequest; // (optional)
|
|
29
|
+
|
|
30
|
+
const { status, data } = await apiInstance.backfill(
|
|
31
|
+
insightBackfillRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **insightBackfillRequest** | **InsightBackfillRequest**| | |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Return type
|
|
43
|
+
|
|
44
|
+
**InsightBackfillStatus**
|
|
45
|
+
|
|
46
|
+
### Authorization
|
|
47
|
+
|
|
48
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
49
|
+
|
|
50
|
+
### HTTP request headers
|
|
51
|
+
|
|
52
|
+
- **Content-Type**: application/json
|
|
53
|
+
- **Accept**: application/json
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### HTTP response details
|
|
57
|
+
| Status code | Description | Response headers |
|
|
58
|
+
|-------------|-------------|------------------|
|
|
59
|
+
|**200** | OK | - |
|
|
60
|
+
|
|
61
|
+
[[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)
|
|
62
|
+
|
|
63
|
+
# **backfillStatus**
|
|
64
|
+
> InsightBackfillStatus backfillStatus()
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
### Example
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
import {
|
|
71
|
+
DocumentInsightsApi,
|
|
72
|
+
Configuration
|
|
73
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
74
|
+
|
|
75
|
+
const configuration = new Configuration();
|
|
76
|
+
const apiInstance = new DocumentInsightsApi(configuration);
|
|
77
|
+
|
|
78
|
+
let jobId: string; // (default to undefined)
|
|
79
|
+
|
|
80
|
+
const { status, data } = await apiInstance.backfillStatus(
|
|
81
|
+
jobId
|
|
82
|
+
);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Parameters
|
|
86
|
+
|
|
87
|
+
|Name | Type | Description | Notes|
|
|
88
|
+
|------------- | ------------- | ------------- | -------------|
|
|
89
|
+
| **jobId** | [**string**] | | defaults to undefined|
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Return type
|
|
93
|
+
|
|
94
|
+
**InsightBackfillStatus**
|
|
95
|
+
|
|
96
|
+
### Authorization
|
|
97
|
+
|
|
98
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
99
|
+
|
|
100
|
+
### HTTP request headers
|
|
101
|
+
|
|
102
|
+
- **Content-Type**: Not defined
|
|
103
|
+
- **Accept**: application/json
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### HTTP response details
|
|
107
|
+
| Status code | Description | Response headers |
|
|
108
|
+
|-------------|-------------|------------------|
|
|
109
|
+
|**200** | OK | - |
|
|
110
|
+
|
|
111
|
+
[[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)
|
|
112
|
+
|
|
113
|
+
# **getInsights**
|
|
114
|
+
> DocumentInsightView getInsights()
|
|
115
|
+
|
|
116
|
+
Tier 1: the file\'s own metadata (title, author, dates, page count, language) captured at upload. Tier 2: the AI-derived category, summary, keywords and entities when openfilz.ai.insights.active is on. 404 when the document is not visible or has no insights yet.
|
|
117
|
+
|
|
118
|
+
### Example
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
import {
|
|
122
|
+
DocumentInsightsApi,
|
|
123
|
+
Configuration
|
|
124
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
125
|
+
|
|
126
|
+
const configuration = new Configuration();
|
|
127
|
+
const apiInstance = new DocumentInsightsApi(configuration);
|
|
128
|
+
|
|
129
|
+
let documentId: string; // (default to undefined)
|
|
130
|
+
|
|
131
|
+
const { status, data } = await apiInstance.getInsights(
|
|
132
|
+
documentId
|
|
133
|
+
);
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Parameters
|
|
137
|
+
|
|
138
|
+
|Name | Type | Description | Notes|
|
|
139
|
+
|------------- | ------------- | ------------- | -------------|
|
|
140
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### Return type
|
|
144
|
+
|
|
145
|
+
**DocumentInsightView**
|
|
146
|
+
|
|
147
|
+
### Authorization
|
|
148
|
+
|
|
149
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
150
|
+
|
|
151
|
+
### HTTP request headers
|
|
152
|
+
|
|
153
|
+
- **Content-Type**: Not defined
|
|
154
|
+
- **Accept**: application/json
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### HTTP response details
|
|
158
|
+
| Status code | Description | Response headers |
|
|
159
|
+
|-------------|-------------|------------------|
|
|
160
|
+
|**200** | OK | - |
|
|
161
|
+
|
|
162
|
+
[[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)
|
|
163
|
+
|