lokalise-mcp
Version:
The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.
191 lines (190 loc) • 7.58 kB
TypeScript
import { z } from "zod";
/**
* Contributors domain type definitions and Zod schemas.
* Generated on 2025-07-08 for Team member and contributor management.
*/
/**
* Contributor rights validation
*/
export declare const ContributorRightsSchema: z.ZodEnum<["upload", "activity", "download", "settings", "create_branches", "statistics", "keys", "screenshots", "glossary", "contributors", "languages", "tasks"]>;
/**
* Contributor language permissions
*/
export declare const ContributorLanguagesSchema: z.ZodObject<{
lang_iso: z.ZodString;
is_writable: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
lang_iso: string;
is_writable?: boolean | undefined;
}, {
lang_iso: string;
is_writable?: boolean | undefined;
}>;
/**
* Zod schema for the list contributors tool arguments.
*/
export declare const ListContributorsToolArgs: z.ZodObject<{
projectId: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
page: z.ZodOptional<z.ZodNumber>;
}, "strict", z.ZodTypeAny, {
projectId: string;
page?: number | undefined;
limit?: number | undefined;
}, {
projectId: string;
page?: number | undefined;
limit?: number | undefined;
}>;
export type ListContributorsToolArgsType = z.infer<typeof ListContributorsToolArgs>;
/**
* Zod schema for the get contributor details tool arguments.
*/
export declare const GetContributorToolArgs: z.ZodObject<{
projectId: z.ZodString;
contributorId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strict", z.ZodTypeAny, {
projectId: string;
contributorId: string | number;
}, {
projectId: string;
contributorId: string | number;
}>;
export type GetContributorToolArgsType = z.infer<typeof GetContributorToolArgs>;
/**
* Zod schema for the add contributors tool arguments.
*/
export declare const AddContributorsToolArgs: z.ZodObject<{
projectId: z.ZodString;
contributors: z.ZodArray<z.ZodObject<{
email: z.ZodString;
fullname: z.ZodOptional<z.ZodString>;
is_admin: z.ZodOptional<z.ZodBoolean>;
is_reviewer: z.ZodOptional<z.ZodBoolean>;
languages: z.ZodArray<z.ZodObject<{
lang_iso: z.ZodString;
is_writable: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
lang_iso: string;
is_writable?: boolean | undefined;
}, {
lang_iso: string;
is_writable?: boolean | undefined;
}>, "many">;
admin_rights: z.ZodOptional<z.ZodArray<z.ZodEnum<["upload", "activity", "download", "settings", "create_branches", "statistics", "keys", "screenshots", "glossary", "contributors", "languages", "tasks"]>, "many">>;
}, "strip", z.ZodTypeAny, {
languages: {
lang_iso: string;
is_writable?: boolean | undefined;
}[];
email: string;
fullname?: string | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}, {
languages: {
lang_iso: string;
is_writable?: boolean | undefined;
}[];
email: string;
fullname?: string | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
projectId: string;
contributors: {
languages: {
lang_iso: string;
is_writable?: boolean | undefined;
}[];
email: string;
fullname?: string | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}[];
}, {
projectId: string;
contributors: {
languages: {
lang_iso: string;
is_writable?: boolean | undefined;
}[];
email: string;
fullname?: string | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}[];
}>;
export type AddContributorsToolArgsType = z.infer<typeof AddContributorsToolArgs>;
/**
* Zod schema for the get current user contributor tool arguments.
*/
export declare const GetCurrentUserToolArgs: z.ZodObject<{
projectId: z.ZodString;
}, "strict", z.ZodTypeAny, {
projectId: string;
}, {
projectId: string;
}>;
export type GetCurrentUserToolArgsType = z.infer<typeof GetCurrentUserToolArgs>;
/**
* Zod schema for the update contributor tool arguments.
*/
export declare const UpdateContributorToolArgs: z.ZodObject<{
projectId: z.ZodString;
contributorId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
is_admin: z.ZodOptional<z.ZodBoolean>;
is_reviewer: z.ZodOptional<z.ZodBoolean>;
languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
lang_iso: z.ZodString;
is_writable: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
lang_iso: string;
is_writable?: boolean | undefined;
}, {
lang_iso: string;
is_writable?: boolean | undefined;
}>, "many">>;
admin_rights: z.ZodOptional<z.ZodArray<z.ZodEnum<["upload", "activity", "download", "settings", "create_branches", "statistics", "keys", "screenshots", "glossary", "contributors", "languages", "tasks"]>, "many">>;
}, "strict", z.ZodTypeAny, {
projectId: string;
contributorId: string | number;
languages?: {
lang_iso: string;
is_writable?: boolean | undefined;
}[] | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}, {
projectId: string;
contributorId: string | number;
languages?: {
lang_iso: string;
is_writable?: boolean | undefined;
}[] | undefined;
is_admin?: boolean | undefined;
is_reviewer?: boolean | undefined;
admin_rights?: ("keys" | "languages" | "contributors" | "upload" | "activity" | "download" | "settings" | "create_branches" | "statistics" | "screenshots" | "glossary" | "tasks")[] | undefined;
}>;
export type UpdateContributorToolArgsType = z.infer<typeof UpdateContributorToolArgs>;
/**
* Zod schema for the remove contributor tool arguments.
*/
export declare const RemoveContributorToolArgs: z.ZodObject<{
projectId: z.ZodString;
contributorId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strict", z.ZodTypeAny, {
projectId: string;
contributorId: string | number;
}, {
projectId: string;
contributorId: string | number;
}>;
export type RemoveContributorToolArgsType = z.infer<typeof RemoveContributorToolArgs>;
export type { ContributorCreateData, ContributorDeleted, ContributorLanguages, ContributorRights, ContributorUpdateData, } from "@lokalise/node-api";