Class HaloProxy

About 1 min

Class HaloProxy

Declared in packages/sdk/client/src/packlets/proxies/halo-proxy.ts:48open in new window

TODO(burdon): Public API (move comments here).

Constructors

constructor(_serviceProvider)open in new window

Returns: HaloProxy

Arguments:

_serviceProvider: ClientServicesProvider

Properties

contactsopen in new window

Type: MulticastObservable<Contact[]>

deviceopen in new window

Type: undefined | Device

devicesopen in new window

Type: MulticastObservable<Device[]>

identityopen in new window

Type: MulticastObservable<"null" | Identity>

User identity info.

invitationsopen in new window

Type: MulticastObservable<CancellableInvitationObservable[]>

openedopen in new window

Type: boolean

Methods

[custom]()open in new window

Returns: string

Arguments: none

acceptInvitation(invitation)open in new window

Initiates accepting invitation.

Returns: AuthenticatingInvitationObservable

Arguments:

invitation: Invitation

createIdentity(profile)open in new window

Create Identity. Then initializes profile with given display name.

Returns: Promise<Identity>

Arguments:

profile: object

createInvitation([options])open in new window

Initiates device invitation.

Returns: CancellableInvitationObservable

Arguments:

options: Partial<Invitation>

presentCredentials(options)open in new window

Present Credentials.

Returns: Promise<Presentation>

Arguments:

options: object

queryCredentials(options)open in new window

Get Halo credentials for the current user.

Returns: ObservableProvider<object, Credential[]>

Arguments:

options: object

recoverIdentity(recoveryKey)open in new window

Returns: Promise<Identity>

Arguments:

recoveryKey: Uint8Array

removeInvitation(id)open in new window

Removes device invitation.

Returns: void

Arguments:

id: string

toJSON()open in new window

Returns: object

Arguments: none

writeCredentials(credentials)open in new window

Write credentials to halo profile.

Returns: Promise<void>

Arguments:

credentials: Credential[]