Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 2x 2x 2x 2x | import { z } from "zod"; import { flexibleBoolean } from "../utils"; // READ-ONLY LABEL OPERATION SCHEMAS // Labels (read-only) export const ListLabelsSchema = z.object({ namespace: z.string().describe("Namespace path (group or project) to list labels from"), with_counts: flexibleBoolean .optional() .describe("Whether or not to include issue and merge request counts"), include_ancestor_groups: flexibleBoolean.optional().describe("Include ancestor groups"), search: z.string().optional().describe("Keyword to filter labels by"), }); export const GetLabelSchema = z.object({ namespace: z.string().describe("Namespace path (group or project) containing the label"), label_id: z.union([z.coerce.string(), z.string()]).describe("The ID or title of the label"), include_ancestor_groups: flexibleBoolean.optional().describe("Include ancestor groups"), }); // Export type definitions export type ListLabelsOptions = z.infer<typeof ListLabelsSchema>; export type GetLabelOptions = z.infer<typeof GetLabelSchema>; |