@toolplex/client
Version:
The official ToolPlex client for AI agent tool discovery and execution
16 lines (15 loc) • 496 B
TypeScript
/**
* Server ID validation utilities
*/
/**
* Validates if a server ID matches the expected format
*/
export declare function isValidServerId(serverId: string): boolean;
/**
* Validates a server ID and throws an error if invalid
*/
export declare function validateServerIdOrThrow(serverId: string): void;
/**
* Sanitizes a server ID for logging - returns the ID if valid, otherwise returns "invalid_format"
*/
export declare function sanitizeServerIdForLogging(serverId: string): string;