@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/index.d.ts CHANGED
@@ -1,16 +1,75 @@
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
+ interface Identifiers {
2
+ [key: string]: string;
3
+ }
4
+ /**
5
+ * InitParams - Interface for the init method parameters
6
+ * envId: string - Required; the environment id from your PingOne tenant
7
+ * * - All other parameters are optional
8
+ */
9
+ interface InitParams {
10
+ envId: string;
11
+ consoleLogEnabled?: boolean;
12
+ waitForWindowLoad?: boolean;
13
+ hubUrl?: string;
14
+ disableHub?: boolean;
15
+ deviceAttributesToIgnore?: string[];
16
+ lazyMetadata?: boolean;
17
+ behavioralDataCollection?: boolean;
18
+ disableTags?: boolean;
19
+ externalIdentifiers?: Identifiers;
20
+ deviceKeyRsyncIntervals?: number;
21
+ enableTrust?: boolean;
22
+ }
23
+ declare global {
24
+ interface Window {
25
+ _pingOneSignals: {
26
+ init: (initParams?: InitParams) => Promise<void>;
27
+ getData: () => Promise<string>;
28
+ pauseBehavioralData: () => void;
29
+ resumeBehavioralData: () => void;
30
+ };
31
+ }
32
+ }
33
+ /**
34
+ * @class PIProtect - Class to interact with the underlying PingOne Signals SDK
35
+ */
36
+ declare abstract class PIProtect {
37
+ /**
38
+ * @method getData - Method to get the device data
39
+ * @returns {Promise<string>} - Returns the device data
40
+ */
41
+ static getData(): Promise<string>;
42
+ /**
43
+ * @method start - Method to initialize and start the PingOne Signals SDK
44
+ * @param {InitParams} options - The init parameters
45
+ * @returns {Promise<void>} - Returns a promise
46
+ */
47
+ static start(options: InitParams): Promise<void>;
48
+ /**
49
+ * @method pauseBehavioralData - Method to pause the behavioral data collection
50
+ * @returns {void}
51
+ * @description Pause the behavioral data collection only; device profile data will still be collected
52
+ */
53
+ static pauseBehavioralData(): void;
54
+ /**
55
+ * @method resumeBehavioralData - Method to resume the behavioral data collection
56
+ * @returns {void}
57
+ * @description Resume the behavioral data collection
58
+ */
59
+ static resumeBehavioralData(): void;
12
60
  }
13
61
 
62
+ interface StringDict<T> {
63
+ [name: string]: T;
64
+ }
65
+ interface Tokens {
66
+ accessToken: string;
67
+ idToken?: string;
68
+ refreshToken?: string;
69
+ tokenExpiry?: number;
70
+ }
71
+ //# sourceMappingURL=interfaces.d.ts.map
72
+
14
73
  /**
15
74
  * Types of callbacks directly supported by the SDK.
16
75
  */
@@ -25,6 +84,8 @@ declare enum CallbackType {
25
84
  NameCallback = "NameCallback",
26
85
  NumberAttributeInputCallback = "NumberAttributeInputCallback",
27
86
  PasswordCallback = "PasswordCallback",
87
+ PingOneProtectEvaluationCallback = "PingOneProtectEvaluationCallback",
88
+ PingOneProtectInitializeCallback = "PingOneProtectInitializeCallback",
28
89
  PollingWaitCallback = "PollingWaitCallback",
29
90
  ReCaptchaCallback = "ReCaptchaCallback",
30
91
  RedirectCallback = "RedirectCallback",
@@ -37,16 +98,7 @@ declare enum CallbackType {
37
98
  ValidatedCreatePasswordCallback = "ValidatedCreatePasswordCallback",
38
99
  ValidatedCreateUsernameCallback = "ValidatedCreateUsernameCallback"
39
100
  }
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
- }
101
+ //# sourceMappingURL=enums.d.ts.map
50
102
 
51
103
  /**
52
104
  * Represents the authentication tree API payload schema.
@@ -75,13 +127,6 @@ interface StepDetail {
75
127
  failureUrl?: string;
76
128
  result?: boolean;
77
129
  }
78
- /**
79
- * Represents configuration overrides used when requesting the next
80
- * step in an authentication tree.
81
- */
82
- interface StepOptions extends ConfigOptions {
83
- query?: StringDict<string>;
84
- }
85
130
  /**
86
131
  * Represents failed policies for a matching property.
87
132
  */
