tRPC Endpoints
UI Config (tRPC)
Server-persisted per-user UI configuration overlay (Tier-0 addon-platform config layer).
POST
This namespace exposes the authenticated per-user UI-config overlay
document — semantic display deltas (surface item order/visibility, lens
values such as privacy mode) merged client-side over the app’s shipped
base configuration:
uiConfig.getuiConfig.set
Both endpoints are gated by the default-off
addon_platform_ui_config
feature flag and return FORBIDDEN while it is disabled. The document
schema is owned by @repo/ui-config (uiConfigOverlaySchema).Payload Contract
document: a schema-versioned overlay object (schemaVersion: 1). Unknown keys are preserved (loose schema, forward-compatible). Maximum serialized size 64 KiB.expectedRevision: optimistic-concurrency token. Pass0when no document exists yet; otherwise the revision returned by the lastget/set. A stale value fails withCONFLICT(message carries the current revision).
get returns { document, revision, migrated } — an empty overlay with
revision: 0 when nothing is stored; stored documents are migrated
forward to the current schema version on read.