@forgerock/login-widget 1.2.1 → 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/package.json CHANGED
@@ -11,7 +11,10 @@
11
11
  "repository": {
12
12
  "url": "https://github.com/forgerock/forgerock-web-login-framework.git"
13
13
  },
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
14
17
  "license": "MIT",
15
18
  "dependencies": {},
16
- "version": "1.2.1"
19
+ "version": "1.3.0"
17
20
  }
package/types.d.ts CHANGED
@@ -1,15 +1,26 @@
1
- declare enum ActionTypes {
2
- Authenticate = "AUTHENTICATE",
3
- Authorize = "AUTHORIZE",
4
- EndSession = "END_SESSION",
5
- Logout = "LOGOUT",
6
- ExchangeToken = "EXCHANGE_TOKEN",
7
- RefreshToken = "REFRESH_TOKEN",
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 a single step of an authentication tree.
316
+ * Represents configuration overrides used when requesting the next
317
+ * step in an authentication tree.
262
318
  */
263
- declare class FRStep implements AuthResponse {
264
- payload: Step$1;
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 | Document | ShadowRoot;
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 FRLoginFailure implements AuthResponse {
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.LoginFailure;
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 error code.
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
- getMessage(): string | undefined;
547
+ getRealm(): string | undefined;
527
548
  /**
528
- * Gets processed failure message.
549
+ * Gets the step's session token.
529
550
  */
530
- getProcessedMessage(messageCreator?: MessageCreator): ProcessedPropertyError[];
551
+ getSessionToken(): string | undefined;
531
552
  /**
532
- * Gets the failure reason.
553
+ * Gets the step's success URL.
533
554
  */
534
- getReason(): string | undefined;
555
+ getSuccessUrl(): string | undefined;
535
556
  }
557
+ //# sourceMappingURL=fr-login-success.d.ts.map
536
558
 
537
- declare class FRLoginSuccess implements AuthResponse {
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.LoginSuccess;
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 step's realm.
570
+ * Gets the error code.
549
571
  */
550
- getRealm(): string | undefined;
572
+ getCode(): number;
551
573
  /**
552
- * Gets the step's session token.
574
+ * Gets the failure details.
553
575
  */
554
- getSessionToken(): string | undefined;
576
+ getDetail(): FailureDetail | undefined;
555
577
  /**
556
- * Gets the step's success URL.
578
+ * Gets the failure message.
557
579
  */
558
- getSuccessUrl(): string | undefined;
559
- }
560
-
561
- /**
562
- * Tokens returned after successful authentication.
563
- */
564
- interface OAuth2Tokens$1 {
565
- accessToken: string;
566
- idToken?: string;
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
 
@@ -661,9 +676,6 @@ interface StepMetadata {
661
676
  }
662
677
  type StepTypes = FRStep | FRLoginSuccess | FRLoginFailure | null;
663
678
 
664
- declare module '*.svelte' {
665
- export { SvelteComponentDev as default } from 'svelte/internal';
666
- }
667
679
 
668
680
  interface ComponentStoreValue {
669
681
  lastAction: 'close' | 'open' | 'mount' | null;
@@ -681,6 +693,67 @@ interface ComponentStoreValue {
681
693
  type: 'inline' | 'modal' | null;
682
694
  }
683
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
+
684
757
  declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
685
758
 
686
759
  declare namespace util {
@@ -703,7 +776,7 @@ declare namespace util {
703
776
  export const isInteger: NumberConstructor["isInteger"];
704
777
  export function joinValues<T extends any[]>(array: T, separator?: string): string;
705
778
  export const jsonStringifyReplacer: (_: string, value: any) => any;
706
- export {};
779
+ export { };
707
780
  }
708
781
  declare namespace objectUtil {
709
782
  export type MergeShapes<U, V> = {
@@ -725,7 +798,7 @@ declare namespace objectUtil {
725
798
  }>;
726
799
  export const mergeShapes: <U, T>(first: U, second: T) => T & U;
727
800
  export type extendShape<A, B> = flatten<Omit<A, keyof B> & B>;
728
- export {};
801
+ export { };
729
802
  }
730
803
  declare const ZodParsedType: {
731
804
  function: "function";
@@ -968,7 +1041,7 @@ declare namespace enumUtil {
968
1041
  type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
969
1042
  type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
970
1043
  export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
971
- export {};
1044
+ export { };
972
1045
  }
973
1046
 
974
1047
  declare namespace errorUtil {
@@ -1737,6 +1810,7 @@ declare const partialConfigSchema: ZodObject<{
1737
1810
  }[] | undefined;
1738
1811
  }>], ZodUnknown>, ZodType<FRCallback, ZodTypeDef, FRCallback>>>>;
1739
1812
  clientId: ZodOptional<ZodOptional<ZodString>>;
1813
+ logLevel: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"error">, ZodLiteral<"warn">, ZodLiteral<"info">, ZodLiteral<"debug">]>>>;
1740
1814
  middleware: ZodOptional<ZodOptional<ZodArray<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>, "many">>>;
1741
1815
  realmPath: ZodOptional<ZodString>;
1742
1816
  redirectUri: ZodOptional<ZodOptional<ZodString>>;
@@ -1850,6 +1924,7 @@ declare const partialConfigSchema: ZodObject<{
1850
1924
  }[] | undefined;
1851
1925
  }, ...args_1: unknown[]) => FRCallback) | undefined;
1852
1926
  clientId?: string | undefined;
1927
+ logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
1853
1928
  middleware?: ((...args: unknown[]) => unknown)[] | undefined;
1854
1929
  realmPath?: string | undefined;
1855
1930
  redirectUri?: string | undefined;
@@ -1895,6 +1970,7 @@ declare const partialConfigSchema: ZodObject<{
1895
1970
  }[] | undefined;
1896
1971
  }, ...args_1: unknown[]) => FRCallback) | undefined;
