@forgerock/login-widget 1.1.0 → 1.2.0-beta.10

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/types.d.ts CHANGED
@@ -1,44 +1,3 @@
1
- /**
2
- * An event-handling function.
3
- */
4
- declare type Listener = (e: FREvent) => void;
5
- interface FREvent {
6
- type: string;
7
- }
8
-
9
- /**
10
- * Event dispatcher for subscribing and publishing categorized events.
11
- */
12
- declare class Dispatcher {
13
- private callbacks;
14
- /**
15
- * Subscribes to an event type.
16
- *
17
- * @param type The event type
18
- * @param listener The function to subscribe to events of this type
19
- */
20
- addEventListener(type: string, listener: Listener): void;
21
- /**
22
- * Unsubscribes from an event type.
23
- *
24
- * @param type The event type
25
- * @param listener The function to unsubscribe from events of this type
26
- */
27
- removeEventListener(type: string, listener: Listener): void;
28
- /**
29
- * Unsubscribes all listener functions to a single event type or all event types.
30
- *
31
- * @param type The event type, or all event types if not specified
32
- */
33
- clearEventListeners(type?: string): void;
34
- /**
35
- * Publishes an event.
36
- *
37
- * @param event The event object to publish
38
- */
39
- dispatchEvent<T extends FREvent>(event: T): void;
40
- }
41
-
42
1
  declare enum ActionTypes {
43
2
  Authenticate = "AUTHENTICATE",
44
3
  Authorize = "AUTHORIZE",
@@ -52,16 +11,6 @@ declare enum ActionTypes {
52
11
  UserInfo = "USER_INFO"
53
12
  }
54
13
 
55
- interface StringDict<T> {
56
- [name: string]: T;
57
- }
58
- interface Tokens {
59
- accessToken: string;
60
- idToken?: string;
61
- refreshToken?: string;
62
- tokenExpiry?: number;
63
- }
64
-
65
14
  /**
66
15
  * Types of callbacks directly supported by the SDK.
67
16
  */
@@ -89,6 +38,16 @@ declare enum CallbackType {
89
38
  ValidatedCreateUsernameCallback = "ValidatedCreateUsernameCallback"
90
39
  }
91
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
+ }
50
+
92
51
  /**
93
52
  * Represents the authentication tree API payload schema.
94
53
  */
