@knowledge-stack/ksapi 1.15.0 → 1.17.0
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 +11 -0
- package/README.md +2 -2
- package/dist/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/apis/DocumentVersionsApi.js +37 -0
- package/dist/apis/DocumentsApi.d.ts +44 -11
- package/dist/apis/DocumentsApi.js +65 -6
- package/dist/apis/FoldersApi.d.ts +10 -10
- package/dist/apis/FoldersApi.js +6 -6
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/apis/WorkflowsApi.d.ts +117 -0
- package/dist/apis/WorkflowsApi.js +137 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/esm/apis/DocumentVersionsApi.js +38 -1
- package/dist/esm/apis/DocumentsApi.d.ts +44 -11
- package/dist/esm/apis/DocumentsApi.js +66 -7
- package/dist/esm/apis/FoldersApi.d.ts +10 -10
- package/dist/esm/apis/FoldersApi.js +6 -6
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/WorkflowsApi.d.ts +117 -0
- package/dist/esm/apis/WorkflowsApi.js +133 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/CreateDocumentRequest.js +3 -3
- package/dist/esm/models/CreateFolderRequest.d.ts +2 -2
- package/dist/esm/models/CreateFolderRequest.js +3 -3
- package/dist/esm/models/DocumentResponse.d.ts +2 -2
- package/dist/esm/models/DocumentResponse.js +3 -3
- package/dist/esm/models/DocumentVersionMetadata.d.ts +89 -0
- package/dist/esm/models/DocumentVersionMetadata.js +55 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +87 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +55 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +13 -0
- package/dist/esm/models/DocumentVersionResponse.js +5 -0
- package/dist/esm/models/FolderResponse.d.ts +2 -2
- package/dist/esm/models/FolderResponse.js +3 -3
- package/dist/esm/models/IngestDocumentResponse.d.ts +59 -0
- package/dist/esm/models/IngestDocumentResponse.js +52 -0
- package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowSummaryResponse.js +70 -0
- package/dist/esm/models/PipelineState.d.ts +78 -0
- package/dist/esm/models/PipelineState.js +57 -0
- package/dist/esm/models/PipelineStatus.d.ts +28 -0
- package/dist/esm/models/PipelineStatus.js +46 -0
- package/dist/esm/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/UpdateDocumentRequest.js +2 -2
- package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/esm/models/UpdateFolderRequest.js +2 -2
- package/dist/esm/models/WorkflowAction.d.ts +25 -0
- package/dist/esm/models/WorkflowAction.js +43 -0
- package/dist/esm/models/WorkflowActionResponse.d.ts +59 -0
- package/dist/esm/models/WorkflowActionResponse.js +52 -0
- package/dist/esm/models/WorkflowDetailResponse.d.ts +132 -0
- package/dist/esm/models/WorkflowDetailResponse.js +93 -0
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +90 -0
- package/dist/esm/models/WorkflowSummaryResponse.js +69 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/models/CreateDocumentRequest.js +3 -3
- package/dist/models/CreateFolderRequest.d.ts +2 -2
- package/dist/models/CreateFolderRequest.js +3 -3
- package/dist/models/DocumentResponse.d.ts +2 -2
- package/dist/models/DocumentResponse.js +3 -3
- package/dist/models/DocumentVersionMetadata.d.ts +89 -0
- package/dist/models/DocumentVersionMetadata.js +63 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +87 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +63 -0
- package/dist/models/DocumentVersionResponse.d.ts +13 -0
- package/dist/models/DocumentVersionResponse.js +5 -0
- package/dist/models/FolderResponse.d.ts +2 -2
- package/dist/models/FolderResponse.js +3 -3
- package/dist/models/IngestDocumentResponse.d.ts +59 -0
- package/dist/models/IngestDocumentResponse.js +60 -0
- package/dist/models/PaginatedResponseWorkflowSummaryResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowSummaryResponse.js +78 -0
- package/dist/models/PipelineState.d.ts +78 -0
- package/dist/models/PipelineState.js +65 -0
- package/dist/models/PipelineStatus.d.ts +28 -0
- package/dist/models/PipelineStatus.js +54 -0
- package/dist/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/models/UpdateDocumentRequest.js +2 -2
- package/dist/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/models/UpdateFolderRequest.js +2 -2
- package/dist/models/WorkflowAction.d.ts +25 -0
- package/dist/models/WorkflowAction.js +51 -0
- package/dist/models/WorkflowActionResponse.d.ts +59 -0
- package/dist/models/WorkflowActionResponse.js +60 -0
- package/dist/models/WorkflowDetailResponse.d.ts +132 -0
- package/dist/models/WorkflowDetailResponse.js +101 -0
- package/dist/models/WorkflowSummaryResponse.d.ts +90 -0
- package/dist/models/WorkflowSummaryResponse.js +77 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/DocumentVersionsApi.ts +76 -0
- package/src/apis/DocumentsApi.ts +115 -12
- package/src/apis/FoldersApi.ts +12 -12
- package/src/apis/TenantsApi.ts +4 -4
- package/src/apis/WorkflowsApi.ts +249 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateDocumentRequest.ts +5 -5
- package/src/models/CreateFolderRequest.ts +5 -5
- package/src/models/DocumentResponse.ts +5 -5
- package/src/models/DocumentVersionMetadata.ts +143 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +141 -0
- package/src/models/DocumentVersionResponse.ts +24 -0
- package/src/models/FolderResponse.ts +5 -5
- package/src/models/IngestDocumentResponse.ts +101 -0
- package/src/models/PaginatedResponseWorkflowSummaryResponse.ts +130 -0
- package/src/models/PipelineState.ts +134 -0
- package/src/models/PipelineStatus.ts +56 -0
- package/src/models/UpdateDocumentRequest.ts +4 -4
- package/src/models/UpdateFolderRequest.ts +4 -4
- package/src/models/WorkflowAction.ts +53 -0
- package/src/models/WorkflowActionResponse.ts +101 -0
- package/src/models/WorkflowDetailResponse.ts +215 -0
- package/src/models/WorkflowSummaryResponse.ts +154 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.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
|
+
import { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the WorkflowSummaryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfWorkflowSummaryResponse(value) {
|
|
19
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function WorkflowSummaryResponseFromJSON(json) {
|
|
34
|
+
return WorkflowSummaryResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function WorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'workflowId': json['workflow_id'],
|
|
42
|
+
'documentId': json['document_id'],
|
|
43
|
+
'documentVersionId': json['document_version_id'],
|
|
44
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
45
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
46
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
47
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function WorkflowSummaryResponseToJSON(json) {
|
|
52
|
+
return WorkflowSummaryResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function WorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'workflow_id': value['workflowId'],
|
|
60
|
+
'document_id': value['documentId'],
|
|
61
|
+
'document_version_id': value['documentVersionId'],
|
|
62
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
63
|
+
'last_activity': value['lastActivity'],
|
|
64
|
+
'error': value['error'],
|
|
65
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
66
|
+
'created_at': value['createdAt'].toISOString(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export const WorkflowSummaryResponsePropertyValidationAttributesMap = {};
|
|
@@ -19,6 +19,8 @@ export * from './DocumentContentPathPart';
|
|
|
19
19
|
export * from './DocumentOrigin';
|
|
20
20
|
export * from './DocumentResponse';
|
|
21
21
|
export * from './DocumentType';
|
|
22
|
+
export * from './DocumentVersionMetadata';
|
|
23
|
+
export * from './DocumentVersionMetadataUpdate';
|
|
22
24
|
export * from './DocumentVersionResponse';
|
|
23
25
|
export * from './EmailSentResponse';
|
|
24
26
|
export * from './EmailVerificationRequest';
|
|
@@ -28,6 +30,7 @@ export * from './FolderResponse';
|
|
|
28
30
|
export * from './HTTPValidationError';
|
|
29
31
|
export * from './HealthCheckResponse';
|
|
30
32
|
export * from './IdpType';
|
|
33
|
+
export * from './IngestDocumentResponse';
|
|
31
34
|
export * from './InviteResponse';
|
|
32
35
|
export * from './InviteStatus';
|
|
33
36
|
export * from './InviteUserRequest';
|
|
@@ -49,6 +52,7 @@ export * from './PaginatedResponseTenantResponse';
|
|
|
49
52
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
50
53
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
51
54
|
export * from './PaginatedResponseThreadResponse';
|
|
55
|
+
export * from './PaginatedResponseWorkflowSummaryResponse';
|
|
52
56
|
export * from './PartType';
|
|
53
57
|
export * from './PasswordResetRequest';
|
|
54
58
|
export * from './PasswordResetWithTokenRequest';
|
|
@@ -56,6 +60,8 @@ export * from './PathOrder';
|
|
|
56
60
|
export * from './PathPartResponse';
|
|
57
61
|
export * from './PermissionCapability';
|
|
58
62
|
export * from './PermissionResponse';
|
|
63
|
+
export * from './PipelineState';
|
|
64
|
+
export * from './PipelineStatus';
|
|
59
65
|
export * from './Polygon';
|
|
60
66
|
export * from './PolygonReference';
|
|
61
67
|
export * from './RootResponse';
|
|
@@ -82,3 +88,7 @@ export * from './UpdateUserRequest';
|
|
|
82
88
|
export * from './UserResponse';
|
|
83
89
|
export * from './ValidationError';
|
|
84
90
|
export * from './ValidationErrorLocInner';
|
|
91
|
+
export * from './WorkflowAction';
|
|
92
|
+
export * from './WorkflowActionResponse';
|
|
93
|
+
export * from './WorkflowDetailResponse';
|
|
94
|
+
export * from './WorkflowSummaryResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export * from './DocumentContentPathPart';
|
|
|
21
21
|
export * from './DocumentOrigin';
|
|
22
22
|
export * from './DocumentResponse';
|
|
23
23
|
export * from './DocumentType';
|
|
24
|
+
export * from './DocumentVersionMetadata';
|
|
25
|
+
export * from './DocumentVersionMetadataUpdate';
|
|
24
26
|
export * from './DocumentVersionResponse';
|
|
25
27
|
export * from './EmailSentResponse';
|
|
26
28
|
export * from './EmailVerificationRequest';
|
|
@@ -30,6 +32,7 @@ export * from './FolderResponse';
|
|
|
30
32
|
export * from './HTTPValidationError';
|
|
31
33
|
export * from './HealthCheckResponse';
|
|
32
34
|
export * from './IdpType';
|
|
35
|
+
export * from './IngestDocumentResponse';
|
|
33
36
|
export * from './InviteResponse';
|
|
34
37
|
export * from './InviteStatus';
|
|
35
38
|
export * from './InviteUserRequest';
|
|
@@ -51,6 +54,7 @@ export * from './PaginatedResponseTenantResponse';
|
|
|
51
54
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
52
55
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
53
56
|
export * from './PaginatedResponseThreadResponse';
|
|
57
|
+
export * from './PaginatedResponseWorkflowSummaryResponse';
|
|
54
58
|
export * from './PartType';
|
|
55
59
|
export * from './PasswordResetRequest';
|
|
56
60
|
export * from './PasswordResetWithTokenRequest';
|
|
@@ -58,6 +62,8 @@ export * from './PathOrder';
|
|
|
58
62
|
export * from './PathPartResponse';
|
|
59
63
|
export * from './PermissionCapability';
|
|
60
64
|
export * from './PermissionResponse';
|
|
65
|
+
export * from './PipelineState';
|
|
66
|
+
export * from './PipelineStatus';
|
|
61
67
|
export * from './Polygon';
|
|
62
68
|
export * from './PolygonReference';
|
|
63
69
|
export * from './RootResponse';
|
|
@@ -84,3 +90,7 @@ export * from './UpdateUserRequest';
|
|
|
84
90
|
export * from './UserResponse';
|
|
85
91
|
export * from './ValidationError';
|
|
86
92
|
export * from './ValidationErrorLocInner';
|
|
93
|
+
export * from './WorkflowAction';
|
|
94
|
+
export * from './WorkflowActionResponse';
|
|
95
|
+
export * from './WorkflowDetailResponse';
|
|
96
|
+
export * from './WorkflowSummaryResponse';
|
|
@@ -24,11 +24,11 @@ export interface CreateDocumentRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
|
-
* Parent folder
|
|
27
|
+
* Parent folder ID
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof CreateDocumentRequest
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
parentFolderId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Type of document (PDF, UNKNOWN, etc.)
|
|
34
34
|
* @type {DocumentType}
|
|
@@ -27,7 +27,7 @@ const DocumentType_1 = require("./DocumentType");
|
|
|
27
27
|
function instanceOfCreateDocumentRequest(value) {
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
31
31
|
return false;
|
|
32
32
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
33
33
|
return false;
|
|
@@ -44,7 +44,7 @@ function CreateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentFolderId': json['parent_folder_id'],
|
|
48
48
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
49
49
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
50
50
|
};
|
|
@@ -58,7 +58,7 @@ function CreateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
'name': value['name'],
|
|
61
|
-
'
|
|
61
|
+
'parent_folder_id': value['parentFolderId'],
|
|
62
62
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
63
63
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
64
64
|
};
|
|
@@ -22,11 +22,11 @@ export interface CreateFolderRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
* Parent folder
|
|
25
|
+
* Parent folder ID
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentFolderId: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreateFolderRequest interface.
|
|
@@ -25,7 +25,7 @@ exports.CreateFolderRequestToJSONTyped = CreateFolderRequestToJSONTyped;
|
|
|
25
25
|
function instanceOfCreateFolderRequest(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ function CreateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': json['name'],
|
|
41
|
-
'
|
|
41
|
+
'parentFolderId': json['parent_folder_id'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function CreateFolderRequestToJSON(json) {
|
|
@@ -50,7 +50,7 @@ function CreateFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'name': value['name'],
|
|
53
|
-
'
|
|
53
|
+
'parent_folder_id': value['parentFolderId'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
exports.CreateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -37,11 +37,11 @@ export interface DocumentResponse {
|
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Parent
|
|
40
|
+
* Parent folder ID
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof DocumentResponse
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
parentFolderId: string;
|
|
45
45
|
/**
|
|
46
46
|
* Type of document
|
|
47
47
|
* @type {DocumentType}
|
|
@@ -32,7 +32,7 @@ function instanceOfDocumentResponse(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('name' in value) || value['name'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -63,7 +63,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'id': json['id'],
|
|
64
64
|
'pathPartId': json['path_part_id'],
|
|
65
65
|
'name': json['name'],
|
|
66
|
-
'
|
|
66
|
+
'parentFolderId': json['parent_folder_id'],
|
|
67
67
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
68
68
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
69
69
|
'activeVersionId': json['active_version_id'],
|
|
@@ -85,7 +85,7 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
85
|
'id': value['id'],
|
|
86
86
|
'path_part_id': value['pathPartId'],
|
|
87
87
|
'name': value['name'],
|
|
88
|
-
'
|
|
88
|
+
'parent_folder_id': value['parentFolderId'],
|
|
89
89
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
90
90
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
91
91
|
'active_version_id': value['activeVersionId'],
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PipelineState } from './PipelineState';
|
|
13
|
+
/**
|
|
14
|
+
* Schema for document_version.metadata JSONB field.
|
|
15
|
+
*
|
|
16
|
+
* Tracks S3 URLs for generated artifacts, pipeline execution state,
|
|
17
|
+
* and document statistics. Convention-based paths (images, page screenshots)
|
|
18
|
+
* are derived from document_id/document_version_id via s3_paths helpers,
|
|
19
|
+
* using a flat S3 layout: documents/{document_id}/{document_version_id}/...
|
|
20
|
+
* @export
|
|
21
|
+
* @interface DocumentVersionMetadata
|
|
22
|
+
*/
|
|
23
|
+
export interface DocumentVersionMetadata {
|
|
24
|
+
/**
|
|
25
|
+
* S3 URL to the source document (set by API on upload)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DocumentVersionMetadata
|
|
28
|
+
*/
|
|
29
|
+
sourceS3?: string;
|
|
30
|
+
/**
|
|
31
|
+
* S3 URL to watermark-removed source document
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DocumentVersionMetadata
|
|
34
|
+
*/
|
|
35
|
+
cleanedSourceS3?: string;
|
|
36
|
+
/**
|
|
37
|
+
* S3 URL to the Docling JSON conversion output
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DocumentVersionMetadata
|
|
40
|
+
*/
|
|
41
|
+
doclingJsonS3?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Current state of the ingestion pipeline workflow
|
|
44
|
+
* @type {PipelineState}
|
|
45
|
+
* @memberof DocumentVersionMetadata
|
|
46
|
+
*/
|
|
47
|
+
pipelineState?: PipelineState;
|
|
48
|
+
/**
|
|
49
|
+
* Total number of pages in the document
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof DocumentVersionMetadata
|
|
52
|
+
*/
|
|
53
|
+
totalPages?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Total number of sections created
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof DocumentVersionMetadata
|
|
58
|
+
*/
|
|
59
|
+
totalSections?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Total number of chunks created
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DocumentVersionMetadata
|
|
64
|
+
*/
|
|
65
|
+
totalChunks?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the DocumentVersionMetadata interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfDocumentVersionMetadata(value: object): value is DocumentVersionMetadata;
|
|
71
|
+
export declare function DocumentVersionMetadataFromJSON(json: any): DocumentVersionMetadata;
|
|
72
|
+
export declare function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionMetadata;
|
|
73
|
+
export declare function DocumentVersionMetadataToJSON(json: any): DocumentVersionMetadata;
|
|
74
|
+
export declare function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
75
|
+
export declare const DocumentVersionMetadataPropertyValidationAttributesMap: {
|
|
76
|
+
[property: string]: {
|
|
77
|
+
maxLength?: number;
|
|
78
|
+
minLength?: number;
|
|
79
|
+
pattern?: string;
|
|
80
|
+
maximum?: number;
|
|
81
|
+
exclusiveMaximum?: boolean;
|
|
82
|
+
minimum?: number;
|
|
83
|
+
exclusiveMinimum?: boolean;
|
|
84
|
+
multipleOf?: number;
|
|
85
|
+
maxItems?: number;
|
|
86
|
+
minItems?: number;
|
|
87
|
+
uniqueItems?: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.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 });
|
|
16
|
+
exports.DocumentVersionMetadataPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionMetadata = instanceOfDocumentVersionMetadata;
|
|
18
|
+
exports.DocumentVersionMetadataFromJSON = DocumentVersionMetadataFromJSON;
|
|
19
|
+
exports.DocumentVersionMetadataFromJSONTyped = DocumentVersionMetadataFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionMetadataToJSON = DocumentVersionMetadataToJSON;
|
|
21
|
+
exports.DocumentVersionMetadataToJSONTyped = DocumentVersionMetadataToJSONTyped;
|
|
22
|
+
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DocumentVersionMetadata interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDocumentVersionMetadata(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DocumentVersionMetadataFromJSON(json) {
|
|
30
|
+
return DocumentVersionMetadataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
38
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
39
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
40
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
|
|
41
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
42
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
43
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DocumentVersionMetadataToJSON(json) {
|
|
47
|
+
return DocumentVersionMetadataToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'source_s3': value['sourceS3'],
|
|
55
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
57
|
+
'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
|
|
58
|
+
'total_pages': value['totalPages'],
|
|
59
|
+
'total_sections': value['totalSections'],
|
|
60
|
+
'total_chunks': value['totalChunks'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.DocumentVersionMetadataPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PipelineState } from './PipelineState';
|
|
13
|
+
/**
|
|
14
|
+
* Partial update schema for document version metadata.
|
|
15
|
+
*
|
|
16
|
+
* All fields are optional. Only non-``None`` fields are merged into
|
|
17
|
+
* the existing metadata dict.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DocumentVersionMetadataUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentVersionMetadataUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
26
|
+
*/
|
|
27
|
+
sourceS3?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
32
|
+
*/
|
|
33
|
+
cleanedSourceS3?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
38
|
+
*/
|
|
39
|
+
doclingJsonS3?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {PipelineState}
|
|
43
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
44
|
+
*/
|
|
45
|
+
pipelineState?: PipelineState;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
50
|
+
*/
|
|
51
|
+
totalPages?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
56
|
+
*/
|
|
57
|
+
totalSections?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
62
|
+
*/
|
|
63
|
+
totalChunks?: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the DocumentVersionMetadataUpdate interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfDocumentVersionMetadataUpdate(value: object): value is DocumentVersionMetadataUpdate;
|
|
69
|
+
export declare function DocumentVersionMetadataUpdateFromJSON(json: any): DocumentVersionMetadataUpdate;
|
|
70
|
+
export declare function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionMetadataUpdate;
|
|
71
|
+
export declare function DocumentVersionMetadataUpdateToJSON(json: any): DocumentVersionMetadataUpdate;
|
|
72
|
+
export declare function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersionMetadataUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
73
|
+
export declare const DocumentVersionMetadataUpdatePropertyValidationAttributesMap: {
|
|
74
|
+
[property: string]: {
|
|
75
|
+
maxLength?: number;
|
|
76
|
+
minLength?: number;
|
|
77
|
+
pattern?: string;
|
|
78
|
+
maximum?: number;
|
|
79
|
+
exclusiveMaximum?: boolean;
|
|
80
|
+
minimum?: number;
|
|
81
|
+
exclusiveMinimum?: boolean;
|
|
82
|
+
multipleOf?: number;
|
|
83
|
+
maxItems?: number;
|
|
84
|
+
minItems?: number;
|
|
85
|
+
uniqueItems?: boolean;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.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 });
|
|
16
|
+
exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionMetadataUpdate = instanceOfDocumentVersionMetadataUpdate;
|
|
18
|
+
exports.DocumentVersionMetadataUpdateFromJSON = DocumentVersionMetadataUpdateFromJSON;
|
|
19
|
+
exports.DocumentVersionMetadataUpdateFromJSONTyped = DocumentVersionMetadataUpdateFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionMetadataUpdateToJSON = DocumentVersionMetadataUpdateToJSON;
|
|
21
|
+
exports.DocumentVersionMetadataUpdateToJSONTyped = DocumentVersionMetadataUpdateToJSONTyped;
|
|
22
|
+
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DocumentVersionMetadataUpdate interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDocumentVersionMetadataUpdate(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DocumentVersionMetadataUpdateFromJSON(json) {
|
|
30
|
+
return DocumentVersionMetadataUpdateFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
38
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
39
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
40
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
|
|
41
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
42
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
43
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DocumentVersionMetadataUpdateToJSON(json) {
|
|
47
|
+
return DocumentVersionMetadataUpdateToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'source_s3': value['sourceS3'],
|
|
55
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
57
|
+
'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
|
|
58
|
+
'total_pages': value['totalPages'],
|
|
59
|
+
'total_sections': value['totalSections'],
|
|
60
|
+
'total_chunks': value['totalChunks'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = {};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentVersionMetadata } from './DocumentVersionMetadata';
|
|
12
13
|
/**
|
|
13
14
|
* DocumentVersion response model.
|
|
14
15
|
*
|
|
@@ -72,6 +73,18 @@ export interface DocumentVersionResponse {
|
|
|
72
73
|
* @memberof DocumentVersionResponse
|
|
73
74
|
*/
|
|
74
75
|
updatedAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Presigned URL to download the source document (6-hour validity)
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof DocumentVersionResponse
|
|
80
|
+
*/
|
|
81
|
+
assetS3Url?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Version metadata (S3 artifacts, pipeline state, statistics)
|
|
84
|
+
* @type {DocumentVersionMetadata}
|
|
85
|
+
* @memberof DocumentVersionResponse
|
|
86
|
+
*/
|
|
87
|
+
metadata?: DocumentVersionMetadata;
|
|
75
88
|
}
|
|
76
89
|
/**
|
|
77
90
|
* Check if a given object implements the DocumentVersionResponse interface.
|
|
@@ -19,6 +19,7 @@ exports.DocumentVersionResponseFromJSON = DocumentVersionResponseFromJSON;
|
|
|
19
19
|
exports.DocumentVersionResponseFromJSONTyped = DocumentVersionResponseFromJSONTyped;
|
|
20
20
|
exports.DocumentVersionResponseToJSON = DocumentVersionResponseToJSON;
|
|
21
21
|
exports.DocumentVersionResponseToJSONTyped = DocumentVersionResponseToJSONTyped;
|
|
22
|
+
const DocumentVersionMetadata_1 = require("./DocumentVersionMetadata");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DocumentVersionResponse interface.
|
|
24
25
|
*/
|
|
@@ -60,6 +61,8 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'tenantId': json['tenant_id'],
|
|
61
62
|
'createdAt': (new Date(json['created_at'])),
|
|
62
63
|
'updatedAt': (new Date(json['updated_at'])),
|
|
64
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
65
|
+
'metadata': json['metadata'] == null ? undefined : (0, DocumentVersionMetadata_1.DocumentVersionMetadataFromJSON)(json['metadata']),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
function DocumentVersionResponseToJSON(json) {
|
|
@@ -79,6 +82,8 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
82
|
'tenant_id': value['tenantId'],
|
|
80
83
|
'created_at': value['createdAt'].toISOString(),
|
|
81
84
|
'updated_at': value['updatedAt'].toISOString(),
|
|
85
|
+
'asset_s3_url': value['assetS3Url'],
|
|
86
|
+
'metadata': (0, DocumentVersionMetadata_1.DocumentVersionMetadataToJSON)(value['metadata']),
|
|
82
87
|
};
|
|
83
88
|
}
|
|
84
89
|
exports.DocumentVersionResponsePropertyValidationAttributesMap = {};
|
|
@@ -34,11 +34,11 @@ export interface FolderResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
|
-
* Parent
|
|
37
|
+
* Parent folder ID
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof FolderResponse
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
parentFolderId: string;
|
|
42
42
|
/**
|
|
43
43
|
* Full materialized path from root
|
|
44
44
|
* @type {string}
|