UNPKG

@alloyidentity/web-sdk

Version:

Alloy Web Document SDK

24 lines (23 loc) 711 B
export interface BCInitOptions { customerSessionId?: string; context: string; brand: string; jsUrl: string; cid?: string; wupUrl?: string; runtimePlatform: 'web' | 'hybrid'; } export interface BCInitResult { cdApi: typeof window.cdApi; bcClient: typeof window.bcClient; customerSessionId: string; } export declare const hasMissingOptions: (options: BCInitOptions | Partial<BCInitOptions> | null | undefined) => string | null; /** * Initialize BC. * * If the caller does not pass in a bc session id, we will create one for them and return it. * * @param options */ export declare const initBC: (options: BCInitOptions, accessToken: string) => Promise<BCInitResult>;