lokalise-mcp
Version:
The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.
253 lines (252 loc) • 9.46 kB
TypeScript
import { z } from "zod";
/**
* Zod schema for task language assignment
*/
export declare const TaskLanguageSchema: z.ZodObject<{
language_iso: z.ZodString;
users: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
groups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
}, "strict", z.ZodTypeAny, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}>;
/**
* Zod schema for the list tasks tool arguments.
*/
export declare const ListTasksToolArgs: z.ZodObject<{
projectId: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
page: z.ZodOptional<z.ZodNumber>;
filterTitle: z.ZodOptional<z.ZodString>;
filterStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["new", "in_progress", "completed", "closed", "cancelled"]>, "many">>;
}, "strict", z.ZodTypeAny, {
projectId: string;
page?: number | undefined;
limit?: number | undefined;
filterTitle?: string | undefined;
filterStatuses?: ("closed" | "completed" | "in_progress" | "new" | "cancelled")[] | undefined;
}, {
projectId: string;
page?: number | undefined;
limit?: number | undefined;
filterTitle?: string | undefined;
filterStatuses?: ("closed" | "completed" | "in_progress" | "new" | "cancelled")[] | undefined;
}>;
export type ListTasksToolArgsType = z.infer<typeof ListTasksToolArgs>;
/**
* Zod schema for the get task tool arguments.
*/
export declare const GetTaskToolArgs: z.ZodObject<{
projectId: z.ZodString;
taskId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
projectId: string;
taskId: number;
}, {
projectId: string;
taskId: number;
}>;
export type GetTaskToolArgsType = z.infer<typeof GetTaskToolArgs>;
/**
* Zod schema for the create task tool arguments.
*/
export declare const CreateTaskToolArgs: z.ZodObject<{
projectId: z.ZodString;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
keys: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
language_iso: z.ZodString;
users: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
groups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
}, "strict", z.ZodTypeAny, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}>, "many">>;
assignees: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
due_date: z.ZodOptional<z.ZodString>;
source_language_iso: z.ZodOptional<z.ZodString>;
auto_close_languages: z.ZodOptional<z.ZodBoolean>;
auto_close_task: z.ZodOptional<z.ZodBoolean>;
auto_close_items: z.ZodOptional<z.ZodBoolean>;
task_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["translation", "review", "automatic_translation", "lqa_by_ai"]>>>;
parent_task_id: z.ZodOptional<z.ZodNumber>;
closing_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
do_lock_translations: z.ZodOptional<z.ZodBoolean>;
custom_translation_status_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
}, "strict", z.ZodTypeAny, {
projectId: string;
title: string;
task_type: "review" | "translation" | "automatic_translation" | "lqa_by_ai";
description?: string | undefined;
keys?: number[] | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}[] | undefined;
assignees?: number[] | undefined;
source_language_iso?: string | undefined;
parent_task_id?: number | undefined;
custom_translation_status_ids?: number[] | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
}, {
projectId: string;
title: string;
description?: string | undefined;
keys?: number[] | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
}[] | undefined;
assignees?: number[] | undefined;
task_type?: "review" | "translation" | "automatic_translation" | "lqa_by_ai" | undefined;
source_language_iso?: string | undefined;
parent_task_id?: number | undefined;
custom_translation_status_ids?: number[] | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
}>;
export type CreateTaskToolArgsType = z.infer<typeof CreateTaskToolArgs>;
/**
* Zod schema for the update task tool arguments.
*/
export declare const UpdateTaskToolArgs: z.ZodObject<{
projectId: z.ZodString;
taskId: z.ZodNumber;
taskData: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodString>;
due_date: z.ZodOptional<z.ZodString>;
languages: z.ZodOptional<z.ZodArray<z.ZodObject<{
language_iso: z.ZodString;
users: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
groups: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
} & {
close_language: z.ZodOptional<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}, {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}>, "many">>;
auto_close_languages: z.ZodOptional<z.ZodBoolean>;
auto_close_task: z.ZodOptional<z.ZodBoolean>;
auto_close_items: z.ZodOptional<z.ZodBoolean>;
closing_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
do_lock_translations: z.ZodOptional<z.ZodBoolean>;
close_task: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
description?: string | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}[] | undefined;
title?: string | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
close_task?: boolean | undefined;
}, {
description?: string | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}[] | undefined;
title?: string | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
close_task?: boolean | undefined;
}>;
}, "strict", z.ZodTypeAny, {
projectId: string;
taskId: number;
taskData: {
description?: string | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}[] | undefined;
title?: string | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
close_task?: boolean | undefined;
};
}, {
projectId: string;
taskId: number;
taskData: {
description?: string | undefined;
languages?: {
language_iso: string;
users?: number[] | undefined;
groups?: number[] | undefined;
close_language?: boolean | undefined;
}[] | undefined;
title?: string | undefined;
due_date?: string | undefined;
auto_close_languages?: boolean | undefined;
auto_close_task?: boolean | undefined;
auto_close_items?: boolean | undefined;
closing_tags?: string[] | undefined;
do_lock_translations?: boolean | undefined;
close_task?: boolean | undefined;
};
}>;
export type UpdateTaskToolArgsType = z.infer<typeof UpdateTaskToolArgs>;
/**
* Zod schema for the delete task tool arguments.
*/
export declare const DeleteTaskToolArgs: z.ZodObject<{
projectId: z.ZodString;
taskId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
projectId: string;
taskId: number;
}, {
projectId: string;
taskId: number;
}>;
export type DeleteTaskToolArgsType = z.infer<typeof DeleteTaskToolArgs>;