iya-sts
    Preparing search index...

    Variable promoteGenerations

    promoteGenerations: (
        realmId: any,
        options: any,
    ) => Promise<
        | {
            dropped: any[];
            generation?: undefined;
            ok: boolean;
            rotated: any[];
            why: string;
        }
        | {
            dropped: any[];
            generation: number;
            ok: boolean;
            rotated: any[];
            why?: undefined;
        },
    > = promoteGenerations

    Type Declaration

      • (
            realmId: any,
            options: any,
        ): Promise<
            | {
                dropped: any[];
                generation?: undefined;
                ok: boolean;
                rotated: any[];
                why: string;
            }
            | {
                dropped: any[];
                generation: number;
                ok: boolean;
                rotated: any[];
                why?: undefined;
            },
        >
      • Rotates a realm's signing keys: each wanted unit's next becomes current, and the current one is retired for graceMs, then a fresh next is minted.

        With emergency, the current key and its next are dropped at once instead of retired, and the caller revokes their certificates.

        Parameters

        • realmId: any

          the realm

        • options: any

          units, graceMs and emergency

        Returns Promise<
            | {
                dropped: any[];
                generation?: undefined;
                ok: boolean;
                rotated: any[];
                why: string;
            }
            | {
                dropped: any[];
                generation: number;
                ok: boolean;
                rotated: any[];
                why?: undefined;
            },
        >

        { ok, rotated, dropped, generation }