@yoda.digital/gitlab-mcp-server
Version:
GitLab MCP Server - A Model Context Protocol server for GitLab integration
1,623 lines (1,622 loc) • 110 kB
TypeScript
import { z } from 'zod';
export declare const WikiPageFormatEnum: z.ZodEnum<["markdown", "rdoc", "asciidoc", "org"]>;
export type WikiPageFormat = z.infer<typeof WikiPageFormatEnum>;
export declare const GitLabNoteSchema: z.ZodObject<{
id: z.ZodNumber;
body: z.ZodString;
attachment: z.ZodNullable<z.ZodAny>;
author: z.ZodLazy<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>;
created_at: z.ZodString;
updated_at: z.ZodString;
system: z.ZodBoolean;
noteable_id: z.ZodNumber;
noteable_type: z.ZodString;
noteable_iid: z.ZodOptional<z.ZodNumber>;
resolvable: z.ZodOptional<z.ZodBoolean>;
confidential: z.ZodOptional<z.ZodBoolean>;
internal: z.ZodOptional<z.ZodBoolean>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}>;
export type GitLabNote = z.infer<typeof GitLabNoteSchema>;
export declare const GitLabNotesResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
body: z.ZodString;
attachment: z.ZodNullable<z.ZodAny>;
author: z.ZodLazy<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>;
created_at: z.ZodString;
updated_at: z.ZodString;
system: z.ZodBoolean;
noteable_id: z.ZodNumber;
noteable_type: z.ZodString;
noteable_iid: z.ZodOptional<z.ZodNumber>;
resolvable: z.ZodOptional<z.ZodBoolean>;
confidential: z.ZodOptional<z.ZodBoolean>;
internal: z.ZodOptional<z.ZodBoolean>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}, {
count: number;
items: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}>;
export type GitLabNotesResponse = z.infer<typeof GitLabNotesResponseSchema>;
export declare const GitLabDiscussionSchema: z.ZodObject<{
id: z.ZodString;
individual_note: z.ZodBoolean;
notes: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
body: z.ZodString;
attachment: z.ZodNullable<z.ZodAny>;
author: z.ZodLazy<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>;
created_at: z.ZodString;
updated_at: z.ZodString;
system: z.ZodBoolean;
noteable_id: z.ZodNumber;
noteable_type: z.ZodString;
noteable_iid: z.ZodOptional<z.ZodNumber>;
resolvable: z.ZodOptional<z.ZodBoolean>;
confidential: z.ZodOptional<z.ZodBoolean>;
internal: z.ZodOptional<z.ZodBoolean>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}, {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}>;
export type GitLabDiscussion = z.infer<typeof GitLabDiscussionSchema>;
export declare const GitLabDiscussionsResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodString;
individual_note: z.ZodBoolean;
notes: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
body: z.ZodString;
attachment: z.ZodNullable<z.ZodAny>;
author: z.ZodLazy<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>;
created_at: z.ZodString;
updated_at: z.ZodString;
system: z.ZodBoolean;
noteable_id: z.ZodNumber;
noteable_type: z.ZodString;
noteable_iid: z.ZodOptional<z.ZodNumber>;
resolvable: z.ZodOptional<z.ZodBoolean>;
confidential: z.ZodOptional<z.ZodBoolean>;
internal: z.ZodOptional<z.ZodBoolean>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}, {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}, {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}[];
}, {
count: number;
items: {
id: string;
individual_note: boolean;
notes: {
id: number;
body: string;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
created_at: string;
updated_at: string;
system: boolean;
noteable_id: number;
noteable_type: string;
type?: string | null | undefined;
attachment?: any;
noteable_iid?: number | undefined;
resolvable?: boolean | undefined;
confidential?: boolean | undefined;
internal?: boolean | undefined;
url?: string | undefined;
}[];
}[];
}>;
export type GitLabDiscussionsResponse = z.infer<typeof GitLabDiscussionsResponseSchema>;
export declare const GitLabUserSchema: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>;
export type GitLabUser = z.infer<typeof GitLabUserSchema>;
export declare const GitLabRepositorySchema: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
default_branch: z.ZodString;
visibility: z.ZodEnum<["private", "internal", "public"]>;
ssh_url_to_repo: z.ZodString;
http_url_to_repo: z.ZodString;
readme_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
forks_count: z.ZodOptional<z.ZodNumber>;
star_count: z.ZodOptional<z.ZodNumber>;
created_at: z.ZodString;
last_activity_at: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}>;
export type GitLabRepository = z.infer<typeof GitLabRepositorySchema>;
export declare const GitLabForkSchema: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
default_branch: z.ZodString;
visibility: z.ZodEnum<["private", "internal", "public"]>;
ssh_url_to_repo: z.ZodString;
http_url_to_repo: z.ZodString;
readme_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
forks_count: z.ZodOptional<z.ZodNumber>;
star_count: z.ZodOptional<z.ZodNumber>;
created_at: z.ZodString;
last_activity_at: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}>;
export type GitLabFork = z.infer<typeof GitLabForkSchema>;
export declare const GitLabReferenceSchema: z.ZodObject<{
name: z.ZodString;
commit: z.ZodObject<{
id: z.ZodString;
short_id: z.ZodString;
title: z.ZodString;
created_at: z.ZodString;
parent_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
id: string;
created_at: string;
short_id: string;
title: string;
parent_ids?: string[] | undefined;
}, {
id: string;
created_at: string;
short_id: string;
title: string;
parent_ids?: string[] | undefined;
}>;
merged: z.ZodOptional<z.ZodBoolean>;
protected: z.ZodBoolean;
developers_can_push: z.ZodOptional<z.ZodBoolean>;
developers_can_merge: z.ZodOptional<z.ZodBoolean>;
can_push: z.ZodOptional<z.ZodBoolean>;
default: z.ZodOptional<z.ZodBoolean>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
commit: {
id: string;
created_at: string;
short_id: string;
title: string;
parent_ids?: string[] | undefined;
};
protected: boolean;
web_url?: string | undefined;
merged?: boolean | undefined;
developers_can_push?: boolean | undefined;
developers_can_merge?: boolean | undefined;
can_push?: boolean | undefined;
default?: boolean | undefined;
}, {
name: string;
commit: {
id: string;
created_at: string;
short_id: string;
title: string;
parent_ids?: string[] | undefined;
};
protected: boolean;
web_url?: string | undefined;
merged?: boolean | undefined;
developers_can_push?: boolean | undefined;
developers_can_merge?: boolean | undefined;
can_push?: boolean | undefined;
default?: boolean | undefined;
}>;
export type GitLabReference = z.infer<typeof GitLabReferenceSchema>;
export declare const GitLabContentSchema: z.ZodObject<{
file_name: z.ZodString;
file_path: z.ZodString;
size: z.ZodNumber;
encoding: z.ZodString;
content: z.ZodString;
content_sha256: z.ZodOptional<z.ZodString>;
ref: z.ZodString;
blob_id: z.ZodString;
commit_id: z.ZodString;
last_commit_id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
file_name: string;
file_path: string;
size: number;
encoding: string;
content: string;
ref: string;
blob_id: string;
commit_id: string;
content_sha256?: string | undefined;
last_commit_id?: string | undefined;
}, {
file_name: string;
file_path: string;
size: number;
encoding: string;
content: string;
ref: string;
blob_id: string;
commit_id: string;
content_sha256?: string | undefined;
last_commit_id?: string | undefined;
}>;
export type GitLabContent = z.infer<typeof GitLabContentSchema>;
export declare const GitLabCreateUpdateFileResponseSchema: z.ZodObject<{
file_path: z.ZodString;
branch: z.ZodString;
commit_id: z.ZodString;
content: z.ZodOptional<z.ZodAny>;
}, "strip", z.ZodTypeAny, {
file_path: string;
commit_id: string;
branch: string;
content?: any;
}, {
file_path: string;
commit_id: string;
branch: string;
content?: any;
}>;
export type GitLabCreateUpdateFileResponse = z.infer<typeof GitLabCreateUpdateFileResponseSchema>;
export declare const GitLabSearchResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
default_branch: z.ZodString;
visibility: z.ZodEnum<["private", "internal", "public"]>;
ssh_url_to_repo: z.ZodString;
http_url_to_repo: z.ZodString;
readme_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
forks_count: z.ZodOptional<z.ZodNumber>;
star_count: z.ZodOptional<z.ZodNumber>;
created_at: z.ZodString;
last_activity_at: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}[];
}, {
count: number;
items: {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}[];
}>;
export type GitLabSearchResponse = z.infer<typeof GitLabSearchResponseSchema>;
export declare const GitLabGroupProjectsResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
description: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
default_branch: z.ZodString;
visibility: z.ZodEnum<["private", "internal", "public"]>;
ssh_url_to_repo: z.ZodString;
http_url_to_repo: z.ZodString;
readme_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
forks_count: z.ZodOptional<z.ZodNumber>;
star_count: z.ZodOptional<z.ZodNumber>;
created_at: z.ZodString;
last_activity_at: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}, {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}[];
}, {
count: number;
items: {
id: number;
name: string;
web_url: string;
created_at: string;
description: string | null;
default_branch: string;
visibility: "internal" | "private" | "public";
ssh_url_to_repo: string;
http_url_to_repo: string;
last_activity_at: string;
readme_url?: string | null | undefined;
forks_count?: number | undefined;
star_count?: number | undefined;
}[];
}>;
export type GitLabGroupProjectsResponse = z.infer<typeof GitLabGroupProjectsResponseSchema>;
export declare const GitLabTreeSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
type: z.ZodEnum<["tree", "blob"]>;
path: z.ZodString;
mode: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
type: "tree" | "blob";
id: string;
name: string;
mode: string;
}, {
path: string;
type: "tree" | "blob";
id: string;
name: string;
mode: string;
}>;
export type GitLabTree = z.infer<typeof GitLabTreeSchema>;
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;
created_at: z.ZodString;
message: z.ZodString;
parent_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
web_url: z.ZodString;
stats: z.ZodOptional<z.ZodObject<{
additions: z.ZodNumber;
deletions: z.ZodNumber;
total: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
additions: number;
deletions: number;
total: number;
}, {
additions: number;
deletions: number;
total: number;
}>>;
}, "strip", z.ZodTypeAny, {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}, {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}>;
export type GitLabCommit = z.infer<typeof GitLabCommitSchema>;
export declare const GitLabCommitsResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<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;
created_at: z.ZodString;
message: z.ZodString;
parent_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
web_url: z.ZodString;
stats: z.ZodOptional<z.ZodObject<{
additions: z.ZodNumber;
deletions: z.ZodNumber;
total: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
additions: number;
deletions: number;
total: number;
}, {
additions: number;
deletions: number;
total: number;
}>>;
}, "strip", z.ZodTypeAny, {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}, {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}[];
}, {
count: number;
items: {
message: string;
id: string;
web_url: string;
created_at: 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[] | undefined;
stats?: {
additions: number;
deletions: number;
total: number;
} | undefined;
}[];
}>;
export type GitLabCommitsResponse = z.infer<typeof GitLabCommitsResponseSchema>;
export declare const GitLabIssueSchema: z.ZodObject<{
id: z.ZodNumber;
iid: z.ZodNumber;
project_id: z.ZodNumber;
title: z.ZodString;
description: z.ZodNullable<z.ZodString>;
state: z.ZodString;
created_at: z.ZodString;
updated_at: z.ZodString;
closed_at: z.ZodNullable<z.ZodString>;
closed_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>>;
labels: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>]>, "many">;
milestone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodNumber;
iid: z.ZodNumber;
project_id: z.ZodNumber;
title: z.ZodString;
description: z.ZodNullable<z.ZodString>;
state: z.ZodString;
created_at: z.ZodString;
updated_at: z.ZodString;
due_date: z.ZodNullable<z.ZodString>;
start_date: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
}, {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
}>>>;
assignees: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>, "many">;
author: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>;
user_notes_count: z.ZodOptional<z.ZodNumber>;
upvotes: z.ZodOptional<z.ZodNumber>;
downvotes: z.ZodOptional<z.ZodNumber>;
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
confidential: z.ZodOptional<z.ZodBoolean>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
closed_at: string | null;
labels: (string | {
name: string;
})[];
assignees: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}[];
confidential?: boolean | undefined;
closed_by?: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
} | null | undefined;
due_date?: string | null | undefined;
milestone?: {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
} | null | undefined;
user_notes_count?: number | undefined;
upvotes?: number | undefined;
downvotes?: number | undefined;
}, {
id: number;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
closed_at: string | null;
labels: (string | {
name: string;
})[];
assignees: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}[];
confidential?: boolean | undefined;
closed_by?: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
} | null | undefined;
due_date?: string | null | undefined;
milestone?: {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
} | null | undefined;
user_notes_count?: number | undefined;
upvotes?: number | undefined;
downvotes?: number | undefined;
}>;
export type GitLabIssue = z.infer<typeof GitLabIssueSchema>;
export declare const GitLabIssuesResponseSchema: z.ZodObject<{
count: z.ZodNumber;
items: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
iid: z.ZodNumber;
project_id: z.ZodNumber;
title: z.ZodString;
description: z.ZodNullable<z.ZodString>;
state: z.ZodString;
created_at: z.ZodString;
updated_at: z.ZodString;
closed_at: z.ZodNullable<z.ZodString>;
closed_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>>>;
labels: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>]>, "many">;
milestone: z.ZodOptional<z.ZodNullable<z.ZodObject<{
id: z.ZodNumber;
iid: z.ZodNumber;
project_id: z.ZodNumber;
title: z.ZodString;
description: z.ZodNullable<z.ZodString>;
state: z.ZodString;
created_at: z.ZodString;
updated_at: z.ZodString;
due_date: z.ZodNullable<z.ZodString>;
start_date: z.ZodNullable<z.ZodString>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
}, {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
}>>>;
assignees: z.ZodArray<z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>, "many">;
author: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodString;
username: z.ZodString;
avatar_url: z.ZodOptional<z.ZodString>;
web_url: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}, {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}>;
user_notes_count: z.ZodOptional<z.ZodNumber>;
upvotes: z.ZodOptional<z.ZodNumber>;
downvotes: z.ZodOptional<z.ZodNumber>;
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
confidential: z.ZodOptional<z.ZodBoolean>;
web_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: number;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
closed_at: string | null;
labels: (string | {
name: string;
})[];
assignees: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}[];
confidential?: boolean | undefined;
closed_by?: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
} | null | undefined;
due_date?: string | null | undefined;
milestone?: {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
} | null | undefined;
user_notes_count?: number | undefined;
upvotes?: number | undefined;
downvotes?: number | undefined;
}, {
id: number;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
closed_at: string | null;
labels: (string | {
name: string;
})[];
assignees: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}[];
confidential?: boolean | undefined;
closed_by?: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
} | null | undefined;
due_date?: string | null | undefined;
milestone?: {
id: number;
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
due_date: string | null;
start_date: string | null;
} | null | undefined;
user_notes_count?: number | undefined;
upvotes?: number | undefined;
downvotes?: number | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
count: number;
items: {
id: number;
author: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
};
web_url: string;
created_at: string;
updated_at: string;
description: string | null;
title: string;
iid: number;
project_id: number;
state: string;
closed_at: string | null;
labels: (string | {
name: string;
})[];
assignees: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;
}[];
confidential?: boolean | undefined;
closed_by?: {
id: number;
name: string;
username: string;
avatar_url?: string | undefined;
web_url?: string | undefined;