feat: Add cursor pagination utilities and refine user/group/role types in @librechat/data-schemas (#9218)

* feat: Add pagination interfaces and update user and group types for better data handling

* fix: Update data-schemas version to 0.0.19
This commit is contained in:
Marco Beretta 2025-08-23 06:18:31 +02:00 committed by GitHub
parent 0e00f357a6
commit ac608ded46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 108 additions and 20 deletions

View file

@ -1 +1,2 @@
export * from './enum';
export * from './pagination';

View file

@ -0,0 +1,17 @@
export interface CursorPaginationParams {
limit?: number;
cursor?: string;
sortBy?: string;
sortOrder?: 'asc' | 'desc';
}
export interface CursorPaginationResponse<T> {
data: T[];
pagination: {
hasNextPage: boolean;
hasPreviousPage: boolean;
nextCursor?: string;
previousCursor?: string;
totalCount?: number;
};
}