@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
17 lines (16 loc) • 756 B
TypeScript
import { z } from 'zod';
/**
* Generic schema for a tool command configuration, reusable across plugins.
*/
export declare const artifactGenerationCommandSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
command: z.ZodString;
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>]>;
export declare const pluginArtifactOptionsSchema: z.ZodObject<{
generateArtifactsCommand: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
command: z.ZodString;
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>]>>;
artifactsPaths: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
}, z.core.$strip>;
export type PluginArtifactOptions = z.infer<typeof pluginArtifactOptionsSchema>;