IndexWithPermissions: GSearchIndex & {
    permissions: string[];
}