@@ -122,6 +167,7 @@ interface NameValue {
122
167
  name: string;
123
168
  value: unknown;
124
169
  }
170
+ //# sourceMappingURL=interfaces.d.ts.map
125
171
 
126
172
  /**
127
173
  * Base class for authentication tree callback wrappers.
@@ -166,8 +212,23 @@ declare class FRCallback {
166
212
  getOutputByName<T>(name: string, defaultValue: T): T;
167
213
  private getArrayElement;
168
214
  }
215
+ //# sourceMappingURL=index.d.ts.map
169
216
 
170
- type FRCallbackFactory = (callback: Callback) => FRCallback;
217
+ type FRCallbackFactory = (callback: Callback) => FRCallback;//# sourceMappingURL=factory.d.ts.map
218
+
219
+ declare enum ActionTypes {
220
+ Authenticate = "AUTHENTICATE",
221
+ Authorize = "AUTHORIZE",
222
+ EndSession = "END_SESSION",
223
+ Logout = "LOGOUT",
224
+ ExchangeToken = "EXCHANGE_TOKEN",
225
+ RefreshToken = "REFRESH_TOKEN",
226
+ ResumeAuthenticate = "RESUME_AUTHENTICATE",
227
+ RevokeToken = "REVOKE_TOKEN",
228
+ StartAuthenticate = "START_AUTHENTICATE",
229
+ UserInfo = "USER_INFO",
230
+ WellKnown = "WELL_KNOWN"
231
+ }
171
232
 
172
233
  type LogLevel = 'none' | 'info' | 'warn' | 'error' | 'debug';
173
234
  interface Action {
@@ -200,6 +261,8 @@ interface ConfigOptions {
200
261
  oauthThreshold?: number;
201
262
  logLevel?: LogLevel;
202
263
  logger?: LoggerFunctions;
264
+ platformHeader?: boolean;
265
+ prefix?: string;
203
266
  }
204
267
  /**
205
268
  * Optional configuration for custom paths for actions
@@ -234,6 +297,13 @@ interface TokenStoreObject {
234
297
  set: (clientId: string, token: Tokens) => Promise<void>;
235
298
  remove: (clientId: string) => Promise<void>;
236
299
  }
300
+ /**
301
+ * Represents configuration overrides used when requesting the next
302
+ * step in an authentication tree.
303
+ */
304
+ interface StepOptions extends ConfigOptions {
305
+ query?: StringDict<string>;
306
+ }//# sourceMappingURL=interfaces.d.ts.map
237
307
 
238
308
  /**
239
309
  * Types of steps returned by the authentication tree.
@@ -243,6 +313,7 @@ declare enum StepType {
243
313
  LoginSuccess = "LoginSuccess",
244
314
  Step = "Step"
245
315
  }
316
+ //# sourceMappingURL=enums.d.ts.map
246
317
 
247
318
  /**
248
319
  * Base interface for all types of authentication step responses.
@@ -256,6 +327,7 @@ interface AuthResponse {
256
327
  interface FailureDetail {
257
328
  failureUrl?: string;
258
329
  }
330
+ //# sourceMappingURL=interfaces.d.ts.map
259
331
 
260
332
  /**
261
333
  * Represents a single step of an authentication tree.
@@ -307,7 +379,7 @@ declare class FRStep implements AuthResponse {
307
379
  */
308
380
  getStage(): string | undefined;
309
381
  private convertCallbacks;
310
- }
382
+ }//# sourceMappingURL=fr-step.d.ts.map
311
383
 
312
384
  declare type HandleStep = (step: FRStep) => Promise<FRStep>;
313
385
  /**
@@ -364,6 +436,7 @@ declare abstract class HttpClient {
364
436
  private static stepIterator;
365
437
  private static _request;
366
438
  }
439
+ //# sourceMappingURL=index.d.ts.map
367
440
 
368
441
  declare function noop(): void;
369
442
 
@@ -417,7 +490,7 @@ declare class SvelteComponent {
417
490
 
418
491
  declare type Props = Record<string, any>;
419
492
  interface ComponentConstructorOptions<Props extends Record<string, any> = Record<string, any>> {
420
- target: Element | Document | ShadowRoot;
493
+ target: Element | ShadowRoot;
421
494
  anchor?: Element;
422
495
  props?: Props;
423
496
  context?: Map<any, any>;
@@ -527,9 +600,6 @@ declare type Subscriber<T> = (value: T) => void;
527
600
  /** Unsubscribes from value updates. */
