@openfilz-sdk/typescript-ee 1.9.5 → 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 +32 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +30 -3
- package/api/aichat-api.ts +228 -0
- 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 +103 -0
- package/dist/api/aichat-api.js +213 -0
- 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 +103 -0
- package/dist/esm/api/aichat-api.js +213 -0
- 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 +14 -0
- package/dist/esm/models/index.js +14 -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/item-result.d.ts +16 -0
- package/dist/esm/models/item-result.js +14 -0
- package/dist/esm/models/item.d.ts +21 -0
- package/dist/esm/models/item.js +14 -0
- package/dist/esm/models/reorganization-apply-request.d.ts +14 -0
- package/dist/esm/models/reorganization-apply-request.js +14 -0
- package/dist/esm/models/reorganization-apply-result.d.ts +22 -0
- package/dist/esm/models/reorganization-apply-result.js +14 -0
- package/dist/esm/models/reorganization-plan-view.d.ts +28 -0
- package/dist/esm/models/reorganization-plan-view.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 +14 -0
- package/dist/models/index.js +14 -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/item-result.d.ts +16 -0
- package/dist/models/item-result.js +15 -0
- package/dist/models/item.d.ts +21 -0
- package/dist/models/item.js +15 -0
- package/dist/models/reorganization-apply-request.d.ts +14 -0
- package/dist/models/reorganization-apply-request.js +15 -0
- package/dist/models/reorganization-apply-result.d.ts +22 -0
- package/dist/models/reorganization-apply-result.js +15 -0
- package/dist/models/reorganization-plan-view.d.ts +28 -0
- package/dist/models/reorganization-plan-view.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 +159 -0
- 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/Item.md +34 -0
- package/docs/ItemResult.md +24 -0
- package/docs/ReorganizationApplyRequest.md +20 -0
- package/docs/ReorganizationApplyResult.md +34 -0
- package/docs/ReorganizationPlanView.md +44 -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 +14 -0
- package/models/insight-backfill-request.ts +21 -0
- package/models/insight-backfill-status.ts +29 -0
- package/models/item-result.ts +22 -0
- package/models/item.ts +27 -0
- package/models/reorganization-apply-request.ts +20 -0
- package/models/reorganization-apply-result.ts +30 -0
- package/models/reorganization-plan-view.ts +38 -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
|
@@ -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
|
+
|
package/docs/ESignApi.md
CHANGED
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
8
8
|
|[**cloudSubscription**](#cloudsubscription) | **GET** /api/v1/signatures/cloud-subscription | Cloud Signing subscription and month-to-date usage (openfilz-cloud seal provider only)|
|
|
9
9
|
|[**create**](#create) | **POST** /api/v1/signatures | Create an envelope (sent immediately unless send=false)|
|
|
10
10
|
|[**events**](#events) | **GET** /api/v1/signatures/{id}/events | Audit trail of one of my envelopes|
|
|
11
|
-
|[**
|
|
11
|
+
|[**get3**](#get3) | **GET** /api/v1/signatures/{id} | Get one of my envelopes (recipients + fields)|
|
|
12
12
|
|[**listSent**](#listsent) | **GET** /api/v1/signatures | List envelopes I sent for signature|
|
|
13
13
|
|[**listToSign**](#listtosign) | **GET** /api/v1/signatures/to-sign | List envelopes waiting for my signature|
|
|
14
14
|
|[**resend**](#resend) | **POST** /api/v1/signatures/{id}/recipients/{recipientId}/resend | Resend the signing link to a recipient (new token, previous one revoked)|
|
|
@@ -209,8 +209,8 @@ const { status, data } = await apiInstance.events(
|
|
|
209
209
|
|
|
210
210
|
[[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)
|
|
211
211
|
|
|
212
|
-
# **
|
|
213
|
-
> SignatureEnvelopeDTO
|
|
212
|
+
# **get3**
|
|
213
|
+
> SignatureEnvelopeDTO get3()
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
### Example
|
|
@@ -226,7 +226,7 @@ const apiInstance = new ESignApi(configuration);
|
|
|
226
226
|
|
|
227
227
|
let id: string; // (default to undefined)
|
|
228
228
|
|
|
229
|
-
const { status, data } = await apiInstance.
|
|
229
|
+
const { status, data } = await apiInstance.get3(
|
|
230
230
|
id
|
|
231
231
|
);
|
|
232
232
|
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# FilingOutcome
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**fromFolderId** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**fromPath** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**toFolderId** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**toPath** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**stage** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**confidence** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**planId** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**decidedAt** | **string** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { FilingOutcome } from '@openfilz-sdk/typescript-ee';
|
|
25
|
+
|
|
26
|
+
const instance: FilingOutcome = {
|
|
27
|
+
documentId,
|
|
28
|
+
name,
|
|
29
|
+
status,
|
|
30
|
+
fromFolderId,
|
|
31
|
+
fromPath,
|
|
32
|
+
toFolderId,
|
|
33
|
+
toPath,
|
|
34
|
+
stage,
|
|
35
|
+
confidence,
|
|
36
|
+
reason,
|
|
37
|
+
planId,
|
|
38
|
+
decidedAt,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[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
|
+
# InsightBackfillRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**folderId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**force** | **boolean** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { InsightBackfillRequest } from '@openfilz-sdk/typescript-ee';
|
|
15
|
+
|
|
16
|
+
const instance: InsightBackfillRequest = {
|
|
17
|
+
folderId,
|
|
18
|
+
force,
|
|
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,38 @@
|
|
|
1
|
+
# InsightBackfillStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**jobId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**folderId** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**force** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**done** | **number** | | [optional] [default to undefined]
|
|
14
|
+
**failed** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**skipped** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**startedAt** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**finishedAt** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { InsightBackfillStatus } from '@openfilz-sdk/typescript-ee';
|
|
23
|
+
|
|
24
|
+
const instance: InsightBackfillStatus = {
|
|
25
|
+
jobId,
|
|
26
|
+
folderId,
|
|
27
|
+
force,
|
|
28
|
+
status,
|
|
29
|
+
total,
|
|
30
|
+
done,
|
|
31
|
+
failed,
|
|
32
|
+
skipped,
|
|
33
|
+
startedAt,
|
|
34
|
+
finishedAt,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[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/Item.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Item
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**currentPath** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**targetPath** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**targetExists** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**applicable** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
**issue** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { Item } from '@openfilz-sdk/typescript-ee';
|
|
21
|
+
|
|
22
|
+
const instance: Item = {
|
|
23
|
+
documentId,
|
|
24
|
+
name,
|
|
25
|
+
type,
|
|
26
|
+
currentPath,
|
|
27
|
+
targetPath,
|
|
28
|
+
targetExists,
|
|
29
|
+
applicable,
|
|
30
|
+
issue,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ItemResult
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**outcome** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**detail** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ItemResult } from '@openfilz-sdk/typescript-ee';
|
|
16
|
+
|
|
17
|
+
const instance: ItemResult = {
|
|
18
|
+
documentId,
|
|
19
|
+
outcome,
|
|
20
|
+
detail,
|
|
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,20 @@
|
|
|
1
|
+
# ReorganizationApplyRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**itemIds** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReorganizationApplyRequest } from '@openfilz-sdk/typescript-ee';
|
|
14
|
+
|
|
15
|
+
const instance: ReorganizationApplyRequest = {
|
|
16
|
+
itemIds,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# ReorganizationApplyResult
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**planId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**moved** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**failed** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**skipped** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**createdFolders** | **Array<string>** | | [optional] [default to undefined]
|
|
14
|
+
**modifiedFolderIds** | **Array<string>** | | [optional] [default to undefined]
|
|
15
|
+
**plan** | [**ReorganizationPlanView**](ReorganizationPlanView.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { ReorganizationApplyResult } from '@openfilz-sdk/typescript-ee';
|
|
21
|
+
|
|
22
|
+
const instance: ReorganizationApplyResult = {
|
|
23
|
+
planId,
|
|
24
|
+
status,
|
|
25
|
+
moved,
|
|
26
|
+
failed,
|
|
27
|
+
skipped,
|
|
28
|
+
createdFolders,
|
|
29
|
+
modifiedFolderIds,
|
|
30
|
+
plan,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ReorganizationPlanView
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**rootFolderId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**rootFolderPath** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**rationale** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**items** | [**Array<Item>**](Item.md) | | [optional] [default to undefined]
|
|
14
|
+
**foldersToCreate** | **Array<string>** | | [optional] [default to undefined]
|
|
15
|
+
**applicable** | **number** | | [optional] [default to undefined]
|
|
16
|
+
**blocked** | **number** | | [optional] [default to undefined]
|
|
17
|
+
**createdBy** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**appliedAt** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**results** | [**Array<ItemResult>**](ItemResult.md) | | [optional] [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { ReorganizationPlanView } from '@openfilz-sdk/typescript-ee';
|
|
26
|
+
|
|
27
|
+
const instance: ReorganizationPlanView = {
|
|
28
|
+
id,
|
|
29
|
+
status,
|
|
30
|
+
rootFolderId,
|
|
31
|
+
rootFolderPath,
|
|
32
|
+
rationale,
|
|
33
|
+
items,
|
|
34
|
+
foldersToCreate,
|
|
35
|
+
applicable,
|
|
36
|
+
blocked,
|
|
37
|
+
createdBy,
|
|
38
|
+
createdAt,
|
|
39
|
+
appliedAt,
|
|
40
|
+
results,
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|