mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 14:56:59 +08:00
feat: database indexing support (#14181)
This commit is contained in:
14
packages/backend/native/index.d.ts
vendored
14
packages/backend/native/index.d.ts
vendored
@@ -50,6 +50,16 @@ export interface NativeMarkdownResult {
|
||||
markdown: string
|
||||
}
|
||||
|
||||
export interface NativePageDocContent {
|
||||
title: string
|
||||
summary: string
|
||||
}
|
||||
|
||||
export interface NativeWorkspaceDocContent {
|
||||
name: string
|
||||
avatarKey: string
|
||||
}
|
||||
|
||||
export interface ParsedDoc {
|
||||
name: string
|
||||
chunks: Array<Chunk>
|
||||
@@ -61,6 +71,10 @@ export declare function parseDocFromBinary(docBin: Buffer, docId: string): Nativ
|
||||
|
||||
export declare function parseDocToMarkdown(docBin: Buffer, docId: string, aiEditable?: boolean | undefined | null, docUrlPrefix?: string | undefined | null): NativeMarkdownResult
|
||||
|
||||
export declare function parsePageDoc(docBin: Buffer, maxSummaryLength?: number | undefined | null): NativePageDocContent | null
|
||||
|
||||
export declare function parseWorkspaceDoc(docBin: Buffer): NativeWorkspaceDocContent | null
|
||||
|
||||
export declare function readAllDocIdsFromRootDoc(docBin: Buffer, includeTrash?: boolean | undefined | null): Array<string>
|
||||
|
||||
export declare function verifyChallengeResponse(response: string, bits: number, resource: string): Promise<boolean>
|
||||
|
||||
Reference in New Issue
Block a user