@knowledge-stack/ksapi 1.18.0 → 1.18.1
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/README.md +2 -2
- package/dist/apis/DocumentsApi.d.ts +10 -10
- package/dist/apis/DocumentsApi.js +6 -6
- package/dist/apis/FoldersApi.d.ts +10 -10
- package/dist/apis/FoldersApi.js +6 -6
- package/dist/apis/PathPartsApi.d.ts +6 -6
- package/dist/apis/PathPartsApi.js +4 -4
- package/dist/esm/apis/DocumentsApi.d.ts +10 -10
- package/dist/esm/apis/DocumentsApi.js +6 -6
- package/dist/esm/apis/FoldersApi.d.ts +10 -10
- package/dist/esm/apis/FoldersApi.js +6 -6
- package/dist/esm/apis/PathPartsApi.d.ts +6 -6
- package/dist/esm/apis/PathPartsApi.js +4 -4
- package/dist/esm/models/ChunkResponse.d.ts +2 -2
- package/dist/esm/models/ChunkResponse.js +5 -5
- package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/CreateDocumentRequest.js +3 -3
- package/dist/esm/models/CreateFolderRequest.d.ts +2 -2
- package/dist/esm/models/CreateFolderRequest.js +3 -3
- package/dist/esm/models/DocumentContentPathPart.d.ts +1 -1
- package/dist/esm/models/DocumentContentPathPart.js +3 -3
- package/dist/esm/models/DocumentResponse.d.ts +2 -2
- package/dist/esm/models/DocumentResponse.js +3 -3
- package/dist/esm/models/DocumentVersionResponse.d.ts +1 -1
- package/dist/esm/models/DocumentVersionResponse.js +3 -3
- package/dist/esm/models/FolderDocumentResponse.d.ts +2 -2
- package/dist/esm/models/FolderDocumentResponse.js +3 -3
- package/dist/esm/models/FolderResponse.d.ts +2 -2
- package/dist/esm/models/FolderResponse.js +3 -3
- package/dist/esm/models/PathPartResponse.d.ts +1 -1
- package/dist/esm/models/PathPartResponse.js +3 -3
- package/dist/esm/models/ScoredChunkResponse.d.ts +2 -2
- package/dist/esm/models/ScoredChunkResponse.js +5 -5
- package/dist/esm/models/SectionResponse.d.ts +2 -2
- package/dist/esm/models/SectionResponse.js +5 -5
- package/dist/esm/models/ThreadMessageResponse.d.ts +1 -1
- package/dist/esm/models/ThreadMessageResponse.js +3 -3
- package/dist/esm/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/UpdateDocumentRequest.js +2 -2
- package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/esm/models/UpdateFolderRequest.js +2 -2
- package/dist/models/ChunkResponse.d.ts +2 -2
- package/dist/models/ChunkResponse.js +5 -5
- package/dist/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/models/CreateDocumentRequest.js +3 -3
- package/dist/models/CreateFolderRequest.d.ts +2 -2
- package/dist/models/CreateFolderRequest.js +3 -3
- package/dist/models/DocumentContentPathPart.d.ts +1 -1
- package/dist/models/DocumentContentPathPart.js +3 -3
- package/dist/models/DocumentResponse.d.ts +2 -2
- package/dist/models/DocumentResponse.js +3 -3
- package/dist/models/DocumentVersionResponse.d.ts +1 -1
- package/dist/models/DocumentVersionResponse.js +3 -3
- package/dist/models/FolderDocumentResponse.d.ts +2 -2
- package/dist/models/FolderDocumentResponse.js +3 -3
- package/dist/models/FolderResponse.d.ts +2 -2
- package/dist/models/FolderResponse.js +3 -3
- package/dist/models/PathPartResponse.d.ts +1 -1
- package/dist/models/PathPartResponse.js +3 -3
- package/dist/models/ScoredChunkResponse.d.ts +2 -2
- package/dist/models/ScoredChunkResponse.js +5 -5
- package/dist/models/SectionResponse.d.ts +2 -2
- package/dist/models/SectionResponse.js +5 -5
- package/dist/models/ThreadMessageResponse.d.ts +1 -1
- package/dist/models/ThreadMessageResponse.js +3 -3
- package/dist/models/UpdateDocumentRequest.d.ts +2 -2
- package/dist/models/UpdateDocumentRequest.js +2 -2
- package/dist/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/models/UpdateFolderRequest.js +2 -2
- package/package.json +1 -1
- package/src/apis/DocumentsApi.ts +12 -12
- package/src/apis/FoldersApi.ts +12 -12
- package/src/apis/PathPartsApi.ts +8 -8
- package/src/models/ChunkResponse.ts +7 -7
- package/src/models/CreateDocumentRequest.ts +5 -5
- package/src/models/CreateFolderRequest.ts +5 -5
- package/src/models/DocumentContentPathPart.ts +4 -4
- package/src/models/DocumentResponse.ts +5 -5
- package/src/models/DocumentVersionResponse.ts +4 -4
- package/src/models/FolderDocumentResponse.ts +5 -5
- package/src/models/FolderResponse.ts +5 -5
- package/src/models/PathPartResponse.ts +4 -4
- package/src/models/ScoredChunkResponse.ts +7 -7
- package/src/models/SectionResponse.ts +7 -7
- package/src/models/ThreadMessageResponse.ts +4 -4
- package/src/models/UpdateDocumentRequest.ts +4 -4
- package/src/models/UpdateFolderRequest.ts +4 -4
|
@@ -16,7 +16,7 @@ export interface GetPathPartRequest {
|
|
|
16
16
|
ksUat?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface ListPathPartsRequest {
|
|
19
|
-
|
|
19
|
+
parentPathId?: string;
|
|
20
20
|
maxDepth?: number;
|
|
21
21
|
sortOrder?: PathOrder;
|
|
22
22
|
limit?: number;
|
|
@@ -46,9 +46,9 @@ export interface PathPartsApiInterface {
|
|
|
46
46
|
*/
|
|
47
47
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
48
48
|
/**
|
|
49
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
49
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
50
50
|
* @summary List Path Parts Handler
|
|
51
|
-
* @param {string} [
|
|
51
|
+
* @param {string} [parentPathId] Parent PathPart ID (defaults to root)
|
|
52
52
|
* @param {number} [maxDepth] Maximum depth to traverse (1 = direct children, default: 1)
|
|
53
53
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
54
54
|
* @param {number} [limit] Number of items per page
|
|
@@ -60,7 +60,7 @@ export interface PathPartsApiInterface {
|
|
|
60
60
|
*/
|
|
61
61
|
listPathPartsRaw(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePathPartResponse>>;
|
|
62
62
|
/**
|
|
63
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
63
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
64
64
|
* List Path Parts Handler
|
|
65
65
|
*/
|
|
66
66
|
listPathParts(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
|
|
@@ -80,12 +80,12 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
80
80
|
*/
|
|
81
81
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
82
82
|
/**
|
|
83
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
83
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
84
84
|
* List Path Parts Handler
|
|
85
85
|
*/
|
|
86
86
|
listPathPartsRaw(requestParameters: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePathPartResponse>>;
|
|
87
87
|
/**
|
|
88
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
88
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
89
89
|
* List Path Parts Handler
|
|
90
90
|
*/
|
|
91
91
|
listPathParts(requestParameters?: ListPathPartsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePathPartResponse>;
|
|
@@ -59,14 +59,14 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
62
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
63
63
|
* List Path Parts Handler
|
|
64
64
|
*/
|
|
65
65
|
listPathPartsRaw(requestParameters, initOverrides) {
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
67
|
const queryParameters = {};
|
|
68
|
-
if (requestParameters['
|
|
69
|
-
queryParameters['
|
|
68
|
+
if (requestParameters['parentPathId'] != null) {
|
|
69
|
+
queryParameters['parent_path_id'] = requestParameters['parentPathId'];
|
|
70
70
|
}
|
|
71
71
|
if (requestParameters['maxDepth'] != null) {
|
|
72
72
|
queryParameters['max_depth'] = requestParameters['maxDepth'];
|
|
@@ -92,7 +92,7 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
|
-
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If
|
|
95
|
+
* List path parts (folders) under a parent with traversal. This is a generic endpoint for traversing the folder hierarchy. It returns only FOLDER type path parts. - If parent_path_id is not provided, lists contents of the root folder. - max_depth controls how deep to traverse (1 = direct children only). - sort_order controls the ordering: LOGICAL (linked-list), NAME, UPDATED_AT, CREATED_AT. For listing folder contents that includes documents with enriched metadata, use GET /folders/{folder_id}/contents instead.
|
|
96
96
|
* List Path Parts Handler
|
|
97
97
|
*/
|
|
98
98
|
listPathParts() {
|
|
@@ -58,7 +58,7 @@ export interface ChunkResponse {
|
|
|
58
58
|
* @type {string}
|
|
59
59
|
* @memberof ChunkResponse
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
parentPathId: string;
|
|
62
62
|
/**
|
|
63
63
|
* Previous sibling PathPart ID
|
|
64
64
|
* @type {string}
|
|
@@ -70,7 +70,7 @@ export interface ChunkResponse {
|
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof ChunkResponse
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
nextSiblingPathId?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Full materialized path from root
|
|
76
76
|
* @type {string}
|
|
@@ -29,7 +29,7 @@ export function instanceOfChunkResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -55,9 +55,9 @@ export function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'content': json['content'],
|
|
56
56
|
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
57
57
|
'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
58
|
-
'
|
|
58
|
+
'parentPathId': json['parent_path_id'],
|
|
59
59
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
60
|
-
'
|
|
60
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
61
61
|
'materializedPath': json['materialized_path'],
|
|
62
62
|
'tenantId': json['tenant_id'],
|
|
63
63
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -78,9 +78,9 @@ export function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
78
|
'content': value['content'],
|
|
79
79
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
80
80
|
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
81
|
-
'
|
|
81
|
+
'parent_path_id': value['parentPathId'],
|
|
82
82
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
83
|
-
'
|
|
83
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
84
84
|
'materialized_path': value['materializedPath'],
|
|
85
85
|
'tenant_id': value['tenantId'],
|
|
86
86
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -24,11 +24,11 @@ export interface CreateDocumentRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
name: string;
|
|
26
26
|
/**
|
|
27
|
-
* Parent
|
|
27
|
+
* Parent PathPart ID (must be a FOLDER type)
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof CreateDocumentRequest
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
parentPathPartId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Type of document (PDF, UNKNOWN, etc.)
|
|
34
34
|
* @type {DocumentType}
|
|
@@ -19,7 +19,7 @@ import { DocumentTypeFromJSON, DocumentTypeToJSON, } from './DocumentType';
|
|
|
19
19
|
export function instanceOfCreateDocumentRequest(value) {
|
|
20
20
|
if (!('name' in value) || value['name'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('
|
|
22
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
23
23
|
return false;
|
|
24
24
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
25
25
|
return false;
|
|
@@ -36,7 +36,7 @@ export function CreateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
}
|
|
37
37
|
return {
|
|
38
38
|
'name': json['name'],
|
|
39
|
-
'
|
|
39
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
40
40
|
'documentType': DocumentTypeFromJSON(json['document_type']),
|
|
41
41
|
'documentOrigin': DocumentOriginFromJSON(json['document_origin']),
|
|
42
42
|
};
|
|
@@ -50,7 +50,7 @@ export function CreateDocumentRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'name': value['name'],
|
|
53
|
-
'
|
|
53
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
54
54
|
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
55
55
|
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
56
56
|
};
|
|
@@ -22,11 +22,11 @@ export interface CreateFolderRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
* Parent
|
|
25
|
+
* Parent PathPart ID (must be a FOLDER type)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentPathPartId: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the CreateFolderRequest interface.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
export function instanceOfCreateFolderRequest(value) {
|
|
18
18
|
if (!('name' in value) || value['name'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
-
if (!('
|
|
20
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
21
21
|
return false;
|
|
22
22
|
return true;
|
|
23
23
|
}
|
|
@@ -30,7 +30,7 @@ export function CreateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
'name': json['name'],
|
|
33
|
-
'
|
|
33
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
36
|
export function CreateFolderRequestToJSON(json) {
|
|
@@ -42,7 +42,7 @@ export function CreateFolderRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'name': value['name'],
|
|
45
|
-
'
|
|
45
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
export const CreateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -24,7 +24,7 @@ export function instanceOfDocumentContentPathPart(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -49,7 +49,7 @@ export function DocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator)
|
|
|
49
49
|
'pathPartId': json['path_part_id'],
|
|
50
50
|
'name': json['name'],
|
|
51
51
|
'partType': PartTypeFromJSON(json['part_type']),
|
|
52
|
-
'
|
|
52
|
+
'parentPathId': json['parent_path_id'],
|
|
53
53
|
'metadataObjId': json['metadata_obj_id'],
|
|
54
54
|
'depth': json['depth'],
|
|
55
55
|
'content': json['content'] == null ? undefined : json['content'],
|
|
@@ -72,7 +72,7 @@ export function DocumentContentPathPartToJSONTyped(value, ignoreDiscriminator =
|
|
|
72
72
|
'path_part_id': value['pathPartId'],
|
|
73
73
|
'name': value['name'],
|
|
74
74
|
'part_type': PartTypeToJSON(value['partType']),
|
|
75
|
-
'
|
|
75
|
+
'parent_path_id': value['parentPathId'],
|
|
76
76
|
'metadata_obj_id': value['metadataObjId'],
|
|
77
77
|
'depth': value['depth'],
|
|
78
78
|
'content': value['content'],
|
|
@@ -37,11 +37,11 @@ export interface DocumentResponse {
|
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Parent
|
|
40
|
+
* Parent PathPart ID
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof DocumentResponse
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
parentPathPartId: string;
|
|
45
45
|
/**
|
|
46
46
|
* Type of document
|
|
47
47
|
* @type {DocumentType}
|
|
@@ -24,7 +24,7 @@ export function instanceOfDocumentResponse(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -55,7 +55,7 @@ export function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'id': json['id'],
|
|
56
56
|
'pathPartId': json['path_part_id'],
|
|
57
57
|
'name': json['name'],
|
|
58
|
-
'
|
|
58
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
59
59
|
'documentType': DocumentTypeFromJSON(json['document_type']),
|
|
60
60
|
'documentOrigin': DocumentOriginFromJSON(json['document_origin']),
|
|
61
61
|
'activeVersionId': json['active_version_id'],
|
|
@@ -77,7 +77,7 @@ export function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
77
77
|
'id': value['id'],
|
|
78
78
|
'path_part_id': value['pathPartId'],
|
|
79
79
|
'name': value['name'],
|
|
80
|
-
'
|
|
80
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
81
81
|
'document_type': DocumentTypeToJSON(value['documentType']),
|
|
82
82
|
'document_origin': DocumentOriginToJSON(value['documentOrigin']),
|
|
83
83
|
'active_version_id': value['activeVersionId'],
|
|
@@ -24,7 +24,7 @@ export function instanceOfDocumentVersionResponse(value) {
|
|
|
24
24
|
return false;
|
|
25
25
|
if (!('name' in value) || value['name'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
28
28
|
return false;
|
|
29
29
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
30
30
|
return false;
|
|
@@ -48,7 +48,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
48
48
|
'pathPartId': json['path_part_id'],
|
|
49
49
|
'version': json['version'],
|
|
50
50
|
'name': json['name'],
|
|
51
|
-
'
|
|
51
|
+
'parentPathId': json['parent_path_id'],
|
|
52
52
|
'materializedPath': json['materialized_path'],
|
|
53
53
|
'tenantId': json['tenant_id'],
|
|
54
54
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -69,7 +69,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
69
69
|
'path_part_id': value['pathPartId'],
|
|
70
70
|
'version': value['version'],
|
|
71
71
|
'name': value['name'],
|
|
72
|
-
'
|
|
72
|
+
'parent_path_id': value['parentPathId'],
|
|
73
73
|
'materialized_path': value['materializedPath'],
|
|
74
74
|
'tenant_id': value['tenantId'],
|
|
75
75
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -23,7 +23,7 @@ import type { DocumentVersionResponse } from './DocumentVersionResponse';
|
|
|
23
23
|
* - DOCUMENT: document_id and document fields are set, folder_id is None
|
|
24
24
|
*
|
|
25
25
|
* Inherited fields from PathPartResponse:
|
|
26
|
-
* - path_part_id, name, part_type,
|
|
26
|
+
* - path_part_id, name, part_type, parent_path_id, metadata_obj_id, created_at, updated_at
|
|
27
27
|
* @export
|
|
28
28
|
* @interface FolderDocumentResponse
|
|
29
29
|
*/
|
|
@@ -51,7 +51,7 @@ export interface FolderDocumentResponse {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof FolderDocumentResponse
|
|
53
53
|
*/
|
|
54
|
-
|
|
54
|
+
parentPathId: string;
|
|
55
55
|
/**
|
|
56
56
|
* ID of the underlying object
|
|
57
57
|
* @type {string}
|
|
@@ -25,7 +25,7 @@ export function instanceOfFolderDocumentResponse(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
31
31
|
return false;
|
|
@@ -50,7 +50,7 @@ export function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'pathPartId': json['path_part_id'],
|
|
51
51
|
'name': json['name'],
|
|
52
52
|
'partType': PartTypeFromJSON(json['part_type']),
|
|
53
|
-
'
|
|
53
|
+
'parentPathId': json['parent_path_id'],
|
|
54
54
|
'metadataObjId': json['metadata_obj_id'],
|
|
55
55
|
'materializedPath': json['materialized_path'],
|
|
56
56
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -75,7 +75,7 @@ export function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = f
|
|
|
75
75
|
'path_part_id': value['pathPartId'],
|
|
76
76
|
'name': value['name'],
|
|
77
77
|
'part_type': PartTypeToJSON(value['partType']),
|
|
78
|
-
'
|
|
78
|
+
'parent_path_id': value['parentPathId'],
|
|
79
79
|
'metadata_obj_id': value['metadataObjId'],
|
|
80
80
|
'materialized_path': value['materializedPath'],
|
|
81
81
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -34,11 +34,11 @@ export interface FolderResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
|
-
* Parent
|
|
37
|
+
* Parent PathPart ID
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof FolderResponse
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
parentPathPartId: string;
|
|
42
42
|
/**
|
|
43
43
|
* Full materialized path from root
|
|
44
44
|
* @type {string}
|
|
@@ -21,7 +21,7 @@ export function instanceOfFolderResponse(value) {
|
|
|
21
21
|
return false;
|
|
22
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
25
25
|
return false;
|
|
26
26
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
27
27
|
return false;
|
|
@@ -44,7 +44,7 @@ export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'id': json['id'],
|
|
45
45
|
'pathPartId': json['path_part_id'],
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
48
48
|
'materializedPath': json['materialized_path'],
|
|
49
49
|
'tenantId': json['tenant_id'],
|
|
50
50
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -62,7 +62,7 @@ export function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
62
62
|
'id': value['id'],
|
|
63
63
|
'path_part_id': value['pathPartId'],
|
|
64
64
|
'name': value['name'],
|
|
65
|
-
'
|
|
65
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
66
66
|
'materialized_path': value['materializedPath'],
|
|
67
67
|
'tenant_id': value['tenantId'],
|
|
68
68
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -22,7 +22,7 @@ export function instanceOfPathPartResponse(value) {
|
|
|
22
22
|
return false;
|
|
23
23
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
24
24
|
return false;
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
26
26
|
return false;
|
|
27
27
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
28
28
|
return false;
|
|
@@ -45,7 +45,7 @@ export function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'pathPartId': json['path_part_id'],
|
|
46
46
|
'name': json['name'],
|
|
47
47
|
'partType': PartTypeFromJSON(json['part_type']),
|
|
48
|
-
'
|
|
48
|
+
'parentPathId': json['parent_path_id'],
|
|
49
49
|
'metadataObjId': json['metadata_obj_id'],
|
|
50
50
|
'materializedPath': json['materialized_path'],
|
|
51
51
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -63,7 +63,7 @@ export function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
63
63
|
'path_part_id': value['pathPartId'],
|
|
64
64
|
'name': value['name'],
|
|
65
65
|
'part_type': PartTypeToJSON(value['partType']),
|
|
66
|
-
'
|
|
66
|
+
'parent_path_id': value['parentPathId'],
|
|
67
67
|
'metadata_obj_id': value['metadataObjId'],
|
|
68
68
|
'materialized_path': value['materializedPath'],
|
|
69
69
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -58,7 +58,7 @@ export interface ScoredChunkResponse {
|
|
|
58
58
|
* @type {string}
|
|
59
59
|
* @memberof ScoredChunkResponse
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
parentPathId: string;
|
|
62
62
|
/**
|
|
63
63
|
* Previous sibling PathPart ID
|
|
64
64
|
* @type {string}
|
|
@@ -70,7 +70,7 @@ export interface ScoredChunkResponse {
|
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof ScoredChunkResponse
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
nextSiblingPathId?: string;
|
|
74
74
|
/**
|
|
75
75
|
* Full materialized path from root
|
|
76
76
|
* @type {string}
|
|
@@ -29,7 +29,7 @@ export function instanceOfScoredChunkResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -57,9 +57,9 @@ export function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'content': json['content'],
|
|
58
58
|
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
59
59
|
'chunkMetadata': ChunkMetadataOutputFromJSON(json['chunk_metadata']),
|
|
60
|
-
'
|
|
60
|
+
'parentPathId': json['parent_path_id'],
|
|
61
61
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
62
|
-
'
|
|
62
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
63
63
|
'materializedPath': json['materialized_path'],
|
|
64
64
|
'tenantId': json['tenant_id'],
|
|
65
65
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -81,9 +81,9 @@ export function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
81
81
|
'content': value['content'],
|
|
82
82
|
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
83
83
|
'chunk_metadata': ChunkMetadataOutputToJSON(value['chunkMetadata']),
|
|
84
|
-
'
|
|
84
|
+
'parent_path_id': value['parentPathId'],
|
|
85
85
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
86
|
-
'
|
|
86
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
87
87
|
'materialized_path': value['materializedPath'],
|
|
88
88
|
'tenant_id': value['tenantId'],
|
|
89
89
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -44,7 +44,7 @@ export interface SectionResponse {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SectionResponse
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
parentPathId: string;
|
|
48
48
|
/**
|
|
49
49
|
* Previous sibling PathPart ID
|
|
50
50
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface SectionResponse {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof SectionResponse
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
nextSiblingPathId?: string;
|
|
60
60
|
/**
|
|
61
61
|
* Full materialized path from root
|
|
62
62
|
* @type {string}
|
|
@@ -21,7 +21,7 @@ export function instanceOfSectionResponse(value) {
|
|
|
21
21
|
return false;
|
|
22
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
25
25
|
return false;
|
|
26
26
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
27
27
|
return false;
|
|
@@ -45,9 +45,9 @@ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'pathPartId': json['path_part_id'],
|
|
46
46
|
'name': json['name'],
|
|
47
47
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
48
|
-
'
|
|
48
|
+
'parentPathId': json['parent_path_id'],
|
|
49
49
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
50
|
-
'
|
|
50
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
51
51
|
'materializedPath': json['materialized_path'],
|
|
52
52
|
'tenantId': json['tenant_id'],
|
|
53
53
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -66,9 +66,9 @@ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
66
|
'path_part_id': value['pathPartId'],
|
|
67
67
|
'name': value['name'],
|
|
68
68
|
'page_number': value['pageNumber'],
|
|
69
|
-
'
|
|
69
|
+
'parent_path_id': value['parentPathId'],
|
|
70
70
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
71
|
-
'
|
|
71
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
72
72
|
'materialized_path': value['materializedPath'],
|
|
73
73
|
'tenant_id': value['tenantId'],
|
|
74
74
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -26,7 +26,7 @@ export function instanceOfThreadMessageResponse(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('content' in value) || value['content'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
29
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
30
30
|
return false;
|
|
31
31
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
32
32
|
return false;
|
|
@@ -51,7 +51,7 @@ export function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
51
|
'sequence': json['sequence'],
|
|
52
52
|
'role': MessageRoleFromJSON(json['role']),
|
|
53
53
|
'content': json['content'],
|
|
54
|
-
'
|
|
54
|
+
'parentPathId': json['parent_path_id'],
|
|
55
55
|
'materializedPath': json['materialized_path'],
|
|
56
56
|
'tenantId': json['tenant_id'],
|
|
57
57
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -71,7 +71,7 @@ export function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
71
71
|
'sequence': value['sequence'],
|
|
72
72
|
'role': MessageRoleToJSON(value['role']),
|
|
73
73
|
'content': value['content'],
|
|
74
|
-
'
|
|
74
|
+
'parent_path_id': value['parentPathId'],
|
|
75
75
|
'materialized_path': value['materializedPath'],
|
|
76
76
|
'tenant_id': value['tenantId'],
|
|
77
77
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -22,11 +22,11 @@ export interface UpdateDocumentRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
name?: string;
|
|
24
24
|
/**
|
|
25
|
-
* New parent
|
|
25
|
+
* New parent PathPart ID for move (must be a FOLDER type)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateDocumentRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentPathPartId?: string;
|
|
30
30
|
/**
|
|
31
31
|
* New active version ID
|
|
32
32
|
* @type {string}
|