UNPKG

@microsoft/useragent-sdk

Version:

SDK for building decentralized identity wallets and enterprise agents.

53 lines (52 loc) 1.49 kB
import ClaimObject, { ClaimDescription } from "./ClaimObject"; /** * Class containing data for displaying an approval prompt in User Agent app. */ export default class ClaimUIAttributes { /** * Issuer name of the credential. */ issuerName: string; /** * Name of the credential. */ claimName: string; /** * Background color of the credential. */ hexBackgroundColor: string; /** * Font color of the credential. */ hexFontColor: string; /** * Logo formatted according to Claim Spec. */ logo: { sourceUri: { uri: string; description: string; }; }; /** * Claim Descriptions for claims contained in Claim Object. */ claimDescriptions: ClaimDescription[]; /** * Private Constructor for collecting PromptData. * @param claimUIAttributes */ private constructor(); /** * Gets prompt data from claimObject in OidcRequest. * note: think about whether this should take in an Claim Object instead. * @param {ClaimObject} claimObject claimObject used to construct PromptData Object. * @returns {PromptData} */ static create(claimObject: ClaimObject): Promise<ClaimUIAttributes>; /** * Get Claim Class from Endpoint. * @param {string} claimClassUrl url that contains claim class. */ private static fetchClaimClass; }