Skip to content

ComputedReveal

ComputedReveal<R> = object

Defined in: packages/schema/src/computed/computed-reveal.ts:18

A value revealed like a sensitive field, but made when it is asked for instead of read from a column, such as a secret another service keeps (.reveals()).

R

optional read?: FieldRule

Defined in: packages/schema/src/computed/computed-reveal.ts:22

Who may reveal it, among those who may read the record: a role rule, as a field’s read rule is. Default: all of them.


optional strongSignIn?: object

Defined in: packages/schema/src/computed/computed-reveal.ts:24

Revealing it needs a strong sign-in this recent, as the field option .strongSignIn() does; minutes is 15 by default.

optional minutes?: number

The most minutes since the sign-in, or its confirmation, proved a passkey or a second step.


value: (record, caller) => unknown

Defined in: packages/schema/src/computed/computed-reveal.ts:20

The value, from the record as the caller may read it, without its sensitive fields; null reveals nothing.

R

RevealCaller

unknown