lokalise-mcp
Version:
The Lokalise MCP Server brings Lokalise's localization power to Claude and AI assistants—manage projects, keys, and translations by chat.
55 lines (54 loc) • 1.51 kB
JavaScript
import { z } from "zod";
/**
* Zod schema for the list team users tool arguments.
*/
export const ListTeamusersToolArgs = z
.object({
teamId: z.string().describe("Team ID to list users for"),
limit: z
.number()
.int()
.min(1)
.max(100)
.optional()
.describe("Number of users to return (1-100, default: 100)"),
page: z
.number()
.int()
.positive()
.optional()
.describe("Page number for pagination (default: 1)"),
})
.strict();
/**
* Zod schema for the get team user details tool arguments.
*/
export const GetTeamusersToolArgs = z
.object({
teamId: z.string().describe("Team ID containing the user"),
userId: z
.union([z.string(), z.number()])
.describe("User ID to get details for"),
})
.strict();
/**
* Zod schema for the update team user tool arguments.
*/
export const UpdateTeamusersToolArgs = z
.object({
teamId: z.string().describe("Team ID containing the user"),
userId: z.union([z.string(), z.number()]).describe("User ID to update"),
role: z
.enum(["owner", "admin", "member", "biller"])
.describe("New role for the user"),
})
.strict();
/**
* Zod schema for the delete team user tool arguments.
*/
export const DeleteTeamusersToolArgs = z
.object({
teamId: z.string().describe("Team ID containing the user"),
userId: z.union([z.string(), z.number()]).describe("User ID to delete"),
})
.strict();