Constructors
constructor
- new default(apiKey, basePath?): default
Parameters
- apiKey: string
Optional
basePath: string
Properties
Private
Readonly
apiKey
apiKey: string
Private
Readonly
apiWrappers
Private
Optional
Readonly
basePath
basePath?: string
Private
Readonly
observers
Accessors
accounts
- get accounts(): AccountsApiWrapper
Returns AccountsApiWrapper
Methods
constructWebhookEvent
- constructWebhookEvent(body, signature): Promise<WebHookEvent>
Parameters
- body: string
- signature: string
Private
getOrCreateWrapper
- getOrCreateWrapper<T>(type): T
Parameters
- type: (new (_accessToken, _basePath?) => T)
- new (_accessToken, _basePath?): T
Parameters
- _accessToken: string
Optional
_basePath: string
Returns T
Returns T
Private
getWrapperKey
- getWrapperKey(wrapper): string
Returns string
registerRecoverySession
- registerRecoverySession(apiKey, secretKey, encryptionPart): Promise<string>
Parameters
- apiKey: string
- secretKey: string
- encryptionPart: string
Returns Promise<string>
signNonce
- signNonce(nonce): Promise<string>
Returns Promise<string>
subscribe
- subscribe(observer): void
Returns void