UNPKG

@bn2me/client

Version:
26 lines (24 loc) 692 B
declare enum Scope { Identify = "identify", Email = "email", Accounts = "accounts", Accounts_Verified = "accounts.verified", Accounts_DisplayName = "accounts.displayName", BN2_Account = "bn2:account", BN2_Collections = "bn2:collections" } interface ClientInfo { client_id: string; client_secret?: string; } interface Options { url: string; } interface DPoPParams { htm: 'POST' | 'GET' | (string & {}); htu: string; nonce?: string; accessToken?: string; } type DPoPCallback = (params: DPoPParams) => string | Promise<string>; export { type ClientInfo as C, type DPoPParams as D, type Options as O, Scope as S, type DPoPCallback as a };