@forgerock/sdk-types 0.0.0-beta-20250506165419
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +127 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/lib/am-callback.types.d.ts +42 -0
- package/dist/src/lib/am-callback.types.d.ts.map +1 -0
- package/dist/src/lib/am-callback.types.js +34 -0
- package/dist/src/lib/authorize.types.d.ts +36 -0
- package/dist/src/lib/authorize.types.d.ts.map +1 -0
- package/dist/src/lib/authorize.types.js +1 -0
- package/dist/src/lib/branded.types.d.ts +4 -0
- package/dist/src/lib/branded.types.d.ts.map +1 -0
- package/dist/src/lib/branded.types.js +1 -0
- package/dist/src/lib/config.types.d.ts +33 -0
- package/dist/src/lib/config.types.d.ts.map +1 -0
- package/dist/src/lib/config.types.js +1 -0
- package/dist/src/lib/legacy-config.types.d.ts +102 -0
- package/dist/src/lib/legacy-config.types.d.ts.map +1 -0
- package/dist/src/lib/legacy-config.types.js +7 -0
- package/dist/src/lib/legacy-mware.types.d.ts +27 -0
- package/dist/src/lib/legacy-mware.types.d.ts.map +1 -0
- package/dist/src/lib/legacy-mware.types.js +23 -0
- package/dist/src/lib/tokens.types.d.ts +15 -0
- package/dist/src/lib/tokens.types.d.ts.map +1 -0
- package/dist/src/lib/tokens.types.js +7 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +26 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ping Identity Corporation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# @forgerock/sdk-types
|
|
2
|
+
|
|
3
|
+
A TypeScript type definitions package for the ForgeRock/Ping Identity JavaScript SDK ecosystem.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package contains shared TypeScript interfaces, types, and other type definitions that are used across the ForgeRock/Ping Identity JavaScript SDK packages. It provides a centralized repository for type definitions to ensure consistency across the SDK ecosystem.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
This package is intended to be used as a dependency within the ForgeRock/Ping Identity JavaScript SDK ecosystem and is not typically installed directly by end users.
|
|
12
|
+
|
|
13
|
+
If needed, you can install it via:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @forgerock/sdk-types
|
|
17
|
+
# or
|
|
18
|
+
pnpm add @forgerock/sdk-types
|
|
19
|
+
# or
|
|
20
|
+
yarn add @forgerock/sdk-types
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Contents
|
|
24
|
+
|
|
25
|
+
The package includes the following type categories:
|
|
26
|
+
|
|
27
|
+
### Authentication Callback Types
|
|
28
|
+
|
|
29
|
+
Definitions for AM/Ping authentication tree callback schema:
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
export interface Callback {
|
|
33
|
+
_id?: number;
|
|
34
|
+
input?: NameValue[];
|
|
35
|
+
output: NameValue[];
|
|
36
|
+
type: CallbackType;
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Provides type definitions for various callback types, including:
|
|
41
|
+
|
|
42
|
+
- BooleanAttributeInputCallback
|
|
43
|
+
- ChoiceCallback
|
|
44
|
+
- ConfirmationCallback
|
|
45
|
+
- DeviceProfileCallback
|
|
46
|
+
- NameCallback
|
|
47
|
+
- PasswordCallback
|
|
48
|
+
- PingOneProtect callbacks
|
|
49
|
+
- And many more
|
|
50
|
+
|
|
51
|
+
### Configuration Types
|
|
52
|
+
|
|
53
|
+
Types for configuring the SDK:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
export interface ServerConfig {
|
|
57
|
+
baseUrl: string;
|
|
58
|
+
paths?: CustomPathConfig;
|
|
59
|
+
timeout?: number;
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Includes interfaces for:
|
|
64
|
+
|
|
65
|
+
- Server configuration
|
|
66
|
+
- Custom path configuration
|
|
67
|
+
- Token storage
|
|
68
|
+
- Well-known endpoint response types
|
|
69
|
+
- Authentication step options
|
|
70
|
+
|
|
71
|
+
### Token Types
|
|
72
|
+
|
|
73
|
+
Definitions for OAuth2/OIDC tokens:
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
export interface Tokens {
|
|
77
|
+
accessToken: string;
|
|
78
|
+
idToken?: string;
|
|
79
|
+
refreshToken?: string;
|
|
80
|
+
tokenExpiry?: number;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Middleware Types
|
|
85
|
+
|
|
86
|
+
Types for request middleware implementations.
|
|
87
|
+
|
|
88
|
+
## Usage
|
|
89
|
+
|
|
90
|
+
Import types directly from the package:
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import { ServerConfig, Tokens, Callback } from '@forgerock/sdk-types';
|
|
94
|
+
|
|
95
|
+
const config: ServerConfig = {
|
|
96
|
+
baseUrl: 'https://example.forgerock.com/am',
|
|
97
|
+
timeout: 30000,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const processTokens = (tokens: Tokens) => {
|
|
101
|
+
// Use token information
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
const handleCallback = (callback: Callback) => {
|
|
105
|
+
// Process callback
|
|
106
|
+
};
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Development
|
|
110
|
+
|
|
111
|
+
This package follows the development practices of the overall ForgeRock/Ping Identity JavaScript SDK monorepo.
|
|
112
|
+
|
|
113
|
+
### Testing
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
pnpm test
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Building
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
pnpm build
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
This project is licensed under the terms of the MIT license. See the [LICENSE](../../LICENSE) file for details.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './lib/am-callback.types.js';
|
|
2
|
+
export * from './lib/legacy-config.types.js';
|
|
3
|
+
export * from './lib/legacy-mware.types.js';
|
|
4
|
+
export * from './lib/branded.types.js';
|
|
5
|
+
export * from './lib/tokens.types.js';
|
|
6
|
+
export * from './lib/config.types.js';
|
|
7
|
+
export * from './lib/authorize.types.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* This software may be modified and distributed under the terms
|
|
5
|
+
* of the MIT license. See the LICENSE file for details.
|
|
6
|
+
*/
|
|
7
|
+
export * from './lib/am-callback.types.js';
|
|
8
|
+
export * from './lib/legacy-config.types.js';
|
|
9
|
+
export * from './lib/legacy-mware.types.js';
|
|
10
|
+
export * from './lib/branded.types.js';
|
|
11
|
+
export * from './lib/tokens.types.js';
|
|
12
|
+
export * from './lib/config.types.js';
|
|
13
|
+
export * from './lib/authorize.types.js';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const callbackType: {
|
|
2
|
+
readonly BooleanAttributeInputCallback: "BooleanAttributeInputCallback";
|
|
3
|
+
readonly ChoiceCallback: "ChoiceCallback";
|
|
4
|
+
readonly ConfirmationCallback: "ConfirmationCallback";
|
|
5
|
+
readonly DeviceProfileCallback: "DeviceProfileCallback";
|
|
6
|
+
readonly HiddenValueCallback: "HiddenValueCallback";
|
|
7
|
+
readonly KbaCreateCallback: "KbaCreateCallback";
|
|
8
|
+
readonly MetadataCallback: "MetadataCallback";
|
|
9
|
+
readonly NameCallback: "NameCallback";
|
|
10
|
+
readonly NumberAttributeInputCallback: "NumberAttributeInputCallback";
|
|
11
|
+
readonly PasswordCallback: "PasswordCallback";
|
|
12
|
+
readonly PingOneProtectEvaluationCallback: "PingOneProtectEvaluationCallback";
|
|
13
|
+
readonly PingOneProtectInitializeCallback: "PingOneProtectInitializeCallback";
|
|
14
|
+
readonly PollingWaitCallback: "PollingWaitCallback";
|
|
15
|
+
readonly ReCaptchaCallback: "ReCaptchaCallback";
|
|
16
|
+
readonly ReCaptchaEnterpriseCallback: "ReCaptchaEnterpriseCallback";
|
|
17
|
+
readonly RedirectCallback: "RedirectCallback";
|
|
18
|
+
readonly SelectIdPCallback: "SelectIdPCallback";
|
|
19
|
+
readonly StringAttributeInputCallback: "StringAttributeInputCallback";
|
|
20
|
+
readonly SuspendedTextOutputCallback: "SuspendedTextOutputCallback";
|
|
21
|
+
readonly TermsAndConditionsCallback: "TermsAndConditionsCallback";
|
|
22
|
+
readonly TextInputCallback: "TextInputCallback";
|
|
23
|
+
readonly TextOutputCallback: "TextOutputCallback";
|
|
24
|
+
readonly ValidatedCreatePasswordCallback: "ValidatedCreatePasswordCallback";
|
|
25
|
+
readonly ValidatedCreateUsernameCallback: "ValidatedCreateUsernameCallback";
|
|
26
|
+
};
|
|
27
|
+
export type CallbackType = (typeof callbackType)[keyof typeof callbackType];
|
|
28
|
+
export interface NameValue {
|
|
29
|
+
name: string;
|
|
30
|
+
value: unknown;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the authentication tree API callback schema.
|
|
34
|
+
*/
|
|
35
|
+
export interface Callback {
|
|
36
|
+
_id?: number;
|
|
37
|
+
input?: NameValue[];
|
|
38
|
+
output: NameValue[];
|
|
39
|
+
type: CallbackType;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=am-callback.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"am-callback.types.d.ts","sourceRoot":"","sources":["../../../src/lib/am-callback.types.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAyBR,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE5E,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AACD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* This software may be modified and distributed under the terms
|
|
5
|
+
* of the MIT license. See the LICENSE file for details.
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
+
const callbackType = {
|
|
9
|
+
BooleanAttributeInputCallback: 'BooleanAttributeInputCallback',
|
|
10
|
+
ChoiceCallback: 'ChoiceCallback',
|
|
11
|
+
ConfirmationCallback: 'ConfirmationCallback',
|
|
12
|
+
DeviceProfileCallback: 'DeviceProfileCallback',
|
|
13
|
+
HiddenValueCallback: 'HiddenValueCallback',
|
|
14
|
+
KbaCreateCallback: 'KbaCreateCallback',
|
|
15
|
+
MetadataCallback: 'MetadataCallback',
|
|
16
|
+
NameCallback: 'NameCallback',
|
|
17
|
+
NumberAttributeInputCallback: 'NumberAttributeInputCallback',
|
|
18
|
+
PasswordCallback: 'PasswordCallback',
|
|
19
|
+
PingOneProtectEvaluationCallback: 'PingOneProtectEvaluationCallback',
|
|
20
|
+
PingOneProtectInitializeCallback: 'PingOneProtectInitializeCallback',
|
|
21
|
+
PollingWaitCallback: 'PollingWaitCallback',
|
|
22
|
+
ReCaptchaCallback: 'ReCaptchaCallback',
|
|
23
|
+
ReCaptchaEnterpriseCallback: 'ReCaptchaEnterpriseCallback',
|
|
24
|
+
RedirectCallback: 'RedirectCallback',
|
|
25
|
+
SelectIdPCallback: 'SelectIdPCallback',
|
|
26
|
+
StringAttributeInputCallback: 'StringAttributeInputCallback',
|
|
27
|
+
SuspendedTextOutputCallback: 'SuspendedTextOutputCallback',
|
|
28
|
+
TermsAndConditionsCallback: 'TermsAndConditionsCallback',
|
|
29
|
+
TextInputCallback: 'TextInputCallback',
|
|
30
|
+
TextOutputCallback: 'TextOutputCallback',
|
|
31
|
+
ValidatedCreatePasswordCallback: 'ValidatedCreatePasswordCallback',
|
|
32
|
+
ValidatedCreateUsernameCallback: 'ValidatedCreateUsernameCallback',
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { LegacyConfigOptions } from '@forgerock/sdk-types';
|
|
2
|
+
/**
|
|
3
|
+
* Define the options for the authorization URL
|
|
4
|
+
* @param clientId The client ID of the application
|
|
5
|
+
* @param redirectUri The redirect URI of the application
|
|
6
|
+
* @param responseType The response type of the authorization request
|
|
7
|
+
* @param scope The scope of the authorization request
|
|
8
|
+
*/
|
|
9
|
+
export type ResponseType = 'code' | 'token';
|
|
10
|
+
export interface GetAuthorizationUrlOptions extends LegacyConfigOptions {
|
|
11
|
+
/**
|
|
12
|
+
* These three properties clientid, scope and redirectUri are required
|
|
13
|
+
* when using this type, which are not required when defining Config.
|
|
14
|
+
*/
|
|
15
|
+
clientId: string;
|
|
16
|
+
login?: 'redirect' | 'embedded';
|
|
17
|
+
scope: string;
|
|
18
|
+
redirectUri: string;
|
|
19
|
+
responseType: ResponseType;
|
|
20
|
+
state?: string;
|
|
21
|
+
verifier?: string;
|
|
22
|
+
query?: Record<string, string>;
|
|
23
|
+
prompt?: 'none' | 'login' | 'consent';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Generate and store PKCE values for later use
|
|
27
|
+
* @param { string } storageKey - Key to store authorization options in sessionStorage
|
|
28
|
+
* @param {GenerateAndStoreAuthUrlValues} options - Options for generating PKCE values
|
|
29
|
+
* @returns { state: string, verifier: string, GetAuthorizationUrlOptions }
|
|
30
|
+
*/
|
|
31
|
+
export interface GenerateAndStoreAuthUrlValues extends GetAuthorizationUrlOptions {
|
|
32
|
+
login?: 'redirect' | 'embedded';
|
|
33
|
+
clientId: string;
|
|
34
|
+
prefix?: string;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=authorize.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authorize.types.d.ts","sourceRoot":"","sources":["../../../src/lib/authorize.types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,MAAM,WAAW,0BAA2B,SAAQ,mBAAmB;IACrE;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACvC;AACD;;;;;GAKG;AAEH,MAAM,WAAW,6BAA8B,SAAQ,0BAA0B;IAC/E,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branded.types.d.ts","sourceRoot":"","sources":["../../../src/lib/branded.types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,CAAC,KAAK,SAAS,MAAM,IAAI,MAAM,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CustomStorageObject } from './tokens.types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Union of possible OAuth Configs
|
|
4
|
+
* For example, we can add a Journey based OAuth config here
|
|
5
|
+
*/
|
|
6
|
+
export type OAuthConfig = DavinciOAuthConfig;
|
|
7
|
+
export interface DavinciOAuthConfig extends BaseConfig {
|
|
8
|
+
clientId: string;
|
|
9
|
+
tokenStore: CustomStorageObject | 'sessionStorage' | 'localStorage';
|
|
10
|
+
redirectUri: string;
|
|
11
|
+
scope: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseConfig {
|
|
14
|
+
serverConfig: PathsConfig;
|
|
15
|
+
}
|
|
16
|
+
interface CustomPathConfig {
|
|
17
|
+
authenticate: string;
|
|
18
|
+
authorize: string;
|
|
19
|
+
accessToken: string;
|
|
20
|
+
endSession: string;
|
|
21
|
+
userInfo: string;
|
|
22
|
+
revoke: string;
|
|
23
|
+
sessions: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Configuration settings for connecting to a server.
|
|
27
|
+
*/
|
|
28
|
+
export interface PathsConfig {
|
|
29
|
+
paths: CustomPathConfig;
|
|
30
|
+
timeout?: number;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=config.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../src/lib/config.types.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,mBAAmB,GAAG,gBAAgB,GAAG,cAAc,CAAC;IACpE,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,YAAY,EAAE,WAAW,CAAC;CAC3B;AAED,UAAU,gBAAgB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/** *************************************************************
|
|
2
|
+
* Legacy configuration options for the SDK
|
|
3
|
+
* **************************************************************/
|
|
4
|
+
import type { Callback } from './am-callback.types.js';
|
|
5
|
+
import type { LegacyRequestMiddleware } from './legacy-mware.types.js';
|
|
6
|
+
import { CustomStorageObject } from './tokens.types.js';
|
|
7
|
+
/**
|
|
8
|
+
* Optional configuration for custom paths for actions
|
|
9
|
+
*/
|
|
10
|
+
export interface CustomPathConfig {
|
|
11
|
+
authenticate?: string;
|
|
12
|
+
authorize?: string;
|
|
13
|
+
accessToken?: string;
|
|
14
|
+
endSession?: string;
|
|
15
|
+
userInfo?: string;
|
|
16
|
+
revoke?: string;
|
|
17
|
+
sessions?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Configuration settings for connecting to a server.
|
|
21
|
+
*/
|
|
22
|
+
export interface ServerConfig {
|
|
23
|
+
baseUrl: string;
|
|
24
|
+
paths?: CustomPathConfig;
|
|
25
|
+
timeout?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Configuration settings for async config with well-known
|
|
29
|
+
*/
|
|
30
|
+
export interface AsyncServerConfig extends Omit<ServerConfig, 'baseUrl'> {
|
|
31
|
+
wellknown?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Async LegacyConfigOptions for well-known endpoint usage
|
|
35
|
+
*/
|
|
36
|
+
export interface AsyncLegacyConfigOptions extends Omit<LegacyConfigOptions, 'serverConfig'> {
|
|
37
|
+
serverConfig: AsyncServerConfig;
|
|
38
|
+
}
|
|
39
|
+
export type ConfigurablePaths = keyof CustomPathConfig;
|
|
40
|
+
/**
|
|
41
|
+
* Optional configuration for custom paths for actions
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* Configuration options with a server configuration specified.
|
|
45
|
+
*/
|
|
46
|
+
export interface ValidLegacyConfigOptions extends LegacyConfigOptions {
|
|
47
|
+
serverConfig: ServerConfig;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents configuration overrides used when requesting the next
|
|
51
|
+
* step in an authentication tree.
|
|
52
|
+
*/
|
|
53
|
+
export interface StepOptions extends LegacyConfigOptions {
|
|
54
|
+
query?: Record<string, string>;
|
|
55
|
+
}
|
|
56
|
+
export interface WellKnownResponse {
|
|
57
|
+
issuer: string;
|
|
58
|
+
authorization_endpoint: string;
|
|
59
|
+
pushed_authorization_request_endpoint?: string;
|
|
60
|
+
token_endpoint: string;
|
|
61
|
+
userinfo_endpoint: string;
|
|
62
|
+
end_session_endpoint: string;
|
|
63
|
+
introspection_endpoint: string;
|
|
64
|
+
revocation_endpoint: string;
|
|
65
|
+
jwks_uri?: string;
|
|
66
|
+
device_authorization_endpoint?: string;
|
|
67
|
+
claims_parameter_supported?: boolean;
|
|
68
|
+
request_parameter_supported?: boolean;
|
|
69
|
+
request_uri_parameter_supported?: boolean;
|
|
70
|
+
require_pushed_authorization_requests?: boolean;
|
|
71
|
+
scopes_supported?: string[];
|
|
72
|
+
response_types_supported?: string[];
|
|
73
|
+
response_modes_supported?: string[];
|
|
74
|
+
grant_types_supported?: string[];
|
|
75
|
+
subject_types_supported?: string[];
|
|
76
|
+
id_token_signing_alg_values_supported?: string[];
|
|
77
|
+
userinfo_signing_alg_values_supported?: string[];
|
|
78
|
+
request_object_signing_alg_values_supported?: string[];
|
|
79
|
+
token_endpoint_auth_methods_supported?: string[];
|
|
80
|
+
token_endpoint_auth_signing_alg_values_supported?: string[];
|
|
81
|
+
claim_types_supported?: string[];
|
|
82
|
+
claims_supported?: string[];
|
|
83
|
+
code_challenge_methods_supported?: string[];
|
|
84
|
+
}
|
|
85
|
+
type FRCallbackFactory = (callback: Callback) => any;
|
|
86
|
+
export interface LegacyConfigOptions {
|
|
87
|
+
callbackFactory?: FRCallbackFactory;
|
|
88
|
+
clientId?: string;
|
|
89
|
+
middleware?: LegacyRequestMiddleware[];
|
|
90
|
+
realmPath?: string;
|
|
91
|
+
redirectUri?: string;
|
|
92
|
+
scope?: string;
|
|
93
|
+
serverConfig?: ServerConfig;
|
|
94
|
+
tokenStore?: CustomStorageObject | 'sessionStorage' | 'localStorage';
|
|
95
|
+
tree?: string;
|
|
96
|
+
type?: string;
|
|
97
|
+
oauthThreshold?: number;
|
|
98
|
+
platformHeader?: boolean;
|
|
99
|
+
prefix?: string;
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
102
|
+
//# sourceMappingURL=legacy-config.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-config.types.d.ts","sourceRoot":"","sources":["../../../src/lib/legacy-config.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** *************************************************************
|
|
2
|
+
* Types for legacy middleware configuration
|
|
3
|
+
* **************************************************************/
|
|
4
|
+
export declare enum LegacyActionTypes {
|
|
5
|
+
Authenticate = "AUTHENTICATE",
|
|
6
|
+
Authorize = "AUTHORIZE",
|
|
7
|
+
EndSession = "END_SESSION",
|
|
8
|
+
Logout = "LOGOUT",
|
|
9
|
+
ExchangeToken = "EXCHANGE_TOKEN",
|
|
10
|
+
RefreshToken = "REFRESH_TOKEN",
|
|
11
|
+
ResumeAuthenticate = "RESUME_AUTHENTICATE",
|
|
12
|
+
RevokeToken = "REVOKE_TOKEN",
|
|
13
|
+
StartAuthenticate = "START_AUTHENTICATE",
|
|
14
|
+
UserInfo = "USER_INFO",
|
|
15
|
+
WellKnown = "WELL_KNOWN"
|
|
16
|
+
}
|
|
17
|
+
interface Action {
|
|
18
|
+
type: LegacyActionTypes;
|
|
19
|
+
payload: any;
|
|
20
|
+
}
|
|
21
|
+
interface RequestObj {
|
|
22
|
+
url: URL;
|
|
23
|
+
init: RequestInit;
|
|
24
|
+
}
|
|
25
|
+
export type LegacyRequestMiddleware = (req: RequestObj, action: Action, next: () => RequestObj) => void;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=legacy-mware.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacy-mware.types.d.ts","sourceRoot":"","sources":["../../../src/lib/legacy-mware.types.ts"],"names":[],"mappings":"AAOA;;kEAEkE;AAElE,oBAAY,iBAAiB;IAC3B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,UAAU,gBAAgB;IAC1B,MAAM,WAAW;IACjB,aAAa,mBAAmB;IAChC,YAAY,kBAAkB;IAC9B,kBAAkB,wBAAwB;IAC1C,WAAW,iBAAiB;IAC5B,iBAAiB,uBAAuB;IACxC,QAAQ,cAAc;IACtB,SAAS,eAAe;CACzB;AACD,UAAU,MAAM;IACd,IAAI,EAAE,iBAAiB,CAAC;IAExB,OAAO,EAAE,GAAG,CAAC;CACd;AACD,UAAU,UAAU;IAClB,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,WAAW,CAAC;CACnB;AACD,MAAM,MAAM,uBAAuB,GAAG,CACpC,GAAG,EAAE,UAAU,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,UAAU,KACnB,IAAI,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Ping Identity Corporation. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* This software may be modified and distributed under the terms
|
|
5
|
+
* of the MIT license. See the LICENSE file for details.
|
|
6
|
+
*/
|
|
7
|
+
/** *************************************************************
|
|
8
|
+
* Types for legacy middleware configuration
|
|
9
|
+
* **************************************************************/
|
|
10
|
+
export var LegacyActionTypes;
|
|
11
|
+
(function (LegacyActionTypes) {
|
|
12
|
+
LegacyActionTypes["Authenticate"] = "AUTHENTICATE";
|
|
13
|
+
LegacyActionTypes["Authorize"] = "AUTHORIZE";
|
|
14
|
+
LegacyActionTypes["EndSession"] = "END_SESSION";
|
|
15
|
+
LegacyActionTypes["Logout"] = "LOGOUT";
|
|
16
|
+
LegacyActionTypes["ExchangeToken"] = "EXCHANGE_TOKEN";
|
|
17
|
+
LegacyActionTypes["RefreshToken"] = "REFRESH_TOKEN";
|
|
18
|
+
LegacyActionTypes["ResumeAuthenticate"] = "RESUME_AUTHENTICATE";
|
|
19
|
+
LegacyActionTypes["RevokeToken"] = "REVOKE_TOKEN";
|
|
20
|
+
LegacyActionTypes["StartAuthenticate"] = "START_AUTHENTICATE";
|
|
21
|
+
LegacyActionTypes["UserInfo"] = "USER_INFO";
|
|
22
|
+
LegacyActionTypes["WellKnown"] = "WELL_KNOWN";
|
|
23
|
+
})(LegacyActionTypes || (LegacyActionTypes = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface Tokens {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
idToken?: string;
|
|
4
|
+
refreshToken?: string;
|
|
5
|
+
tokenExpiry?: number;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* API for implementing a custom token store
|
|
9
|
+
*/
|
|
10
|
+
export interface CustomStorageObject {
|
|
11
|
+
get: (key: string) => Promise<string | null>;
|
|
12
|
+
set: (key: string, valueToSet: string) => Promise<void>;
|
|
13
|
+
remove: (key: string) => Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=tokens.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.types.d.ts","sourceRoot":"","sources":["../../../src/lib/tokens.types.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,MAAM;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7C,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/typescript@5.7.3/node_modules/typescript/lib/lib.esnext.full.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.d.ts","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/modules/index.d.ts","../src/lib/am-callback.types.ts","../src/lib/legacy-mware.types.ts","../src/lib/tokens.types.ts","../src/lib/legacy-config.types.ts","../src/lib/branded.types.ts","../src/lib/config.types.ts","../src/lib/authorize.types.ts","../src/index.ts"],"fileIdsList":[[83],[84,85,86,87,88,89,90,91],[84],[84,92],[84,87],[84,85,86,87]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"69e65d976bf166ce4a9e6f6c18f94d2424bf116e90837ace179610dbccad9b42","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7a3c8b952931daebdfc7a2897c53c0a1c73624593fa070e46bd537e64dcd20a","affectsGlobalScope":true,"impliedFormat":1},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true,"impliedFormat":1},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"bde31fd423cd93b0eff97197a3f66df7c93e8c0c335cbeb113b7ff1ac35c23f4","impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"b8f34dd1757f68e03262b1ca3ddfa668a855b872f8bdd5224d6f993a7b37dc2c","impliedFormat":99},{"version":"51920ad1547feaed9b50a2e43f4bfe6d5327abc2dc2ebeef39e84d4e6f3e56ab","signature":"9fa2c1a1e99de9e49bc0f39efd3a6808c332a88e6e634cf5908a69f391459bb5","impliedFormat":99},{"version":"d395182a3fba3dcd4bdd3babd15da5cc0b4c56d548c1fa845409c0b915ed35ad","signature":"5fc9dce2120281bc3f86115974f4e7f1faaa7403ba04f0cbb2e0f03a780aa65d","impliedFormat":99},{"version":"7cb14223ea97047b807e653cbc8072d51bc96b9f5374016935711a3302c43d61","signature":"ed1eb35232e7de2dac290531fcef285755e3b1938e770f493f979895e9b5b400","impliedFormat":99},{"version":"ee59a79ea133e258aee9304bbd4b7116040f11003ab47a2099ec75a9a15bc896","signature":"fe99476bdb3ba74a4f118b47e95b8057c0f3e9d7d94c4b5cff650b568ccdccf5","impliedFormat":99},{"version":"ed37df1ef407b353a985d681ad10918d3412ef72168be0b69d543a9a31dc43ec","signature":"257bd65d14490bcfe2c234134e340bae3d6b4556b7fa43e31cb45480dcc92a34","impliedFormat":99},{"version":"8c559e922be7b895f556cca5856706cdb4090f730b91750ebb3dde08d61875ac","signature":"bcc3f8bad13edcd33ef55f818d8773c02fcdb5466778cc81b90a82d5848529a6","impliedFormat":99},{"version":"80e406b1e9580c98d85e3710575fdac3fa45c294121920622254de5ec5872324","signature":"9669f15502f25053d621555f6ab995c8872cd8ed0f742a1d66864e9809e1b6d4","impliedFormat":99},{"version":"e4206fead65c462eb5c7eebd80211bcb52570231d0f7d1a3f2e89b8069413dc6","signature":"40e57f4e6bbb40c1c42752d594f9cc78ba2fbb8f26de2432b3640ae564d86d55","impliedFormat":99}],"root":[[85,92]],"options":{"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":false,"importHelpers":true,"module":199,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"outDir":"./","skipLibCheck":true,"strict":true,"tsBuildInfoFile":"./tsconfig.lib.tsbuildinfo"},"referencedMap":[[84,1],[92,2],[85,3],[91,4],[89,3],[90,5],[88,6],[86,3],[87,3]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.7.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@forgerock/sdk-types",
|
|
3
|
+
"version": "0.0.0-beta-20250506165419",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/src/index.d.ts",
|
|
9
|
+
"import": "./dist/src/index.js",
|
|
10
|
+
"default": "./dist/src/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"main": "./dist/src/index.js",
|
|
15
|
+
"module": "./dist/src/index.js",
|
|
16
|
+
"types": "./dist/src/index.d.ts",
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"nx": {
|
|
21
|
+
"tags": [
|
|
22
|
+
"scope:sdk-types"
|
|
23
|
+
],
|
|
24
|
+
"name": "@forgerock/sdk-types"
|
|
25
|
+
}
|
|
26
|
+
}
|