@knowledge-stack/ksapi 1.19.5 → 1.20.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/.openapi-generator/FILES +2 -1
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +9 -9
- package/dist/apis/ChunkLineagesApi.d.ts +3 -3
- package/dist/apis/ChunksApi.d.ts +6 -6
- package/dist/apis/DocumentVersionsApi.d.ts +37 -8
- package/dist/apis/DocumentVersionsApi.js +32 -0
- package/dist/apis/DocumentsApi.d.ts +14 -14
- package/dist/apis/DocumentsApi.js +6 -6
- package/dist/apis/FoldersApi.d.ts +11 -11
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/InvitesApi.d.ts +5 -5
- package/dist/apis/PathPartsApi.d.ts +3 -3
- package/dist/apis/SectionsApi.d.ts +4 -4
- package/dist/apis/TagsApi.d.ts +7 -7
- package/dist/apis/TenantsApi.d.ts +6 -6
- package/dist/apis/ThreadMessagesApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.d.ts +6 -6
- package/dist/apis/UserPermissionsApi.d.ts +4 -4
- package/dist/apis/UsersApi.d.ts +2 -2
- package/dist/apis/WorkflowsApi.d.ts +3 -3
- package/dist/esm/apis/AuthApi.d.ts +9 -9
- package/dist/esm/apis/ChunkLineagesApi.d.ts +3 -3
- package/dist/esm/apis/ChunksApi.d.ts +6 -6
- package/dist/esm/apis/DocumentVersionsApi.d.ts +37 -8
- package/dist/esm/apis/DocumentVersionsApi.js +33 -1
- package/dist/esm/apis/DocumentsApi.d.ts +14 -14
- package/dist/esm/apis/DocumentsApi.js +6 -6
- package/dist/esm/apis/FoldersApi.d.ts +11 -11
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/InvitesApi.d.ts +5 -5
- package/dist/esm/apis/PathPartsApi.d.ts +3 -3
- package/dist/esm/apis/SectionsApi.d.ts +4 -4
- package/dist/esm/apis/TagsApi.d.ts +7 -7
- package/dist/esm/apis/TenantsApi.d.ts +6 -6
- package/dist/esm/apis/ThreadMessagesApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.d.ts +6 -6
- package/dist/esm/apis/UserPermissionsApi.d.ts +4 -4
- package/dist/esm/apis/UsersApi.d.ts +2 -2
- package/dist/esm/apis/WorkflowsApi.d.ts +3 -3
- package/dist/esm/models/ChunkMetadataInput.d.ts +6 -0
- package/dist/esm/models/ChunkMetadataInput.js +2 -0
- package/dist/esm/models/ChunkMetadataOutput.d.ts +6 -0
- package/dist/esm/models/ChunkMetadataOutput.js +2 -0
- package/dist/esm/models/ChunkResponse.d.ts +4 -4
- package/dist/esm/models/ChunkSearchRequest.d.ts +5 -9
- package/dist/esm/models/ChunkSearchRequest.js +0 -1
- package/dist/esm/models/ClearVersionContentsResponse.d.ts +47 -0
- package/dist/esm/models/ClearVersionContentsResponse.js +44 -0
- package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
- package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/esm/models/CreateSectionRequest.d.ts +2 -2
- package/dist/esm/models/CreateTagRequest.d.ts +1 -1
- package/dist/esm/models/CreateTenantRequest.d.ts +1 -1
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +5 -7
- package/dist/esm/models/CreateThreadMessageRequest.js +0 -1
- package/dist/esm/models/CreateThreadRequest.d.ts +1 -1
- package/dist/esm/models/DocumentContentPathPart.d.ts +5 -5
- package/dist/esm/models/DocumentResponse.d.ts +4 -4
- package/dist/esm/models/DocumentType.d.ts +1 -0
- package/dist/esm/models/DocumentType.js +1 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +12 -7
- package/dist/esm/models/DocumentVersionMetadata.js +3 -18
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -6
- package/dist/esm/models/DocumentVersionResponse.d.ts +3 -3
- package/dist/esm/models/FolderDocumentResponse.d.ts +9 -9
- package/dist/esm/models/FolderResponse.d.ts +1 -1
- package/dist/esm/models/InviteResponse.d.ts +2 -2
- package/dist/esm/models/LineageNodeResponse.d.ts +2 -2
- package/dist/esm/models/LocationInner.d.ts +41 -0
- package/dist/esm/models/LocationInner.js +32 -0
- package/dist/esm/models/OAuth2Config.d.ts +5 -0
- package/dist/esm/models/OAuth2Config.js +3 -12
- package/dist/esm/models/PathPartResponse.d.ts +3 -3
- package/dist/esm/models/PipelineState.d.ts +5 -5
- package/dist/esm/models/PolygonReference.d.ts +1 -1
- package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/esm/models/SectionResponse.d.ts +3 -3
- package/dist/esm/models/SignInRequest.d.ts +1 -1
- package/dist/esm/models/TagResponse.d.ts +1 -1
- package/dist/esm/models/TenantResponse.d.ts +1 -1
- package/dist/esm/models/TenantUserInTenantResponse.d.ts +2 -2
- package/dist/esm/models/ThreadMessageResponse.d.ts +5 -7
- package/dist/esm/models/ThreadMessageResponse.js +0 -1
- package/dist/esm/models/ThreadResponse.d.ts +1 -1
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +1 -1
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +1 -1
- package/dist/esm/models/UpdateDocumentRequest.d.ts +3 -3
- package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/esm/models/UpdatePermissionRequest.d.ts +1 -1
- package/dist/esm/models/UpdateSectionRequest.d.ts +3 -3
- package/dist/esm/models/UpdateTagRequest.d.ts +3 -3
- package/dist/esm/models/UpdateTenantRequest.d.ts +2 -2
- package/dist/esm/models/UpdateThreadRequest.d.ts +2 -2
- package/dist/esm/models/UserResponse.d.ts +3 -3
- package/dist/esm/models/ValidationError.d.ts +3 -3
- package/dist/esm/models/ValidationError.js +3 -3
- package/dist/esm/models/WorkflowDetailResponse.d.ts +4 -4
- package/dist/esm/models/WorkflowSummaryResponse.d.ts +2 -2
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +2 -1
- package/dist/models/ChunkMetadataInput.d.ts +6 -0
- package/dist/models/ChunkMetadataInput.js +2 -0
- package/dist/models/ChunkMetadataOutput.d.ts +6 -0
- package/dist/models/ChunkMetadataOutput.js +2 -0
- package/dist/models/ChunkResponse.d.ts +4 -4
- package/dist/models/ChunkSearchRequest.d.ts +5 -9
- package/dist/models/ChunkSearchRequest.js +1 -2
- package/dist/models/ClearVersionContentsResponse.d.ts +47 -0
- package/dist/models/ClearVersionContentsResponse.js +52 -0
- package/dist/models/CreateChunkRequest.d.ts +3 -3
- package/dist/models/CreateDocumentRequest.d.ts +2 -2
- package/dist/models/CreateSectionRequest.d.ts +2 -2
- package/dist/models/CreateTagRequest.d.ts +1 -1
- package/dist/models/CreateTenantRequest.d.ts +1 -1
- package/dist/models/CreateThreadMessageRequest.d.ts +5 -7
- package/dist/models/CreateThreadMessageRequest.js +1 -2
- package/dist/models/CreateThreadRequest.d.ts +1 -1
- package/dist/models/DocumentContentPathPart.d.ts +5 -5
- package/dist/models/DocumentResponse.d.ts +4 -4
- package/dist/models/DocumentType.d.ts +1 -0
- package/dist/models/DocumentType.js +1 -0
- package/dist/models/DocumentVersionMetadata.d.ts +12 -7
- package/dist/models/DocumentVersionMetadata.js +4 -19
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -6
- package/dist/models/DocumentVersionResponse.d.ts +3 -3
- package/dist/models/FolderDocumentResponse.d.ts +9 -9
- package/dist/models/FolderResponse.d.ts +1 -1
- package/dist/models/InviteResponse.d.ts +2 -2
- package/dist/models/LineageNodeResponse.d.ts +2 -2
- package/dist/models/LocationInner.d.ts +41 -0
- package/dist/models/LocationInner.js +40 -0
- package/dist/models/OAuth2Config.d.ts +5 -0
- package/dist/models/OAuth2Config.js +4 -13
- package/dist/models/PathPartResponse.d.ts +3 -3
- package/dist/models/PipelineState.d.ts +5 -5
- package/dist/models/PolygonReference.d.ts +1 -1
- package/dist/models/ScoredChunkResponse.d.ts +4 -4
- package/dist/models/SectionResponse.d.ts +3 -3
- package/dist/models/SignInRequest.d.ts +1 -1
- package/dist/models/TagResponse.d.ts +1 -1
- package/dist/models/TenantResponse.d.ts +1 -1
- package/dist/models/TenantUserInTenantResponse.d.ts +2 -2
- package/dist/models/ThreadMessageResponse.d.ts +5 -7
- package/dist/models/ThreadMessageResponse.js +1 -2
- package/dist/models/ThreadResponse.d.ts +1 -1
- package/dist/models/UpdateChunkContentRequest.d.ts +1 -1
- package/dist/models/UpdateChunkMetadataRequest.d.ts +1 -1
- package/dist/models/UpdateDocumentRequest.d.ts +3 -3
- package/dist/models/UpdateFolderRequest.d.ts +2 -2
- package/dist/models/UpdatePermissionRequest.d.ts +1 -1
- package/dist/models/UpdateSectionRequest.d.ts +3 -3
- package/dist/models/UpdateTagRequest.d.ts +3 -3
- package/dist/models/UpdateTenantRequest.d.ts +2 -2
- package/dist/models/UpdateThreadRequest.d.ts +2 -2
- package/dist/models/UserResponse.d.ts +3 -3
- package/dist/models/ValidationError.d.ts +3 -3
- package/dist/models/ValidationError.js +3 -3
- package/dist/models/WorkflowDetailResponse.d.ts +4 -4
- package/dist/models/WorkflowSummaryResponse.d.ts +2 -2
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +9 -9
- package/src/apis/ChunkLineagesApi.ts +3 -3
- package/src/apis/ChunksApi.ts +6 -6
- package/src/apis/DocumentVersionsApi.ts +71 -7
- package/src/apis/DocumentsApi.ts +19 -19
- package/src/apis/FoldersApi.ts +11 -11
- package/src/apis/InvitesApi.ts +5 -5
- package/src/apis/PathPartsApi.ts +3 -3
- package/src/apis/SectionsApi.ts +4 -4
- package/src/apis/TagsApi.ts +7 -7
- package/src/apis/TenantsApi.ts +6 -6
- package/src/apis/ThreadMessagesApi.ts +4 -4
- package/src/apis/ThreadsApi.ts +6 -6
- package/src/apis/UserPermissionsApi.ts +4 -4
- package/src/apis/UsersApi.ts +2 -2
- package/src/apis/WorkflowsApi.ts +3 -3
- package/src/models/ChunkMetadataInput.ts +8 -0
- package/src/models/ChunkMetadataOutput.ts +8 -0
- package/src/models/ChunkResponse.ts +4 -4
- package/src/models/ChunkSearchRequest.ts +5 -8
- package/src/models/ClearVersionContentsResponse.ts +83 -0
- package/src/models/CreateChunkRequest.ts +3 -3
- package/src/models/CreateDocumentRequest.ts +2 -2
- package/src/models/CreateSectionRequest.ts +2 -2
- package/src/models/CreateTagRequest.ts +1 -1
- package/src/models/CreateTenantRequest.ts +1 -1
- package/src/models/CreateThreadMessageRequest.ts +3 -6
- package/src/models/CreateThreadRequest.ts +1 -1
- package/src/models/DocumentContentPathPart.ts +5 -5
- package/src/models/DocumentResponse.ts +4 -4
- package/src/models/DocumentType.ts +1 -0
- package/src/models/DocumentVersionMetadata.ts +13 -7
- package/src/models/DocumentVersionMetadataUpdate.ts +6 -6
- package/src/models/DocumentVersionResponse.ts +3 -3
- package/src/models/FolderDocumentResponse.ts +9 -9
- package/src/models/FolderResponse.ts +1 -1
- package/src/models/InviteResponse.ts +2 -2
- package/src/models/LineageNodeResponse.ts +2 -2
- package/src/models/LocationInner.ts +63 -0
- package/src/models/OAuth2Config.ts +6 -0
- package/src/models/PathPartResponse.ts +3 -3
- package/src/models/PipelineState.ts +5 -5
- package/src/models/PolygonReference.ts +1 -1
- package/src/models/ScoredChunkResponse.ts +4 -4
- package/src/models/SectionResponse.ts +3 -3
- package/src/models/SignInRequest.ts +1 -1
- package/src/models/TagResponse.ts +1 -1
- package/src/models/TenantResponse.ts +1 -1
- package/src/models/TenantUserInTenantResponse.ts +2 -2
- package/src/models/ThreadMessageResponse.ts +3 -6
- package/src/models/ThreadResponse.ts +1 -1
- package/src/models/UpdateChunkContentRequest.ts +1 -1
- package/src/models/UpdateChunkMetadataRequest.ts +1 -1
- package/src/models/UpdateDocumentRequest.ts +3 -3
- package/src/models/UpdateFolderRequest.ts +2 -2
- package/src/models/UpdatePermissionRequest.ts +1 -1
- package/src/models/UpdateSectionRequest.ts +3 -3
- package/src/models/UpdateTagRequest.ts +3 -3
- package/src/models/UpdateTenantRequest.ts +2 -2
- package/src/models/UpdateThreadRequest.ts +2 -2
- package/src/models/UserResponse.ts +3 -3
- package/src/models/ValidationError.ts +10 -10
- package/src/models/WorkflowDetailResponse.ts +4 -4
- package/src/models/WorkflowSummaryResponse.ts +2 -2
- package/src/models/index.ts +2 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -41
- package/dist/esm/models/ValidationErrorLocInner.js +0 -32
- package/dist/models/ValidationErrorLocInner.d.ts +0 -41
- package/dist/models/ValidationErrorLocInner.js +0 -40
- package/src/models/ValidationErrorLocInner.ts +0 -63
|
@@ -20,13 +20,13 @@ export interface UpdateFolderRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateFolderRequest
|
|
22
22
|
*/
|
|
23
|
-
name?: string;
|
|
23
|
+
name?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* New parent PathPart ID for move (must be a FOLDER type)
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateFolderRequest
|
|
28
28
|
*/
|
|
29
|
-
parentPathPartId?: string;
|
|
29
|
+
parentPathPartId?: string | null;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the UpdateFolderRequest interface.
|
|
@@ -20,19 +20,19 @@ export interface UpdateSectionRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateSectionRequest
|
|
22
22
|
*/
|
|
23
|
-
name?: string;
|
|
23
|
+
name?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* New page number (must be > 0)
|
|
26
26
|
* @type {number}
|
|
27
27
|
* @memberof UpdateSectionRequest
|
|
28
28
|
*/
|
|
29
|
-
pageNumber?: number;
|
|
29
|
+
pageNumber?: number | null;
|
|
30
30
|
/**
|
|
31
31
|
* Move after this sibling PathPart ID
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateSectionRequest
|
|
34
34
|
*/
|
|
35
|
-
prevSiblingPathId?: string;
|
|
35
|
+
prevSiblingPathId?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
* Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
|
|
38
38
|
* @type {boolean}
|
|
@@ -20,19 +20,19 @@ export interface UpdateTagRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateTagRequest
|
|
22
22
|
*/
|
|
23
|
-
name?: string;
|
|
23
|
+
name?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* New tag color as 6-character hex string
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateTagRequest
|
|
28
28
|
*/
|
|
29
|
-
color?: string;
|
|
29
|
+
color?: string | null;
|
|
30
30
|
/**
|
|
31
31
|
* New tag description (empty string to clear)
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof UpdateTagRequest
|
|
34
34
|
*/
|
|
35
|
-
description?: string;
|
|
35
|
+
description?: string | null;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the UpdateTagRequest interface.
|
|
@@ -21,9 +21,9 @@ export interface UpdateTenantRequest {
|
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof UpdateTenantRequest
|
|
23
23
|
*/
|
|
24
|
-
name?: string;
|
|
24
|
+
name?: string | null;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
*
|
|
27
27
|
* @type {OAuth2Config}
|
|
28
28
|
* @memberof UpdateTenantRequest
|
|
29
29
|
*/
|
|
@@ -20,13 +20,13 @@ export interface UpdateThreadRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateThreadRequest
|
|
22
22
|
*/
|
|
23
|
-
title?: string;
|
|
23
|
+
title?: string | null;
|
|
24
24
|
/**
|
|
25
25
|
* Parent thread ID. Set to a UUID to link, or null to clear.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateThreadRequest
|
|
28
28
|
*/
|
|
29
|
-
parentThreadId?: string;
|
|
29
|
+
parentThreadId?: string | null;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the UpdateThreadRequest interface.
|
|
@@ -28,9 +28,9 @@ export interface UserResponse {
|
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof UserResponse
|
|
30
30
|
*/
|
|
31
|
-
email: string;
|
|
31
|
+
email: string | null;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
*
|
|
34
34
|
* @type {IdpType}
|
|
35
35
|
* @memberof UserResponse
|
|
36
36
|
*/
|
|
@@ -42,7 +42,7 @@ export interface UserResponse {
|
|
|
42
42
|
*/
|
|
43
43
|
currentTenantId: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
*
|
|
46
46
|
* @type {TenantUserRole}
|
|
47
47
|
* @memberof UserResponse
|
|
48
48
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { LocationInner } from './LocationInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
|
18
18
|
export interface ValidationError {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<LocationInner>}
|
|
22
22
|
* @memberof ValidationError
|
|
23
23
|
*/
|
|
24
|
-
loc: Array<
|
|
24
|
+
loc: Array<LocationInner>;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { LocationInnerFromJSON, LocationInnerToJSON, } from './LocationInner';
|
|
15
15
|
/**
|
|
16
16
|
* Check if a given object implements the ValidationError interface.
|
|
17
17
|
*/
|
|
@@ -32,7 +32,7 @@ export function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
|
-
'loc': (json['loc'].map(
|
|
35
|
+
'loc': (json['loc'].map(LocationInnerFromJSON)),
|
|
36
36
|
'msg': json['msg'],
|
|
37
37
|
'type': json['type'],
|
|
38
38
|
'input': json['input'] == null ? undefined : json['input'],
|
|
@@ -47,7 +47,7 @@ export function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
47
|
return value;
|
|
48
48
|
}
|
|
49
49
|
return {
|
|
50
|
-
'loc': (value['loc'].map(
|
|
50
|
+
'loc': (value['loc'].map(LocationInnerToJSON)),
|
|
51
51
|
'msg': value['msg'],
|
|
52
52
|
'type': value['type'],
|
|
53
53
|
'input': value['input'],
|
|
@@ -45,13 +45,13 @@ export interface WorkflowDetailResponse {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof WorkflowDetailResponse
|
|
47
47
|
*/
|
|
48
|
-
lastActivity?: string;
|
|
48
|
+
lastActivity?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof WorkflowDetailResponse
|
|
53
53
|
*/
|
|
54
|
-
error?: string;
|
|
54
|
+
error?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Date}
|
|
@@ -81,7 +81,7 @@ export interface WorkflowDetailResponse {
|
|
|
81
81
|
* @type {Date}
|
|
82
82
|
* @memberof WorkflowDetailResponse
|
|
83
83
|
*/
|
|
84
|
-
closeTime?: Date;
|
|
84
|
+
closeTime?: Date | null;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -105,7 +105,7 @@ export interface WorkflowDetailResponse {
|
|
|
105
105
|
* @type {number}
|
|
106
106
|
* @memberof WorkflowDetailResponse
|
|
107
107
|
*/
|
|
108
|
-
chunksProcessed?: number;
|
|
108
|
+
chunksProcessed?: number | null;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* Check if a given object implements the WorkflowDetailResponse interface.
|
|
@@ -45,13 +45,13 @@ export interface WorkflowSummaryResponse {
|
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof WorkflowSummaryResponse
|
|
47
47
|
*/
|
|
48
|
-
lastActivity?: string;
|
|
48
|
+
lastActivity?: string | null;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof WorkflowSummaryResponse
|
|
53
53
|
*/
|
|
54
|
-
error?: string;
|
|
54
|
+
error?: string | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {Date}
|
|
@@ -4,6 +4,7 @@ export * from './ChunkMetadataOutput';
|
|
|
4
4
|
export * from './ChunkResponse';
|
|
5
5
|
export * from './ChunkSearchRequest';
|
|
6
6
|
export * from './ChunkType';
|
|
7
|
+
export * from './ClearVersionContentsResponse';
|
|
7
8
|
export * from './CreateChunkLineageRequest';
|
|
8
9
|
export * from './CreateChunkRequest';
|
|
9
10
|
export * from './CreateDocumentRequest';
|
|
@@ -37,6 +38,7 @@ export * from './InviteUserRequest';
|
|
|
37
38
|
export * from './LineageEdgeResponse';
|
|
38
39
|
export * from './LineageGraphResponse';
|
|
39
40
|
export * from './LineageNodeResponse';
|
|
41
|
+
export * from './LocationInner';
|
|
40
42
|
export * from './MessageRole';
|
|
41
43
|
export * from './OAuth2Config';
|
|
42
44
|
export * from './PaginatedResponseDocumentContentPathPart';
|
|
@@ -87,7 +89,6 @@ export * from './UpdateThreadRequest';
|
|
|
87
89
|
export * from './UpdateUserRequest';
|
|
88
90
|
export * from './UserResponse';
|
|
89
91
|
export * from './ValidationError';
|
|
90
|
-
export * from './ValidationErrorLocInner';
|
|
91
92
|
export * from './WorkflowAction';
|
|
92
93
|
export * from './WorkflowActionResponse';
|
|
93
94
|
export * from './WorkflowDetailResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './ChunkMetadataOutput';
|
|
|
6
6
|
export * from './ChunkResponse';
|
|
7
7
|
export * from './ChunkSearchRequest';
|
|
8
8
|
export * from './ChunkType';
|
|
9
|
+
export * from './ClearVersionContentsResponse';
|
|
9
10
|
export * from './CreateChunkLineageRequest';
|
|
10
11
|
export * from './CreateChunkRequest';
|
|
11
12
|
export * from './CreateDocumentRequest';
|
|
@@ -39,6 +40,7 @@ export * from './InviteUserRequest';
|
|
|
39
40
|
export * from './LineageEdgeResponse';
|
|
40
41
|
export * from './LineageGraphResponse';
|
|
41
42
|
export * from './LineageNodeResponse';
|
|
43
|
+
export * from './LocationInner';
|
|
42
44
|
export * from './MessageRole';
|
|
43
45
|
export * from './OAuth2Config';
|
|
44
46
|
export * from './PaginatedResponseDocumentContentPathPart';
|
|
@@ -89,7 +91,6 @@ export * from './UpdateThreadRequest';
|
|
|
89
91
|
export * from './UpdateUserRequest';
|
|
90
92
|
export * from './UserResponse';
|
|
91
93
|
export * from './ValidationError';
|
|
92
|
-
export * from './ValidationErrorLocInner';
|
|
93
94
|
export * from './WorkflowAction';
|
|
94
95
|
export * from './WorkflowActionResponse';
|
|
95
96
|
export * from './WorkflowDetailResponse';
|
|
@@ -22,6 +22,12 @@ export interface ChunkMetadataInput {
|
|
|
22
22
|
* @memberof ChunkMetadataInput
|
|
23
23
|
*/
|
|
24
24
|
polygons?: Array<PolygonReference>;
|
|
25
|
+
/**
|
|
26
|
+
* Full s3:// URI to the visual asset for this chunk. Set for IMAGE and TABLE chunks.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ChunkMetadataInput
|
|
29
|
+
*/
|
|
30
|
+
s3Url?: string | null;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Check if a given object implements the ChunkMetadataInput interface.
|
|
@@ -35,6 +35,7 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
|
|
38
|
+
's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function ChunkMetadataInputToJSON(json) {
|
|
@@ -46,6 +47,7 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
|
|
50
|
+
's3_url': value['s3Url'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
exports.ChunkMetadataInputPropertyValidationAttributesMap = {};
|
|
@@ -22,6 +22,12 @@ export interface ChunkMetadataOutput {
|
|
|
22
22
|
* @memberof ChunkMetadataOutput
|
|
23
23
|
*/
|
|
24
24
|
polygons?: Array<PolygonReference>;
|
|
25
|
+
/**
|
|
26
|
+
* Full s3:// URI to the visual asset for this chunk. Set for IMAGE and TABLE chunks.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ChunkMetadataOutput
|
|
29
|
+
*/
|
|
30
|
+
s3Url?: string | null;
|
|
25
31
|
}
|
|
26
32
|
/**
|
|
27
33
|
* Check if a given object implements the ChunkMetadataOutput interface.
|
|
@@ -35,6 +35,7 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
|
|
38
|
+
's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
function ChunkMetadataOutputToJSON(json) {
|
|
@@ -46,6 +47,7 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
47
|
}
|
|
47
48
|
return {
|
|
48
49
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
|
|
50
|
+
's3_url': value['s3Url'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
exports.ChunkMetadataOutputPropertyValidationAttributesMap = {};
|
|
@@ -42,13 +42,13 @@ export interface ChunkResponse {
|
|
|
42
42
|
*/
|
|
43
43
|
content: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
*
|
|
46
46
|
* @type {ChunkType}
|
|
47
47
|
* @memberof ChunkResponse
|
|
48
48
|
*/
|
|
49
49
|
chunkType: ChunkType;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
*
|
|
52
52
|
* @type {ChunkMetadataOutput}
|
|
53
53
|
* @memberof ChunkResponse
|
|
54
54
|
*/
|
|
@@ -64,13 +64,13 @@ export interface ChunkResponse {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof ChunkResponse
|
|
66
66
|
*/
|
|
67
|
-
prevSiblingPathId?: string;
|
|
67
|
+
prevSiblingPathId?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
* Next sibling PathPart ID
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof ChunkResponse
|
|
72
72
|
*/
|
|
73
|
-
nextSiblingPathId?: string;
|
|
73
|
+
nextSiblingPathId?: string | null;
|
|
74
74
|
/**
|
|
75
75
|
* Full materialized path from root
|
|
76
76
|
* @type {string}
|
|
@@ -24,19 +24,19 @@ export interface ChunkSearchRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
query: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
*
|
|
28
28
|
* @type {EmbeddingModel}
|
|
29
29
|
* @memberof ChunkSearchRequest
|
|
30
30
|
*/
|
|
31
31
|
model?: EmbeddingModel;
|
|
32
32
|
/**
|
|
33
|
-
* Path part IDs to search within (non-CHUNK types). Defaults to tenant's /
|
|
33
|
+
* Path part IDs to search within (non-CHUNK types). Defaults to tenant's /shared.
|
|
34
34
|
* @type {Array<string>}
|
|
35
35
|
* @memberof ChunkSearchRequest
|
|
36
36
|
*/
|
|
37
|
-
parentPathIds?: Array<string
|
|
37
|
+
parentPathIds?: Array<string> | null;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* @type {ChunkType}
|
|
41
41
|
* @memberof ChunkSearchRequest
|
|
42
42
|
*/
|
|
@@ -46,7 +46,7 @@ export interface ChunkSearchRequest {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof ChunkSearchRequest
|
|
48
48
|
*/
|
|
49
|
-
updatedAt?: Date;
|
|
49
|
+
updatedAt?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
* Number of results (1-50)
|
|
52
52
|
* @type {number}
|
|
@@ -83,7 +83,3 @@ export declare const ChunkSearchRequestPropertyValidationAttributesMap: {
|
|
|
83
83
|
uniqueItems?: boolean;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
86
|
-
export declare const ChunkSearchRequestAdditionalPropertiesValidationAttributes: {
|
|
87
|
-
maxProperties?: number;
|
|
88
|
-
minProperties?: number;
|
|
89
|
-
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ChunkSearchRequestPropertyValidationAttributesMap = void 0;
|
|
17
17
|
exports.instanceOfChunkSearchRequest = instanceOfChunkSearchRequest;
|
|
18
18
|
exports.ChunkSearchRequestFromJSON = ChunkSearchRequestFromJSON;
|
|
19
19
|
exports.ChunkSearchRequestFromJSONTyped = ChunkSearchRequestFromJSONTyped;
|
|
@@ -74,4 +74,3 @@ exports.ChunkSearchRequestPropertyValidationAttributesMap = {
|
|
|
74
74
|
exclusiveMinimum: false,
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
|
-
exports.ChunkSearchRequestAdditionalPropertiesValidationAttributes = {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Response model for the clear version contents endpoint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ClearVersionContentsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface ClearVersionContentsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Number of top-level children deleted
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ClearVersionContentsResponse
|
|
22
|
+
*/
|
|
23
|
+
deleted: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ClearVersionContentsResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfClearVersionContentsResponse(value: object): value is ClearVersionContentsResponse;
|
|
29
|
+
export declare function ClearVersionContentsResponseFromJSON(json: any): ClearVersionContentsResponse;
|
|
30
|
+
export declare function ClearVersionContentsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClearVersionContentsResponse;
|
|
31
|
+
export declare function ClearVersionContentsResponseToJSON(json: any): ClearVersionContentsResponse;
|
|
32
|
+
export declare function ClearVersionContentsResponseToJSONTyped(value?: ClearVersionContentsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const ClearVersionContentsResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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.ClearVersionContentsResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfClearVersionContentsResponse = instanceOfClearVersionContentsResponse;
|
|
18
|
+
exports.ClearVersionContentsResponseFromJSON = ClearVersionContentsResponseFromJSON;
|
|
19
|
+
exports.ClearVersionContentsResponseFromJSONTyped = ClearVersionContentsResponseFromJSONTyped;
|
|
20
|
+
exports.ClearVersionContentsResponseToJSON = ClearVersionContentsResponseToJSON;
|
|
21
|
+
exports.ClearVersionContentsResponseToJSONTyped = ClearVersionContentsResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ClearVersionContentsResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfClearVersionContentsResponse(value) {
|
|
26
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ClearVersionContentsResponseFromJSON(json) {
|
|
31
|
+
return ClearVersionContentsResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ClearVersionContentsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'deleted': json['deleted'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ClearVersionContentsResponseToJSON(json) {
|
|
42
|
+
return ClearVersionContentsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ClearVersionContentsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'deleted': value['deleted'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.ClearVersionContentsResponsePropertyValidationAttributesMap = {};
|
|
@@ -30,13 +30,13 @@ export interface CreateChunkRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
content: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
*
|
|
34
34
|
* @type {ChunkType}
|
|
35
35
|
* @memberof CreateChunkRequest
|
|
36
36
|
*/
|
|
37
37
|
chunkType: ChunkType;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* @type {ChunkMetadataInput}
|
|
41
41
|
* @memberof CreateChunkRequest
|
|
42
42
|
*/
|
|
@@ -46,7 +46,7 @@ export interface CreateChunkRequest {
|
|
|
46
46
|
* @type {string}
|
|
47
47
|
* @memberof CreateChunkRequest
|
|
48
48
|
*/
|
|
49
|
-
prevSiblingPathId?: string;
|
|
49
|
+
prevSiblingPathId?: string | null;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Check if a given object implements the CreateChunkRequest interface.
|
|
@@ -30,13 +30,13 @@ export interface CreateDocumentRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
parentPathPartId: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
*
|
|
34
34
|
* @type {DocumentType}
|
|
35
35
|
* @memberof CreateDocumentRequest
|
|
36
36
|
*/
|
|
37
37
|
documentType: DocumentType;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
*
|
|
40
40
|
* @type {DocumentOrigin}
|
|
41
41
|
* @memberof CreateDocumentRequest
|
|
42
42
|
*/
|
|
@@ -32,13 +32,13 @@ export interface CreateSectionRequest {
|
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof CreateSectionRequest
|
|
34
34
|
*/
|
|
35
|
-
pageNumber?: number;
|
|
35
|
+
pageNumber?: number | null;
|
|
36
36
|
/**
|
|
37
37
|
* PathPart ID to insert after (null = append to tail)
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateSectionRequest
|
|
40
40
|
*/
|
|
41
|
-
prevSiblingPathId?: string;
|
|
41
|
+
prevSiblingPathId?: string | null;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Check if a given object implements the CreateSectionRequest interface.
|
|
@@ -17,17 +17,19 @@ import type { MessageRole } from './MessageRole';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateThreadMessageRequest {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
*
|
|
21
21
|
* @type {MessageRole}
|
|
22
22
|
* @memberof CreateThreadMessageRequest
|
|
23
23
|
*/
|
|
24
24
|
role: MessageRole;
|
|
25
25
|
/**
|
|
26
26
|
* Structured message content (JSONB)
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {{ [key: string]: any; }}
|
|
28
28
|
* @memberof CreateThreadMessageRequest
|
|
29
29
|
*/
|
|
30
|
-
content:
|
|
30
|
+
content: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
31
33
|
}
|
|
32
34
|
/**
|
|
33
35
|
* Check if a given object implements the CreateThreadMessageRequest interface.
|
|
@@ -52,7 +54,3 @@ export declare const CreateThreadMessageRequestPropertyValidationAttributesMap:
|
|
|
52
54
|
uniqueItems?: boolean;
|
|
53
55
|
};
|
|
54
56
|
};
|
|
55
|
-
export declare const CreateThreadMessageRequestAdditionalPropertiesValidationAttributes: {
|
|
56
|
-
maxProperties?: number;
|
|
57
|
-
minProperties?: number;
|
|
58
|
-
};
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateThreadMessageRequestPropertyValidationAttributesMap = void 0;
|
|
17
17
|
exports.instanceOfCreateThreadMessageRequest = instanceOfCreateThreadMessageRequest;
|
|
18
18
|
exports.CreateThreadMessageRequestFromJSON = CreateThreadMessageRequestFromJSON;
|
|
19
19
|
exports.CreateThreadMessageRequestFromJSONTyped = CreateThreadMessageRequestFromJSONTyped;
|
|
@@ -55,4 +55,3 @@ function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
exports.CreateThreadMessageRequestPropertyValidationAttributesMap = {};
|
|
58
|
-
exports.CreateThreadMessageRequestAdditionalPropertiesValidationAttributes = {};
|