@@ -176,7 +135,7 @@ declare class FRCallback {
176
135
  /**
177
136
  * Gets the name of this callback type.
178
137
  */
179
- getType(): string;
138
+ getType(): CallbackType;
180
139
  /**
181
140
  * Gets the value of the specified input element, or the first element if `selector` is not
182
141
  * provided.
@@ -208,12 +167,22 @@ declare class FRCallback {
208
167
  private getArrayElement;
209
168
  }
210
169
 
211
- declare type FRCallbackFactory = (callback: Callback) => FRCallback;
170
+ type FRCallbackFactory = (callback: Callback) => FRCallback;
212
171
 
172
+ type LogLevel = 'none' | 'info' | 'warn' | 'error' | 'debug';
213
173
  interface Action {
214
174
  type: ActionTypes;
215
175
  payload: any;
216
176
  }
177
+ /**
178
+ * Custom Logger for logger
179
+ */
180
+ interface LoggerFunctions<W = (...msgs: unknown[]) => void, E = (...msgs: unknown[]) => void, L = (...msgs: unknown[]) => void, I = (...msgs: unknown[]) => void> {
181
+ warn?: W;
182
+ error?: E;
183
+ log?: L;
184
+ info?: I;
185
+ }
217
186
  /**
218
187
  * Configuration options.
219
188
  */
@@ -225,11 +194,12 @@ interface ConfigOptions$1 {
225
194
  redirectUri?: string;
226
195
  scope?: string;
227
196
  serverConfig?: ServerConfig;
228
- support?: 'modern' | 'legacy' | undefined;
229
- tokenStore?: TokenStoreObject | 'indexedDB' | 'sessionStorage' | 'localStorage';
197
+ tokenStore?: TokenStoreObject | 'sessionStorage' | 'localStorage';
230
198
  tree?: string;
231
199
  type?: string;
232
200
  oauthThreshold?: number;
201
+ logLevel?: LogLevel;
202
+ logger?: LoggerFunctions;
233
203
  }
234
204
  /**
235
205
  * Optional configuration for custom paths for actions
@@ -243,7 +213,7 @@ interface CustomPathConfig {
243
213
  revoke?: string;
244
214
  sessions?: string;
245
215
  }
246
- declare type RequestMiddleware = (req: RequestObj, action: Action, next: () => RequestObj) => void;
216
+ type RequestMiddleware = (req: RequestObj, action: Action, next: () => RequestObj) => void;
247
217
  interface RequestObj {
248
218
  url: URL;
249
219
  init: RequestInit;
@@ -254,7 +224,7 @@ interface RequestObj {
254
224
  interface ServerConfig {
255
225
  baseUrl: string;
256
226
  paths?: CustomPathConfig;
257
- timeout: number;
227
+ timeout?: number;
258
228
  }
259
229
  /**
260
230
  * API for implementing a custom token store
@@ -359,7 +329,7 @@ interface HttpClientRequestOptions {
359
329
  /**
360
330
  * A function that determines whether a new token is required based on a HTTP response.
361
331
  */
362
- declare type RequiresNewTokenFn = (res: Response) => boolean;
332
+ type RequiresNewTokenFn = (res: Response) => boolean;
363
333
 
364
334
  /**
365
335
  * HTTP client that includes bearer token injection and refresh.
@@ -383,7 +353,7 @@ declare type RequiresNewTokenFn = (res: Response) => boolean;
383
353
  * });
384
354
  * ```
385
355
  */
386
- declare abstract class HttpClient extends Dispatcher {
356
+ declare abstract class HttpClient {
387
357
  /**
388
358
  * Makes a request using the specified options.
389
359
  *
@@ -447,7 +417,7 @@ declare class SvelteComponent {
447
417
 
448
418
  declare type Props = Record<string, any>;
449
419
  interface ComponentConstructorOptions<Props extends Record<string, any> = Record<string, any>> {
450
- target: Element | ShadowRoot;
420
+ target: Element | Document | ShadowRoot;
451
421
  anchor?: Element;
452
422
  props?: Props;
453
423
  context?: Map<any, any>;
@@ -673,6 +643,7 @@ interface JourneyStoreValue$1 {
673
643
  step: StepTypes;
674
644
  successful: boolean;
675
645
  response: Maybe<Step$1>;
646
+ recaptchaAction?: Maybe<string>;
676
647
  }
677
648
  interface StepMetadata {
678
649
  derived: {
@@ -681,6 +652,7 @@ interface StepMetadata {
681
652
  numOfCallbacks: number;
682
653
  numOfSelfSubmittableCbs: number;
683
654
  numOfUserInputCbs: number;
655
+ stageName?: string;
684
656
  };
685
657
  platform?: Record<string, unknown>;
686
658
  }
@@ -1062,6 +1034,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
1062
1034
  safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
1063
1035
  parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
1064
1036
  safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
1037
+ /** Alias of safeParseAsync */
1065
1038
  spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
1066
1039
  refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
1067
1040
  refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
@@ -1070,6 +1043,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
1070
1043
  _refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
1071
1044
  superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
1072
1045
  superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
1046
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
1073
1047
  constructor(def: Def);
1074
1048
  optional(): ZodOptional<this>;
1075
1049
  nullable(): ZodNullable<this>;
@@ -1089,6 +1063,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
1089
1063
  }) => Output): ZodCatch<this>;
1090
1064
  describe(description: string): this;
1091
1065
  pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
1066
+ readonly(): ZodReadonly<this>;
1092
1067
  isOptional(): boolean;
1093
1068
  isNullable(): boolean;
1094
1069
  }
@@ -1169,7 +1144,7 @@ interface ZodStringDef extends ZodTypeDef {
1169
1144
  }
