Makes a generic document row

This commit is contained in:
2025-05-31 17:19:50 -07:00
parent d5dfa8c30a
commit 6b6636d695
6 changed files with 82 additions and 26 deletions

View File

@@ -33,6 +33,10 @@ export type Session = Document &
}
>;
export function isSession(doc: Document): doc is Session {
return Object.hasOwn(doc.data, "session");
}
export type ISO8601Date = string & { __type: "iso8601date" };
export type Secret = Document &
@@ -44,6 +48,10 @@ export type Secret = Document &
}
>;
export function isSecret(doc: Document): doc is Secret {
return Object.hasOwn(doc.data, "secret");
}
export const RelationshipType = {
Secrets: "secrets",
DiscoveredIn: "discoveredIn",