lokalise-mcp
Version:
The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.
211 lines (210 loc) • 6.99 kB
TypeScript
import { z } from "zod";
/**
* Zod schema for the list keys tool arguments.
*/
export declare const ListKeysToolArgs: z.ZodObject<{
projectId: z.ZodString;
limit: z.ZodOptional<z.ZodNumber>;
page: z.ZodOptional<z.ZodNumber>;
includeTranslations: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
filterKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
filterPlatforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "other"]>, "many">>;
}, "strict", z.ZodTypeAny, {
projectId: string;
includeTranslations: boolean;
page?: number | undefined;
limit?: number | undefined;
filterKeys?: string[] | undefined;
filterPlatforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}, {
projectId: string;
page?: number | undefined;
limit?: number | undefined;
includeTranslations?: boolean | undefined;
filterKeys?: string[] | undefined;
filterPlatforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}>;
export type ListKeysToolArgsType = z.infer<typeof ListKeysToolArgs>;
/**
* Zod schema for the get key details tool arguments.
*/
export declare const GetKeyToolArgs: z.ZodObject<{
projectId: z.ZodString;
keyId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
projectId: string;
keyId: number;
}, {
projectId: string;
keyId: number;
}>;
export type GetKeyToolArgsType = z.infer<typeof GetKeyToolArgs>;
/**
* Zod schema for the create keys tool arguments.
*/
export declare const CreateKeysToolArgs: z.ZodObject<{
projectId: z.ZodString;
keys: z.ZodArray<z.ZodObject<{
key_name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
platforms: z.ZodArray<z.ZodEnum<["ios", "android", "web", "other"]>, "many">;
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
language_iso: z.ZodString;
translation: z.ZodString;
}, "strip", z.ZodTypeAny, {
translation: string;
language_iso: string;
}, {
translation: string;
language_iso: string;
}>, "many">>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
platforms: ("ios" | "android" | "web" | "other")[];
key_name: string;
description?: string | undefined;
translations?: {
translation: string;
language_iso: string;
}[] | undefined;
tags?: string[] | undefined;
}, {
platforms: ("ios" | "android" | "web" | "other")[];
key_name: string;
description?: string | undefined;
translations?: {
translation: string;
language_iso: string;
}[] | undefined;
tags?: string[] | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
keys: {
platforms: ("ios" | "android" | "web" | "other")[];
key_name: string;
description?: string | undefined;
translations?: {
translation: string;
language_iso: string;
}[] | undefined;
tags?: string[] | undefined;
}[];
projectId: string;
}, {
keys: {
platforms: ("ios" | "android" | "web" | "other")[];
key_name: string;
description?: string | undefined;
translations?: {
translation: string;
language_iso: string;
}[] | undefined;
tags?: string[] | undefined;
}[];
projectId: string;
}>;
export type CreateKeysToolArgsType = z.infer<typeof CreateKeysToolArgs>;
/**
* Zod schema for the update key tool arguments.
*/
export declare const UpdateKeyToolArgs: z.ZodObject<{
projectId: z.ZodString;
keyId: z.ZodNumber;
keyData: z.ZodObject<{
description: z.ZodOptional<z.ZodString>;
platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "other"]>, "many">>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}, {
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}>;
}, "strict", z.ZodTypeAny, {
projectId: string;
keyId: number;
keyData: {
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
};
}, {
projectId: string;
keyId: number;
keyData: {
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
};
}>;
export type UpdateKeyToolArgsType = z.infer<typeof UpdateKeyToolArgs>;
/**
* Zod schema for the delete key tool arguments.
*/
export declare const DeleteKeyToolArgs: z.ZodObject<{
projectId: z.ZodString;
keyId: z.ZodNumber;
}, "strict", z.ZodTypeAny, {
projectId: string;
keyId: number;
}, {
projectId: string;
keyId: number;
}>;
export type DeleteKeyToolArgsType = z.infer<typeof DeleteKeyToolArgs>;
/**
* Zod schema for the bulk update keys tool arguments.
*/
export declare const BulkUpdateKeysToolArgs: z.ZodObject<{
projectId: z.ZodString;
keys: z.ZodArray<z.ZodObject<{
keyId: z.ZodNumber;
description: z.ZodOptional<z.ZodString>;
platforms: z.ZodOptional<z.ZodArray<z.ZodEnum<["ios", "android", "web", "other"]>, "many">>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
keyId: number;
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}, {
keyId: number;
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}>, "many">;
}, "strict", z.ZodTypeAny, {
keys: {
keyId: number;
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}[];
projectId: string;
}, {
keys: {
keyId: number;
description?: string | undefined;
tags?: string[] | undefined;
platforms?: ("ios" | "android" | "web" | "other")[] | undefined;
}[];
projectId: string;
}>;
export type BulkUpdateKeysToolArgsType = z.infer<typeof BulkUpdateKeysToolArgs>;
/**
* Zod schema for the bulk delete keys tool arguments.
*/
export declare const BulkDeleteKeysToolArgs: z.ZodObject<{
projectId: z.ZodString;
keyIds: z.ZodArray<z.ZodNumber, "many">;
}, "strict", z.ZodTypeAny, {
projectId: string;
keyIds: number[];
}, {
projectId: string;
keyIds: number[];
}>;
export type BulkDeleteKeysToolArgsType = z.infer<typeof BulkDeleteKeysToolArgs>;