@therealchristhomas/gitlab-mcp-server
Version:
MCP Server for GitLab API operations
1,286 lines (1,285 loc) • 41.4 kB
TypeScript
import { z } from "zod";
export declare const GitLabAuthorSchema: z.ZodObject<{
name: z.ZodString;
email: z.ZodString;
date: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
email: string;
date: string;
}, {
name: string;
email: string;
date: string;
}>;
export declare const GitLabOwnerSchema: z.ZodObject<{
username: z.ZodString;
id: z.ZodNumber;
avatar_url: z.ZodString;
web_url: z.ZodString;
name: z.ZodString;
state: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
username: string;
id: number;
avatar_url: string;
web_url: string;
state: string;
}, {
name: string;
username: string;
id: number;
avatar_url: string;
web_url: string;
state: string;
}>;
export declare const GitLabRepositorySchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabFileContentSchema: z.ZodObject<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabDirectoryContentSchema: z.ZodObject<{
name: z.ZodString;
path: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
path: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
path: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabContentSchema: z.ZodUnion<[z.ZodObject<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
name: z.ZodString;
path: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
path: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
path: z.ZodString;
}, z.ZodTypeAny, "passthrough">>, "many">]>;
export declare const FileOperationSchema: z.ZodObject<{
path: z.ZodString;
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
content: string;
}, {
path: string;
content: string;
}>;
export declare const GitLabTreeEntrySchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<["blob", "tree"]>;
path: z.ZodString;
mode: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}, {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}>;
export declare const GitLabTreeSchema: z.ZodObject<{
id: z.ZodString;
tree: z.ZodArray<z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<["blob", "tree"]>;
path: z.ZodString;
mode: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}, {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
id: string;
tree: {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}[];
}, {
id: string;
tree: {
name: string;
path: string;
type: "blob" | "tree";
id: string;
mode: string;
}[];
}>;
export declare const GitLabCommitSchema: z.ZodObject<{
id: z.ZodString;
short_id: z.ZodString;
title: z.ZodString;
author_name: z.ZodString;
author_email: z.ZodString;
authored_date: z.ZodString;
committer_name: z.ZodString;
committer_email: z.ZodString;
committed_date: z.ZodString;
web_url: z.ZodString;
parent_ids: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
id: string;
web_url: string;
short_id: string;
title: string;
author_name: string;
author_email: string;
authored_date: string;
committer_name: string;
committer_email: string;
committed_date: string;
parent_ids: string[];
}, {
id: string;
web_url: string;
short_id: string;
title: string;
author_name: string;
author_email: string;
authored_date: string;
committer_name: string;
committer_email: string;
committed_date: string;
parent_ids: string[];
}>;
export declare const GitLabReferenceSchema: z.ZodObject<{
name: z.ZodString;
commit: z.ZodObject<{
id: z.ZodString;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
web_url: string;
}, {
id: string;
web_url: string;
}>;
}, "strip", z.ZodTypeAny, {
name: string;
commit: {
id: string;
web_url: string;
};
}, {
name: string;
commit: {
id: string;
web_url: string;
};
}>;
export declare const CreateRepositoryOptionsSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
visibility: z.ZodOptional<z.ZodEnum<["private", "internal", "public"]>>;
initialize_with_readme: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
name: string;
description?: string | undefined;
visibility?: "private" | "internal" | "public" | undefined;
initialize_with_readme?: boolean | undefined;
}, {
name: string;
description?: string | undefined;
visibility?: "private" | "internal" | "public" | undefined;
initialize_with_readme?: boolean | undefined;
}>;
export declare const CreateIssueOptionsSchema: z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
milestone_id: z.ZodOptional<z.ZodNumber>;
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
title: string;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
}, {
title: string;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
}>;
export declare const CreateMergeRequestOptionsSchema: z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
source_branch: z.ZodString;
target_branch: z.ZodString;
allow_collaboration: z.ZodOptional<z.ZodBoolean>;
draft: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
title: string;
source_branch: string;
target_branch: string;
description?: string | undefined;
allow_collaboration?: boolean | undefined;
draft?: boolean | undefined;
}, {
title: string;
source_branch: string;
target_branch: string;
description?: string | undefined;
allow_collaboration?: boolean | undefined;
draft?: boolean | undefined;
}>;
export declare const CreateBranchOptionsSchema: z.ZodObject<{
name: z.ZodString;
ref: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
ref: string;
}, {
name: string;
ref: string;
}>;
export declare const GitLabCreateUpdateFileResponseSchema: z.ZodObject<{
file_path: z.ZodString;
branch: z.ZodString;
commit_id: z.ZodString;
content: z.ZodOptional<z.ZodObject<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough">>>;
}, "strip", z.ZodTypeAny, {
file_path: string;
branch: string;
commit_id: string;
content?: z.objectOutputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough"> | undefined;
}, {
file_path: string;
branch: string;
commit_id: string;
content?: z.objectInputType<{
file_name: z.ZodString;
file_path: z.ZodString;
content: z.ZodString;
}, z.ZodTypeAny, "passthrough"> | undefined;
}>;
export declare const GitLabSearchResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
}, {
count: number;
items: z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
}>;
export declare const GitLabGroupSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabGroupSearchResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
}, {
count: number;
items: z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">[];
}>;
export declare const GitLabForkParentSchema: z.ZodObject<{
name: z.ZodString;
path_with_namespace: z.ZodString;
owner: z.ZodObject<{
username: z.ZodString;
id: z.ZodNumber;
avatar_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
username: string;
id: number;
avatar_url: string;
}, {
username: string;
id: number;
avatar_url: string;
}>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}>;
export declare const GitLabForkSchema: z.ZodObject<{
id: z.ZodNumber;
} & {
forked_from_project: z.ZodObject<{
name: z.ZodString;
path_with_namespace: z.ZodString;
owner: z.ZodObject<{
username: z.ZodString;
id: z.ZodNumber;
avatar_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
username: string;
id: number;
avatar_url: string;
}, {
username: string;
id: number;
avatar_url: string;
}>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
} & {
forked_from_project: z.ZodObject<{
name: z.ZodString;
path_with_namespace: z.ZodString;
owner: z.ZodObject<{
username: z.ZodString;
id: z.ZodNumber;
avatar_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
username: string;
id: number;
avatar_url: string;
}, {
username: string;
id: number;
avatar_url: string;
}>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
} & {
forked_from_project: z.ZodObject<{
name: z.ZodString;
path_with_namespace: z.ZodString;
owner: z.ZodObject<{
username: z.ZodString;
id: z.ZodNumber;
avatar_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
username: string;
id: number;
avatar_url: string;
}, {
username: string;
id: number;
avatar_url: string;
}>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}, {
name: string;
web_url: string;
path_with_namespace: string;
owner: {
username: string;
id: number;
avatar_url: string;
};
}>;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabLabelSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabUserSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabMilestoneSchema: z.ZodObject<{
id: z.ZodNumber;
project_id: z.ZodOptional<z.ZodNumber>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
project_id: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
project_id: z.ZodOptional<z.ZodNumber>;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabGroupMilestoneSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabIssueSchema: z.ZodObject<{
id: z.ZodNumber;
description: z.ZodNullable<z.ZodString>;
labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
milestone: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
description: z.ZodNullable<z.ZodString>;
labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
milestone: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
description: z.ZodNullable<z.ZodString>;
labels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
milestone: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
}, z.ZodTypeAny, "passthrough">>;
export declare const GitLabMergeRequestDiffRefSchema: z.ZodObject<{
base_sha: z.ZodString;
head_sha: z.ZodString;
start_sha: z.ZodString;
}, "strip", z.ZodTypeAny, {
base_sha: string;
head_sha: string;
start_sha: string;
}, {
base_sha: string;
head_sha: string;
start_sha: string;
}>;
export declare const GitLabMergeRequestSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export declare const CreateOrUpdateFileSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
file_path: z.ZodString;
content: z.ZodString;
commit_message: z.ZodString;
branch: z.ZodString;
previous_path: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file_path: string;
content: string;
branch: string;
project_id: string;
commit_message: string;
previous_path?: string | undefined;
}, {
file_path: string;
content: string;
branch: string;
project_id: string;
commit_message: string;
previous_path?: string | undefined;
}>;
export declare const SearchRepositoriesSchema: z.ZodObject<{
search: z.ZodString;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
search: string;
page?: number | undefined;
per_page?: number | undefined;
}, {
search: string;
page?: number | undefined;
per_page?: number | undefined;
}>;
export declare const SearchGroupsSchema: z.ZodObject<{
search: z.ZodString;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
owned: z.ZodOptional<z.ZodBoolean>;
min_access_level: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
search: string;
page?: number | undefined;
per_page?: number | undefined;
owned?: boolean | undefined;
min_access_level?: number | undefined;
}, {
search: string;
page?: number | undefined;
per_page?: number | undefined;
owned?: boolean | undefined;
min_access_level?: number | undefined;
}>;
export declare const CreateRepositorySchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
visibility: z.ZodOptional<z.ZodEnum<["private", "internal", "public"]>>;
initialize_with_readme: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
name: string;
description?: string | undefined;
visibility?: "private" | "internal" | "public" | undefined;
initialize_with_readme?: boolean | undefined;
}, {
name: string;
description?: string | undefined;
visibility?: "private" | "internal" | "public" | undefined;
initialize_with_readme?: boolean | undefined;
}>;
export declare const GetFileContentsSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
file_path: z.ZodString;
ref: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file_path: string;
project_id: string;
ref?: string | undefined;
}, {
file_path: string;
project_id: string;
ref?: string | undefined;
}>;
export declare const PushFilesSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
branch: z.ZodString;
files: z.ZodArray<z.ZodObject<{
file_path: z.ZodString;
content: z.ZodString;
}, "strip", z.ZodTypeAny, {
file_path: string;
content: string;
}, {
file_path: string;
content: string;
}>, "many">;
commit_message: z.ZodString;
}, "strip", z.ZodTypeAny, {
branch: string;
project_id: string;
commit_message: string;
files: {
file_path: string;
content: string;
}[];
}, {
branch: string;
project_id: string;
commit_message: string;
files: {
file_path: string;
content: string;
}[];
}>;
export declare const CreateIssueSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
milestone_id: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
title: string;
project_id: string;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
}, {
title: string;
project_id: string;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
}>;
export declare const CreateMergeRequestSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
source_branch: z.ZodString;
target_branch: z.ZodString;
draft: z.ZodOptional<z.ZodBoolean>;
allow_collaboration: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
title: string;
source_branch: string;
target_branch: string;
project_id: string;
description?: string | undefined;
allow_collaboration?: boolean | undefined;
draft?: boolean | undefined;
}, {
title: string;
source_branch: string;
target_branch: string;
project_id: string;
description?: string | undefined;
allow_collaboration?: boolean | undefined;
draft?: boolean | undefined;
}>;
export declare const ForkRepositorySchema: z.ZodObject<{
project_id: z.ZodString;
} & {
namespace: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
project_id: string;
namespace?: string | undefined;
}, {
project_id: string;
namespace?: string | undefined;
}>;
export declare const CreateBranchSchema: z.ZodObject<{
project_id: z.ZodString;
} & {
branch: z.ZodString;
ref: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
branch: string;
project_id: string;
ref?: string | undefined;
}, {
branch: string;
project_id: string;
ref?: string | undefined;
}>;
export declare const CreateLabelSchema: z.ZodObject<{
project_id: z.ZodString;
name: z.ZodString;
color: z.ZodString;
description: z.ZodOptional<z.ZodString>;
priority: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
name: string;
project_id: string;
color: string;
description?: string | undefined;
priority?: number | undefined;
}, {
name: string;
project_id: string;
color: string;
description?: string | undefined;
priority?: number | undefined;
}>;
export declare const UpdateLabelSchema: z.ZodObject<{
project_id: z.ZodString;
name: z.ZodString;
new_name: z.ZodOptional<z.ZodString>;
color: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
priority: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
name: string;
project_id: string;
description?: string | undefined;
color?: string | undefined;
priority?: number | undefined;
new_name?: string | undefined;
}, {
name: string;
project_id: string;
description?: string | undefined;
color?: string | undefined;
priority?: number | undefined;
new_name?: string | undefined;
}>;
export declare const DeleteLabelSchema: z.ZodObject<{
project_id: z.ZodString;
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
project_id: string;
}, {
name: string;
project_id: string;
}>;
export declare const ListLabelsSchema: z.ZodObject<{
project_id: z.ZodString;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
project_id: string;
page?: number | undefined;
per_page?: number | undefined;
}, {
project_id: string;
page?: number | undefined;
per_page?: number | undefined;
}>;
export declare const CreateMilestoneSchema: z.ZodObject<{
project_id: z.ZodString;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
due_date: z.ZodOptional<z.ZodString>;
start_date: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
project_id: string;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
}, {
title: string;
project_id: string;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
}>;
export declare const UpdateMilestoneSchema: z.ZodObject<{
project_id: z.ZodString;
milestone_id: z.ZodNumber;
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
due_date: z.ZodOptional<z.ZodString>;
start_date: z.ZodOptional<z.ZodString>;
state_event: z.ZodOptional<z.ZodEnum<["close", "activate"]>>;
}, "strip", z.ZodTypeAny, {
milestone_id: number;
project_id: string;
title?: string | undefined;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
state_event?: "close" | "activate" | undefined;
}, {
milestone_id: number;
project_id: string;
title?: string | undefined;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
state_event?: "close" | "activate" | undefined;
}>;
export declare const DeleteMilestoneSchema: z.ZodObject<{
project_id: z.ZodString;
milestone_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
milestone_id: number;
project_id: string;
}, {
milestone_id: number;
project_id: string;
}>;
export declare const ListMilestonesSchema: z.ZodObject<{
project_id: z.ZodString;
state: z.ZodOptional<z.ZodEnum<["active", "closed"]>>;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
project_id: string;
state?: "active" | "closed" | undefined;
page?: number | undefined;
per_page?: number | undefined;
}, {
project_id: string;
state?: "active" | "closed" | undefined;
page?: number | undefined;
per_page?: number | undefined;
}>;
export declare const ListGroupMilestonesSchema: z.ZodObject<{
group_id: z.ZodString;
state: z.ZodOptional<z.ZodEnum<["active", "closed"]>>;
title: z.ZodOptional<z.ZodString>;
search: z.ZodOptional<z.ZodString>;
search_title: z.ZodOptional<z.ZodString>;
include_ancestors: z.ZodOptional<z.ZodBoolean>;
include_descendants: z.ZodOptional<z.ZodBoolean>;
updated_before: z.ZodOptional<z.ZodString>;
updated_after: z.ZodOptional<z.ZodString>;
containing_date: z.ZodOptional<z.ZodString>;
start_date: z.ZodOptional<z.ZodString>;
end_date: z.ZodOptional<z.ZodString>;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
group_id: string;
state?: "active" | "closed" | undefined;
title?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
start_date?: string | undefined;
search_title?: string | undefined;
include_ancestors?: boolean | undefined;
include_descendants?: boolean | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
containing_date?: string | undefined;
end_date?: string | undefined;
}, {
group_id: string;
state?: "active" | "closed" | undefined;
title?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
start_date?: string | undefined;
search_title?: string | undefined;
include_ancestors?: boolean | undefined;
include_descendants?: boolean | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
containing_date?: string | undefined;
end_date?: string | undefined;
}>;
export declare const CreateGroupMilestoneSchema: z.ZodObject<{
group_id: z.ZodString;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
due_date: z.ZodOptional<z.ZodString>;
start_date: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
group_id: string;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
}, {
title: string;
group_id: string;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
}>;
export declare const UpdateGroupMilestoneSchema: z.ZodObject<{
group_id: z.ZodString;
milestone_id: z.ZodNumber;
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
due_date: z.ZodOptional<z.ZodString>;
start_date: z.ZodOptional<z.ZodString>;
state_event: z.ZodOptional<z.ZodEnum<["close", "activate"]>>;
}, "strip", z.ZodTypeAny, {
milestone_id: number;
group_id: string;
title?: string | undefined;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
state_event?: "close" | "activate" | undefined;
}, {
milestone_id: number;
group_id: string;
title?: string | undefined;
description?: string | undefined;
due_date?: string | undefined;
start_date?: string | undefined;
state_event?: "close" | "activate" | undefined;
}>;
export declare const DeleteGroupMilestoneSchema: z.ZodObject<{
group_id: z.ZodString;
milestone_id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
milestone_id: number;
group_id: string;
}, {
milestone_id: number;
group_id: string;
}>;
export declare const ListIssuesSchema: z.ZodObject<{
project_id: z.ZodString;
state: z.ZodOptional<z.ZodEnum<["opened", "closed", "all"]>>;
labels: z.ZodOptional<z.ZodString>;
milestone: z.ZodOptional<z.ZodString>;
assignee_id: z.ZodOptional<z.ZodNumber>;
author_id: z.ZodOptional<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
created_after: z.ZodOptional<z.ZodString>;
created_before: z.ZodOptional<z.ZodString>;
updated_after: z.ZodOptional<z.ZodString>;
updated_before: z.ZodOptional<z.ZodString>;
sort: z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "priority", "due_date", "relative_position", "label_priority", "milestone_due", "popularity", "weight"]>>;
order_by: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
with_labels_details: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
project_id: string;
sort?: "priority" | "due_date" | "created_at" | "updated_at" | "relative_position" | "label_priority" | "milestone_due" | "popularity" | "weight" | undefined;
state?: "closed" | "opened" | "all" | undefined;
labels?: string | undefined;
milestone?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
assignee_id?: number | undefined;
author_id?: number | undefined;
created_after?: string | undefined;
created_before?: string | undefined;
order_by?: "asc" | "desc" | undefined;
with_labels_details?: boolean | undefined;
}, {
project_id: string;
sort?: "priority" | "due_date" | "created_at" | "updated_at" | "relative_position" | "label_priority" | "milestone_due" | "popularity" | "weight" | undefined;
state?: "closed" | "opened" | "all" | undefined;
labels?: string | undefined;
milestone?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
assignee_id?: number | undefined;
author_id?: number | undefined;
created_after?: string | undefined;
created_before?: string | undefined;
order_by?: "asc" | "desc" | undefined;
with_labels_details?: boolean | undefined;
}>;
export declare const UpdateIssueSchema: z.ZodObject<{
project_id: z.ZodString;
issue_iid: z.ZodNumber;
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
state_event: z.ZodOptional<z.ZodEnum<["close", "reopen"]>>;
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
milestone_id: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
project_id: string;
issue_iid: number;
title?: string | undefined;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
state_event?: "close" | "reopen" | undefined;
}, {
project_id: string;
issue_iid: number;
title?: string | undefined;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
state_event?: "close" | "reopen" | undefined;
}>;
export declare const SearchIssuesSchema: z.ZodObject<{
project_id: z.ZodString;
search: z.ZodString;
state: z.ZodOptional<z.ZodEnum<["opened", "closed", "all"]>>;
labels: z.ZodOptional<z.ZodString>;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
project_id: string;
search: string;
state?: "closed" | "opened" | "all" | undefined;
labels?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
}, {
project_id: string;
search: string;
state?: "closed" | "opened" | "all" | undefined;
labels?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
}>;
export declare const AddIssueCommentSchema: z.ZodObject<{
project_id: z.ZodString;
issue_iid: z.ZodNumber;
body: z.ZodString;
}, "strip", z.ZodTypeAny, {
project_id: string;
issue_iid: number;
body: string;
}, {
project_id: string;
issue_iid: number;
body: string;
}>;
export declare const ListMergeRequestsSchema: z.ZodObject<{
project_id: z.ZodString;
state: z.ZodOptional<z.ZodEnum<["opened", "closed", "locked", "merged", "all"]>>;
target_branch: z.ZodOptional<z.ZodString>;
source_branch: z.ZodOptional<z.ZodString>;
labels: z.ZodOptional<z.ZodString>;
milestone: z.ZodOptional<z.ZodString>;
assignee_id: z.ZodOptional<z.ZodNumber>;
author_id: z.ZodOptional<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
created_after: z.ZodOptional<z.ZodString>;
created_before: z.ZodOptional<z.ZodString>;
updated_after: z.ZodOptional<z.ZodString>;
updated_before: z.ZodOptional<z.ZodString>;
sort: z.ZodOptional<z.ZodEnum<["created_at", "updated_at", "title"]>>;
order_by: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
page: z.ZodOptional<z.ZodNumber>;
per_page: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
project_id: string;
sort?: "title" | "created_at" | "updated_at" | undefined;
state?: "closed" | "opened" | "all" | "locked" | "merged" | undefined;
labels?: string | undefined;
source_branch?: string | undefined;
target_branch?: string | undefined;
milestone?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
assignee_id?: number | undefined;
author_id?: number | undefined;
created_after?: string | undefined;
created_before?: string | undefined;
order_by?: "asc" | "desc" | undefined;
}, {
project_id: string;
sort?: "title" | "created_at" | "updated_at" | undefined;
state?: "closed" | "opened" | "all" | "locked" | "merged" | undefined;
labels?: string | undefined;
source_branch?: string | undefined;
target_branch?: string | undefined;
milestone?: string | undefined;
search?: string | undefined;
page?: number | undefined;
per_page?: number | undefined;
updated_before?: string | undefined;
updated_after?: string | undefined;
assignee_id?: number | undefined;
author_id?: number | undefined;
created_after?: string | undefined;
created_before?: string | undefined;
order_by?: "asc" | "desc" | undefined;
}>;
export declare const UpdateMergeRequestSchema: z.ZodObject<{
project_id: z.ZodString;
merge_request_iid: z.ZodNumber;
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
state_event: z.ZodOptional<z.ZodEnum<["close", "reopen"]>>;
target_branch: z.ZodOptional<z.ZodString>;
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
assignee_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
milestone_id: z.ZodOptional<z.ZodNumber>;
remove_source_branch: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
project_id: string;
merge_request_iid: number;
title?: string | undefined;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
target_branch?: string | undefined;
state_event?: "close" | "reopen" | undefined;
remove_source_branch?: boolean | undefined;
}, {
project_id: string;
merge_request_iid: number;
title?: string | undefined;
description?: string | undefined;
assignee_ids?: number[] | undefined;
milestone_id?: number | undefined;
labels?: string[] | undefined;
target_branch?: string | undefined;
state_event?: "close" | "reopen" | undefined;
remove_source_branch?: boolean | undefined;
}>;
export declare const MergeMergeRequestSchema: z.ZodObject<{
project_id: z.ZodString;
merge_request_iid: z.ZodNumber;
merge_commit_message: z.ZodOptional<z.ZodString>;
should_remove_source_branch: z.ZodOptional<z.ZodBoolean>;
merge_when_pipeline_succeeds: z.ZodOptional<z.ZodBoolean>;
sha: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
project_id: string;
merge_request_iid: number;
merge_commit_message?: string | undefined;
should_remove_source_branch?: boolean | undefined;
merge_when_pipeline_succeeds?: boolean | undefined;
sha?: string | undefined;
}, {
project_id: string;
merge_request_iid: number;
merge_commit_message?: string | undefined;
should_remove_source_branch?: boolean | undefined;
merge_when_pipeline_succeeds?: boolean | undefined;
sha?: string | undefined;
}>;
export declare const AddMergeRequestCommentSchema: z.ZodObject<{
project_id: z.ZodString;
merge_request_iid: z.ZodNumber;
body: z.ZodString;
}, "strip", z.ZodTypeAny, {
project_id: string;
body: string;
merge_request_iid: number;
}, {
project_id: string;
body: string;
merge_request_iid: number;
}>;
export declare const GitLabCommentSchema: z.ZodObject<{
id: z.ZodNumber;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
id: z.ZodNumber;
}, z.ZodTypeAny, "passthrough">>;
export type GitLabAuthor = z.infer<typeof GitLabAuthorSchema>;
export type GitLabFork = z.infer<typeof GitLabForkSchema>;
export type GitLabIssue = z.infer<typeof GitLabIssueSchema>;
export type GitLabMergeRequest = z.infer<typeof GitLabMergeRequestSchema>;
export type GitLabRepository = z.infer<typeof GitLabRepositorySchema>;
export type GitLabFileContent = z.infer<typeof GitLabFileContentSchema>;
export type GitLabDirectoryContent = z.infer<typeof GitLabDirectoryContentSchema>;
export type GitLabContent = z.infer<typeof GitLabContentSchema>;
export type FileOperation = z.infer<typeof FileOperationSchema>;
export type GitLabTree = z.infer<typeof GitLabTreeSchema>;
export type GitLabCommit = z.infer<typeof GitLabCommitSchema>;
export type GitLabReference = z.infer<typeof GitLabReferenceSchema>;
export type CreateRepositoryOptions = z.infer<typeof CreateRepositoryOptionsSchema>;
export type CreateIssueOptions = z.infer<typeof CreateIssueOptionsSchema>;
export type CreateMergeRequestOptions = z.infer<typeof CreateMergeRequestOptionsSchema>;
export type CreateBranchOptions = z.infer<typeof CreateBranchOptionsSchema>;
export type GitLabCreateUpdateFileResponse = z.infer<typeof GitLabCreateUpdateFileResponseSchema>;
export type GitLabSearchResponse = z.infer<typeof GitLabSearchResponseSchema>;
export type GitLabLabelResponse = z.infer<typeof GitLabLabelSchema>;
export type GitLabMilestoneResponse = z.infer<typeof GitLabMilestoneSchema>;
export type GitLabGroupMilestoneResponse = z.infer<typeof GitLabGroupMilestoneSchema>;
export type GitLabGroup = z.infer<typeof GitLabGroupSchema>;
export type GitLabGroupSearchResponse = z.infer<typeof GitLabGroupSearchResponseSchema>;
export type GitLabComment = z.infer<typeof GitLabCommentSchema>;