@knowledge-stack/ksapi 1.15.0 → 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/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/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/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
|
@@ -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
|
+
}
|
|
@@ -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 = {};
|