<?php
declare(strict_types=1);

namespace Oscar\MailApp\Identity;

interface IdentityProviderInterface
{
    // ... existing methods ...

    /**
     * Get all accounts for the current user.
     * @return array<array{id: string, email: string, name: string}>
     */
    public function getAllAccounts(string $userId): array;

    /**
     * Get the active account ID.
     */
    public function getActiveAccountId(string $userId): string;

    /**
     * Set the active account ID (persists in PB).
     */
    public function setActiveAccountId(string $userId, string $accountId): bool;
}