schema.ts•646 B
import { z } from 'zod';
import { defaultProject } from '../../../utils/environment';
export const DownloadPipelineArtifactSchema = z.object({
projectId: z
.string()
.optional()
.describe(`The ID or name of the project (Default: ${defaultProject})`),
runId: z.number().int().min(1).describe('Pipeline run identifier'),
artifactPath: z
.string()
.min(1)
.describe(
'Path to the desired file inside the artifact (format: <artifactName>/<path/to/file>)',
),
pipelineId: z
.number()
.int()
.min(1)
.optional()
.describe('Optional guard; validates the run belongs to this pipeline'),
});