@openfilz-sdk/typescript-ee 1.9.7 → 1.9.9
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 +10 -2
- package/api/aichat-api.ts +73 -0
- package/api/aiembeddings-api.ts +201 -0
- package/api/document-insights-api.ts +82 -0
- package/api.ts +1 -0
- package/dist/api/aichat-api.d.ts +33 -0
- package/dist/api/aichat-api.js +68 -0
- package/dist/api/aiembeddings-api.d.ts +100 -0
- package/dist/api/aiembeddings-api.js +200 -0
- package/dist/api/document-insights-api.d.ts +37 -0
- package/dist/api/document-insights-api.js +77 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/aichat-api.d.ts +33 -0
- package/dist/esm/api/aichat-api.js +68 -0
- package/dist/esm/api/aiembeddings-api.d.ts +100 -0
- package/dist/esm/api/aiembeddings-api.js +193 -0
- package/dist/esm/api/document-insights-api.d.ts +37 -0
- package/dist/esm/api/document-insights-api.js +77 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/embedding-backfill-request.d.ts +15 -0
- package/dist/esm/models/embedding-backfill-request.js +14 -0
- package/dist/esm/models/embedding-backfill-status.d.ts +23 -0
- package/dist/esm/models/embedding-backfill-status.js +14 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/insight-category-update.d.ts +14 -0
- package/dist/esm/models/insight-category-update.js +14 -0
- package/dist/esm/models/reorganization-by-kind-request.d.ts +14 -0
- package/dist/esm/models/reorganization-by-kind-request.js +14 -0
- package/dist/esm/models/settings.d.ts +1 -0
- package/dist/models/embedding-backfill-request.d.ts +15 -0
- package/dist/models/embedding-backfill-request.js +15 -0
- package/dist/models/embedding-backfill-status.d.ts +23 -0
- package/dist/models/embedding-backfill-status.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/insight-category-update.d.ts +14 -0
- package/dist/models/insight-category-update.js +15 -0
- package/dist/models/reorganization-by-kind-request.d.ts +14 -0
- package/dist/models/reorganization-by-kind-request.js +15 -0
- package/dist/models/settings.d.ts +1 -0
- package/docs/AIChatApi.md +53 -0
- package/docs/AIEmbeddingsApi.md +111 -0
- package/docs/DocumentInsightsApi.md +56 -0
- package/docs/EmbeddingBackfillRequest.md +22 -0
- package/docs/EmbeddingBackfillStatus.md +38 -0
- package/docs/InsightCategoryUpdate.md +20 -0
- package/docs/ReorganizationByKindRequest.md +20 -0
- package/docs/Settings.md +2 -0
- package/models/embedding-backfill-request.ts +21 -0
- package/models/embedding-backfill-status.ts +29 -0
- package/models/index.ts +4 -0
- package/models/insight-category-update.ts +20 -0
- package/models/reorganization-by-kind-request.ts +20 -0
- package/models/settings.ts +1 -0
- package/package.json +1 -1
|
@@ -45,6 +45,8 @@ export * from './document-position';
|
|
|
45
45
|
export * from './document-version-info';
|
|
46
46
|
export * from './element-info';
|
|
47
47
|
export * from './embed-url-response';
|
|
48
|
+
export * from './embedding-backfill-request';
|
|
49
|
+
export * from './embedding-backfill-status';
|
|
48
50
|
export * from './enriched-audit-log';
|
|
49
51
|
export * from './enriched-audit-log-details';
|
|
50
52
|
export * from './feature-entitlement';
|
|
@@ -56,6 +58,7 @@ export * from './folder-response';
|
|
|
56
58
|
export * from './ingestion-status-dto';
|
|
57
59
|
export * from './insight-backfill-request';
|
|
58
60
|
export * from './insight-backfill-status';
|
|
61
|
+
export * from './insight-category-update';
|
|
59
62
|
export * from './instantiate-template-request';
|
|
60
63
|
export * from './item';
|
|
61
64
|
export * from './item-result';
|
|
@@ -84,6 +87,7 @@ export * from './rename-audit';
|
|
|
84
87
|
export * from './rename-request';
|
|
85
88
|
export * from './reorganization-apply-request';
|
|
86
89
|
export * from './reorganization-apply-result';
|
|
90
|
+
export * from './reorganization-by-kind-request';
|
|
87
91
|
export * from './reorganization-plan-view';
|
|
88
92
|
export * from './replace-audit';
|
|
89
93
|
export * from './response';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -45,6 +45,8 @@ export * from './document-position';
|
|
|
45
45
|
export * from './document-version-info';
|
|
46
46
|
export * from './element-info';
|
|
47
47
|
export * from './embed-url-response';
|
|
48
|
+
export * from './embedding-backfill-request';
|
|
49
|
+
export * from './embedding-backfill-status';
|
|
48
50
|
export * from './enriched-audit-log';
|
|
49
51
|
export * from './enriched-audit-log-details';
|
|
50
52
|
export * from './feature-entitlement';
|
|
@@ -56,6 +58,7 @@ export * from './folder-response';
|
|
|
56
58
|
export * from './ingestion-status-dto';
|
|
57
59
|
export * from './insight-backfill-request';
|
|
58
60
|
export * from './insight-backfill-status';
|
|
61
|
+
export * from './insight-category-update';
|
|
59
62
|
export * from './instantiate-template-request';
|
|
60
63
|
export * from './item';
|
|
61
64
|
export * from './item-result';
|
|
@@ -84,6 +87,7 @@ export * from './rename-audit';
|
|
|
84
87
|
export * from './rename-request';
|
|
85
88
|
export * from './reorganization-apply-request';
|
|
86
89
|
export * from './reorganization-apply-result';
|
|
90
|
+
export * from './reorganization-by-kind-request';
|
|
87
91
|
export * from './reorganization-plan-view';
|
|
88
92
|
export * from './replace-audit';
|
|
89
93
|
export * from './response';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 InsightCategoryUpdate {
|
|
13
|
+
'category'?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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 ReorganizationByKindRequest {
|
|
13
|
+
'rootFolderId'?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -19,6 +19,7 @@ export interface Settings {
|
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiUserSettingsEnabled'?: boolean;
|
|
21
21
|
'aiInsightsActive'?: boolean;
|
|
22
|
+
'aiInsightsCategories'?: Array<string>;
|
|
22
23
|
'aiAutoFileActive'?: boolean;
|
|
23
24
|
'signatureActive'?: boolean;
|
|
24
25
|
'pdfToolsActive'?: boolean;
|
|
@@ -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 EmbeddingBackfillRequest {
|
|
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 EmbeddingBackfillStatus {
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export * from './document-position';
|
|
|
45
45
|
export * from './document-version-info';
|
|
46
46
|
export * from './element-info';
|
|
47
47
|
export * from './embed-url-response';
|
|
48
|
+
export * from './embedding-backfill-request';
|
|
49
|
+
export * from './embedding-backfill-status';
|
|
48
50
|
export * from './enriched-audit-log';
|
|
49
51
|
export * from './enriched-audit-log-details';
|
|
50
52
|
export * from './feature-entitlement';
|
|
@@ -56,6 +58,7 @@ export * from './folder-response';
|
|
|
56
58
|
export * from './ingestion-status-dto';
|
|
57
59
|
export * from './insight-backfill-request';
|
|
58
60
|
export * from './insight-backfill-status';
|
|
61
|
+
export * from './insight-category-update';
|
|
59
62
|
export * from './instantiate-template-request';
|
|
60
63
|
export * from './item';
|
|
61
64
|
export * from './item-result';
|
|
@@ -84,6 +87,7 @@ export * from './rename-audit';
|
|
|
84
87
|
export * from './rename-request';
|
|
85
88
|
export * from './reorganization-apply-request';
|
|
86
89
|
export * from './reorganization-apply-result';
|
|
90
|
+
export * from './reorganization-by-kind-request';
|
|
87
91
|
export * from './reorganization-plan-view';
|
|
88
92
|
export * from './replace-audit';
|
|
89
93
|
export * from './response';
|
package/dist/models/index.js
CHANGED
|
@@ -61,6 +61,8 @@ __exportStar(require("./document-position"), exports);
|
|
|
61
61
|
__exportStar(require("./document-version-info"), exports);
|
|
62
62
|
__exportStar(require("./element-info"), exports);
|
|
63
63
|
__exportStar(require("./embed-url-response"), exports);
|
|
64
|
+
__exportStar(require("./embedding-backfill-request"), exports);
|
|
65
|
+
__exportStar(require("./embedding-backfill-status"), exports);
|
|
64
66
|
__exportStar(require("./enriched-audit-log"), exports);
|
|
65
67
|
__exportStar(require("./enriched-audit-log-details"), exports);
|
|
66
68
|
__exportStar(require("./feature-entitlement"), exports);
|
|
@@ -72,6 +74,7 @@ __exportStar(require("./folder-response"), exports);
|
|
|
72
74
|
__exportStar(require("./ingestion-status-dto"), exports);
|
|
73
75
|
__exportStar(require("./insight-backfill-request"), exports);
|
|
74
76
|
__exportStar(require("./insight-backfill-status"), exports);
|
|
77
|
+
__exportStar(require("./insight-category-update"), exports);
|
|
75
78
|
__exportStar(require("./instantiate-template-request"), exports);
|
|
76
79
|
__exportStar(require("./item"), exports);
|
|
77
80
|
__exportStar(require("./item-result"), exports);
|
|
@@ -100,6 +103,7 @@ __exportStar(require("./rename-audit"), exports);
|
|
|
100
103
|
__exportStar(require("./rename-request"), exports);
|
|
101
104
|
__exportStar(require("./reorganization-apply-request"), exports);
|
|
102
105
|
__exportStar(require("./reorganization-apply-result"), exports);
|
|
106
|
+
__exportStar(require("./reorganization-by-kind-request"), exports);
|
|
103
107
|
__exportStar(require("./reorganization-plan-view"), exports);
|
|
104
108
|
__exportStar(require("./replace-audit"), exports);
|
|
105
109
|
__exportStar(require("./response"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 InsightCategoryUpdate {
|
|
13
|
+
'category'?: string;
|
|
14
|
+
}
|
|
@@ -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,14 @@
|
|
|
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 ReorganizationByKindRequest {
|
|
13
|
+
'rootFolderId'?: string;
|
|
14
|
+
}
|
|
@@ -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 });
|
|
@@ -19,6 +19,7 @@ export interface Settings {
|
|
|
19
19
|
'aiActive'?: boolean;
|
|
20
20
|
'aiUserSettingsEnabled'?: boolean;
|
|
21
21
|
'aiInsightsActive'?: boolean;
|
|
22
|
+
'aiInsightsCategories'?: Array<string>;
|
|
22
23
|
'aiAutoFileActive'?: boolean;
|
|
23
24
|
'signatureActive'?: boolean;
|
|
24
25
|
'pdfToolsActive'?: boolean;
|
package/docs/AIChatApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
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
|
+
|[**proposeByKind**](#proposebykind) | **POST** /api/v1/ai/reorganization/by-kind | Propose a reorganisation by kind of document — no model involved|
|
|
14
15
|
|
|
15
16
|
# **apply**
|
|
16
17
|
> ReorganizationApplyResult apply()
|
|
@@ -366,3 +367,55 @@ This endpoint does not have any parameters.
|
|
|
366
367
|
|
|
367
368
|
[[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)
|
|
368
369
|
|
|
370
|
+
# **proposeByKind**
|
|
371
|
+
> ReorganizationPlanView proposeByKind()
|
|
372
|
+
|
|
373
|
+
Every folder of the scope holding documents of several kinds (their insight category) gets one sub-folder per kind, named like the existing folders (Invoices / Factures…), and the files move there. The answer is a stored plan to review and apply; a plan without an id means nothing needs splitting.
|
|
374
|
+
|
|
375
|
+
### Example
|
|
376
|
+
|
|
377
|
+
```typescript
|
|
378
|
+
import {
|
|
379
|
+
AIChatApi,
|
|
380
|
+
Configuration,
|
|
381
|
+
ReorganizationByKindRequest
|
|
382
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
383
|
+
|
|
384
|
+
const configuration = new Configuration();
|
|
385
|
+
const apiInstance = new AIChatApi(configuration);
|
|
386
|
+
|
|
387
|
+
let reorganizationByKindRequest: ReorganizationByKindRequest; // (optional)
|
|
388
|
+
|
|
389
|
+
const { status, data } = await apiInstance.proposeByKind(
|
|
390
|
+
reorganizationByKindRequest
|
|
391
|
+
);
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### Parameters
|
|
395
|
+
|
|
396
|
+
|Name | Type | Description | Notes|
|
|
397
|
+
|------------- | ------------- | ------------- | -------------|
|
|
398
|
+
| **reorganizationByKindRequest** | **ReorganizationByKindRequest**| | |
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
### Return type
|
|
402
|
+
|
|
403
|
+
**ReorganizationPlanView**
|
|
404
|
+
|
|
405
|
+
### Authorization
|
|
406
|
+
|
|
407
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
408
|
+
|
|
409
|
+
### HTTP request headers
|
|
410
|
+
|
|
411
|
+
- **Content-Type**: application/json
|
|
412
|
+
- **Accept**: application/json
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
### HTTP response details
|
|
416
|
+
| Status code | Description | Response headers |
|
|
417
|
+
|-------------|-------------|------------------|
|
|
418
|
+
|**200** | OK | - |
|
|
419
|
+
|
|
420
|
+
[[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)
|
|
421
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# AIEmbeddingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**backfill1**](#backfill1) | **POST** /api/v1/ai/embeddings/backfill | Embed existing documents|
|
|
8
|
+
|[**backfillStatus1**](#backfillstatus1) | **GET** /api/v1/ai/embeddings/backfill/{jobId} | Progress of an embedding backfill job|
|
|
9
|
+
|
|
10
|
+
# **backfill1**
|
|
11
|
+
> EmbeddingBackfillStatus backfill1()
|
|
12
|
+
|
|
13
|
+
Queues every FILE without a chunk in the vector store (or every FILE when force), optionally under one folder, and returns the job at once. Poll GET /backfill/{jobId}. Run it after wiping the vector store for an embedding-provider switch.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AIEmbeddingsApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
EmbeddingBackfillRequest
|
|
22
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new AIEmbeddingsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let embeddingBackfillRequest: EmbeddingBackfillRequest; // (optional)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.backfill1(
|
|
30
|
+
embeddingBackfillRequest
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **embeddingBackfillRequest** | **EmbeddingBackfillRequest**| | |
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**EmbeddingBackfillStatus**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: application/json
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | OK | - |
|
|
59
|
+
|
|
60
|
+
[[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)
|
|
61
|
+
|
|
62
|
+
# **backfillStatus1**
|
|
63
|
+
> EmbeddingBackfillStatus backfillStatus1()
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Example
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import {
|
|
70
|
+
AIEmbeddingsApi,
|
|
71
|
+
Configuration
|
|
72
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
73
|
+
|
|
74
|
+
const configuration = new Configuration();
|
|
75
|
+
const apiInstance = new AIEmbeddingsApi(configuration);
|
|
76
|
+
|
|
77
|
+
let jobId: string; // (default to undefined)
|
|
78
|
+
|
|
79
|
+
const { status, data } = await apiInstance.backfillStatus1(
|
|
80
|
+
jobId
|
|
81
|
+
);
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Parameters
|
|
85
|
+
|
|
86
|
+
|Name | Type | Description | Notes|
|
|
87
|
+
|------------- | ------------- | ------------- | -------------|
|
|
88
|
+
| **jobId** | [**string**] | | defaults to undefined|
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Return type
|
|
92
|
+
|
|
93
|
+
**EmbeddingBackfillStatus**
|
|
94
|
+
|
|
95
|
+
### Authorization
|
|
96
|
+
|
|
97
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
98
|
+
|
|
99
|
+
### HTTP request headers
|
|
100
|
+
|
|
101
|
+
- **Content-Type**: Not defined
|
|
102
|
+
- **Accept**: application/json
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### HTTP response details
|
|
106
|
+
| Status code | Description | Response headers |
|
|
107
|
+
|-------------|-------------|------------------|
|
|
108
|
+
|**200** | OK | - |
|
|
109
|
+
|
|
110
|
+
[[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)
|
|
111
|
+
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://localhost:8081*
|
|
|
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
9
|
|[**getInsights**](#getinsights) | **GET** /api/v1/documents/{documentId}/insights | Get the insights of a document|
|
|
10
|
+
|[**setCategory**](#setcategory) | **PATCH** /api/v1/documents/{documentId}/insights | Correct the kind of a document|
|
|
10
11
|
|
|
11
12
|
# **backfill**
|
|
12
13
|
> InsightBackfillStatus backfill()
|
|
@@ -161,3 +162,58 @@ const { status, data } = await apiInstance.getInsights(
|
|
|
161
162
|
|
|
162
163
|
[[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
164
|
|
|
165
|
+
# **setCategory**
|
|
166
|
+
> DocumentInsightView setCategory(insightCategoryUpdate)
|
|
167
|
+
|
|
168
|
+
Sets the tier-2 category to one of the deployment\'s categories (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
|
+
|
|
170
|
+
### Example
|
|
171
|
+
|
|
172
|
+
```typescript
|
|
173
|
+
import {
|
|
174
|
+
DocumentInsightsApi,
|
|
175
|
+
Configuration,
|
|
176
|
+
InsightCategoryUpdate
|
|
177
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
178
|
+
|
|
179
|
+
const configuration = new Configuration();
|
|
180
|
+
const apiInstance = new DocumentInsightsApi(configuration);
|
|
181
|
+
|
|
182
|
+
let documentId: string; // (default to undefined)
|
|
183
|
+
let insightCategoryUpdate: InsightCategoryUpdate; //
|
|
184
|
+
|
|
185
|
+
const { status, data } = await apiInstance.setCategory(
|
|
186
|
+
documentId,
|
|
187
|
+
insightCategoryUpdate
|
|
188
|
+
);
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Parameters
|
|
192
|
+
|
|
193
|
+
|Name | Type | Description | Notes|
|
|
194
|
+
|------------- | ------------- | ------------- | -------------|
|
|
195
|
+
| **insightCategoryUpdate** | **InsightCategoryUpdate**| | |
|
|
196
|
+
| **documentId** | [**string**] | | defaults to undefined|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
**DocumentInsightView**
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: application/json
|
|
210
|
+
- **Accept**: application/json
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
### HTTP response details
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
|**200** | OK | - |
|
|
217
|
+
|
|
218
|
+
[[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)
|
|
219
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# EmbeddingBackfillRequest
|
|
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 { EmbeddingBackfillRequest } from '@openfilz-sdk/typescript-ee';
|
|
15
|
+
|
|
16
|
+
const instance: EmbeddingBackfillRequest = {
|
|
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
|
+
# EmbeddingBackfillStatus
|
|
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 { EmbeddingBackfillStatus } from '@openfilz-sdk/typescript-ee';
|
|
23
|
+
|
|
24
|
+
const instance: EmbeddingBackfillStatus = {
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# InsightCategoryUpdate
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**category** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { InsightCategoryUpdate } from '@openfilz-sdk/typescript-ee';
|
|
14
|
+
|
|
15
|
+
const instance: InsightCategoryUpdate = {
|
|
16
|
+
category,
|
|
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,20 @@
|
|
|
1
|
+
# ReorganizationByKindRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**rootFolderId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ReorganizationByKindRequest } from '@openfilz-sdk/typescript-ee';
|
|
14
|
+
|
|
15
|
+
const instance: ReorganizationByKindRequest = {
|
|
16
|
+
rootFolderId,
|
|
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)
|