@forgerock/javascript-sdk
Advanced tools
Comparing version 4.0.0-beta.4 to 4.0.0-beta.5
@@ -13,3 +13,3 @@ { | ||
"homepage": "https://github.com/ForgeRock/forgerock-javascript-sdk#readme", | ||
"version": "4.0.0-beta.4", | ||
"version": "4.0.0-beta.5", | ||
"module": "./index.js", | ||
@@ -16,0 +16,0 @@ "main": "./index.cjs", |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Step, StepOptions } from './interfaces'; |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config/interfaces'; |
@@ -0,0 +0,0 @@ /** @hidden */ |
@@ -0,0 +0,0 @@ export declare enum ActionTypes { |
@@ -0,0 +0,0 @@ import { DEFAULT_TIMEOUT } from './constants'; |
@@ -0,0 +0,0 @@ import { ActionTypes } from './enums'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import { CallbackType } from '../../auth/enums'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import TextOutputCallback from './text-output-callback'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ import FRCallback from '.'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { MessageCreator, ProcessedPropertyError } from '../fr-policy/interfaces'; |
@@ -0,0 +0,0 @@ import { Step } from '../auth/interfaces'; |
@@ -0,0 +0,0 @@ import { CallbackType } from '../auth/enums'; |
@@ -0,0 +0,0 @@ import { StepOptions } from '../auth/interfaces'; |
@@ -0,0 +0,0 @@ import { StepType } from './enums'; |
@@ -0,0 +0,0 @@ import { StringDict } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ declare const browserProps: string[]; |
@@ -0,0 +0,0 @@ import { BaseProfileConfig, CollectParameters, DeviceProfileData, Geolocation, ProfileConfigOptions } from './interfaces'; |
@@ -0,0 +0,0 @@ type Category = 'fontNames' | 'displayProps' | 'browserProps' | 'hardwareProps' | 'platformProps'; |
@@ -0,0 +0,0 @@ declare enum PolicyKey { |
@@ -0,0 +0,0 @@ declare function getProp<T>(obj: { |
@@ -0,0 +0,0 @@ import { FailedPolicyRequirement, PolicyRequirement, Step } from '../auth/interfaces'; |
@@ -0,0 +0,0 @@ import { FailedPolicyRequirement } from '../auth/interfaces'; |
import { MessageCreator } from './interfaces'; | ||
declare const defaultMessageCreator: MessageCreator; | ||
export default defaultMessageCreator; |
@@ -0,0 +0,0 @@ import FRStep from '../fr-auth/fr-step'; |
declare function parseDisplayRecoveryCodesText(text: string): string[]; | ||
export { parseDisplayRecoveryCodesText }; |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config'; |
@@ -0,0 +0,0 @@ declare enum WebAuthnOutcome { |
@@ -0,0 +0,0 @@ import { ParsedCredential } from './interfaces'; |
@@ -5,4 +5,5 @@ import HiddenValueCallback from '../fr-auth/callbacks/hidden-value-callback'; | ||
import { WebAuthnOutcome, WebAuthnStepType } from './enums'; | ||
import { RelyingParty, WebAuthnAuthenticationMetadata, WebAuthnCallbacks, WebAuthnRegistrationMetadata } from './interfaces'; | ||
import { AttestationType, RelyingParty, WebAuthnAuthenticationMetadata, WebAuthnCallbacks, WebAuthnRegistrationMetadata } from './interfaces'; | ||
import TextOutputCallback from '../fr-auth/callbacks/text-output-callback'; | ||
type OutcomeWithName<ClientId extends string, Attestation extends AttestationType, PubKeyCred extends PublicKeyCredential, Name = ''> = Name extends infer P extends string ? `${ClientId}::${Attestation}::${PubKeyCred['id']}${P extends '' ? '' : `::${P}`}` : never; | ||
/** | ||
@@ -46,3 +47,3 @@ * Utility for integrating a web browser's WebAuthn API. | ||
*/ | ||
static register(step: FRStep): Promise<FRStep>; | ||
static register<T extends string = undefined>(step: FRStep, deviceName?: T): Promise<FRStep>; | ||
/** | ||
@@ -91,3 +92,3 @@ * Returns an object containing the two WebAuthn callbacks. | ||
*/ | ||
static getAuthenticationOutcome(credential: PublicKeyCredential | null): string; | ||
static getAuthenticationOutcome(credential: PublicKeyCredential | null): OutcomeWithName<string, AttestationType, typeof credential> | OutcomeWithName<string, AttestationType, typeof credential, string>; | ||
/** | ||
@@ -106,3 +107,3 @@ * Retrieves the credential from the browser Web Authentication API. | ||
*/ | ||
static getRegistrationOutcome(credential: PublicKeyCredential | null): string; | ||
static getRegistrationOutcome(credential: PublicKeyCredential | null): OutcomeWithName<string, AttestationType, PublicKeyCredential>; | ||
/** | ||
@@ -109,0 +110,0 @@ * Converts authentication tree metadata into options required by the browser |
@@ -0,0 +0,0 @@ import HiddenValueCallback from '../fr-auth/callbacks/hidden-value-callback'; |
declare function parseWebAuthnRegisterText(text: string): PublicKeyCredentialCreationOptions; | ||
declare function parseWebAuthnAuthenticateText(text: string): PublicKeyCredentialRequestOptions; | ||
export { parseWebAuthnAuthenticateText, parseWebAuthnRegisterText }; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { HttpClientRequestOptions, RequiresNewTokenFn } from './interfaces'; |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config/interfaces'; |
@@ -0,0 +0,0 @@ import Auth from './auth'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config/index'; |
@@ -0,0 +0,0 @@ import { StringDict } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config/index'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ interface StringDict<T> { |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Tokens } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ import { Tokens } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ import { Tokens } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ import { Tokens } from '../shared/interfaces'; |
@@ -0,0 +0,0 @@ import { ConfigOptions } from '../config/interfaces'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { RequestMiddleware, RequestObj } from '../config/interfaces'; |
@@ -0,0 +0,0 @@ /** |
/** @hidden */ | ||
declare function getRealmUrlPath(realmPath?: string): string; | ||
export { getRealmUrlPath }; |
@@ -0,0 +0,0 @@ /** @hidden */ |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { ConfigurablePaths, CustomPathConfig } from '../config/interfaces'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
369782
10457