Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tender-signs-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@forgerock/journey-client': patch
---

export create-journey-step so it's easy to deserialize a step after it's been serialized
5 changes: 4 additions & 1 deletion e2e/journey-app/services/delete-webauthn-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ export async function deleteWebAuthnDevice(config: JourneyClientConfig): Promise
return 'No credential id found. Register a WebAuthn device first.';
}

const wellknown = config.serverConfig.wellknown;
const wellknown = 'wellknown' in config.serverConfig ? config.serverConfig.wellknown : undefined;
if (!wellknown) {
throw new Error('serverConfig.wellknown is required to delete a WebAuthn device.');
}
const baseUrl = getBaseUrlFromWellknown(wellknown);
const realmUrlPath = getRealmUrlPathFromWellknown(wellknown);
const userId = await getUserIdFromSession(baseUrl, realmUrlPath);
Expand Down
44 changes: 44 additions & 0 deletions packages/journey-client/api-report/journey-client._utils.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## API Report File for "@forgerock/journey-client"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts
import type { AuthResponse } from '@forgerock/sdk-types';
import type { Callback } from '@forgerock/sdk-types';
import type { CallbackType } from '@forgerock/sdk-types';
import { Step } from '@forgerock/sdk-types';
import type { StepType } from '@forgerock/sdk-types';

// @public
export class BaseCallback {
constructor(payload: Callback);
getInputValue(selector?: number | string): unknown;
getOutputByName<T>(name: string, defaultValue: T): T;
getOutputValue(selector?: number | string): unknown;
getType(): CallbackType;
// (undocumented)
payload: Callback;
setInputValue(value: unknown, selector?: number | string | RegExp): void;
}

// @public (undocumented)
export type CallbackFactory = (callback: Callback) => BaseCallback;

// @public (undocumented)
export function createJourneyStep(payload: Step, callbackFactory?: CallbackFactory): JourneyStep;

// @public (undocumented)
export type JourneyStep = AuthResponse & {
type: StepType.Step;
payload: Step;
callbacks: BaseCallback[];
getCallbackOfType: <T extends BaseCallback>(type: CallbackType) => T;
getCallbacksOfType: <T extends BaseCallback>(type: CallbackType) => T[];
setCallbackValue: (type: CallbackType, value: unknown) => void;
getDescription: () => string | undefined;
getHeader: () => string | undefined;
getStage: () => string | undefined;
};

// (No @packageDocumentation comment for this package)
```
Loading
Loading