@openvireo/sdk - v0.2.0
    Preparing search index...

    Hierarchy (View Summary)

    Index
    archives: Map<string, FakeArchive> = ...

    user id → recovery archive

    calls: Recorded[] = []
    emailCodes: Map<string, { code: string; email: string }> = ...

    user id → the pending email change and its mailed code (SPEC.md §16)

    issuedAt: Map<string, number> = ...

    access token → when it was issued (ms); the restore routes want one from the last recentTokenMs

    mfa: Map<string, { email: string; wrong: number }> = ...
    onToken: (t: string) => void = ...
    orgs: Map<
        string,
        { members: Map<string, { role: string; status: string }>; name: string },
    > = ...
    recentTokenMs: number = ...
    recoveries: Map<string, FakeRecovery> = ...

    ov_rc_ token → approved reset; see approveReset (SPEC.md §18)

    refresh: Map<string, { principal: string; used: boolean }> = ...
    sas: Map<string, any> = ...
    sessions: Map<string, any> = ...
    tokens: Map<string, string> = ...
    totp: Map<string, string> = ...

    email → TOTP code; those users get an MFA challenge (SPEC.md §8)

    users: Map<string, any> = ...
    vaults: Map<
        string,
        {
            access: Map<string, Access>;
            archived?: boolean;
            current: number;
            encrypted_name: string;
            org_id: string | null;
            owner_id?: string | null;
            pending: number | null;
            rotationRequired?: boolean;
        },
    > = ...
    • Adds a user to an org as accepted (invitation flow skipped), to be confirmed by an admin

      Parameters

      • org: string
      • email: string
      • role: string = "member"

      Returns void

    • Approves a reset for an account (what the admin review does) and returns the ov_rc_ token of the mailed link. delaySeconds is OPENVIREO_RECOVERY_DELAY (default 0, as in tests).

      Parameters

      • email: string
      • opts: { delaySeconds?: number } = {}

      Returns string

    • The notice's cancel link

      Parameters

      • token: string

      Returns void

    • Parameters

      • input: string
      • init: RequestInit = {}

      Returns Promise<Response>

    • Parameters

      • method: string
      • pattern: string
      • h: Handler

      Returns this