Converts secrets list to something more generic

This commit is contained in:
2025-05-31 15:47:29 -07:00
parent b3d4e90e7f
commit 6336b150a7
6 changed files with 386 additions and 48 deletions

View File

@@ -41,8 +41,13 @@ export type Secret = Document &
}
>;
export const RelationshipType = {
Secrets: "secrets",
DiscoveredIn: "discoveredIn",
} as const;
export type Relationship = RecordModel & {
primary: DocumentId;
secondary: DocumentId[];
type: "plannedSecrets" | "discoveredIn";
type: (typeof RelationshipType)[keyof typeof RelationshipType];
};