Resolves an entity's full org-settings snapshot: each registry key mapped to its
effective value, with stored overrides taking precedence over registry defaults
(a missing row, an unknown key, or a row whose value fails its schema → default).
Server-side. Lives here (not in apps/web) because it reads @repo/db; the web
layer consumes it via @repo/trpc/server. Resolves for whatever entity id it is
given, so it is NOT impersonation-aware on its own.
Resolves an entity's full org-settings snapshot: each registry key mapped to its effective value, with stored overrides taking precedence over registry defaults (a missing row, an unknown key, or a row whose value fails its schema → default).
Server-side. Lives here (not in
apps/web) because it reads@repo/db; the web layer consumes it via@repo/trpc/server. Resolves for whatever entity id it is given, so it is NOT impersonation-aware on its own.