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 26 27 28 29 30 31 32 33 34 35 36 37 | 3x 3x 3x 3x | import { z } from "zod";
import { PaginationOptionsSchema } from "../shared";
// READ-ONLY OPERATION SCHEMAS for GitLab CI/CD Variables
// List project/group variables schema (read-only)
export const ListVariablesSchema = z
.object({
namespace: z.string().describe("Namespace path (group or project) to list variables from"),
})
.merge(PaginationOptionsSchema);
// Get single variable schema (read-only)
export const GetVariableSchema = z.object({
namespace: z.string().describe("Namespace path (group or project) containing the variable"),
key: z
.string()
.describe(
"The key of the CI/CD variable. Maximum 255 characters, alphanumeric and underscore only"
),
filter: z
.object({
environment_scope: z
.string()
.optional()
.describe(
'The environment scope filter for the variable. Use "*" for all environments or specific environment name'
),
})
.optional()
.describe("Filter parameters for the variable lookup"),
});
// Export type definitions
export type ListVariablesOptions = z.infer<typeof ListVariablesSchema>;
export type GetVariableOptions = z.infer<typeof GetVariableSchema>;
|