diff --git a/pkg/npm/api/metadata/types.ts b/pkg/npm/api/metadata/types.ts index 61d2c6d9e..35efad7ff 100644 --- a/pkg/npm/api/metadata/types.ts +++ b/pkg/npm/api/metadata/types.ts @@ -1,3 +1,4 @@ +import { Resource } from ".."; import { AppName, Path, Patp } from "../lib"; export type MetadataUpdate = @@ -65,11 +66,20 @@ export interface Metadata { 'date-created': string; description: string; title: string; - config: { graph: string }; + config: MetadataConfig; picture: string; hidden: boolean; preview: boolean; vip: PermVariation; } +type MetadataConfig = GroupConfig | GraphConfig; + +interface GroupConfig { + group: null | {} | Resource; +} +interface GraphConfig { + graph: string; +} + export type PermVariation = '' | 'reader-comments' | 'member-metadata' | 'host-feed' | 'admin-feed';