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