1170
1145
  declare class ZodString extends ZodType<string, ZodStringDef> {
1171
1146
  _parse(input: ParseInput): ParseReturnType<string>;
1172
- protected _regex: (regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage | undefined) => ZodEffects<this, string, string>;
1147
+ protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
1173
1148
  _addCheck(check: ZodStringCheck): ZodString;
1174
1149
  email(message?: errorUtil.ErrMessage): ZodString;
1175
1150
  url(message?: errorUtil.ErrMessage): ZodString;
@@ -1197,10 +1172,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
1197
1172
  min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
1198
1173
  max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
1199
1174
  length(len: number, message?: errorUtil.ErrMessage): ZodString;
1200
- nonempty: (message?: errorUtil.ErrMessage | undefined) => ZodString;
1201
- trim: () => ZodString;
1202
- toLowerCase: () => ZodString;
1203
- toUpperCase: () => ZodString;
1175
+ /**
1176
+ * @deprecated Use z.string().min(1) instead.
1177
+ * @see {@link ZodString.min}
1178
+ */
1179
+ nonempty(message?: errorUtil.ErrMessage): ZodString;
1180
+ trim(): ZodString;
1181
+ toLowerCase(): ZodString;
1182
+ toUpperCase(): ZodString;
1204
1183
  get isDatetime(): boolean;
1205
1184
  get isEmail(): boolean;
1206
1185
  get isURL(): boolean;
@@ -1372,9 +1351,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1372
1351
  strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
1373
1352
  strip(): ZodObject<T, "strip", Catchall>;
1374
1353
  passthrough(): ZodObject<T, "passthrough", Catchall>;
1354
+ /**
1355
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1356
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
1357
+ */
1375
1358
  nonstrict: () => ZodObject<T, "passthrough", Catchall>;
1376
1359
  extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
1360
+ /**
1361
+ * @deprecated Use `.extend` instead
1362
+ * */
1377
1363
  augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, UnknownKeys, Catchall, objectOutputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>, objectInputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k]; }, Catchall, UnknownKeys>>;
1364
+ /**
1365
+ * Prior to zod@1.0.12 there was a bug in the
1366
+ * inferred type of merged objects. Please
1367
+ * upgrade if you are experiencing issues.
1368
+ */
1378
1369
  merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
1379
1370
  setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
1380
1371
  [k in Key]: Schema;
@@ -1386,6 +1377,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
1386
1377
  omit<Mask extends {
1387
1378
  [k in keyof T]?: true;
1388
1379
  }>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
1380
+ /**
1381
+ * @deprecated
1382
+ */
1389
1383
  deepPartial(): partialUtil.DeepPartial<this>;
1390
1384
  partial(): ZodObject<{
1391
1385
  [k in keyof T]: ZodOptional<T[k]>;
@@ -1544,7 +1538,7 @@ declare type TransformEffect<T> = {
1544
1538
  };
1545
1539
  declare type PreprocessEffect<T> = {
1546
1540
  type: "preprocess";
1547
- transform: (arg: T) => any;
1541
+ transform: (arg: T, ctx: RefinementCtx) => any;
1548
1542
  };
1549
1543
  declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
1550
1544
  interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
@@ -1557,7 +1551,7 @@ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input
1557
1551
  sourceType(): T;
1558
1552
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1559
1553
  static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
1560
- static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1554
+ static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1561
1555
  }
1562
1556
 
1563
1557
  interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
@@ -1638,6 +1632,18 @@ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends Zo
1638
1632
  _parse(input: ParseInput): ParseReturnType<any>;
1639
1633
  static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
1640
1634
  }
