export interface PageInfo {
hasNextPage: boolean;
hasPreviousPage: boolean;
startCursor: string | null;
endCursor: string | null;
}
from typing import Literal, Tuple, Type
from pydantic import BaseModel, PostgresDsn, RedisDsn
from pydantic_settings import (
BaseSettings,
PydanticBaseSettingsSource,
export interface Cursor {
createdAt: string;
id: string;
}
export function encodeCursor(c: Cursor): string {