@knowledge-stack/ksapi 1.10.0 → 1.11.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 +6 -0
- package/README.md +2 -2
- package/dist/apis/ChunkLineagesApi.d.ts +117 -0
- package/dist/apis/ChunkLineagesApi.js +140 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunkLineagesApi.d.ts +117 -0
- package/dist/esm/apis/ChunkLineagesApi.js +136 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkLineageResponse.d.ts +65 -0
- package/dist/esm/models/ChunkLineageResponse.js +56 -0
- package/dist/esm/models/CreateChunkLineageRequest.d.ts +53 -0
- package/dist/esm/models/CreateChunkLineageRequest.js +53 -0
- package/dist/esm/models/LineageEdgeResponse.d.ts +53 -0
- package/dist/esm/models/LineageEdgeResponse.js +48 -0
- package/dist/esm/models/LineageGraphResponse.d.ts +55 -0
- package/dist/esm/models/LineageGraphResponse.js +50 -0
- package/dist/esm/models/LineageNodeResponse.d.ts +85 -0
- package/dist/esm/models/LineageNodeResponse.js +70 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ChunkLineageResponse.d.ts +65 -0
- package/dist/models/ChunkLineageResponse.js +64 -0
- package/dist/models/CreateChunkLineageRequest.d.ts +53 -0
- package/dist/models/CreateChunkLineageRequest.js +61 -0
- package/dist/models/LineageEdgeResponse.d.ts +53 -0
- package/dist/models/LineageEdgeResponse.js +56 -0
- package/dist/models/LineageGraphResponse.d.ts +55 -0
- package/dist/models/LineageGraphResponse.js +58 -0
- package/dist/models/LineageNodeResponse.d.ts +85 -0
- package/dist/models/LineageNodeResponse.js +78 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ChunkLineagesApi.ts +254 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkLineageResponse.ts +110 -0
- package/src/models/CreateChunkLineageRequest.ts +96 -0
- package/src/models/LineageEdgeResponse.ts +92 -0
- package/src/models/LineageGraphResponse.ts +107 -0
- package/src/models/LineageNodeResponse.ts +154 -0
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,64 @@
|
|
|
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.ChunkLineageResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfChunkLineageResponse = instanceOfChunkLineageResponse;
|
|
18
|
+
exports.ChunkLineageResponseFromJSON = ChunkLineageResponseFromJSON;
|
|
19
|
+
exports.ChunkLineageResponseFromJSONTyped = ChunkLineageResponseFromJSONTyped;
|
|
20
|
+
exports.ChunkLineageResponseToJSON = ChunkLineageResponseToJSON;
|
|
21
|
+
exports.ChunkLineageResponseToJSONTyped = ChunkLineageResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ChunkLineageResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfChunkLineageResponse(value) {
|
|
26
|
+
if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function ChunkLineageResponseFromJSON(json) {
|
|
37
|
+
return ChunkLineageResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function ChunkLineageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'parentChunkId': json['parent_chunk_id'],
|
|
45
|
+
'chunkId': json['chunk_id'],
|
|
46
|
+
'tenantId': json['tenant_id'],
|
|
47
|
+
'createdAt': (new Date(json['created_at'])),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChunkLineageResponseToJSON(json) {
|
|
51
|
+
return ChunkLineageResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChunkLineageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'parent_chunk_id': value['parentChunkId'],
|
|
59
|
+
'chunk_id': value['chunkId'],
|
|
60
|
+
'tenant_id': value['tenantId'],
|
|
61
|
+
'created_at': value['createdAt'].toISOString(),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.ChunkLineageResponsePropertyValidationAttributesMap = {};
|
|
@@ -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
|
+
* Request to batch-create lineage edges for a child chunk.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateChunkLineageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateChunkLineageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Child chunk ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateChunkLineageRequest
|
|
22
|
+
*/
|
|
23
|
+
chunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of parent chunk IDs
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof CreateChunkLineageRequest
|
|
28
|
+
*/
|
|
29
|
+
parentChunkIds: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreateChunkLineageRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreateChunkLineageRequest(value: object): value is CreateChunkLineageRequest;
|
|
35
|
+
export declare function CreateChunkLineageRequestFromJSON(json: any): CreateChunkLineageRequest;
|
|
36
|
+
export declare function CreateChunkLineageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChunkLineageRequest;
|
|
37
|
+
export declare function CreateChunkLineageRequestToJSON(json: any): CreateChunkLineageRequest;
|
|
38
|
+
export declare function CreateChunkLineageRequestToJSONTyped(value?: CreateChunkLineageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const CreateChunkLineageRequestPropertyValidationAttributesMap: {
|
|
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,61 @@
|
|
|
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.CreateChunkLineageRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfCreateChunkLineageRequest = instanceOfCreateChunkLineageRequest;
|
|
18
|
+
exports.CreateChunkLineageRequestFromJSON = CreateChunkLineageRequestFromJSON;
|
|
19
|
+
exports.CreateChunkLineageRequestFromJSONTyped = CreateChunkLineageRequestFromJSONTyped;
|
|
20
|
+
exports.CreateChunkLineageRequestToJSON = CreateChunkLineageRequestToJSON;
|
|
21
|
+
exports.CreateChunkLineageRequestToJSONTyped = CreateChunkLineageRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateChunkLineageRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateChunkLineageRequest(value) {
|
|
26
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('parentChunkIds' in value) || value['parentChunkIds'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CreateChunkLineageRequestFromJSON(json) {
|
|
33
|
+
return CreateChunkLineageRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CreateChunkLineageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'chunkId': json['chunk_id'],
|
|
41
|
+
'parentChunkIds': json['parent_chunk_ids'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CreateChunkLineageRequestToJSON(json) {
|
|
45
|
+
return CreateChunkLineageRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CreateChunkLineageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'chunk_id': value['chunkId'],
|
|
53
|
+
'parent_chunk_ids': value['parentChunkIds'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.CreateChunkLineageRequestPropertyValidationAttributesMap = {
|
|
57
|
+
parentChunkIds: {
|
|
58
|
+
minItems: 1,
|
|
59
|
+
uniqueItems: false,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
@@ -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
|
+
* An edge in the lineage graph.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LineageEdgeResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface LineageEdgeResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Parent chunk ID (source)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LineageEdgeResponse
|
|
22
|
+
*/
|
|
23
|
+
parentChunkId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Child chunk ID (derived)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LineageEdgeResponse
|
|
28
|
+
*/
|
|
29
|
+
chunkId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LineageEdgeResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLineageEdgeResponse(value: object): value is LineageEdgeResponse;
|
|
35
|
+
export declare function LineageEdgeResponseFromJSON(json: any): LineageEdgeResponse;
|
|
36
|
+
export declare function LineageEdgeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageEdgeResponse;
|
|
37
|
+
export declare function LineageEdgeResponseToJSON(json: any): LineageEdgeResponse;
|
|
38
|
+
export declare function LineageEdgeResponseToJSONTyped(value?: LineageEdgeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const LineageEdgeResponsePropertyValidationAttributesMap: {
|
|
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.LineageEdgeResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfLineageEdgeResponse = instanceOfLineageEdgeResponse;
|
|
18
|
+
exports.LineageEdgeResponseFromJSON = LineageEdgeResponseFromJSON;
|
|
19
|
+
exports.LineageEdgeResponseFromJSONTyped = LineageEdgeResponseFromJSONTyped;
|
|
20
|
+
exports.LineageEdgeResponseToJSON = LineageEdgeResponseToJSON;
|
|
21
|
+
exports.LineageEdgeResponseToJSONTyped = LineageEdgeResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LineageEdgeResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLineageEdgeResponse(value) {
|
|
26
|
+
if (!('parentChunkId' in value) || value['parentChunkId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('chunkId' in value) || value['chunkId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function LineageEdgeResponseFromJSON(json) {
|
|
33
|
+
return LineageEdgeResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function LineageEdgeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'parentChunkId': json['parent_chunk_id'],
|
|
41
|
+
'chunkId': json['chunk_id'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function LineageEdgeResponseToJSON(json) {
|
|
45
|
+
return LineageEdgeResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function LineageEdgeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'parent_chunk_id': value['parentChunkId'],
|
|
53
|
+
'chunk_id': value['chunkId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.LineageEdgeResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { LineageEdgeResponse } from './LineageEdgeResponse';
|
|
13
|
+
import type { LineageNodeResponse } from './LineageNodeResponse';
|
|
14
|
+
/**
|
|
15
|
+
* Complete lineage graph with nodes and edges.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LineageGraphResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface LineageGraphResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Chunk nodes in the graph
|
|
22
|
+
* @type {Array<LineageNodeResponse>}
|
|
23
|
+
* @memberof LineageGraphResponse
|
|
24
|
+
*/
|
|
25
|
+
nodes: Array<LineageNodeResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Lineage edges in the graph
|
|
28
|
+
* @type {Array<LineageEdgeResponse>}
|
|
29
|
+
* @memberof LineageGraphResponse
|
|
30
|
+
*/
|
|
31
|
+
edges: Array<LineageEdgeResponse>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the LineageGraphResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfLineageGraphResponse(value: object): value is LineageGraphResponse;
|
|
37
|
+
export declare function LineageGraphResponseFromJSON(json: any): LineageGraphResponse;
|
|
38
|
+
export declare function LineageGraphResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageGraphResponse;
|
|
39
|
+
export declare function LineageGraphResponseToJSON(json: any): LineageGraphResponse;
|
|
40
|
+
export declare function LineageGraphResponseToJSONTyped(value?: LineageGraphResponse | null, ignoreDiscriminator?: boolean): any;
|
|
41
|
+
export declare const LineageGraphResponsePropertyValidationAttributesMap: {
|
|
42
|
+
[property: string]: {
|
|
43
|
+
maxLength?: number;
|
|
44
|
+
minLength?: number;
|
|
45
|
+
pattern?: string;
|
|
46
|
+
maximum?: number;
|
|
47
|
+
exclusiveMaximum?: boolean;
|
|
48
|
+
minimum?: number;
|
|
49
|
+
exclusiveMinimum?: boolean;
|
|
50
|
+
multipleOf?: number;
|
|
51
|
+
maxItems?: number;
|
|
52
|
+
minItems?: number;
|
|
53
|
+
uniqueItems?: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
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.LineageGraphResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfLineageGraphResponse = instanceOfLineageGraphResponse;
|
|
18
|
+
exports.LineageGraphResponseFromJSON = LineageGraphResponseFromJSON;
|
|
19
|
+
exports.LineageGraphResponseFromJSONTyped = LineageGraphResponseFromJSONTyped;
|
|
20
|
+
exports.LineageGraphResponseToJSON = LineageGraphResponseToJSON;
|
|
21
|
+
exports.LineageGraphResponseToJSONTyped = LineageGraphResponseToJSONTyped;
|
|
22
|
+
const LineageEdgeResponse_1 = require("./LineageEdgeResponse");
|
|
23
|
+
const LineageNodeResponse_1 = require("./LineageNodeResponse");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the LineageGraphResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfLineageGraphResponse(value) {
|
|
28
|
+
if (!('nodes' in value) || value['nodes'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('edges' in value) || value['edges'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function LineageGraphResponseFromJSON(json) {
|
|
35
|
+
return LineageGraphResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function LineageGraphResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'nodes': (json['nodes'].map(LineageNodeResponse_1.LineageNodeResponseFromJSON)),
|
|
43
|
+
'edges': (json['edges'].map(LineageEdgeResponse_1.LineageEdgeResponseFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function LineageGraphResponseToJSON(json) {
|
|
47
|
+
return LineageGraphResponseToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function LineageGraphResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'nodes': (value['nodes'].map(LineageNodeResponse_1.LineageNodeResponseToJSON)),
|
|
55
|
+
'edges': (value['edges'].map(LineageEdgeResponse_1.LineageEdgeResponseToJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.LineageGraphResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,85 @@
|
|
|
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 { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
13
|
+
import type { ChunkType } from './ChunkType';
|
|
14
|
+
/**
|
|
15
|
+
* A node in the lineage graph (enriched chunk).
|
|
16
|
+
* @export
|
|
17
|
+
* @interface LineageNodeResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface LineageNodeResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Chunk ID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof LineageNodeResponse
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Chunk text content
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof LineageNodeResponse
|
|
30
|
+
*/
|
|
31
|
+
content: string;
|
|
32
|
+
/**
|
|
33
|
+
* Type of chunk content
|
|
34
|
+
* @type {ChunkType}
|
|
35
|
+
* @memberof LineageNodeResponse
|
|
36
|
+
*/
|
|
37
|
+
chunkType: ChunkType;
|
|
38
|
+
/**
|
|
39
|
+
* Chunk metadata
|
|
40
|
+
* @type {ChunkMetadataOutput}
|
|
41
|
+
* @memberof LineageNodeResponse
|
|
42
|
+
*/
|
|
43
|
+
chunkMetadata: ChunkMetadataOutput;
|
|
44
|
+
/**
|
|
45
|
+
* Tenant ID
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof LineageNodeResponse
|
|
48
|
+
*/
|
|
49
|
+
tenantId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Creation timestamp
|
|
52
|
+
* @type {Date}
|
|
53
|
+
* @memberof LineageNodeResponse
|
|
54
|
+
*/
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
/**
|
|
57
|
+
* Last update timestamp
|
|
58
|
+
* @type {Date}
|
|
59
|
+
* @memberof LineageNodeResponse
|
|
60
|
+
*/
|
|
61
|
+
updatedAt: Date;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the LineageNodeResponse interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfLineageNodeResponse(value: object): value is LineageNodeResponse;
|
|
67
|
+
export declare function LineageNodeResponseFromJSON(json: any): LineageNodeResponse;
|
|
68
|
+
export declare function LineageNodeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineageNodeResponse;
|
|
69
|
+
export declare function LineageNodeResponseToJSON(json: any): LineageNodeResponse;
|
|
70
|
+
export declare function LineageNodeResponseToJSONTyped(value?: LineageNodeResponse | null, ignoreDiscriminator?: boolean): any;
|
|
71
|
+
export declare const LineageNodeResponsePropertyValidationAttributesMap: {
|
|
72
|
+
[property: string]: {
|
|
73
|
+
maxLength?: number;
|
|
74
|
+
minLength?: number;
|
|
75
|
+
pattern?: string;
|
|
76
|
+
maximum?: number;
|
|
77
|
+
exclusiveMaximum?: boolean;
|
|
78
|
+
minimum?: number;
|
|
79
|
+
exclusiveMinimum?: boolean;
|
|
80
|
+
multipleOf?: number;
|
|
81
|
+
maxItems?: number;
|
|
82
|
+
minItems?: number;
|
|
83
|
+
uniqueItems?: boolean;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
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.LineageNodeResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfLineageNodeResponse = instanceOfLineageNodeResponse;
|
|
18
|
+
exports.LineageNodeResponseFromJSON = LineageNodeResponseFromJSON;
|
|
19
|
+
exports.LineageNodeResponseFromJSONTyped = LineageNodeResponseFromJSONTyped;
|
|
20
|
+
exports.LineageNodeResponseToJSON = LineageNodeResponseToJSON;
|
|
21
|
+
exports.LineageNodeResponseToJSONTyped = LineageNodeResponseToJSONTyped;
|
|
22
|
+
const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
|
|
23
|
+
const ChunkType_1 = require("./ChunkType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the LineageNodeResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfLineageNodeResponse(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function LineageNodeResponseFromJSON(json) {
|
|
45
|
+
return LineageNodeResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function LineageNodeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': json['id'],
|
|
53
|
+
'content': json['content'],
|
|
54
|
+
'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
55
|
+
'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
|
|
56
|
+
'tenantId': json['tenant_id'],
|
|
57
|
+
'createdAt': (new Date(json['created_at'])),
|
|
58
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function LineageNodeResponseToJSON(json) {
|
|
62
|
+
return LineageNodeResponseToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function LineageNodeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'content': value['content'],
|
|
71
|
+
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
72
|
+
'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
|
|
73
|
+
'tenant_id': value['tenantId'],
|
|
74
|
+
'created_at': value['createdAt'].toISOString(),
|
|
75
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
exports.LineageNodeResponsePropertyValidationAttributesMap = {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
export * from './ChunkLineageResponse';
|
|
1
2
|
export * from './ChunkMetadataInput';
|
|
2
3
|
export * from './ChunkMetadataOutput';
|
|
3
4
|
export * from './ChunkResponse';
|
|
4
5
|
export * from './ChunkType';
|
|
6
|
+
export * from './CreateChunkLineageRequest';
|
|
5
7
|
export * from './CreateChunkRequest';
|
|
6
8
|
export * from './CreateDocumentRequest';
|
|
7
9
|
export * from './CreateFolderRequest';
|
|
@@ -25,6 +27,9 @@ export * from './IdpType';
|
|
|
25
27
|
export * from './InviteResponse';
|
|
26
28
|
export * from './InviteStatus';
|
|
27
29
|
export * from './InviteUserRequest';
|
|
30
|
+
export * from './LineageEdgeResponse';
|
|
31
|
+
export * from './LineageGraphResponse';
|
|
32
|
+
export * from './LineageNodeResponse';
|
|
28
33
|
export * from './MessageRole';
|
|
29
34
|
export * from './OAuth2Config';
|
|
30
35
|
export * from './PaginatedResponseDocumentContentPathPart';
|
package/dist/models/index.js
CHANGED
|
@@ -16,10 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ChunkLineageResponse"), exports);
|
|
19
20
|
__exportStar(require("./ChunkMetadataInput"), exports);
|
|
20
21
|
__exportStar(require("./ChunkMetadataOutput"), exports);
|
|
21
22
|
__exportStar(require("./ChunkResponse"), exports);
|
|
22
23
|
__exportStar(require("./ChunkType"), exports);
|
|
24
|
+
__exportStar(require("./CreateChunkLineageRequest"), exports);
|
|
23
25
|
__exportStar(require("./CreateChunkRequest"), exports);
|
|
24
26
|
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
25
27
|
__exportStar(require("./CreateFolderRequest"), exports);
|
|
@@ -43,6 +45,9 @@ __exportStar(require("./IdpType"), exports);
|
|
|
43
45
|
__exportStar(require("./InviteResponse"), exports);
|
|
44
46
|
__exportStar(require("./InviteStatus"), exports);
|
|
45
47
|
__exportStar(require("./InviteUserRequest"), exports);
|
|
48
|
+
__exportStar(require("./LineageEdgeResponse"), exports);
|
|
49
|
+
__exportStar(require("./LineageGraphResponse"), exports);
|
|
50
|
+
__exportStar(require("./LineageNodeResponse"), exports);
|
|
46
51
|
__exportStar(require("./MessageRole"), exports);
|
|
47
52
|
__exportStar(require("./OAuth2Config"), exports);
|
|
48
53
|
__exportStar(require("./PaginatedResponseDocumentContentPathPart"), exports);
|