@knowledge-stack/ksapi 1.17.1 → 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
|
@@ -26,7 +26,7 @@ export function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
-
'
|
|
29
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
30
30
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
31
31
|
};
|
|
32
32
|
}
|
|
@@ -39,7 +39,7 @@ export function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
39
39
|
}
|
|
40
40
|
return {
|
|
41
41
|
'name': value['name'],
|
|
42
|
-
'
|
|
42
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
43
43
|
'active_version_id': value['activeVersionId'],
|
|
44
44
|
};
|
|
45
45
|
}
|
|
@@ -22,11 +22,11 @@ export interface UpdateFolderRequest {
|
|
|
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 UpdateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentPathPartId?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the UpdateFolderRequest interface.
|
|
@@ -26,7 +26,7 @@ export function UpdateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
28
|
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
-
'
|
|
29
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
export function UpdateFolderRequestToJSON(json) {
|
|
@@ -38,7 +38,7 @@ export function UpdateFolderRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': value['name'],
|
|
41
|
-
'
|
|
41
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
export const UpdateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -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}
|
|
@@ -37,7 +37,7 @@ function instanceOfChunkResponse(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
41
41
|
return false;
|
|
42
42
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
43
43
|
return false;
|
|
@@ -63,9 +63,9 @@ function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'content': json['content'],
|
|
64
64
|
'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
65
65
|
'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
|
|
66
|
-
'
|
|
66
|
+
'parentPathId': json['parent_path_id'],
|
|
67
67
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
68
|
-
'
|
|
68
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
69
69
|
'materializedPath': json['materialized_path'],
|
|
70
70
|
'tenantId': json['tenant_id'],
|
|
71
71
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -86,9 +86,9 @@ function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
86
|
'content': value['content'],
|
|
87
87
|
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
88
88
|
'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
|
|
89
|
-
'
|
|
89
|
+
'parent_path_id': value['parentPathId'],
|
|
90
90
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
91
|
-
'
|
|
91
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
92
92
|
'materialized_path': value['materializedPath'],
|
|
93
93
|
'tenant_id': value['tenantId'],
|
|
94
94
|
'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}
|
|
@@ -27,7 +27,7 @@ const DocumentType_1 = require("./DocumentType");
|
|
|
27
27
|
function instanceOfCreateDocumentRequest(value) {
|
|
28
28
|
if (!('name' in value) || value['name'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('
|
|
30
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
31
31
|
return false;
|
|
32
32
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
33
33
|
return false;
|
|
@@ -44,7 +44,7 @@ function CreateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
}
|
|
45
45
|
return {
|
|
46
46
|
'name': json['name'],
|
|
47
|
-
'
|
|
47
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
48
48
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
49
49
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
50
50
|
};
|
|
@@ -58,7 +58,7 @@ function CreateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
60
|
'name': value['name'],
|
|
61
|
-
'
|
|
61
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
62
62
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
63
63
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
64
64
|
};
|
|
@@ -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.
|
|
@@ -25,7 +25,7 @@ exports.CreateFolderRequestToJSONTyped = CreateFolderRequestToJSONTyped;
|
|
|
25
25
|
function instanceOfCreateFolderRequest(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('
|
|
28
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
@@ -38,7 +38,7 @@ function CreateFolderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
40
|
'name': json['name'],
|
|
41
|
-
'
|
|
41
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function CreateFolderRequestToJSON(json) {
|
|
@@ -50,7 +50,7 @@ function CreateFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
52
|
'name': value['name'],
|
|
53
|
-
'
|
|
53
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
exports.CreateFolderRequestPropertyValidationAttributesMap = {
|
|
@@ -32,7 +32,7 @@ function instanceOfDocumentContentPathPart(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -57,7 +57,7 @@ function DocumentContentPathPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'pathPartId': json['path_part_id'],
|
|
58
58
|
'name': json['name'],
|
|
59
59
|
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
60
|
-
'
|
|
60
|
+
'parentPathId': json['parent_path_id'],
|
|
61
61
|
'metadataObjId': json['metadata_obj_id'],
|
|
62
62
|
'depth': json['depth'],
|
|
63
63
|
'content': json['content'] == null ? undefined : json['content'],
|
|
@@ -80,7 +80,7 @@ function DocumentContentPathPartToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
80
80
|
'path_part_id': value['pathPartId'],
|
|
81
81
|
'name': value['name'],
|
|
82
82
|
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
83
|
-
'
|
|
83
|
+
'parent_path_id': value['parentPathId'],
|
|
84
84
|
'metadata_obj_id': value['metadataObjId'],
|
|
85
85
|
'depth': value['depth'],
|
|
86
86
|
'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}
|
|
@@ -32,7 +32,7 @@ function instanceOfDocumentResponse(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('name' in value) || value['name'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('documentType' in value) || value['documentType'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -63,7 +63,7 @@ function DocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'id': json['id'],
|
|
64
64
|
'pathPartId': json['path_part_id'],
|
|
65
65
|
'name': json['name'],
|
|
66
|
-
'
|
|
66
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
67
67
|
'documentType': (0, DocumentType_1.DocumentTypeFromJSON)(json['document_type']),
|
|
68
68
|
'documentOrigin': (0, DocumentOrigin_1.DocumentOriginFromJSON)(json['document_origin']),
|
|
69
69
|
'activeVersionId': json['active_version_id'],
|
|
@@ -85,7 +85,7 @@ function DocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
85
85
|
'id': value['id'],
|
|
86
86
|
'path_part_id': value['pathPartId'],
|
|
87
87
|
'name': value['name'],
|
|
88
|
-
'
|
|
88
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
89
89
|
'document_type': (0, DocumentType_1.DocumentTypeToJSON)(value['documentType']),
|
|
90
90
|
'document_origin': (0, DocumentOrigin_1.DocumentOriginToJSON)(value['documentOrigin']),
|
|
91
91
|
'active_version_id': value['activeVersionId'],
|
|
@@ -32,7 +32,7 @@ function instanceOfDocumentVersionResponse(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('name' in value) || value['name'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('
|
|
35
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
36
36
|
return false;
|
|
37
37
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
38
38
|
return false;
|
|
@@ -56,7 +56,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'pathPartId': json['path_part_id'],
|
|
57
57
|
'version': json['version'],
|
|
58
58
|
'name': json['name'],
|
|
59
|
-
'
|
|
59
|
+
'parentPathId': json['parent_path_id'],
|
|
60
60
|
'materializedPath': json['materialized_path'],
|
|
61
61
|
'tenantId': json['tenant_id'],
|
|
62
62
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -77,7 +77,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
77
77
|
'path_part_id': value['pathPartId'],
|
|
78
78
|
'version': value['version'],
|
|
79
79
|
'name': value['name'],
|
|
80
|
-
'
|
|
80
|
+
'parent_path_id': value['parentPathId'],
|
|
81
81
|
'materialized_path': value['materializedPath'],
|
|
82
82
|
'tenant_id': value['tenantId'],
|
|
83
83
|
'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}
|
|
@@ -33,7 +33,7 @@ function instanceOfFolderDocumentResponse(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('
|
|
36
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
37
37
|
return false;
|
|
38
38
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
39
39
|
return false;
|
|
@@ -58,7 +58,7 @@ function FolderDocumentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'pathPartId': json['path_part_id'],
|
|
59
59
|
'name': json['name'],
|
|
60
60
|
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
61
|
-
'
|
|
61
|
+
'parentPathId': json['parent_path_id'],
|
|
62
62
|
'metadataObjId': json['metadata_obj_id'],
|
|
63
63
|
'materializedPath': json['materialized_path'],
|
|
64
64
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -83,7 +83,7 @@ function FolderDocumentResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
83
|
'path_part_id': value['pathPartId'],
|
|
84
84
|
'name': value['name'],
|
|
85
85
|
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
86
|
-
'
|
|
86
|
+
'parent_path_id': value['parentPathId'],
|
|
87
87
|
'metadata_obj_id': value['metadataObjId'],
|
|
88
88
|
'materialized_path': value['materializedPath'],
|
|
89
89
|
'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}
|
|
@@ -29,7 +29,7 @@ function instanceOfFolderResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('
|
|
32
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined)
|
|
33
33
|
return false;
|
|
34
34
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
35
35
|
return false;
|
|
@@ -52,7 +52,7 @@ function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'id': json['id'],
|
|
53
53
|
'pathPartId': json['path_part_id'],
|
|
54
54
|
'name': json['name'],
|
|
55
|
-
'
|
|
55
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
56
56
|
'materializedPath': json['materialized_path'],
|
|
57
57
|
'tenantId': json['tenant_id'],
|
|
58
58
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -70,7 +70,7 @@ function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
70
|
'id': value['id'],
|
|
71
71
|
'path_part_id': value['pathPartId'],
|
|
72
72
|
'name': value['name'],
|
|
73
|
-
'
|
|
73
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
74
74
|
'materialized_path': value['materializedPath'],
|
|
75
75
|
'tenant_id': value['tenantId'],
|
|
76
76
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -30,7 +30,7 @@ function instanceOfPathPartResponse(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('partType' in value) || value['partType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('
|
|
33
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
34
34
|
return false;
|
|
35
35
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
36
36
|
return false;
|
|
@@ -53,7 +53,7 @@ function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'pathPartId': json['path_part_id'],
|
|
54
54
|
'name': json['name'],
|
|
55
55
|
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
56
|
-
'
|
|
56
|
+
'parentPathId': json['parent_path_id'],
|
|
57
57
|
'metadataObjId': json['metadata_obj_id'],
|
|
58
58
|
'materializedPath': json['materialized_path'],
|
|
59
59
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -71,7 +71,7 @@ function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
71
|
'path_part_id': value['pathPartId'],
|
|
72
72
|
'name': value['name'],
|
|
73
73
|
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
74
|
-
'
|
|
74
|
+
'parent_path_id': value['parentPathId'],
|
|
75
75
|
'metadata_obj_id': value['metadataObjId'],
|
|
76
76
|
'materialized_path': value['materializedPath'],
|
|
77
77
|
'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}
|
|
@@ -37,7 +37,7 @@ function instanceOfScoredChunkResponse(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
41
41
|
return false;
|
|
42
42
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
43
43
|
return false;
|
|
@@ -65,9 +65,9 @@ function ScoredChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'content': json['content'],
|
|
66
66
|
'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
67
67
|
'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
|
|
68
|
-
'
|
|
68
|
+
'parentPathId': json['parent_path_id'],
|
|
69
69
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
70
|
-
'
|
|
70
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
71
71
|
'materializedPath': json['materialized_path'],
|
|
72
72
|
'tenantId': json['tenant_id'],
|
|
73
73
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -89,9 +89,9 @@ function ScoredChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
89
89
|
'content': value['content'],
|
|
90
90
|
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
91
91
|
'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
|
|
92
|
-
'
|
|
92
|
+
'parent_path_id': value['parentPathId'],
|
|
93
93
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
94
|
-
'
|
|
94
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
95
95
|
'materialized_path': value['materializedPath'],
|
|
96
96
|
'tenant_id': value['tenantId'],
|
|
97
97
|
'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}
|
|
@@ -29,7 +29,7 @@ function instanceOfSectionResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('name' in value) || value['name'] === 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;
|
|
@@ -53,9 +53,9 @@ function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'pathPartId': json['path_part_id'],
|
|
54
54
|
'name': json['name'],
|
|
55
55
|
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
56
|
-
'
|
|
56
|
+
'parentPathId': json['parent_path_id'],
|
|
57
57
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
58
|
-
'
|
|
58
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
59
59
|
'materializedPath': json['materialized_path'],
|
|
60
60
|
'tenantId': json['tenant_id'],
|
|
61
61
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -74,9 +74,9 @@ function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
74
|
'path_part_id': value['pathPartId'],
|
|
75
75
|
'name': value['name'],
|
|
76
76
|
'page_number': value['pageNumber'],
|
|
77
|
-
'
|
|
77
|
+
'parent_path_id': value['parentPathId'],
|
|
78
78
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
79
|
-
'
|
|
79
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
80
80
|
'materialized_path': value['materializedPath'],
|
|
81
81
|
'tenant_id': value['tenantId'],
|
|
82
82
|
'created_at': value['createdAt'].toISOString(),
|
|
@@ -34,7 +34,7 @@ function instanceOfThreadMessageResponse(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('content' in value) || value['content'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('
|
|
37
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
38
38
|
return false;
|
|
39
39
|
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
40
40
|
return false;
|
|
@@ -59,7 +59,7 @@ function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
59
|
'sequence': json['sequence'],
|
|
60
60
|
'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
|
|
61
61
|
'content': json['content'],
|
|
62
|
-
'
|
|
62
|
+
'parentPathId': json['parent_path_id'],
|
|
63
63
|
'materializedPath': json['materialized_path'],
|
|
64
64
|
'tenantId': json['tenant_id'],
|
|
65
65
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -79,7 +79,7 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
79
79
|
'sequence': value['sequence'],
|
|
80
80
|
'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
|
|
81
81
|
'content': value['content'],
|
|
82
|
-
'
|
|
82
|
+
'parent_path_id': value['parentPathId'],
|
|
83
83
|
'materialized_path': value['materializedPath'],
|
|
84
84
|
'tenant_id': value['tenantId'],
|
|
85
85
|
'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}
|
|
@@ -34,7 +34,7 @@ function UpdateDocumentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
-
'
|
|
37
|
+
'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
|
|
38
38
|
'activeVersionId': json['active_version_id'] == null ? undefined : json['active_version_id'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
@@ -47,7 +47,7 @@ function UpdateDocumentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
}
|
|
48
48
|
return {
|
|
49
49
|
'name': value['name'],
|
|
50
|
-
'
|
|
50
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
51
51
|
'active_version_id': value['activeVersionId'],
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -22,11 +22,11 @@ export interface UpdateFolderRequest {
|
|
|
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 UpdateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
parentPathPartId?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the UpdateFolderRequest interface.
|