iya-sts
    Preparing search index...

    Variable replaceKeySet

    replaceKeySet: (
        realmId: any,
        keys: any,
        why: any,
    ) =>
        | {
            generation?: undefined;
            held?: undefined;
            offered?: undefined;
            ok: boolean;
            reason: string;
            why: any;
        }
        | {
            generation?: undefined;
            held: number;
            offered: number;
            ok: boolean;
            reason: string;
            why?: undefined;
        }
        | {
            generation: number;
            held?: undefined;
            offered?: undefined;
            ok: boolean;
            reason?: undefined;
            why?: undefined;
        } = replaceKeySet

    Type Declaration

      • (
            realmId: any,
            keys: any,
            why: any,
        ):
            | {
                generation?: undefined;
                held?: undefined;
                offered?: undefined;
                ok: boolean;
                reason: string;
                why: any;
            }
            | {
                generation?: undefined;
                held: number;
                offered: number;
                ok: boolean;
                reason: string;
                why?: undefined;
            }
            | {
                generation: number;
                held?: undefined;
                offered?: undefined;
                ok: boolean;
                reason?: undefined;
                why?: undefined;
            }
      • Installs a newer generation of a realm's key set everywhere a copy lives: the shared blob, the store, the signing cache and the other processes.

        Refused when its generation is not above the one held. Never throws.

        Parameters

        • realmId: any

          the realm

        • keys: any

          the new key set

        • why: any

          the reason, for the log

        Returns
            | {
                generation?: undefined;
                held?: undefined;
                offered?: undefined;
                ok: boolean;
                reason: string;
                why: any;
            }
            | {
                generation?: undefined;
                held: number;
                offered: number;
                ok: boolean;
                reason: string;
                why?: undefined;
            }
            | {
                generation: number;
                held?: undefined;
                offered?: undefined;
                ok: boolean;
                reason?: undefined;
                why?: undefined;
            }

        { ok, generation }, or { ok: false, reason }