1897
1972
  clientId?: string | undefined;
1973
+ logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
1898
1974
  middleware?: ((...args: unknown[]) => unknown)[] | undefined;
1899
1975
  realmPath?: string | undefined;
1900
1976
  redirectUri?: string | undefined;
@@ -2033,6 +2109,7 @@ declare const partialStringsSchema: ZodObject<{
2033
2109
  customSecurityQuestion: ZodOptional<ZodString>;
2034
2110
  dontGetLockedOut: ZodOptional<ZodString>;
2035
2111
  doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
2112
+ deviceName: ZodOptional<ZodString>;
2036
2113
  ensurePasswordIsMoreThan: ZodOptional<ZodString>;
2037
2114
  ensurePasswordHasOne: ZodOptional<ZodString>;
2038
2115
  enterVerificationCode: ZodOptional<ZodString>;
@@ -2054,11 +2131,14 @@ declare const partialStringsSchema: ZodObject<{
2054
2131
  minimumNumberOfUppercase: ZodOptional<ZodString>;
2055
2132
  minimumNumberOfSymbols: ZodOptional<ZodString>;
2056
2133
  nameCallback: ZodOptional<ZodString>;
2134
+ nameYourDevice: ZodOptional<ZodString>;
2057
2135
  next: ZodOptional<ZodString>;
2058
2136
  nextButton: ZodOptional<ZodString>;
2059
2137
  notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
2060
2138
  noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
2139
+ useOneOfTheseCodes: ZodOptional<ZodString>;
2061
2140
  onMobileOpenInAuthenticator: ZodOptional<ZodString>;
2141
+ optionallyNameDevice: ZodOptional<ZodString>;
2062
2142
  passwordCallback: ZodOptional<ZodString>;
2063
2143
  passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
2064
2144
  passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
@@ -2087,6 +2167,8 @@ declare const partialStringsSchema: ZodObject<{
2087
2167
  shouldContainALowercase: ZodOptional<ZodString>;
2088
2168
  shouldContainASymbol: ZodOptional<ZodString>;
2089
2169
  showPassword: ZodOptional<ZodString>;
2170
+ signalsEvaluation: ZodOptional<ZodString>;
2171
+ skipButton: ZodOptional<ZodString>;
2090
2172
  sn: ZodOptional<ZodString>;
2091
2173
  submit: ZodOptional<ZodString>;
2092
2174
  submitButton: ZodOptional<ZodString>;
@@ -2109,6 +2191,7 @@ declare const partialStringsSchema: ZodObject<{
2109
2191
  validatedCreateUsernameCallback: ZodOptional<ZodString>;
2110
2192
  valueRequirements: ZodOptional<ZodString>;
2111
2193
  verifyYourIdentity: ZodOptional<ZodString>;
2194
+ yourDevice: ZodOptional<ZodString>;
2112
2195
  yourMultiFactorAuthIsEnabled: ZodOptional<ZodString>;
2113
2196
  yourRecoveryCodesToAccessAccountForLostDevice: ZodOptional<ZodString>;
2114
2197
  }, "strict", ZodTypeAny, {
@@ -2131,6 +2214,7 @@ declare const partialStringsSchema: ZodObject<{
2131
2214
  customSecurityQuestion?: string | undefined;
2132
2215
  dontGetLockedOut?: string | undefined;
2133
2216
  doesNotMeetMinimumCharacterLength?: string | undefined;
2217
+ deviceName?: string | undefined;
2134
2218
  ensurePasswordIsMoreThan?: string | undefined;
2135
2219
  ensurePasswordHasOne?: string | undefined;
2136
2220
  enterVerificationCode?: string | undefined;
@@ -2152,11 +2236,14 @@ declare const partialStringsSchema: ZodObject<{
2152
2236
  minimumNumberOfUppercase?: string | undefined;
2153
2237
  minimumNumberOfSymbols?: string | undefined;
2154
2238
  nameCallback?: string | undefined;
2239
+ nameYourDevice?: string | undefined;
2155
2240
  next?: string | undefined;
2156
2241
  nextButton?: string | undefined;
2157
2242
  notToExceedMaximumCharacterLength?: string | undefined;
2158
2243
  noLessThanMinimumCharacterLength?: string | undefined;
2244
+ useOneOfTheseCodes?: string | undefined;
2159
2245
  onMobileOpenInAuthenticator?: string | undefined;
2246
+ optionallyNameDevice?: string | undefined;
2160
2247
  passwordCallback?: string | undefined;
2161
2248
  passwordCannotContainCommonPasswords?: string | undefined;
2162
2249
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2185,6 +2272,8 @@ declare const partialStringsSchema: ZodObject<{
2185
2272
  shouldContainALowercase?: string | undefined;
2186
2273
  shouldContainASymbol?: string | undefined;
2187
2274
  showPassword?: string | undefined;
2275
+ signalsEvaluation?: string | undefined;
2276
+ skipButton?: string | undefined;
2188
2277
  sn?: string | undefined;
2189
2278
  submit?: string | undefined;
2190
2279
  submitButton?: string | undefined;
@@ -2207,6 +2296,7 @@ declare const partialStringsSchema: ZodObject<{
2207
2296
  validatedCreateUsernameCallback?: string | undefined;
2208
2297
  valueRequirements?: string | undefined;
2209
2298
  verifyYourIdentity?: string | undefined;
2299
+ yourDevice?: string | undefined;
2210
2300
  yourMultiFactorAuthIsEnabled?: string | undefined;
2211
2301
  yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
2212
2302
  }, {
@@ -2229,6 +2319,7 @@ declare const partialStringsSchema: ZodObject<{
2229
2319
  customSecurityQuestion?: string | undefined;
2230
2320
  dontGetLockedOut?: string | undefined;
2231
2321
  doesNotMeetMinimumCharacterLength?: string | undefined;
2322
+ deviceName?: string | undefined;
2232
2323
  ensurePasswordIsMoreThan?: string | undefined;
2233
2324
  ensurePasswordHasOne?: string | undefined;
2234
2325
  enterVerificationCode?: string | undefined;
@@ -2250,11 +2341,14 @@ declare const partialStringsSchema: ZodObject<{
2250
2341
  minimumNumberOfUppercase?: string | undefined;
2251
2342
  minimumNumberOfSymbols?: string | undefined;
2252
2343
  nameCallback?: string | undefined;
2344
+ nameYourDevice?: string | undefined;
2253
2345
  next?: string | undefined;
2254
2346
  nextButton?: string | undefined;
2255
2347
  notToExceedMaximumCharacterLength?: string | undefined;
2256
2348
  noLessThanMinimumCharacterLength?: string | undefined;
2349
+ useOneOfTheseCodes?: string | undefined;
2257
2350
  onMobileOpenInAuthenticator?: string | undefined;
2351
+ optionallyNameDevice?: string | undefined;
2258
2352
  passwordCallback?: string | undefined;
2259
2353
  passwordCannotContainCommonPasswords?: string | undefined;
2260
2354
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2283,6 +2377,8 @@ declare const partialStringsSchema: ZodObject<{
2283
2377
  shouldContainALowercase?: string | undefined;
2284
2378
  shouldContainASymbol?: string | undefined;
2285
2379
  showPassword?: string | undefined;
2380
+ signalsEvaluation?: string | undefined;
2381
+ skipButton?: string | undefined;
2286
2382
  sn?: string | undefined;
2287
2383
  submit?: string | undefined;
2288
2384
  submitButton?: string | undefined;
@@ -2305,6 +2401,7 @@ declare const partialStringsSchema: ZodObject<{
2305
2401
  validatedCreateUsernameCallback?: string | undefined;
2306
2402
  valueRequirements?: string | undefined;
2307
2403
  verifyYourIdentity?: string | undefined;
2404
+ yourDevice?: string | undefined;
2308
2405
  yourMultiFactorAuthIsEnabled?: string | undefined;
2309
2406
  yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
2310
2407
  }>;
@@ -2428,6 +2525,12 @@ declare const api: {
2428
2525
  user: UserStoreValue$1;
2429
2526
  } | undefined) => void) | undefined) => Unsubscriber;
2430
2527
  };
2528
+ protect: {
2529
+ start: typeof PIProtect.start;
2530
+ getData: typeof PIProtect.getData;
2531
+ pauseBehavioralData: typeof PIProtect.pauseBehavioralData;
2532
+ resumeBehavioralData: typeof PIProtect.resumeBehavioralData;
2533
+ };
2431
2534
  request: typeof HttpClient.request;
2432
2535
  user: {
2433
2536
  info(): {
@@ -2445,6 +2548,12 @@ type ConfigurationApi = ReturnType<typeof api.configuration>;
2445
2548
  type JourneyApi = ReturnType<typeof api.journey>;
2446
2549
  type UserInfoApi = ReturnType<typeof api.user.info>;
2447
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
+ };
2448
2557
  type JourneyOptions = JourneyOptions$1;
2449
2558
  type JourneyOptionsChange = JourneyOptionsChange$1;
2450
2559
  type JourneyOptionsStart = JourneyOptionsStart$1;
@@ -2456,4 +2565,4 @@ type ConfigOptions = ConfigOptions$1;
2456
2565
  type OAuth2Tokens = OAuth2Tokens$1;
2457
2566
  type Step = Step$1;
2458
2567
 
2459
- 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 };