@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/CHANGELOG.md +83 -0
- package/index.cjs +22738 -22936
- package/index.cjs.map +1 -1
- package/index.d.ts +173 -132
- package/index.js +22738 -22936
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +173 -132
- package/widget.css +520 -308
package/index.d.ts
CHANGED
|
@@ -11,16 +11,6 @@ declare enum ActionTypes {
|
|
|
11
11
|
UserInfo = "USER_INFO"
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
interface StringDict<T> {
|
|
15
|
-
[name: string]: T;
|
|
16
|
-
}
|
|
17
|
-
interface Tokens {
|
|
18
|
-
accessToken: string;
|
|
19
|
-
idToken?: string;
|
|
20
|
-
refreshToken?: string;
|
|
21
|
-
tokenExpiry?: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
14
|
/**
|
|
25
15
|
* Types of callbacks directly supported by the SDK.
|
|
26
16
|
*/
|
|
@@ -48,6 +38,16 @@ declare enum CallbackType {
|
|
|
48
38
|
ValidatedCreateUsernameCallback = "ValidatedCreateUsernameCallback"
|
|
49
39
|
}
|
|
50
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
|
+
|
|
51
51
|
/**
|
|
52
52
|
* Represents the authentication tree API payload schema.
|
|
53
53
|
*/
|
|
@@ -135,7 +135,7 @@ declare class FRCallback {
|
|
|
135
135
|
/**
|
|
136
136
|
* Gets the name of this callback type.
|
|
137
137
|
*/
|
|
138
|
-
getType():
|
|
138
|
+
getType(): CallbackType;
|
|
139
139
|
/**
|
|
140
140
|
* Gets the value of the specified input element, or the first element if `selector` is not
|
|
141
141
|
* provided.
|
|
@@ -167,12 +167,22 @@ declare class FRCallback {
|
|
|
167
167
|
private getArrayElement;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
type FRCallbackFactory = (callback: Callback) => FRCallback;
|
|
171
171
|
|
|
172
|
+
type LogLevel = 'none' | 'info' | 'warn' | 'error' | 'debug';
|
|
172
173
|
interface Action {
|
|
173
174
|
type: ActionTypes;
|
|
174
175
|
payload: any;
|
|
175
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
|
+
}
|
|
176
186
|
/**
|
|
177
187
|
* Configuration options.
|
|
178
188
|
*/
|
|
@@ -184,11 +194,12 @@ interface ConfigOptions {
|
|
|
184
194
|
redirectUri?: string;
|
|
185
195
|
scope?: string;
|
|
186
196
|
serverConfig?: ServerConfig;
|
|
187
|
-
|
|
188
|
-
tokenStore?: TokenStoreObject | 'indexedDB' | 'sessionStorage' | 'localStorage';
|
|
197
|
+
tokenStore?: TokenStoreObject | 'sessionStorage' | 'localStorage';
|
|
189
198
|
tree?: string;
|
|
190
199
|
type?: string;
|
|
191
200
|
oauthThreshold?: number;
|
|
201
|
+
logLevel?: LogLevel;
|
|
202
|
+
logger?: LoggerFunctions;
|
|
192
203
|
}
|
|
193
204
|
/**
|
|
194
205
|
* Optional configuration for custom paths for actions
|
|
@@ -202,7 +213,7 @@ interface CustomPathConfig {
|
|
|
202
213
|
revoke?: string;
|
|
203
214
|
sessions?: string;
|
|
204
215
|
}
|
|
205
|
-
|
|
216
|
+
type RequestMiddleware = (req: RequestObj, action: Action, next: () => RequestObj) => void;
|
|
206
217
|
interface RequestObj {
|
|
207
218
|
url: URL;
|
|
208
219
|
init: RequestInit;
|
|
@@ -213,7 +224,7 @@ interface RequestObj {
|
|
|
213
224
|
interface ServerConfig {
|
|
214
225
|
baseUrl: string;
|
|
215
226
|
paths?: CustomPathConfig;
|
|
216
|
-
timeout
|
|
227
|
+
timeout?: number;
|
|
217
228
|
}
|
|
218
229
|
/**
|
|
219
230
|
* API for implementing a custom token store
|
|
@@ -224,47 +235,6 @@ interface TokenStoreObject {
|
|
|
224
235
|
remove: (clientId: string) => Promise<void>;
|
|
225
236
|
}
|
|
226
237
|
|
|
227
|
-
/**
|
|
228
|
-
* An event-handling function.
|
|
229
|
-
*/
|
|
230
|
-
declare type Listener = (e: FREvent) => void;
|
|
231
|
-
interface FREvent {
|
|
232
|
-
type: string;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Event dispatcher for subscribing and publishing categorized events.
|
|
237
|
-
*/
|
|
238
|
-
declare class Dispatcher {
|
|
239
|
-
private callbacks;
|
|
240
|
-
/**
|
|
241
|
-
* Subscribes to an event type.
|
|
242
|
-
*
|
|
243
|
-
* @param type The event type
|
|
244
|
-
* @param listener The function to subscribe to events of this type
|
|
245
|
-
*/
|
|
246
|
-
addEventListener(type: string, listener: Listener): void;
|
|
247
|
-
/**
|
|
248
|
-
* Unsubscribes from an event type.
|
|
249
|
-
*
|
|
250
|
-
* @param type The event type
|
|
251
|
-
* @param listener The function to unsubscribe from events of this type
|
|
252
|
-
*/
|
|
253
|
-
removeEventListener(type: string, listener: Listener): void;
|
|
254
|
-
/**
|
|
255
|
-
* Unsubscribes all listener functions to a single event type or all event types.
|
|
256
|
-
*
|
|
257
|
-
* @param type The event type, or all event types if not specified
|
|
258
|
-
*/
|
|
259
|
-
clearEventListeners(type?: string): void;
|
|
260
|
-
/**
|
|
261
|
-
* Publishes an event.
|
|
262
|
-
*
|
|
263
|
-
* @param event The event object to publish
|
|
264
|
-
*/
|
|
265
|
-
dispatchEvent<T extends FREvent>(event: T): void;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
238
|
/**
|
|
269
239
|
* Types of steps returned by the authentication tree.
|
|
270
240
|
*/
|
|
@@ -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
|
-
|
|
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
|
|
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>;
|
|
@@ -703,6 +673,7 @@ interface JourneyStoreValue {
|
|
|
703
673
|
step: StepTypes;
|
|
704
674
|
successful: boolean;
|
|
705
675
|
response: Maybe<Step>;
|
|
676
|
+
recaptchaAction?: Maybe<string>;
|
|
706
677
|
}
|
|
707
678
|
interface StepMetadata {
|
|
708
679
|
derived: {
|
|
@@ -711,6 +682,7 @@ interface StepMetadata {
|
|
|
711
682
|
numOfCallbacks: number;
|
|
712
683
|
numOfSelfSubmittableCbs: number;
|
|
713
684
|
numOfUserInputCbs: number;
|
|
685
|
+
stageName?: string;
|
|
714
686
|
};
|
|
715
687
|
platform?: Record<string, unknown>;
|
|
716
688
|
}
|
|
@@ -1075,6 +1047,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1075
1047
|
safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
|
|
1076
1048
|
parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
|
|
1077
1049
|
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
|
|
1050
|
+
/** Alias of safeParseAsync */
|
|
1078
1051
|
spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
|
|
1079
1052
|
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
|
|
1080
1053
|
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
|
|
@@ -1083,6 +1056,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1083
1056
|
_refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
|
|
1084
1057
|
superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
|
|
1085
1058
|
superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
|
|
1059
|
+
superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
|
|
1086
1060
|
constructor(def: Def);
|
|
1087
1061
|
optional(): ZodOptional<this>;
|
|
1088
1062
|
nullable(): ZodNullable<this>;
|
|
@@ -1102,6 +1076,7 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
1102
1076
|
}) => Output): ZodCatch<this>;
|
|
1103
1077
|
describe(description: string): this;
|
|
1104
1078
|
pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
|
|
1079
|
+
readonly(): ZodReadonly<this>;
|
|
1105
1080
|
isOptional(): boolean;
|
|
1106
1081
|
isNullable(): boolean;
|
|
1107
1082
|
}
|
|
@@ -1182,7 +1157,7 @@ interface ZodStringDef extends ZodTypeDef {
|
|
|
1182
1157
|
}
|
|
1183
1158
|
declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
1184
1159
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
1185
|
-
protected _regex
|
|
1160
|
+
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
1186
1161
|
_addCheck(check: ZodStringCheck): ZodString;
|
|
1187
1162
|
email(message?: errorUtil.ErrMessage): ZodString;
|
|
1188
1163
|
url(message?: errorUtil.ErrMessage): ZodString;
|
|
@@ -1210,10 +1185,14 @@ declare class ZodString extends ZodType<string, ZodStringDef> {
|
|
|
1210
1185
|
min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1211
1186
|
max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1212
1187
|
length(len: number, message?: errorUtil.ErrMessage): ZodString;
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1188
|
+
/**
|
|
1189
|
+
* @deprecated Use z.string().min(1) instead.
|
|
1190
|
+
* @see {@link ZodString.min}
|
|
1191
|
+
*/
|
|
1192
|
+
nonempty(message?: errorUtil.ErrMessage): ZodString;
|
|
1193
|
+
trim(): ZodString;
|
|
1194
|
+
toLowerCase(): ZodString;
|
|
1195
|
+
toUpperCase(): ZodString;
|
|
1217
1196
|
get isDatetime(): boolean;
|
|
1218
1197
|
get isEmail(): boolean;
|
|
1219
1198
|
get isURL(): boolean;
|
|
@@ -1385,9 +1364,21 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1385
1364
|
strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
|
|
1386
1365
|
strip(): ZodObject<T, "strip", Catchall>;
|
|
1387
1366
|
passthrough(): ZodObject<T, "passthrough", Catchall>;
|
|
1367
|
+
/**
|
|
1368
|
+
* @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
|
|
1369
|
+
* If you want to pass through unknown properties, use `.passthrough()` instead.
|
|
1370
|
+
*/
|
|
1388
1371
|
nonstrict: () => ZodObject<T, "passthrough", Catchall>;
|
|
1389
1372
|
extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
|
|
1373
|
+
/**
|
|
1374
|
+
* @deprecated Use `.extend` instead
|
|
1375
|
+
* */
|
|
1390
1376
|
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>>;
|
|
1377
|
+
/**
|
|
1378
|
+
* Prior to zod@1.0.12 there was a bug in the
|
|
1379
|
+
* inferred type of merged objects. Please
|
|
1380
|
+
* upgrade if you are experiencing issues.
|
|
1381
|
+
*/
|
|
1391
1382
|
merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
|
|
1392
1383
|
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & {
|
|
1393
1384
|
[k in Key]: Schema;
|
|
@@ -1399,6 +1390,9 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
1399
1390
|
omit<Mask extends {
|
|
1400
1391
|
[k in keyof T]?: true;
|
|
1401
1392
|
}>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
1393
|
+
/**
|
|
1394
|
+
* @deprecated
|
|
1395
|
+
*/
|
|
1402
1396
|
deepPartial(): partialUtil.DeepPartial<this>;
|
|
1403
1397
|
partial(): ZodObject<{
|
|
1404
1398
|
[k in keyof T]: ZodOptional<T[k]>;
|
|
@@ -1557,7 +1551,7 @@ declare type TransformEffect<T> = {
|
|
|
1557
1551
|
};
|
|
1558
1552
|
declare type PreprocessEffect<T> = {
|
|
1559
1553
|
type: "preprocess";
|
|
1560
|
-
transform: (arg: T) => any;
|
|
1554
|
+
transform: (arg: T, ctx: RefinementCtx) => any;
|
|
1561
1555
|
};
|
|
1562
1556
|
declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
|
|
1563
1557
|
interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -1570,7 +1564,7 @@ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input
|
|
|
1570
1564
|
sourceType(): T;
|
|
1571
1565
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1572
1566
|
static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
|
|
1573
|
-
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1567
|
+
static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1574
1568
|
}
|
|
1575
1569
|
|
|
1576
1570
|
interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -1651,6 +1645,18 @@ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends Zo
|
|
|
1651
1645
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1652
1646
|
static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
|
|
1653
1647
|
}
|
|
1648
|
+
declare type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
1649
|
+
readonly [Symbol.toStringTag]: string;
|
|
1650
|
+
} | Date | Error | Generator | Promise<unknown> | RegExp;
|
|
1651
|
+
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>;
|
|
1652
|
+
interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1653
|
+
innerType: T;
|
|
1654
|
+
typeName: ZodFirstPartyTypeKind.ZodReadonly;
|
|
1655
|
+
}
|
|
1656
|
+
declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]> {
|
|
1657
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1658
|
+
static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
|
|
1659
|
+
}
|
|
1654
1660
|
declare enum ZodFirstPartyTypeKind {
|
|
1655
1661
|
ZodString = "ZodString",
|
|
1656
1662
|
ZodNumber = "ZodNumber",
|
|
@@ -1686,7 +1692,8 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1686
1692
|
ZodCatch = "ZodCatch",
|
|
1687
1693
|
ZodPromise = "ZodPromise",
|
|
1688
1694
|
ZodBranded = "ZodBranded",
|
|
1689
|
-
ZodPipeline = "ZodPipeline"
|
|
1695
|
+
ZodPipeline = "ZodPipeline",
|
|
1696
|
+
ZodReadonly = "ZodReadonly"
|
|
1690
1697
|
}
|
|
1691
1698
|
|
|
1692
1699
|
declare const partialConfigSchema: ZodObject<{
|
|
@@ -1744,55 +1751,55 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1744
1751
|
serverConfig: ZodOptional<ZodObject<{
|
|
1745
1752
|
baseUrl: ZodString;
|
|
1746
1753
|
paths: ZodOptional<ZodObject<{
|
|
1747
|
-
authenticate: ZodString
|
|
1748
|
-
authorize: ZodString
|
|
1749
|
-
accessToken: ZodString
|
|
1750
|
-
endSession: ZodString
|
|
1751
|
-
userInfo: ZodString
|
|
1752
|
-
revoke: ZodString
|
|
1753
|
-
sessions: ZodString
|
|
1754
|
-
}, "
|
|
1755
|
-
authenticate
|
|
1756
|
-
authorize
|
|
1757
|
-
accessToken
|
|
1758
|
-
endSession
|
|
1759
|
-
userInfo
|
|
1760
|
-
revoke
|
|
1761
|
-
sessions
|
|
1754
|
+
authenticate: ZodOptional<ZodString>;
|
|
1755
|
+
authorize: ZodOptional<ZodString>;
|
|
1756
|
+
accessToken: ZodOptional<ZodString>;
|
|
1757
|
+
endSession: ZodOptional<ZodString>;
|
|
1758
|
+
userInfo: ZodOptional<ZodString>;
|
|
1759
|
+
revoke: ZodOptional<ZodString>;
|
|
1760
|
+
sessions: ZodOptional<ZodString>;
|
|
1761
|
+
}, "strict", ZodTypeAny, {
|
|
1762
|
+
authenticate?: string | undefined;
|
|
1763
|
+
authorize?: string | undefined;
|
|
1764
|
+
accessToken?: string | undefined;
|
|
1765
|
+
endSession?: string | undefined;
|
|
1766
|
+
userInfo?: string | undefined;
|
|
1767
|
+
revoke?: string | undefined;
|
|
1768
|
+
sessions?: string | undefined;
|
|
1762
1769
|
}, {
|
|
1763
|
-
authenticate
|
|
1764
|
-
authorize
|
|
1765
|
-
accessToken
|
|
1766
|
-
endSession
|
|
1767
|
-
userInfo
|
|
1768
|
-
revoke
|
|
1769
|
-
sessions
|
|
1770
|
+
authenticate?: string | undefined;
|
|
1771
|
+
authorize?: string | undefined;
|
|
1772
|
+
accessToken?: string | undefined;
|
|
1773
|
+
endSession?: string | undefined;
|
|
1774
|
+
userInfo?: string | undefined;
|
|
1775
|
+
revoke?: string | undefined;
|
|
1776
|
+
sessions?: string | undefined;
|
|
1770
1777
|
}>>;
|
|
1771
|
-
timeout: ZodNumber
|
|
1772
|
-
}, "
|
|
1773
|
-
timeout: number;
|
|
1778
|
+
timeout: ZodOptional<ZodNumber>;
|
|
1779
|
+
}, "strict", ZodTypeAny, {
|
|
1774
1780
|
baseUrl: string;
|
|
1775
1781
|
paths?: {
|
|
1776
|
-
authenticate
|
|
1777
|
-
authorize
|
|
1778
|
-
accessToken
|
|
1779
|
-
endSession
|
|
1780
|
-
userInfo
|
|
1781
|
-
revoke
|
|
1782
|
-
sessions
|
|
1782
|
+
authenticate?: string | undefined;
|
|
1783
|
+
authorize?: string | undefined;
|
|
1784
|
+
accessToken?: string | undefined;
|
|
1785
|
+
endSession?: string | undefined;
|
|
1786
|
+
userInfo?: string | undefined;
|
|
1787
|
+
revoke?: string | undefined;
|
|
1788
|
+
sessions?: string | undefined;
|
|
1783
1789
|
} | undefined;
|
|
1790
|
+
timeout?: number | undefined;
|
|
1784
1791
|
}, {
|
|
1785
|
-
timeout: number;
|
|
1786
1792
|
baseUrl: string;
|
|
1787
1793
|
paths?: {
|
|
1788
|
-
authenticate
|
|
1789
|
-
authorize
|
|
1790
|
-
accessToken
|
|
1791
|
-
endSession
|
|
1792
|
-
userInfo
|
|
1793
|
-
revoke
|
|
1794
|
-
sessions
|
|
1794
|
+
authenticate?: string | undefined;
|
|
1795
|
+
authorize?: string | undefined;
|
|
1796
|
+
accessToken?: string | undefined;
|
|
1797
|
+
endSession?: string | undefined;
|
|
1798
|
+
userInfo?: string | undefined;
|
|
1799
|
+
revoke?: string | undefined;
|
|
1800
|
+
sessions?: string | undefined;
|
|
1795
1801
|
} | undefined;
|
|
1802
|
+
timeout?: number | undefined;
|
|
1796
1803
|
}>>;
|
|
1797
1804
|
support: ZodOptional<ZodOptional<ZodUnion<[ZodLiteral<"legacy">, ZodLiteral<"modern">]>>>;
|
|
1798
1805
|
tokenStore: ZodOptional<ZodOptional<ZodUnion<[ZodObject<{
|
|
@@ -1814,7 +1821,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1814
1821
|
}>>>;
|
|
1815
1822
|
set: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
|
|
1816
1823
|
remove: ZodFunction<ZodTuple<[ZodString], ZodUnknown>, ZodPromise<ZodVoid>>;
|
|
1817
|
-
}, "
|
|
1824
|
+
}, "strict", ZodTypeAny, {
|
|
1818
1825
|
set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1819
1826
|
remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1820
1827
|
get: (args_0: string, ...args_1: unknown[]) => Promise<{
|
|
@@ -1832,7 +1839,7 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1832
1839
|
refreshToken?: string | undefined;
|
|
1833
1840
|
tokenExpiry?: number | undefined;
|
|
1834
1841
|
}>;
|
|
1835
|
-
}>, ZodLiteral<"
|
|
1842
|
+
}>, ZodLiteral<"sessionStorage">, ZodLiteral<"localStorage">]>>>;
|
|
1836
1843
|
tree: ZodOptional<ZodOptional<ZodString>>;
|
|
1837
1844
|
type: ZodOptional<ZodOptional<ZodString>>;
|
|
1838
1845
|
oauthThreshold: ZodOptional<ZodOptional<ZodNumber>>;
|
|
@@ -1855,20 +1862,20 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1855
1862
|
redirectUri?: string | undefined;
|
|
1856
1863
|
scope?: string | undefined;
|
|
1857
1864
|
serverConfig?: {
|
|
1858
|
-
timeout: number;
|
|
1859
1865
|
baseUrl: string;
|
|
1860
1866
|
paths?: {
|
|
1861
|
-
authenticate
|
|
1862
|
-
authorize
|
|
1863
|
-
accessToken
|
|
1864
|
-
endSession
|
|
1865
|
-
userInfo
|
|
1866
|
-
revoke
|
|
1867
|
-
sessions
|
|
1867
|
+
authenticate?: string | undefined;
|
|
1868
|
+
authorize?: string | undefined;
|
|
1869
|
+
accessToken?: string | undefined;
|
|
1870
|
+
endSession?: string | undefined;
|
|
1871
|
+
userInfo?: string | undefined;
|
|
1872
|
+
revoke?: string | undefined;
|
|
1873
|
+
sessions?: string | undefined;
|
|
1868
1874
|
} | undefined;
|
|
1875
|
+
timeout?: number | undefined;
|
|
1869
1876
|
} | undefined;
|
|
1870
|
-
support?: "
|
|
1871
|
-
tokenStore?: "localStorage" | "
|
|
1877
|
+
support?: "legacy" | "modern" | undefined;
|
|
1878
|
+
tokenStore?: "localStorage" | "sessionStorage" | {
|
|
1872
1879
|
set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1873
1880
|
remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1874
1881
|
get: (args_0: string, ...args_1: unknown[]) => Promise<{
|
|
@@ -1900,20 +1907,20 @@ declare const partialConfigSchema: ZodObject<{
|
|
|
1900
1907
|
redirectUri?: string | undefined;
|
|
1901
1908
|
scope?: string | undefined;
|
|
1902
1909
|
serverConfig?: {
|
|
1903
|
-
timeout: number;
|
|
1904
1910
|
baseUrl: string;
|
|
1905
1911
|
paths?: {
|
|
1906
|
-
authenticate
|
|
1907
|
-
authorize
|
|
1908
|
-
accessToken
|
|
1909
|
-
endSession
|
|
1910
|
-
userInfo
|
|
1911
|
-
revoke
|
|
1912
|
-
sessions
|
|
1912
|
+
authenticate?: string | undefined;
|
|
1913
|
+
authorize?: string | undefined;
|
|
1914
|
+
accessToken?: string | undefined;
|
|
1915
|
+
endSession?: string | undefined;
|
|
1916
|
+
userInfo?: string | undefined;
|
|
1917
|
+
revoke?: string | undefined;
|
|
1918
|
+
sessions?: string | undefined;
|
|
1913
1919
|
} | undefined;
|
|
1920
|
+
timeout?: number | undefined;
|
|
1914
1921
|
} | undefined;
|
|
1915
|
-
support?: "
|
|
1916
|
-
tokenStore?: "localStorage" | "
|
|
1922
|
+
support?: "legacy" | "modern" | undefined;
|
|
1923
|
+
tokenStore?: "localStorage" | "sessionStorage" | {
|
|
1917
1924
|
set: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1918
1925
|
remove: (args_0: string, ...args_1: unknown[]) => Promise<void>;
|
|
1919
1926
|
get: (args_0: string, ...args_1: unknown[]) => Promise<{
|
|
@@ -2021,12 +2028,15 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2021
2028
|
closeModal: ZodOptional<ZodString>;
|
|
2022
2029
|
charactersCannotRepeatMoreThan: ZodOptional<ZodString>;
|
|
2023
2030
|
charactersCannotRepeatMoreThanCaseInsensitive: ZodOptional<ZodString>;
|
|
2031
|
+
checkYourEmail: ZodOptional<ZodString>;
|
|
2024
2032
|
chooseDifferentUsername: ZodOptional<ZodString>;
|
|
2025
2033
|
chooseYourDeviceForIdentityVerification: ZodOptional<ZodString>;
|
|
2026
2034
|
confirmPassword: ZodOptional<ZodString>;
|
|
2027
2035
|
constraintViolationForPassword: ZodOptional<ZodString>;
|
|
2028
2036
|
constraintViolationForValue: ZodOptional<ZodString>;
|
|
2029
2037
|
continueWith: ZodOptional<ZodString>;
|
|
2038
|
+
copyUrl: ZodOptional<ZodString>;
|
|
2039
|
+
copyAndPasteUrlBelow: ZodOptional<ZodString>;
|
|
2030
2040
|
customSecurityQuestion: ZodOptional<ZodString>;
|
|
2031
2041
|
dontGetLockedOut: ZodOptional<ZodString>;
|
|
2032
2042
|
doesNotMeetMinimumCharacterLength: ZodOptional<ZodString>;
|
|
@@ -2051,9 +2061,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2051
2061
|
minimumNumberOfUppercase: ZodOptional<ZodString>;
|
|
2052
2062
|
minimumNumberOfSymbols: ZodOptional<ZodString>;
|
|
2053
2063
|
nameCallback: ZodOptional<ZodString>;
|
|
2064
|
+
next: ZodOptional<ZodString>;
|
|
2054
2065
|
nextButton: ZodOptional<ZodString>;
|
|
2055
2066
|
notToExceedMaximumCharacterLength: ZodOptional<ZodString>;
|
|
2056
2067
|
noLessThanMinimumCharacterLength: ZodOptional<ZodString>;
|
|
2068
|
+
onMobileOpenInAuthenticator: ZodOptional<ZodString>;
|
|
2057
2069
|
passwordCallback: ZodOptional<ZodString>;
|
|
2058
2070
|
passwordCannotContainCommonPasswords: ZodOptional<ZodString>;
|
|
2059
2071
|
passwordCannotContainCommonPasswordsOrBeReversible: ZodOptional<ZodString>;
|
|
@@ -2064,6 +2076,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2064
2076
|
preferencesMarketing: ZodOptional<ZodString>;
|
|
2065
2077
|
preferencesUpdates: ZodOptional<ZodString>;
|
|
2066
2078
|
provideCustomQuestion: ZodOptional<ZodString>;
|
|
2079
|
+
qrCodeNotWorking: ZodOptional<ZodString>;
|
|
2080
|
+
qrCodeFailedToRender: ZodOptional<ZodString>;
|
|
2081
|
+
qrCodeImportFailure: ZodOptional<ZodString>;
|
|
2067
2082
|
redirectingTo: ZodOptional<ZodString>;
|
|
2068
2083
|
registerButton: ZodOptional<ZodString>;
|
|
2069
2084
|
registerHeader: ZodOptional<ZodString>;
|
|
@@ -2071,6 +2086,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2071
2086
|
registerYourDevice: ZodOptional<ZodString>;
|
|
2072
2087
|
requiredField: ZodOptional<ZodString>;
|
|
2073
2088
|
securityAnswer: ZodOptional<ZodString>;
|
|
2089
|
+
scanQrCodeWithAuthenticator: ZodOptional<ZodString>;
|
|
2074
2090
|
securityQuestions: ZodOptional<ZodString>;
|
|
2075
2091
|
securityQuestionsPrompt: ZodOptional<ZodString>;
|
|
2076
2092
|
shouldContainANumber: ZodOptional<ZodString>;
|
|
@@ -2079,6 +2095,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2079
2095
|
shouldContainASymbol: ZodOptional<ZodString>;
|
|
2080
2096
|
showPassword: ZodOptional<ZodString>;
|
|
2081
2097
|
sn: ZodOptional<ZodString>;
|
|
2098
|
+
submit: ZodOptional<ZodString>;
|
|
2082
2099
|
submitButton: ZodOptional<ZodString>;
|
|
2083
2100
|
successMessage: ZodOptional<ZodString>;
|
|
2084
2101
|
termsAndConditions: ZodOptional<ZodString>;
|
|
@@ -2090,6 +2107,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2090
2107
|
unrecoverableError: ZodOptional<ZodString>;
|
|
2091
2108
|
unknownLoginError: ZodOptional<ZodString>;
|
|
2092
2109
|
unknownNetworkError: ZodOptional<ZodString>;
|
|
2110
|
+
url: ZodOptional<ZodString>;
|
|
2093
2111
|
useDeviceForIdentityVerification: ZodOptional<ZodString>;
|
|
2094
2112
|
userName: ZodOptional<ZodString>;
|
|
2095
2113
|
usernameRequirements: ZodOptional<ZodString>;
|
|
@@ -2108,12 +2126,15 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2108
2126
|
closeModal?: string | undefined;
|
|
2109
2127
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2110
2128
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2129
|
+
checkYourEmail?: string | undefined;
|
|
2111
2130
|
chooseDifferentUsername?: string | undefined;
|
|
2112
2131
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2113
2132
|
confirmPassword?: string | undefined;
|
|
2114
2133
|
constraintViolationForPassword?: string | undefined;
|
|
2115
2134
|
constraintViolationForValue?: string | undefined;
|
|
2116
2135
|
continueWith?: string | undefined;
|
|
2136
|
+
copyUrl?: string | undefined;
|
|
2137
|
+
copyAndPasteUrlBelow?: string | undefined;
|
|
2117
2138
|
customSecurityQuestion?: string | undefined;
|
|
2118
2139
|
dontGetLockedOut?: string | undefined;
|
|
2119
2140
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
@@ -2138,9 +2159,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2138
2159
|
minimumNumberOfUppercase?: string | undefined;
|
|
2139
2160
|
minimumNumberOfSymbols?: string | undefined;
|
|
2140
2161
|
nameCallback?: string | undefined;
|
|
2162
|
+
next?: string | undefined;
|
|
2141
2163
|
nextButton?: string | undefined;
|
|
2142
2164
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2143
2165
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2166
|
+
onMobileOpenInAuthenticator?: string | undefined;
|
|
2144
2167
|
passwordCallback?: string | undefined;
|
|
2145
2168
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2146
2169
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2151,6 +2174,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2151
2174
|
preferencesMarketing?: string | undefined;
|
|
2152
2175
|
preferencesUpdates?: string | undefined;
|
|
2153
2176
|
provideCustomQuestion?: string | undefined;
|
|
2177
|
+
qrCodeNotWorking?: string | undefined;
|
|
2178
|
+
qrCodeFailedToRender?: string | undefined;
|
|
2179
|
+
qrCodeImportFailure?: string | undefined;
|
|
2154
2180
|
redirectingTo?: string | undefined;
|
|
2155
2181
|
registerButton?: string | undefined;
|
|
2156
2182
|
registerHeader?: string | undefined;
|
|
@@ -2158,6 +2184,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2158
2184
|
registerYourDevice?: string | undefined;
|
|
2159
2185
|
requiredField?: string | undefined;
|
|
2160
2186
|
securityAnswer?: string | undefined;
|
|
2187
|
+
scanQrCodeWithAuthenticator?: string | undefined;
|
|
2161
2188
|
securityQuestions?: string | undefined;
|
|
2162
2189
|
securityQuestionsPrompt?: string | undefined;
|
|
2163
2190
|
shouldContainANumber?: string | undefined;
|
|
@@ -2166,6 +2193,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2166
2193
|
shouldContainASymbol?: string | undefined;
|
|
2167
2194
|
showPassword?: string | undefined;
|
|
2168
2195
|
sn?: string | undefined;
|
|
2196
|
+
submit?: string | undefined;
|
|
2169
2197
|
submitButton?: string | undefined;
|
|
2170
2198
|
successMessage?: string | undefined;
|
|
2171
2199
|
termsAndConditions?: string | undefined;
|
|
@@ -2177,6 +2205,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2177
2205
|
unrecoverableError?: string | undefined;
|
|
2178
2206
|
unknownLoginError?: string | undefined;
|
|
2179
2207
|
unknownNetworkError?: string | undefined;
|
|
2208
|
+
url?: string | undefined;
|
|
2180
2209
|
useDeviceForIdentityVerification?: string | undefined;
|
|
2181
2210
|
userName?: string | undefined;
|
|
2182
2211
|
usernameRequirements?: string | undefined;
|
|
@@ -2195,12 +2224,15 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2195
2224
|
closeModal?: string | undefined;
|
|
2196
2225
|
charactersCannotRepeatMoreThan?: string | undefined;
|
|
2197
2226
|
charactersCannotRepeatMoreThanCaseInsensitive?: string | undefined;
|
|
2227
|
+
checkYourEmail?: string | undefined;
|
|
2198
2228
|
chooseDifferentUsername?: string | undefined;
|
|
2199
2229
|
chooseYourDeviceForIdentityVerification?: string | undefined;
|
|
2200
2230
|
confirmPassword?: string | undefined;
|
|
2201
2231
|
constraintViolationForPassword?: string | undefined;
|
|
2202
2232
|
constraintViolationForValue?: string | undefined;
|
|
2203
2233
|
continueWith?: string | undefined;
|
|
2234
|
+
copyUrl?: string | undefined;
|
|
2235
|
+
copyAndPasteUrlBelow?: string | undefined;
|
|
2204
2236
|
customSecurityQuestion?: string | undefined;
|
|
2205
2237
|
dontGetLockedOut?: string | undefined;
|
|
2206
2238
|
doesNotMeetMinimumCharacterLength?: string | undefined;
|
|
@@ -2225,9 +2257,11 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2225
2257
|
minimumNumberOfUppercase?: string | undefined;
|
|
2226
2258
|
minimumNumberOfSymbols?: string | undefined;
|
|
2227
2259
|
nameCallback?: string | undefined;
|
|
2260
|
+
next?: string | undefined;
|
|
2228
2261
|
nextButton?: string | undefined;
|
|
2229
2262
|
notToExceedMaximumCharacterLength?: string | undefined;
|
|
2230
2263
|
noLessThanMinimumCharacterLength?: string | undefined;
|
|
2264
|
+
onMobileOpenInAuthenticator?: string | undefined;
|
|
2231
2265
|
passwordCallback?: string | undefined;
|
|
2232
2266
|
passwordCannotContainCommonPasswords?: string | undefined;
|
|
2233
2267
|
passwordCannotContainCommonPasswordsOrBeReversible?: string | undefined;
|
|
@@ -2238,6 +2272,9 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2238
2272
|
preferencesMarketing?: string | undefined;
|
|
2239
2273
|
preferencesUpdates?: string | undefined;
|
|
2240
2274
|
provideCustomQuestion?: string | undefined;
|
|
2275
|
+
qrCodeNotWorking?: string | undefined;
|
|
2276
|
+
qrCodeFailedToRender?: string | undefined;
|
|
2277
|
+
qrCodeImportFailure?: string | undefined;
|
|
2241
2278
|
redirectingTo?: string | undefined;
|
|
2242
2279
|
registerButton?: string | undefined;
|
|
2243
2280
|
registerHeader?: string | undefined;
|
|
@@ -2245,6 +2282,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2245
2282
|
registerYourDevice?: string | undefined;
|
|
2246
2283
|
requiredField?: string | undefined;
|
|
2247
2284
|
securityAnswer?: string | undefined;
|
|
2285
|
+
scanQrCodeWithAuthenticator?: string | undefined;
|
|
2248
2286
|
securityQuestions?: string | undefined;
|
|
2249
2287
|
securityQuestionsPrompt?: string | undefined;
|
|
2250
2288
|
shouldContainANumber?: string | undefined;
|
|
@@ -2253,6 +2291,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2253
2291
|
shouldContainASymbol?: string | undefined;
|
|
2254
2292
|
showPassword?: string | undefined;
|
|
2255
2293
|
sn?: string | undefined;
|
|
2294
|
+
submit?: string | undefined;
|
|
2256
2295
|
submitButton?: string | undefined;
|
|
2257
2296
|
successMessage?: string | undefined;
|
|
2258
2297
|
termsAndConditions?: string | undefined;
|
|
@@ -2264,6 +2303,7 @@ declare const partialStringsSchema: ZodObject<{
|
|
|
2264
2303
|
unrecoverableError?: string | undefined;
|
|
2265
2304
|
unknownLoginError?: string | undefined;
|
|
2266
2305
|
unknownNetworkError?: string | undefined;
|
|
2306
|
+
url?: string | undefined;
|
|
2267
2307
|
useDeviceForIdentityVerification?: string | undefined;
|
|
2268
2308
|
userName?: string | undefined;
|
|
2269
2309
|
usernameRequirements?: string | undefined;
|
|
@@ -2297,14 +2337,14 @@ declare const partialStyleSchema: ZodObject<{
|
|
|
2297
2337
|
}>>>;
|
|
2298
2338
|
sections: ZodOptional<ZodOptional<ZodObject<{
|
|
2299
2339
|
header: ZodOptional<ZodBoolean>;
|
|
2300
|
-
}, "
|
|
2340
|
+
}, "strict", ZodTypeAny, {
|
|
2301
2341
|
header?: boolean | undefined;
|
|
2302
2342
|
}, {
|
|
2303
2343
|
header?: boolean | undefined;
|
|
2304
2344
|
}>>>;
|
|
2305
2345
|
stage: ZodOptional<ZodOptional<ZodObject<{
|
|
2306
2346
|
icon: ZodOptional<ZodBoolean>;
|
|
2307
|
-
}, "
|
|
2347
|
+
}, "strict", ZodTypeAny, {
|
|
2308
2348
|
icon?: boolean | undefined;
|
|
2309
2349
|
}, {
|
|
2310
2350
|
icon?: boolean | undefined;
|
|
@@ -2353,6 +2393,7 @@ interface JourneyOptionsStart {
|
|
|
2353
2393
|
forgerock?: StepOptions;
|
|
2354
2394
|
journey?: string;
|
|
2355
2395
|
resumeUrl?: string;
|
|
2396
|
+
recaptchaAction?: string;
|
|
2356
2397
|
}
|
|
2357
2398
|
interface WidgetConfigOptions {
|
|
2358
2399
|
forgerock?: TypeOf<typeof partialConfigSchema>;
|