Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Profile

Represents a user profile

Hierarchy

  • Profile

Indexable

[key: string]: any

Represents a user profile

Index

Constructors

constructor

  • new Profile(profile?: {}): Profile

Properties

@context

@context: typeof CONTEXT

@type

@type: typeof PERSON_TYPE

_profile

_profile: {}

Type declaration

  • [key: string]: any

Optional apps

apps: undefined | {}

Optional appsMeta

appsMeta: undefined | {}

Optional image

image: ProfileImage[]

Optional name

name: undefined | string

Methods

toJSON

  • toJSON(): {}

toToken

  • toToken(privateKey: string): string

Static fromToken

  • fromToken(token: string, publicKeyOrAddress?: string | null): Profile

Static makeZoneFile

  • makeZoneFile(domainName: string, tokenFileURL: string): string

Static validateSchema

  • validateSchema(profile: any, strict?: boolean): any

Generated using TypeDoc