@forgerock/login-widget 1.2.0-beta.9 → 1.3.0
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/CHANGELOG.md +266 -145
- package/README.md +2 -2
- package/index.cjs +17561 -8505
- package/index.cjs.map +1 -1
- package/index.d.ts +181 -70
- package/index.js +17561 -8506
- package/index.js.map +1 -1
- package/package.json +4 -1
- package/types.d.ts +268 -148
package/types.d.ts
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
ResumeAuthenticate = "RESUME_AUTHENTICATE",
|
|
9
|
-
RevokeToken = "REVOKE_TOKEN",
|
|
10
|
-
StartAuthenticate = "START_AUTHENTICATE",
|
|
11
|
-
UserInfo = "USER_INFO"
|
|
1
|
+
/**
|
|
2
|
+
* Types of steps returned by the authentication tree.
|
|
3
|
+
*/
|
|
4
|
+
declare enum StepType {
|
|
5
|
+
LoginFailure = "LoginFailure",
|
|
6
|
+
LoginSuccess = "LoginSuccess",
|
|
7
|
+
Step = "Step"
|
|
12
8
|
}
|
|
9
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Base interface for all types of authentication step responses.
|
|
13
|
+
*/
|
|
14
|
+
interface AuthResponse {
|
|
15
|
+
type: StepType;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents details of a failure in an authentication step.
|
|
19
|
+
*/
|
|
20
|
+
interface FailureDetail {
|
|
21
|
+
failureUrl?: string;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
13
24
|
|
|
14
25
|
/**
|
|
15
26
|
* Types of callbacks directly supported by the SDK.
|
|
@@ -25,6 +36,8 @@ declare enum CallbackType {
|
|
|
25
36
|
NameCallback = "NameCallback",
|
|
26
37
|
NumberAttributeInputCallback = "NumberAttributeInputCallback",
|
|
27
38
|
PasswordCallback = "PasswordCallback",
|
|
39
|
+
PingOneProtectEvaluationCallback = "PingOneProtectEvaluationCallback",
|
|
40
|
+
PingOneProtectInitializeCallback = "PingOneProtectInitializeCallback",
|
|
28
41
|
PollingWaitCallback = "PollingWaitCallback",
|
|
29
42
|
ReCaptchaCallback = "ReCaptchaCallback",
|
|
30
43
|
RedirectCallback = "RedirectCallback",
|
|
@@ -37,16 +50,7 @@ declare enum CallbackType {
|
|
|
37
50
|
ValidatedCreatePasswordCallback = "ValidatedCreatePasswordCallback",
|
|
38
51
|
ValidatedCreateUsernameCallback = "ValidatedCreateUsernameCallback"
|
|
39
52
|
}
|
|
40
|
-
|
|
41
|
-
interface StringDict<T> {
|
|
42
|
-
[name: string]: T;
|
|
43
|
-
}
|
|
44
|
-
interface Tokens {
|
|
45
|
-
accessToken: string;
|
|
46
|
-
idToken?: string;
|
|
47
|
-
refreshToken?: string;
|
|
48
|
-
tokenExpiry?: number;
|
|
49
|
-
}
|
|
53
|
+
//# sourceMappingURL=enums.d.ts.map
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
56
|
* Represents the authentication tree API payload schema.
|
|
@@ -75,13 +79,6 @@ interface StepDetail {
|
|
|
75
79
|
failureUrl?: string;
|
|
76
80
|
result?: boolean;
|
|
77
81
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Represents configuration overrides used when requesting the next
|
|
80
|
-
* step in an authentication tree.
|
|
81
|
-
*/
|
|
82
|
-
interface StepOptions extends ConfigOptions$1 {
|
|
83
|
-
query?: StringDict<string>;
|
|
84
|
-
}
|
|
85
82
|
/**
|
|
86
83
|
* Represents failed policies for a matching property.
|
|
87
84
|
*/
|
|
@@ -122,6 +119,7 @@ interface NameValue {
|
|
|
122
119
|
name: string;
|
|
123
120
|
value: unknown;
|
|
124
121
|
}
|
|
122
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
125
123
|
|
|
126
124
|
/**
|
|
127
125
|
* Base class for authentication tree callback wrappers.
|
|
@@ -166,8 +164,86 @@ declare class FRCallback {
|
|
|
166
164
|
getOutputByName<T>(name: string, defaultValue: T): T;
|
|
167
165
|
private getArrayElement;
|
|
168
166
|
}
|
|
167
|
+
//# sourceMappingURL=index.d.ts.map
|
|
169
168
|
|
|
170
|
-
type FRCallbackFactory = (callback: Callback) => FRCallback
|
|
169
|
+
type FRCallbackFactory = (callback: Callback) => FRCallback;//# sourceMappingURL=factory.d.ts.map
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Represents a single step of an authentication tree.
|
|
173
|
+
*/
|
|
174
|
+
declare class FRStep implements AuthResponse {
|
|
175
|
+
payload: Step$1;
|
|
176
|
+
/**
|
|
177
|
+
* The type of step.
|
|
178
|
+
*/
|
|
179
|
+
readonly type = StepType.Step;
|
|
180
|
+
/**
|
|
181
|
+
* The callbacks contained in this step.
|
|
182
|
+
*/
|
|
183
|
+
callbacks: FRCallback[];
|
|
184
|
+
/**
|
|
185
|
+
* @param payload The raw payload returned by OpenAM
|
|
186
|
+
* @param callbackFactory A function that returns am implementation of FRCallback
|
|
187
|
+
*/
|
|
188
|
+
constructor(payload: Step$1, callbackFactory?: FRCallbackFactory);
|
|
189
|
+
/**
|
|
190
|
+
* Gets the first callback of the specified type in this step.
|
|
191
|
+
*
|
|
192
|
+
* @param type The type of callback to find.
|
|
193
|
+
*/
|
|
194
|
+
getCallbackOfType<T extends FRCallback>(type: CallbackType): T;
|
|
195
|
+
/**
|
|
196
|
+
* Gets all callbacks of the specified type in this step.
|
|
197
|
+
*
|
|
198
|
+
* @param type The type of callback to find.
|
|
199
|
+
*/
|
|
200
|
+
getCallbacksOfType<T extends FRCallback>(type: CallbackType): T[];
|
|
201
|
+
/**
|
|
202
|
+
* Sets the value of the first callback of the specified type in this step.
|
|
203
|
+
*
|
|
204
|
+
* @param type The type of callback to find.
|
|
205
|
+
* @param value The value to set for the callback.
|
|
206
|
+
*/
|
|
207
|
+
setCallbackValue(type: CallbackType, value: unknown): void;
|
|
208
|
+
/**
|
|
209
|
+
* Gets the step's description.
|
|
210
|
+
*/
|
|
211
|
+
getDescription(): string | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* Gets the step's header.
|
|
214
|
+
*/
|
|
215
|
+
getHeader(): string | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Gets the step's stage.
|
|
218
|
+
*/
|
|
219
|
+
getStage(): string | undefined;
|
|
220
|
+
private convertCallbacks;
|
|
221
|
+
}//# sourceMappingURL=fr-step.d.ts.map
|
|
222
|
+
|
|
223
|
+
interface StringDict<T> {
|
|
224
|
+
[name: string]: T;
|
|
225
|
+
}
|
|
226
|
+
interface Tokens {
|
|
227
|
+
accessToken: string;
|
|
228
|
+
idToken?: string;
|
|
229
|
+
refreshToken?: string;
|
|
230
|
+
tokenExpiry?: number;
|
|
231
|
+
}
|
|
232
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
233
|
+
|
|
234
|
+
declare enum ActionTypes {
|
|
235
|
+
Authenticate = "AUTHENTICATE",
|
|
236
|
+
Authorize = "AUTHORIZE",
|
|
237
|
+
EndSession = "END_SESSION",
|
|
238
|
+
Logout = "LOGOUT",
|
|
239
|
+
ExchangeToken = "EXCHANGE_TOKEN",
|
|
240
|
+
RefreshToken = "REFRESH_TOKEN",
|
|
241
|
+
ResumeAuthenticate = "RESUME_AUTHENTICATE",
|
|
242
|
+
RevokeToken = "REVOKE_TOKEN",
|
|
243
|
+
StartAuthenticate = "START_AUTHENTICATE",
|
|
244
|
+
UserInfo = "USER_INFO",
|
|
245
|
+
WellKnown = "WELL_KNOWN"
|
|
246
|
+
}
|
|
171
247
|
|
|
172
248
|
type LogLevel = 'none' | 'info' | 'warn' | 'error' | 'debug';
|
|
173
249
|
interface Action {
|
|
@@ -200,6 +276,8 @@ interface ConfigOptions$1 {
|
|
|
200
276
|
oauthThreshold?: number;
|
|
201
277
|
logLevel?: LogLevel;
|
|
202
278
|
logger?: LoggerFunctions;
|
|
279
|
+
platformHeader?: boolean;
|
|
280
|
+
prefix?: string;
|
|
203
281
|
}
|
|
204
282
|
/**
|
|
205
283
|
* Optional configuration for custom paths for actions
|
|
@@ -234,80 +312,13 @@ interface TokenStoreObject {
|
|
|
234
312
|
set: (clientId: string, token: Tokens) => Promise<void>;
|
|
235
313
|
remove: (clientId: string) => Promise<void>;
|
|
236
314
|
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Types of steps returned by the authentication tree.
|
|
240
|
-
*/
|
|
241
|
-
declare enum StepType {
|
|
242
|
-
LoginFailure = "LoginFailure",
|
|
243
|
-
LoginSuccess = "LoginSuccess",
|
|
244
|
-
Step = "Step"
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Base interface for all types of authentication step responses.
|
|
249
|
-
*/
|
|
250
|
-
interface AuthResponse {
|
|
251
|
-
type: StepType;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Represents details of a failure in an authentication step.
|
|
255
|
-
*/
|
|
256
|
-
interface FailureDetail {
|
|
257
|
-
failureUrl?: string;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
315
|
/**
|
|
261
|
-
* Represents
|
|
316
|
+
* Represents configuration overrides used when requesting the next
|
|
317
|
+
* step in an authentication tree.
|
|
262
318
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
* The type of step.
|
|
267
|
-
*/
|
|
268
|
-
readonly type = StepType.Step;
|
|
269
|
-
/**
|
|
270
|
-
* The callbacks contained in this step.
|
|
271
|
-
*/
|
|
272
|
-
callbacks: FRCallback[];
|
|
273
|
-
/**
|
|
274
|
-
* @param payload The raw payload returned by OpenAM
|
|
275
|
-
* @param callbackFactory A function that returns am implementation of FRCallback
|
|
276
|
-
*/
|
|
277
|
-
constructor(payload: Step$1, callbackFactory?: FRCallbackFactory);
|
|
278
|
-
/**
|
|
279
|
-
* Gets the first callback of the specified type in this step.
|
|
280
|
-
*
|
|
281
|
-
* @param type The type of callback to find.
|
|
282
|
-
*/
|
|
283
|
-
getCallbackOfType<T extends FRCallback>(type: CallbackType): T;
|
|
284
|
-
/**
|
|
285
|
-
* Gets all callbacks of the specified type in this step.
|
|
286
|
-
*
|
|
287
|
-
* @param type The type of callback to find.
|
|
288
|
-
*/
|
|
289
|
-
getCallbacksOfType<T extends FRCallback>(type: CallbackType): T[];
|
|
290
|
-
/**
|
|
291
|
-
* Sets the value of the first callback of the specified type in this step.
|
|
292
|
-
*
|
|
293
|
-
* @param type The type of callback to find.
|
|
294
|
-
* @param value The value to set for the callback.
|
|
295
|
-
*/
|
|
296
|
-
setCallbackValue(type: CallbackType, value: unknown): void;
|
|
297
|
-
/**
|
|
298
|
-
* Gets the step's description.
|
|
299
|
-
*/
|
|
300
|
-
getDescription(): string | undefined;
|
|
301
|
-
/**
|
|
302
|
-
* Gets the step's header.
|
|
303
|
-
*/
|
|
304
|
-
getHeader(): string | undefined;
|
|
305
|
-
/**
|
|
306
|
-
* Gets the step's stage.
|
|
307
|
-
*/
|
|
308
|
-
getStage(): string | undefined;
|
|
309
|
-
private convertCallbacks;
|
|
310
|
-
}
|
|
319
|
+
interface StepOptions extends ConfigOptions$1 {
|
|
320
|
+
query?: StringDict<string>;
|
|
321
|
+
}//# sourceMappingURL=interfaces.d.ts.map
|
|
311
322
|
|
|
312
323
|
declare type HandleStep = (step: FRStep) => Promise<FRStep>;
|
|
313
324
|
/**
|
|
@@ -364,6 +375,7 @@ declare abstract class HttpClient {
|
|
|
364
375
|
private static stepIterator;
|
|
365
376
|
private static _request;
|
|
366
377
|
}
|
|
378
|
+
//# sourceMappingURL=index.d.ts.map
|
|
367
379
|
|
|
368
380
|
declare function noop(): void;
|
|
369
381
|
|
|
@@ -417,7 +429,7 @@ declare class SvelteComponent {
|
|
|
417
429
|
|
|
418
430
|
declare type Props = Record<string, any>;
|
|
419
431
|
interface ComponentConstructorOptions<Props extends Record<string, any> = Record<string, any>> {
|
|
420
|
-
target: Element |
|
|
432
|
+
target: Element | ShadowRoot;
|
|
421
433
|
anchor?: Element;
|
|
422
434
|
props?: Props;
|
|
423
435
|
context?: Map<any, any>;
|
|
@@ -492,6 +504,22 @@ interface Writable<T> extends Readable<T> {
|
|
|
492
504
|
update(this: void, updater: Updater<T>): void;
|
|
493
505
|
}
|
|
494
506
|
|
|
507
|
+
/**
|
|
508
|
+
* Tokens returned after successful authentication.
|
|
509
|
+
*/
|
|
510
|
+
interface OAuth2Tokens$1 {
|
|
511
|
+
accessToken: string;
|
|
512
|
+
idToken?: string;
|
|
513
|
+
refreshToken?: string;
|
|
514
|
+
tokenExpiry?: number;
|
|
515
|
+
}//# sourceMappingURL=interfaces.d.ts.map
|
|
516
|
+
|
|
517
|
+
interface GetTokensOptions extends ConfigOptions$1 {
|
|
518
|
+
forceRenew?: boolean;
|
|
519
|
+
login?: 'embedded' | 'redirect' | undefined;
|
|
520
|
+
query?: StringDict<string>;
|
|
521
|
+
}//# sourceMappingURL=index.d.ts.map
|
|
522
|
+
|
|
495
523
|
interface MessageCreator {
|
|
496
524
|
[key: string]: (propertyName: string, params?: {
|
|
497
525
|
[key: string]: unknown;
|
|
@@ -501,78 +529,65 @@ interface ProcessedPropertyError {
|
|
|
501
529
|
detail: FailedPolicyRequirement;
|
|
502
530
|
messages: string[];
|
|
503
531
|
}
|
|
532
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
504
533
|
|
|
505
|
-
declare class
|
|
534
|
+
declare class FRLoginSuccess implements AuthResponse {
|
|
506
535
|
payload: Step$1;
|
|
507
536
|
/**
|
|
508
537
|
* The type of step.
|
|
509
538
|
*/
|
|
510
|
-
readonly type = StepType.
|
|
539
|
+
readonly type = StepType.LoginSuccess;
|
|
511
540
|
/**
|
|
512
541
|
* @param payload The raw payload returned by OpenAM
|
|
513
542
|
*/
|
|
514
543
|
constructor(payload: Step$1);
|
|
515
544
|
/**
|
|
516
|
-
* Gets the
|
|
517
|
-
*/
|
|
518
|
-
getCode(): number;
|
|
519
|
-
/**
|
|
520
|
-
* Gets the failure details.
|
|
521
|
-
*/
|
|
522
|
-
getDetail(): FailureDetail | undefined;
|
|
523
|
-
/**
|
|
524
|
-
* Gets the failure message.
|
|
545
|
+
* Gets the step's realm.
|
|
525
546
|
*/
|
|
526
|
-
|
|
547
|
+
getRealm(): string | undefined;
|
|
527
548
|
/**
|
|
528
|
-
* Gets
|
|
549
|
+
* Gets the step's session token.
|
|
529
550
|
*/
|
|
530
|
-
|
|
551
|
+
getSessionToken(): string | undefined;
|
|
531
552
|
/**
|
|
532
|
-
* Gets the
|
|
553
|
+
* Gets the step's success URL.
|
|
533
554
|
*/
|
|
534
|
-
|
|
555
|
+
getSuccessUrl(): string | undefined;
|
|
535
556
|
}
|
|
557
|
+
//# sourceMappingURL=fr-login-success.d.ts.map
|
|
536
558
|
|
|
537
|
-
declare class
|
|
559
|
+
declare class FRLoginFailure implements AuthResponse {
|
|
538
560
|
payload: Step$1;
|
|
539
561
|
/**
|
|
540
562
|
* The type of step.
|
|
541
563
|
*/
|
|
542
|
-
readonly type = StepType.
|
|
564
|
+
readonly type = StepType.LoginFailure;
|
|
543
565
|
/**
|
|
544
566
|
* @param payload The raw payload returned by OpenAM
|
|
545
567
|
*/
|
|
546
568
|
constructor(payload: Step$1);
|
|
547
569
|
/**
|
|
548
|
-
* Gets the
|
|
570
|
+
* Gets the error code.
|
|
549
571
|
*/
|
|
550
|
-
|
|
572
|
+
getCode(): number;
|
|
551
573
|
/**
|
|
552
|
-
* Gets the
|
|
574
|
+
* Gets the failure details.
|
|
553
575
|
*/
|
|
554
|
-
|
|
576
|
+
getDetail(): FailureDetail | undefined;
|
|
555
577
|
/**
|
|
556
|
-
* Gets the
|
|
578
|
+
* Gets the failure message.
|
|
557
579
|
*/
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
refreshToken?: string;
|
|
568
|
-
tokenExpiry?: number;
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
interface GetTokensOptions extends ConfigOptions$1 {
|
|
572
|
-
forceRenew?: boolean;
|
|
573
|
-
login?: 'embedded' | 'redirect' | undefined;
|
|
574
|
-
query?: StringDict<string>;
|
|
580
|
+
getMessage(): string | undefined;
|
|
581
|
+
/**
|
|
582
|
+
* Gets processed failure message.
|
|
583
|
+
*/
|
|
584
|
+
getProcessedMessage(messageCreator?: MessageCreator): ProcessedPropertyError[];
|
|
585
|
+
/**
|
|
586
|
+
* Gets the failure reason.
|
|
587
|
+
*/
|
|
588
|
+
getReason(): string | undefined;
|
|
575
589
|
}
|
|
590
|
+
//# sourceMappingURL=fr-login-failure.d.ts.map
|
|
576
591
|
|
|
577
592
|
type Maybe<T> = T | null | undefined;
|
|
578
593
|
|
|
@@ -619,13 +634,16 @@ interface CallbackMetadata {
|
|
|
619
634
|
idx: number;
|
|
620
635
|
platform?: Record<string, unknown>;
|
|
621
636
|
}
|
|
637
|
+
interface StartOptions extends StepOptions {
|
|
638
|
+
recaptchaAction?: string;
|
|
639
|
+
}
|
|
622
640
|
interface JourneyStore extends Pick<Writable<JourneyStoreValue$1>, 'subscribe'> {
|
|
623
641
|
next: (prevStep?: StepTypes, nextOptions?: StepOptions) => void;
|
|
624
642
|
pop: () => void;
|
|
625
643
|
push: (changeOptions: StepOptions) => void;
|
|
626
644
|
reset: () => void;
|
|
627
645
|
resume: (url: string, resumeOptions?: StepOptions) => void;
|
|
628
|
-
start: (startOptions?:
|
|
646
|
+
start: (startOptions?: StartOptions) => void;
|
|
629
647
|
}
|
|
630
648
|
interface JourneyStoreValue$1 {
|
|
631
649
|
completed: boolean;
|
|
@@ -640,9 +658,10 @@ interface JourneyStoreValue$1 {
|
|
|
640
658
|
callbacks: CallbackMetadata[];
|
|
641
659
|
step: StepMetadata;
|
|
642
660
|
} | null;
|
|
643
|
-
step
|
|
661
|
+
step?: StepTypes;
|
|
644
662
|
successful: boolean;
|
|
645
663
|
response: Maybe<Step$1>;
|
|
664
|
+
recaptchaAction?: Maybe<string>;
|
|
646
665
|
}
|
|
647
666
|
interface StepMetadata {
|
|
648
667
|
derived: {
|
|
@@ -674,6 +693,67 @@ interface ComponentStoreValue {
|
|
|
674
693
|
type: 'inline' | 'modal' | null;
|
|
675
694
|
}
|
|
676
695
|
|
|
696
|
+
interface Identifiers {
|
|
697
|
+
[key: string]: string;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* InitParams - Interface for the init method parameters
|
|
701
|
+
* envId: string - Required; the environment id from your PingOne tenant
|
|
702
|
+
* * - All other parameters are optional
|
|
703
|
+
*/
|
|
704
|
+
interface InitParams {
|
|
705
|
+
envId: string;
|
|
706
|
+
consoleLogEnabled?: boolean;
|
|
707
|
+
waitForWindowLoad?: boolean;
|
|
708
|
+
hubUrl?: string;
|
|
709
|
+
disableHub?: boolean;
|
|
710
|
+
deviceAttributesToIgnore?: string[];
|
|
711
|
+
lazyMetadata?: boolean;
|
|
712
|
+
behavioralDataCollection?: boolean;
|
|
713
|
+
disableTags?: boolean;
|
|
714
|
+
externalIdentifiers?: Identifiers;
|
|
715
|
+
deviceKeyRsyncIntervals?: number;
|
|
716
|
+
enableTrust?: boolean;
|
|
717
|
+
}
|
|
718
|
+
declare global {
|
|
719
|
+
interface Window {
|
|
720
|
+
_pingOneSignals: {
|
|
721
|
+
init: (initParams?: InitParams) => Promise<void>;
|
|
722
|
+
getData: () => Promise<string>;
|
|
723
|
+
pauseBehavioralData: () => void;
|
|
724
|
+
resumeBehavioralData: () => void;
|
|
725
|
+
};
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* @class PIProtect - Class to interact with the underlying PingOne Signals SDK
|
|
730
|
+
*/
|
|
731
|
+
declare abstract class PIProtect {
|
|
732
|
+
/**
|
|
733
|
+
* @method getData - Method to get the device data
|
|
734
|
+
* @returns {Promise<string>} - Returns the device data
|
|
735
|
+
*/
|
|
736
|
+
static getData(): Promise<string>;
|
|
737
|
+
/**
|
|
738
|
+
* @method start - Method to initialize and start the PingOne Signals SDK
|
|
739
|
+
* @param {InitParams} options - The init parameters
|
|
740
|
+
* @returns {Promise<void>} - Returns a promise
|
|
741
|
+
*/
|
|
742
|
+
static start(options: InitParams): Promise<void>;
|
|
743
|
+
/**
|
|
744
|
+
* @method pauseBehavioralData - Method to pause the behavioral data collection
|
|
745
|
+
* @returns {void}
|
|
746
|
+
* @description Pause the behavioral data collection only; device profile data will still be collected
|
|
747
|
+
*/
|
|
748
|
+
static pauseBehavioralData(): void;
|
|
749
|
+
/**
|
|
750
|
+
* @method resumeBehavioralData - Method to resume the behavioral data collection
|
|
751
|
+
* @returns {void}
|
|
752
|
+
* @description Resume the behavioral data collection
|
|
753
|
+
*/
|
|
754
|
+
static resumeBehavioralData(): void;
|
|
755
|
+
}
|
|
756
|
+
|
|
677
757
|
declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
678
758
|
|
|
679
759
|
declare namespace util {
|
|
@@ -696,7 +776,7 @@ declare namespace util {
|
|
|
696
776
|
export const isInteger: NumberConstructor["isInteger"];
|
|
697
777
|
export function joinValues<T extends any[]>(array: T, separator?: string): string;
|
|
698
778
|
export const jsonStringifyReplacer: (_: string, value: any) => any;
|
|
699
|
-
export {};
|
|
779
|
+
export { };
|
|
700
780
|
}
|
|
701
781
|
declare namespace objectUtil {
|
|
702
782
|
export type MergeShapes<U, V> = {
|
|
@@ -718,7 +798,7 @@ declare namespace objectUtil {
|
|
|
718
798
|
}>;
|
|
719
799
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
720
800
|
export type extendShape<A, B> = flatten<Omit<A, keyof B> & B>;
|
|
721
|
-
export {};
|
|
801
|
+
export { };
|
|
722
802
|
}
|
|
723
803
|
declare const ZodParsedType: {
|
|
724
804
|
function: "function";
|
|
@@ -961,7 +1041,7 @@ declare namespace enumUtil {
|
|
|
961
1041
|
type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
|
|
962
1042
|
type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
|
|
963
1043
|
export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
|
|
964
|
-
export {};
|
|
1044
|
+
export { };
|
|
965
1045
|
}
|
|
966
1046
|
|
|
967
1047
|
declare namespace errorUtil {
|
|
@@ -1730,6 +1810,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1730
1810
|
}[] | undefined;
|
|
1731
1811
|
}>], ZodUnknown>, ZodType<FRCallback, ZodTypeDef, FRCallback>>>>;
|
|
1732
1812
|
clientId: ZodOptional<ZodOptional<ZodString>>;
|
|
1813
|
+
logLevel: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"error">, ZodLiteral<"warn">, ZodLiteral<"info">, ZodLiteral<"debug">]>>>;
|
|
1733
1814
|
middleware: ZodOptional<ZodOptional<ZodArray<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>, "many">>>;
|
|
1734
1815
|
realmPath: ZodOptional<ZodString>;
|
|
1735
1816
|
redirectUri: ZodOptional<ZodOptional<ZodString>>;
|
|
@@ -1843,6 +1924,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1843
1924
|
}[] | undefined;
|
|
1844
1925
|
}, ...args_1: unknown[]) => FRCallback) | undefined;
|
|
1845
1926
|
clientId?: string | undefined;
|
|
1927
|
+
logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
|
|
1846
1928
|
middleware?: ((...args: unknown[]) => unknown)[] | undefined;
|
|
1847
1929
|
realmPath?: string | undefined;
|
|
1848
1930
|
redirectUri?: string | undefined;
|
|
@@ -1888,6 +1970,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1888
1970
|
}[] | undefined;
|
|
1889
1971
|
}, ...args_1: unknown[]) => FRCallback) | undefined;
|
|
1890
1972
|
clientId?: string | undefined;
|
|
1973
|
+
logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
|
|
1891
1974
|
middleware?: ((...args: unknown[]) => unknown)[] | undefined;
|
|
1892
1975
|
realmPath?: string | undefined;
|
|
1893
1976
|
redirectUri?: string | undefined;
|
|
@@ -2026,6 +2109,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2026
2109
|
customSecurityQuestion: ZodOptional<ZodString>;
|
|
2027
2110
|
dontGetLockedOut: ZodOptional<ZodString>;
|
|
2028
2111
|
doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
|
|
2112
|
+
deviceName: ZodOptional<ZodString>;
|
|
2029
2113
|
ensurePasswordIsMoreThan: ZodOptional<ZodString>;
|
|
2030
2114
|
ensurePasswordHasOne: ZodOptional<ZodString>;
|
|
2031
2115
|
enterVerificationCode: ZodOptional<ZodString>;
|
|
@@ -2047,11 +2131,14 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2047
2131
|
minimumNumberOfUppercase: ZodOptional<ZodString>;
|
|
2048
2132
|
minimumNumberOfSymbols: ZodOptional<ZodString>;
|
|
2049
2133
|
nameCallback: ZodOptional<ZodString>;
|
|
2134
|
+
nameYourDevice: ZodOptional<ZodString>;
|
|
2050
2135
|
next: ZodOptional<ZodString>;
|
|
2051
2136
|
nextButton: ZodOptional<ZodString>;
|
|
2052
2137
|
notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
|
|
2053
2138
|
noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
|
|
2139
|
+
useOneOfTheseCodes: ZodOptional<ZodString>;
|
|
2054
2140
|
onMobileOpenInAuthenticator: ZodOptional<ZodString>;
|
|
2141
|
+
optionallyNameDevice: ZodOptional<ZodString>;
|
|
2055
2142
|
passwordCallback: ZodOptional<ZodString>;
|
|
2056
2143
|
passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
|
|
2057
2144
|
passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
|
|
@@ -2080,6 +2167,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2080
2167
|
shouldContainALowercase: ZodOptional<ZodString>;
|
|
2081
2168
|
shouldContainASymbol: ZodOptional<ZodString>;
|
|
2082
2169
|
showPassword: ZodOptional<ZodString>;
|
|
2170
|
+
signalsEvaluation: ZodOptional<ZodString>;
|
|
2171
|
+
skipButton: ZodOptional<ZodString>;
|
|
2083
2172
|
sn: ZodOptional<ZodString>;
|
|
2084
2173
|
submit: ZodOptional<ZodString>;
|
|
2085
2174
|
submitButton: ZodOptional<ZodString>;
|
|
@@ -2102,6 +2191,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2102
2191
|
validatedCreateUsernameCallback: ZodOptional<ZodString>;
|
|
2103
2192
|
valueRequirements: ZodOptional<ZodString>;
|
|
2104
2193
|
verifyYourIdentity: ZodOptional<ZodString>;
|
|
2194
|
+
yourDevice: ZodOptional<ZodString>;
|
|
2105
2195
|
yourMultiFactorAuthIsEnabled: ZodOptional<ZodString>;
|
|
2106
2196
|
yourRecoveryCodesToAccessAccountForLostDevice: ZodOptional<ZodString>;
|
|
2107
2197
|
}, "strict", ZodTypeAny, {
|
|
@@ -2124,6 +2214,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2124
2214
|
customSecurityQuestion?: string | undefined;
|
|
2125
2215
|
dontGetLockedOut?: string | undefined;
|
|
2126
2216
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
2217
|
+
deviceName?: string | undefined;
|
|
2127
2218
|
ensurePasswordIsMoreThan?: string | undefined;
|
|
2128
2219
|
ensurePasswordHasOne?: string | undefined;
|
|
2129
2220
|
enterVerificationCode?: string | undefined;
|
|
@@ -2145,11 +2236,14 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2145
2236
|
minimumNumberOfUppercase?: string | undefined;
|
|
2146
2237
|
minimumNumberOfSymbols?: string | undefined;
|
|
2147
2238
|
nameCallback?: string | undefined;
|
|
2239
|
+
nameYourDevice?: string | undefined;
|
|
2148
2240
|
next?: string | undefined;
|
|
2149
2241
|
nextButton?: string | undefined;
|
|
2150
2242
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2151
2243
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2244
|
+
useOneOfTheseCodes?: string | undefined;
|
|
2152
2245
|
onMobileOpenInAuthenticator?: string | undefined;
|
|
2246
|
+
optionallyNameDevice?: string | undefined;
|
|
2153
2247
|
passwordCallback?: string | undefined;
|
|
2154
2248
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2155
2249
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2178,6 +2272,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2178
2272
|
shouldContainALowercase?: string | undefined;
|
|
2179
2273
|
shouldContainASymbol?: string | undefined;
|
|
2180
2274
|
showPassword?: string | undefined;
|
|
2275
|
+
signalsEvaluation?: string | undefined;
|
|
2276
|
+
skipButton?: string | undefined;
|
|
2181
2277
|
sn?: string | undefined;
|
|
2182
2278
|
submit?: string | undefined;
|
|
2183
2279
|
submitButton?: string | undefined;
|
|
@@ -2200,6 +2296,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2200
2296
|
validatedCreateUsernameCallback?: string | undefined;
|
|
2201
2297
|
valueRequirements?: string | undefined;
|
|
2202
2298
|
verifyYourIdentity?: string | undefined;
|
|
2299
|
+
yourDevice?: string | undefined;
|
|
2203
2300
|
yourMultiFactorAuthIsEnabled?: string | undefined;
|
|
2204
2301
|
yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
|
|
2205
2302
|
}, {
|
|
@@ -2222,6 +2319,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2222
2319
|
customSecurityQuestion?: string | undefined;
|
|
2223
2320
|
dontGetLockedOut?: string | undefined;
|
|
2224
2321
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
2322
|
+
deviceName?: string | undefined;
|
|
2225
2323
|
ensurePasswordIsMoreThan?: string | undefined;
|
|
2226
2324
|
ensurePasswordHasOne?: string | undefined;
|
|
2227
2325
|
enterVerificationCode?: string | undefined;
|
|
@@ -2243,11 +2341,14 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2243
2341
|
minimumNumberOfUppercase?: string | undefined;
|
|
2244
2342
|
minimumNumberOfSymbols?: string | undefined;
|
|
2245
2343
|
nameCallback?: string | undefined;
|
|
2344
|
+
nameYourDevice?: string | undefined;
|
|
2246
2345
|
next?: string | undefined;
|
|
2247
2346
|
nextButton?: string | undefined;
|
|
2248
2347
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2249
2348
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2349
|
+
useOneOfTheseCodes?: string | undefined;
|
|
2250
2350
|
onMobileOpenInAuthenticator?: string | undefined;
|
|
2351
|
+
optionallyNameDevice?: string | undefined;
|
|
2251
2352
|
passwordCallback?: string | undefined;
|
|
2252
2353
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2253
2354
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2276,6 +2377,8 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2276
2377
|
shouldContainALowercase?: string | undefined;
|
|
2277
2378
|
shouldContainASymbol?: string | undefined;
|
|
2278
2379
|
showPassword?: string | undefined;
|
|
2380
|
+
signalsEvaluation?: string | undefined;
|
|
2381
|
+
skipButton?: string | undefined;
|
|
2279
2382
|
sn?: string | undefined;
|
|
2280
2383
|
submit?: string | undefined;
|
|
2281
2384
|
submitButton?: string | undefined;
|
|
@@ -2298,6 +2401,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2298
2401
|
validatedCreateUsernameCallback?: string | undefined;
|
|
2299
2402
|
valueRequirements?: string | undefined;
|
|
2300
2403
|
verifyYourIdentity?: string | undefined;
|
|
2404
|
+
yourDevice?: string | undefined;
|
|
2301
2405
|
yourMultiFactorAuthIsEnabled?: string | undefined;
|
|
2302
2406
|
yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
|
|
2303
2407
|
}>;
|
|
@@ -2305,6 +2409,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2305
2409
|
declare const partialStyleSchema: ZodObject<{
|
|
2306
2410
|
checksAndRadios: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"animated">, ZodLiteral<"standard">]>>>;
|
|
2307
2411
|
labels: ZodOptional<ZodOptional<ZodUnion<[ZodOptional<ZodLiteral<"floating">>, ZodLiteral<"stacked">]>>>;
|
|
2412
|
+
showPassword: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"button">, ZodLiteral<"checkbox">]>>>;
|
|
2308
2413
|
logo: ZodOptional<ZodOptional<ZodObject<{
|
|
2309
2414
|
dark: ZodOptional<ZodString>;
|
|
2310
2415
|
height: ZodOptional<ZodNumber>;
|
|
@@ -2338,6 +2443,7 @@ declare const partialStyleSchema: ZodObject<{
|
|
|
2338
2443
|
}, "strict", ZodTypeAny, {
|
|
2339
2444
|
checksAndRadios?: "standard" | "animated" | undefined;
|
|
2340
2445
|
labels?: "floating" | "stacked" | undefined;
|
|
2446
|
+
showPassword?: "none" | "button" | "checkbox" | undefined;
|
|
2341
2447
|
logo?: {
|
|
2342
2448
|
dark?: string | undefined;
|
|
2343
2449
|
height?: number | undefined;
|
|
@@ -2353,6 +2459,7 @@ declare const partialStyleSchema: ZodObject<{
|
|
|
2353
2459
|
}, {
|
|
2354
2460
|
checksAndRadios?: "standard" | "animated" | undefined;
|
|
2355
2461
|
labels?: "floating" | "stacked" | undefined;
|
|
2462
|
+
showPassword?: "none" | "button" | "checkbox" | undefined;
|
|
2356
2463
|
logo?: {
|
|
2357
2464
|
dark?: string | undefined;
|
|
2358
2465
|
height?: number | undefined;
|
|
@@ -2379,6 +2486,7 @@ interface JourneyOptionsStart$1 {
|
|
|
2379
2486
|
forgerock?: StepOptions;
|
|
2380
2487
|
journey?: string;
|
|
2381
2488
|
resumeUrl?: string;
|
|
2489
|
+
recaptchaAction?: string;
|
|
2382
2490
|
}
|
|
2383
2491
|
interface WidgetConfigOptions$1 {
|
|
2384
2492
|
forgerock?: TypeOf<typeof partialConfigSchema>;
|
|
@@ -2417,6 +2525,12 @@ declare const api: {
|
|
|
2417
2525
|
user: UserStoreValue$1;
|
|
2418
2526
|
} | undefined) => void) | undefined) => Unsubscriber;
|
|
2419
2527
|
};
|
|
2528
|
+
protect: {
|
|
2529
|
+
start: typeof PIProtect.start;
|
|
2530
|
+
getData: typeof PIProtect.getData;
|
|
2531
|
+
pauseBehavioralData: typeof PIProtect.pauseBehavioralData;
|
|
2532
|
+
resumeBehavioralData: typeof PIProtect.resumeBehavioralData;
|
|
2533
|
+
};
|
|
2420
2534
|
request: typeof HttpClient.request;
|
|
2421
2535
|
user: {
|
|
2422
2536
|
info(): {
|
|
@@ -2434,6 +2548,12 @@ type ConfigurationApi = ReturnType<typeof api.configuration>;
|
|
|
2434
2548
|
type JourneyApi = ReturnType<typeof api.journey>;
|
|
2435
2549
|
type UserInfoApi = ReturnType<typeof api.user.info>;
|
|
2436
2550
|
type UserTokensApi = ReturnType<typeof api.user.tokens>;
|
|
2551
|
+
type ProtectApi = {
|
|
2552
|
+
start: Pick<typeof PIProtect, 'start'>;
|
|
2553
|
+
getData: Pick<typeof PIProtect, 'getData'>;
|
|
2554
|
+
resumeBehavioralData: Pick<typeof PIProtect, 'resumeBehavioralData'>;
|
|
2555
|
+
pauseBehavioralData: Pick<typeof PIProtect, 'pauseBehavioralData'>;
|
|
2556
|
+
};
|
|
2437
2557
|
type JourneyOptions = JourneyOptions$1;
|
|
2438
2558
|
type JourneyOptionsChange = JourneyOptionsChange$1;
|
|
2439
2559
|
type JourneyOptionsStart = JourneyOptionsStart$1;
|
|
@@ -2445,4 +2565,4 @@ type ConfigOptions = ConfigOptions$1;
|
|
|
2445
2565
|
type OAuth2Tokens = OAuth2Tokens$1;
|
|
2446
2566
|
type Step = Step$1;
|
|
2447
2567
|
|
|
2448
|
-
export { ConfigOptions, ConfigurationApi, JourneyApi, JourneyOptions, JourneyOptionsChange, JourneyOptionsStart, JourneyStoreValue, OAuth2Tokens, OAuthTokenStoreValue, Step, UserInfoApi, UserStoreValue, UserTokensApi, WidgetConfigOptions };
|
|
2568
|
+
export type { ConfigOptions, ConfigurationApi, JourneyApi, JourneyOptions, JourneyOptionsChange, JourneyOptionsStart, JourneyStoreValue, OAuth2Tokens, OAuthTokenStoreValue, ProtectApi, Step, UserInfoApi, UserStoreValue, UserTokensApi, WidgetConfigOptions };
|