@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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './AssumeUserRequest';
|
|
2
|
+
export * from './AssumeUserResponse';
|
|
1
3
|
export * from './ChunkLineageResponse';
|
|
2
4
|
export * from './ChunkMetadataInput';
|
|
3
5
|
export * from './ChunkMetadataOutput';
|
|
@@ -19,6 +21,8 @@ export * from './DocumentContentPathPart';
|
|
|
19
21
|
export * from './DocumentOrigin';
|
|
20
22
|
export * from './DocumentResponse';
|
|
21
23
|
export * from './DocumentType';
|
|
24
|
+
export * from './DocumentVersionMetadata';
|
|
25
|
+
export * from './DocumentVersionMetadataUpdate';
|
|
22
26
|
export * from './DocumentVersionResponse';
|
|
23
27
|
export * from './EmailSentResponse';
|
|
24
28
|
export * from './EmailVerificationRequest';
|
|
@@ -28,6 +32,7 @@ export * from './FolderResponse';
|
|
|
28
32
|
export * from './HTTPValidationError';
|
|
29
33
|
export * from './HealthCheckResponse';
|
|
30
34
|
export * from './IdpType';
|
|
35
|
+
export * from './IngestDocumentResponse';
|
|
31
36
|
export * from './InviteResponse';
|
|
32
37
|
export * from './InviteStatus';
|
|
33
38
|
export * from './InviteUserRequest';
|
|
@@ -56,6 +61,8 @@ export * from './PathOrder';
|
|
|
56
61
|
export * from './PathPartResponse';
|
|
57
62
|
export * from './PermissionCapability';
|
|
58
63
|
export * from './PermissionResponse';
|
|
64
|
+
export * from './PipelineState';
|
|
65
|
+
export * from './PipelineStatus';
|
|
59
66
|
export * from './Polygon';
|
|
60
67
|
export * from './PolygonReference';
|
|
61
68
|
export * from './RootResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AssumeUserRequest';
|
|
4
|
+
export * from './AssumeUserResponse';
|
|
3
5
|
export * from './ChunkLineageResponse';
|
|
4
6
|
export * from './ChunkMetadataInput';
|
|
5
7
|
export * from './ChunkMetadataOutput';
|
|
@@ -21,6 +23,8 @@ export * from './DocumentContentPathPart';
|
|
|
21
23
|
export * from './DocumentOrigin';
|
|
22
24
|
export * from './DocumentResponse';
|
|
23
25
|
export * from './DocumentType';
|
|
26
|
+
export * from './DocumentVersionMetadata';
|
|
27
|
+
export * from './DocumentVersionMetadataUpdate';
|
|
24
28
|
export * from './DocumentVersionResponse';
|
|
25
29
|
export * from './EmailSentResponse';
|
|
26
30
|
export * from './EmailVerificationRequest';
|
|
@@ -30,6 +34,7 @@ export * from './FolderResponse';
|
|
|
30
34
|
export * from './HTTPValidationError';
|
|
31
35
|
export * from './HealthCheckResponse';
|
|
32
36
|
export * from './IdpType';
|
|
37
|
+
export * from './IngestDocumentResponse';
|
|
33
38
|
export * from './InviteResponse';
|
|
34
39
|
export * from './InviteStatus';
|
|
35
40
|
export * from './InviteUserRequest';
|
|
@@ -58,6 +63,8 @@ export * from './PathOrder';
|
|
|
58
63
|
export * from './PathPartResponse';
|
|
59
64
|
export * from './PermissionCapability';
|
|
60
65
|
export * from './PermissionResponse';
|
|
66
|
+
export * from './PipelineState';
|
|
67
|
+
export * from './PipelineStatus';
|
|
61
68
|
export * from './Polygon';
|
|
62
69
|
export * from './PolygonReference';
|
|
63
70
|
export * from './RootResponse';
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssumeUserRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssumeUserRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssumeUserRequest
|
|
22
|
+
*/
|
|
23
|
+
tenantId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssumeUserRequest
|
|
28
|
+
*/
|
|
29
|
+
userId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AssumeUserRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAssumeUserRequest(value: object): value is AssumeUserRequest;
|
|
35
|
+
export declare function AssumeUserRequestFromJSON(json: any): AssumeUserRequest;
|
|
36
|
+
export declare function AssumeUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssumeUserRequest;
|
|
37
|
+
export declare function AssumeUserRequestToJSON(json: any): AssumeUserRequest;
|
|
38
|
+
export declare function AssumeUserRequestToJSONTyped(value?: AssumeUserRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const AssumeUserRequestPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssumeUserRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfAssumeUserRequest = instanceOfAssumeUserRequest;
|
|
18
|
+
exports.AssumeUserRequestFromJSON = AssumeUserRequestFromJSON;
|
|
19
|
+
exports.AssumeUserRequestFromJSONTyped = AssumeUserRequestFromJSONTyped;
|
|
20
|
+
exports.AssumeUserRequestToJSON = AssumeUserRequestToJSON;
|
|
21
|
+
exports.AssumeUserRequestToJSONTyped = AssumeUserRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssumeUserRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssumeUserRequest(value) {
|
|
26
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AssumeUserRequestFromJSON(json) {
|
|
33
|
+
return AssumeUserRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AssumeUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'tenantId': json['tenant_id'],
|
|
41
|
+
'userId': json['user_id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AssumeUserRequestToJSON(json) {
|
|
45
|
+
return AssumeUserRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AssumeUserRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'tenant_id': value['tenantId'],
|
|
53
|
+
'user_id': value['userId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.AssumeUserRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssumeUserResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AssumeUserResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssumeUserResponse
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AssumeUserResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAssumeUserResponse(value: object): value is AssumeUserResponse;
|
|
29
|
+
export declare function AssumeUserResponseFromJSON(json: any): AssumeUserResponse;
|
|
30
|
+
export declare function AssumeUserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssumeUserResponse;
|
|
31
|
+
export declare function AssumeUserResponseToJSON(json: any): AssumeUserResponse;
|
|
32
|
+
export declare function AssumeUserResponseToJSONTyped(value?: AssumeUserResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const AssumeUserResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssumeUserResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfAssumeUserResponse = instanceOfAssumeUserResponse;
|
|
18
|
+
exports.AssumeUserResponseFromJSON = AssumeUserResponseFromJSON;
|
|
19
|
+
exports.AssumeUserResponseFromJSONTyped = AssumeUserResponseFromJSONTyped;
|
|
20
|
+
exports.AssumeUserResponseToJSON = AssumeUserResponseToJSON;
|
|
21
|
+
exports.AssumeUserResponseToJSONTyped = AssumeUserResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssumeUserResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssumeUserResponse(value) {
|
|
26
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AssumeUserResponseFromJSON(json) {
|
|
31
|
+
return AssumeUserResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AssumeUserResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'token': json['token'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AssumeUserResponseToJSON(json) {
|
|
42
|
+
return AssumeUserResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AssumeUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'token': value['token'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.AssumeUserResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PipelineState } from './PipelineState';
|
|
13
|
+
/**
|
|
14
|
+
* Schema for document_version.metadata JSONB field.
|
|
15
|
+
*
|
|
16
|
+
* Tracks S3 URLs for generated artifacts, pipeline execution state,
|
|
17
|
+
* and document statistics. Convention-based paths (images, page screenshots)
|
|
18
|
+
* are derived from document_id/document_version_id via s3_paths helpers,
|
|
19
|
+
* using a flat S3 layout: documents/{document_id}/{document_version_id}/...
|
|
20
|
+
* @export
|
|
21
|
+
* @interface DocumentVersionMetadata
|
|
22
|
+
*/
|
|
23
|
+
export interface DocumentVersionMetadata {
|
|
24
|
+
/**
|
|
25
|
+
* S3 URL to the source document (set by API on upload)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DocumentVersionMetadata
|
|
28
|
+
*/
|
|
29
|
+
sourceS3?: string;
|
|
30
|
+
/**
|
|
31
|
+
* S3 URL to watermark-removed source document
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DocumentVersionMetadata
|
|
34
|
+
*/
|
|
35
|
+
cleanedSourceS3?: string;
|
|
36
|
+
/**
|
|
37
|
+
* S3 URL to the Docling JSON conversion output
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DocumentVersionMetadata
|
|
40
|
+
*/
|
|
41
|
+
doclingJsonS3?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Current state of the ingestion pipeline workflow
|
|
44
|
+
* @type {PipelineState}
|
|
45
|
+
* @memberof DocumentVersionMetadata
|
|
46
|
+
*/
|
|
47
|
+
pipelineState?: PipelineState;
|
|
48
|
+
/**
|
|
49
|
+
* Total number of pages in the document
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof DocumentVersionMetadata
|
|
52
|
+
*/
|
|
53
|
+
totalPages?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Total number of sections created
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof DocumentVersionMetadata
|
|
58
|
+
*/
|
|
59
|
+
totalSections?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Total number of chunks created
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof DocumentVersionMetadata
|
|
64
|
+
*/
|
|
65
|
+
totalChunks?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the DocumentVersionMetadata interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfDocumentVersionMetadata(value: object): value is DocumentVersionMetadata;
|
|
71
|
+
export declare function DocumentVersionMetadataFromJSON(json: any): DocumentVersionMetadata;
|
|
72
|
+
export declare function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionMetadata;
|
|
73
|
+
export declare function DocumentVersionMetadataToJSON(json: any): DocumentVersionMetadata;
|
|
74
|
+
export declare function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
75
|
+
export declare const DocumentVersionMetadataPropertyValidationAttributesMap: {
|
|
76
|
+
[property: string]: {
|
|
77
|
+
maxLength?: number;
|
|
78
|
+
minLength?: number;
|
|
79
|
+
pattern?: string;
|
|
80
|
+
maximum?: number;
|
|
81
|
+
exclusiveMaximum?: boolean;
|
|
82
|
+
minimum?: number;
|
|
83
|
+
exclusiveMinimum?: boolean;
|
|
84
|
+
multipleOf?: number;
|
|
85
|
+
maxItems?: number;
|
|
86
|
+
minItems?: number;
|
|
87
|
+
uniqueItems?: boolean;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DocumentVersionMetadataPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionMetadata = instanceOfDocumentVersionMetadata;
|
|
18
|
+
exports.DocumentVersionMetadataFromJSON = DocumentVersionMetadataFromJSON;
|
|
19
|
+
exports.DocumentVersionMetadataFromJSONTyped = DocumentVersionMetadataFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionMetadataToJSON = DocumentVersionMetadataToJSON;
|
|
21
|
+
exports.DocumentVersionMetadataToJSONTyped = DocumentVersionMetadataToJSONTyped;
|
|
22
|
+
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DocumentVersionMetadata interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDocumentVersionMetadata(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DocumentVersionMetadataFromJSON(json) {
|
|
30
|
+
return DocumentVersionMetadataFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
38
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
39
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
40
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
|
|
41
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
42
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
43
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DocumentVersionMetadataToJSON(json) {
|
|
47
|
+
return DocumentVersionMetadataToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'source_s3': value['sourceS3'],
|
|
55
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
57
|
+
'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
|
|
58
|
+
'total_pages': value['totalPages'],
|
|
59
|
+
'total_sections': value['totalSections'],
|
|
60
|
+
'total_chunks': value['totalChunks'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.DocumentVersionMetadataPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PipelineState } from './PipelineState';
|
|
13
|
+
/**
|
|
14
|
+
* Partial update schema for document version metadata.
|
|
15
|
+
*
|
|
16
|
+
* All fields are optional. Only non-``None`` fields are merged into
|
|
17
|
+
* the existing metadata dict.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DocumentVersionMetadataUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface DocumentVersionMetadataUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
26
|
+
*/
|
|
27
|
+
sourceS3?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
32
|
+
*/
|
|
33
|
+
cleanedSourceS3?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
38
|
+
*/
|
|
39
|
+
doclingJsonS3?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {PipelineState}
|
|
43
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
44
|
+
*/
|
|
45
|
+
pipelineState?: PipelineState;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
50
|
+
*/
|
|
51
|
+
totalPages?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
56
|
+
*/
|
|
57
|
+
totalSections?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof DocumentVersionMetadataUpdate
|
|
62
|
+
*/
|
|
63
|
+
totalChunks?: number;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the DocumentVersionMetadataUpdate interface.
|
|
67
|
+
*/
|
|
68
|
+
export declare function instanceOfDocumentVersionMetadataUpdate(value: object): value is DocumentVersionMetadataUpdate;
|
|
69
|
+
export declare function DocumentVersionMetadataUpdateFromJSON(json: any): DocumentVersionMetadataUpdate;
|
|
70
|
+
export declare function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionMetadataUpdate;
|
|
71
|
+
export declare function DocumentVersionMetadataUpdateToJSON(json: any): DocumentVersionMetadataUpdate;
|
|
72
|
+
export declare function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersionMetadataUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
73
|
+
export declare const DocumentVersionMetadataUpdatePropertyValidationAttributesMap: {
|
|
74
|
+
[property: string]: {
|
|
75
|
+
maxLength?: number;
|
|
76
|
+
minLength?: number;
|
|
77
|
+
pattern?: string;
|
|
78
|
+
maximum?: number;
|
|
79
|
+
exclusiveMaximum?: boolean;
|
|
80
|
+
minimum?: number;
|
|
81
|
+
exclusiveMinimum?: boolean;
|
|
82
|
+
multipleOf?: number;
|
|
83
|
+
maxItems?: number;
|
|
84
|
+
minItems?: number;
|
|
85
|
+
uniqueItems?: boolean;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfDocumentVersionMetadataUpdate = instanceOfDocumentVersionMetadataUpdate;
|
|
18
|
+
exports.DocumentVersionMetadataUpdateFromJSON = DocumentVersionMetadataUpdateFromJSON;
|
|
19
|
+
exports.DocumentVersionMetadataUpdateFromJSONTyped = DocumentVersionMetadataUpdateFromJSONTyped;
|
|
20
|
+
exports.DocumentVersionMetadataUpdateToJSON = DocumentVersionMetadataUpdateToJSON;
|
|
21
|
+
exports.DocumentVersionMetadataUpdateToJSONTyped = DocumentVersionMetadataUpdateToJSONTyped;
|
|
22
|
+
const PipelineState_1 = require("./PipelineState");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DocumentVersionMetadataUpdate interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDocumentVersionMetadataUpdate(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DocumentVersionMetadataUpdateFromJSON(json) {
|
|
30
|
+
return DocumentVersionMetadataUpdateFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
|
|
38
|
+
'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
|
|
39
|
+
'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
|
|
40
|
+
'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
|
|
41
|
+
'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
|
|
42
|
+
'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
|
|
43
|
+
'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function DocumentVersionMetadataUpdateToJSON(json) {
|
|
47
|
+
return DocumentVersionMetadataUpdateToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'source_s3': value['sourceS3'],
|
|
55
|
+
'cleaned_source_s3': value['cleanedSourceS3'],
|
|
56
|
+
'docling_json_s3': value['doclingJsonS3'],
|
|
57
|
+
'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
|
|
58
|
+
'total_pages': value['totalPages'],
|
|
59
|
+
'total_sections': value['totalSections'],
|
|
60
|
+
'total_chunks': value['totalChunks'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = {};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentVersionMetadata } from './DocumentVersionMetadata';
|
|
12
13
|
/**
|
|
13
14
|
* DocumentVersion response model.
|
|
14
15
|
*
|
|
@@ -72,6 +73,18 @@ export interface DocumentVersionResponse {
|
|
|
72
73
|
* @memberof DocumentVersionResponse
|
|
73
74
|
*/
|
|
74
75
|
updatedAt: Date;
|
|
76
|
+
/**
|
|
77
|
+
* Presigned URL to download the source document (6-hour validity)
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof DocumentVersionResponse
|
|
80
|
+
*/
|
|
81
|
+
assetS3Url?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Version metadata (S3 artifacts, pipeline state, statistics)
|
|
84
|
+
* @type {DocumentVersionMetadata}
|
|
85
|
+
* @memberof DocumentVersionResponse
|
|
86
|
+
*/
|
|
87
|
+
metadata?: DocumentVersionMetadata;
|
|
75
88
|
}
|
|
76
89
|
/**
|
|
77
90
|
* Check if a given object implements the DocumentVersionResponse interface.
|
|
@@ -19,6 +19,7 @@ exports.DocumentVersionResponseFromJSON = DocumentVersionResponseFromJSON;
|
|
|
19
19
|
exports.DocumentVersionResponseFromJSONTyped = DocumentVersionResponseFromJSONTyped;
|
|
20
20
|
exports.DocumentVersionResponseToJSON = DocumentVersionResponseToJSON;
|
|
21
21
|
exports.DocumentVersionResponseToJSONTyped = DocumentVersionResponseToJSONTyped;
|
|
22
|
+
const DocumentVersionMetadata_1 = require("./DocumentVersionMetadata");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the DocumentVersionResponse interface.
|
|
24
25
|
*/
|
|
@@ -60,6 +61,8 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
61
|
'tenantId': json['tenant_id'],
|
|
61
62
|
'createdAt': (new Date(json['created_at'])),
|
|
62
63
|
'updatedAt': (new Date(json['updated_at'])),
|
|
64
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
65
|
+
'metadata': json['metadata'] == null ? undefined : (0, DocumentVersionMetadata_1.DocumentVersionMetadataFromJSON)(json['metadata']),
|
|
63
66
|
};
|
|
64
67
|
}
|
|
65
68
|
function DocumentVersionResponseToJSON(json) {
|
|
@@ -79,6 +82,8 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
79
82
|
'tenant_id': value['tenantId'],
|
|
80
83
|
'created_at': value['createdAt'].toISOString(),
|
|
81
84
|
'updated_at': value['updatedAt'].toISOString(),
|
|
85
|
+
'asset_s3_url': value['assetS3Url'],
|
|
86
|
+
'metadata': (0, DocumentVersionMetadata_1.DocumentVersionMetadataToJSON)(value['metadata']),
|
|
82
87
|
};
|
|
83
88
|
}
|
|
84
89
|
exports.DocumentVersionResponsePropertyValidationAttributesMap = {};
|