histoire
Version:
A fast story book powered by Vite
81 lines • 2.72 kB
TypeScript
import { z } from 'zod/v4';
/** Collected variant metadata, without executable state or callbacks. */
export declare const mcpVariantSchema: z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
/** Stable, explicit catalog projection; arbitrary story metadata never crosses MCP. */
export declare const mcpStorySchema: z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
treePath: z.ZodArray<z.ZodString>;
filePath: z.ZodString;
fileOrigin: z.ZodOptional<z.ZodEnum<{
external: "external";
generated: "generated";
project: "project";
}>>;
supportPluginId: z.ZodString;
group: z.ZodOptional<z.ZodString>;
docsOnly: z.ZodBoolean;
variants: z.ZodArray<z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
}, z.core.$strict>>;
docsAvailable: z.ZodBoolean;
sourceAvailable: z.ZodBoolean;
sourceKind: z.ZodEnum<{
file: "file";
unavailable: "unavailable";
virtual: "virtual";
}>;
}, z.core.$strict>;
/** Inferred public story DTO. */
export type McpStory = z.infer<typeof mcpStorySchema>;
/** Inferred public variant DTO. */
export type McpVariant = z.infer<typeof mcpVariantSchema>;
/** Single-story response with canonical resource references. */
export declare const mcpStoryResultSchema: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
story: z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
treePath: z.ZodArray<z.ZodString>;
filePath: z.ZodString;
fileOrigin: z.ZodOptional<z.ZodEnum<{
external: "external";
generated: "generated";
project: "project";
}>>;
supportPluginId: z.ZodString;
group: z.ZodOptional<z.ZodString>;
docsOnly: z.ZodBoolean;
variants: z.ZodArray<z.ZodObject<{
id: z.ZodString;
title: z.ZodString;
}, z.core.$strict>>;
docsAvailable: z.ZodBoolean;
sourceAvailable: z.ZodBoolean;
sourceKind: z.ZodEnum<{
file: "file";
unavailable: "unavailable";
virtual: "virtual";
}>;
}, z.core.$strict>;
resources: z.ZodObject<{
story: z.ZodString;
docs: z.ZodOptional<z.ZodString>;
source: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
}, z.core.$strict>;
/** Preview links resolve exact story/variant tuple. */
export declare const mcpPreviewResultSchema: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
storyId: z.ZodString;
variantId: z.ZodString;
storyUrl: z.ZodURL;
sandboxUrl: z.ZodURL;
}, z.core.$strict>;
//# sourceMappingURL=story-schema.d.ts.map