528
601
  declare type Unsubscriber = () => void;
529
602
 
530
- declare module '*.svelte' {
531
- export { SvelteComponentDev as default } from 'svelte/internal';
532
- }
533
603
 
534
604
  interface ComponentStoreValue {
535
605
  lastAction: 'close' | 'open' | 'mount' | null;
@@ -547,6 +617,16 @@ interface ComponentStoreValue {
547
617
  type: 'inline' | 'modal' | null;
548
618
  }
549
619
 
620
+ /**
621
+ * Tokens returned after successful authentication.
622
+ */
623
+ interface OAuth2Tokens {
624
+ accessToken: string;
625
+ idToken?: string;
626
+ refreshToken?: string;
627
+ tokenExpiry?: number;
628
+ }//# sourceMappingURL=interfaces.d.ts.map
629
+
550
630
  interface MessageCreator {
551
631
  [key: string]: (propertyName: string, params?: {
552
632
  [key: string]: unknown;
@@ -556,72 +636,65 @@ interface ProcessedPropertyError {
556
636
  detail: FailedPolicyRequirement;
557
637
  messages: string[];
558
638
  }
639
+ //# sourceMappingURL=interfaces.d.ts.map
559
640
 
560
- declare class FRLoginFailure implements AuthResponse {
641
+ declare class FRLoginSuccess implements AuthResponse {
561
642
  payload: Step;
562
643
  /**
563
644
  * The type of step.
564
645
  */
565
- readonly type = StepType.LoginFailure;
646
+ readonly type = StepType.LoginSuccess;
566
647
  /**
567
648
  * @param payload The raw payload returned by OpenAM
568
649
  */
569
650
  constructor(payload: Step);
570
651
  /**
571
- * Gets the error code.
572
- */
573
- getCode(): number;
574
- /**
575
- * Gets the failure details.
576
- */
577
- getDetail(): FailureDetail | undefined;
578
- /**
579
- * Gets the failure message.
652
+ * Gets the step's realm.
580
653
  */
581
- getMessage(): string | undefined;
654
+ getRealm(): string | undefined;
582
655
  /**
583
- * Gets processed failure message.
656
+ * Gets the step's session token.
584
657
  */
585
- getProcessedMessage(messageCreator?: MessageCreator): ProcessedPropertyError[];
658
+ getSessionToken(): string | undefined;
586
659
  /**
587
- * Gets the failure reason.
660
+ * Gets the step's success URL.
588
661
  */
589
- getReason(): string | undefined;
662
+ getSuccessUrl(): string | undefined;
590
663
  }
664
+ //# sourceMappingURL=fr-login-success.d.ts.map
591
665
 
592
- declare class FRLoginSuccess implements AuthResponse {
666
+ declare class FRLoginFailure implements AuthResponse {
593
667
  payload: Step;
594
668
  /**
595
669
  * The type of step.
596
670
  */
597
- readonly type = StepType.LoginSuccess;
671
+ readonly type = StepType.LoginFailure;
598
672
  /**
599
673
  * @param payload The raw payload returned by OpenAM
600
674
  */
601
675
  constructor(payload: Step);
602
676
  /**
603
- * Gets the step's realm.
677
+ * Gets the error code.
604
678
  */
605
- getRealm(): string | undefined;
679
+ getCode(): number;
606
680
  /**
607
- * Gets the step's session token.
681
+ * Gets the failure details.
608
682
  */
609
- getSessionToken(): string | undefined;
683
+ getDetail(): FailureDetail | undefined;
610
684
  /**
611
- * Gets the step's success URL.
685
+ * Gets the failure message.
612
686
  */
613
- getSuccessUrl(): string | undefined;
614
- }
615
-
616
- /**
617
- * Tokens returned after successful authentication.
618
- */
619
- interface OAuth2Tokens {
620
- accessToken: string;
621
- idToken?: string;
622
- refreshToken?: string;
623
- tokenExpiry?: number;
687
+ getMessage(): string | undefined;
688
+ /**
689
+ * Gets processed failure message.
690
+ */
691
+ getProcessedMessage(messageCreator?: MessageCreator): ProcessedPropertyError[];
692
+ /**
693
+ * Gets the failure reason.
694
+ */
695
+ getReason(): string | undefined;
624
696
  }
697
+ //# sourceMappingURL=fr-login-failure.d.ts.map
625
698
 
626
699
  type Maybe<T> = T | null | undefined;
627
700
 
@@ -713,7 +786,7 @@ declare namespace util {
713
786
  export const isInteger: NumberConstructor["isInteger"];
714
787
  export function joinValues<T extends any[]>(array: T, separator?: string): string;
715
788
  export const jsonStringifyReplacer: (_: string, value: any) => any;
716
- export {};
789
+ export { };
717
790
  }
718
791
  declare namespace objectUtil {
719
792
  export type MergeShapes<U, V> = {
@@ -735,7 +808,7 @@ declare namespace objectUtil {
735
808
  }>;
736
809
  export const mergeShapes: <U, T>(first: U, second: T) => T & U;
737
810
  export type extendShape<A, B> = flatten<Omit<A, keyof B> & B>;
738
- export {};
811
+ export { };
739
812
  }
740
813
  declare const ZodParsedType: {
741
814
  function: "function";
@@ -978,7 +1051,7 @@ declare namespace enumUtil {
978
1051
  type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
979
1052
  type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
980
1053
  export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
981
- export {};
1054
+ export { };
982
1055
  }
983
1056
 
984
1057
  declare namespace errorUtil {
@@ -1747,6 +1820,7 @@ declare const partialConfigSchema: ZodObject<{
1747
1820
  }[] | undefined;
1748
1821
  }>], ZodUnknown>, ZodType<FRCallback, ZodTypeDef, FRCallback>>>>;
1749
1822
  clientId: ZodOptional<ZodOptional<ZodString>>;
1823
+ logLevel: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"none">, ZodLiteral<"error">, ZodLiteral<"warn">, ZodLiteral<"info">, ZodLiteral<"debug">]>>>;
1750
1824
  middleware: ZodOptional<ZodOptional<ZodArray<ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>, "many">>>;
1751
1825
  realmPath: ZodOptional<ZodString>;
1752
1826
  redirectUri: ZodOptional<ZodOptional<ZodString>>;
@@ -1860,6 +1934,7 @@ declare const partialConfigSchema: ZodObject<{
1860
1934
  }[] | undefined;
1861
1935
  }, ...args_1: unknown[]) => FRCallback) | undefined;
1862
1936
  clientId?: string | undefined;
1937
+ logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
1863
1938
  middleware?: ((...args: unknown[]) => unknown)[] | undefined;
1864
1939
  realmPath?: string | undefined;
1865
1940
  redirectUri?: string | undefined;
@@ -1905,6 +1980,7 @@ declare const partialConfigSchema: ZodObject<{
1905
1980
  }[] | undefined;
1906
1981
  }, ...args_1: unknown[]) => FRCallback) | undefined;
