@knowledge-stack/ksapi 1.14.1 → 1.16.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 +7 -0
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +30 -1
- package/dist/apis/AuthApi.js +39 -0
- package/dist/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/apis/DocumentVersionsApi.js +37 -0
- package/dist/apis/DocumentsApi.d.ts +34 -1
- package/dist/apis/DocumentsApi.js +59 -0
- package/dist/apis/InvitesApi.d.ts +29 -0
- package/dist/apis/InvitesApi.js +31 -0
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/AuthApi.d.ts +30 -1
- package/dist/esm/apis/AuthApi.js +40 -1
- package/dist/esm/apis/DocumentVersionsApi.d.ts +32 -1
- package/dist/esm/apis/DocumentVersionsApi.js +38 -1
- package/dist/esm/apis/DocumentsApi.d.ts +34 -1
- package/dist/esm/apis/DocumentsApi.js +60 -1
- package/dist/esm/apis/InvitesApi.d.ts +29 -0
- package/dist/esm/apis/InvitesApi.js +31 -0
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/models/AssumeUserRequest.d.ts +53 -0
- package/dist/esm/models/AssumeUserRequest.js +48 -0
- package/dist/esm/models/AssumeUserResponse.d.ts +47 -0
- package/dist/esm/models/AssumeUserResponse.js +44 -0
- 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/IngestDocumentResponse.d.ts +59 -0
- package/dist/esm/models/IngestDocumentResponse.js +52 -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 +27 -0
- package/dist/esm/models/PipelineStatus.js +45 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AssumeUserRequest.d.ts +53 -0
- package/dist/models/AssumeUserRequest.js +56 -0
- package/dist/models/AssumeUserResponse.d.ts +47 -0
- package/dist/models/AssumeUserResponse.js +52 -0
- 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/IngestDocumentResponse.d.ts +59 -0
- package/dist/models/IngestDocumentResponse.js +60 -0
- package/dist/models/PipelineState.d.ts +78 -0
- package/dist/models/PipelineState.js +65 -0
- package/dist/models/PipelineStatus.d.ts +27 -0
- package/dist/models/PipelineStatus.js +53 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +80 -0
- package/src/apis/DocumentVersionsApi.ts +76 -0
- package/src/apis/DocumentsApi.ts +103 -0
- package/src/apis/InvitesApi.ts +60 -0
- package/src/apis/TenantsApi.ts +4 -4
- package/src/models/AssumeUserRequest.ts +92 -0
- package/src/models/AssumeUserResponse.ts +83 -0
- package/src/models/DocumentVersionMetadata.ts +143 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +141 -0
- package/src/models/DocumentVersionResponse.ts +24 -0
- package/src/models/IngestDocumentResponse.ts +101 -0
- package/src/models/PipelineState.ts +134 -0
- package/src/models/PipelineStatus.ts +55 -0
- package/src/models/index.ts +7 -0
|
@@ -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,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 = {};
|
|
@@ -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,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 = {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* Status of the ingestion pipeline workflow.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PipelineStatus: {
|
|
17
|
+
readonly Pending: "pending";
|
|
18
|
+
readonly Processing: "processing";
|
|
19
|
+
readonly Completed: "completed";
|
|
20
|
+
readonly Failed: "failed";
|
|
21
|
+
};
|
|
22
|
+
export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
|
|
23
|
+
export declare function instanceOfPipelineStatus(value: any): boolean;
|
|
24
|
+
export declare function PipelineStatusFromJSON(json: any): PipelineStatus;
|
|
25
|
+
export declare function PipelineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStatus;
|
|
26
|
+
export declare function PipelineStatusToJSON(value?: PipelineStatus | null): any;
|
|
27
|
+
export declare function PipelineStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PipelineStatus;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Status of the ingestion pipeline workflow.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PipelineStatus = {
|
|
19
|
+
Pending: 'pending',
|
|
20
|
+
Processing: 'processing',
|
|
21
|
+
Completed: 'completed',
|
|
22
|
+
Failed: 'failed'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfPipelineStatus(value) {
|
|
25
|
+
for (const key in PipelineStatus) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(PipelineStatus, key)) {
|
|
27
|
+
if (PipelineStatus[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function PipelineStatusFromJSON(json) {
|
|
35
|
+
return PipelineStatusFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PipelineStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function PipelineStatusToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function PipelineStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|