Cotal TypeScript packages
    Preparing search index...

    Interface ConversationAccount

    Local account binding for a resumable conversation, registered under its auth provider name.

    interface ConversationAccount {
        aliases?: readonly string[];
        kind: "conversation-account";
        name: string;
        key(idp: string): string;
        request(
            key: string,
            input: {
                body?: {
                    label?: string;
                    requestId: string;
                    selection?: ConversationSelection;
                    tokenHash: string;
                    v: 1;
                };
                idpUrl: string;
                method: "POST"
                | "DELETE";
                url: string;
            },
        ): Promise<{ body: unknown; status: number }>;
    }

    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-account"
    name: string
    • Authenticate with the same session whose subject matches the saved key, or send nothing.

      Parameters

      • key: string
      • input: {
            body?: {
                label?: string;
                requestId: string;
                selection?: ConversationSelection;
                tokenHash: string;
                v: 1;
            };
            idpUrl: string;
            method: "POST"
            | "DELETE";
            url: string;
        }

      Returns Promise<{ body: unknown; status: number }>