diff --git a/packages/server/src/model/doc.ts b/packages/server/src/model/doc.ts index 0e193bf..ec7ed75 100644 --- a/packages/server/src/model/doc.ts +++ b/packages/server/src/model/doc.ts @@ -12,29 +12,6 @@ export type { DBDocument }; -export const MetaContentBody = { - title: "string", - content_type: "string", - basepath: "string", - filename: "string", - content_hash: "string", - additional: "object", - tags: "string[]", -}; - -export const isDocBody = (c: unknown): c is DocumentBody => { - return check_type(c, MetaContentBody); -}; - -export const isDoc = (c: unknown): c is Document => { - if (typeof c !== "object" || c === null) return false; - if ("id" in c && typeof c.id === "number") { - const { id, ...rest } = c; - return isDocBody(rest); - } - return false; -}; - export interface DocumentAccessor { /** * rescan document