@authhero/adapter-interfaces 3.10.0 → 3.12.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/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +55 -1
- package/dist/adapter-interfaces.mjs +461 -404
- package/dist/sql.cjs +1 -0
- package/dist/sql.d.ts +114 -0
- package/dist/sql.mjs +56 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/sql/dates.d.ts +49 -0
- package/dist/types/sql/index.d.ts +7 -0
- package/dist/types/sql/transform.d.ts +62 -0
- package/dist/types/utils/base32.d.ts +16 -0
- package/dist/types/utils/base64.d.ts +13 -0
- package/dist/types/utils/cursor.d.ts +7 -0
- package/dist/types/utils/hex.d.ts +8 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/lucene.d.ts +6 -0
- package/package.json +8 -3
|
@@ -40,16 +40,16 @@ var t = e.object({
|
|
|
40
40
|
"partial",
|
|
41
41
|
"canceled",
|
|
42
42
|
"suspended"
|
|
43
|
-
]),
|
|
43
|
+
]), l = e.object({
|
|
44
44
|
id: e.string(),
|
|
45
45
|
msg: e.string(),
|
|
46
46
|
url: e.string().optional()
|
|
47
|
-
}),
|
|
47
|
+
}), te = e.object({
|
|
48
48
|
action_name: e.string(),
|
|
49
|
-
error:
|
|
49
|
+
error: l.nullable(),
|
|
50
50
|
started_at: e.string(),
|
|
51
51
|
ended_at: e.string()
|
|
52
|
-
}),
|
|
52
|
+
}), ne = e.object({
|
|
53
53
|
level: e.enum([
|
|
54
54
|
"log",
|
|
55
55
|
"info",
|
|
@@ -58,23 +58,23 @@ var t = e.object({
|
|
|
58
58
|
"debug"
|
|
59
59
|
]),
|
|
60
60
|
message: e.string()
|
|
61
|
-
}),
|
|
61
|
+
}), re = e.array(e.object({
|
|
62
62
|
action_name: e.string(),
|
|
63
|
-
lines: e.array(
|
|
64
|
-
})),
|
|
63
|
+
lines: e.array(ne)
|
|
64
|
+
})), ie = e.object({
|
|
65
65
|
id: e.string(),
|
|
66
66
|
tenant_id: e.string(),
|
|
67
67
|
trigger_id: s,
|
|
68
68
|
status: c,
|
|
69
|
-
results: e.array(
|
|
70
|
-
logs:
|
|
69
|
+
results: e.array(te),
|
|
70
|
+
logs: re.optional(),
|
|
71
71
|
created_at: e.string(),
|
|
72
72
|
updated_at: e.string()
|
|
73
|
-
}),
|
|
73
|
+
}), ae = ie.omit({
|
|
74
74
|
tenant_id: !0,
|
|
75
75
|
created_at: !0,
|
|
76
76
|
updated_at: !0
|
|
77
|
-
}),
|
|
77
|
+
}), oe = e.object({
|
|
78
78
|
action_id: e.string(),
|
|
79
79
|
code: e.string().max(1e5),
|
|
80
80
|
runtime: e.string().max(50).optional(),
|
|
@@ -82,16 +82,16 @@ var t = e.object({
|
|
|
82
82
|
secrets: e.array(i).optional(),
|
|
83
83
|
supported_triggers: e.array(n).optional(),
|
|
84
84
|
deployed: e.boolean().default(!0)
|
|
85
|
-
}),
|
|
85
|
+
}), se = oe.extend({
|
|
86
86
|
id: e.string(),
|
|
87
87
|
tenant_id: e.string(),
|
|
88
88
|
number: e.number().int()
|
|
89
|
-
}).extend(t.shape),
|
|
89
|
+
}).extend(t.shape), ce = e.enum([
|
|
90
90
|
"user_action",
|
|
91
91
|
"admin_action",
|
|
92
92
|
"system",
|
|
93
93
|
"api"
|
|
94
|
-
]),
|
|
94
|
+
]), le = e.object({
|
|
95
95
|
type: e.enum([
|
|
96
96
|
"user",
|
|
97
97
|
"admin",
|
|
@@ -105,7 +105,7 @@ var t = e.object({
|
|
|
105
105
|
org_name: e.string().optional(),
|
|
106
106
|
scopes: e.array(e.string()).optional(),
|
|
107
107
|
client_id: e.string().optional()
|
|
108
|
-
}),
|
|
108
|
+
}), ue = e.object({
|
|
109
109
|
type: e.string(),
|
|
110
110
|
id: e.string(),
|
|
111
111
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -114,7 +114,7 @@ var t = e.object({
|
|
|
114
114
|
old: e.unknown(),
|
|
115
115
|
new: e.unknown()
|
|
116
116
|
})).optional()
|
|
117
|
-
}),
|
|
117
|
+
}), de = e.object({
|
|
118
118
|
method: e.string(),
|
|
119
119
|
path: e.string(),
|
|
120
120
|
query: e.record(e.string(), e.string()).optional(),
|
|
@@ -122,30 +122,30 @@ var t = e.object({
|
|
|
122
122
|
ip: e.string(),
|
|
123
123
|
user_agent: e.string().optional(),
|
|
124
124
|
correlation_id: e.string().optional()
|
|
125
|
-
}),
|
|
125
|
+
}), fe = e.object({
|
|
126
126
|
status_code: e.number(),
|
|
127
127
|
body: e.unknown().optional()
|
|
128
|
-
}),
|
|
128
|
+
}), pe = e.object({
|
|
129
129
|
country_code: e.string(),
|
|
130
130
|
city_name: e.string(),
|
|
131
131
|
latitude: e.string(),
|
|
132
132
|
longitude: e.string(),
|
|
133
133
|
time_zone: e.string(),
|
|
134
134
|
continent_code: e.string()
|
|
135
|
-
}),
|
|
135
|
+
}), me = e.object({
|
|
136
136
|
name: e.string(),
|
|
137
137
|
version: e.string(),
|
|
138
138
|
env: e.record(e.string(), e.string()).optional()
|
|
139
|
-
}),
|
|
139
|
+
}), he = e.object({
|
|
140
140
|
tenant_id: e.string(),
|
|
141
141
|
event_type: e.string(),
|
|
142
142
|
log_type: e.string(),
|
|
143
143
|
description: e.string().optional(),
|
|
144
|
-
category:
|
|
145
|
-
actor:
|
|
146
|
-
target:
|
|
147
|
-
request:
|
|
148
|
-
response:
|
|
144
|
+
category: ce,
|
|
145
|
+
actor: le,
|
|
146
|
+
target: ue,
|
|
147
|
+
request: de,
|
|
148
|
+
response: fe.optional(),
|
|
149
149
|
connection: e.string().optional(),
|
|
150
150
|
connection_id: e.string().optional(),
|
|
151
151
|
client_name: e.string().optional(),
|
|
@@ -153,12 +153,12 @@ var t = e.object({
|
|
|
153
153
|
strategy_type: e.string().optional(),
|
|
154
154
|
audience: e.string().optional(),
|
|
155
155
|
scope: e.string().optional(),
|
|
156
|
-
location:
|
|
157
|
-
auth0_client:
|
|
156
|
+
location: pe.optional(),
|
|
157
|
+
auth0_client: me.optional(),
|
|
158
158
|
hostname: e.string(),
|
|
159
159
|
is_mobile: e.boolean().optional(),
|
|
160
160
|
timestamp: e.string()
|
|
161
|
-
}), ge =
|
|
161
|
+
}), ge = he.extend({ id: e.string() }), _e = e.enum([
|
|
162
162
|
"AUTH0",
|
|
163
163
|
"EMAIL",
|
|
164
164
|
"REDIRECT"
|
|
@@ -244,7 +244,7 @@ var t = e.object({
|
|
|
244
244
|
phone_number: e.string().optional(),
|
|
245
245
|
phone_verified: e.boolean().optional(),
|
|
246
246
|
family_name: e.string().optional()
|
|
247
|
-
}).catchall(e.any()),
|
|
247
|
+
}).catchall(e.any()), v = e.object({
|
|
248
248
|
connection: e.string(),
|
|
249
249
|
user_id: e.string(),
|
|
250
250
|
provider: e.string(),
|
|
@@ -258,14 +258,14 @@ var t = e.object({
|
|
|
258
258
|
access_token_secret: e.string().optional(),
|
|
259
259
|
refresh_token: e.string().optional(),
|
|
260
260
|
profileData: _.optional()
|
|
261
|
-
}),
|
|
261
|
+
}), y = e.object({
|
|
262
262
|
formatted: e.string().optional(),
|
|
263
263
|
street_address: e.string().optional(),
|
|
264
264
|
locality: e.string().optional(),
|
|
265
265
|
region: e.string().optional(),
|
|
266
266
|
postal_code: e.string().optional(),
|
|
267
267
|
country: e.string().optional()
|
|
268
|
-
}).optional(),
|
|
268
|
+
}).optional(), b = e.object({
|
|
269
269
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
270
270
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
271
271
|
phone_number: e.string().optional(),
|
|
@@ -288,8 +288,8 @@ var t = e.object({
|
|
|
288
288
|
gender: e.string().optional(),
|
|
289
289
|
birthdate: e.string().optional(),
|
|
290
290
|
zoneinfo: e.string().optional(),
|
|
291
|
-
address:
|
|
292
|
-
}),
|
|
291
|
+
address: y
|
|
292
|
+
}), x = b.extend({
|
|
293
293
|
email_verified: e.boolean().default(!1),
|
|
294
294
|
verify_email: e.boolean().optional(),
|
|
295
295
|
last_ip: e.string().optional(),
|
|
@@ -303,29 +303,29 @@ var t = e.object({
|
|
|
303
303
|
hash: e.string(),
|
|
304
304
|
algorithm: e.string()
|
|
305
305
|
}).optional()
|
|
306
|
-
}),
|
|
306
|
+
}), S = x.omit({ password: !0 }).extend(t.shape).extend({
|
|
307
307
|
user_id: e.string(),
|
|
308
308
|
provider: e.string(),
|
|
309
309
|
is_social: e.boolean(),
|
|
310
310
|
email: e.string().optional(),
|
|
311
311
|
login_count: e.number().default(0),
|
|
312
|
-
identities: e.array(
|
|
313
|
-
}),
|
|
312
|
+
identities: e.array(v).optional()
|
|
313
|
+
}), Ce = S.omit({ registration_completed_at: !0 }), we = b.extend({
|
|
314
314
|
login_count: e.number(),
|
|
315
315
|
multifactor: e.array(e.string()).optional(),
|
|
316
316
|
last_ip: e.string().optional(),
|
|
317
317
|
last_login: e.string().optional(),
|
|
318
318
|
user_id: e.string()
|
|
319
|
-
}).catchall(e.any()),
|
|
319
|
+
}).catchall(e.any()), Te = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ee = (e = 21) => {
|
|
320
320
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
321
|
-
for (; e--;) t +=
|
|
321
|
+
for (; e--;) t += Te[n[e] & 63];
|
|
322
322
|
return t;
|
|
323
|
-
},
|
|
323
|
+
}, C = e.object({
|
|
324
324
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
325
325
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
326
326
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
327
327
|
global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
|
|
328
|
-
client_secret: e.string().default(() =>
|
|
328
|
+
client_secret: e.string().default(() => Ee()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
329
329
|
app_type: e.enum([
|
|
330
330
|
"native",
|
|
331
331
|
"spa",
|
|
@@ -432,10 +432,10 @@ var t = e.object({
|
|
|
432
432
|
]).optional().openapi({ description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token." }),
|
|
433
433
|
registration_metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability." }),
|
|
434
434
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies." })
|
|
435
|
-
}),
|
|
435
|
+
}), De = e.object({
|
|
436
436
|
created_at: e.string(),
|
|
437
437
|
updated_at: e.string()
|
|
438
|
-
}).extend(
|
|
438
|
+
}).extend(C.shape).extend({ client_id: e.string() }), w = e.object({
|
|
439
439
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
440
440
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
441
441
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -448,38 +448,38 @@ var t = e.object({
|
|
|
448
448
|
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
449
449
|
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
450
450
|
authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
|
|
451
|
-
}),
|
|
451
|
+
}), T = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(w.shape).extend({
|
|
452
452
|
created_at: e.string().optional(),
|
|
453
453
|
updated_at: e.string().optional()
|
|
454
|
-
}),
|
|
454
|
+
}), Oe = e.array(T), E = e.enum(["iat", "rat"]), D = e.object({
|
|
455
455
|
id: e.string(),
|
|
456
456
|
token_hash: e.string(),
|
|
457
|
-
type:
|
|
457
|
+
type: E,
|
|
458
458
|
client_id: e.string().optional(),
|
|
459
459
|
sub: e.string().optional(),
|
|
460
460
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
461
461
|
single_use: e.boolean().default(!1),
|
|
462
462
|
expires_at: e.string().optional()
|
|
463
|
-
}),
|
|
463
|
+
}), ke = e.object({
|
|
464
464
|
created_at: e.string(),
|
|
465
465
|
used_at: e.string().optional(),
|
|
466
466
|
revoked_at: e.string().optional()
|
|
467
|
-
}).extend(
|
|
467
|
+
}).extend(D.shape), O = e.object({
|
|
468
468
|
x: e.number(),
|
|
469
469
|
y: e.number()
|
|
470
|
-
}),
|
|
470
|
+
}), k = /* @__PURE__ */ function(e) {
|
|
471
471
|
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
472
|
-
}({}),
|
|
472
|
+
}({}), A = /* @__PURE__ */ function(e) {
|
|
473
473
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
474
|
-
}({}),
|
|
474
|
+
}({}), j = e.object({
|
|
475
475
|
id: e.string(),
|
|
476
|
-
category: e.nativeEnum(
|
|
477
|
-
type: e.nativeEnum(
|
|
478
|
-
}),
|
|
476
|
+
category: e.nativeEnum(A),
|
|
477
|
+
type: e.nativeEnum(k)
|
|
478
|
+
}), M = j.extend({
|
|
479
479
|
category: e.literal("BLOCK"),
|
|
480
480
|
type: e.literal("RICH_TEXT"),
|
|
481
481
|
config: e.object({ content: e.string() }).passthrough()
|
|
482
|
-
}),
|
|
482
|
+
}), N = j.extend({
|
|
483
483
|
category: e.literal("BLOCK"),
|
|
484
484
|
type: e.union([
|
|
485
485
|
e.literal("NEXT_BUTTON"),
|
|
@@ -487,13 +487,13 @@ var t = e.object({
|
|
|
487
487
|
e.literal("SUBMIT_BUTTON")
|
|
488
488
|
]),
|
|
489
489
|
config: e.object({ text: e.string() }).passthrough()
|
|
490
|
-
}),
|
|
490
|
+
}), P = j.extend({
|
|
491
491
|
category: e.literal("FIELD"),
|
|
492
492
|
type: e.literal("LEGAL"),
|
|
493
493
|
required: e.boolean().optional(),
|
|
494
494
|
sensitive: e.boolean().optional(),
|
|
495
495
|
config: e.object({ text: e.string() }).passthrough()
|
|
496
|
-
}),
|
|
496
|
+
}), F = j.extend({
|
|
497
497
|
category: e.literal("FIELD"),
|
|
498
498
|
type: e.union([
|
|
499
499
|
e.literal("TEXT"),
|
|
@@ -513,40 +513,40 @@ var t = e.object({
|
|
|
513
513
|
label: e.string().optional(),
|
|
514
514
|
placeholder: e.string().optional()
|
|
515
515
|
}).passthrough()
|
|
516
|
-
}),
|
|
516
|
+
}), I = e.object({
|
|
517
517
|
id: e.string(),
|
|
518
518
|
category: e.string(),
|
|
519
519
|
type: e.string()
|
|
520
|
-
}).passthrough(),
|
|
521
|
-
j,
|
|
520
|
+
}).passthrough(), L = e.union([
|
|
522
521
|
M,
|
|
523
522
|
N,
|
|
524
523
|
P,
|
|
525
|
-
F
|
|
526
|
-
|
|
524
|
+
F,
|
|
525
|
+
I
|
|
526
|
+
]), Ae = /* @__PURE__ */ function(e) {
|
|
527
527
|
return e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e;
|
|
528
|
-
}({}),
|
|
528
|
+
}({}), R = e.object({
|
|
529
529
|
id: e.string(),
|
|
530
530
|
type: e.literal("STEP"),
|
|
531
|
-
coordinates:
|
|
531
|
+
coordinates: O,
|
|
532
532
|
alias: e.string().optional(),
|
|
533
533
|
config: e.object({
|
|
534
|
-
components: e.array(
|
|
534
|
+
components: e.array(L),
|
|
535
535
|
next_node: e.string()
|
|
536
536
|
}).passthrough()
|
|
537
|
-
}),
|
|
537
|
+
}), je = e.object({
|
|
538
538
|
id: e.string(),
|
|
539
539
|
type: e.literal("FLOW"),
|
|
540
|
-
coordinates:
|
|
540
|
+
coordinates: O,
|
|
541
541
|
alias: e.string().optional(),
|
|
542
542
|
config: e.object({
|
|
543
543
|
flow_id: e.string(),
|
|
544
544
|
next_node: e.string()
|
|
545
545
|
})
|
|
546
|
-
}),
|
|
546
|
+
}), Me = e.object({
|
|
547
547
|
id: e.string(),
|
|
548
548
|
type: e.literal("ACTION"),
|
|
549
|
-
coordinates:
|
|
549
|
+
coordinates: O,
|
|
550
550
|
alias: e.string().optional(),
|
|
551
551
|
config: e.object({
|
|
552
552
|
action_type: e.enum(["REDIRECT"]).openapi({ description: "The type of action to perform" }),
|
|
@@ -558,56 +558,56 @@ var t = e.object({
|
|
|
558
558
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
559
559
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
560
560
|
}).passthrough()
|
|
561
|
-
}),
|
|
561
|
+
}), Ne = e.object({
|
|
562
562
|
id: e.string(),
|
|
563
563
|
type: e.string(),
|
|
564
|
-
coordinates:
|
|
565
|
-
}).passthrough(),
|
|
566
|
-
|
|
564
|
+
coordinates: O
|
|
565
|
+
}).passthrough(), Pe = e.union([
|
|
566
|
+
R,
|
|
567
|
+
je,
|
|
567
568
|
Me,
|
|
568
|
-
Ne
|
|
569
|
-
|
|
570
|
-
]), Ie = e.object({
|
|
569
|
+
Ne
|
|
570
|
+
]), Fe = e.object({
|
|
571
571
|
next_node: e.string(),
|
|
572
|
-
coordinates:
|
|
573
|
-
}).passthrough(),
|
|
572
|
+
coordinates: O
|
|
573
|
+
}).passthrough(), Ie = e.object({
|
|
574
574
|
resume_flow: e.boolean().optional(),
|
|
575
|
-
coordinates:
|
|
576
|
-
}).passthrough(),
|
|
575
|
+
coordinates: O
|
|
576
|
+
}).passthrough(), Le = e.object({
|
|
577
577
|
id: e.string(),
|
|
578
578
|
name: e.string(),
|
|
579
579
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
580
|
-
nodes: e.array(
|
|
581
|
-
start:
|
|
582
|
-
ending:
|
|
580
|
+
nodes: e.array(Pe),
|
|
581
|
+
start: Fe,
|
|
582
|
+
ending: Ie,
|
|
583
583
|
created_at: e.string(),
|
|
584
584
|
updated_at: e.string(),
|
|
585
585
|
links: e.object({
|
|
586
586
|
sdkSrc: e.string().optional(),
|
|
587
587
|
sdk_src: e.string().optional()
|
|
588
588
|
}).passthrough()
|
|
589
|
-
}).passthrough(),
|
|
589
|
+
}).passthrough(), Re = Le.omit({
|
|
590
590
|
id: !0,
|
|
591
591
|
created_at: !0,
|
|
592
592
|
updated_at: !0
|
|
593
|
-
}),
|
|
593
|
+
}), ze = /* @__PURE__ */ function(e) {
|
|
594
594
|
return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
|
|
595
|
-
}({}),
|
|
595
|
+
}({}), Be = /* @__PURE__ */ function(e) {
|
|
596
596
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
597
|
-
}({}),
|
|
597
|
+
}({}), Ve = /* @__PURE__ */ function(e) {
|
|
598
598
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
599
|
-
}({}),
|
|
599
|
+
}({}), He = e.union([e.null(), e.object({
|
|
600
600
|
essential: e.boolean().optional(),
|
|
601
601
|
value: e.unknown().optional(),
|
|
602
602
|
values: e.array(e.unknown()).optional()
|
|
603
|
-
})]).nullable(),
|
|
604
|
-
userinfo: e.record(e.string(),
|
|
605
|
-
id_token: e.record(e.string(),
|
|
606
|
-
}),
|
|
603
|
+
})]).nullable(), Ue = e.object({
|
|
604
|
+
userinfo: e.record(e.string(), He).optional(),
|
|
605
|
+
id_token: e.record(e.string(), He).optional()
|
|
606
|
+
}), We = e.object({
|
|
607
607
|
client_id: e.string(),
|
|
608
608
|
act_as: e.string().optional(),
|
|
609
|
-
response_type: e.nativeEnum(
|
|
610
|
-
response_mode: e.nativeEnum(
|
|
609
|
+
response_type: e.nativeEnum(ze).optional(),
|
|
610
|
+
response_mode: e.nativeEnum(Be).optional(),
|
|
611
611
|
redirect_uri: e.string().optional(),
|
|
612
612
|
audience: e.string().optional(),
|
|
613
613
|
organization: e.string().optional(),
|
|
@@ -615,15 +615,15 @@ var t = e.object({
|
|
|
615
615
|
nonce: e.string().optional(),
|
|
616
616
|
scope: e.string().optional(),
|
|
617
617
|
prompt: e.string().optional(),
|
|
618
|
-
code_challenge_method: e.nativeEnum(
|
|
618
|
+
code_challenge_method: e.nativeEnum(Ve).optional(),
|
|
619
619
|
code_challenge: e.string().optional(),
|
|
620
620
|
username: e.string().optional(),
|
|
621
621
|
ui_locales: e.string().optional(),
|
|
622
622
|
max_age: e.number().optional(),
|
|
623
623
|
acr_values: e.string().optional(),
|
|
624
|
-
claims:
|
|
624
|
+
claims: Ue.optional(),
|
|
625
625
|
vendor_id: e.string().optional()
|
|
626
|
-
}),
|
|
626
|
+
}), Ge = e.object({
|
|
627
627
|
colors: e.object({
|
|
628
628
|
primary: e.string(),
|
|
629
629
|
page_background: e.union([e.string(), e.object({
|
|
@@ -642,7 +642,7 @@ var t = e.object({
|
|
|
642
642
|
"light",
|
|
643
643
|
"auto"
|
|
644
644
|
]).optional()
|
|
645
|
-
}),
|
|
645
|
+
}), Ke = e.enum([
|
|
646
646
|
"password_reset",
|
|
647
647
|
"email_verification",
|
|
648
648
|
"otp",
|
|
@@ -650,11 +650,11 @@ var t = e.object({
|
|
|
650
650
|
"authorization_code",
|
|
651
651
|
"oauth2_state",
|
|
652
652
|
"ticket"
|
|
653
|
-
]),
|
|
653
|
+
]), qe = e.object({
|
|
654
654
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
655
655
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
656
656
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
657
|
-
code_type:
|
|
657
|
+
code_type: Ke,
|
|
658
658
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
659
659
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
660
660
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -665,7 +665,7 @@ var t = e.object({
|
|
|
665
665
|
expires_at: e.string(),
|
|
666
666
|
used_at: e.string().optional(),
|
|
667
667
|
user_id: e.string().optional()
|
|
668
|
-
}),
|
|
668
|
+
}), Je = qe.extend({ created_at: e.string() }), Ye = e.object({
|
|
669
669
|
kid: e.string().optional(),
|
|
670
670
|
team_id: e.string().optional(),
|
|
671
671
|
realms: e.string().optional(),
|
|
@@ -781,23 +781,23 @@ var t = e.object({
|
|
|
781
781
|
"never_on_login"
|
|
782
782
|
]).optional()
|
|
783
783
|
});
|
|
784
|
-
function
|
|
784
|
+
function z(e) {
|
|
785
785
|
if (e !== null) {
|
|
786
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
786
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(z);
|
|
787
787
|
if (e && typeof e == "object") {
|
|
788
788
|
let t = {};
|
|
789
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
789
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = z(r));
|
|
790
790
|
return t;
|
|
791
791
|
}
|
|
792
792
|
return e;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
|
-
var
|
|
795
|
+
var Xe = e.object({
|
|
796
796
|
id: e.string().optional(),
|
|
797
797
|
name: e.string(),
|
|
798
798
|
display_name: e.string().optional(),
|
|
799
799
|
strategy: e.string(),
|
|
800
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
800
|
+
options: e.preprocess((e) => e === null ? {} : z(e), Ye).default({}),
|
|
801
801
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
802
802
|
response_type: e.custom().optional(),
|
|
803
803
|
response_mode: e.custom().optional(),
|
|
@@ -805,11 +805,11 @@ var Ze = e.object({
|
|
|
805
805
|
show_as_button: e.boolean().optional(),
|
|
806
806
|
metadata: e.record(e.string(), e.any()).optional(),
|
|
807
807
|
is_system: e.boolean().optional()
|
|
808
|
-
}),
|
|
808
|
+
}), Ze = e.object({
|
|
809
809
|
id: e.string(),
|
|
810
810
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
811
811
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
812
|
-
}).extend(
|
|
812
|
+
}).extend(Xe.shape), B = e.object({
|
|
813
813
|
domain: e.string(),
|
|
814
814
|
custom_domain_id: e.string().optional(),
|
|
815
815
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -823,7 +823,7 @@ var Ze = e.object({
|
|
|
823
823
|
"null"
|
|
824
824
|
]).optional(),
|
|
825
825
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
826
|
-
}),
|
|
826
|
+
}), Qe = e.discriminatedUnion("name", [e.object({
|
|
827
827
|
name: e.literal("txt"),
|
|
828
828
|
record: e.string(),
|
|
829
829
|
domain: e.string()
|
|
@@ -831,7 +831,7 @@ var Ze = e.object({
|
|
|
831
831
|
name: e.literal("http"),
|
|
832
832
|
http_body: e.string(),
|
|
833
833
|
http_url: e.string()
|
|
834
|
-
})]),
|
|
834
|
+
})]), $e = B.extend({
|
|
835
835
|
custom_domain_id: e.string(),
|
|
836
836
|
primary: e.boolean(),
|
|
837
837
|
status: e.enum([
|
|
@@ -841,26 +841,26 @@ var Ze = e.object({
|
|
|
841
841
|
"ready"
|
|
842
842
|
]),
|
|
843
843
|
origin_domain_name: e.string().optional(),
|
|
844
|
-
verification: e.object({ methods: e.array(
|
|
844
|
+
verification: e.object({ methods: e.array(Qe) }).optional(),
|
|
845
845
|
tls_policy: e.string().optional()
|
|
846
|
-
}),
|
|
846
|
+
}), et = B.pick({
|
|
847
847
|
tls_policy: !0,
|
|
848
848
|
custom_client_ip_header: !0,
|
|
849
849
|
domain_metadata: !0
|
|
850
|
-
}).strict(),
|
|
850
|
+
}).strict(), tt = $e.extend({ tenant_id: e.string() }), nt = e.object({
|
|
851
851
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
852
852
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
853
|
-
}),
|
|
853
|
+
}), V = e.object({
|
|
854
854
|
id: e.string(),
|
|
855
855
|
order: e.number().optional(),
|
|
856
856
|
visible: e.boolean().optional().default(!0)
|
|
857
|
-
}),
|
|
857
|
+
}), H = V.extend({ category: e.literal("BLOCK").optional() }), rt = H.extend({
|
|
858
858
|
type: e.literal("DIVIDER"),
|
|
859
859
|
config: e.object({ text: e.string().optional() }).optional()
|
|
860
|
-
}),
|
|
860
|
+
}), it = H.extend({
|
|
861
861
|
type: e.literal("HTML"),
|
|
862
862
|
config: e.object({ content: e.string().optional() }).optional()
|
|
863
|
-
}),
|
|
863
|
+
}), at = H.extend({
|
|
864
864
|
type: e.literal("IMAGE"),
|
|
865
865
|
config: e.object({
|
|
866
866
|
src: e.string().optional(),
|
|
@@ -868,43 +868,43 @@ var Ze = e.object({
|
|
|
868
868
|
width: e.number().optional(),
|
|
869
869
|
height: e.number().optional()
|
|
870
870
|
}).optional()
|
|
871
|
-
}),
|
|
871
|
+
}), ot = H.extend({
|
|
872
872
|
type: e.literal("JUMP_BUTTON"),
|
|
873
873
|
config: e.object({
|
|
874
874
|
text: e.string().optional(),
|
|
875
875
|
target_step: e.string().optional()
|
|
876
876
|
})
|
|
877
|
-
}),
|
|
877
|
+
}), st = H.extend({
|
|
878
878
|
type: e.literal("RESEND_BUTTON"),
|
|
879
879
|
config: e.object({
|
|
880
880
|
text: e.string().optional(),
|
|
881
881
|
resend_action: e.string().optional()
|
|
882
882
|
})
|
|
883
|
-
}),
|
|
883
|
+
}), ct = H.extend({
|
|
884
884
|
type: e.literal("NEXT_BUTTON"),
|
|
885
885
|
config: e.object({ text: e.string().optional() })
|
|
886
|
-
}),
|
|
886
|
+
}), lt = H.extend({
|
|
887
887
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
888
888
|
config: e.object({ text: e.string().optional() })
|
|
889
|
-
}),
|
|
889
|
+
}), ut = H.extend({
|
|
890
890
|
type: e.literal("RICH_TEXT"),
|
|
891
891
|
config: e.object({ content: e.string().optional() }).optional()
|
|
892
|
-
}),
|
|
892
|
+
}), U = V.extend({
|
|
893
893
|
category: e.literal("WIDGET").optional(),
|
|
894
894
|
label: e.string().min(1).optional(),
|
|
895
895
|
hint: e.string().min(1).max(500).optional(),
|
|
896
896
|
required: e.boolean().optional(),
|
|
897
897
|
sensitive: e.boolean().optional()
|
|
898
|
-
}),
|
|
898
|
+
}), dt = U.extend({
|
|
899
899
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
900
900
|
config: e.object({ credential_type: e.string().optional() })
|
|
901
|
-
}),
|
|
901
|
+
}), ft = U.extend({
|
|
902
902
|
type: e.literal("GMAPS_ADDRESS"),
|
|
903
903
|
config: e.object({ api_key: e.string().optional() })
|
|
904
|
-
}),
|
|
904
|
+
}), pt = U.extend({
|
|
905
905
|
type: e.literal("RECAPTCHA"),
|
|
906
906
|
config: e.object({ site_key: e.string().optional() })
|
|
907
|
-
}),
|
|
907
|
+
}), W = V.extend({
|
|
908
908
|
category: e.literal("FIELD").optional(),
|
|
909
909
|
label: e.string().min(1).optional(),
|
|
910
910
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -920,10 +920,10 @@ var Ze = e.object({
|
|
|
920
920
|
})).optional(),
|
|
921
921
|
required: e.boolean().optional(),
|
|
922
922
|
sensitive: e.boolean().optional()
|
|
923
|
-
}),
|
|
923
|
+
}), mt = W.extend({
|
|
924
924
|
type: e.literal("BOOLEAN"),
|
|
925
925
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
926
|
-
}),
|
|
926
|
+
}), ht = W.extend({
|
|
927
927
|
type: e.literal("CARDS"),
|
|
928
928
|
config: e.object({
|
|
929
929
|
options: e.array(e.object({
|
|
@@ -934,7 +934,7 @@ var Ze = e.object({
|
|
|
934
934
|
})).optional(),
|
|
935
935
|
multi_select: e.boolean().optional()
|
|
936
936
|
}).optional()
|
|
937
|
-
}),
|
|
937
|
+
}), gt = W.extend({
|
|
938
938
|
type: e.literal("CHOICE"),
|
|
939
939
|
config: e.object({
|
|
940
940
|
options: e.array(e.object({
|
|
@@ -945,7 +945,7 @@ var Ze = e.object({
|
|
|
945
945
|
multiple: e.boolean().optional(),
|
|
946
946
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
947
947
|
}).optional()
|
|
948
|
-
}),
|
|
948
|
+
}), _t = W.extend({
|
|
949
949
|
type: e.literal("CODE"),
|
|
950
950
|
config: e.object({
|
|
951
951
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -962,7 +962,7 @@ var Ze = e.object({
|
|
|
962
962
|
message: "default_value is longer than the configured length",
|
|
963
963
|
path: ["default_value"]
|
|
964
964
|
}).optional()
|
|
965
|
-
}),
|
|
965
|
+
}), vt = W.extend({
|
|
966
966
|
type: e.literal("CUSTOM"),
|
|
967
967
|
config: e.object({
|
|
968
968
|
component: e.string().optional(),
|
|
@@ -970,7 +970,7 @@ var Ze = e.object({
|
|
|
970
970
|
schema: e.record(e.string(), e.any()).optional(),
|
|
971
971
|
code: e.string().optional()
|
|
972
972
|
})
|
|
973
|
-
}),
|
|
973
|
+
}), yt = W.extend({
|
|
974
974
|
type: e.literal("DATE"),
|
|
975
975
|
config: e.object({
|
|
976
976
|
format: e.string().optional(),
|
|
@@ -978,7 +978,7 @@ var Ze = e.object({
|
|
|
978
978
|
max: e.string().optional(),
|
|
979
979
|
default_value: e.string().optional()
|
|
980
980
|
}).optional()
|
|
981
|
-
}),
|
|
981
|
+
}), bt = W.extend({
|
|
982
982
|
type: e.literal("DROPDOWN"),
|
|
983
983
|
config: e.object({
|
|
984
984
|
options: e.array(e.object({
|
|
@@ -990,26 +990,26 @@ var Ze = e.object({
|
|
|
990
990
|
multiple: e.boolean().optional(),
|
|
991
991
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
992
992
|
}).optional()
|
|
993
|
-
}),
|
|
993
|
+
}), xt = W.extend({
|
|
994
994
|
type: e.literal("EMAIL"),
|
|
995
995
|
config: e.object({
|
|
996
996
|
placeholder: e.string().optional(),
|
|
997
997
|
default_value: e.string().optional()
|
|
998
998
|
}).optional()
|
|
999
|
-
}),
|
|
999
|
+
}), St = W.extend({
|
|
1000
1000
|
type: e.literal("FILE"),
|
|
1001
1001
|
config: e.object({
|
|
1002
1002
|
accept: e.string().optional(),
|
|
1003
1003
|
max_size: e.number().optional(),
|
|
1004
1004
|
multiple: e.boolean().optional()
|
|
1005
1005
|
}).optional()
|
|
1006
|
-
}),
|
|
1006
|
+
}), Ct = W.extend({
|
|
1007
1007
|
type: e.literal("LEGAL"),
|
|
1008
1008
|
config: e.object({
|
|
1009
1009
|
text: e.string(),
|
|
1010
1010
|
html: e.boolean().optional()
|
|
1011
1011
|
}).optional()
|
|
1012
|
-
}),
|
|
1012
|
+
}), wt = W.extend({
|
|
1013
1013
|
type: e.literal("NUMBER"),
|
|
1014
1014
|
config: e.object({
|
|
1015
1015
|
placeholder: e.string().optional(),
|
|
@@ -1018,7 +1018,7 @@ var Ze = e.object({
|
|
|
1018
1018
|
step: e.number().optional(),
|
|
1019
1019
|
default_value: e.string().optional()
|
|
1020
1020
|
}).optional()
|
|
1021
|
-
}),
|
|
1021
|
+
}), Tt = W.extend({
|
|
1022
1022
|
type: e.literal("PASSWORD"),
|
|
1023
1023
|
config: e.object({
|
|
1024
1024
|
placeholder: e.string().optional(),
|
|
@@ -1027,13 +1027,13 @@ var Ze = e.object({
|
|
|
1027
1027
|
forgot_password_link: e.string().optional(),
|
|
1028
1028
|
default_value: e.string().optional()
|
|
1029
1029
|
}).optional()
|
|
1030
|
-
}),
|
|
1030
|
+
}), Et = W.extend({
|
|
1031
1031
|
type: e.literal("PAYMENT"),
|
|
1032
1032
|
config: e.object({
|
|
1033
1033
|
provider: e.string().optional(),
|
|
1034
1034
|
currency: e.string().optional()
|
|
1035
1035
|
}).optional()
|
|
1036
|
-
}),
|
|
1036
|
+
}), Dt = W.extend({
|
|
1037
1037
|
type: e.literal("SOCIAL"),
|
|
1038
1038
|
config: e.object({
|
|
1039
1039
|
providers: e.array(e.string()).optional(),
|
|
@@ -1045,7 +1045,7 @@ var Ze = e.object({
|
|
|
1045
1045
|
href: e.string().optional()
|
|
1046
1046
|
})).optional()
|
|
1047
1047
|
}).optional()
|
|
1048
|
-
}),
|
|
1048
|
+
}), Ot = W.extend({
|
|
1049
1049
|
type: e.literal("TEL"),
|
|
1050
1050
|
config: e.object({
|
|
1051
1051
|
placeholder: e.string().optional(),
|
|
@@ -1053,7 +1053,7 @@ var Ze = e.object({
|
|
|
1053
1053
|
default_value: e.string().optional(),
|
|
1054
1054
|
allow_email: e.boolean().optional()
|
|
1055
1055
|
}).optional()
|
|
1056
|
-
}),
|
|
1056
|
+
}), kt = W.extend({
|
|
1057
1057
|
type: e.literal("TEXT"),
|
|
1058
1058
|
config: e.object({
|
|
1059
1059
|
placeholder: e.string().optional(),
|
|
@@ -1061,37 +1061,38 @@ var Ze = e.object({
|
|
|
1061
1061
|
max_length: e.number().optional(),
|
|
1062
1062
|
default_value: e.string().optional()
|
|
1063
1063
|
}).optional()
|
|
1064
|
-
}),
|
|
1064
|
+
}), At = W.extend({
|
|
1065
1065
|
type: e.literal("COUNTRY"),
|
|
1066
1066
|
config: e.object({
|
|
1067
1067
|
placeholder: e.string().optional(),
|
|
1068
1068
|
default_value: e.string().optional()
|
|
1069
1069
|
}).optional()
|
|
1070
|
-
}),
|
|
1070
|
+
}), jt = W.extend({
|
|
1071
1071
|
type: e.literal("URL"),
|
|
1072
1072
|
config: e.object({
|
|
1073
1073
|
placeholder: e.string().optional(),
|
|
1074
1074
|
default_value: e.string().optional()
|
|
1075
1075
|
}).optional()
|
|
1076
|
-
}),
|
|
1076
|
+
}), Mt = e.discriminatedUnion("type", [
|
|
1077
|
+
rt,
|
|
1077
1078
|
it,
|
|
1078
1079
|
at,
|
|
1079
1080
|
ot,
|
|
1080
1081
|
st,
|
|
1081
1082
|
ct,
|
|
1082
1083
|
lt,
|
|
1083
|
-
ut
|
|
1084
|
-
|
|
1085
|
-
|
|
1084
|
+
ut
|
|
1085
|
+
]), Nt = e.discriminatedUnion("type", [
|
|
1086
|
+
dt,
|
|
1086
1087
|
ft,
|
|
1087
|
-
pt
|
|
1088
|
-
|
|
1089
|
-
|
|
1088
|
+
pt
|
|
1089
|
+
]), Pt = e.discriminatedUnion("type", [
|
|
1090
|
+
mt,
|
|
1090
1091
|
ht,
|
|
1091
1092
|
gt,
|
|
1092
1093
|
_t,
|
|
1094
|
+
At,
|
|
1093
1095
|
vt,
|
|
1094
|
-
jt,
|
|
1095
1096
|
yt,
|
|
1096
1097
|
bt,
|
|
1097
1098
|
xt,
|
|
@@ -1103,13 +1104,12 @@ var Ze = e.object({
|
|
|
1103
1104
|
Dt,
|
|
1104
1105
|
Ot,
|
|
1105
1106
|
kt,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1107
|
+
jt
|
|
1108
|
+
]), G = e.union([
|
|
1109
|
+
Mt,
|
|
1109
1110
|
Nt,
|
|
1110
|
-
Pt
|
|
1111
|
-
|
|
1112
|
-
]), It = /* @__PURE__ */ new Set([
|
|
1111
|
+
Pt
|
|
1112
|
+
]), Ft = /* @__PURE__ */ new Set([
|
|
1113
1113
|
"BOOLEAN",
|
|
1114
1114
|
"CARDS",
|
|
1115
1115
|
"CHOICE",
|
|
@@ -1124,7 +1124,7 @@ var Ze = e.object({
|
|
|
1124
1124
|
"TEL",
|
|
1125
1125
|
"TEXT",
|
|
1126
1126
|
"URL"
|
|
1127
|
-
]),
|
|
1127
|
+
]), It = e.object({
|
|
1128
1128
|
id: e.string(),
|
|
1129
1129
|
type: e.literal("submit"),
|
|
1130
1130
|
label: e.string(),
|
|
@@ -1133,22 +1133,22 @@ var Ze = e.object({
|
|
|
1133
1133
|
order: e.number().optional(),
|
|
1134
1134
|
visible: e.boolean().optional().default(!0),
|
|
1135
1135
|
customizations: e.record(e.string(), e.any()).optional()
|
|
1136
|
-
}),
|
|
1136
|
+
}), K = e.object({
|
|
1137
1137
|
x: e.number(),
|
|
1138
1138
|
y: e.number()
|
|
1139
|
-
}),
|
|
1139
|
+
}), Lt = e.object({
|
|
1140
1140
|
id: e.string(),
|
|
1141
1141
|
type: e.literal("FLOW"),
|
|
1142
|
-
coordinates:
|
|
1142
|
+
coordinates: K,
|
|
1143
1143
|
alias: e.string().min(1).max(150).optional(),
|
|
1144
1144
|
config: e.object({
|
|
1145
1145
|
flow_id: e.string().max(30),
|
|
1146
1146
|
next_node: e.string().optional()
|
|
1147
1147
|
})
|
|
1148
|
-
}),
|
|
1148
|
+
}), Rt = e.object({
|
|
1149
1149
|
id: e.string(),
|
|
1150
1150
|
type: e.literal("ROUTER"),
|
|
1151
|
-
coordinates:
|
|
1151
|
+
coordinates: K,
|
|
1152
1152
|
alias: e.string().min(1).max(150),
|
|
1153
1153
|
config: e.object({
|
|
1154
1154
|
rules: e.array(e.object({
|
|
@@ -1159,20 +1159,20 @@ var Ze = e.object({
|
|
|
1159
1159
|
})),
|
|
1160
1160
|
fallback: e.string()
|
|
1161
1161
|
})
|
|
1162
|
-
}),
|
|
1162
|
+
}), zt = e.object({
|
|
1163
1163
|
id: e.string(),
|
|
1164
1164
|
type: e.literal("STEP"),
|
|
1165
|
-
coordinates:
|
|
1165
|
+
coordinates: K,
|
|
1166
1166
|
alias: e.string().min(1).max(150).optional(),
|
|
1167
1167
|
config: e.object({
|
|
1168
|
-
components: e.array(
|
|
1168
|
+
components: e.array(G),
|
|
1169
1169
|
next_node: e.string().optional()
|
|
1170
1170
|
})
|
|
1171
|
-
}),
|
|
1171
|
+
}), Bt = e.discriminatedUnion("type", [
|
|
1172
|
+
Lt,
|
|
1172
1173
|
Rt,
|
|
1173
|
-
zt
|
|
1174
|
-
|
|
1175
|
-
]), Ht = e.object({
|
|
1174
|
+
zt
|
|
1175
|
+
]), Vt = e.object({
|
|
1176
1176
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
1177
1177
|
messages: e.object({
|
|
1178
1178
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -1183,14 +1183,14 @@ var Ze = e.object({
|
|
|
1183
1183
|
default: e.string().optional()
|
|
1184
1184
|
}).optional(),
|
|
1185
1185
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1186
|
-
nodes: e.array(
|
|
1186
|
+
nodes: e.array(Bt).optional(),
|
|
1187
1187
|
start: e.object({
|
|
1188
1188
|
hidden_fields: e.array(e.object({
|
|
1189
1189
|
key: e.string(),
|
|
1190
1190
|
value: e.string()
|
|
1191
1191
|
})).optional(),
|
|
1192
1192
|
next_node: e.string().optional(),
|
|
1193
|
-
coordinates:
|
|
1193
|
+
coordinates: K.optional()
|
|
1194
1194
|
}).optional(),
|
|
1195
1195
|
ending: e.object({
|
|
1196
1196
|
redirection: e.object({
|
|
@@ -1198,7 +1198,7 @@ var Ze = e.object({
|
|
|
1198
1198
|
target: e.string().optional()
|
|
1199
1199
|
}).optional(),
|
|
1200
1200
|
after_submit: e.object({ flow_id: e.string().optional() }).optional(),
|
|
1201
|
-
coordinates:
|
|
1201
|
+
coordinates: K.optional(),
|
|
1202
1202
|
resume_flow: e.boolean().optional()
|
|
1203
1203
|
}).optional(),
|
|
1204
1204
|
style: e.object({ css: e.string().optional() }).optional(),
|
|
@@ -1206,7 +1206,7 @@ var Ze = e.object({
|
|
|
1206
1206
|
sdkSrc: e.string().optional(),
|
|
1207
1207
|
sdk_src: e.string().optional()
|
|
1208
1208
|
}).optional()
|
|
1209
|
-
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }),
|
|
1209
|
+
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" }), Ht = t.extend(Vt.shape).extend({ id: e.string() }), Ut = e.object({
|
|
1210
1210
|
id: e.number().optional(),
|
|
1211
1211
|
text: e.string(),
|
|
1212
1212
|
type: e.enum([
|
|
@@ -1215,34 +1215,34 @@ var Ze = e.object({
|
|
|
1215
1215
|
"success",
|
|
1216
1216
|
"warning"
|
|
1217
1217
|
])
|
|
1218
|
-
}),
|
|
1218
|
+
}), Wt = e.object({
|
|
1219
1219
|
id: e.string().optional(),
|
|
1220
1220
|
text: e.string(),
|
|
1221
1221
|
href: e.string(),
|
|
1222
1222
|
linkText: e.string().optional()
|
|
1223
|
-
}),
|
|
1223
|
+
}), Gt = e.object({
|
|
1224
1224
|
name: e.string().optional(),
|
|
1225
1225
|
action: e.string(),
|
|
1226
1226
|
method: e.enum(["POST", "GET"]),
|
|
1227
1227
|
title: e.string().optional(),
|
|
1228
1228
|
description: e.string().optional(),
|
|
1229
|
-
components: e.array(
|
|
1230
|
-
messages: e.array(
|
|
1231
|
-
links: e.array(
|
|
1229
|
+
components: e.array(G),
|
|
1230
|
+
messages: e.array(Ut).optional(),
|
|
1231
|
+
links: e.array(Wt).optional(),
|
|
1232
1232
|
footer: e.string().optional()
|
|
1233
1233
|
});
|
|
1234
|
-
function
|
|
1234
|
+
function Kt(e) {
|
|
1235
1235
|
return e.category === "BLOCK";
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function qt(e) {
|
|
1238
1238
|
return e.category === "WIDGET";
|
|
1239
1239
|
}
|
|
1240
|
-
function
|
|
1240
|
+
function Jt(e) {
|
|
1241
1241
|
return e.category === "FIELD";
|
|
1242
1242
|
}
|
|
1243
1243
|
//#endregion
|
|
1244
1244
|
//#region src/types/Hook.ts
|
|
1245
|
-
var
|
|
1245
|
+
var Yt = e.enum([
|
|
1246
1246
|
"pre-user-registration",
|
|
1247
1247
|
"post-user-registration",
|
|
1248
1248
|
"post-user-login",
|
|
@@ -1250,28 +1250,28 @@ var Xt = e.enum([
|
|
|
1250
1250
|
"validate-registration-username",
|
|
1251
1251
|
"pre-user-deletion",
|
|
1252
1252
|
"post-user-deletion"
|
|
1253
|
-
]),
|
|
1253
|
+
]), Xt = e.enum([
|
|
1254
1254
|
"pre-user-registration",
|
|
1255
1255
|
"post-user-registration",
|
|
1256
1256
|
"post-user-login",
|
|
1257
1257
|
"validate-registration-username",
|
|
1258
1258
|
"pre-user-deletion",
|
|
1259
1259
|
"post-user-deletion"
|
|
1260
|
-
]),
|
|
1260
|
+
]), Zt = e.enum([
|
|
1261
1261
|
"post-user-login",
|
|
1262
1262
|
"post-user-registration",
|
|
1263
1263
|
"post-user-update",
|
|
1264
1264
|
"credentials-exchange"
|
|
1265
|
-
]),
|
|
1265
|
+
]), Qt = e.enum([
|
|
1266
1266
|
"post-user-login",
|
|
1267
1267
|
"credentials-exchange",
|
|
1268
1268
|
"pre-user-registration",
|
|
1269
1269
|
"post-user-registration"
|
|
1270
|
-
]),
|
|
1270
|
+
]), q = e.enum([
|
|
1271
1271
|
"ensure-username",
|
|
1272
1272
|
"set-preferred-username",
|
|
1273
1273
|
"account-linking"
|
|
1274
|
-
]),
|
|
1274
|
+
]), $t = {
|
|
1275
1275
|
"ensure-username": {
|
|
1276
1276
|
name: "Ensure Username",
|
|
1277
1277
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1291,73 +1291,73 @@ var Xt = e.enum([
|
|
|
1291
1291
|
"post-user-update"
|
|
1292
1292
|
]
|
|
1293
1293
|
}
|
|
1294
|
-
},
|
|
1294
|
+
}, J = {
|
|
1295
1295
|
enabled: e.boolean().default(!1),
|
|
1296
1296
|
synchronous: e.boolean().default(!1),
|
|
1297
1297
|
priority: e.number().optional(),
|
|
1298
1298
|
hook_id: e.string().optional(),
|
|
1299
1299
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
1300
|
-
},
|
|
1301
|
-
...
|
|
1302
|
-
trigger_id:
|
|
1300
|
+
}, en = e.object({
|
|
1301
|
+
...J,
|
|
1302
|
+
trigger_id: Yt,
|
|
1303
1303
|
url: e.string()
|
|
1304
|
+
}), tn = e.object({
|
|
1305
|
+
...J,
|
|
1306
|
+
trigger_id: Xt,
|
|
1307
|
+
form_id: e.string()
|
|
1304
1308
|
}), nn = e.object({
|
|
1305
|
-
...
|
|
1309
|
+
...J,
|
|
1306
1310
|
trigger_id: Zt,
|
|
1307
|
-
|
|
1311
|
+
template_id: q
|
|
1308
1312
|
}), rn = e.object({
|
|
1309
|
-
...
|
|
1313
|
+
...J,
|
|
1310
1314
|
trigger_id: Qt,
|
|
1311
|
-
template_id: K
|
|
1312
|
-
}), an = e.object({
|
|
1313
|
-
...q,
|
|
1314
|
-
trigger_id: $t,
|
|
1315
1315
|
code_id: e.string()
|
|
1316
|
-
}),
|
|
1316
|
+
}), an = e.union([
|
|
1317
|
+
en,
|
|
1317
1318
|
tn,
|
|
1318
1319
|
nn,
|
|
1319
|
-
rn
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
trigger_id: Xt
|
|
1320
|
+
rn
|
|
1321
|
+
]), on = e.object({
|
|
1322
|
+
...J,
|
|
1323
|
+
trigger_id: Yt
|
|
1324
1324
|
}).extend(t.shape).extend({
|
|
1325
1325
|
hook_id: e.string(),
|
|
1326
1326
|
url: e.string()
|
|
1327
|
+
}), sn = e.object({
|
|
1328
|
+
...J,
|
|
1329
|
+
trigger_id: Xt
|
|
1330
|
+
}).extend(t.shape).extend({
|
|
1331
|
+
hook_id: e.string(),
|
|
1332
|
+
form_id: e.string()
|
|
1327
1333
|
}), cn = e.object({
|
|
1328
|
-
...
|
|
1334
|
+
...J,
|
|
1329
1335
|
trigger_id: Zt
|
|
1330
1336
|
}).extend(t.shape).extend({
|
|
1331
1337
|
hook_id: e.string(),
|
|
1332
|
-
|
|
1338
|
+
template_id: q
|
|
1333
1339
|
}), ln = e.object({
|
|
1334
|
-
...
|
|
1340
|
+
...J,
|
|
1335
1341
|
trigger_id: Qt
|
|
1336
|
-
}).extend(t.shape).extend({
|
|
1337
|
-
hook_id: e.string(),
|
|
1338
|
-
template_id: K
|
|
1339
|
-
}), un = e.object({
|
|
1340
|
-
...q,
|
|
1341
|
-
trigger_id: $t
|
|
1342
1342
|
}).extend(t.shape).extend({
|
|
1343
1343
|
hook_id: e.string(),
|
|
1344
1344
|
code_id: e.string()
|
|
1345
|
-
}),
|
|
1345
|
+
}), un = e.union([
|
|
1346
|
+
on,
|
|
1346
1347
|
sn,
|
|
1347
1348
|
cn,
|
|
1348
|
-
ln
|
|
1349
|
-
|
|
1350
|
-
]), fn = e.object({
|
|
1349
|
+
ln
|
|
1350
|
+
]), dn = e.object({
|
|
1351
1351
|
code: e.string().max(1e5),
|
|
1352
1352
|
secrets: e.record(e.string(), e.string()).optional()
|
|
1353
|
-
}),
|
|
1353
|
+
}), fn = dn.extend({
|
|
1354
1354
|
id: e.string(),
|
|
1355
1355
|
tenant_id: e.string()
|
|
1356
|
-
}).extend(t.shape),
|
|
1356
|
+
}).extend(t.shape), pn = e.object({ name: e.string().optional() }), mn = e.object({ email: e.string().optional() }), hn = e.object({
|
|
1357
1357
|
id: e.string().optional(),
|
|
1358
1358
|
organization_id: e.string().max(50),
|
|
1359
|
-
inviter:
|
|
1360
|
-
invitee:
|
|
1359
|
+
inviter: pn,
|
|
1360
|
+
invitee: mn,
|
|
1361
1361
|
invitation_url: e.string().url(),
|
|
1362
1362
|
client_id: e.string(),
|
|
1363
1363
|
connection_id: e.string().optional(),
|
|
@@ -1366,13 +1366,13 @@ var Xt = e.enum([
|
|
|
1366
1366
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1367
1367
|
roles: e.array(e.string()).default([]).optional(),
|
|
1368
1368
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1369
|
-
}),
|
|
1369
|
+
}), gn = e.object({
|
|
1370
1370
|
id: e.string(),
|
|
1371
1371
|
organization_id: e.string().max(50),
|
|
1372
1372
|
created_at: e.string().datetime(),
|
|
1373
1373
|
expires_at: e.string().datetime(),
|
|
1374
1374
|
ticket_id: e.string().optional()
|
|
1375
|
-
}).extend(
|
|
1375
|
+
}).extend(hn.omit({ id: !0 }).shape), _n = e.object({
|
|
1376
1376
|
alg: e.enum([
|
|
1377
1377
|
"RS256",
|
|
1378
1378
|
"RS384",
|
|
@@ -1413,7 +1413,7 @@ var Xt = e.enum([
|
|
|
1413
1413
|
path: [r],
|
|
1414
1414
|
message: `EC JWK is missing required member '${r}'`
|
|
1415
1415
|
});
|
|
1416
|
-
}),
|
|
1416
|
+
}), vn = e.object({ keys: e.array(_n) }), yn = e.object({
|
|
1417
1417
|
issuer: e.string(),
|
|
1418
1418
|
authorization_endpoint: e.string(),
|
|
1419
1419
|
token_endpoint: e.string(),
|
|
@@ -1437,33 +1437,33 @@ var Xt = e.enum([
|
|
|
1437
1437
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1438
1438
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string()),
|
|
1439
1439
|
client_id_metadata_document_supported: e.boolean().optional()
|
|
1440
|
-
}),
|
|
1440
|
+
}), bn = /* @__PURE__ */ function(e) {
|
|
1441
1441
|
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
1442
|
-
}({}),
|
|
1442
|
+
}({}), xn = e.nativeEnum(bn), Sn = e.object({
|
|
1443
1443
|
strategy: e.string(),
|
|
1444
1444
|
strategy_type: e.string()
|
|
1445
|
-
}),
|
|
1445
|
+
}), Cn = e.object({
|
|
1446
1446
|
csrf_token: e.string(),
|
|
1447
1447
|
auth0Client: e.string().optional(),
|
|
1448
|
-
authParams:
|
|
1448
|
+
authParams: We,
|
|
1449
1449
|
expires_at: e.string(),
|
|
1450
1450
|
deleted_at: e.string().optional(),
|
|
1451
1451
|
ip: e.string().optional(),
|
|
1452
1452
|
useragent: e.string().optional(),
|
|
1453
1453
|
session_id: e.string().optional(),
|
|
1454
1454
|
authorization_url: e.string().optional(),
|
|
1455
|
-
state:
|
|
1455
|
+
state: xn.optional().default("pending"),
|
|
1456
1456
|
state_data: e.string().optional(),
|
|
1457
1457
|
failure_reason: e.string().optional(),
|
|
1458
1458
|
user_id: e.string().optional(),
|
|
1459
1459
|
auth_connection: e.string().optional(),
|
|
1460
|
-
auth_strategy:
|
|
1460
|
+
auth_strategy: Sn.optional(),
|
|
1461
1461
|
authenticated_at: e.string().optional()
|
|
1462
|
-
}).openapi({ description: "This represents a login sesion" }),
|
|
1462
|
+
}).openapi({ description: "This represents a login sesion" }), wn = Cn.extend({
|
|
1463
1463
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
1464
1464
|
created_at: e.string(),
|
|
1465
1465
|
updated_at: e.string()
|
|
1466
|
-
}),
|
|
1466
|
+
}), Y = {
|
|
1467
1467
|
ACLS_SUMMARY: "acls_summary",
|
|
1468
1468
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
1469
1469
|
API_LIMIT: "api_limit",
|
|
@@ -1623,176 +1623,176 @@ var Xt = e.enum([
|
|
|
1623
1623
|
WARNING_DURING_LOGIN: "w",
|
|
1624
1624
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1625
1625
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1626
|
-
},
|
|
1627
|
-
[
|
|
1628
|
-
[
|
|
1629
|
-
[
|
|
1630
|
-
[
|
|
1631
|
-
[
|
|
1632
|
-
[
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1635
|
-
[
|
|
1636
|
-
[
|
|
1637
|
-
[
|
|
1638
|
-
[
|
|
1639
|
-
[
|
|
1640
|
-
[
|
|
1641
|
-
[
|
|
1642
|
-
[
|
|
1643
|
-
[
|
|
1644
|
-
[
|
|
1645
|
-
[
|
|
1646
|
-
[
|
|
1647
|
-
[
|
|
1648
|
-
[
|
|
1649
|
-
[
|
|
1650
|
-
[
|
|
1651
|
-
[
|
|
1652
|
-
[
|
|
1653
|
-
[
|
|
1654
|
-
[
|
|
1655
|
-
[
|
|
1656
|
-
[
|
|
1657
|
-
[
|
|
1658
|
-
[
|
|
1659
|
-
[
|
|
1660
|
-
[
|
|
1661
|
-
[
|
|
1662
|
-
[
|
|
1663
|
-
[
|
|
1664
|
-
[
|
|
1665
|
-
[
|
|
1666
|
-
[
|
|
1667
|
-
[
|
|
1668
|
-
[
|
|
1669
|
-
[
|
|
1670
|
-
[
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1673
|
-
[
|
|
1674
|
-
[
|
|
1675
|
-
[
|
|
1676
|
-
[
|
|
1677
|
-
[
|
|
1678
|
-
[
|
|
1679
|
-
[
|
|
1680
|
-
[
|
|
1681
|
-
[
|
|
1682
|
-
[
|
|
1683
|
-
[
|
|
1684
|
-
[
|
|
1685
|
-
[
|
|
1686
|
-
[
|
|
1687
|
-
[
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1695
|
-
[
|
|
1696
|
-
[
|
|
1697
|
-
[
|
|
1698
|
-
[
|
|
1699
|
-
[
|
|
1700
|
-
[
|
|
1701
|
-
[
|
|
1702
|
-
[
|
|
1703
|
-
[
|
|
1704
|
-
[
|
|
1705
|
-
[
|
|
1706
|
-
[
|
|
1707
|
-
[
|
|
1708
|
-
[
|
|
1709
|
-
[
|
|
1710
|
-
[
|
|
1711
|
-
[
|
|
1712
|
-
[
|
|
1713
|
-
[
|
|
1714
|
-
[
|
|
1715
|
-
[
|
|
1716
|
-
[
|
|
1717
|
-
[
|
|
1718
|
-
[
|
|
1719
|
-
[
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1724
|
-
[
|
|
1725
|
-
[
|
|
1726
|
-
[
|
|
1727
|
-
[
|
|
1728
|
-
[
|
|
1729
|
-
[
|
|
1730
|
-
[
|
|
1731
|
-
[
|
|
1732
|
-
[
|
|
1733
|
-
[
|
|
1734
|
-
[
|
|
1735
|
-
[
|
|
1736
|
-
[
|
|
1737
|
-
[
|
|
1738
|
-
[
|
|
1739
|
-
[
|
|
1740
|
-
[
|
|
1741
|
-
[
|
|
1742
|
-
[
|
|
1743
|
-
[
|
|
1744
|
-
[
|
|
1745
|
-
[
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1748
|
-
[
|
|
1749
|
-
[
|
|
1750
|
-
[
|
|
1751
|
-
[
|
|
1752
|
-
[
|
|
1753
|
-
[
|
|
1754
|
-
[
|
|
1755
|
-
[
|
|
1756
|
-
[
|
|
1757
|
-
[
|
|
1758
|
-
[
|
|
1759
|
-
[
|
|
1760
|
-
[
|
|
1761
|
-
[
|
|
1762
|
-
[
|
|
1763
|
-
[
|
|
1764
|
-
[
|
|
1765
|
-
[
|
|
1766
|
-
[
|
|
1767
|
-
[
|
|
1768
|
-
[
|
|
1769
|
-
[
|
|
1770
|
-
[
|
|
1771
|
-
[
|
|
1772
|
-
[
|
|
1773
|
-
[
|
|
1774
|
-
[
|
|
1775
|
-
[
|
|
1776
|
-
[
|
|
1777
|
-
[
|
|
1778
|
-
[
|
|
1779
|
-
[
|
|
1780
|
-
[
|
|
1781
|
-
[
|
|
1782
|
-
[
|
|
1783
|
-
[
|
|
1784
|
-
[
|
|
1785
|
-
[
|
|
1786
|
-
},
|
|
1626
|
+
}, Tn = e.string().refine((e) => Object.values(Y).includes(e), { message: "Invalid log type" }), En = {
|
|
1627
|
+
[Y.ACLS_SUMMARY]: "ACLs Summary",
|
|
1628
|
+
[Y.ACTIONS_EXECUTION_FAILED]: "Actions Execution Failed",
|
|
1629
|
+
[Y.API_LIMIT]: "API Rate Limit Reached",
|
|
1630
|
+
[Y.API_LIMIT_WARNING]: "API Rate Limit Warning",
|
|
1631
|
+
[Y.APPI]: "API Operation",
|
|
1632
|
+
[Y.CIBA_EXCHANGE_FAILED]: "CIBA Exchange Failed",
|
|
1633
|
+
[Y.CIBA_EXCHANGE_SUCCEEDED]: "CIBA Exchange Succeeded",
|
|
1634
|
+
[Y.CIBA_START_FAILED]: "CIBA Start Failed",
|
|
1635
|
+
[Y.CIBA_START_SUCCEEDED]: "CIBA Start Succeeded",
|
|
1636
|
+
[Y.CODE_LINK_SENT]: "Code/Link Sent",
|
|
1637
|
+
[Y.CODE_SENT]: "Code Sent",
|
|
1638
|
+
[Y.DEPRECATION_NOTICE]: "Deprecation Notice",
|
|
1639
|
+
[Y.FAILED_LOGIN]: "Failed Login",
|
|
1640
|
+
[Y.FAILED_BY_CONNECTOR]: "Failed by Connector",
|
|
1641
|
+
[Y.FAILED_CHANGE_EMAIL]: "Failed Change Email",
|
|
1642
|
+
[Y.FAILED_BY_CORS]: "Failed by CORS",
|
|
1643
|
+
[Y.FAILED_CROSS_ORIGIN_AUTHENTICATION]: "Failed Cross Origin Authentication",
|
|
1644
|
+
[Y.FAILED_CHANGE_PASSWORD]: "Failed Change Password",
|
|
1645
|
+
[Y.FAILED_POST_CHANGE_PASSWORD_HOOK]: "Failed Post-Change Password Hook",
|
|
1646
|
+
[Y.FAILED_CHANGE_PHONE_NUMBER]: "Failed Change Phone Number",
|
|
1647
|
+
[Y.FAILED_CHANGE_PASSWORD_REQUEST]: "Failed Change Password Request",
|
|
1648
|
+
[Y.FAILED_CONNECTOR_PROVISIONING]: "Failed Connector Provisioning",
|
|
1649
|
+
[Y.FAILED_CHANGE_USERNAME]: "Failed Change Username",
|
|
1650
|
+
[Y.FAILED_DELEGATION]: "Failed Delegation",
|
|
1651
|
+
[Y.FAILED_DEVICE_ACTIVATION]: "Failed Device Activation",
|
|
1652
|
+
[Y.FAILED_DEVICE_AUTHORIZATION_REQUEST]: "Failed Device Authorization Request",
|
|
1653
|
+
[Y.USER_CANCELED_DEVICE_CONFIRMATION]: "User Canceled Device Confirmation",
|
|
1654
|
+
[Y.FAILED_USER_DELETION]: "Failed User Deletion",
|
|
1655
|
+
[Y.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Authorization Code for Access Token",
|
|
1656
|
+
[Y.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Failed Exchange Access Token for Client Credentials",
|
|
1657
|
+
[Y.FAILED_EXCHANGE_CUSTOM_TOKEN]: "Failed Exchange Custom Token",
|
|
1658
|
+
[Y.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Failed Exchange Device Code for Access Token",
|
|
1659
|
+
[Y.FAILED_FEDERATED_LOGOUT]: "Failed Federated Logout",
|
|
1660
|
+
[Y.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Failed Exchange Native Social Login",
|
|
1661
|
+
[Y.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Failed Exchange Password OOB for Access Token",
|
|
1662
|
+
[Y.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Password OTP for Access Token",
|
|
1663
|
+
[Y.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Failed Exchange Password for Access Token",
|
|
1664
|
+
[Y.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Failed Exchange Passwordless OTP for Access Token",
|
|
1665
|
+
[Y.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Failed Exchange Password MFA Recovery for Access Token",
|
|
1666
|
+
[Y.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN]: "Failed Exchange Rotating Refresh Token",
|
|
1667
|
+
[Y.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Refresh Token for Access Token",
|
|
1668
|
+
[Y.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Failed Exchange Subject Token for Access Token",
|
|
1669
|
+
[Y.FAILED_HOOK]: "Failed Hook",
|
|
1670
|
+
[Y.FAILED_IMPERSONATION]: "Failed Impersonation",
|
|
1671
|
+
[Y.FAILED_INVITE_ACCEPT]: "Failed Invite Accept",
|
|
1672
|
+
[Y.FAILED_LOGOUT]: "Failed Logout",
|
|
1673
|
+
[Y.FLOWS_EXECUTION_COMPLETED]: "Flows Execution Completed",
|
|
1674
|
+
[Y.FLOWS_EXECUTION_FAILED]: "Flows Execution Failed",
|
|
1675
|
+
[Y.FAILED_SENDING_NOTIFICATION]: "Failed Sending Notification",
|
|
1676
|
+
[Y.FORMS_SUBMISSION_FAILED]: "Forms Submission Failed",
|
|
1677
|
+
[Y.FORMS_SUBMISSION_SUCCEEDED]: "Forms Submission Succeeded",
|
|
1678
|
+
[Y.FAILED_LOGIN_INCORRECT_PASSWORD]: "Failed Login - Incorrect Password",
|
|
1679
|
+
[Y.FAILED_PUSHED_AUTHORIZATION_REQUEST]: "Failed Pushed Authorization Request",
|
|
1680
|
+
[Y.FAILED_POST_USER_REGISTRATION_HOOK]: "Failed Post-User Registration Hook",
|
|
1681
|
+
[Y.FAILED_SIGNUP]: "Failed Signup",
|
|
1682
|
+
[Y.FAILED_SILENT_AUTH]: "Failed Silent Auth",
|
|
1683
|
+
[Y.FAILED_LOGIN_INVALID_EMAIL_USERNAME]: "Failed Login - Invalid Email/Username",
|
|
1684
|
+
[Y.FAILED_USERS_IMPORT]: "Failed Users Import",
|
|
1685
|
+
[Y.FAILED_VERIFICATION_EMAIL]: "Failed Verification Email",
|
|
1686
|
+
[Y.FAILED_VERIFICATION_EMAIL_REQUEST]: "Failed Verification Email Request",
|
|
1687
|
+
[Y.EMAIL_VERIFICATION_CONFIRMED]: "Email Verification Confirmed",
|
|
1688
|
+
[Y.EMAIL_VERIFICATION_FAILED]: "Email Verification Failed",
|
|
1689
|
+
[Y.MFA_AUTH_FAILED]: "MFA Auth Failed",
|
|
1690
|
+
[Y.MFA_AUTH_REJECTED]: "MFA Auth Rejected",
|
|
1691
|
+
[Y.MFA_AUTH_SUCCESS]: "MFA Auth Success",
|
|
1692
|
+
[Y.MFA_ENROLLMENT_COMPLETE]: "MFA Enrollment Complete",
|
|
1693
|
+
[Y.TOO_MANY_MFA_FAILURES]: "Too Many MFA Failures",
|
|
1694
|
+
[Y.MFA_RECOVERY_FAILED]: "MFA Recovery Failed",
|
|
1695
|
+
[Y.MFA_RECOVERY_RATE_LIMIT_EXCEED]: "MFA Recovery Rate Limit Exceeded",
|
|
1696
|
+
[Y.MFA_RECOVERY_SUCCESS]: "MFA Recovery Success",
|
|
1697
|
+
[Y.MFA_EMAIL_SENT]: "MFA Email Sent",
|
|
1698
|
+
[Y.EMAIL_VERIFICATION_SENT]: "Email Verification Sent",
|
|
1699
|
+
[Y.EMAIL_VERIFICATION_SEND_FAILURE]: "Email Verification Send Failure",
|
|
1700
|
+
[Y.PUSH_NOTIFICATION_SENT]: "Push Notification Sent",
|
|
1701
|
+
[Y.ERROR_SENDING_MFA_PUSH_NOTIFICATION]: "Error Sending MFA Push Notification",
|
|
1702
|
+
[Y.MFA_SMS_SENT]: "MFA SMS Sent",
|
|
1703
|
+
[Y.ERROR_SENDING_MFA_SMS]: "Error Sending MFA SMS",
|
|
1704
|
+
[Y.MFA_VOICE_CALL_SUCCESS]: "MFA Voice Call Success",
|
|
1705
|
+
[Y.MFA_VOICE_CALL_FAILED]: "MFA Voice Call Failed",
|
|
1706
|
+
[Y.SECOND_FACTOR_STARTED]: "Second Factor Started",
|
|
1707
|
+
[Y.MFA_ENROLL_STARTED]: "MFA Enroll Started",
|
|
1708
|
+
[Y.MFA_ENROLLMENT_FAILED]: "MFA Enrollment Failed",
|
|
1709
|
+
[Y.GUARDIAN_TENANT_UPDATE]: "Guardian Tenant Update",
|
|
1710
|
+
[Y.UNENROLL_DEVICE_ACCOUNT]: "Unenroll Device Account",
|
|
1711
|
+
[Y.UPDATE_DEVICE_ACCOUNT]: "Update Device Account",
|
|
1712
|
+
[Y.WEBAUTHN_CHALLENGE_FAILED]: "WebAuthn Challenge Failed",
|
|
1713
|
+
[Y.WEBAUTHN_ENROLLMENT_FAILED]: "WebAuthn Enrollment Failed",
|
|
1714
|
+
[Y.FAILED_KMS_API_OPERATION]: "Failed KMS API Operation",
|
|
1715
|
+
[Y.SUCCESS_KMS_API_OPERATION]: "Success KMS API Operation",
|
|
1716
|
+
[Y.KMS_KEY_STATE_CHANGED]: "KMS Key State Changed",
|
|
1717
|
+
[Y.TOO_MANY_CALLS_TO_DELEGATION]: "Too Many Calls to Delegation",
|
|
1718
|
+
[Y.BLOCKED_IP_ADDRESS]: "Blocked IP Address",
|
|
1719
|
+
[Y.BLOCKED_ACCOUNT_IP]: "Blocked Account (IP)",
|
|
1720
|
+
[Y.BLOCKED_ACCOUNT_EMAIL]: "Blocked Account (Email)",
|
|
1721
|
+
[Y.INFORMATION]: "Information",
|
|
1722
|
+
[Y.MFA_REQUIRED]: "MFA Required",
|
|
1723
|
+
[Y.MANAGEMENT_API_READ_OPERATION]: "Management API Read Operation",
|
|
1724
|
+
[Y.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Failed Authentication Method Operation (My Account)",
|
|
1725
|
+
[Y.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT]: "Successful Authentication Method Operation (My Account)",
|
|
1726
|
+
[Y.FAILED_OIDC_BACKCHANNEL_LOGOUT]: "Failed OIDC Backchannel Logout",
|
|
1727
|
+
[Y.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT]: "Successful OIDC Backchannel Logout",
|
|
1728
|
+
[Y.ORGANIZATION_MEMBER_ADDED]: "Organization Member Added",
|
|
1729
|
+
[Y.PASSKEY_CHALLENGE_FAILED]: "Passkey Challenge Failed",
|
|
1730
|
+
[Y.PASSKEY_CHALLENGE_STARTED]: "Passkey Challenge Started",
|
|
1731
|
+
[Y.PRE_LOGIN_ASSESSMENT]: "Pre-Login Assessment",
|
|
1732
|
+
[Y.BREACHED_PASSWORD]: "Breached Password",
|
|
1733
|
+
[Y.BREACHED_PASSWORD_ON_RESET]: "Breached Password on Reset",
|
|
1734
|
+
[Y.SUCCESS_RESOURCE_CLEANUP]: "Success Resource Cleanup",
|
|
1735
|
+
[Y.RICH_CONSENTS_ACCESS_ERROR]: "Rich Consents Access Error",
|
|
1736
|
+
[Y.SUCCESS_LOGIN]: "Success Login",
|
|
1737
|
+
[Y.SUCCESS_API_OPERATION]: "Success API Operation",
|
|
1738
|
+
[Y.FAILED_API_OPERATION]: "Failed API Operation",
|
|
1739
|
+
[Y.SUCCESS_CHANGE_EMAIL]: "Success Change Email",
|
|
1740
|
+
[Y.SUCCESS_CROSS_ORIGIN_AUTHENTICATION]: "Success Cross Origin Authentication",
|
|
1741
|
+
[Y.SUCCESS_CHANGE_PASSWORD]: "Success Change Password",
|
|
1742
|
+
[Y.SUCCESS_CHANGE_PHONE_NUMBER]: "Success Change Phone Number",
|
|
1743
|
+
[Y.SUCCESS_CHANGE_PASSWORD_REQUEST]: "Success Change Password Request",
|
|
1744
|
+
[Y.SUCCESS_CHANGE_USERNAME]: "Success Change Username",
|
|
1745
|
+
[Y.SUCCESS_CREDENTIAL_VALIDATION]: "Success Credential Validation",
|
|
1746
|
+
[Y.SUCCESS_DELEGATION]: "Success Delegation",
|
|
1747
|
+
[Y.SUCCESS_USER_DELETION]: "Success User Deletion",
|
|
1748
|
+
[Y.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Authorization Code for Access Token",
|
|
1749
|
+
[Y.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS]: "Success Exchange Access Token for Client Credentials",
|
|
1750
|
+
[Y.SUCCESS_EXCHANGE_CUSTOM_TOKEN]: "Success Exchange Custom Token",
|
|
1751
|
+
[Y.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN]: "Success Exchange Device Code for Access Token",
|
|
1752
|
+
[Y.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN]: "Success Exchange Native Social Login",
|
|
1753
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Password OOB for Access Token",
|
|
1754
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Password OTP for Access Token",
|
|
1755
|
+
[Y.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passwordless OTP for Access Token",
|
|
1756
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN]: "Success Exchange Password for Access Token",
|
|
1757
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OOB for Access Token",
|
|
1758
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN]: "Success Exchange Passkey OTP for Access Token",
|
|
1759
|
+
[Y.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Passkey MFA Recovery for Access Token",
|
|
1760
|
+
[Y.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN]: "Success Exchange Password MFA Recovery for Access Token",
|
|
1761
|
+
[Y.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Refresh Token for Access Token",
|
|
1762
|
+
[Y.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN]: "Success Exchange Subject Token for Access Token",
|
|
1763
|
+
[Y.SUCCESS_IMPERSONATION]: "Success Impersonation",
|
|
1764
|
+
[Y.SUCCESSFULLY_ACCEPTED_USER_INVITE]: "Successfully Accepted User Invite",
|
|
1765
|
+
[Y.BREACHED_PASSWORD_ON_SIGNUP]: "Breached Password on Signup",
|
|
1766
|
+
[Y.SUCCESS_LOGOUT]: "Success Logout",
|
|
1767
|
+
[Y.SUCCESS_HOOK]: "Success Hook",
|
|
1768
|
+
[Y.SUCCESS_PASSWORD_MIGRATION]: "Success Password Migration",
|
|
1769
|
+
[Y.SUCCESS_REVOCATION]: "Success Revocation",
|
|
1770
|
+
[Y.SUCCESS_SIGNUP]: "Success Signup",
|
|
1771
|
+
[Y.FAILED_SS_SSO_OPERATION]: "Failed SS SSO Operation",
|
|
1772
|
+
[Y.INFORMATION_FROM_SS_SSO_OPERATION]: "Information from SS SSO Operation",
|
|
1773
|
+
[Y.SUCCESS_SS_SSO_OPERATION]: "Success SS SSO Operation",
|
|
1774
|
+
[Y.SUCCESS_SILENT_AUTH]: "Success Silent Auth",
|
|
1775
|
+
[Y.SUCCESSFUL_SCIM_OPERATION]: "Successful SCIM Operation",
|
|
1776
|
+
[Y.SUCCESSFULLY_IMPORTED_USERS]: "Successfully Imported Users",
|
|
1777
|
+
[Y.SUCCESS_VERIFICATION_EMAIL]: "Success Verification Email",
|
|
1778
|
+
[Y.SUCCESS_VERIFICATION_EMAIL_REQUEST]: "Success Verification Email Request",
|
|
1779
|
+
[Y.MAX_AMOUNT_OF_AUTHENTICATORS]: "Max Amount of Authenticators",
|
|
1780
|
+
[Y.USER_LOGIN_BLOCK_RELEASED]: "User Login Block Released",
|
|
1781
|
+
[Y.FAILED_UNIVERSAL_LOGOUT]: "Failed Universal Logout",
|
|
1782
|
+
[Y.SUCCESSFUL_UNIVERSAL_LOGOUT]: "Successful Universal Logout",
|
|
1783
|
+
[Y.WARNING_DURING_LOGIN]: "Warning During Login",
|
|
1784
|
+
[Y.WARNING_SENDING_NOTIFICATION]: "Warning Sending Notification",
|
|
1785
|
+
[Y.WARNING_USER_MANAGEMENT]: "Warning User Management"
|
|
1786
|
+
}, Dn = (() => {
|
|
1787
1787
|
let e = {};
|
|
1788
|
-
for (let [t, n] of Object.entries(
|
|
1788
|
+
for (let [t, n] of Object.entries(Y)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
1789
1789
|
return e;
|
|
1790
1790
|
})();
|
|
1791
1791
|
function On(e) {
|
|
1792
|
-
return
|
|
1792
|
+
return En[e] ?? e;
|
|
1793
1793
|
}
|
|
1794
1794
|
function kn(e) {
|
|
1795
|
-
return
|
|
1795
|
+
return Dn[e] ?? "other";
|
|
1796
1796
|
}
|
|
1797
1797
|
var An = e.object({
|
|
1798
1798
|
name: e.string(),
|
|
@@ -1806,7 +1806,7 @@ var An = e.object({
|
|
|
1806
1806
|
time_zone: e.string(),
|
|
1807
1807
|
continent_code: e.string()
|
|
1808
1808
|
}), Mn = e.object({
|
|
1809
|
-
type:
|
|
1809
|
+
type: Tn,
|
|
1810
1810
|
date: e.string(),
|
|
1811
1811
|
description: e.string().optional(),
|
|
1812
1812
|
ip: e.string().optional(),
|
|
@@ -2831,21 +2831,78 @@ function Hi(e) {
|
|
|
2831
2831
|
function Ui(e) {
|
|
2832
2832
|
return Vi(new TextEncoder().encode(e));
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2834
|
+
function Wi(e) {
|
|
2835
2835
|
return new TextDecoder().decode(Hi(e));
|
|
2836
2836
|
}
|
|
2837
2837
|
//#endregion
|
|
2838
|
+
//#region src/utils/base64.ts
|
|
2839
|
+
function Gi(e) {
|
|
2840
|
+
let t = "";
|
|
2841
|
+
for (let n of e) t += String.fromCharCode(n);
|
|
2842
|
+
return btoa(t);
|
|
2843
|
+
}
|
|
2844
|
+
function Ki(e) {
|
|
2845
|
+
let t = atob(e), n = new Uint8Array(t.length);
|
|
2846
|
+
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
2847
|
+
return n;
|
|
2848
|
+
}
|
|
2849
|
+
//#endregion
|
|
2850
|
+
//#region src/utils/base32.ts
|
|
2851
|
+
var $ = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
|
|
2852
|
+
function qi(e) {
|
|
2853
|
+
let t = "", n = 0, r = 0;
|
|
2854
|
+
for (let i of e) for (n = n << 8 | i, r += 8; r >= 5;) r -= 5, t += $[n >> r & 31];
|
|
2855
|
+
return r > 0 && (t += $[n << 5 - r & 31]), t;
|
|
2856
|
+
}
|
|
2857
|
+
function Ji(e) {
|
|
2858
|
+
let t = e.replace(/=+$/, "").toUpperCase(), n = t.length % 8;
|
|
2859
|
+
if (n === 1 || n === 3 || n === 6) throw Error(`Invalid base32 length: ${t.length}`);
|
|
2860
|
+
let r = [], i = 0, a = 0;
|
|
2861
|
+
for (let e of t) {
|
|
2862
|
+
let t = $.indexOf(e);
|
|
2863
|
+
if (t === -1) throw Error(`Invalid base32 character: ${e}`);
|
|
2864
|
+
i = i << 5 | t, a += 5, a >= 8 && (a -= 8, r.push(i >> a & 255));
|
|
2865
|
+
}
|
|
2866
|
+
if (a > 0 && i & (1 << a) - 1) throw Error("Invalid base32: non-zero trailing bits");
|
|
2867
|
+
return new Uint8Array(r);
|
|
2868
|
+
}
|
|
2869
|
+
//#endregion
|
|
2870
|
+
//#region src/utils/hex.ts
|
|
2871
|
+
function Yi(e) {
|
|
2872
|
+
let t = e instanceof Uint8Array ? e : new Uint8Array(e), n = "";
|
|
2873
|
+
for (let e of t) n += e.toString(16).padStart(2, "0");
|
|
2874
|
+
return n;
|
|
2875
|
+
}
|
|
2876
|
+
//#endregion
|
|
2838
2877
|
//#region src/utils/cursor.ts
|
|
2839
|
-
function
|
|
2878
|
+
function Xi(e) {
|
|
2840
2879
|
return Ui(JSON.stringify(e));
|
|
2841
2880
|
}
|
|
2842
|
-
function
|
|
2881
|
+
function Zi(e) {
|
|
2843
2882
|
try {
|
|
2844
|
-
let t = JSON.parse(
|
|
2883
|
+
let t = JSON.parse(Wi(e));
|
|
2845
2884
|
return t && typeof t == "object" && typeof t.i == "string" ? t : null;
|
|
2846
2885
|
} catch {
|
|
2847
2886
|
return null;
|
|
2848
2887
|
}
|
|
2849
2888
|
}
|
|
2850
2889
|
//#endregion
|
|
2851
|
-
|
|
2890
|
+
//#region src/utils/lucene.ts
|
|
2891
|
+
function Qi(e, t) {
|
|
2892
|
+
let n = new Set(t), r = (e) => {
|
|
2893
|
+
let t = [], r = "", i = !1;
|
|
2894
|
+
for (let n = 0; n < e.length; n++) {
|
|
2895
|
+
let a = e[n];
|
|
2896
|
+
a === "\"" ? (i = !i, r += a) : a === " " && !i ? (r.trim() && t.push(r.trim()), r = "") : r += a;
|
|
2897
|
+
}
|
|
2898
|
+
return r.trim() && t.push(r.trim()), t.filter((e) => {
|
|
2899
|
+
let t = e.replace(/^([^:]+)=/, "$1:"), r = t.startsWith("-") ? t.slice(1) : t;
|
|
2900
|
+
if (r.startsWith("_exists_:")) return n.has(r.slice(9));
|
|
2901
|
+
let i = r.indexOf(":");
|
|
2902
|
+
return i > 0 ? n.has(r.slice(0, i)) : !0;
|
|
2903
|
+
}).join(" ");
|
|
2904
|
+
}, i = e.split(/ OR /i);
|
|
2905
|
+
return i.length > 1 ? i.map(r).filter((e) => e.length > 0).join(" OR ") : r(e);
|
|
2906
|
+
}
|
|
2907
|
+
//#endregion
|
|
2908
|
+
export { ve as Auth0ActionEnum, An as Auth0Client, Be as AuthorizationResponseMode, ze as AuthorizationResponseType, Ve as CodeChallengeMethod, A as ComponentCategory, k as ComponentType, Oi as DATABASE_CONNECTION_STRATEGY, ye as EmailActionEnum, Ft as FORM_FIELD_TYPES, _e as FlowActionTypeEnum, mr as GrantType, jn as LocationInfo, Y as LogTypes, bn as LoginSessionState, Ae as NodeType, p as RedirectTargetEnum, Ei as Strategy, Di as StrategyType, r as actionDependencySchema, l as actionExecutionErrorSchema, ae as actionExecutionInsertSchema, ne as actionExecutionLogEntrySchema, re as actionExecutionLogsSchema, te as actionExecutionResultSchema, ie as actionExecutionSchema, c as actionExecutionStatusSchema, s as actionExecutionTriggerIdSchema, a as actionInsertSchema, Me as actionNodeSchema, ee as actionSchema, i as actionSecretSchema, n as actionTriggerSchema, o as actionUpdateSchema, oe as actionVersionInsertSchema, se as actionVersionSchema, hi as activeUsersResponseSchema, le as actorSchema, y as addressSchema, bi as analyticsColumnMetaSchema, vi as analyticsGroupBySchema, _i as analyticsIntervalSchema, Si as analyticsQueryResponseSchema, gi as analyticsResourceSchema, xi as analyticsStatisticsSchema, yi as analyticsUserTypeSchema, Gn as attackProtectionSchema, ce as auditCategorySchema, he as auditEventInsertSchema, ge as auditEventSchema, me as auth0ClientSchema, Re as auth0FlowInsertSchema, Le as auth0FlowSchema, xe as auth0QuerySchema, d as auth0UpdateUserActionSchema, Ce as auth0UserResponseSchema, We as authParamsSchema, Ni as authenticationMethodInsertSchema, Pi as authenticationMethodSchema, Ai as authenticationMethodTypeSchema, b as baseUserSchema, Mt as blockComponentSchema, gr as bordersSchema, Ge as brandingSchema, Hn as breachedPasswordDetectionSchema, Un as bruteForceProtectionSchema, N as buttonComponentSchema, Ue as claimsRequestSchema, w as clientGrantInsertSchema, Oe as clientGrantListSchema, T as clientGrantSchema, C as clientInsertSchema, D as clientRegistrationTokenInsertSchema, ke as clientRegistrationTokenSchema, E as clientRegistrationTokenTypeSchema, De as clientSchema, qe as codeInsertSchema, Je as codeSchema, Ke as codeTypeSchema, _r as colorsSchema, Ut as componentMessageSchema, L as componentSchema, Xe as connectionInsertSchema, Ye as connectionOptionsSchema, Ze as connectionSchema, O as coordinatesSchema, Li as createPassthroughAdapter, Ri as createWriteOnlyAdapter, nt as customDomainCertificateUploadSchema, B as customDomainInsertSchema, $e as customDomainSchema, et as customDomainUpdateSchema, tt as customDomainWithTenantIdSchema, Ti as customTextEntrySchema, wi as customTextSchema, mi as dailyStatsSchema, Ji as decodeBase32, Ki as decodeBase64, Hi as decodeBase64Url, Wi as decodeBase64UrlString, Zi as decodeCursor, Or as emailProviderSchema, kr as emailTemplateNameSchema, Ar as emailTemplateSchema, u as emailVerificationRulesSchema, f as emailVerifyActionSchema, qi as encodeBase32, Gi as encodeBase64, Vi as encodeBase64Url, Ui as encodeBase64UrlString, Xi as encodeCursor, Yi as encodeHex, Ie as endingSchema, Pt as fieldComponentSchema, h as flowActionStepSchema, g as flowInsertSchema, be as flowSchema, F as flowsFieldComponentSchema, je as flowsFlowNodeSchema, R as flowsStepNodeSchema, Z as fontDetailsSchema, vr as fontsSchema, It as formControlSchema, Vt as formInsertSchema, G as formNodeComponentDefinition, Bt as formNodeSchema, Ht as formSchema, I as genericComponentSchema, Ne as genericNodeSchema, zi as getConnectionIdentifierConfig, kn as getLogTypeCategory, On as getLogTypeDescription, Ur as grantInsertSchema, Wr as grantSchema, Tr as handlerConfigSchema, dn as hookCodeInsertSchema, fn as hookCodeSchema, an as hookInsertSchema, un as hookSchema, q as hookTemplateId, $t as hookTemplates, v as identitySchema, Fi as importMetadataSchema, hn as inviteInsertSchema, gn as inviteSchema, mn as inviteeSchema, pn as inviterSchema, Kt as isBlockComponent, ki as isDatabaseConnectionStrategy, Jt as isFieldComponent, Bi as isPlainObject, qt as isWidgetComponent, vn as jwksKeySchema, _n as jwksSchema, P as legalComponentSchema, pe as locationInfoSchema, Mn as logInsertSchema, Nn as logSchema, Fn as logStreamFilterSchema, In as logStreamInsertSchema, Ln as logStreamSchema, X as logStreamStatusSchema, Pn as logStreamTypeSchema, Dn as logTypeCategories, En as logTypeDescriptions, Sn as loginSessionAuthStrategySchema, Cn as loginSessionInsertSchema, wn as loginSessionSchema, xn as loginSessionStateSchema, wr as matchSchema, Rn as migrationProviderTypeSchema, zn as migrationSourceCredentialsSchema, Bn as migrationSourceInsertSchema, Vn as migrationSourceSchema, Pe as nodeSchema, yn as openIDConfigurationSchema, ri as organizationBrandingSchema, ci as organizationConnectionInsertSchema, ui as organizationConnectionListSchema, li as organizationConnectionSchema, ii as organizationEnabledConnectionSchema, oi as organizationInsertSchema, si as organizationSchema, ai as organizationTokenQuotaSchema, yr as pageBackgroundSchema, Ii as parseUserId, Kn as passwordInsertSchema, qn as passwordSchema, _ as profileDataSchema, Ci as promptScreenSchema, Cr as promptSettingSchema, Q as proxyRouteInsertSchema, Er as proxyRouteSchema, Dr as proxyRouteUpdateSchema, m as redirectActionSchema, jr as refreshTokenInsertSchema, Mr as refreshTokenSchema, de as requestContextSchema, Lr as resourceServerInsertSchema, zr as resourceServerListSchema, Ir as resourceServerOptionsSchema, Rr as resourceServerSchema, Fr as resourceServerScopeSchema, fe as responseContextSchema, M as richTextComponentSchema, ei as roleInsertSchema, ni as roleListSchema, Br as rolePermissionInsertSchema, Hr as rolePermissionListSchema, Vr as rolePermissionSchema, ti as roleSchema, dr as rolloutInsertSchema, lr as rolloutKindSchema, fr as rolloutSchema, ur as rolloutStatusSchema, pr as rolloutUpdateSchema, Qi as sanitizeLuceneQuery, Wt as screenLinkSchema, Yn as sessionInsertSchema, Xn as sessionSchema, Zn as signingKeySchema, Pr as smsProviderSchema, Nr as smsSendParamsSchema, Fe as startSchema, Wn as suspiciousIpThrottlingSchema, ue as targetSchema, Qn as tenantInsertSchema, nr as tenantOperationEngineSchema, sr as tenantOperationEventInsertSchema, or as tenantOperationEventOutcomeSchema, cr as tenantOperationEventSchema, rr as tenantOperationInsertSchema, er as tenantOperationKindSchema, ir as tenantOperationSchema, tr as tenantOperationStatusSchema, ar as tenantOperationUpdateSchema, $n as tenantSchema, pi as tenantSettingsSchema, xr as themeInsertSchema, Sr as themeSchema, hr as tokenResponseSchema, Se as totalsSchema, Gt as uiScreenSchema, Gr as userActivitySchema, x as userInsertSchema, di as userOrganizationInsertSchema, fi as userOrganizationSchema, Kr as userPermissionInsertSchema, Jr as userPermissionListSchema, qr as userPermissionSchema, Xr as userPermissionWithDetailsListSchema, Yr as userPermissionWithDetailsSchema, we as userResponseSchema, Zr as userRoleInsertSchema, $r as userRoleListSchema, Qr as userRoleSchema, S as userSchema, Qe as verificationMethodsSchema, Nt as widgetComponentSchema, br as widgetSchema };
|