evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Expose a small utility that converts workspace user identifiers into concise profile summaries while leaning on the existing client library for remote data.
status set to "found". @teststatus set to "not_found" and email/avatarUrl left null while other results still return "found". @testexport interface UserProfile {
id: string;
fullName: string;
email: string | null;
avatarUrl: string | null;
status: "found" | "not_found";
}
export interface FetchOptions {
requestOptions?: Record<string, unknown>;
}
/**
* Fetches user profiles for the provided identifiers, preserving input order and
* returning a single entry per identifier even when duplicates are supplied.
*
* fullName combines available name fields from the remote user record,
* falling back to whatever display name the client exposes.
*/
export async function fetchUserProfiles(
userIds: string[],
options?: FetchOptions
): Promise<UserProfile[]>;Provides the workspace client used to retrieve user records and associated metadata by identifier. Request options are passed through when looking up users.