@code-pushup/models
Version:
Model definitions and validators for the Code PushUp CLI
25 lines (24 loc) • 1.08 kB
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>;
/**
* Type Definition: `PluginArtifactOptions`
*
* This type is derived from a Zod schema and represents
* the validated structure of `PluginArtifactOptions` used within the application.
*
* @see {@link https://github.com/code-pushup/cli/blob/main/packages/models/docs/models-reference.md#pluginartifactoptions}
*/
export type PluginArtifactOptions = z.infer<typeof pluginArtifactOptionsSchema>;