1635
+ declare type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
1636
+ readonly [Symbol.toStringTag]: string;
1637
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
1638
+ declare type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
1639
+ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1640
+ innerType: T;
1641
+ typeName: ZodFirstPartyTypeKind.ZodReadonly;
1642
+ }
1643
+ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]> {
1644
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1645
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
1646
+ }
1641
1647
  declare enum ZodFirstPartyTypeKind {
1642
1648
  ZodString = "ZodString",
1643
1649
  ZodNumber = "ZodNumber",
@@ -1673,7 +1679,8 @@ declare enum ZodFirstPartyTypeKind {
1673
1679
  ZodCatch = "ZodCatch",
1674
1680
  ZodPromise = "ZodPromise",
1675
1681
  ZodBranded = "ZodBranded",
1676
- ZodPipeline = "ZodPipeline"
1682
+ ZodPipeline = "ZodPipeline",
1683
+ ZodReadonly = "ZodReadonly"
1677
1684
  }
1678
1685
 
1679
1686
  declare const partialConfigSchema: ZodObject<{
@@ -1731,55 +1738,55 @@ declare const partialConfigSchema: ZodObject<{
1731
1738
  serverConfig: ZodOptional<ZodObject<{
1732
1739
  baseUrl: ZodString;
1733
1740
  paths: ZodOptional<ZodObject<{
1734
- authenticate: ZodString;
1735
- authorize: ZodString;
1736
- accessToken: ZodString;
1737
- endSession: ZodString;
1738
- userInfo: ZodString;
1739
- revoke: ZodString;
1740
- sessions: ZodString;
1741
- }, "strip", ZodTypeAny, {
1742
- authenticate: string;
1743
- authorize: string;
1744
- accessToken: string;
1745
- endSession: string;
1746
- userInfo: string;
1747
- revoke: string;
1748
- sessions: string;
1741
+ authenticate: ZodOptional<ZodString>;
1742
+ authorize: ZodOptional<ZodString>;
1743
+ accessToken: ZodOptional<ZodString>;
1744
+ endSession: ZodOptional<ZodString>;
1745
+ userInfo: ZodOptional<ZodString>;
1746
+ revoke: ZodOptional<ZodString>;
1747
+ sessions: ZodOptional<ZodString>;
1748
+ }, "strict", ZodTypeAny, {
1749
+ authenticate?: string | undefined;
1750
+ authorize?: string | undefined;
1751
+ accessToken?: string | undefined;
1752
+ endSession?: string | undefined;
1753
+ userInfo?: string | undefined;
1754
+ revoke?: string | undefined;
1755
+ sessions?: string | undefined;
1749
1756
  }, {
1750
- authenticate: string;
1751
- authorize: string;
1752
- accessToken: string;
1753
- endSession: string;
1754
- userInfo: string;
1755
- revoke: string;
1756
- sessions: string;
1757
+ authenticate?: string | undefined;
1758
+ authorize?: string | undefined;
1759
+ accessToken?: string | undefined;
1760
+ endSession?: string | undefined;
1761
+ userInfo?: string | undefined;
1762
+ revoke?: string | undefined;
1763
+ sessions?: string | undefined;
1757
1764
  }>>;
1758
- timeout: ZodNumber;
1759
- }, "strip", ZodTypeAny, {
1760
- timeout: number;
1765
+ timeout: ZodOptional<ZodNumber>;
1766
+ }, "strict", ZodTypeAny, {
1761
1767
  baseUrl: string;
1762
1768
  paths?: {
1763
- authenticate: string;
1764
- authorize: string;
1765
- accessToken: string;
1766
- endSession: string;
1767
- userInfo: string;
1768
- revoke: string;
1769
- sessions: string;
1769
+ authenticate?: string | undefined;
1770
+ authorize?: string | undefined;
1771
+ accessToken?: string | undefined;
1772
+ endSession?: string | undefined;
1773
+ userInfo?: string | undefined;
1774
+ revoke?: string | undefined;
1775
+ sessions?: string | undefined;
1770
1776
  } | undefined;
1777
+ timeout?: number | undefined;
1771
1778
  }, {
1772
- timeout: number;
1773
1779
  baseUrl: string;
1774
1780
  paths?: {
1775
- authenticate: string;
1776
- authorize: string;
1777
- accessToken: string;
1778
- endSession: string;
1779
- userInfo: string;
1780
- revoke: string;
1781
- sessions: string;
1781
+ authenticate?: string | undefined;
1782
+ authorize?: string | undefined;
1783
+ accessToken?: string | undefined;
1784
+ endSession?: string | undefined;
1785
+ userInfo?: string | undefined;
1786
+ revoke?: string | undefined;
1787
+ sessions?: string | undefined;
1782
1788
  } | undefined;
1789
+ timeout?: number | undefined;
1783
1790
  }>>;
1784
1791
  support: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"legacy">, ZodLiteral<"modern">]>>>;
1785
1792
  tokenStore: ZodOptional<ZodOptional<ZodUnion<[ZodObject<{
@@ -1801,7 +1808,7 @@ declare const partialConfigSchema: ZodObject<{
1801
1808
  }>>>;
1802
1809
  set: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
1803
1810
  remove: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
1804
- }, "strip", ZodTypeAny, {
1811
+ }, "strict", ZodTypeAny, {
1805
1812
  set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1806
1813
  remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1807
1814
  get: (args_0: string, ...args_1: unknown[]) => Promise<{
@@ -1819,7 +1826,7 @@ declare const partialConfigSchema: ZodObject<{
1819
1826
  refreshToken?: string | undefined;
1820
1827
  tokenExpiry?: number | undefined;
1821
1828
  }>;
1822
- }>, ZodLiteral<"indexedDB">, ZodLiteral<"sessionStorage">, ZodLiteral<"localStorage">]>>>;
1829
+ }>, ZodLiteral<"sessionStorage">, ZodLiteral<"localStorage">]>>>;
1823
1830
  tree: ZodOptional<ZodOptional<ZodString>>;
1824
1831
  type: ZodOptional<ZodOptional<ZodString>>;
1825
1832
  oauthThreshold: ZodOptional<ZodOptional<ZodNumber>>;
@@ -1842,20 +1849,20 @@ declare const partialConfigSchema: ZodObject<{
1842
1849
  redirectUri?: string | undefined;
1843
1850
  scope?: string | undefined;
1844
1851
  serverConfig?: {
1845
- timeout: number;
1846
1852
  baseUrl: string;
1847
1853
  paths?: {
1848
- authenticate: string;
1849
- authorize: string;
1850
- accessToken: string;
1851
- endSession: string;
1852
- userInfo: string;
1853
- revoke: string;
1854
- sessions: string;
1854
+ authenticate?: string | undefined;
1855
+ authorize?: string | undefined;
1856
+ accessToken?: string | undefined;
1857
+ endSession?: string | undefined;
1858
+ userInfo?: string | undefined;
1859
+ revoke?: string | undefined;
1860
+ sessions?: string | undefined;
1855
1861
  } | undefined;
1862
+ timeout?: number | undefined;
1856
1863
  } | undefined;
1857
- support?: "modern" | "legacy" | undefined;
1858
- tokenStore?: "localStorage" | "indexedDB" | "sessionStorage" | {
1864
+ support?: "legacy" | "modern" | undefined;
1865
+ tokenStore?: "localStorage" | "sessionStorage" | {
1859
1866
  set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1860
1867
  remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1861
1868
  get: (args_0: string, ...args_1: unknown[]) => Promise<{
@@ -1887,20 +1894,20 @@ declare const partialConfigSchema: ZodObject<{
1887
1894
  redirectUri?: string | undefined;
1888
1895
  scope?: string | undefined;
1889
1896
  serverConfig?: {
1890
- timeout: number;
1891
1897
  baseUrl: string;
1892
1898
  paths?: {
1893
- authenticate: string;
1894
- authorize: string;
1895
- accessToken: string;
1896
- endSession: string;
1897
- userInfo: string;
1898
- revoke: string;
1899
- sessions: string;
1899
+ authenticate?: string | undefined;
1900
+ authorize?: string | undefined;
1901
+ accessToken?: string | undefined;
1902
+ endSession?: string | undefined;
1903
+ userInfo?: string | undefined;
1904
+ revoke?: string | undefined;
1905
+ sessions?: string | undefined;
1900
1906
  } | undefined;
1907
+ timeout?: number | undefined;
1901
1908
  } | undefined;
1902
- support?: "modern" | "legacy" | undefined;
1903
- tokenStore?: "localStorage" | "indexedDB" | "sessionStorage" | {
1909
+ support?: "legacy" | "modern" | undefined;
1910
+ tokenStore?: "localStorage" | "sessionStorage" | {
1904
1911
  set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1905
1912
  remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
1906
1913
  get: (args_0: string, ...args_1: unknown[]) => Promise<{
@@ -2008,12 +2015,15 @@ declare const partialStringsSchema: ZodObject<{
2008
2015
  closeModal: ZodOptional<ZodString>;
2009
2016
  charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
2010
2017
  charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
2018
+ checkYourEmail: ZodOptional<ZodString>;
2011
2019
  chooseDifferentUsername: ZodOptional<ZodString>;
2012
2020
  chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
2013
2021
  confirmPassword: ZodOptional<ZodString>;
2014
2022
  constraintViolationForPassword: ZodOptional<ZodString>;
2015
2023
  constraintViolationForValue: ZodOptional<ZodString>;
2016
2024
  continueWith: ZodOptional<ZodString>;
2025
+ copyUrl: ZodOptional<ZodString>;
2026
+ copyAndPasteUrlBelow: ZodOptional<ZodString>;
2017
2027
  customSecurityQuestion: ZodOptional<ZodString>;
2018
2028
  dontGetLockedOut: ZodOptional<ZodString>;
2019
2029
  doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
@@ -2038,9 +2048,11 @@ declare const partialStringsSchema: ZodObject<{
2038
2048
  minimumNumberOfUppercase: ZodOptional<ZodString>;
2039
2049
  minimumNumberOfSymbols: ZodOptional<ZodString>;
2040
2050
  nameCallback: ZodOptional<ZodString>;
2051
+ next: ZodOptional<ZodString>;
2041
2052
  nextButton: ZodOptional<ZodString>;
2042
2053
  notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
2043
2054
  noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
2055
+ onMobileOpenInAuthenticator: ZodOptional<ZodString>;
2044
2056
  passwordCallback: ZodOptional<ZodString>;
2045
2057
  passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
2046
2058
  passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
@@ -2051,6 +2063,9 @@ declare const partialStringsSchema: ZodObject<{
2051
2063
  preferencesMarketing: ZodOptional<ZodString>;
2052
2064
  preferencesUpdates: ZodOptional<ZodString>;
2053
2065
  provideCustomQuestion: ZodOptional<ZodString>;
2066
+ qrCodeNotWorking: ZodOptional<ZodString>;
2067
+ qrCodeFailedToRender: ZodOptional<ZodString>;
2068
+ qrCodeImportFailure: ZodOptional<ZodString>;
2054
2069
  redirectingTo: ZodOptional<ZodString>;
2055
2070
  registerButton: ZodOptional<ZodString>;
2056
2071
  registerHeader: ZodOptional<ZodString>;
@@ -2058,6 +2073,7 @@ declare const partialStringsSchema: ZodObject<{
2058
2073
  registerYourDevice: ZodOptional<ZodString>;
2059
2074
  requiredField: ZodOptional<ZodString>;
2060
2075
  securityAnswer: ZodOptional<ZodString>;
2076
+ scanQrCodeWithAuthenticator: ZodOptional<ZodString>;
2061
2077
  securityQuestions: ZodOptional<ZodString>;
2062
2078
  securityQuestionsPrompt: ZodOptional<ZodString>;
2063
2079
  shouldContainANumber: ZodOptional<ZodString>;
@@ -2066,6 +2082,7 @@ declare const partialStringsSchema: ZodObject<{
2066
2082
  shouldContainASymbol: ZodOptional<ZodString>;
2067
2083
  showPassword: ZodOptional<ZodString>;
2068
2084
  sn: ZodOptional<ZodString>;
2085
+ submit: ZodOptional<ZodString>;
2069
2086
  submitButton: ZodOptional<ZodString>;
2070
2087
  successMessage: ZodOptional<ZodString>;
2071
2088
  termsAndConditions: ZodOptional<ZodString>;
@@ -2077,6 +2094,7 @@ declare const partialStringsSchema: ZodObject<{
2077
2094
  unrecoverableError: ZodOptional<ZodString>;
2078
2095
  unknownLoginError: ZodOptional<ZodString>;
2079
2096
  unknownNetworkError: ZodOptional<ZodString>;
2097
+ url: ZodOptional<ZodString>;
2080
2098
  useDeviceForIdentityVerification: ZodOptional<ZodString>;
2081
2099
  userName: ZodOptional<ZodString>;
2082
2100
  usernameRequirements: ZodOptional<ZodString>;
@@ -2095,12 +2113,15 @@ declare const partialStringsSchema: ZodObject<{
2095
2113
  closeModal?: string | undefined;
2096
2114
  charactersCannotRepeatMoreThan?: string | undefined;
2097
2115
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2116
+ checkYourEmail?: string | undefined;
2098
2117
  chooseDifferentUsername?: string | undefined;
2099
2118
  chooseYourDeviceForIdentityVerification?: string | undefined;
2100
2119
  confirmPassword?: string | undefined;
2101
2120
  constraintViolationForPassword?: string | undefined;
2102
2121
  constraintViolationForValue?: string | undefined;
2103
2122
  continueWith?: string | undefined;
2123
+ copyUrl?: string | undefined;
2124
+ copyAndPasteUrlBelow?: string | undefined;
2104
2125
  customSecurityQuestion?: string | undefined;
2105
2126
  dontGetLockedOut?: string | undefined;
2106
2127
  doesNotMeetMinimumCharacterLength?: string | undefined;
@@ -2125,9 +2146,11 @@ declare const partialStringsSchema: ZodObject<{
2125
2146
  minimumNumberOfUppercase?: string | undefined;
2126
2147
  minimumNumberOfSymbols?: string | undefined;
2127
2148
  nameCallback?: string | undefined;
2149
+ next?: string | undefined;
2128
2150
  nextButton?: string | undefined;
2129
2151
  notToExceedMaximumCharacterLength?: string | undefined;
2130
2152
  noLessThanMinimumCharacterLength?: string | undefined;
2153
+ onMobileOpenInAuthenticator?: string | undefined;
2131
2154
  passwordCallback?: string | undefined;
2132
2155
  passwordCannotContainCommonPasswords?: string | undefined;
2133
2156
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2138,6 +2161,9 @@ declare const partialStringsSchema: ZodObject<{
2138
2161
  preferencesMarketing?: string | undefined;
2139
2162
  preferencesUpdates?: string | undefined;
2140
2163
  provideCustomQuestion?: string | undefined;
2164
+ qrCodeNotWorking?: string | undefined;
2165
+ qrCodeFailedToRender?: string | undefined;
2166
+ qrCodeImportFailure?: string | undefined;
2141
2167
  redirectingTo?: string | undefined;
2142
2168
  registerButton?: string | undefined;
2143
2169
  registerHeader?: string | undefined;
@@ -2145,6 +2171,7 @@ declare const partialStringsSchema: ZodObject<{
2145
2171
  registerYourDevice?: string | undefined;
2146
2172
  requiredField?: string | undefined;
2147
2173
  securityAnswer?: string | undefined;
2174
+ scanQrCodeWithAuthenticator?: string | undefined;
2148
2175
  securityQuestions?: string | undefined;
2149
2176
  securityQuestionsPrompt?: string | undefined;
2150
2177
  shouldContainANumber?: string | undefined;
@@ -2153,6 +2180,7 @@ declare const partialStringsSchema: ZodObject<{
2153
2180
  shouldContainASymbol?: string | undefined;
2154
2181
  showPassword?: string | undefined;
2155
2182
  sn?: string | undefined;
2183
+ submit?: string | undefined;
2156
2184
  submitButton?: string | undefined;
2157
2185
  successMessage?: string | undefined;
2158
2186
  termsAndConditions?: string | undefined;
@@ -2164,6 +2192,7 @@ declare const partialStringsSchema: ZodObject<{
2164
2192
  unrecoverableError?: string | undefined;
2165
2193
  unknownLoginError?: string | undefined;
2166
2194
  unknownNetworkError?: string | undefined;
2195
+ url?: string | undefined;
2167
2196
  useDeviceForIdentityVerification?: string | undefined;
2168
2197
  userName?: string | undefined;
2169
2198
  usernameRequirements?: string | undefined;
@@ -2182,12 +2211,15 @@ declare const partialStringsSchema: ZodObject<{
2182
2211
  closeModal?: string | undefined;
2183
2212
  charactersCannotRepeatMoreThan?: string | undefined;
2184
2213
  charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
2214
+ checkYourEmail?: string | undefined;
2185
2215
  chooseDifferentUsername?: string | undefined;
2186
2216
  chooseYourDeviceForIdentityVerification?: string | undefined;
2187
2217
  confirmPassword?: string | undefined;
2188
2218
  constraintViolationForPassword?: string | undefined;
2189
2219
  constraintViolationForValue?: string | undefined;
2190
2220
  continueWith?: string | undefined;
2221
+ copyUrl?: string | undefined;
2222
+ copyAndPasteUrlBelow?: string | undefined;
2191
2223
  customSecurityQuestion?: string | undefined;
2192
2224
  dontGetLockedOut?: string | undefined;
2193
2225
  doesNotMeetMinimumCharacterLength?: string | undefined;
@@ -2212,9 +2244,11 @@ declare const partialStringsSchema: ZodObject<{
2212
2244
  minimumNumberOfUppercase?: string | undefined;
2213
2245
  minimumNumberOfSymbols?: string | undefined;
2214
2246
  nameCallback?: string | undefined;
2247
+ next?: string | undefined;
2215
2248
  nextButton?: string | undefined;
2216
2249
  notToExceedMaximumCharacterLength?: string | undefined;
2217
2250
  noLessThanMinimumCharacterLength?: string | undefined;
2251
+ onMobileOpenInAuthenticator?: string | undefined;
2218
2252
  passwordCallback?: string | undefined;
2219
2253
  passwordCannotContainCommonPasswords?: string | undefined;
2220
2254
  passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
@@ -2225,6 +2259,9 @@ declare const partialStringsSchema: ZodObject<{
2225
2259
  preferencesMarketing?: string | undefined;
2226
2260
  preferencesUpdates?: string | undefined;
2227
2261
  provideCustomQuestion?: string | undefined;
2262
+ qrCodeNotWorking?: string | undefined;
2263
+ qrCodeFailedToRender?: string | undefined;
2264
+ qrCodeImportFailure?: string | undefined;
2228
2265
  redirectingTo?: string | undefined;
2229
2266
  registerButton?: string | undefined;
2230
2267
  registerHeader?: string | undefined;
@@ -2232,6 +2269,7 @@ declare const partialStringsSchema: ZodObject<{
2232
2269
  registerYourDevice?: string | undefined;
2233
2270
  requiredField?: string | undefined;
2234
2271
  securityAnswer?: string | undefined;
2272
+ scanQrCodeWithAuthenticator?: string | undefined;
2235
2273
  securityQuestions?: string | undefined;
2236
2274
  securityQuestionsPrompt?: string | undefined;
2237
2275
  shouldContainANumber?: string | undefined;
@@ -2240,6 +2278,7 @@ declare const partialStringsSchema: ZodObject<{
2240
2278
  shouldContainASymbol?: string | undefined;
2241
2279
  showPassword?: string | undefined;
2242
2280
  sn?: string | undefined;
2281
+ submit?: string | undefined;
2243
2282
  submitButton?: string | undefined;
2244
2283
  successMessage?: string | undefined;
2245
2284
  termsAndConditions?: string | undefined;
@@ -2251,6 +2290,7 @@ declare const partialStringsSchema: ZodObject<{
2251
2290
  unrecoverableError?: string | undefined;
2252
2291
  unknownLoginError?: string | undefined;
2253
2292
  unknownNetworkError?: string | undefined;
2293
+ url?: string | undefined;
2254
2294
  useDeviceForIdentityVerification?: string | undefined;
2255
2295
  userName?: string | undefined;
2256
2296
  usernameRequirements?: string | undefined;
@@ -2284,14 +2324,14 @@ declare const partialStyleSchema: ZodObject<{
2284
2324
  }>>>;
2285
2325
  sections: ZodOptional<ZodOptional<ZodObject<{
2286
2326
  header: ZodOptional<ZodBoolean>;
2287
- }, "strip", ZodTypeAny, {
2327
+ }, "strict", ZodTypeAny, {
2288
2328
  header?: boolean | undefined;
2289
2329
  }, {
2290
2330
  header?: boolean | undefined;
2291
2331
  }>>>;
2292
2332
  stage: ZodOptional<ZodOptional<ZodObject<{
2293
2333
  icon: ZodOptional<ZodBoolean>;
2294
- }, "strip", ZodTypeAny, {
2334
+ }, "strict", ZodTypeAny, {
2295
2335
  icon?: boolean | undefined;
2296
2336
  }, {
2297
2337
  icon?: boolean | undefined;
@@ -2340,6 +2380,7 @@ interface JourneyOptionsStart$1 {
2340
2380
  forgerock?: StepOptions;
2341
2381
  journey?: string;
2342
2382
  resumeUrl?: string;
2383
+ recaptchaAction?: string;
2343
2384
  }
2344
2385
  interface WidgetConfigOptions$1 {
2345
2386
  forgerock?: TypeOf<typeof partialConfigSchema>;