IndexWithPermissions: GSearchIndex & { permissions: string[] }