1907
1982
  clientId?: string | undefined;
1983
+ logLevel?: "none" | "error" | "info" | "warn" | "debug" | undefined;
1908
1984
  middleware?: ((...args: unknown[]) => unknown)[] | undefined;
1909
1985
  realmPath?: string | undefined;
1910
1986
  redirectUri?: string | undefined;
@@ -2043,6 +2119,7 @@ declare const partialStringsSchema: ZodObject<{
2043
2119
  customSecurityQuestion: ZodOptional<ZodString>;
2044
2120
  dontGetLockedOut: ZodOptional<ZodString>;
2045
2121
  doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
2122
+ deviceName: ZodOptional<ZodString>;
2046
2123
  ensurePasswordIsMoreThan: ZodOptional<ZodString>;
2047
2124
  ensurePasswordHasOne: ZodOptional<ZodString>;
2048
2125
  enterVerificationCode: ZodOptional<ZodString>;
@@ -2064,11 +2141,14 @@ declare const partialStringsSchema: ZodObject<{
2064
2141
  minimumNumberOfUppercase: ZodOptional<ZodString>;
2065
2142
  minimumNumberOfSymbols: ZodOptional<ZodString>;
2066
2143
  nameCallback: ZodOptional<ZodString>;
2144
+ nameYourDevice: ZodOptional<ZodString>;
2067
2145
  next: ZodOptional<ZodString>;
2068
2146
  nextButton: ZodOptional<ZodString>;
2069
2147
  notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
2070
2148
  noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
2149
+ useOneOfTheseCodes: ZodOptional<ZodString>;
2071
2150
  onMobileOpenInAuthenticator: ZodOptional<ZodString>;
2151
+ optionallyNameDevice: ZodOptional<ZodString>;
2072
2152
  passwordCallback: ZodOptional<ZodString>;
2073
2153
  passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
2074
2154
  passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
@@ -2097,6 +2177,8 @@ declare const partialStringsSchema: ZodObject<{
2097
2177
  shouldContainALowercase: ZodOptional<ZodString>;
2098
2178
  shouldContainASymbol: ZodOptional<ZodString>;
2099
2179
  showPassword: ZodOptional<ZodString>;
2180
+ signalsEvaluation: ZodOptional<ZodString>;
2181
+ skipButton: ZodOptional<ZodString>;
2100
2182
  sn: ZodOptional<ZodString>;
2101
2183
  submit: ZodOptional<ZodString>;
2102
2184
  submitButton: ZodOptional<ZodString>;
@@ -2119,6 +2201,7 @@ declare const partialStringsSchema: ZodObject<{
2119
2201
  validatedCreateUsernameCallback: ZodOptional<ZodString>;
2120
2202
  valueRequirements: ZodOptional<ZodString>;
2121
2203
  verifyYourIdentity: ZodOptional<ZodString>;
2204
+ yourDevice: ZodOptional<ZodString>;
2122
2205
  yourMultiFactorAuthIsEnabled: ZodOptional<ZodString>;
2123
2206
  yourRecoveryCodesToAccessAccountForLostDevice: ZodOptional<ZodString>;
2124
2207
  }, "strict", ZodTypeAny, {
@@ -2141,6 +2224,7 @@ declare const partialStringsSchema: ZodObject<{
2141
2224
  customSecurityQuestion?: string | undefined;
2142
2225
  dontGetLockedOut?: string | undefined;
2143
2226
  doesNotMeetMinimumCharacterLength?: string | undefined;
2227
+ deviceName?: string | undefined;
2144
2228
  ensurePasswordIsMoreThan?: string | undefined;
2145
2229
  ensurePasswordHasOne?: string | undefined;
2146
2230
  enterVerificationCode?: string | undefined;
@@ -2162,11 +2246,14 @@ declare const partialStringsSchema: ZodObject<{
2162
2246
  minimumNumberOfUppercase?: string | undefined;
2163
2247
  minimumNumberOfSymbols?: string | undefined;
2164
2248
  nameCallback?: string | undefined;
2249
+ nameYourDevice?: string | undefined;
2165
2250
  next?: string | undefined;
2166
2251
  nextButton?: string | undefined;
2167
2252
  notToExceedMaximumCharacterLength?: string | undefined;
2168
2253
  noLessThanMinimumCharacterLength?: string | undefined;
2254
+ useOneOfTheseCodes?: string | undefined;
2169
2255
  onMobileOpenInAuthenticator?: string | undefined;
2256
+ optionallyNameDevice?: string | undefined;
2170
2257
  passwordCallback?: string | undefined;
2171
2258
  passwordCannotContainCommonPasswords?: string | undefined;
2172
2259
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2195,6 +2282,8 @@ declare const partialStringsSchema: ZodObject<{
2195
2282
  shouldContainALowercase?: string | undefined;
2196
2283
  shouldContainASymbol?: string | undefined;
2197
2284
  showPassword?: string | undefined;
2285
+ signalsEvaluation?: string | undefined;
2286
+ skipButton?: string | undefined;
2198
2287
  sn?: string | undefined;
2199
2288
  submit?: string | undefined;
2200
2289
  submitButton?: string | undefined;
@@ -2217,6 +2306,7 @@ declare const partialStringsSchema: ZodObject<{
2217
2306
  validatedCreateUsernameCallback?: string | undefined;
2218
2307
  valueRequirements?: string | undefined;
2219
2308
  verifyYourIdentity?: string | undefined;
2309
+ yourDevice?: string | undefined;
2220
2310
  yourMultiFactorAuthIsEnabled?: string | undefined;
2221
2311
  yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
2222
2312
  }, {
@@ -2239,6 +2329,7 @@ declare const partialStringsSchema: ZodObject<{
2239
2329
  customSecurityQuestion?: string | undefined;
2240
2330
  dontGetLockedOut?: string | undefined;
2241
2331
  doesNotMeetMinimumCharacterLength?: string | undefined;
2332
+ deviceName?: string | undefined;
2242
2333
  ensurePasswordIsMoreThan?: string | undefined;
2243
2334
  ensurePasswordHasOne?: string | undefined;
2244
2335
  enterVerificationCode?: string | undefined;
@@ -2260,11 +2351,14 @@ declare const partialStringsSchema: ZodObject<{
2260
2351
  minimumNumberOfUppercase?: string | undefined;
2261
2352
  minimumNumberOfSymbols?: string | undefined;
2262
2353
  nameCallback?: string | undefined;
2354
+ nameYourDevice?: string | undefined;
2263
2355
  next?: string | undefined;
2264
2356
  nextButton?: string | undefined;
2265
2357
  notToExceedMaximumCharacterLength?: string | undefined;
2266
2358
  noLessThanMinimumCharacterLength?: string | undefined;
2359
+ useOneOfTheseCodes?: string | undefined;
2267
2360
  onMobileOpenInAuthenticator?: string | undefined;
2361
+ optionallyNameDevice?: string | undefined;
2268
2362
  passwordCallback?: string | undefined;
2269
2363
  passwordCannotContainCommonPasswords?: string | undefined;
2270
2364
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2293,6 +2387,8 @@ declare const partialStringsSchema: ZodObject<{
2293
2387
  shouldContainALowercase?: string | undefined;
2294
2388
  shouldContainASymbol?: string | undefined;
2295
2389
  showPassword?: string | undefined;
2390
+ signalsEvaluation?: string | undefined;
2391
+ skipButton?: string | undefined;
2296
2392
  sn?: string | undefined;
2297
2393
  submit?: string | undefined;
2298
2394
  submitButton?: string | undefined;
@@ -2315,6 +2411,7 @@ declare const partialStringsSchema: ZodObject<{
2315
2411
  validatedCreateUsernameCallback?: string | undefined;
2316
2412
  valueRequirements?: string | undefined;
2317
2413
  verifyYourIdentity?: string | undefined;
2414
+ yourDevice?: string | undefined;
2318
2415
  yourMultiFactorAuthIsEnabled?: string | undefined;
2319
2416
  yourRecoveryCodesToAccessAccountForLostDevice?: string | undefined;
2320
2417
  }>;
@@ -2444,6 +2541,12 @@ declare const user: {
2444
2541
  subscribe: (this: void, run: Subscriber<OAuthTokenStoreValue>, invalidate?: ((value?: OAuthTokenStoreValue | undefined) => void) | undefined) => Unsubscriber;
2445
2542
  };
2446
2543
  };
2544
+ declare const protect: {
2545
+ start: typeof PIProtect.start;
2546
+ getData: typeof PIProtect.getData;
2547
+ pauseBehavioralData: typeof PIProtect.pauseBehavioralData;
2548
+ resumeBehavioralData: typeof PIProtect.resumeBehavioralData;
2549
+ };
2447
2550
  declare const __propDef: {
2448
2551
  props: {
2449
2552
  type?: "inline" | "modal" | undefined;
@@ -2459,4 +2562,4 @@ type IndexSlots = typeof __propDef.slots;
2459
2562
  declare class Index extends SvelteComponentTyped<IndexProps, IndexEvents, IndexSlots> {
2460
2563
  }
2461
2564
 
2462
- export { IndexEvents, IndexProps, IndexSlots, component, configuration, Index as default, journey, request, user };
2565
+ export { type IndexEvents, type IndexProps, type IndexSlots, component, configuration, Index as default, journey, protect, request, user };