@knowledge-stack/ksapi 1.23.5 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +130 -4
- package/.openapi-generator/VERSION +1 -1
- package/README.md +282 -28
- package/dist/apis/AuthApi.d.ts +117 -0
- package/dist/apis/AuthApi.js +137 -47
- package/dist/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/apis/ChunkLineagesApi.js +42 -15
- package/dist/apis/ChunksApi.d.ts +161 -5
- package/dist/apis/ChunksApi.js +168 -31
- package/dist/apis/DefaultApi.d.ts +20 -0
- package/dist/apis/DefaultApi.js +28 -10
- package/dist/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/apis/DocumentVersionsApi.js +100 -37
- package/dist/apis/DocumentsApi.d.ts +80 -0
- package/dist/apis/DocumentsApi.js +84 -30
- package/dist/apis/FoldersApi.d.ts +92 -9
- package/dist/apis/FoldersApi.js +86 -32
- package/dist/apis/InvitesApi.d.ts +51 -0
- package/dist/apis/InvitesApi.js +56 -20
- package/dist/apis/PathPartsApi.d.ts +140 -1
- package/dist/apis/PathPartsApi.js +141 -20
- package/dist/apis/SectionsApi.d.ts +49 -0
- package/dist/apis/SectionsApi.js +56 -20
- package/dist/apis/TagsApi.d.ts +62 -0
- package/dist/apis/TagsApi.js +70 -25
- package/dist/apis/TenantsApi.d.ts +103 -0
- package/dist/apis/TenantsApi.js +112 -40
- package/dist/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/apis/ThreadMessagesApi.js +42 -15
- package/dist/apis/ThreadsApi.d.ts +77 -0
- package/dist/apis/ThreadsApi.js +84 -30
- package/dist/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/apis/UserPermissionsApi.js +56 -20
- package/dist/apis/UsersApi.d.ts +23 -0
- package/dist/apis/UsersApi.js +28 -10
- package/dist/apis/WorkflowsApi.d.ts +38 -0
- package/dist/apis/WorkflowsApi.js +42 -15
- package/dist/esm/apis/AuthApi.d.ts +117 -0
- package/dist/esm/apis/AuthApi.js +137 -47
- package/dist/esm/apis/ChunkLineagesApi.d.ts +38 -0
- package/dist/esm/apis/ChunkLineagesApi.js +42 -15
- package/dist/esm/apis/ChunksApi.d.ts +161 -5
- package/dist/esm/apis/ChunksApi.js +169 -32
- package/dist/esm/apis/DefaultApi.d.ts +20 -0
- package/dist/esm/apis/DefaultApi.js +28 -10
- package/dist/esm/apis/DocumentVersionsApi.d.ts +99 -9
- package/dist/esm/apis/DocumentVersionsApi.js +101 -38
- package/dist/esm/apis/DocumentsApi.d.ts +80 -0
- package/dist/esm/apis/DocumentsApi.js +84 -30
- package/dist/esm/apis/FoldersApi.d.ts +92 -9
- package/dist/esm/apis/FoldersApi.js +87 -33
- package/dist/esm/apis/InvitesApi.d.ts +51 -0
- package/dist/esm/apis/InvitesApi.js +56 -20
- package/dist/esm/apis/PathPartsApi.d.ts +140 -1
- package/dist/esm/apis/PathPartsApi.js +142 -21
- package/dist/esm/apis/SectionsApi.d.ts +49 -0
- package/dist/esm/apis/SectionsApi.js +56 -20
- package/dist/esm/apis/TagsApi.d.ts +62 -0
- package/dist/esm/apis/TagsApi.js +70 -25
- package/dist/esm/apis/TenantsApi.d.ts +103 -0
- package/dist/esm/apis/TenantsApi.js +112 -40
- package/dist/esm/apis/ThreadMessagesApi.d.ts +41 -0
- package/dist/esm/apis/ThreadMessagesApi.js +42 -15
- package/dist/esm/apis/ThreadsApi.d.ts +77 -0
- package/dist/esm/apis/ThreadsApi.js +84 -30
- package/dist/esm/apis/UserPermissionsApi.d.ts +54 -0
- package/dist/esm/apis/UserPermissionsApi.js +56 -20
- package/dist/esm/apis/UsersApi.d.ts +23 -0
- package/dist/esm/apis/UsersApi.js +28 -10
- package/dist/esm/apis/WorkflowsApi.d.ts +38 -0
- package/dist/esm/apis/WorkflowsApi.js +42 -15
- package/dist/esm/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/esm/models/ChunkBulkResponse.js +100 -0
- package/dist/esm/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/esm/models/{DocumentContentPathPart.js → ChunkContentItem.js} +19 -16
- package/dist/esm/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/esm/models/ChunkSearchRequest.js +6 -2
- package/dist/esm/models/DocumentResponse.d.ts +13 -0
- package/dist/esm/models/DocumentResponse.js +10 -0
- package/dist/esm/models/FolderResponse.d.ts +13 -0
- package/dist/esm/models/FolderResponse.js +10 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/esm/models/FolderResponseOrDocumentResponse.js +47 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +70 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +70 -0
- package/dist/esm/models/SectionContentItem.d.ts +114 -0
- package/dist/esm/models/SectionContentItem.js +88 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/esm/models/SectionContentItemOrChunkContentItem.js +47 -0
- package/dist/esm/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/esm/models/SubtreeChunkGroup.js +52 -0
- package/dist/esm/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/esm/models/SubtreeChunksResponse.js +45 -0
- package/dist/esm/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/esm/models/VersionChunkIdsResponse.js +44 -0
- package/dist/esm/models/index.d.ts +10 -4
- package/dist/esm/models/index.js +10 -4
- package/dist/models/ChunkBulkResponse.d.ts +139 -0
- package/dist/models/ChunkBulkResponse.js +108 -0
- package/dist/models/{DocumentContentPathPart.d.ts → ChunkContentItem.d.ts} +37 -40
- package/dist/models/{DocumentContentPathPart.js → ChunkContentItem.js} +25 -22
- package/dist/models/ChunkSearchRequest.d.ts +14 -2
- package/dist/models/ChunkSearchRequest.js +6 -2
- package/dist/models/DocumentResponse.d.ts +13 -0
- package/dist/models/DocumentResponse.js +11 -1
- package/dist/models/FolderResponse.d.ts +13 -0
- package/dist/models/FolderResponse.js +11 -1
- package/dist/models/FolderResponseOrDocumentResponse.d.ts +27 -0
- package/dist/models/FolderResponseOrDocumentResponse.js +53 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.js +78 -0
- package/dist/models/SectionContentItem.d.ts +114 -0
- package/dist/models/SectionContentItem.js +96 -0
- package/dist/models/SectionContentItemOrChunkContentItem.d.ts +27 -0
- package/dist/models/SectionContentItemOrChunkContentItem.js +53 -0
- package/dist/models/SubtreeChunkGroup.d.ts +62 -0
- package/dist/models/SubtreeChunkGroup.js +60 -0
- package/dist/models/SubtreeChunksResponse.d.ts +48 -0
- package/dist/models/SubtreeChunksResponse.js +53 -0
- package/dist/models/VersionChunkIdsResponse.d.ts +47 -0
- package/dist/models/VersionChunkIdsResponse.js +52 -0
- package/dist/models/index.d.ts +10 -4
- package/dist/models/index.js +10 -4
- package/docs/AuthApi.md +707 -0
- package/docs/BulkTagRequest.md +35 -0
- package/docs/ChunkBulkResponse.md +65 -0
- package/docs/ChunkContentItem.md +59 -0
- package/docs/ChunkLineageResponse.md +41 -0
- package/docs/ChunkLineagesApi.md +230 -0
- package/docs/ChunkMetadataInput.md +37 -0
- package/docs/ChunkMetadataOutput.md +37 -0
- package/docs/ChunkResponse.md +63 -0
- package/docs/ChunkSearchRequest.md +51 -0
- package/docs/ChunkType.md +33 -0
- package/docs/ChunksApi.md +590 -0
- package/docs/ClearVersionContentsResponse.md +35 -0
- package/docs/CreateChunkLineageRequest.md +37 -0
- package/docs/CreateChunkRequest.md +43 -0
- package/docs/CreateDocumentRequest.md +41 -0
- package/docs/CreateFolderRequest.md +37 -0
- package/docs/CreatePasswordUserRequest.md +36 -0
- package/docs/CreatePermissionRequest.md +40 -0
- package/docs/CreateSectionRequest.md +41 -0
- package/docs/CreateTagRequest.md +39 -0
- package/docs/CreateTenantRequest.md +37 -0
- package/docs/CreateThreadMessageRequest.md +37 -0
- package/docs/CreateThreadRequest.md +37 -0
- package/docs/DefaultApi.md +128 -0
- package/docs/DocumentOrigin.md +33 -0
- package/docs/DocumentResponse.md +63 -0
- package/docs/DocumentType.md +33 -0
- package/docs/DocumentVersionMetadata.md +47 -0
- package/docs/DocumentVersionMetadataUpdate.md +47 -0
- package/docs/DocumentVersionResponse.md +57 -0
- package/docs/DocumentVersionsApi.md +530 -0
- package/docs/DocumentsApi.md +464 -0
- package/docs/EmailSentResponse.md +34 -0
- package/docs/EmailVerificationRequest.md +34 -0
- package/docs/EmbeddingModel.md +33 -0
- package/docs/FolderResponse.md +55 -0
- package/docs/FolderResponseOrDocumentResponse.md +62 -0
- package/docs/FoldersApi.md +473 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/HealthCheckResponse.md +36 -0
- package/docs/IdpType.md +33 -0
- package/docs/IngestDocumentResponse.md +39 -0
- package/docs/InviteResponse.md +53 -0
- package/docs/InviteStatus.md +32 -0
- package/docs/InviteUserRequest.md +38 -0
- package/docs/InvitesApi.md +305 -0
- package/docs/LineageEdgeResponse.md +37 -0
- package/docs/LineageGraphResponse.md +37 -0
- package/docs/LineageNodeResponse.md +47 -0
- package/docs/LocationInner.md +32 -0
- package/docs/MessageRole.md +33 -0
- package/docs/OAuth2Config.md +41 -0
- package/docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md +40 -0
- package/docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md +40 -0
- package/docs/PaginatedResponseDocumentResponse.md +40 -0
- package/docs/PaginatedResponseDocumentVersionResponse.md +40 -0
- package/docs/PaginatedResponseFolderResponse.md +40 -0
- package/docs/PaginatedResponseInviteResponse.md +40 -0
- package/docs/PaginatedResponsePathPartResponse.md +40 -0
- package/docs/PaginatedResponsePermissionResponse.md +40 -0
- package/docs/PaginatedResponseTagResponse.md +40 -0
- package/docs/PaginatedResponseTenantResponse.md +40 -0
- package/docs/PaginatedResponseTenantUserResponse.md +40 -0
- package/docs/PaginatedResponseThreadMessageResponse.md +40 -0
- package/docs/PaginatedResponseThreadResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowSummaryResponse.md +40 -0
- package/docs/PartType.md +33 -0
- package/docs/PasswordResetRequest.md +36 -0
- package/docs/PasswordResetWithTokenRequest.md +36 -0
- package/docs/PathOrder.md +33 -0
- package/docs/PathPartResponse.md +53 -0
- package/docs/PathPartTagsResponse.md +35 -0
- package/docs/PathPartsApi.md +461 -0
- package/docs/PermissionCapability.md +33 -0
- package/docs/PermissionResponse.md +48 -0
- package/docs/PipelineState.md +45 -0
- package/docs/PipelineStatus.md +33 -0
- package/docs/Polygon.md +41 -0
- package/docs/PolygonReference.md +37 -0
- package/docs/RootResponse.md +36 -0
- package/docs/ScoredChunkResponse.md +65 -0
- package/docs/SectionContentItem.md +55 -0
- package/docs/SectionContentItemOrChunkContentItem.md +60 -0
- package/docs/SectionResponse.md +57 -0
- package/docs/SectionsApi.md +299 -0
- package/docs/SignInRequest.md +38 -0
- package/docs/SubtreeChunkGroup.md +39 -0
- package/docs/SubtreeChunksResponse.md +35 -0
- package/docs/TagResponse.md +47 -0
- package/docs/TagsApi.md +374 -0
- package/docs/TenantResponse.md +39 -0
- package/docs/TenantUserEditRequest.md +35 -0
- package/docs/TenantUserResponse.md +43 -0
- package/docs/TenantUserRole.md +33 -0
- package/docs/TenantsApi.md +605 -0
- package/docs/ThreadMessageResponse.md +53 -0
- package/docs/ThreadMessagesApi.md +239 -0
- package/docs/ThreadResponse.md +49 -0
- package/docs/ThreadsApi.md +455 -0
- package/docs/UpdateChunkContentRequest.md +37 -0
- package/docs/UpdateChunkMetadataRequest.md +35 -0
- package/docs/UpdateDocumentRequest.md +39 -0
- package/docs/UpdateFolderRequest.md +37 -0
- package/docs/UpdatePermissionRequest.md +36 -0
- package/docs/UpdateSectionRequest.md +41 -0
- package/docs/UpdateTagRequest.md +39 -0
- package/docs/UpdateTenantRequest.md +37 -0
- package/docs/UpdateThreadRequest.md +37 -0
- package/docs/UpdateUserRequest.md +34 -0
- package/docs/UserPermissionsApi.md +314 -0
- package/docs/UserResponse.md +44 -0
- package/docs/UsersApi.md +149 -0
- package/docs/ValidationError.md +42 -0
- package/docs/VersionChunkIdsResponse.md +35 -0
- package/docs/WorkflowAction.md +33 -0
- package/docs/WorkflowActionResponse.md +39 -0
- package/docs/WorkflowDetailResponse.md +63 -0
- package/docs/WorkflowSummaryResponse.md +49 -0
- package/docs/WorkflowsApi.md +230 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +214 -47
- package/src/apis/ChunkLineagesApi.ts +68 -15
- package/src/apis/ChunksApi.ts +298 -33
- package/src/apis/DefaultApi.ts +40 -10
- package/src/apis/DocumentVersionsApi.ts +170 -45
- package/src/apis/DocumentsApi.ts +140 -30
- package/src/apis/FoldersApi.ts +153 -40
- package/src/apis/InvitesApi.ts +91 -20
- package/src/apis/PathPartsApi.ts +260 -20
- package/src/apis/SectionsApi.ts +89 -20
- package/src/apis/TagsApi.ts +112 -25
- package/src/apis/TenantsApi.ts +183 -40
- package/src/apis/ThreadMessagesApi.ts +71 -15
- package/src/apis/ThreadsApi.ts +137 -30
- package/src/apis/UserPermissionsApi.ts +94 -20
- package/src/apis/UsersApi.ts +43 -10
- package/src/apis/WorkflowsApi.ts +68 -15
- package/src/models/ChunkBulkResponse.ts +232 -0
- package/src/models/{DocumentContentPathPart.ts → ChunkContentItem.ts} +43 -53
- package/src/models/ChunkSearchRequest.ts +20 -4
- package/src/models/DocumentResponse.ts +17 -0
- package/src/models/FolderResponse.ts +19 -0
- package/src/models/FolderResponseOrDocumentResponse.ts +72 -0
- package/src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts +130 -0
- package/src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts +130 -0
- package/src/models/SectionContentItem.ts +182 -0
- package/src/models/SectionContentItemOrChunkContentItem.ts +72 -0
- package/src/models/SubtreeChunkGroup.ts +104 -0
- package/src/models/SubtreeChunksResponse.ts +91 -0
- package/src/models/VersionChunkIdsResponse.ts +83 -0
- package/src/models/index.ts +10 -4
- package/dist/esm/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/esm/models/FolderDocumentResponse.js +0 -99
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseDocumentContentPathPart.js +0 -70
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/esm/models/PaginatedResponseFolderDocumentResponse.js +0 -70
- package/dist/models/FolderDocumentResponse.d.ts +0 -157
- package/dist/models/FolderDocumentResponse.js +0 -107
- package/dist/models/PaginatedResponseDocumentContentPathPart.d.ts +0 -66
- package/dist/models/PaginatedResponseDocumentContentPathPart.js +0 -78
- package/dist/models/PaginatedResponseFolderDocumentResponse.d.ts +0 -66
- package/dist/models/PaginatedResponseFolderDocumentResponse.js +0 -78
- package/src/models/FolderDocumentResponse.ts +0 -267
- package/src/models/PaginatedResponseDocumentContentPathPart.ts +0 -130
- package/src/models/PaginatedResponseFolderDocumentResponse.ts +0 -130
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import { SubtreeChunkGroupFromJSON, SubtreeChunkGroupToJSON, } from './SubtreeChunkGroup';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the SubtreeChunksResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfSubtreeChunksResponse(value) {
|
|
19
|
+
if (!('groups' in value) || value['groups'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function SubtreeChunksResponseFromJSON(json) {
|
|
24
|
+
return SubtreeChunksResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function SubtreeChunksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'groups': (json['groups'].map(SubtreeChunkGroupFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function SubtreeChunksResponseToJSON(json) {
|
|
35
|
+
return SubtreeChunksResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function SubtreeChunksResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'groups': (value['groups'].map(SubtreeChunkGroupToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export const SubtreeChunksResponsePropertyValidationAttributesMap = {};
|
|
@@ -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 containing chunk IDs for a document version.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VersionChunkIdsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VersionChunkIdsResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VersionChunkIdsResponse
|
|
22
|
+
*/
|
|
23
|
+
chunkIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the VersionChunkIdsResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfVersionChunkIdsResponse(value: object): value is VersionChunkIdsResponse;
|
|
29
|
+
export declare function VersionChunkIdsResponseFromJSON(json: any): VersionChunkIdsResponse;
|
|
30
|
+
export declare function VersionChunkIdsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionChunkIdsResponse;
|
|
31
|
+
export declare function VersionChunkIdsResponseToJSON(json: any): VersionChunkIdsResponse;
|
|
32
|
+
export declare function VersionChunkIdsResponseToJSONTyped(value?: VersionChunkIdsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const VersionChunkIdsResponsePropertyValidationAttributesMap: {
|
|
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 VersionChunkIdsResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVersionChunkIdsResponse(value) {
|
|
18
|
+
if (!('chunkIds' in value) || value['chunkIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function VersionChunkIdsResponseFromJSON(json) {
|
|
23
|
+
return VersionChunkIdsResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function VersionChunkIdsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'chunkIds': json['chunk_ids'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function VersionChunkIdsResponseToJSON(json) {
|
|
34
|
+
return VersionChunkIdsResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function VersionChunkIdsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'chunk_ids': value['chunkIds'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export const VersionChunkIdsResponsePropertyValidationAttributesMap = {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from './BulkTagRequest';
|
|
2
|
+
export * from './ChunkBulkResponse';
|
|
3
|
+
export * from './ChunkContentItem';
|
|
2
4
|
export * from './ChunkLineageResponse';
|
|
3
5
|
export * from './ChunkMetadataInput';
|
|
4
6
|
export * from './ChunkMetadataOutput';
|
|
@@ -17,7 +19,6 @@ export * from './CreateTagRequest';
|
|
|
17
19
|
export * from './CreateTenantRequest';
|
|
18
20
|
export * from './CreateThreadMessageRequest';
|
|
19
21
|
export * from './CreateThreadRequest';
|
|
20
|
-
export * from './DocumentContentPathPart';
|
|
21
22
|
export * from './DocumentOrigin';
|
|
22
23
|
export * from './DocumentResponse';
|
|
23
24
|
export * from './DocumentType';
|
|
@@ -27,8 +28,8 @@ export * from './DocumentVersionResponse';
|
|
|
27
28
|
export * from './EmailSentResponse';
|
|
28
29
|
export * from './EmailVerificationRequest';
|
|
29
30
|
export * from './EmbeddingModel';
|
|
30
|
-
export * from './FolderDocumentResponse';
|
|
31
31
|
export * from './FolderResponse';
|
|
32
|
+
export * from './FolderResponseOrDocumentResponse';
|
|
32
33
|
export * from './HTTPValidationError';
|
|
33
34
|
export * from './HealthCheckResponse';
|
|
34
35
|
export * from './IdpType';
|
|
@@ -42,10 +43,10 @@ export * from './LineageNodeResponse';
|
|
|
42
43
|
export * from './LocationInner';
|
|
43
44
|
export * from './MessageRole';
|
|
44
45
|
export * from './OAuth2Config';
|
|
45
|
-
export * from './
|
|
46
|
+
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
47
|
+
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
46
48
|
export * from './PaginatedResponseDocumentResponse';
|
|
47
49
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
48
|
-
export * from './PaginatedResponseFolderDocumentResponse';
|
|
49
50
|
export * from './PaginatedResponseFolderResponse';
|
|
50
51
|
export * from './PaginatedResponseInviteResponse';
|
|
51
52
|
export * from './PaginatedResponsePathPartResponse';
|
|
@@ -70,8 +71,12 @@ export * from './Polygon';
|
|
|
70
71
|
export * from './PolygonReference';
|
|
71
72
|
export * from './RootResponse';
|
|
72
73
|
export * from './ScoredChunkResponse';
|
|
74
|
+
export * from './SectionContentItem';
|
|
75
|
+
export * from './SectionContentItemOrChunkContentItem';
|
|
73
76
|
export * from './SectionResponse';
|
|
74
77
|
export * from './SignInRequest';
|
|
78
|
+
export * from './SubtreeChunkGroup';
|
|
79
|
+
export * from './SubtreeChunksResponse';
|
|
75
80
|
export * from './TagResponse';
|
|
76
81
|
export * from './TenantResponse';
|
|
77
82
|
export * from './TenantUserEditRequest';
|
|
@@ -91,6 +96,7 @@ export * from './UpdateThreadRequest';
|
|
|
91
96
|
export * from './UpdateUserRequest';
|
|
92
97
|
export * from './UserResponse';
|
|
93
98
|
export * from './ValidationError';
|
|
99
|
+
export * from './VersionChunkIdsResponse';
|
|
94
100
|
export * from './WorkflowAction';
|
|
95
101
|
export * from './WorkflowActionResponse';
|
|
96
102
|
export * from './WorkflowDetailResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './BulkTagRequest';
|
|
4
|
+
export * from './ChunkBulkResponse';
|
|
5
|
+
export * from './ChunkContentItem';
|
|
4
6
|
export * from './ChunkLineageResponse';
|
|
5
7
|
export * from './ChunkMetadataInput';
|
|
6
8
|
export * from './ChunkMetadataOutput';
|
|
@@ -19,7 +21,6 @@ export * from './CreateTagRequest';
|
|
|
19
21
|
export * from './CreateTenantRequest';
|
|
20
22
|
export * from './CreateThreadMessageRequest';
|
|
21
23
|
export * from './CreateThreadRequest';
|
|
22
|
-
export * from './DocumentContentPathPart';
|
|
23
24
|
export * from './DocumentOrigin';
|
|
24
25
|
export * from './DocumentResponse';
|
|
25
26
|
export * from './DocumentType';
|
|
@@ -29,8 +30,8 @@ export * from './DocumentVersionResponse';
|
|
|
29
30
|
export * from './EmailSentResponse';
|
|
30
31
|
export * from './EmailVerificationRequest';
|
|
31
32
|
export * from './EmbeddingModel';
|
|
32
|
-
export * from './FolderDocumentResponse';
|
|
33
33
|
export * from './FolderResponse';
|
|
34
|
+
export * from './FolderResponseOrDocumentResponse';
|
|
34
35
|
export * from './HTTPValidationError';
|
|
35
36
|
export * from './HealthCheckResponse';
|
|
36
37
|
export * from './IdpType';
|
|
@@ -44,10 +45,10 @@ export * from './LineageNodeResponse';
|
|
|
44
45
|
export * from './LocationInner';
|
|
45
46
|
export * from './MessageRole';
|
|
46
47
|
export * from './OAuth2Config';
|
|
47
|
-
export * from './
|
|
48
|
+
export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
|
|
49
|
+
export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
|
|
48
50
|
export * from './PaginatedResponseDocumentResponse';
|
|
49
51
|
export * from './PaginatedResponseDocumentVersionResponse';
|
|
50
|
-
export * from './PaginatedResponseFolderDocumentResponse';
|
|
51
52
|
export * from './PaginatedResponseFolderResponse';
|
|
52
53
|
export * from './PaginatedResponseInviteResponse';
|
|
53
54
|
export * from './PaginatedResponsePathPartResponse';
|
|
@@ -72,8 +73,12 @@ export * from './Polygon';
|
|
|
72
73
|
export * from './PolygonReference';
|
|
73
74
|
export * from './RootResponse';
|
|
74
75
|
export * from './ScoredChunkResponse';
|
|
76
|
+
export * from './SectionContentItem';
|
|
77
|
+
export * from './SectionContentItemOrChunkContentItem';
|
|
75
78
|
export * from './SectionResponse';
|
|
76
79
|
export * from './SignInRequest';
|
|
80
|
+
export * from './SubtreeChunkGroup';
|
|
81
|
+
export * from './SubtreeChunksResponse';
|
|
77
82
|
export * from './TagResponse';
|
|
78
83
|
export * from './TenantResponse';
|
|
79
84
|
export * from './TenantUserEditRequest';
|
|
@@ -93,6 +98,7 @@ export * from './UpdateThreadRequest';
|
|
|
93
98
|
export * from './UpdateUserRequest';
|
|
94
99
|
export * from './UserResponse';
|
|
95
100
|
export * from './ValidationError';
|
|
101
|
+
export * from './VersionChunkIdsResponse';
|
|
96
102
|
export * from './WorkflowAction';
|
|
97
103
|
export * from './WorkflowActionResponse';
|
|
98
104
|
export * from './WorkflowDetailResponse';
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
13
|
+
import type { ChunkType } from './ChunkType';
|
|
14
|
+
/**
|
|
15
|
+
* Chunk response with ancestor path part IDs for Qdrant payload construction.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ChunkBulkResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface ChunkBulkResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Chunk ID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof ChunkBulkResponse
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/**
|
|
27
|
+
* PathPart ID
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ChunkBulkResponse
|
|
30
|
+
*/
|
|
31
|
+
pathPartId: string;
|
|
32
|
+
/**
|
|
33
|
+
* ChunkContent ID
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ChunkBulkResponse
|
|
36
|
+
*/
|
|
37
|
+
contentId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Chunk text content
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ChunkBulkResponse
|
|
42
|
+
*/
|
|
43
|
+
content: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ChunkType}
|
|
47
|
+
* @memberof ChunkBulkResponse
|
|
48
|
+
*/
|
|
49
|
+
chunkType: ChunkType;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ChunkMetadataOutput}
|
|
53
|
+
* @memberof ChunkBulkResponse
|
|
54
|
+
*/
|
|
55
|
+
chunkMetadata: ChunkMetadataOutput;
|
|
56
|
+
/**
|
|
57
|
+
* Parent PathPart ID
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ChunkBulkResponse
|
|
60
|
+
*/
|
|
61
|
+
parentPathId: string;
|
|
62
|
+
/**
|
|
63
|
+
* Previous sibling PathPart ID
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ChunkBulkResponse
|
|
66
|
+
*/
|
|
67
|
+
prevSiblingPathId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Next sibling PathPart ID
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ChunkBulkResponse
|
|
72
|
+
*/
|
|
73
|
+
nextSiblingPathId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Full materialized path from root
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ChunkBulkResponse
|
|
78
|
+
*/
|
|
79
|
+
materializedPath: string;
|
|
80
|
+
/**
|
|
81
|
+
* Whether this chunk is system-managed
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof ChunkBulkResponse
|
|
84
|
+
*/
|
|
85
|
+
systemManaged: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Tenant ID
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ChunkBulkResponse
|
|
90
|
+
*/
|
|
91
|
+
tenantId: string;
|
|
92
|
+
/**
|
|
93
|
+
* Creation timestamp
|
|
94
|
+
* @type {Date}
|
|
95
|
+
* @memberof ChunkBulkResponse
|
|
96
|
+
*/
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
/**
|
|
99
|
+
* Last update timestamp
|
|
100
|
+
* @type {Date}
|
|
101
|
+
* @memberof ChunkBulkResponse
|
|
102
|
+
*/
|
|
103
|
+
updatedAt: Date;
|
|
104
|
+
/**
|
|
105
|
+
* Presigned URL to download the chunk's visual asset (6-hour validity)
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof ChunkBulkResponse
|
|
108
|
+
*/
|
|
109
|
+
assetS3Url?: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* Ordered ancestor PathPart IDs from root to chunk
|
|
112
|
+
* @type {Array<string>}
|
|
113
|
+
* @memberof ChunkBulkResponse
|
|
114
|
+
*/
|
|
115
|
+
pathPartIdSegments: Array<string>;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Check if a given object implements the ChunkBulkResponse interface.
|
|
119
|
+
*/
|
|
120
|
+
export declare function instanceOfChunkBulkResponse(value: object): value is ChunkBulkResponse;
|
|
121
|
+
export declare function ChunkBulkResponseFromJSON(json: any): ChunkBulkResponse;
|
|
122
|
+
export declare function ChunkBulkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkBulkResponse;
|
|
123
|
+
export declare function ChunkBulkResponseToJSON(json: any): ChunkBulkResponse;
|
|
124
|
+
export declare function ChunkBulkResponseToJSONTyped(value?: ChunkBulkResponse | null, ignoreDiscriminator?: boolean): any;
|
|
125
|
+
export declare const ChunkBulkResponsePropertyValidationAttributesMap: {
|
|
126
|
+
[property: string]: {
|
|
127
|
+
maxLength?: number;
|
|
128
|
+
minLength?: number;
|
|
129
|
+
pattern?: string;
|
|
130
|
+
maximum?: number;
|
|
131
|
+
exclusiveMaximum?: boolean;
|
|
132
|
+
minimum?: number;
|
|
133
|
+
exclusiveMinimum?: boolean;
|
|
134
|
+
multipleOf?: number;
|
|
135
|
+
maxItems?: number;
|
|
136
|
+
minItems?: number;
|
|
137
|
+
uniqueItems?: boolean;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
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.ChunkBulkResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfChunkBulkResponse = instanceOfChunkBulkResponse;
|
|
18
|
+
exports.ChunkBulkResponseFromJSON = ChunkBulkResponseFromJSON;
|
|
19
|
+
exports.ChunkBulkResponseFromJSONTyped = ChunkBulkResponseFromJSONTyped;
|
|
20
|
+
exports.ChunkBulkResponseToJSON = ChunkBulkResponseToJSON;
|
|
21
|
+
exports.ChunkBulkResponseToJSONTyped = ChunkBulkResponseToJSONTyped;
|
|
22
|
+
const ChunkMetadataOutput_1 = require("./ChunkMetadataOutput");
|
|
23
|
+
const ChunkType_1 = require("./ChunkType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ChunkBulkResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfChunkBulkResponse(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('pathPartIdSegments' in value) || value['pathPartIdSegments'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function ChunkBulkResponseFromJSON(json) {
|
|
57
|
+
return ChunkBulkResponseFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function ChunkBulkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'pathPartId': json['path_part_id'],
|
|
66
|
+
'contentId': json['content_id'],
|
|
67
|
+
'content': json['content'],
|
|
68
|
+
'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
69
|
+
'chunkMetadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputFromJSON)(json['chunk_metadata']),
|
|
70
|
+
'parentPathId': json['parent_path_id'],
|
|
71
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
72
|
+
'nextSiblingPathId': json['next_sibling_path_id'] == null ? undefined : json['next_sibling_path_id'],
|
|
73
|
+
'materializedPath': json['materialized_path'],
|
|
74
|
+
'systemManaged': json['system_managed'],
|
|
75
|
+
'tenantId': json['tenant_id'],
|
|
76
|
+
'createdAt': (new Date(json['created_at'])),
|
|
77
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
78
|
+
'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
|
|
79
|
+
'pathPartIdSegments': json['path_part_id_segments'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function ChunkBulkResponseToJSON(json) {
|
|
83
|
+
return ChunkBulkResponseToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function ChunkBulkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
86
|
+
if (value == null) {
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
'id': value['id'],
|
|
91
|
+
'path_part_id': value['pathPartId'],
|
|
92
|
+
'content_id': value['contentId'],
|
|
93
|
+
'content': value['content'],
|
|
94
|
+
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
95
|
+
'chunk_metadata': (0, ChunkMetadataOutput_1.ChunkMetadataOutputToJSON)(value['chunkMetadata']),
|
|
96
|
+
'parent_path_id': value['parentPathId'],
|
|
97
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
98
|
+
'next_sibling_path_id': value['nextSiblingPathId'],
|
|
99
|
+
'materialized_path': value['materializedPath'],
|
|
100
|
+
'system_managed': value['systemManaged'],
|
|
101
|
+
'tenant_id': value['tenantId'],
|
|
102
|
+
'created_at': value['createdAt'].toISOString(),
|
|
103
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
104
|
+
'asset_s3_url': value['assetS3Url'],
|
|
105
|
+
'path_part_id_segments': value['pathPartIdSegments'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
exports.ChunkBulkResponsePropertyValidationAttributesMap = {};
|
|
@@ -9,112 +9,109 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { PartType } from './PartType';
|
|
13
12
|
import type { ChunkMetadataOutput } from './ChunkMetadataOutput';
|
|
14
13
|
import type { ChunkType } from './ChunkType';
|
|
15
14
|
/**
|
|
16
|
-
* Response model for a
|
|
17
|
-
*
|
|
18
|
-
* Represents a section or chunk with enriched data (content, metadata)
|
|
19
|
-
* returned in depth-first logical order.
|
|
15
|
+
* Response model for a chunk item in document version contents.
|
|
20
16
|
* @export
|
|
21
|
-
* @interface
|
|
17
|
+
* @interface ChunkContentItem
|
|
22
18
|
*/
|
|
23
|
-
export interface
|
|
19
|
+
export interface ChunkContentItem {
|
|
20
|
+
/**
|
|
21
|
+
* Path part type
|
|
22
|
+
* @type {ChunkContentItemPartTypeEnum}
|
|
23
|
+
* @memberof ChunkContentItem
|
|
24
|
+
*/
|
|
25
|
+
partType: ChunkContentItemPartTypeEnum;
|
|
24
26
|
/**
|
|
25
27
|
* PathPart ID
|
|
26
28
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
29
|
+
* @memberof ChunkContentItem
|
|
28
30
|
*/
|
|
29
31
|
pathPartId: string;
|
|
30
32
|
/**
|
|
31
33
|
* PathPart name
|
|
32
34
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
35
|
+
* @memberof ChunkContentItem
|
|
34
36
|
*/
|
|
35
37
|
name: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {PartType}
|
|
39
|
-
* @memberof DocumentContentPathPart
|
|
40
|
-
*/
|
|
41
|
-
partType: PartType;
|
|
42
38
|
/**
|
|
43
39
|
* Parent PathPart ID
|
|
44
40
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
41
|
+
* @memberof ChunkContentItem
|
|
46
42
|
*/
|
|
47
43
|
parentPathId: string;
|
|
48
44
|
/**
|
|
49
|
-
*
|
|
45
|
+
* Chunk ID
|
|
50
46
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
47
|
+
* @memberof ChunkContentItem
|
|
52
48
|
*/
|
|
53
49
|
metadataObjId: string;
|
|
54
50
|
/**
|
|
55
51
|
* Depth relative to document version root
|
|
56
52
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
53
|
+
* @memberof ChunkContentItem
|
|
58
54
|
*/
|
|
59
55
|
depth: number;
|
|
60
56
|
/**
|
|
61
|
-
* Chunk content
|
|
57
|
+
* Chunk content
|
|
62
58
|
* @type {string}
|
|
63
|
-
* @memberof
|
|
59
|
+
* @memberof ChunkContentItem
|
|
64
60
|
*/
|
|
65
61
|
content?: string | null;
|
|
66
62
|
/**
|
|
67
63
|
*
|
|
68
64
|
* @type {ChunkType}
|
|
69
|
-
* @memberof
|
|
65
|
+
* @memberof ChunkContentItem
|
|
70
66
|
*/
|
|
71
67
|
chunkType?: ChunkType;
|
|
72
68
|
/**
|
|
73
69
|
*
|
|
74
70
|
* @type {ChunkMetadataOutput}
|
|
75
|
-
* @memberof
|
|
71
|
+
* @memberof ChunkContentItem
|
|
76
72
|
*/
|
|
77
73
|
chunkMetadata?: ChunkMetadataOutput;
|
|
78
|
-
/**
|
|
79
|
-
* Section page number (None for chunks)
|
|
80
|
-
* @type {number}
|
|
81
|
-
* @memberof DocumentContentPathPart
|
|
82
|
-
*/
|
|
83
|
-
pageNumber?: number | null;
|
|
84
74
|
/**
|
|
85
75
|
* Full materialized path from root
|
|
86
76
|
* @type {string}
|
|
87
|
-
* @memberof
|
|
77
|
+
* @memberof ChunkContentItem
|
|
88
78
|
*/
|
|
89
79
|
materializedPath: string;
|
|
90
80
|
/**
|
|
91
81
|
* Whether this item is system-managed
|
|
92
82
|
* @type {boolean}
|
|
93
|
-
* @memberof
|
|
83
|
+
* @memberof ChunkContentItem
|
|
94
84
|
*/
|
|
95
85
|
systemManaged: boolean;
|
|
96
86
|
/**
|
|
97
87
|
* Creation timestamp
|
|
98
88
|
* @type {Date}
|
|
99
|
-
* @memberof
|
|
89
|
+
* @memberof ChunkContentItem
|
|
100
90
|
*/
|
|
101
91
|
createdAt: Date;
|
|
102
92
|
/**
|
|
103
93
|
* Last update timestamp
|
|
104
94
|
* @type {Date}
|
|
105
|
-
* @memberof
|
|
95
|
+
* @memberof ChunkContentItem
|
|
106
96
|
*/
|
|
107
97
|
updatedAt: Date;
|
|
108
98
|
}
|
|
109
99
|
/**
|
|
110
|
-
*
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export declare const ChunkContentItemPartTypeEnum: {
|
|
103
|
+
readonly Chunk: "CHUNK";
|
|
104
|
+
};
|
|
105
|
+
export type ChunkContentItemPartTypeEnum = typeof ChunkContentItemPartTypeEnum[keyof typeof ChunkContentItemPartTypeEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the ChunkContentItem interface.
|
|
111
108
|
*/
|
|
112
|
-
export declare function
|
|
113
|
-
export declare function
|
|
114
|
-
export declare function
|
|
115
|
-
export declare function
|
|
116
|
-
export declare function
|
|
117
|
-
export declare const
|
|
109
|
+
export declare function instanceOfChunkContentItem(value: object): value is ChunkContentItem;
|
|
110
|
+
export declare function ChunkContentItemFromJSON(json: any): ChunkContentItem;
|
|
111
|
+
export declare function ChunkContentItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChunkContentItem;
|
|
112
|
+
export declare function ChunkContentItemToJSON(json: any): ChunkContentItem;
|
|
113
|
+
export declare function ChunkContentItemToJSONTyped(value?: ChunkContentItem | null, ignoreDiscriminator?: boolean): any;
|
|
114
|
+
export declare const ChunkContentItemPropertyValidationAttributesMap: {
|
|
118
115
|
[property: string]: {
|
|
119
116
|
maxLength?: number;
|
|
120
117
|
minLength?: number;
|