@knowledge-stack/ksapi 1.13.0 → 1.14.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.
@@ -0,0 +1,94 @@
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 { ChunkMetadataOutputFromJSON, ChunkMetadataOutputToJSON, } from './ChunkMetadataOutput';
15
+ import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
16
+ /**
17
+ * Check if a given object implements the ScoredChunkResponse interface.
18
+ */
19
+ export function instanceOfScoredChunkResponse(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
23
+ return false;
24
+ if (!('contentId' in value) || value['contentId'] === undefined)
25
+ return false;
26
+ if (!('content' in value) || value['content'] === undefined)
27
+ return false;
28
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
29
+ return false;
30
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
31
+ return false;
32
+ if (!('parentId' in value) || value['parentId'] === undefined)
33
+ return false;
34
+ if (!('materializedPath' in value) || value['materializedPath'] === 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
+ if (!('score' in value) || value['score'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ export function ScoredChunkResponseFromJSON(json) {
47
+ return ScoredChunkResponseFromJSONTyped(json, false);
48
+ }
49
+ export function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'pathPartId': json['path_part_id'],
56
+ 'contentId': json['content_id'],
57
+ 'content': json['content'],
58
+ 'chunkType': ChunkTypeFromJSON(json['chunk_type']),
59
+ 'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
60
+ 'parentId': json['parent_id'],
61
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
62
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
63
+ 'materializedPath': json['materialized_path'],
64
+ 'tenantId': json['tenant_id'],
65
+ 'createdAt': (new Date(json['created_at'])),
66
+ 'updatedAt': (new Date(json['updated_at'])),
67
+ 'score': json['score'],
68
+ };
69
+ }
70
+ export function ScoredChunkResponseToJSON(json) {
71
+ return ScoredChunkResponseToJSONTyped(json, false);
72
+ }
73
+ export function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+ return {
78
+ 'id': value['id'],
79
+ 'path_part_id': value['pathPartId'],
80
+ 'content_id': value['contentId'],
81
+ 'content': value['content'],
82
+ 'chunk_type': ChunkTypeToJSON(value['chunkType']),
83
+ 'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
84
+ 'parent_id': value['parentId'],
85
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
86
+ 'next_sibling_id': value['nextSiblingId'],
87
+ 'materialized_path': value['materializedPath'],
88
+ 'tenant_id': value['tenantId'],
89
+ 'created_at': value['createdAt'].toISOString(),
90
+ 'updated_at': value['updatedAt'].toISOString(),
91
+ 'score': value['score'],
92
+ };
93
+ }
94
+ export const ScoredChunkResponsePropertyValidationAttributesMap = {};
@@ -2,6 +2,7 @@ export * from './ChunkLineageResponse';
2
2
  export * from './ChunkMetadataInput';
3
3
  export * from './ChunkMetadataOutput';
4
4
  export * from './ChunkResponse';
5
+ export * from './ChunkSearchRequest';
5
6
  export * from './ChunkType';
6
7
  export * from './CreateChunkLineageRequest';
7
8
  export * from './CreateChunkRequest';
@@ -21,6 +22,7 @@ export * from './DocumentType';
21
22
  export * from './DocumentVersionResponse';
22
23
  export * from './EmailSentResponse';
23
24
  export * from './EmailVerificationRequest';
25
+ export * from './EmbeddingModel';
24
26
  export * from './FolderDocumentResponse';
25
27
  export * from './FolderResponse';
26
28
  export * from './HTTPValidationError';
@@ -57,6 +59,7 @@ export * from './PermissionResponse';
57
59
  export * from './Polygon';
58
60
  export * from './PolygonReference';
59
61
  export * from './RootResponse';
62
+ export * from './ScoredChunkResponse';
60
63
  export * from './SectionResponse';
61
64
  export * from './SignInRequest';
62
65
  export * from './TagPathPartRequest';
@@ -4,6 +4,7 @@ export * from './ChunkLineageResponse';
4
4
  export * from './ChunkMetadataInput';
5
5
  export * from './ChunkMetadataOutput';
6
6
  export * from './ChunkResponse';
7
+ export * from './ChunkSearchRequest';
7
8
  export * from './ChunkType';
8
9
  export * from './CreateChunkLineageRequest';
9
10
  export * from './CreateChunkRequest';
@@ -23,6 +24,7 @@ export * from './DocumentType';
23
24
  export * from './DocumentVersionResponse';
24
25
  export * from './EmailSentResponse';
25
26
  export * from './EmailVerificationRequest';
27
+ export * from './EmbeddingModel';
26
28
  export * from './FolderDocumentResponse';
27
29
  export * from './FolderResponse';
28
30
  export * from './HTTPValidationError';
@@ -59,6 +61,7 @@ export * from './PermissionResponse';
59
61
  export * from './Polygon';
60
62
  export * from './PolygonReference';
61
63
  export * from './RootResponse';
64
+ export * from './ScoredChunkResponse';
62
65
  export * from './SectionResponse';
63
66
  export * from './SignInRequest';
64
67
  export * from './TagPathPartRequest';
@@ -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 { EmbeddingModel } from './EmbeddingModel';
13
+ import type { ChunkType } from './ChunkType';
14
+ /**
15
+ * Request body for semantic chunk search.
16
+ * @export
17
+ * @interface ChunkSearchRequest
18
+ */
19
+ export interface ChunkSearchRequest {
20
+ /**
21
+ * Search query text
22
+ * @type {string}
23
+ * @memberof ChunkSearchRequest
24
+ */
25
+ query: string;
26
+ /**
27
+ * Embedding model to use
28
+ * @type {EmbeddingModel}
29
+ * @memberof ChunkSearchRequest
30
+ */
31
+ model?: EmbeddingModel;
32
+ /**
33
+ * Path part IDs to search within (non-CHUNK types). Defaults to tenant's /KS_ROOT/shared.
34
+ * @type {Array<string>}
35
+ * @memberof ChunkSearchRequest
36
+ */
37
+ parentPathIds?: Array<string>;
38
+ /**
39
+ * Filter by chunk type (TEXT, TABLE, IMAGE, UNKNOWN)
40
+ * @type {ChunkType}
41
+ * @memberof ChunkSearchRequest
42
+ */
43
+ chunkType?: ChunkType;
44
+ /**
45
+ * Only chunks updated after this timestamp
46
+ * @type {Date}
47
+ * @memberof ChunkSearchRequest
48
+ */
49
+ updatedAt?: Date;
50
+ /**
51
+ * Number of results (1-50)
52
+ * @type {number}
53
+ * @memberof ChunkSearchRequest
54
+ */
55
+ topK?: number;
56
+ /**
57
+ * Minimum similarity score
58
+ * @type {number}
59
+ * @memberof ChunkSearchRequest
60
+ */
61
+ scoreThreshold?: number;
62
+ }
63
+ /**
64
+ * Check if a given object implements the ChunkSearchRequest interface.
65
+ */
66
+ export declare function instanceOfChunkSearchRequest(value: object): value is ChunkSearchRequest;
67
+ export declare function ChunkSearchRequestFromJSON(json: any): ChunkSearchRequest;
68
+ export declare function ChunkSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkSearchRequest;
69
+ export declare function ChunkSearchRequestToJSON(json: any): ChunkSearchRequest;
70
+ export declare function ChunkSearchRequestToJSONTyped(value?: ChunkSearchRequest | null, ignoreDiscriminator?: boolean): any;
71
+ export declare const ChunkSearchRequestPropertyValidationAttributesMap: {
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
+ };
86
+ export declare const ChunkSearchRequestAdditionalPropertiesValidationAttributes: {
87
+ maxProperties?: number;
88
+ minProperties?: number;
89
+ };
@@ -0,0 +1,77 @@
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.ChunkSearchRequestAdditionalPropertiesValidationAttributes = exports.ChunkSearchRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfChunkSearchRequest = instanceOfChunkSearchRequest;
18
+ exports.ChunkSearchRequestFromJSON = ChunkSearchRequestFromJSON;
19
+ exports.ChunkSearchRequestFromJSONTyped = ChunkSearchRequestFromJSONTyped;
20
+ exports.ChunkSearchRequestToJSON = ChunkSearchRequestToJSON;
21
+ exports.ChunkSearchRequestToJSONTyped = ChunkSearchRequestToJSONTyped;
22
+ const EmbeddingModel_1 = require("./EmbeddingModel");
23
+ const ChunkType_1 = require("./ChunkType");
24
+ /**
25
+ * Check if a given object implements the ChunkSearchRequest interface.
26
+ */
27
+ function instanceOfChunkSearchRequest(value) {
28
+ if (!('query' in value) || value['query'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function ChunkSearchRequestFromJSON(json) {
33
+ return ChunkSearchRequestFromJSONTyped(json, false);
34
+ }
35
+ function ChunkSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'query': json['query'],
41
+ 'model': json['model'] == null ? undefined : (0, EmbeddingModel_1.EmbeddingModelFromJSON)(json['model']),
42
+ 'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
43
+ 'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
44
+ 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
45
+ 'topK': json['top_k'] == null ? undefined : json['top_k'],
46
+ 'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
47
+ };
48
+ }
49
+ function ChunkSearchRequestToJSON(json) {
50
+ return ChunkSearchRequestToJSONTyped(json, false);
51
+ }
52
+ function ChunkSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'query': value['query'],
58
+ 'model': (0, EmbeddingModel_1.EmbeddingModelToJSON)(value['model']),
59
+ 'parent_path_ids': value['parentPathIds'],
60
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
61
+ 'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
62
+ 'top_k': value['topK'],
63
+ 'score_threshold': value['scoreThreshold'],
64
+ };
65
+ }
66
+ exports.ChunkSearchRequestPropertyValidationAttributesMap = {
67
+ query: {
68
+ minLength: 1,
69
+ },
70
+ topK: {
71
+ maximum: 50,
72
+ exclusiveMaximum: false,
73
+ minimum: 1,
74
+ exclusiveMinimum: false,
75
+ },
76
+ };
77
+ exports.ChunkSearchRequestAdditionalPropertiesValidationAttributes = {};
@@ -0,0 +1,24 @@
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
+ * Supported embedding models.
14
+ * @export
15
+ */
16
+ export declare const EmbeddingModel: {
17
+ readonly TextEmbedding3Small: "text-embedding-3-small";
18
+ };
19
+ export type EmbeddingModel = typeof EmbeddingModel[keyof typeof EmbeddingModel];
20
+ export declare function instanceOfEmbeddingModel(value: any): boolean;
21
+ export declare function EmbeddingModelFromJSON(json: any): EmbeddingModel;
22
+ export declare function EmbeddingModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddingModel;
23
+ export declare function EmbeddingModelToJSON(value?: EmbeddingModel | null): any;
24
+ export declare function EmbeddingModelToJSONTyped(value: any, ignoreDiscriminator: boolean): EmbeddingModel;
@@ -0,0 +1,50 @@
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.EmbeddingModel = void 0;
17
+ exports.instanceOfEmbeddingModel = instanceOfEmbeddingModel;
18
+ exports.EmbeddingModelFromJSON = EmbeddingModelFromJSON;
19
+ exports.EmbeddingModelFromJSONTyped = EmbeddingModelFromJSONTyped;
20
+ exports.EmbeddingModelToJSON = EmbeddingModelToJSON;
21
+ exports.EmbeddingModelToJSONTyped = EmbeddingModelToJSONTyped;
22
+ /**
23
+ * Supported embedding models.
24
+ * @export
25
+ */
26
+ exports.EmbeddingModel = {
27
+ TextEmbedding3Small: 'text-embedding-3-small'
28
+ };
29
+ function instanceOfEmbeddingModel(value) {
30
+ for (const key in exports.EmbeddingModel) {
31
+ if (Object.prototype.hasOwnProperty.call(exports.EmbeddingModel, key)) {
32
+ if (exports.EmbeddingModel[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ function EmbeddingModelFromJSON(json) {
40
+ return EmbeddingModelFromJSONTyped(json, false);
41
+ }
42
+ function EmbeddingModelFromJSONTyped(json, ignoreDiscriminator) {
43
+ return json;
44
+ }
45
+ function EmbeddingModelToJSON(value) {
46
+ return value;
47
+ }
48
+ function EmbeddingModelToJSONTyped(value, ignoreDiscriminator) {
49
+ return value;
50
+ }
@@ -0,0 +1,127 @@
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
+ * Chunk response with similarity score.
16
+ * @export
17
+ * @interface ScoredChunkResponse
18
+ */
19
+ export interface ScoredChunkResponse {
20
+ /**
21
+ * Chunk ID
22
+ * @type {string}
23
+ * @memberof ScoredChunkResponse
24
+ */
25
+ id: string;
26
+ /**
27
+ * PathPart ID
28
+ * @type {string}
29
+ * @memberof ScoredChunkResponse
30
+ */
31
+ pathPartId: string;
32
+ /**
33
+ * ChunkContent ID
34
+ * @type {string}
35
+ * @memberof ScoredChunkResponse
36
+ */
37
+ contentId: string;
38
+ /**
39
+ * Chunk text content
40
+ * @type {string}
41
+ * @memberof ScoredChunkResponse
42
+ */
43
+ content: string;
44
+ /**
45
+ * Type of chunk content
46
+ * @type {ChunkType}
47
+ * @memberof ScoredChunkResponse
48
+ */
49
+ chunkType: ChunkType;
50
+ /**
51
+ * Chunk metadata
52
+ * @type {ChunkMetadataOutput}
53
+ * @memberof ScoredChunkResponse
54
+ */
55
+ chunkMetadata: ChunkMetadataOutput;
56
+ /**
57
+ * Parent PathPart ID
58
+ * @type {string}
59
+ * @memberof ScoredChunkResponse
60
+ */
61
+ parentId: string;
62
+ /**
63
+ * Previous sibling PathPart ID
64
+ * @type {string}
65
+ * @memberof ScoredChunkResponse
66
+ */
67
+ prevSiblingPathId?: string;
68
+ /**
69
+ * Next sibling PathPart ID
70
+ * @type {string}
71
+ * @memberof ScoredChunkResponse
72
+ */
73
+ nextSiblingId?: string;
74
+ /**
75
+ * Full materialized path from root
76
+ * @type {string}
77
+ * @memberof ScoredChunkResponse
78
+ */
79
+ materializedPath: string;
80
+ /**
81
+ * Tenant ID
82
+ * @type {string}
83
+ * @memberof ScoredChunkResponse
84
+ */
85
+ tenantId: string;
86
+ /**
87
+ * Creation timestamp
88
+ * @type {Date}
89
+ * @memberof ScoredChunkResponse
90
+ */
91
+ createdAt: Date;
92
+ /**
93
+ * Last update timestamp
94
+ * @type {Date}
95
+ * @memberof ScoredChunkResponse
96
+ */
97
+ updatedAt: Date;
98
+ /**
99
+ * Cosine similarity score (1 - cosine_distance)
100
+ * @type {number}
101
+ * @memberof ScoredChunkResponse
102
+ */
103
+ score: number;
104
+ }
105
+ /**
106
+ * Check if a given object implements the ScoredChunkResponse interface.
107
+ */
108
+ export declare function instanceOfScoredChunkResponse(value: object): value is ScoredChunkResponse;
109
+ export declare function ScoredChunkResponseFromJSON(json: any): ScoredChunkResponse;
110
+ export declare function ScoredChunkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoredChunkResponse;
111
+ export declare function ScoredChunkResponseToJSON(json: any): ScoredChunkResponse;
112
+ export declare function ScoredChunkResponseToJSONTyped(value?: ScoredChunkResponse | null, ignoreDiscriminator?: boolean): any;
113
+ export declare const ScoredChunkResponsePropertyValidationAttributesMap: {
114
+ [property: string]: {
115
+ maxLength?: number;
116
+ minLength?: number;
117
+ pattern?: string;
118
+ maximum?: number;
119
+ exclusiveMaximum?: boolean;
120
+ minimum?: number;
121
+ exclusiveMinimum?: boolean;
122
+ multipleOf?: number;
123
+ maxItems?: number;
124
+ minItems?: number;
125
+ uniqueItems?: boolean;
126
+ };
127
+ };
@@ -0,0 +1,102 @@
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.ScoredChunkResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfScoredChunkResponse = instanceOfScoredChunkResponse;
18
+ exports.ScoredChunkResponseFromJSON = ScoredChunkResponseFromJSON;
19
+ exports.ScoredChunkResponseFromJSONTyped = ScoredChunkResponseFromJSONTyped;
20
+ exports.ScoredChunkResponseToJSON = ScoredChunkResponseToJSON;
21
+ exports.ScoredChunkResponseToJSONTyped = ScoredChunkResponseToJSONTyped;
22
+ const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
23
+ const ChunkType_1 = require("./ChunkType");
24
+ /**
25
+ * Check if a given object implements the ScoredChunkResponse interface.
26
+ */
27
+ function instanceOfScoredChunkResponse(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
31
+ return false;
32
+ if (!('contentId' in value) || value['contentId'] === undefined)
33
+ return false;
34
+ if (!('content' in value) || value['content'] === undefined)
35
+ return false;
36
+ if (!('chunkType' in value) || value['chunkType'] === undefined)
37
+ return false;
38
+ if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
39
+ return false;
40
+ if (!('parentId' in value) || value['parentId'] === undefined)
41
+ return false;
42
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
43
+ return false;
44
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
45
+ return false;
46
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
47
+ return false;
48
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
49
+ return false;
50
+ if (!('score' in value) || value['score'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ function ScoredChunkResponseFromJSON(json) {
55
+ return ScoredChunkResponseFromJSONTyped(json, false);
56
+ }
57
+ function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'id': json['id'],
63
+ 'pathPartId': json['path_part_id'],
64
+ 'contentId': json['content_id'],
65
+ 'content': json['content'],
66
+ 'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
67
+ 'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
68
+ 'parentId': json['parent_id'],
69
+ 'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
70
+ 'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
71
+ 'materializedPath': json['materialized_path'],
72
+ 'tenantId': json['tenant_id'],
73
+ 'createdAt': (new Date(json['created_at'])),
74
+ 'updatedAt': (new Date(json['updated_at'])),
75
+ 'score': json['score'],
76
+ };
77
+ }
78
+ function ScoredChunkResponseToJSON(json) {
79
+ return ScoredChunkResponseToJSONTyped(json, false);
80
+ }
81
+ function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+ return {
86
+ 'id': value['id'],
87
+ 'path_part_id': value['pathPartId'],
88
+ 'content_id': value['contentId'],
89
+ 'content': value['content'],
90
+ 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
91
+ 'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
92
+ 'parent_id': value['parentId'],
93
+ 'prev_sibling_path_id': value['prevSiblingPathId'],
94
+ 'next_sibling_id': value['nextSiblingId'],
95
+ 'materialized_path': value['materializedPath'],
96
+ 'tenant_id': value['tenantId'],
97
+ 'created_at': value['createdAt'].toISOString(),
98
+ 'updated_at': value['updatedAt'].toISOString(),
99
+ 'score': value['score'],
100
+ };
101
+ }
102
+ exports.ScoredChunkResponsePropertyValidationAttributesMap = {};
@@ -2,6 +2,7 @@ export * from './ChunkLineageResponse';
2
2
  export * from './ChunkMetadataInput';
3
3
  export * from './ChunkMetadataOutput';
4
4
  export * from './ChunkResponse';
5
+ export * from './ChunkSearchRequest';
5
6
  export * from './ChunkType';
6
7
  export * from './CreateChunkLineageRequest';
7
8
  export * from './CreateChunkRequest';
@@ -21,6 +22,7 @@ export * from './DocumentType';
21
22
  export * from './DocumentVersionResponse';
22
23
  export * from './EmailSentResponse';
23
24
  export * from './EmailVerificationRequest';
25
+ export * from './EmbeddingModel';
24
26
  export * from './FolderDocumentResponse';
25
27
  export * from './FolderResponse';
26
28
  export * from './HTTPValidationError';
@@ -57,6 +59,7 @@ export * from './PermissionResponse';
57
59
  export * from './Polygon';
58
60
  export * from './PolygonReference';
59
61
  export * from './RootResponse';
62
+ export * from './ScoredChunkResponse';
60
63
  export * from './SectionResponse';
61
64
  export * from './SignInRequest';
62
65
  export * from './TagPathPartRequest';
@@ -20,6 +20,7 @@ __exportStar(require("./ChunkLineageResponse"), exports);
20
20
  __exportStar(require("./ChunkMetadataInput"), exports);
21
21
  __exportStar(require("./ChunkMetadataOutput"), exports);
22
22
  __exportStar(require("./ChunkResponse"), exports);
23
+ __exportStar(require("./ChunkSearchRequest"), exports);
23
24
  __exportStar(require("./ChunkType"), exports);
24
25
  __exportStar(require("./CreateChunkLineageRequest"), exports);
25
26
  __exportStar(require("./CreateChunkRequest"), exports);
@@ -39,6 +40,7 @@ __exportStar(require("./DocumentType"), exports);
39
40
  __exportStar(require("./DocumentVersionResponse"), exports);
40
41
  __exportStar(require("./EmailSentResponse"), exports);
41
42
  __exportStar(require("./EmailVerificationRequest"), exports);
43
+ __exportStar(require("./EmbeddingModel"), exports);
42
44
  __exportStar(require("./FolderDocumentResponse"), exports);
43
45
  __exportStar(require("./FolderResponse"), exports);
44
46
  __exportStar(require("./HTTPValidationError"), exports);
@@ -75,6 +77,7 @@ __exportStar(require("./PermissionResponse"), exports);
75
77
  __exportStar(require("./Polygon"), exports);
76
78
  __exportStar(require("./PolygonReference"), exports);
77
79
  __exportStar(require("./RootResponse"), exports);
80
+ __exportStar(require("./ScoredChunkResponse"), exports);
78
81
  __exportStar(require("./SectionResponse"), exports);
79
82
  __exportStar(require("./SignInRequest"), exports);
80
83
  __exportStar(require("./TagPathPartRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {