import { Seam } from '../seam.js'

/**
 * Roster-entry claiming and its verification. SEAM — owned by #24.
 *
 * Sits BETWEEN the invitation wall and the workspace (#23): the wall addresses
 * a roster entry by name, and claiming is what turns it into a vendor org.
 *
 * #11 decision 1 left the hard part open — "Acme Foods Inc" on one roster and
 * "Acme Foods" on another must resolve to one org.
 */
export interface Claiming {
  claim(rosterEntryId: string, actorId: string): Promise<{ vendorOrgId: string }>
}

export const claiming: Claiming = {
  async claim() { throw new Seam('#24', 'roster-entry claiming and its verification') },
}
