openai-assistants-mcp
Version:
OpenAI Assistants MCP Server - A Model Context Protocol server providing OpenAI Assistants API tools and resources. Features comprehensive assistant management, thread operations, message handling, and run execution with seamless stdio transport for Claud
41 lines • 957 B
text/typescript
export namespace PAGINATION_DEFAULTS {
let DEFAULT_LIMIT: number;
let MAX_LIMIT: number;
let MIN_LIMIT: number;
}
/**
* Validate pagination parameters
*/
export function validatePaginationParams(params: any): {
isValid: boolean;
errors: string[];
};
/**
* Paginate an array of items
*/
export function paginateArray(items: any, params?: {}): {
items: any;
nextCursor: string | null;
hasMore: boolean;
totalCount: any;
pageSize: any;
};
/**
* Create pagination metadata for logging/debugging
*/
export function createPaginationMetadata(params: any, result: any): {
requestedLimit: any;
actualPageSize: any;
hasMore: any;
totalCount: any;
nextCursor: string;
};
/**
* Create a cursor from an offset
*/
export function createCursor(offset: any): string;
/**
* Parse a cursor to get the offset
*/
export function parseCursor(cursor: any): any;
//# sourceMappingURL=pagination-utils.d.cts.map