@alloyidentity/web-sdk
Version:
Alloy Web Document SDK
36 lines (35 loc) • 1.08 kB
TypeScript
export declare const getSessionIdValidationError: (sessionId: string) => string | null;
/**
* Create a unique Customer Session ID
*
* Create a unique string between 10 and 100 characters
* containing A-Za-z0-9,!@$%^&*.=+-_/\~
*
* @see {@link https://DOCS/docs/js-mandatory-functions#setcustomersessionid}
*/
export declare const createUniqueBCSessionId: (minLength?: number, maxLength?: number) => string;
/**
* Configuration options for embedding the BC SDK
*/
export interface BCEmbedOptions {
customerSessionId: string;
context: string;
brand: string;
jsUrl: string;
}
/**
* result of embedding the BC SDK is the cdApi
*/
export interface BCEmbedResult {
cdApi: typeof window.cdApi;
}
declare const _default: (options: BCEmbedOptions) => Promise<BCEmbedResult>;
/**
* Load the bc js frontend, and call the mandatory functions
*
* This will return the bc cdApi object (though it should also
* be available at window.cdApi)
*
* @see {@link https://DOCS/docs/js-mandatory-functions}
*/
export default _default;