@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
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DocumentVersionMetadata } from './DocumentVersionMetadata';
|
|
17
|
+
import {
|
|
18
|
+
DocumentVersionMetadataFromJSON,
|
|
19
|
+
DocumentVersionMetadataFromJSONTyped,
|
|
20
|
+
DocumentVersionMetadataToJSON,
|
|
21
|
+
DocumentVersionMetadataToJSONTyped,
|
|
22
|
+
} from './DocumentVersionMetadata';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* DocumentVersion response model.
|
|
18
26
|
*
|
|
@@ -76,6 +84,18 @@ export interface DocumentVersionResponse {
|
|
|
76
84
|
* @memberof DocumentVersionResponse
|
|
77
85
|
*/
|
|
78
86
|
updatedAt: Date;
|
|
87
|
+
/**
|
|
88
|
+
* Presigned URL to download the source document (6-hour validity)
|
|
89
|
+
* @type {string}
|
|
90
|
+
* @memberof DocumentVersionResponse
|
|
91
|
+
*/
|
|
92
|
+
assetS3Url?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Version metadata (S3 artifacts, pipeline state, statistics)
|
|
95
|
+
* @type {DocumentVersionMetadata}
|
|
96
|
+
* @memberof DocumentVersionResponse
|
|
97
|
+
*/
|
|
98
|
+
metadata?: DocumentVersionMetadata;
|
|
79
99
|
}
|
|
80
100
|
|
|
81
101
|
/**
|
|
@@ -113,6 +133,8 @@ export function DocumentVersionResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
113
133
|
'tenantId': json['tenant_id'],
|
|
114
134
|
'createdAt': (new Date(json['created_at'])),
|
|
115
135
|
'updatedAt': (new Date(json['updated_at'])),
|
|
136
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
137
|
+
'metadata': json['metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['metadata']),
|
|
116
138
|
};
|
|
117
139
|
}
|
|
118
140
|
|
|
@@ -136,6 +158,8 @@ export function DocumentVersionResponseToJSONTyped(value?: DocumentVersionRespon
|
|
|
136
158
|
'tenant_id': value['tenantId'],
|
|
137
159
|
'created_at': value['createdAt'].toISOString(),
|
|
138
160
|
'updated_at': value['updatedAt'].toISOString(),
|
|
161
|
+
'asset_s3_url': value['assetS3Url'],
|
|
162
|
+
'metadata': DocumentVersionMetadataToJSON(value['metadata']),
|
|
139
163
|
};
|
|
140
164
|
}
|
|
141
165
|
|
|
@@ -38,11 +38,11 @@ export interface FolderResponse {
|
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
40
|
/**
|
|
41
|
-
* Parent
|
|
41
|
+
* Parent folder ID
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof FolderResponse
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
parentFolderId: string;
|
|
46
46
|
/**
|
|
47
47
|
* Full materialized path from root
|
|
48
48
|
* @type {string}
|
|
@@ -76,7 +76,7 @@ export function instanceOfFolderResponse(value: object): value is FolderResponse
|
|
|
76
76
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
77
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
78
78
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
|
-
if (!('
|
|
79
|
+
if (!('parentFolderId' in value) || value['parentFolderId'] === undefined) return false;
|
|
80
80
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
81
81
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
82
82
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -97,7 +97,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
97
97
|
'id': json['id'],
|
|
98
98
|
'pathPartId': json['path_part_id'],
|
|
99
99
|
'name': json['name'],
|
|
100
|
-
'
|
|
100
|
+
'parentFolderId': json['parent_folder_id'],
|
|
101
101
|
'materializedPath': json['materialized_path'],
|
|
102
102
|
'tenantId': json['tenant_id'],
|
|
103
103
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -119,7 +119,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
|
|
|
119
119
|
'id': value['id'],
|
|
120
120
|
'path_part_id': value['pathPartId'],
|
|
121
121
|
'name': value['name'],
|
|
122
|
-
'
|
|
122
|
+
'parent_folder_id': value['parentFolderId'],
|
|
123
123
|
'materialized_path': value['materializedPath'],
|
|
124
124
|
'tenant_id': value['tenantId'],
|
|
125
125
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response with workflow execution details.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IngestDocumentResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface IngestDocumentResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Temporal workflow ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IngestDocumentResponse
|
|
26
|
+
*/
|
|
27
|
+
workflowId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IngestDocumentResponse
|
|
32
|
+
*/
|
|
33
|
+
documentId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IngestDocumentResponse
|
|
38
|
+
*/
|
|
39
|
+
documentVersionId: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IngestDocumentResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIngestDocumentResponse(value: object): value is IngestDocumentResponse {
|
|
46
|
+
if (!('workflowId' in value) || value['workflowId'] === undefined) return false;
|
|
47
|
+
if (!('documentId' in value) || value['documentId'] === undefined) return false;
|
|
48
|
+
if (!('documentVersionId' in value) || value['documentVersionId'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IngestDocumentResponseFromJSON(json: any): IngestDocumentResponse {
|
|
53
|
+
return IngestDocumentResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IngestDocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngestDocumentResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'workflowId': json['workflow_id'],
|
|
63
|
+
'documentId': json['document_id'],
|
|
64
|
+
'documentVersionId': json['document_version_id'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IngestDocumentResponseToJSON(json: any): IngestDocumentResponse {
|
|
69
|
+
return IngestDocumentResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IngestDocumentResponseToJSONTyped(value?: IngestDocumentResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'workflow_id': value['workflowId'],
|
|
80
|
+
'document_id': value['documentId'],
|
|
81
|
+
'document_version_id': value['documentVersionId'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export const IngestDocumentResponsePropertyValidationAttributesMap: {
|
|
86
|
+
[property: string]: {
|
|
87
|
+
maxLength?: number,
|
|
88
|
+
minLength?: number,
|
|
89
|
+
pattern?: string,
|
|
90
|
+
maximum?: number,
|
|
91
|
+
exclusiveMaximum?: boolean,
|
|
92
|
+
minimum?: number,
|
|
93
|
+
exclusiveMinimum?: boolean,
|
|
94
|
+
multipleOf?: number,
|
|
95
|
+
maxItems?: number,
|
|
96
|
+
minItems?: number,
|
|
97
|
+
uniqueItems?: boolean
|
|
98
|
+
}
|
|
99
|
+
} = {
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { WorkflowSummaryResponse } from './WorkflowSummaryResponse';
|
|
17
|
+
import {
|
|
18
|
+
WorkflowSummaryResponseFromJSON,
|
|
19
|
+
WorkflowSummaryResponseFromJSONTyped,
|
|
20
|
+
WorkflowSummaryResponseToJSON,
|
|
21
|
+
WorkflowSummaryResponseToJSONTyped,
|
|
22
|
+
} from './WorkflowSummaryResponse';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PaginatedResponseWorkflowSummaryResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PaginatedResponseWorkflowSummaryResponse {
|
|
30
|
+
/**
|
|
31
|
+
* List of items
|
|
32
|
+
* @type {Array<WorkflowSummaryResponse>}
|
|
33
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
34
|
+
*/
|
|
35
|
+
items: Array<WorkflowSummaryResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Total number of items
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
40
|
+
*/
|
|
41
|
+
total: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of items per page
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
46
|
+
*/
|
|
47
|
+
limit: number;
|
|
48
|
+
/**
|
|
49
|
+
* Number of items to skip
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PaginatedResponseWorkflowSummaryResponse
|
|
52
|
+
*/
|
|
53
|
+
offset: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PaginatedResponseWorkflowSummaryResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPaginatedResponseWorkflowSummaryResponse(value: object): value is PaginatedResponseWorkflowSummaryResponse {
|
|
60
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
61
|
+
if (!('total' in value) || value['total'] === undefined) return false;
|
|
62
|
+
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
63
|
+
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSON(json: any): PaginatedResponseWorkflowSummaryResponse {
|
|
68
|
+
return PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PaginatedResponseWorkflowSummaryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowSummaryResponse {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'items': ((json['items'] as Array<any>).map(WorkflowSummaryResponseFromJSON)),
|
|
78
|
+
'total': json['total'],
|
|
79
|
+
'limit': json['limit'],
|
|
80
|
+
'offset': json['offset'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSON(json: any): PaginatedResponseWorkflowSummaryResponse {
|
|
85
|
+
return PaginatedResponseWorkflowSummaryResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PaginatedResponseWorkflowSummaryResponseToJSONTyped(value?: PaginatedResponseWorkflowSummaryResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'items': ((value['items'] as Array<any>).map(WorkflowSummaryResponseToJSON)),
|
|
96
|
+
'total': value['total'],
|
|
97
|
+
'limit': value['limit'],
|
|
98
|
+
'offset': value['offset'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export const PaginatedResponseWorkflowSummaryResponsePropertyValidationAttributesMap: {
|
|
103
|
+
[property: string]: {
|
|
104
|
+
maxLength?: number,
|
|
105
|
+
minLength?: number,
|
|
106
|
+
pattern?: string,
|
|
107
|
+
maximum?: number,
|
|
108
|
+
exclusiveMaximum?: boolean,
|
|
109
|
+
minimum?: number,
|
|
110
|
+
exclusiveMinimum?: boolean,
|
|
111
|
+
multipleOf?: number,
|
|
112
|
+
maxItems?: number,
|
|
113
|
+
minItems?: number,
|
|
114
|
+
uniqueItems?: boolean
|
|
115
|
+
}
|
|
116
|
+
} = {
|
|
117
|
+
total: {
|
|
118
|
+
minimum: 0,
|
|
119
|
+
exclusiveMinimum: false,
|
|
120
|
+
},
|
|
121
|
+
limit: {
|
|
122
|
+
minimum: 1,
|
|
123
|
+
exclusiveMinimum: false,
|
|
124
|
+
},
|
|
125
|
+
offset: {
|
|
126
|
+
minimum: 0,
|
|
127
|
+
exclusiveMinimum: false,
|
|
128
|
+
},
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PipelineStatus } from './PipelineStatus';
|
|
17
|
+
import {
|
|
18
|
+
PipelineStatusFromJSON,
|
|
19
|
+
PipelineStatusFromJSONTyped,
|
|
20
|
+
PipelineStatusToJSON,
|
|
21
|
+
PipelineStatusToJSONTyped,
|
|
22
|
+
} from './PipelineStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Pipeline execution state tracking.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PipelineState
|
|
28
|
+
*/
|
|
29
|
+
export interface PipelineState {
|
|
30
|
+
/**
|
|
31
|
+
* Current status of the ingestion pipeline
|
|
32
|
+
* @type {PipelineStatus}
|
|
33
|
+
* @memberof PipelineState
|
|
34
|
+
*/
|
|
35
|
+
status: PipelineStatus;
|
|
36
|
+
/**
|
|
37
|
+
* Timestamp of the last pipeline execution attempt
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof PipelineState
|
|
40
|
+
*/
|
|
41
|
+
lastRunTimestamp: Date;
|
|
42
|
+
/**
|
|
43
|
+
* Name of the last activity that executed (e.g., 'docling_conversion')
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PipelineState
|
|
46
|
+
*/
|
|
47
|
+
lastActivity?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Error message if pipeline failed
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PipelineState
|
|
52
|
+
*/
|
|
53
|
+
error?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Temporal workflow ID for tracking the ingestion run
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof PipelineState
|
|
58
|
+
*/
|
|
59
|
+
temporalWorkflowId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Number of chunks processed (for progress tracking)
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof PipelineState
|
|
64
|
+
*/
|
|
65
|
+
chunksProcessed?: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the PipelineState interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfPipelineState(value: object): value is PipelineState {
|
|
74
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
75
|
+
if (!('lastRunTimestamp' in value) || value['lastRunTimestamp'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PipelineStateFromJSON(json: any): PipelineState {
|
|
80
|
+
return PipelineStateFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PipelineStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineState {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'status': PipelineStatusFromJSON(json['status']),
|
|
90
|
+
'lastRunTimestamp': (new Date(json['last_run_timestamp'])),
|
|
91
|
+
'lastActivity': json['last_activity'] == null ? undefined : json['last_activity'],
|
|
92
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
93
|
+
'temporalWorkflowId': json['temporal_workflow_id'] == null ? undefined : json['temporal_workflow_id'],
|
|
94
|
+
'chunksProcessed': json['chunks_processed'] == null ? undefined : json['chunks_processed'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function PipelineStateToJSON(json: any): PipelineState {
|
|
99
|
+
return PipelineStateToJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PipelineStateToJSONTyped(value?: PipelineState | null, ignoreDiscriminator: boolean = false): any {
|
|
103
|
+
if (value == null) {
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
|
|
109
|
+
'status': PipelineStatusToJSON(value['status']),
|
|
110
|
+
'last_run_timestamp': value['lastRunTimestamp'].toISOString(),
|
|
111
|
+
'last_activity': value['lastActivity'],
|
|
112
|
+
'error': value['error'],
|
|
113
|
+
'temporal_workflow_id': value['temporalWorkflowId'],
|
|
114
|
+
'chunks_processed': value['chunksProcessed'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export const PipelineStatePropertyValidationAttributesMap: {
|
|
119
|
+
[property: string]: {
|
|
120
|
+
maxLength?: number,
|
|
121
|
+
minLength?: number,
|
|
122
|
+
pattern?: string,
|
|
123
|
+
maximum?: number,
|
|
124
|
+
exclusiveMaximum?: boolean,
|
|
125
|
+
minimum?: number,
|
|
126
|
+
exclusiveMinimum?: boolean,
|
|
127
|
+
multipleOf?: number,
|
|
128
|
+
maxItems?: number,
|
|
129
|
+
minItems?: number,
|
|
130
|
+
uniqueItems?: boolean
|
|
131
|
+
}
|
|
132
|
+
} = {
|
|
133
|
+
}
|
|
134
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Status of the ingestion pipeline workflow.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PipelineStatus = {
|
|
21
|
+
Pending: 'pending',
|
|
22
|
+
Processing: 'processing',
|
|
23
|
+
Completed: 'completed',
|
|
24
|
+
Failed: 'failed',
|
|
25
|
+
Cancelled: 'cancelled'
|
|
26
|
+
} as const;
|
|
27
|
+
export type PipelineStatus = typeof PipelineStatus[keyof typeof PipelineStatus];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function instanceOfPipelineStatus(value: any): boolean {
|
|
31
|
+
for (const key in PipelineStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(PipelineStatus, key)) {
|
|
33
|
+
if (PipelineStatus[key as keyof typeof PipelineStatus] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PipelineStatusFromJSON(json: any): PipelineStatus {
|
|
42
|
+
return PipelineStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PipelineStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineStatus {
|
|
46
|
+
return json as PipelineStatus;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PipelineStatusToJSON(value?: PipelineStatus | null): any {
|
|
50
|
+
return value as any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PipelineStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PipelineStatus {
|
|
54
|
+
return value as PipelineStatus;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -26,11 +26,11 @@ export interface UpdateDocumentRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
|
-
* New parent folder
|
|
29
|
+
* New parent folder ID (for move)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateDocumentRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
parentFolderId?: string;
|
|
34
34
|
/**
|
|
35
35
|
* New active version ID
|
|
36
36
|
* @type {string}
|
|
@@ -57,7 +57,7 @@ export function UpdateDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
57
57
|
return {
|
|
58
58
|
|
|
59
59
|
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
-
'
|
|
60
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
61
61
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -74,7 +74,7 @@ export function UpdateDocumentRequestToJSONTyped(value?: UpdateDocumentRequest |
|
|
|
74
74
|
return {
|
|
75
75
|
|
|
76
76
|
'name': value['name'],
|
|
77
|
-
'
|
|
77
|
+
'parent_folder_id': value['parentFolderId'],
|
|
78
78
|
'active_version_id': value['activeVersionId'],
|
|
79
79
|
};
|
|
80
80
|
}
|
|
@@ -26,11 +26,11 @@ export interface UpdateFolderRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
name?: string;
|
|
28
28
|
/**
|
|
29
|
-
* New parent folder
|
|
29
|
+
* New parent folder ID (for move)
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UpdateFolderRequest
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
parentFolderId?: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -51,7 +51,7 @@ export function UpdateFolderRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
51
51
|
return {
|
|
52
52
|
|
|
53
53
|
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
-
'
|
|
54
|
+
'parentFolderId': json['parent_folder_id'] == null ? undefined : json['parent_folder_id'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -67,7 +67,7 @@ export function UpdateFolderRequestToJSONTyped(value?: UpdateFolderRequest | nul
|
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
69
|
'name': value['name'],
|
|
70
|
-
'
|
|
70
|
+
'parent_folder_id': value['parentFolderId'],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Supported workflow actions.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const WorkflowAction = {
|
|
21
|
+
Rerun: 'rerun',
|
|
22
|
+
Cancel: 'cancel'
|
|
23
|
+
} as const;
|
|
24
|
+
export type WorkflowAction = typeof WorkflowAction[keyof typeof WorkflowAction];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfWorkflowAction(value: any): boolean {
|
|
28
|
+
for (const key in WorkflowAction) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowAction, key)) {
|
|
30
|
+
if (WorkflowAction[key as keyof typeof WorkflowAction] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function WorkflowActionFromJSON(json: any): WorkflowAction {
|
|
39
|
+
return WorkflowActionFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function WorkflowActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowAction {
|
|
43
|
+
return json as WorkflowAction;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function WorkflowActionToJSON(value?: WorkflowAction | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function WorkflowActionToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowAction {
|
|
51
|
+
return value as WorkflowAction;
|
|
52
|
+
}
|
|
53
|
+
|