Cotal TypeScript packages
    Preparing search index...

    Interface ConversationSignOut

    Local cleanup run before the provider session is revoked or cleared.

    interface ConversationSignOut {
        aliases?: readonly string[];
        kind: "conversation-sign-out";
        name: string;
        count?(opts: { accountKey: string; dir: string; idp: string }): number;
        retire(
            opts: { accountKey?: string; dir: string; idp: string },
        ): Promise<readonly UnconfirmedConversation[]>;
    }

    Hierarchy (View Summary)

    Index
    aliases?: readonly string[]

    Other names that resolve to this extension within its kind. A name or alias already claimed in the kind is refused at registration, so resolution never depends on load order.

    kind: "conversation-sign-out"
    name: string
    • Count saved resumable conversation approvals bound to accountKey at idp.

      Parameters

      • opts: { accountKey: string; dir: string; idp: string }

      Returns number

    • dir is the Cotal home of the login being cleared. idp is the validated URL's origin and path without trailing slashes. accountKey identifies that session's subject when known. Return one entry per candidate whose exact retirement could not be confirmed. An empty list means the scan found no unconfirmed retirements, not that other identities were stopped.

      Parameters

      • opts: { accountKey?: string; dir: string; idp: string }

      Returns Promise<readonly UnconfirmedConversation[]>