auth/cell_relation_visibility.ts view source
(deps: QueryDeps, auth: RequestContext | null, target_ids: readonly (string & $brand<"Uuid">)[]): Promise<Set<string & $brand<"Uuid">>> import {filter_visible_target_ids} from '@fuzdev/fuz_app/auth/cell_relation_visibility.js'; Return the subset of target_ids the caller may view.
Soft-deleted targets and ids with no matching cell are absent from the
result (treated as not-viewable). Grants are loaded only for
authenticated callers — null auth admits solely via the public
branch of can_view_cell, so the grant load is skipped entirely.
deps
query deps
auth
request context, or null for unauthenticated callers
RequestContext | nulltarget_ids
candidate cell ids (duplicates are harmless)
readonly (string & $brand<"Uuid">)[]returns
Promise<Set<string & $brand<"Uuid">>> the set of ids the caller may view