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()).
Type Parameters
Section titled “Type Parameters”R
Properties
Section titled “Properties”
optionalread?: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.
strongSignIn?
Section titled “strongSignIn?”
optionalstrongSignIn?: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.
minutes?
Section titled “minutes?”
optionalminutes?: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.
Parameters
Section titled “Parameters”record
Section titled “record”R
caller
Section titled “caller”Returns
Section titled “Returns”unknown