@knowledge-stack/ksapi 1.24.0 → 1.25.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 +8 -0
- package/README.md +10 -2
- package/dist/apis/ChunksApi.d.ts +87 -5
- package/dist/apis/ChunksApi.js +85 -2
- package/dist/apis/PathPartsApi.d.ts +86 -1
- package/dist/apis/PathPartsApi.js +85 -0
- package/dist/esm/apis/ChunksApi.d.ts +87 -5
- package/dist/esm/apis/ChunksApi.js +86 -3
- package/dist/esm/apis/PathPartsApi.d.ts +86 -1
- package/dist/esm/apis/PathPartsApi.js +86 -1
- package/dist/esm/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/esm/models/ChunkBulkResponse.js +100 -0
- package/dist/esm/models/ChunkContentItem.d.ts +1 -1
- package/dist/esm/models/ChunkContentItem.js +3 -1
- package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/esm/models/ChunkSearchRequest.js +6 -2
- package/dist/esm/models/DocumentResponse.d.ts +1 -1
- package/dist/esm/models/DocumentResponse.js +3 -1
- package/dist/esm/models/FolderResponse.d.ts +1 -1
- package/dist/esm/models/FolderResponse.js +3 -1
- package/dist/esm/models/SectionContentItem.d.ts +1 -1
- package/dist/esm/models/SectionContentItem.js +3 -1
- package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/esm/models/SubtreeChunkGroup.js +52 -0
- package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/esm/models/SubtreeChunksResponse.js +45 -0
- package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/models/ChunkBulkResponse.js +108 -0
- package/dist/models/ChunkContentItem.d.ts +1 -1
- package/dist/models/ChunkContentItem.js +3 -1
- package/dist/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/models/ChunkSearchRequest.js +6 -2
- package/dist/models/DocumentResponse.d.ts +1 -1
- package/dist/models/DocumentResponse.js +3 -1
- package/dist/models/FolderResponse.d.ts +1 -1
- package/dist/models/FolderResponse.js +3 -1
- package/dist/models/SectionContentItem.d.ts +1 -1
- package/dist/models/SectionContentItem.js +3 -1
- package/dist/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/models/SubtreeChunkGroup.js +60 -0
- package/dist/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/models/SubtreeChunksResponse.js +53 -0
- package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/models/VersionChunkIdsResponse.js +52 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/ChunkBulkResponse.md +65 -0
- package/docs/ChunkSearchRequest.md +6 -2
- package/docs/ChunksApi.md +145 -1
- package/docs/PathPartsApi.md +147 -0
- package/docs/SubtreeChunkGroup.md +39 -0
- package/docs/SubtreeChunksResponse.md +35 -0
- package/docs/VersionChunkIdsResponse.md +35 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +165 -4
- package/src/apis/PathPartsApi.ts +166 -0
- package/src/models/ChunkBulkResponse.ts +232 -0
- package/src/models/ChunkContentItem.ts +3 -2
- package/src/models/ChunkSearchRequest.ts +20 -4
- package/src/models/DocumentResponse.ts +3 -2
- package/src/models/FolderResponse.ts +3 -2
- package/src/models/SectionContentItem.ts +3 -2
- package/src/models/SubtreeChunkGroup.ts +104 -0
- package/src/models/SubtreeChunksResponse.ts +91 -0
- package/src/models/VersionChunkIdsResponse.ts +83 -0
- package/src/models/index.ts +4 -0
|
@@ -39,7 +39,7 @@ export interface ChunkContentItem {
|
|
|
39
39
|
* @type {ChunkContentItemPartTypeEnum}
|
|
40
40
|
* @memberof ChunkContentItem
|
|
41
41
|
*/
|
|
42
|
-
partType
|
|
42
|
+
partType: ChunkContentItemPartTypeEnum;
|
|
43
43
|
/**
|
|
44
44
|
* PathPart ID
|
|
45
45
|
* @type {string}
|
|
@@ -128,6 +128,7 @@ export type ChunkContentItemPartTypeEnum = typeof ChunkContentItemPartTypeEnum[k
|
|
|
128
128
|
* Check if a given object implements the ChunkContentItem interface.
|
|
129
129
|
*/
|
|
130
130
|
export function instanceOfChunkContentItem(value: object): value is ChunkContentItem {
|
|
131
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
131
132
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
132
133
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
133
134
|
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
@@ -150,7 +151,7 @@ export function ChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
150
151
|
}
|
|
151
152
|
return {
|
|
152
153
|
|
|
153
|
-
'partType': json['part_type']
|
|
154
|
+
'partType': json['part_type'],
|
|
154
155
|
'pathPartId': json['path_part_id'],
|
|
155
156
|
'name': json['name'],
|
|
156
157
|
'parentPathId': json['parent_path_id'],
|
|
@@ -52,6 +52,12 @@ export interface ChunkSearchRequest {
|
|
|
52
52
|
* @memberof ChunkSearchRequest
|
|
53
53
|
*/
|
|
54
54
|
parentPathIds?: Array<string> | null;
|
|
55
|
+
/**
|
|
56
|
+
* Filter by tag IDs (AND logic — chunks must have ALL specified tags)
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof ChunkSearchRequest
|
|
59
|
+
*/
|
|
60
|
+
tagIds?: Array<string> | null;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {ChunkType}
|
|
@@ -59,11 +65,17 @@ export interface ChunkSearchRequest {
|
|
|
59
65
|
*/
|
|
60
66
|
chunkType?: ChunkType;
|
|
61
67
|
/**
|
|
62
|
-
* Only chunks
|
|
68
|
+
* Only chunks ingested after this timestamp
|
|
63
69
|
* @type {Date}
|
|
64
70
|
* @memberof ChunkSearchRequest
|
|
65
71
|
*/
|
|
66
|
-
|
|
72
|
+
ingestionTimeAfter?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
* Only return chunks from the active document version
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof ChunkSearchRequest
|
|
77
|
+
*/
|
|
78
|
+
activeVersionOnly?: boolean;
|
|
67
79
|
/**
|
|
68
80
|
* Number of results (1-50)
|
|
69
81
|
* @type {number}
|
|
@@ -101,8 +113,10 @@ export function ChunkSearchRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
101
113
|
'query': json['query'],
|
|
102
114
|
'model': json['model'] == null ? undefined : EmbeddingModelFromJSON(json['model']),
|
|
103
115
|
'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
|
|
116
|
+
'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
|
|
104
117
|
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
105
|
-
'
|
|
118
|
+
'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
|
|
119
|
+
'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
|
|
106
120
|
'topK': json['top_k'] == null ? undefined : json['top_k'],
|
|
107
121
|
'scoreThreshold': json['score_threshold'] == null ? undefined : json['score_threshold'],
|
|
108
122
|
};
|
|
@@ -122,8 +136,10 @@ export function ChunkSearchRequestToJSONTyped(value?: ChunkSearchRequest | null,
|
|
|
122
136
|
'query': value['query'],
|
|
123
137
|
'model': EmbeddingModelToJSON(value['model']),
|
|
124
138
|
'parent_path_ids': value['parentPathIds'],
|
|
139
|
+
'tag_ids': value['tagIds'],
|
|
125
140
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
126
|
-
'
|
|
141
|
+
'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
|
|
142
|
+
'active_version_only': value['activeVersionOnly'],
|
|
127
143
|
'top_k': value['topK'],
|
|
128
144
|
'score_threshold': value['scoreThreshold'],
|
|
129
145
|
};
|
|
@@ -53,7 +53,7 @@ export interface DocumentResponse {
|
|
|
53
53
|
* @type {DocumentResponsePartTypeEnum}
|
|
54
54
|
* @memberof DocumentResponse
|
|
55
55
|
*/
|
|
56
|
-
partType
|
|
56
|
+
partType: DocumentResponsePartTypeEnum;
|
|
57
57
|
/**
|
|
58
58
|
* Document ID
|
|
59
59
|
* @type {string}
|
|
@@ -154,6 +154,7 @@ export type DocumentResponsePartTypeEnum = typeof DocumentResponsePartTypeEnum[k
|
|
|
154
154
|
* Check if a given object implements the DocumentResponse interface.
|
|
155
155
|
*/
|
|
156
156
|
export function instanceOfDocumentResponse(value: object): value is DocumentResponse {
|
|
157
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
157
158
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
158
159
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
159
160
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -180,7 +181,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
180
181
|
}
|
|
181
182
|
return {
|
|
182
183
|
|
|
183
|
-
'partType': json['part_type']
|
|
184
|
+
'partType': json['part_type'],
|
|
184
185
|
'id': json['id'],
|
|
185
186
|
'pathPartId': json['path_part_id'],
|
|
186
187
|
'name': json['name'],
|
|
@@ -32,7 +32,7 @@ export interface FolderResponse {
|
|
|
32
32
|
* @type {FolderResponsePartTypeEnum}
|
|
33
33
|
* @memberof FolderResponse
|
|
34
34
|
*/
|
|
35
|
-
partType
|
|
35
|
+
partType: FolderResponsePartTypeEnum;
|
|
36
36
|
/**
|
|
37
37
|
* Folder ID
|
|
38
38
|
* @type {string}
|
|
@@ -109,6 +109,7 @@ export type FolderResponsePartTypeEnum = typeof FolderResponsePartTypeEnum[keyof
|
|
|
109
109
|
* Check if a given object implements the FolderResponse interface.
|
|
110
110
|
*/
|
|
111
111
|
export function instanceOfFolderResponse(value: object): value is FolderResponse {
|
|
112
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
112
113
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
113
114
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
114
115
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
@@ -131,7 +132,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
131
132
|
}
|
|
132
133
|
return {
|
|
133
134
|
|
|
134
|
-
'partType': json['part_type']
|
|
135
|
+
'partType': json['part_type'],
|
|
135
136
|
'id': json['id'],
|
|
136
137
|
'pathPartId': json['path_part_id'],
|
|
137
138
|
'name': json['name'],
|
|
@@ -24,7 +24,7 @@ export interface SectionContentItem {
|
|
|
24
24
|
* @type {SectionContentItemPartTypeEnum}
|
|
25
25
|
* @memberof SectionContentItem
|
|
26
26
|
*/
|
|
27
|
-
partType
|
|
27
|
+
partType: SectionContentItemPartTypeEnum;
|
|
28
28
|
/**
|
|
29
29
|
* PathPart ID
|
|
30
30
|
* @type {string}
|
|
@@ -101,6 +101,7 @@ export type SectionContentItemPartTypeEnum = typeof SectionContentItemPartTypeEn
|
|
|
101
101
|
* Check if a given object implements the SectionContentItem interface.
|
|
102
102
|
*/
|
|
103
103
|
export function instanceOfSectionContentItem(value: object): value is SectionContentItem {
|
|
104
|
+
if (!('partType' in value) || value['partType'] === undefined) return false;
|
|
104
105
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
105
106
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
106
107
|
if (!('parentPathId' in value) || value['parentPathId'] === undefined) return false;
|
|
@@ -123,7 +124,7 @@ export function SectionContentItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
123
124
|
}
|
|
124
125
|
return {
|
|
125
126
|
|
|
126
|
-
'partType': json['part_type']
|
|
127
|
+
'partType': json['part_type'],
|
|
127
128
|
'pathPartId': json['path_part_id'],
|
|
128
129
|
'name': json['name'],
|
|
129
130
|
'parentPathId': json['parent_path_id'],
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* A group of chunks sharing identical path_part_ids and tag_ids.
|
|
18
|
+
*
|
|
19
|
+
* Used by PathPartCRUDService.resolve_subtree_chunks to batch downstream
|
|
20
|
+
* Qdrant set_payload calls.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface SubtreeChunkGroup
|
|
23
|
+
*/
|
|
24
|
+
export interface SubtreeChunkGroup {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof SubtreeChunkGroup
|
|
29
|
+
*/
|
|
30
|
+
chunkIds: Array<string>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<string>}
|
|
34
|
+
* @memberof SubtreeChunkGroup
|
|
35
|
+
*/
|
|
36
|
+
pathPartIds: Array<string>;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof SubtreeChunkGroup
|
|
41
|
+
*/
|
|
42
|
+
tagIds: Array<string>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the SubtreeChunkGroup interface.
|
|
47
|
+
*/
|
|
48
|
+
export function instanceOfSubtreeChunkGroup(value: object): value is SubtreeChunkGroup {
|
|
49
|
+
if (!('chunkIds' in value) || value['chunkIds'] === undefined) return false;
|
|
50
|
+
if (!('pathPartIds' in value) || value['pathPartIds'] === undefined) return false;
|
|
51
|
+
if (!('tagIds' in value) || value['tagIds'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SubtreeChunkGroupFromJSON(json: any): SubtreeChunkGroup {
|
|
56
|
+
return SubtreeChunkGroupFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SubtreeChunkGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubtreeChunkGroup {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'chunkIds': json['chunk_ids'],
|
|
66
|
+
'pathPartIds': json['path_part_ids'],
|
|
67
|
+
'tagIds': json['tag_ids'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function SubtreeChunkGroupToJSON(json: any): SubtreeChunkGroup {
|
|
72
|
+
return SubtreeChunkGroupToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function SubtreeChunkGroupToJSONTyped(value?: SubtreeChunkGroup | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'chunk_ids': value['chunkIds'],
|
|
83
|
+
'path_part_ids': value['pathPartIds'],
|
|
84
|
+
'tag_ids': value['tagIds'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export const SubtreeChunkGroupPropertyValidationAttributesMap: {
|
|
89
|
+
[property: string]: {
|
|
90
|
+
maxLength?: number,
|
|
91
|
+
minLength?: number,
|
|
92
|
+
pattern?: string,
|
|
93
|
+
maximum?: number,
|
|
94
|
+
exclusiveMaximum?: boolean,
|
|
95
|
+
minimum?: number,
|
|
96
|
+
exclusiveMinimum?: boolean,
|
|
97
|
+
multipleOf?: number,
|
|
98
|
+
maxItems?: number,
|
|
99
|
+
minItems?: number,
|
|
100
|
+
uniqueItems?: boolean
|
|
101
|
+
}
|
|
102
|
+
} = {
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { SubtreeChunkGroup } from './SubtreeChunkGroup';
|
|
17
|
+
import {
|
|
18
|
+
SubtreeChunkGroupFromJSON,
|
|
19
|
+
SubtreeChunkGroupFromJSONTyped,
|
|
20
|
+
SubtreeChunkGroupToJSON,
|
|
21
|
+
SubtreeChunkGroupToJSONTyped,
|
|
22
|
+
} from './SubtreeChunkGroup';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Response for subtree resolution.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SubtreeChunksResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SubtreeChunksResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SubtreeChunkGroup>}
|
|
33
|
+
* @memberof SubtreeChunksResponse
|
|
34
|
+
*/
|
|
35
|
+
groups: Array<SubtreeChunkGroup>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SubtreeChunksResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSubtreeChunksResponse(value: object): value is SubtreeChunksResponse {
|
|
42
|
+
if (!('groups' in value) || value['groups'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SubtreeChunksResponseFromJSON(json: any): SubtreeChunksResponse {
|
|
47
|
+
return SubtreeChunksResponseFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SubtreeChunksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubtreeChunksResponse {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'groups': ((json['groups'] as Array<any>).map(SubtreeChunkGroupFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SubtreeChunksResponseToJSON(json: any): SubtreeChunksResponse {
|
|
61
|
+
return SubtreeChunksResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SubtreeChunksResponseToJSONTyped(value?: SubtreeChunksResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'groups': ((value['groups'] as Array<any>).map(SubtreeChunkGroupToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export const SubtreeChunksResponsePropertyValidationAttributesMap: {
|
|
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
|
+
} = {
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Response containing chunk IDs for a document version.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface VersionChunkIdsResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface VersionChunkIdsResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof VersionChunkIdsResponse
|
|
26
|
+
*/
|
|
27
|
+
chunkIds: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the VersionChunkIdsResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfVersionChunkIdsResponse(value: object): value is VersionChunkIdsResponse {
|
|
34
|
+
if (!('chunkIds' in value) || value['chunkIds'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function VersionChunkIdsResponseFromJSON(json: any): VersionChunkIdsResponse {
|
|
39
|
+
return VersionChunkIdsResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function VersionChunkIdsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionChunkIdsResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'chunkIds': json['chunk_ids'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function VersionChunkIdsResponseToJSON(json: any): VersionChunkIdsResponse {
|
|
53
|
+
return VersionChunkIdsResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function VersionChunkIdsResponseToJSONTyped(value?: VersionChunkIdsResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'chunk_ids': value['chunkIds'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const VersionChunkIdsResponsePropertyValidationAttributesMap: {
|
|
68
|
+
[property: string]: {
|
|
69
|
+
maxLength?: number,
|
|
70
|
+
minLength?: number,
|
|
71
|
+
pattern?: string,
|
|
72
|
+
maximum?: number,
|
|
73
|
+
exclusiveMaximum?: boolean,
|
|
74
|
+
minimum?: number,
|
|
75
|
+
exclusiveMinimum?: boolean,
|
|
76
|
+
multipleOf?: number,
|
|
77
|
+
maxItems?: number,
|
|
78
|
+
minItems?: number,
|
|
79
|
+
uniqueItems?: boolean
|
|
80
|
+
}
|
|
81
|
+
} = {
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './BulkTagRequest';
|
|
4
|
+
export * from './ChunkBulkResponse';
|
|
4
5
|
export * from './ChunkContentItem';
|
|
5
6
|
export * from './ChunkLineageResponse';
|
|
6
7
|
export * from './ChunkMetadataInput';
|
|
@@ -76,6 +77,8 @@ export * from './SectionContentItem';
|
|
|
76
77
|
export * from './SectionContentItemOrChunkContentItem';
|
|
77
78
|
export * from './SectionResponse';
|
|
78
79
|
export * from './SignInRequest';
|
|
80
|
+
export * from './SubtreeChunkGroup';
|
|
81
|
+
export * from './SubtreeChunksResponse';
|
|
79
82
|
export * from './TagResponse';
|
|
80
83
|
export * from './TenantResponse';
|
|
81
84
|
export * from './TenantUserEditRequest';
|
|
@@ -95,6 +98,7 @@ export * from './UpdateThreadRequest';
|
|
|
95
98
|
export * from './UpdateUserRequest';
|
|
96
99
|
export * from './UserResponse';
|
|
97
100
|
export * from './ValidationError';
|
|
101
|
+
export * from './VersionChunkIdsResponse';
|
|
98
102
|
export * from './WorkflowAction';
|
|
99
103
|
export * from './WorkflowActionResponse';
|
|
100
104
|
export * from './WorkflowDetailResponse';
|