@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
|
@@ -14,34 +14,34 @@ import type { CreateTagRequest, PaginatedResponseTagResponse, TagPathPartRequest
|
|
|
14
14
|
export interface AttachTagToPathPartRequest {
|
|
15
15
|
tagId: string;
|
|
16
16
|
tagPathPartRequest: TagPathPartRequest;
|
|
17
|
-
ksUat?: string;
|
|
17
|
+
ksUat?: string | null;
|
|
18
18
|
}
|
|
19
19
|
export interface CreateTagOperationRequest {
|
|
20
20
|
createTagRequest: CreateTagRequest;
|
|
21
|
-
ksUat?: string;
|
|
21
|
+
ksUat?: string | null;
|
|
22
22
|
}
|
|
23
23
|
export interface DeleteTagRequest {
|
|
24
24
|
tagId: string;
|
|
25
|
-
ksUat?: string;
|
|
25
|
+
ksUat?: string | null;
|
|
26
26
|
}
|
|
27
27
|
export interface DetachTagFromPathPartRequest {
|
|
28
28
|
tagId: string;
|
|
29
29
|
pathPartId: string;
|
|
30
|
-
ksUat?: string;
|
|
30
|
+
ksUat?: string | null;
|
|
31
31
|
}
|
|
32
32
|
export interface GetTagRequest {
|
|
33
33
|
tagId: string;
|
|
34
|
-
ksUat?: string;
|
|
34
|
+
ksUat?: string | null;
|
|
35
35
|
}
|
|
36
36
|
export interface ListTagsRequest {
|
|
37
37
|
limit?: number;
|
|
38
38
|
offset?: number;
|
|
39
|
-
ksUat?: string;
|
|
39
|
+
ksUat?: string | null;
|
|
40
40
|
}
|
|
41
41
|
export interface UpdateTagOperationRequest {
|
|
42
42
|
tagId: string;
|
|
43
43
|
updateTagRequest: UpdateTagRequest;
|
|
44
|
-
ksUat?: string;
|
|
44
|
+
ksUat?: string | null;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* TagsApi - interface
|
|
@@ -13,31 +13,31 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { CreateTenantRequest, PaginatedResponseTenantResponse, PaginatedResponseTenantUserInTenantResponse, TenantResponse, UpdateTenantRequest } from '../models/index';
|
|
14
14
|
export interface CreateTenantOperationRequest {
|
|
15
15
|
createTenantRequest: CreateTenantRequest;
|
|
16
|
-
ksUat?: string;
|
|
16
|
+
ksUat?: string | null;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteTenantRequest {
|
|
19
19
|
tenantId: string;
|
|
20
|
-
ksUat?: string;
|
|
20
|
+
ksUat?: string | null;
|
|
21
21
|
}
|
|
22
22
|
export interface GetTenantRequest {
|
|
23
23
|
tenantId: string;
|
|
24
|
-
ksUat?: string;
|
|
24
|
+
ksUat?: string | null;
|
|
25
25
|
}
|
|
26
26
|
export interface ListTenantUsersRequest {
|
|
27
27
|
tenantId: string;
|
|
28
28
|
limit?: number;
|
|
29
29
|
offset?: number;
|
|
30
|
-
ksUat?: string;
|
|
30
|
+
ksUat?: string | null;
|
|
31
31
|
}
|
|
32
32
|
export interface ListTenantsRequest {
|
|
33
33
|
limit?: number;
|
|
34
34
|
offset?: number;
|
|
35
|
-
ksUat?: string;
|
|
35
|
+
ksUat?: string | null;
|
|
36
36
|
}
|
|
37
37
|
export interface UpdateTenantOperationRequest {
|
|
38
38
|
tenantId: string;
|
|
39
39
|
updateTenantRequest: UpdateTenantRequest;
|
|
40
|
-
ksUat?: string;
|
|
40
|
+
ksUat?: string | null;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* TenantsApi - interface
|
|
@@ -14,19 +14,19 @@ import type { CreateThreadMessageRequest, PaginatedResponseThreadMessageResponse
|
|
|
14
14
|
export interface CreateThreadMessageOperationRequest {
|
|
15
15
|
threadId: string;
|
|
16
16
|
createThreadMessageRequest: CreateThreadMessageRequest;
|
|
17
|
-
ksUat?: string;
|
|
17
|
+
ksUat?: string | null;
|
|
18
18
|
}
|
|
19
19
|
export interface GetThreadMessageRequest {
|
|
20
20
|
threadId: string;
|
|
21
21
|
messageId: string;
|
|
22
|
-
ksUat?: string;
|
|
22
|
+
ksUat?: string | null;
|
|
23
23
|
}
|
|
24
24
|
export interface ListThreadMessagesRequest {
|
|
25
25
|
threadId: string;
|
|
26
|
-
before?: Date;
|
|
26
|
+
before?: Date | null;
|
|
27
27
|
limit?: number;
|
|
28
28
|
offset?: number;
|
|
29
|
-
ksUat?: string;
|
|
29
|
+
ksUat?: string | null;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* ThreadMessagesApi - interface
|
|
@@ -13,26 +13,26 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { CreateThreadRequest, PaginatedResponseThreadResponse, ThreadResponse, UpdateThreadRequest } from '../models/index';
|
|
14
14
|
export interface CreateThreadOperationRequest {
|
|
15
15
|
createThreadRequest: CreateThreadRequest;
|
|
16
|
-
ksUat?: string;
|
|
16
|
+
ksUat?: string | null;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteThreadRequest {
|
|
19
19
|
threadId: string;
|
|
20
|
-
ksUat?: string;
|
|
20
|
+
ksUat?: string | null;
|
|
21
21
|
}
|
|
22
22
|
export interface GetThreadRequest {
|
|
23
23
|
threadId: string;
|
|
24
|
-
ksUat?: string;
|
|
24
|
+
ksUat?: string | null;
|
|
25
25
|
}
|
|
26
26
|
export interface ListThreadsRequest {
|
|
27
|
-
parentPathPartId?: string;
|
|
27
|
+
parentPathPartId?: string | null;
|
|
28
28
|
limit?: number;
|
|
29
29
|
offset?: number;
|
|
30
|
-
ksUat?: string;
|
|
30
|
+
ksUat?: string | null;
|
|
31
31
|
}
|
|
32
32
|
export interface UpdateThreadOperationRequest {
|
|
33
33
|
threadId: string;
|
|
34
34
|
updateThreadRequest: UpdateThreadRequest;
|
|
35
|
-
ksUat?: string;
|
|
35
|
+
ksUat?: string | null;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* ThreadsApi - interface
|
|
@@ -13,25 +13,25 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { CreatePermissionRequest, PaginatedResponsePermissionResponse, PermissionResponse, UpdatePermissionRequest } from '../models/index';
|
|
14
14
|
export interface CreateUserPermissionRequest {
|
|
15
15
|
createPermissionRequest: CreatePermissionRequest;
|
|
16
|
-
ksUat?: string;
|
|
16
|
+
ksUat?: string | null;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteUserPermissionRequest {
|
|
19
19
|
permissionId: string;
|
|
20
20
|
tenantId: string;
|
|
21
|
-
ksUat?: string;
|
|
21
|
+
ksUat?: string | null;
|
|
22
22
|
}
|
|
23
23
|
export interface ListUserPermissionsRequest {
|
|
24
24
|
tenantId: string;
|
|
25
25
|
userId: string;
|
|
26
26
|
limit?: number;
|
|
27
27
|
offset?: number;
|
|
28
|
-
ksUat?: string;
|
|
28
|
+
ksUat?: string | null;
|
|
29
29
|
}
|
|
30
30
|
export interface UpdateUserPermissionRequest {
|
|
31
31
|
permissionId: string;
|
|
32
32
|
tenantId: string;
|
|
33
33
|
updatePermissionRequest: UpdatePermissionRequest;
|
|
34
|
-
ksUat?: string;
|
|
34
|
+
ksUat?: string | null;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* UserPermissionsApi - interface
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { UpdateUserRequest, UserResponse } from '../models/index';
|
|
14
14
|
export interface GetMeRequest {
|
|
15
|
-
ksUat?: string;
|
|
15
|
+
ksUat?: string | null;
|
|
16
16
|
}
|
|
17
17
|
export interface UpdateMeRequest {
|
|
18
18
|
updateUserRequest: UpdateUserRequest;
|
|
19
|
-
ksUat?: string;
|
|
19
|
+
ksUat?: string | null;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* UsersApi - interface
|
|
@@ -13,17 +13,17 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { PaginatedResponseWorkflowSummaryResponse, WorkflowAction, WorkflowActionResponse, WorkflowDetailResponse } from '../models/index';
|
|
14
14
|
export interface GetWorkflowRequest {
|
|
15
15
|
workflowId: string;
|
|
16
|
-
ksUat?: string;
|
|
16
|
+
ksUat?: string | null;
|
|
17
17
|
}
|
|
18
18
|
export interface ListWorkflowsRequest {
|
|
19
19
|
limit?: number;
|
|
20
20
|
offset?: number;
|
|
21
|
-
ksUat?: string;
|
|
21
|
+
ksUat?: string | null;
|
|
22
22
|
}
|
|
23
23
|
export interface WorkflowActionRequest {
|
|
24
24
|
workflowId: string;
|
|
25
25
|
action: WorkflowAction;
|
|
26
|
-
ksUat?: string;
|
|
26
|
+
ksUat?: string | null;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* WorkflowsApi - interface
|
|
@@ -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.
|
|
@@ -27,6 +27,7 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
|
|
30
|
+
's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function ChunkMetadataInputToJSON(json) {
|
|
@@ -38,6 +39,7 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
|
|
42
|
+
's3_url': value['s3Url'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export const 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.
|
|
@@ -27,6 +27,7 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
29
|
'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
|
|
30
|
+
's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export function ChunkMetadataOutputToJSON(json) {
|
|
@@ -38,6 +39,7 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
38
39
|
}
|
|
39
40
|
return {
|
|
40
41
|
'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
|
|
42
|
+
's3_url': value['s3Url'],
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
export const 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
|
-
};
|
|
@@ -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,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ClearVersionContentsResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfClearVersionContentsResponse(value) {
|
|
18
|
+
if (!('deleted' in value) || value['deleted'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ClearVersionContentsResponseFromJSON(json) {
|
|
23
|
+
return ClearVersionContentsResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ClearVersionContentsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'deleted': json['deleted'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function ClearVersionContentsResponseToJSON(json) {
|
|
34
|
+
return ClearVersionContentsResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function ClearVersionContentsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'deleted': value['deleted'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const 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
|
-
};
|
|
@@ -34,7 +34,7 @@ export interface DocumentContentPathPart {
|
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
*
|
|
38
38
|
* @type {PartType}
|
|
39
39
|
* @memberof DocumentContentPathPart
|
|
40
40
|
*/
|
|
@@ -62,15 +62,15 @@ export interface DocumentContentPathPart {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof DocumentContentPathPart
|
|
64
64
|
*/
|
|
65
|
-
content?: string;
|
|
65
|
+
content?: string | null;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
*
|
|
68
68
|
* @type {ChunkType}
|
|
69
69
|
* @memberof DocumentContentPathPart
|
|
70
70
|
*/
|
|
71
71
|
chunkType?: ChunkType;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
*
|
|
74
74
|
* @type {ChunkMetadataOutput}
|
|
75
75
|
* @memberof DocumentContentPathPart
|
|
76
76
|
*/
|
|
@@ -80,7 +80,7 @@ export interface DocumentContentPathPart {
|
|
|
80
80
|
* @type {number}
|
|
81
81
|
* @memberof DocumentContentPathPart
|
|
82
82
|
*/
|
|
83
|
-
pageNumber?: number;
|
|
83
|
+
pageNumber?: number | null;
|
|
84
84
|
/**
|
|
85
85
|
* Full materialized path from root
|
|
86
86
|
* @type {string}
|
|
@@ -41,15 +41,15 @@ export interface DocumentResponse {
|
|
|
41
41
|
* @type {string}
|
|
42
42
|
* @memberof DocumentResponse
|
|
43
43
|
*/
|
|
44
|
-
parentPathPartId: string;
|
|
44
|
+
parentPathPartId: string | null;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
*
|
|
47
47
|
* @type {DocumentType}
|
|
48
48
|
* @memberof DocumentResponse
|
|
49
49
|
*/
|
|
50
50
|
documentType: DocumentType;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
*
|
|
53
53
|
* @type {DocumentOrigin}
|
|
54
54
|
* @memberof DocumentResponse
|
|
55
55
|
*/
|
|
@@ -61,7 +61,7 @@ export interface DocumentResponse {
|
|
|
61
61
|
*/
|
|
62
62
|
activeVersionId: string;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
*
|
|
65
65
|
* @type {DocumentVersionResponse}
|
|
66
66
|
* @memberof DocumentResponse
|
|
67
67
|
*/
|