Skip to content
Sarj Workspace Sync

identity-lifecycle/google-directory-authority-reader

@sarj-ai/workspace-sync/identity-lifecycle/authority-reader ยท Source

import type { GoogleDirectoryUser } from "../org-sync/model.ts";
/**
* Read-only Google Directory surface used to resolve one immutable user ID.
*
* Implementations must return `null` from `getUserById` only when Google
* Directory returns 404. Authentication, transport, rate-limit, and other
* provider failures must reject so they cannot be mistaken for deletion.
*/
export interface GoogleDirectoryAuthoritySourcePort {
getUserById(googleUserId: string, correlationId: string, deadlineAt?: number): Promise<GoogleDirectoryUser | null>;
listDeletedAuthorityUsers(runId: string, deadlineAt?: number): Promise<GoogleDirectoryUser[]>;
}
export declare class GoogleDirectoryAuthorityReader {
#private;
constructor(directory: GoogleDirectoryAuthoritySourcePort);
getUserById(googleUserId: string, correlationId: string, deadlineAt?: number): Promise<GoogleDirectoryUser | null>;
}