UNPKG

@archon-inc/sdk

Version:

Integrate easily to our government platform using this SDK. More info on https://archon.inc/sdk

11 lines 442 B
import { Role } from "../types/policy.js"; import { User, UserId } from "../types/user.js"; /** * Given a user or user id, return the roles the user has. * * **Warning:** Provides one layer deep of parents for each role, but no further. * @param user The user to get the roles for. * @returns A list of roles the user has. */ export default function getRoles(user: User | UserId): Promise<Role[]>; //# sourceMappingURL=getRoles.d.ts.map