iya-sts
    Preparing search index...

    Variable applyToState

    applyToState: (
        row: RiscRow,
        uri: string,
        payload?: any,
        subject?: any,
    ) => Record<string, any> = ...

    Type Declaration

      • (row: RiscRow, uri: string, payload?: any, subject?: any): Record<string, any>
      • Applies a RISC event to an account's row, and collects what is wrong with it. Unexpected opt-out moves are warnings, not refusals.

        Parameters

        • row: RiscRow

          the account's row

        • uri: string

          the event type URI

        • Optionalpayload: any

          the event's payload

        • Optionalsubject: any

          the event's subject, which says whether an identifier event is about an email address or a phone number

        Returns Record<string, any>

        { ok, errors, warnings, ... }