histoire
Version:
A fast story book powered by Vite
2,161 lines • 100 kB
TypeScript
import { z } from 'zod/v4';
/** Canonical schema objects for every public tool; unknown keys always fail. */
export declare const mcpToolInputSchemas: {
readonly histoire_inspect_variant: z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
expectedRevision: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
width: z.ZodDefault<z.ZodNumber>;
height: z.ZodDefault<z.ZodNumber>;
deviceScaleFactor: z.ZodDefault<z.ZodNumber>;
globals: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodTransform<Readonly<{
[x: string]: string | number | boolean;
}>, Record<string, string | number | boolean>>>>;
colorScheme: z.ZodOptional<z.ZodEnum<{
dark: "dark";
light: "light";
}>>;
textDirection: z.ZodDefault<z.ZodEnum<{
ltr: "ltr";
rtl: "rtl";
}>>;
}, z.core.$strict>;
readonly histoire_inspect_dom: z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
expectedRevision: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
width: z.ZodDefault<z.ZodNumber>;
height: z.ZodDefault<z.ZodNumber>;
deviceScaleFactor: z.ZodDefault<z.ZodNumber>;
globals: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodTransform<Readonly<{
[x: string]: string | number | boolean;
}>, Record<string, string | number | boolean>>>>;
colorScheme: z.ZodOptional<z.ZodEnum<{
dark: "dark";
light: "light";
}>>;
textDirection: z.ZodDefault<z.ZodEnum<{
ltr: "ltr";
rtl: "rtl";
}>>;
selector: z.ZodDefault<z.ZodString>;
maxNodes: z.ZodDefault<z.ZodNumber>;
maxDepth: z.ZodDefault<z.ZodNumber>;
}, z.core.$strict>;
readonly histoire_inspect_accessibility: z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
expectedRevision: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
width: z.ZodDefault<z.ZodNumber>;
height: z.ZodDefault<z.ZodNumber>;
deviceScaleFactor: z.ZodDefault<z.ZodNumber>;
globals: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodTransform<Readonly<{
[x: string]: string | number | boolean;
}>, Record<string, string | number | boolean>>>>;
colorScheme: z.ZodOptional<z.ZodEnum<{
dark: "dark";
light: "light";
}>>;
textDirection: z.ZodDefault<z.ZodEnum<{
ltr: "ltr";
rtl: "rtl";
}>>;
selector: z.ZodDefault<z.ZodString>;
maxCharacters: z.ZodDefault<z.ZodNumber>;
}, z.core.$strict>;
readonly histoire_get_runtime_diagnostics: z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
expectedRevision: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
width: z.ZodDefault<z.ZodNumber>;
height: z.ZodDefault<z.ZodNumber>;
deviceScaleFactor: z.ZodDefault<z.ZodNumber>;
globals: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodTransform<Readonly<{
[x: string]: string | number | boolean;
}>, Record<string, string | number | boolean>>>>;
colorScheme: z.ZodOptional<z.ZodEnum<{
dark: "dark";
light: "light";
}>>;
textDirection: z.ZodDefault<z.ZodEnum<{
ltr: "ltr";
rtl: "rtl";
}>>;
observationMs: z.ZodDefault<z.ZodNumber>;
}, z.core.$strict>;
/** Read lifecycle without triggering collection. */
readonly histoire_get_project: z.ZodObject<{}, z.core.$strict>;
/** Search immutable catalog snapshot. */
readonly histoire_list_stories: z.ZodObject<{
query: z.ZodOptional<z.ZodString>;
supportPluginId: z.ZodOptional<z.ZodString>;
group: z.ZodOptional<z.ZodString>;
pageSize: z.ZodDefault<z.ZodNumber>;
cursor: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
/** Read exact story metadata. */
readonly histoire_get_story: z.ZodObject<{
expectedRevision: z.ZodOptional<z.ZodString>;
storyId: z.ZodString;
}, z.core.$strict>;
/** Page documentation in Unicode code points. */
readonly histoire_get_docs: z.ZodObject<{
expectedRevision: z.ZodOptional<z.ZodString>;
storyId: z.ZodString;
offset: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
}, z.core.$strict>;
/** Read raw registered source, preserving original newlines. */
readonly histoire_get_source: z.ZodObject<{
expectedRevision: z.ZodOptional<z.ZodString>;
storyId: z.ZodString;
startLine: z.ZodDefault<z.ZodNumber>;
lineCount: z.ZodDefault<z.ZodNumber>;
}, z.core.$strict>;
/** Resolve exact preview tuple without launching browser. */
readonly histoire_get_preview: z.ZodObject<{
expectedRevision: z.ZodOptional<z.ZodString>;
storyId: z.ZodString;
variantId: z.ZodString;
}, z.core.$strict>;
/** Admit bounded screenshot operation. */
readonly histoire_capture_screenshot: z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
expectedRevision: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
width: z.ZodDefault<z.ZodNumber>;
height: z.ZodDefault<z.ZodNumber>;
deviceScaleFactor: z.ZodDefault<z.ZodNumber>;
globals: z.ZodOptional<z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, z.ZodTransform<Readonly<{
[x: string]: string | number | boolean;
}>, Record<string, string | number | boolean>>>>;
colorScheme: z.ZodOptional<z.ZodEnum<{
dark: "dark";
light: "light";
}>>;
textDirection: z.ZodDefault<z.ZodEnum<{
ltr: "ltr";
rtl: "rtl";
}>>;
}, z.core.$strict>;
/** Admit story or targeted variant tests. */
readonly histoire_run_tests: z.ZodObject<{
expectedRevision: z.ZodOptional<z.ZodString>;
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
requestKey: z.ZodString;
}, z.core.$strict>;
/** Poll exact principal-owned operation. */
readonly histoire_get_operation: z.ZodObject<{
operationId: z.ZodUUID;
}, z.core.$strict>;
/** Cancel exact principal-owned operation. */
readonly histoire_cancel_operation: z.ZodObject<{
operationId: z.ZodUUID;
}, z.core.$strict>;
};
/** Exact tool name union used by registration and IPC. */
export type McpToolName = keyof typeof mcpToolInputSchemas;
/** Parsed tool input, including validated defaults. */
export type McpToolInput<T extends McpToolName> = z.infer<(typeof mcpToolInputSchemas)[T]>;
/** Strict output unions used by SDK tool registration. */
export declare const mcpToolOutputSchemas: {
readonly histoire_get_project: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
projectId: z.ZodString;
epoch: z.ZodUUID;
runtimeMode: z.ZodEnum<{
dev: "dev";
node: "node";
}>;
buildId: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<{
closed: "closed";
failed: "failed";
ready: "ready";
restarting: "restarting";
starting: "starting";
}>;
revision: z.ZodOptional<z.ZodString>;
updating: z.ZodBoolean;
title: z.ZodString;
base: z.ZodString;
routerMode: z.ZodEnum<{
hash: "hash";
history: "history";
}>;
storyCount: z.ZodNumber;
variantCount: z.ZodNumber;
capabilities: z.ZodObject<{
catalog: z.ZodBoolean;
content: z.ZodBoolean;
previews: z.ZodBoolean;
screenshots: z.ZodObject<{
available: z.ZodBoolean;
reason: z.ZodOptional<z.ZodString>;
}, z.core.$strict>;
inspection: z.ZodOptional<z.ZodObject<{
available: z.ZodBoolean;
reason: z.ZodOptional<z.ZodString>;
}, z.core.$strict>>;
tests: z.ZodObject<{
available: z.ZodBoolean;
reason: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
unavailable: "unavailable";
}>;
}, z.core.$strict>;
}, z.core.$strict>;
diagnostics: z.ZodArray<z.ZodObject<{
filePath: z.ZodOptional<z.ZodString>;
storyId: z.ZodOptional<z.ZodString>;
code: z.ZodString;
message: z.ZodString;
}, z.core.$strict>>;
diagnosticsTruncated: z.ZodOptional<z.ZodBoolean>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_list_stories: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
updating: z.ZodBoolean;
items: z.ZodArray<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>>;
nextCursor: z.ZodOptional<z.ZodString>;
total: z.ZodNumber;
diagnostics: z.ZodArray<z.ZodObject<{
filePath: z.ZodOptional<z.ZodString>;
storyId: z.ZodOptional<z.ZodString>;
code: z.ZodString;
message: z.ZodString;
}, z.core.$strict>>;
diagnosticsTruncated: z.ZodBoolean;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_story: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: 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>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_docs: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
storyId: z.ZodString;
text: z.ZodString;
offset: z.ZodNumber;
nextOffset: z.ZodOptional<z.ZodNumber>;
totalCharacters: z.ZodNumber;
sha256: z.ZodString;
kind: z.ZodEnum<{
markdown: "markdown";
text: "text";
}>;
filePath: z.ZodOptional<z.ZodString>;
origin: z.ZodEnum<{
collected: "collected";
sibling: "sibling";
standalone: "standalone";
}>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_source: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
storyId: z.ZodString;
kind: z.ZodEnum<{
file: "file";
virtual: "virtual";
}>;
filePath: z.ZodString;
text: z.ZodString;
startLine: z.ZodNumber;
endLine: z.ZodNumber;
totalLines: z.ZodNumber;
nextLine: z.ZodOptional<z.ZodNumber>;
sha256: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_preview: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
projectId: z.ZodString;
revision: z.ZodString;
storyId: z.ZodString;
variantId: z.ZodString;
storyUrl: z.ZodURL;
sandboxUrl: z.ZodURL;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_capture_screenshot: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_run_tests: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_inspect_variant: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_inspect_dom: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_inspect_accessibility: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_runtime_diagnostics: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_get_operation: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
readonly histoire_cancel_operation: z.ZodUnion<readonly [z.ZodObject<{
ok: z.ZodLiteral<true>;
data: z.ZodObject<{
operationId: z.ZodUUID;
projectId: z.ZodString;
epoch: z.ZodUUID;
revision: z.ZodString;
kind: z.ZodEnum<{
"inspect-accessibility": "inspect-accessibility";
"inspect-dom": "inspect-dom";
"inspect-variant": "inspect-variant";
"runtime-diagnostics": "runtime-diagnostics";
screenshot: "screenshot";
tests: "tests";
}>;
state: z.ZodEnum<{
cancelled: "cancelled";
cancelling: "cancelling";
completed: "completed";
failed: "failed";
queued: "queued";
running: "running";
}>;
createdAt: z.ZodISODateTime;
startedAt: z.ZodOptional<z.ZodISODateTime>;
finishedAt: z.ZodOptional<z.ZodISODateTime>;
result: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
width: z.ZodNumber;
height: z.ZodNumber;
mimeType: z.ZodLiteral<"image/png">;
bytes: z.ZodNumber;
sha256: z.ZodString;
artifactUri: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodOptional<z.ZodString>;
engine: z.ZodEnum<{
"built-preview": "built-preview";
"project-vitest": "project-vitest";
}>;
summary: z.ZodType<import("@histoire/protocol").HistoireTestRunSummary, unknown, z.core.$ZodTypeInternals<import("@histoire/protocol").HistoireTestRunSummary, unknown>>;
truncated: z.ZodBoolean;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"variant">;
state: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
propsAvailable: z.ZodBoolean;
components: z.ZodArray<z.ZodObject<{
name: z.ZodString;
index: z.ZodNumber;
props: z.ZodArray<z.ZodObject<{
name: z.ZodString;
types: z.ZodOptional<z.ZodArray<z.ZodString>>;
required: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodJSONSchema>;
value: z.ZodOptional<z.ZodJSONSchema>;
values: z.ZodOptional<z.ZodArray<z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>>;
omittedValues: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"dom">;
matched: z.ZodBoolean;
nodes: z.ZodArray<z.ZodObject<{
index: z.ZodNumber;
parentIndex: z.ZodNullable<z.ZodNumber>;
tag: z.ZodString;
attributes: z.ZodRecord<z.ZodString, z.ZodString>;
text: z.ZodString;
rect: z.ZodObject<{
x: z.ZodNumber;
y: z.ZodNumber;
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
styles: z.ZodRecord<z.ZodString, z.ZodString>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"accessibility">;
matched: z.ZodBoolean;
snapshot: z.ZodString;
totalCharacters: z.ZodNumber;
}, z.core.$strict>, z.ZodObject<{
storyId: z.ZodString;
variantId: z.ZodString;
viewport: z.ZodObject<{
width: z.ZodNumber;
height: z.ZodNumber;
}, z.core.$strict>;
truncated: z.ZodBoolean;
inspection: z.ZodLiteral<"diagnostics">;
previewReady: z.ZodBoolean;
readinessError: z.ZodOptional<z.ZodString>;
entries: z.ZodArray<z.ZodObject<{
kind: z.ZodEnum<{
console: "console";
"http-error": "http-error";
"page-error": "page-error";
"request-failed": "request-failed";
}>;
level: z.ZodOptional<z.ZodString>;
message: z.ZodString;
url: z.ZodOptional<z.ZodString>;
status: z.ZodOptional<z.ZodNumber>;
}, z.core.$strict>>;
droppedCount: z.ZodNumber;
}, z.core.$strict>], "inspection">]>>;
error: z.ZodOptional<z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
ok: z.ZodLiteral<false>;
error: z.ZodObject<{
code: z.ZodEnum<{
ARTIFACT_NOT_FOUND: "ARTIFACT_NOT_FOUND";
BROWSER_UNAVAILABLE: "BROWSER_UNAVAILABLE";
CANCELLED: "CANCELLED";
CAPABILITY_UNAVAILABLE: "CAPABILITY_UNAVAILABLE";
COLLECTION_FAILED: "COLLECTION_FAILED";
CURSOR_EXPIRED: "CURSOR_EXPIRED";
DEPENDENCY_MISSING: "DEPENDENCY_MISSING";
DOCS_NOT_FOUND: "DOCS_NOT_FOUND";
INTERNAL_ERROR: "INTERNAL_ERROR";
INVALID_CURSOR: "INVALID_CURSOR";
INVALID_SELECTOR: "INVALID_SELECTOR";
OPERATION_NOT_FOUND: "OPERATION_NOT_FOUND";
PATH_OUTSIDE_ROOT: "PATH_OUTSIDE_ROOT";
PREVIEW_NOT_READY: "PREVIEW_NOT_READY";
PROJECT_CLOSED: "PROJECT_CLOSED";
PROJECT_RESTARTING: "PROJECT_RESTARTING";
PROJECT_STARTING: "PROJECT_STARTING";
QUEUE_FULL: "QUEUE_FULL";
REQUEST_KEY_CONFLICT: "REQUEST_KEY_CONFLICT";
RESULT_TOO_LARGE: "RESULT_TOO_LARGE";
SOURCE_UNAVAILABLE: "SOURCE_UNAVAILABLE";
STALE_REVISION: "STALE_REVISION";
STORY_AMBIGUOUS: "STORY_AMBIGUOUS";
STORY_NOT_FOUND: "STORY_NOT_FOUND";
TIMEOUT: "TIMEOUT";
VARIANT_NOT_FOUND: "VARIANT_NOT_FOUND";
}>;
message: z.ZodString;
retryable: z.ZodBoolean;
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
}, z.core.$strict>;
}, z.core.$strict>]>;
};
//# sourceMappingURL=tool-schema.d.ts.map