@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,55 @@
|
|
|
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 { PipelineStateFromJSON, PipelineStateToJSON, } from './PipelineState';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DocumentVersionMetadata interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDocumentVersionMetadata(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DocumentVersionMetadataFromJSON(json) {
|
|
22
|
+
return DocumentVersionMetadataFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
30
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
31
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
32
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
|
|
33
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
34
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
35
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DocumentVersionMetadataToJSON(json) {
|
|
39
|
+
return DocumentVersionMetadataToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'source_s3': value['sourceS3'],
|
|
47
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
48
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
49
|
+
'pipeline_state': PipelineStateToJSON(value['pipelineState']),
|
|
50
|
+
'total_pages': value['totalPages'],
|
|
51
|
+
'total_sections': value['totalSections'],
|
|
52
|
+
'total_chunks': value['totalChunks'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export const 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,55 @@
|
|
|
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 { PipelineStateFromJSON, PipelineStateToJSON, } from './PipelineState';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DocumentVersionMetadataUpdate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDocumentVersionMetadataUpdate(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DocumentVersionMetadataUpdateFromJSON(json) {
|
|
22
|
+
return DocumentVersionMetadataUpdateFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
30
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
31
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
32
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
|
|
33
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
34
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
35
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function DocumentVersionMetadataUpdateToJSON(json) {
|
|
39
|
+
return DocumentVersionMetadataUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'source_s3': value['sourceS3'],
|
|
47
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
48
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
49
|
+
'pipeline_state': PipelineStateToJSON(value['pipelineState']),
|
|
50
|
+
'total_pages': value['totalPages'],
|
|
51
|
+
'total_sections': value['totalSections'],
|
|
52
|
+
'total_chunks': value['totalChunks'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export const 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.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { DocumentVersionMetadataFromJSON, DocumentVersionMetadataToJSON, } from './DocumentVersionMetadata';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the DocumentVersionResponse interface.
|
|
16
17
|
*/
|
|
@@ -52,6 +53,8 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
52
53
|
'tenantId': json['tenant_id'],
|
|
53
54
|
'createdAt': (new Date(json['created_at'])),
|
|
54
55
|
'updatedAt': (new Date(json['updated_at'])),
|
|
56
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
57
|
+
'metadata': json['metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['metadata']),
|
|
55
58
|
};
|
|
56
59
|
}
|
|
57
60
|
export function DocumentVersionResponseToJSON(json) {
|
|
@@ -71,6 +74,8 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
71
74
|
'tenant_id': value['tenantId'],
|
|
72
75
|
'created_at': value['createdAt'].toISOString(),
|
|
73
76
|
'updated_at': value['updatedAt'].toISOString(),
|
|
77
|
+
'asset_s3_url': value['assetS3Url'],
|
|
78
|
+
'metadata': DocumentVersionMetadataToJSON(value['metadata']),
|
|
74
79
|
};
|
|
75
80
|
}
|
|
76
81
|
export const 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}
|
|
@@ -21,7 +21,7 @@ export function instanceOfFolderResponse(value) {
|
|
|
21
21
|
return false;
|
|
22
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined)
|
|
25
25
|
return false;
|
|
26
26
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
27
27
|
return false;
|
|
@@ -44,7 +44,7 @@ export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'id': json['id'],
|
|
45
45
|
'pathPartId': json['path_part_id'],
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentFolderId': json['parent_folder_id'],
|
|
48
48
|
'materializedPath': json['materialized_path'],
|
|
49
49
|
'tenantId': json['tenant_id'],
|
|
50
50
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -62,7 +62,7 @@ export function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
'id': value['id'],
|
|
63
63
|
'path_part_id': value['pathPartId'],
|
|
64
64
|
'name': value['name'],
|
|
65
|
-
'
|
|
65
|
+
'parent_folder_id': value['parentFolderId'],
|
|
66
66
|
'materialized_path': value['materializedPath'],
|
|
67
67
|
'tenant_id': value['tenantId'],
|
|
68
68
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Response with workflow execution details.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IngestDocumentResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface IngestDocumentResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Temporal workflow ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IngestDocumentResponse
|
|
22
|
+
*/
|
|
23
|
+
workflowId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IngestDocumentResponse
|
|
28
|
+
*/
|
|
29
|
+
documentId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IngestDocumentResponse
|
|
34
|
+
*/
|
|
35
|
+
documentVersionId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IngestDocumentResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIngestDocumentResponse(value: object): value is IngestDocumentResponse;
|
|
41
|
+
export declare function IngestDocumentResponseFromJSON(json: any): IngestDocumentResponse;
|
|
42
|
+
export declare function IngestDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestDocumentResponse;
|
|
43
|
+
export declare function IngestDocumentResponseToJSON(json: any): IngestDocumentResponse;
|
|
44
|
+
export declare function IngestDocumentResponseToJSONTyped(value?: IngestDocumentResponse | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const IngestDocumentResponsePropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the IngestDocumentResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfIngestDocumentResponse(value) {
|
|
18
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function IngestDocumentResponseFromJSON(json) {
|
|
27
|
+
return IngestDocumentResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function IngestDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'workflowId': json['workflow_id'],
|
|
35
|
+
'documentId': json['document_id'],
|
|
36
|
+
'documentVersionId': json['document_version_id'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function IngestDocumentResponseToJSON(json) {
|
|
40
|
+
return IngestDocumentResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function IngestDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'workflow_id': value['workflowId'],
|
|
48
|
+
'document_id': value['documentId'],
|
|
49
|
+
'document_version_id': value['documentVersionId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export const IngestDocumentResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { WorkflowSummaryResponse } from './WorkflowSummaryResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseWorkflowSummaryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseWorkflowSummaryResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<WorkflowSummaryResponse>}
|
|
22
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<WorkflowSummaryResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseWorkflowSummaryResponse(value: object): value is PaginatedResponseWorkflowSummaryResponse;
|
|
48
|
+
export declare function PaginatedResponseWorkflowSummaryResponseFromJSON(json: any): PaginatedResponseWorkflowSummaryResponse;
|
|
49
|
+
export declare function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowSummaryResponse;
|
|
50
|
+
export declare function PaginatedResponseWorkflowSummaryResponseToJSON(json: any): PaginatedResponseWorkflowSummaryResponse;
|
|
51
|
+
export declare function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value?: PaginatedResponseWorkflowSummaryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { WorkflowSummaryResponseFromJSON, WorkflowSummaryResponseToJSON, } from './WorkflowSummaryResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseWorkflowSummaryResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(WorkflowSummaryResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponseWorkflowSummaryResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(WorkflowSummaryResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap = {
|
|
58
|
+
total: {
|
|
59
|
+
minimum: 0,
|
|
60
|
+
exclusiveMinimum: false,
|
|
61
|
+
},
|
|
62
|
+
limit: {
|
|
63
|
+
minimum: 1,
|
|
64
|
+
exclusiveMinimum: false,
|
|
65
|
+
},
|
|
66
|
+
offset: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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 { PipelineStatus } from './PipelineStatus';
|
|
13
|
+
/**
|
|
14
|
+
* Pipeline execution state tracking.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PipelineState
|
|
17
|
+
*/
|
|
18
|
+
export interface PipelineState {
|
|
19
|
+
/**
|
|
20
|
+
* Current status of the ingestion pipeline
|
|
21
|
+
* @type {PipelineStatus}
|
|
22
|
+
* @memberof PipelineState
|
|
23
|
+
*/
|
|
24
|
+
status: PipelineStatus;
|
|
25
|
+
/**
|
|
26
|
+
* Timestamp of the last pipeline execution attempt
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof PipelineState
|
|
29
|
+
*/
|
|
30
|
+
lastRunTimestamp: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PipelineState
|
|
35
|
+
*/
|
|
36
|
+
lastActivity?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Error message if pipeline failed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineState
|
|
41
|
+
*/
|
|
42
|
+
error?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Temporal workflow ID for tracking the ingestion run
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PipelineState
|
|
47
|
+
*/
|
|
48
|
+
temporalWorkflowId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of chunks processed (for progress tracking)
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PipelineState
|
|
53
|
+
*/
|
|
54
|
+
chunksProcessed?: number;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PipelineState interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfPipelineState(value: object): value is PipelineState;
|
|
60
|
+
export declare function PipelineStateFromJSON(json: any): PipelineState;
|
|
61
|
+
export declare function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineState;
|
|
62
|
+
export declare function PipelineStateToJSON(json: any): PipelineState;
|
|
63
|
+
export declare function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDiscriminator?: boolean): any;
|
|
64
|
+
export declare const PipelineStatePropertyValidationAttributesMap: {
|
|
65
|
+
[property: string]: {
|
|
66
|
+
maxLength?: number;
|
|
67
|
+
minLength?: number;
|
|
68
|
+
pattern?: string;
|
|
69
|
+
maximum?: number;
|
|
70
|
+
exclusiveMaximum?: boolean;
|
|
71
|
+
minimum?: number;
|
|
72
|
+
exclusiveMinimum?: boolean;
|
|
73
|
+
multipleOf?: number;
|
|
74
|
+
maxItems?: number;
|
|
75
|
+
minItems?: number;
|
|
76
|
+
uniqueItems?: boolean;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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 PipelineState interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPipelineState(value) {
|
|
19
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function PipelineStateFromJSON(json) {
|
|
26
|
+
return PipelineStateFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
34
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
35
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
36
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
37
|
+
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
38
|
+
'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function PipelineStateToJSON(json) {
|
|
42
|
+
return PipelineStateToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
50
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
51
|
+
'last_activity': value['lastActivity'],
|
|
52
|
+
'error': value['error'],
|
|
53
|
+
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
54
|
+
'chunks_processed': value['chunksProcessed'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PipelineStatePropertyValidationAttributesMap = {};
|