@access-mcp/shared
Version:
Shared utilities for ACCESS-CI MCP servers
26 lines (25 loc) • 586 B
TypeScript
export interface UniversalSearchParams {
query?: string;
id?: string;
type?: string;
tags?: string[];
date?: "today" | "upcoming" | "past" | "this_week" | "this_month";
limit?: number;
offset?: number;
sort?: string;
order?: "asc" | "desc";
}
export interface UniversalResponse<T> {
total: number;
items: T[];
}
export interface UniversalResponseWithHints<T> extends UniversalResponse<T> {
hints?: {
next?: string;
tags?: string[];
};
}
export interface StandardErrorResponse {
error: string;
hint?: string;
}