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
7 changes: 7 additions & 0 deletions .changeset/lovely-cloths-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@forgerock/journey-client': minor
'@forgerock/device-client': minor
'@forgerock/oidc-client': minor
---

Expose return types for clients
3 changes: 3 additions & 0 deletions packages/device-client/src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { deviceClient } from '../device.store.js';

export type DeviceClient = ReturnType<typeof deviceClient>;

// Re-export types from external dependencies that consumers need
export type { ConfigOptions } from '@forgerock/javascript-sdk';
Expand Down
9 changes: 9 additions & 0 deletions packages/journey-client/src/lib/client.types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
import { journey } from './client.store.js';

export type JourneyClient = Awaited<ReturnType<typeof journey>>;
1 change: 1 addition & 0 deletions packages/journey-client/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type {
} from '@forgerock/sdk-types';

// Re-export local types
export * from './lib/client.types.js';
export * from './lib/config.types.js';
export * from './lib/interfaces.js';
export * from './lib/step.types.js';
Expand Down
3 changes: 3 additions & 0 deletions packages/oidc-client/src/lib/client.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import type { GenericError, GetAuthorizationUrlOptions } from '@forgerock/sdk-types';
import type { StorageConfig } from '@forgerock/storage';
import { createClientStore } from './client.store.utils.js';
import { oidc } from './client.store.js';

export type OidcClient = Awaited<ReturnType<typeof oidc>>;

export type ClientStore = ReturnType<typeof createClientStore>;

Expand Down
Loading