@authhero/adapter-interfaces 1.16.0 → 1.18.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 +198 -11
- package/dist/adapter-interfaces.mjs +576 -557
- package/package.json +1 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const a = e.object({
|
|
3
3
|
created_at: e.string(),
|
|
4
4
|
updated_at: e.string()
|
|
5
|
-
}),
|
|
5
|
+
}), w = e.object({
|
|
6
6
|
id: e.string(),
|
|
7
7
|
version: e.string().optional()
|
|
8
|
-
}),
|
|
8
|
+
}), j = e.object({
|
|
9
9
|
name: e.string(),
|
|
10
10
|
version: e.string()
|
|
11
|
-
}),
|
|
11
|
+
}), k = e.object({
|
|
12
12
|
name: e.string(),
|
|
13
13
|
// Optional on writes so PATCH callers can omit the value to preserve the
|
|
14
14
|
// existing secret. The adapter merges by name when value is missing.
|
|
15
15
|
value: e.string().optional()
|
|
16
|
-
}),
|
|
16
|
+
}), R = e.object({
|
|
17
17
|
name: e.string().max(255),
|
|
18
18
|
code: e.string().max(1e5),
|
|
19
|
-
supported_triggers: e.array(
|
|
19
|
+
supported_triggers: e.array(w).optional(),
|
|
20
20
|
runtime: e.string().max(50).optional(),
|
|
21
|
-
dependencies: e.array(
|
|
22
|
-
secrets: e.array(
|
|
23
|
-
}),
|
|
21
|
+
dependencies: e.array(j).optional(),
|
|
22
|
+
secrets: e.array(k).optional()
|
|
23
|
+
}), zo = R.partial().extend({
|
|
24
24
|
status: e.enum(["draft", "built"]).optional(),
|
|
25
25
|
deployed_at: e.string().optional()
|
|
26
|
-
}),
|
|
26
|
+
}), qo = R.extend({
|
|
27
27
|
id: e.string(),
|
|
28
28
|
tenant_id: e.string(),
|
|
29
29
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -35,13 +35,26 @@ const r = e.object({
|
|
|
35
35
|
value: e.string().optional()
|
|
36
36
|
})
|
|
37
37
|
).optional(),
|
|
38
|
-
...
|
|
39
|
-
}), J = e.
|
|
38
|
+
...a.shape
|
|
39
|
+
}), J = e.object({
|
|
40
|
+
action_id: e.string(),
|
|
41
|
+
code: e.string().max(1e5),
|
|
42
|
+
runtime: e.string().max(50).optional(),
|
|
43
|
+
dependencies: e.array(j).optional(),
|
|
44
|
+
secrets: e.array(k).optional(),
|
|
45
|
+
supported_triggers: e.array(w).optional(),
|
|
46
|
+
deployed: e.boolean().default(!0)
|
|
47
|
+
}), Vo = J.extend({
|
|
48
|
+
id: e.string(),
|
|
49
|
+
tenant_id: e.string(),
|
|
50
|
+
number: e.number().int(),
|
|
51
|
+
...a.shape
|
|
52
|
+
}), ee = e.enum([
|
|
40
53
|
"user_action",
|
|
41
54
|
"admin_action",
|
|
42
55
|
"system",
|
|
43
56
|
"api"
|
|
44
|
-
]),
|
|
57
|
+
]), te = e.object({
|
|
45
58
|
type: e.enum(["user", "admin", "system", "api_key", "client_credentials"]),
|
|
46
59
|
id: e.string().optional(),
|
|
47
60
|
email: e.string().optional(),
|
|
@@ -49,13 +62,13 @@ const r = e.object({
|
|
|
49
62
|
org_name: e.string().optional(),
|
|
50
63
|
scopes: e.array(e.string()).optional(),
|
|
51
64
|
client_id: e.string().optional()
|
|
52
|
-
}),
|
|
65
|
+
}), oe = e.object({
|
|
53
66
|
type: e.string(),
|
|
54
67
|
id: e.string(),
|
|
55
68
|
before: e.record(e.unknown()).optional(),
|
|
56
69
|
after: e.record(e.unknown()).optional(),
|
|
57
70
|
diff: e.record(e.object({ old: e.unknown(), new: e.unknown() })).optional()
|
|
58
|
-
}),
|
|
71
|
+
}), ne = e.object({
|
|
59
72
|
method: e.string(),
|
|
60
73
|
path: e.string(),
|
|
61
74
|
query: e.record(e.string()).optional(),
|
|
@@ -63,56 +76,56 @@ const r = e.object({
|
|
|
63
76
|
ip: e.string(),
|
|
64
77
|
user_agent: e.string().optional(),
|
|
65
78
|
correlation_id: e.string().optional()
|
|
66
|
-
}),
|
|
79
|
+
}), ie = e.object({
|
|
67
80
|
status_code: e.number(),
|
|
68
81
|
body: e.unknown().optional()
|
|
69
|
-
}),
|
|
82
|
+
}), ae = e.object({
|
|
70
83
|
country_code: e.string(),
|
|
71
84
|
city_name: e.string(),
|
|
72
85
|
latitude: e.string(),
|
|
73
86
|
longitude: e.string(),
|
|
74
87
|
time_zone: e.string(),
|
|
75
88
|
continent_code: e.string()
|
|
76
|
-
}),
|
|
89
|
+
}), re = e.object({
|
|
77
90
|
name: e.string(),
|
|
78
91
|
version: e.string(),
|
|
79
92
|
env: e.record(e.string()).optional()
|
|
80
|
-
}),
|
|
93
|
+
}), se = e.object({
|
|
81
94
|
tenant_id: e.string(),
|
|
82
95
|
event_type: e.string(),
|
|
83
96
|
log_type: e.string(),
|
|
84
97
|
description: e.string().optional(),
|
|
85
|
-
category:
|
|
86
|
-
actor:
|
|
87
|
-
target:
|
|
88
|
-
request:
|
|
89
|
-
response:
|
|
98
|
+
category: ee,
|
|
99
|
+
actor: te,
|
|
100
|
+
target: oe,
|
|
101
|
+
request: ne,
|
|
102
|
+
response: ie.optional(),
|
|
90
103
|
connection: e.string().optional(),
|
|
91
104
|
strategy: e.string().optional(),
|
|
92
105
|
strategy_type: e.string().optional(),
|
|
93
106
|
audience: e.string().optional(),
|
|
94
107
|
scope: e.string().optional(),
|
|
95
|
-
location:
|
|
96
|
-
auth0_client:
|
|
108
|
+
location: ae.optional(),
|
|
109
|
+
auth0_client: re.optional(),
|
|
97
110
|
hostname: e.string(),
|
|
98
111
|
is_mobile: e.boolean().optional(),
|
|
99
112
|
timestamp: e.string()
|
|
100
|
-
}),
|
|
113
|
+
}), Xo = se.extend({
|
|
101
114
|
id: e.string()
|
|
102
|
-
}),
|
|
115
|
+
}), Yo = e.enum(["AUTH0", "EMAIL", "REDIRECT"]), Zo = e.enum([
|
|
103
116
|
"CREATE_USER",
|
|
104
117
|
"GET_USER",
|
|
105
118
|
"UPDATE_USER",
|
|
106
119
|
"SEND_REQUEST",
|
|
107
120
|
"SEND_EMAIL"
|
|
108
|
-
]),
|
|
121
|
+
]), Qo = e.enum(["VERIFY_EMAIL"]), le = e.object({
|
|
109
122
|
require_mx_record: e.boolean().optional(),
|
|
110
123
|
block_aliases: e.boolean().optional(),
|
|
111
124
|
block_free_emails: e.boolean().optional(),
|
|
112
125
|
block_disposable_emails: e.boolean().optional(),
|
|
113
126
|
blocklist: e.array(e.string()).optional(),
|
|
114
127
|
allowlist: e.array(e.string()).optional()
|
|
115
|
-
}),
|
|
128
|
+
}), pe = e.object({
|
|
116
129
|
id: e.string(),
|
|
117
130
|
alias: e.string().max(100).optional(),
|
|
118
131
|
type: e.literal("AUTH0"),
|
|
@@ -124,7 +137,7 @@ const r = e.object({
|
|
|
124
137
|
user_id: e.string(),
|
|
125
138
|
changes: e.record(e.string(), e.any())
|
|
126
139
|
})
|
|
127
|
-
}),
|
|
140
|
+
}), ce = e.object({
|
|
128
141
|
id: e.string(),
|
|
129
142
|
alias: e.string().max(100).optional(),
|
|
130
143
|
type: e.literal("EMAIL"),
|
|
@@ -133,9 +146,9 @@ const r = e.object({
|
|
|
133
146
|
mask_output: e.boolean().optional(),
|
|
134
147
|
params: e.object({
|
|
135
148
|
email: e.string(),
|
|
136
|
-
rules:
|
|
149
|
+
rules: le.optional()
|
|
137
150
|
})
|
|
138
|
-
}),
|
|
151
|
+
}), de = e.enum(["change-email", "account", "custom"]), _e = e.object({
|
|
139
152
|
id: e.string(),
|
|
140
153
|
alias: e.string().max(100).optional(),
|
|
141
154
|
type: e.literal("REDIRECT"),
|
|
@@ -143,32 +156,32 @@ const r = e.object({
|
|
|
143
156
|
allow_failure: e.boolean().optional(),
|
|
144
157
|
mask_output: e.boolean().optional(),
|
|
145
158
|
params: e.object({
|
|
146
|
-
target:
|
|
159
|
+
target: de.openapi({
|
|
147
160
|
description: "The predefined target to redirect to, or 'custom' for a custom URL"
|
|
148
161
|
}),
|
|
149
162
|
custom_url: e.string().optional().openapi({
|
|
150
163
|
description: "Custom URL to redirect to when target is 'custom'"
|
|
151
164
|
})
|
|
152
165
|
})
|
|
153
|
-
}),
|
|
154
|
-
le,
|
|
166
|
+
}), ge = e.union([
|
|
155
167
|
pe,
|
|
156
|
-
|
|
157
|
-
|
|
168
|
+
ce,
|
|
169
|
+
_e
|
|
170
|
+
]), ue = e.object({
|
|
158
171
|
name: e.string().min(1).max(150).openapi({
|
|
159
172
|
description: "The name of the flow"
|
|
160
173
|
}),
|
|
161
174
|
// Actions is an array of action steps (Auth0 stores as JSON blob)
|
|
162
|
-
actions: e.array(
|
|
175
|
+
actions: e.array(ge).optional().default([]).openapi({
|
|
163
176
|
description: "The list of actions to execute in sequence"
|
|
164
177
|
})
|
|
165
|
-
}),
|
|
166
|
-
...
|
|
178
|
+
}), $o = ue.extend({
|
|
179
|
+
...a.shape,
|
|
167
180
|
id: e.string().openapi({
|
|
168
181
|
description: "Unique identifier for the flow",
|
|
169
182
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
170
183
|
})
|
|
171
|
-
}),
|
|
184
|
+
}), Jo = e.object({
|
|
172
185
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
173
186
|
description: "The page number where 0 is the first page"
|
|
174
187
|
}),
|
|
@@ -184,12 +197,12 @@ const r = e.object({
|
|
|
184
197
|
q: e.string().optional().openapi({
|
|
185
198
|
description: "A lucene query string used to filter the results"
|
|
186
199
|
})
|
|
187
|
-
}),
|
|
200
|
+
}), en = e.object({
|
|
188
201
|
start: e.number(),
|
|
189
202
|
limit: e.number(),
|
|
190
203
|
length: e.number(),
|
|
191
204
|
total: e.number().optional()
|
|
192
|
-
}),
|
|
205
|
+
}), me = e.object({
|
|
193
206
|
email: e.string().optional(),
|
|
194
207
|
email_verified: e.boolean().optional(),
|
|
195
208
|
name: e.string().optional(),
|
|
@@ -198,7 +211,7 @@ const r = e.object({
|
|
|
198
211
|
phone_number: e.string().optional(),
|
|
199
212
|
phone_verified: e.boolean().optional(),
|
|
200
213
|
family_name: e.string().optional()
|
|
201
|
-
}).catchall(e.any()),
|
|
214
|
+
}).catchall(e.any()), he = e.object({
|
|
202
215
|
connection: e.string(),
|
|
203
216
|
user_id: e.string(),
|
|
204
217
|
provider: e.string(),
|
|
@@ -211,8 +224,8 @@ const r = e.object({
|
|
|
211
224
|
access_token: e.string().optional(),
|
|
212
225
|
access_token_secret: e.string().optional(),
|
|
213
226
|
refresh_token: e.string().optional(),
|
|
214
|
-
profileData:
|
|
215
|
-
}),
|
|
227
|
+
profileData: me.optional()
|
|
228
|
+
}), be = e.object({
|
|
216
229
|
formatted: e.string().optional(),
|
|
217
230
|
// Full mailing address
|
|
218
231
|
street_address: e.string().optional(),
|
|
@@ -225,7 +238,7 @@ const r = e.object({
|
|
|
225
238
|
// Zip code or postal code
|
|
226
239
|
country: e.string().optional()
|
|
227
240
|
// Country name
|
|
228
|
-
}).optional(),
|
|
241
|
+
}).optional(), v = e.object({
|
|
229
242
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
230
243
|
username: e.string().refine((t) => !t.includes("@"), {
|
|
231
244
|
message: 'Usernames must not contain "@". Use the email field for email addresses.'
|
|
@@ -257,8 +270,8 @@ const r = e.object({
|
|
|
257
270
|
zoneinfo: e.string().optional(),
|
|
258
271
|
// e.g., "Europe/Paris"
|
|
259
272
|
// OIDC address claim (OIDC Core 5.1.1)
|
|
260
|
-
address:
|
|
261
|
-
}),
|
|
273
|
+
address: be
|
|
274
|
+
}), fe = v.extend({
|
|
262
275
|
email_verified: e.boolean().default(!1),
|
|
263
276
|
verify_email: e.boolean().optional(),
|
|
264
277
|
last_ip: e.string().optional(),
|
|
@@ -281,31 +294,31 @@ const r = e.object({
|
|
|
281
294
|
hash: e.string(),
|
|
282
295
|
algorithm: e.string()
|
|
283
296
|
}).optional()
|
|
284
|
-
}),
|
|
285
|
-
...
|
|
286
|
-
...
|
|
297
|
+
}), Ee = e.object({
|
|
298
|
+
...fe.omit({ password: !0 }).shape,
|
|
299
|
+
...a.shape,
|
|
287
300
|
user_id: e.string(),
|
|
288
301
|
provider: e.string(),
|
|
289
302
|
is_social: e.boolean(),
|
|
290
303
|
email: e.string().optional(),
|
|
291
304
|
login_count: e.number().default(0),
|
|
292
|
-
identities: e.array(
|
|
293
|
-
}),
|
|
305
|
+
identities: e.array(he).optional()
|
|
306
|
+
}), tn = Ee.omit({
|
|
294
307
|
registration_completed_at: !0
|
|
295
|
-
}),
|
|
308
|
+
}), on = v.extend({
|
|
296
309
|
login_count: e.number(),
|
|
297
310
|
multifactor: e.array(e.string()).optional(),
|
|
298
311
|
last_ip: e.string().optional(),
|
|
299
312
|
last_login: e.string().optional(),
|
|
300
313
|
user_id: e.string()
|
|
301
314
|
}).catchall(e.any());
|
|
302
|
-
let
|
|
315
|
+
let Se = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ye = (t = 21) => {
|
|
303
316
|
let o = "", n = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
304
317
|
for (; t--; )
|
|
305
|
-
o +=
|
|
318
|
+
o += Se[n[t] & 63];
|
|
306
319
|
return o;
|
|
307
320
|
};
|
|
308
|
-
const
|
|
321
|
+
const Ae = e.object({
|
|
309
322
|
client_id: e.string().optional().openapi({
|
|
310
323
|
description: "ID of this client. Generated server-side if omitted (Auth0 behavior)."
|
|
311
324
|
}),
|
|
@@ -318,7 +331,7 @@ const ye = e.object({
|
|
|
318
331
|
global: e.boolean().default(!1).openapi({
|
|
319
332
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
320
333
|
}),
|
|
321
|
-
client_secret: e.string().default(() =>
|
|
334
|
+
client_secret: e.string().default(() => ye()).optional().openapi({
|
|
322
335
|
description: "Client secret (which you must not make public)."
|
|
323
336
|
}),
|
|
324
337
|
app_type: e.enum([
|
|
@@ -523,14 +536,14 @@ const ye = e.object({
|
|
|
523
536
|
user_linking_mode: e.enum(["builtin", "off"]).optional().openapi({
|
|
524
537
|
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."
|
|
525
538
|
})
|
|
526
|
-
}),
|
|
539
|
+
}), nn = e.object({
|
|
527
540
|
created_at: e.string(),
|
|
528
541
|
updated_at: e.string(),
|
|
529
|
-
...
|
|
542
|
+
...Ae.shape,
|
|
530
543
|
// Insert allows omitting (server-generated to match Auth0). The read schema
|
|
531
544
|
// always has it — the row in storage is non-null.
|
|
532
545
|
client_id: e.string()
|
|
533
|
-
}),
|
|
546
|
+
}), Ie = e.object({
|
|
534
547
|
client_id: e.string().min(1).openapi({
|
|
535
548
|
description: "ID of the client."
|
|
536
549
|
}),
|
|
@@ -555,37 +568,37 @@ const ye = e.object({
|
|
|
555
568
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
556
569
|
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."
|
|
557
570
|
})
|
|
558
|
-
}),
|
|
571
|
+
}), Ce = e.object({
|
|
559
572
|
id: e.string().openapi({
|
|
560
573
|
description: "ID of the client grant."
|
|
561
574
|
}),
|
|
562
|
-
...
|
|
575
|
+
...Ie.shape,
|
|
563
576
|
created_at: e.string().optional(),
|
|
564
577
|
updated_at: e.string().optional()
|
|
565
|
-
}),
|
|
578
|
+
}), an = e.array(Ce), Te = e.enum(["iat", "rat"]), Oe = e.object({
|
|
566
579
|
id: e.string(),
|
|
567
580
|
token_hash: e.string(),
|
|
568
|
-
type:
|
|
581
|
+
type: Te,
|
|
569
582
|
client_id: e.string().optional(),
|
|
570
583
|
sub: e.string().optional(),
|
|
571
584
|
constraints: e.record(e.unknown()).optional(),
|
|
572
585
|
single_use: e.boolean().default(!1),
|
|
573
586
|
expires_at: e.string().optional()
|
|
574
|
-
}),
|
|
587
|
+
}), rn = e.object({
|
|
575
588
|
created_at: e.string(),
|
|
576
589
|
used_at: e.string().optional(),
|
|
577
590
|
revoked_at: e.string().optional(),
|
|
578
|
-
...
|
|
591
|
+
...Oe.shape
|
|
579
592
|
}), m = e.object({
|
|
580
593
|
x: e.number(),
|
|
581
594
|
y: e.number()
|
|
582
595
|
});
|
|
583
|
-
var
|
|
596
|
+
var D = /* @__PURE__ */ ((t) => (t.RICH_TEXT = "RICH_TEXT", t.NEXT_BUTTON = "NEXT_BUTTON", t.BACK_BUTTON = "BACK_BUTTON", t.SUBMIT_BUTTON = "SUBMIT_BUTTON", t.DIVIDER = "DIVIDER", t.TEXT = "TEXT", t.EMAIL = "EMAIL", t.PASSWORD = "PASSWORD", t.NUMBER = "NUMBER", t.PHONE = "PHONE", t.DATE = "DATE", t.CHECKBOX = "CHECKBOX", t.RADIO = "RADIO", t.SELECT = "SELECT", t.HIDDEN = "HIDDEN", t.LEGAL = "LEGAL", t))(D || {}), L = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(L || {});
|
|
584
597
|
const C = e.object({
|
|
585
598
|
id: e.string(),
|
|
586
|
-
category: e.nativeEnum(
|
|
587
|
-
type: e.nativeEnum(
|
|
588
|
-
}),
|
|
599
|
+
category: e.nativeEnum(L),
|
|
600
|
+
type: e.nativeEnum(D)
|
|
601
|
+
}), Ne = C.extend({
|
|
589
602
|
category: e.literal(
|
|
590
603
|
"BLOCK"
|
|
591
604
|
/* BLOCK */
|
|
@@ -597,7 +610,7 @@ const C = e.object({
|
|
|
597
610
|
config: e.object({
|
|
598
611
|
content: e.string()
|
|
599
612
|
}).passthrough()
|
|
600
|
-
}),
|
|
613
|
+
}), we = C.extend({
|
|
601
614
|
category: e.literal(
|
|
602
615
|
"BLOCK"
|
|
603
616
|
/* BLOCK */
|
|
@@ -619,7 +632,7 @@ const C = e.object({
|
|
|
619
632
|
config: e.object({
|
|
620
633
|
text: e.string()
|
|
621
634
|
}).passthrough()
|
|
622
|
-
}),
|
|
635
|
+
}), je = C.extend({
|
|
623
636
|
category: e.literal(
|
|
624
637
|
"FIELD"
|
|
625
638
|
/* FIELD */
|
|
@@ -633,7 +646,7 @@ const C = e.object({
|
|
|
633
646
|
config: e.object({
|
|
634
647
|
text: e.string()
|
|
635
648
|
}).passthrough()
|
|
636
|
-
}),
|
|
649
|
+
}), ke = C.extend({
|
|
637
650
|
category: e.literal(
|
|
638
651
|
"FIELD"
|
|
639
652
|
/* FIELD */
|
|
@@ -690,15 +703,15 @@ const C = e.object({
|
|
|
690
703
|
id: e.string(),
|
|
691
704
|
category: e.string(),
|
|
692
705
|
type: e.string()
|
|
693
|
-
}).passthrough(),
|
|
694
|
-
Oe,
|
|
706
|
+
}).passthrough(), ve = e.union([
|
|
695
707
|
Ne,
|
|
696
708
|
we,
|
|
697
709
|
je,
|
|
710
|
+
ke,
|
|
698
711
|
Re
|
|
699
712
|
]);
|
|
700
|
-
var
|
|
701
|
-
const
|
|
713
|
+
var De = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(De || {});
|
|
714
|
+
const Le = e.object({
|
|
702
715
|
id: e.string(),
|
|
703
716
|
type: e.literal(
|
|
704
717
|
"STEP"
|
|
@@ -707,10 +720,10 @@ const De = e.object({
|
|
|
707
720
|
coordinates: m,
|
|
708
721
|
alias: e.string().optional(),
|
|
709
722
|
config: e.object({
|
|
710
|
-
components: e.array(
|
|
723
|
+
components: e.array(ve),
|
|
711
724
|
next_node: e.string()
|
|
712
725
|
}).passthrough()
|
|
713
|
-
}),
|
|
726
|
+
}), Ue = e.object({
|
|
714
727
|
id: e.string(),
|
|
715
728
|
type: e.literal(
|
|
716
729
|
"FLOW"
|
|
@@ -722,7 +735,7 @@ const De = e.object({
|
|
|
722
735
|
flow_id: e.string(),
|
|
723
736
|
next_node: e.string()
|
|
724
737
|
})
|
|
725
|
-
}),
|
|
738
|
+
}), xe = e.object({
|
|
726
739
|
id: e.string(),
|
|
727
740
|
type: e.literal(
|
|
728
741
|
"ACTION"
|
|
@@ -744,47 +757,47 @@ const De = e.object({
|
|
|
744
757
|
description: "The next node to navigate to after action (for non-redirect actions)"
|
|
745
758
|
})
|
|
746
759
|
}).passthrough()
|
|
747
|
-
}),
|
|
760
|
+
}), Fe = e.object({
|
|
748
761
|
id: e.string(),
|
|
749
762
|
type: e.string(),
|
|
750
763
|
coordinates: m
|
|
751
|
-
}).passthrough(),
|
|
752
|
-
De,
|
|
764
|
+
}).passthrough(), Pe = e.union([
|
|
753
765
|
Le,
|
|
754
766
|
Ue,
|
|
755
|
-
xe
|
|
756
|
-
|
|
767
|
+
xe,
|
|
768
|
+
Fe
|
|
769
|
+
]), Me = e.object({
|
|
757
770
|
next_node: e.string(),
|
|
758
771
|
coordinates: m
|
|
759
|
-
}).passthrough(),
|
|
772
|
+
}).passthrough(), He = e.object({
|
|
760
773
|
resume_flow: e.boolean().optional(),
|
|
761
774
|
coordinates: m
|
|
762
|
-
}).passthrough(),
|
|
775
|
+
}).passthrough(), Ge = e.object({
|
|
763
776
|
id: e.string(),
|
|
764
777
|
name: e.string(),
|
|
765
778
|
languages: e.object({
|
|
766
779
|
primary: e.string()
|
|
767
780
|
}).passthrough(),
|
|
768
|
-
nodes: e.array(
|
|
769
|
-
start:
|
|
770
|
-
ending:
|
|
781
|
+
nodes: e.array(Pe),
|
|
782
|
+
start: Me,
|
|
783
|
+
ending: He,
|
|
771
784
|
created_at: e.string(),
|
|
772
785
|
updated_at: e.string(),
|
|
773
786
|
links: e.object({
|
|
774
787
|
sdkSrc: e.string().optional(),
|
|
775
788
|
sdk_src: e.string().optional()
|
|
776
789
|
}).passthrough()
|
|
777
|
-
}).passthrough(),
|
|
790
|
+
}).passthrough(), sn = Ge.omit({
|
|
778
791
|
id: !0,
|
|
779
792
|
created_at: !0,
|
|
780
793
|
updated_at: !0
|
|
781
794
|
});
|
|
782
|
-
var
|
|
783
|
-
const
|
|
795
|
+
var U = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.ID_TOKEN = "id_token", t.TOKEN_ID_TOKEN = "id_token token", t.CODE = "code", t.CODE_ID_TOKEN = "code id_token", t.CODE_TOKEN = "code token", t.CODE_ID_TOKEN_TOKEN = "code id_token token", t))(U || {}), x = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(x || {}), F = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(F || {});
|
|
796
|
+
const Be = e.object({
|
|
784
797
|
client_id: e.string(),
|
|
785
798
|
act_as: e.string().optional(),
|
|
786
|
-
response_type: e.nativeEnum(
|
|
787
|
-
response_mode: e.nativeEnum(
|
|
799
|
+
response_type: e.nativeEnum(U).optional(),
|
|
800
|
+
response_mode: e.nativeEnum(x).optional(),
|
|
788
801
|
redirect_uri: e.string().optional(),
|
|
789
802
|
audience: e.string().optional(),
|
|
790
803
|
organization: e.string().optional(),
|
|
@@ -792,7 +805,7 @@ const Ge = e.object({
|
|
|
792
805
|
nonce: e.string().optional(),
|
|
793
806
|
scope: e.string().optional(),
|
|
794
807
|
prompt: e.string().optional(),
|
|
795
|
-
code_challenge_method: e.nativeEnum(
|
|
808
|
+
code_challenge_method: e.nativeEnum(F).optional(),
|
|
796
809
|
code_challenge: e.string().optional(),
|
|
797
810
|
username: e.string().optional(),
|
|
798
811
|
ui_locales: e.string().optional(),
|
|
@@ -804,7 +817,7 @@ const Ge = e.object({
|
|
|
804
817
|
acr_values: e.string().optional(),
|
|
805
818
|
// The following fields are not available in Auth0
|
|
806
819
|
vendor_id: e.string().optional()
|
|
807
|
-
}),
|
|
820
|
+
}), ln = e.object({
|
|
808
821
|
colors: e.object({
|
|
809
822
|
primary: e.string(),
|
|
810
823
|
// Auth0 supports either a hex color string ("#ffffff") or a gradient
|
|
@@ -824,8 +837,12 @@ const Ge = e.object({
|
|
|
824
837
|
powered_by_logo_url: e.string().optional(),
|
|
825
838
|
font: e.object({
|
|
826
839
|
url: e.string()
|
|
827
|
-
}).optional()
|
|
828
|
-
|
|
840
|
+
}).optional(),
|
|
841
|
+
// AuthHero-specific: default color scheme for the universal login page.
|
|
842
|
+
// Auth0 has no equivalent. Per-user toggle (ah-dark-mode cookie) still
|
|
843
|
+
// overrides this at runtime.
|
|
844
|
+
dark_mode: e.enum(["dark", "light", "auto"]).optional()
|
|
845
|
+
}), We = e.enum([
|
|
829
846
|
"password_reset",
|
|
830
847
|
"email_verification",
|
|
831
848
|
"otp",
|
|
@@ -833,7 +850,7 @@ const Ge = e.object({
|
|
|
833
850
|
"authorization_code",
|
|
834
851
|
"oauth2_state",
|
|
835
852
|
"ticket"
|
|
836
|
-
]),
|
|
853
|
+
]), Ke = e.object({
|
|
837
854
|
code_id: e.string().openapi({
|
|
838
855
|
description: "The code that will be used in for instance an email verification flow"
|
|
839
856
|
}),
|
|
@@ -843,7 +860,7 @@ const Ge = e.object({
|
|
|
843
860
|
connection_id: e.string().optional().openapi({
|
|
844
861
|
description: "The connection that the code is connected to"
|
|
845
862
|
}),
|
|
846
|
-
code_type:
|
|
863
|
+
code_type: We,
|
|
847
864
|
code_verifier: e.string().optional().openapi({
|
|
848
865
|
description: "The code verifier used in PKCE in outbound flows"
|
|
849
866
|
}),
|
|
@@ -868,10 +885,10 @@ const Ge = e.object({
|
|
|
868
885
|
expires_at: e.string(),
|
|
869
886
|
used_at: e.string().optional(),
|
|
870
887
|
user_id: e.string().optional()
|
|
871
|
-
}),
|
|
872
|
-
...
|
|
888
|
+
}), pn = e.object({
|
|
889
|
+
...Ke.shape,
|
|
873
890
|
created_at: e.string()
|
|
874
|
-
}),
|
|
891
|
+
}), ze = e.object({
|
|
875
892
|
kid: e.string().optional(),
|
|
876
893
|
team_id: e.string().optional(),
|
|
877
894
|
realms: e.string().optional(),
|
|
@@ -1005,14 +1022,14 @@ function T(t) {
|
|
|
1005
1022
|
return t;
|
|
1006
1023
|
}
|
|
1007
1024
|
}
|
|
1008
|
-
const
|
|
1025
|
+
const qe = e.object({
|
|
1009
1026
|
id: e.string().optional(),
|
|
1010
1027
|
name: e.string(),
|
|
1011
1028
|
display_name: e.string().optional(),
|
|
1012
1029
|
strategy: e.string(),
|
|
1013
1030
|
options: e.preprocess(
|
|
1014
1031
|
(t) => t === null ? {} : T(t),
|
|
1015
|
-
|
|
1032
|
+
ze
|
|
1016
1033
|
).default({}),
|
|
1017
1034
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
1018
1035
|
response_type: e.custom().optional(),
|
|
@@ -1021,11 +1038,11 @@ const ze = e.object({
|
|
|
1021
1038
|
show_as_button: e.boolean().optional(),
|
|
1022
1039
|
metadata: e.record(e.any()).optional(),
|
|
1023
1040
|
is_system: e.boolean().optional()
|
|
1024
|
-
}),
|
|
1041
|
+
}), cn = e.object({
|
|
1025
1042
|
id: e.string(),
|
|
1026
1043
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
1027
1044
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
1028
|
-
}).extend(
|
|
1045
|
+
}).extend(qe.shape), Ve = e.object({
|
|
1029
1046
|
domain: e.string(),
|
|
1030
1047
|
custom_domain_id: e.string().optional(),
|
|
1031
1048
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -1050,8 +1067,8 @@ const ze = e.object({
|
|
|
1050
1067
|
http_body: e.string(),
|
|
1051
1068
|
http_url: e.string()
|
|
1052
1069
|
})
|
|
1053
|
-
]),
|
|
1054
|
-
...
|
|
1070
|
+
]), Ye = e.object({
|
|
1071
|
+
...Ve.shape,
|
|
1055
1072
|
custom_domain_id: e.string(),
|
|
1056
1073
|
primary: e.boolean(),
|
|
1057
1074
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
@@ -1060,7 +1077,7 @@ const ze = e.object({
|
|
|
1060
1077
|
methods: e.array(Xe)
|
|
1061
1078
|
}).optional(),
|
|
1062
1079
|
tls_policy: e.string().optional()
|
|
1063
|
-
}),
|
|
1080
|
+
}), dn = Ye.extend({
|
|
1064
1081
|
tenant_id: e.string()
|
|
1065
1082
|
}), O = e.object({
|
|
1066
1083
|
id: e.string(),
|
|
@@ -1068,17 +1085,17 @@ const ze = e.object({
|
|
|
1068
1085
|
visible: e.boolean().optional().default(!0)
|
|
1069
1086
|
}), l = O.extend({
|
|
1070
1087
|
category: e.literal("BLOCK").optional()
|
|
1071
|
-
}),
|
|
1088
|
+
}), Ze = l.extend({
|
|
1072
1089
|
type: e.literal("DIVIDER"),
|
|
1073
1090
|
config: e.object({
|
|
1074
1091
|
text: e.string().optional()
|
|
1075
1092
|
}).optional()
|
|
1076
|
-
}),
|
|
1093
|
+
}), Qe = l.extend({
|
|
1077
1094
|
type: e.literal("HTML"),
|
|
1078
1095
|
config: e.object({
|
|
1079
1096
|
content: e.string().optional()
|
|
1080
1097
|
}).optional()
|
|
1081
|
-
}),
|
|
1098
|
+
}), $e = l.extend({
|
|
1082
1099
|
type: e.literal("IMAGE"),
|
|
1083
1100
|
config: e.object({
|
|
1084
1101
|
src: e.string().optional(),
|
|
@@ -1086,29 +1103,29 @@ const ze = e.object({
|
|
|
1086
1103
|
width: e.number().optional(),
|
|
1087
1104
|
height: e.number().optional()
|
|
1088
1105
|
}).optional()
|
|
1089
|
-
}),
|
|
1106
|
+
}), Je = l.extend({
|
|
1090
1107
|
type: e.literal("JUMP_BUTTON"),
|
|
1091
1108
|
config: e.object({
|
|
1092
1109
|
text: e.string().optional(),
|
|
1093
1110
|
target_step: e.string().optional()
|
|
1094
1111
|
})
|
|
1095
|
-
}),
|
|
1112
|
+
}), et = l.extend({
|
|
1096
1113
|
type: e.literal("RESEND_BUTTON"),
|
|
1097
1114
|
config: e.object({
|
|
1098
1115
|
text: e.string().optional(),
|
|
1099
1116
|
resend_action: e.string().optional()
|
|
1100
1117
|
})
|
|
1101
|
-
}),
|
|
1118
|
+
}), tt = l.extend({
|
|
1102
1119
|
type: e.literal("NEXT_BUTTON"),
|
|
1103
1120
|
config: e.object({
|
|
1104
1121
|
text: e.string().optional()
|
|
1105
1122
|
})
|
|
1106
|
-
}),
|
|
1123
|
+
}), ot = l.extend({
|
|
1107
1124
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
1108
1125
|
config: e.object({
|
|
1109
1126
|
text: e.string().optional()
|
|
1110
1127
|
})
|
|
1111
|
-
}),
|
|
1128
|
+
}), nt = l.extend({
|
|
1112
1129
|
type: e.literal("RICH_TEXT"),
|
|
1113
1130
|
config: e.object({
|
|
1114
1131
|
content: e.string().optional()
|
|
@@ -1119,17 +1136,17 @@ const ze = e.object({
|
|
|
1119
1136
|
hint: e.string().min(1).max(500).optional(),
|
|
1120
1137
|
required: e.boolean().optional(),
|
|
1121
1138
|
sensitive: e.boolean().optional()
|
|
1122
|
-
}),
|
|
1139
|
+
}), it = N.extend({
|
|
1123
1140
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
1124
1141
|
config: e.object({
|
|
1125
1142
|
credential_type: e.string().optional()
|
|
1126
1143
|
})
|
|
1127
|
-
}),
|
|
1144
|
+
}), at = N.extend({
|
|
1128
1145
|
type: e.literal("GMAPS_ADDRESS"),
|
|
1129
1146
|
config: e.object({
|
|
1130
1147
|
api_key: e.string().optional()
|
|
1131
1148
|
})
|
|
1132
|
-
}),
|
|
1149
|
+
}), rt = N.extend({
|
|
1133
1150
|
type: e.literal("RECAPTCHA"),
|
|
1134
1151
|
config: e.object({
|
|
1135
1152
|
site_key: e.string().optional()
|
|
@@ -1147,12 +1164,12 @@ const ze = e.object({
|
|
|
1147
1164
|
).optional(),
|
|
1148
1165
|
required: e.boolean().optional(),
|
|
1149
1166
|
sensitive: e.boolean().optional()
|
|
1150
|
-
}),
|
|
1167
|
+
}), st = i.extend({
|
|
1151
1168
|
type: e.literal("BOOLEAN"),
|
|
1152
1169
|
config: e.object({
|
|
1153
1170
|
default_value: e.boolean().optional()
|
|
1154
1171
|
}).optional()
|
|
1155
|
-
}),
|
|
1172
|
+
}), lt = i.extend({
|
|
1156
1173
|
type: e.literal("CARDS"),
|
|
1157
1174
|
config: e.object({
|
|
1158
1175
|
options: e.array(
|
|
@@ -1165,7 +1182,7 @@ const ze = e.object({
|
|
|
1165
1182
|
).optional(),
|
|
1166
1183
|
multi_select: e.boolean().optional()
|
|
1167
1184
|
}).optional()
|
|
1168
|
-
}),
|
|
1185
|
+
}), pt = i.extend({
|
|
1169
1186
|
type: e.literal("CHOICE"),
|
|
1170
1187
|
config: e.object({
|
|
1171
1188
|
options: e.array(
|
|
@@ -1178,7 +1195,7 @@ const ze = e.object({
|
|
|
1178
1195
|
multiple: e.boolean().optional(),
|
|
1179
1196
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1180
1197
|
}).optional()
|
|
1181
|
-
}),
|
|
1198
|
+
}), ct = i.extend({
|
|
1182
1199
|
type: e.literal("CUSTOM"),
|
|
1183
1200
|
config: e.object({
|
|
1184
1201
|
component: e.string().optional(),
|
|
@@ -1186,7 +1203,7 @@ const ze = e.object({
|
|
|
1186
1203
|
schema: e.record(e.any()).optional(),
|
|
1187
1204
|
code: e.string().optional()
|
|
1188
1205
|
})
|
|
1189
|
-
}),
|
|
1206
|
+
}), dt = i.extend({
|
|
1190
1207
|
type: e.literal("DATE"),
|
|
1191
1208
|
config: e.object({
|
|
1192
1209
|
format: e.string().optional(),
|
|
@@ -1194,7 +1211,7 @@ const ze = e.object({
|
|
|
1194
1211
|
max: e.string().optional(),
|
|
1195
1212
|
default_value: e.string().optional()
|
|
1196
1213
|
}).optional()
|
|
1197
|
-
}),
|
|
1214
|
+
}), _t = i.extend({
|
|
1198
1215
|
type: e.literal("DROPDOWN"),
|
|
1199
1216
|
config: e.object({
|
|
1200
1217
|
options: e.array(
|
|
@@ -1208,26 +1225,26 @@ const ze = e.object({
|
|
|
1208
1225
|
multiple: e.boolean().optional(),
|
|
1209
1226
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
1210
1227
|
}).optional()
|
|
1211
|
-
}),
|
|
1228
|
+
}), gt = i.extend({
|
|
1212
1229
|
type: e.literal("EMAIL"),
|
|
1213
1230
|
config: e.object({
|
|
1214
1231
|
placeholder: e.string().optional(),
|
|
1215
1232
|
default_value: e.string().optional()
|
|
1216
1233
|
}).optional()
|
|
1217
|
-
}),
|
|
1234
|
+
}), ut = i.extend({
|
|
1218
1235
|
type: e.literal("FILE"),
|
|
1219
1236
|
config: e.object({
|
|
1220
1237
|
accept: e.string().optional(),
|
|
1221
1238
|
max_size: e.number().optional(),
|
|
1222
1239
|
multiple: e.boolean().optional()
|
|
1223
1240
|
}).optional()
|
|
1224
|
-
}),
|
|
1241
|
+
}), mt = i.extend({
|
|
1225
1242
|
type: e.literal("LEGAL"),
|
|
1226
1243
|
config: e.object({
|
|
1227
1244
|
text: e.string(),
|
|
1228
1245
|
html: e.boolean().optional()
|
|
1229
1246
|
}).optional()
|
|
1230
|
-
}),
|
|
1247
|
+
}), ht = i.extend({
|
|
1231
1248
|
type: e.literal("NUMBER"),
|
|
1232
1249
|
config: e.object({
|
|
1233
1250
|
placeholder: e.string().optional(),
|
|
@@ -1236,7 +1253,7 @@ const ze = e.object({
|
|
|
1236
1253
|
step: e.number().optional(),
|
|
1237
1254
|
default_value: e.string().optional()
|
|
1238
1255
|
}).optional()
|
|
1239
|
-
}),
|
|
1256
|
+
}), bt = i.extend({
|
|
1240
1257
|
type: e.literal("PASSWORD"),
|
|
1241
1258
|
config: e.object({
|
|
1242
1259
|
placeholder: e.string().optional(),
|
|
@@ -1245,13 +1262,13 @@ const ze = e.object({
|
|
|
1245
1262
|
forgot_password_link: e.string().optional(),
|
|
1246
1263
|
default_value: e.string().optional()
|
|
1247
1264
|
}).optional()
|
|
1248
|
-
}),
|
|
1265
|
+
}), ft = i.extend({
|
|
1249
1266
|
type: e.literal("PAYMENT"),
|
|
1250
1267
|
config: e.object({
|
|
1251
1268
|
provider: e.string().optional(),
|
|
1252
1269
|
currency: e.string().optional()
|
|
1253
1270
|
}).optional()
|
|
1254
|
-
}),
|
|
1271
|
+
}), Et = i.extend({
|
|
1255
1272
|
type: e.literal("SOCIAL"),
|
|
1256
1273
|
config: e.object({
|
|
1257
1274
|
providers: e.array(e.string()).optional(),
|
|
@@ -1266,7 +1283,7 @@ const ze = e.object({
|
|
|
1266
1283
|
})
|
|
1267
1284
|
).optional()
|
|
1268
1285
|
}).optional()
|
|
1269
|
-
}),
|
|
1286
|
+
}), St = i.extend({
|
|
1270
1287
|
type: e.literal("TEL"),
|
|
1271
1288
|
config: e.object({
|
|
1272
1289
|
placeholder: e.string().optional(),
|
|
@@ -1274,7 +1291,7 @@ const ze = e.object({
|
|
|
1274
1291
|
default_value: e.string().optional(),
|
|
1275
1292
|
allow_email: e.boolean().optional()
|
|
1276
1293
|
}).optional()
|
|
1277
|
-
}),
|
|
1294
|
+
}), yt = i.extend({
|
|
1278
1295
|
type: e.literal("TEXT"),
|
|
1279
1296
|
config: e.object({
|
|
1280
1297
|
placeholder: e.string().optional(),
|
|
@@ -1282,37 +1299,36 @@ const ze = e.object({
|
|
|
1282
1299
|
max_length: e.number().optional(),
|
|
1283
1300
|
default_value: e.string().optional()
|
|
1284
1301
|
}).optional()
|
|
1285
|
-
}),
|
|
1302
|
+
}), At = i.extend({
|
|
1286
1303
|
type: e.literal("COUNTRY"),
|
|
1287
1304
|
config: e.object({
|
|
1288
1305
|
placeholder: e.string().optional(),
|
|
1289
1306
|
default_value: e.string().optional()
|
|
1290
1307
|
}).optional()
|
|
1291
|
-
}),
|
|
1308
|
+
}), It = i.extend({
|
|
1292
1309
|
type: e.literal("URL"),
|
|
1293
1310
|
config: e.object({
|
|
1294
1311
|
placeholder: e.string().optional(),
|
|
1295
1312
|
default_value: e.string().optional()
|
|
1296
1313
|
}).optional()
|
|
1297
|
-
}),
|
|
1298
|
-
Ye,
|
|
1314
|
+
}), Ct = e.discriminatedUnion("type", [
|
|
1299
1315
|
Ze,
|
|
1300
1316
|
Qe,
|
|
1301
1317
|
$e,
|
|
1302
1318
|
Je,
|
|
1303
1319
|
et,
|
|
1304
1320
|
tt,
|
|
1305
|
-
ot
|
|
1306
|
-
|
|
1307
|
-
nt,
|
|
1308
|
-
it,
|
|
1309
|
-
at
|
|
1321
|
+
ot,
|
|
1322
|
+
nt
|
|
1310
1323
|
]), Tt = e.discriminatedUnion("type", [
|
|
1311
|
-
|
|
1324
|
+
it,
|
|
1325
|
+
at,
|
|
1326
|
+
rt
|
|
1327
|
+
]), Ot = e.discriminatedUnion("type", [
|
|
1312
1328
|
st,
|
|
1313
1329
|
lt,
|
|
1314
|
-
yt,
|
|
1315
1330
|
pt,
|
|
1331
|
+
At,
|
|
1316
1332
|
ct,
|
|
1317
1333
|
dt,
|
|
1318
1334
|
_t,
|
|
@@ -1324,12 +1340,13 @@ const ze = e.object({
|
|
|
1324
1340
|
ft,
|
|
1325
1341
|
Et,
|
|
1326
1342
|
St,
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1343
|
+
yt,
|
|
1344
|
+
It
|
|
1345
|
+
]), P = e.union([
|
|
1330
1346
|
Ct,
|
|
1331
|
-
Tt
|
|
1332
|
-
|
|
1347
|
+
Tt,
|
|
1348
|
+
Ot
|
|
1349
|
+
]), _n = /* @__PURE__ */ new Set([
|
|
1333
1350
|
"BOOLEAN",
|
|
1334
1351
|
"CARDS",
|
|
1335
1352
|
"CHOICE",
|
|
@@ -1343,7 +1360,7 @@ const ze = e.object({
|
|
|
1343
1360
|
"TEL",
|
|
1344
1361
|
"TEXT",
|
|
1345
1362
|
"URL"
|
|
1346
|
-
]),
|
|
1363
|
+
]), gn = e.object({
|
|
1347
1364
|
id: e.string(),
|
|
1348
1365
|
type: e.literal("submit"),
|
|
1349
1366
|
label: e.string(),
|
|
@@ -1355,7 +1372,7 @@ const ze = e.object({
|
|
|
1355
1372
|
}), E = e.object({
|
|
1356
1373
|
x: e.number(),
|
|
1357
1374
|
y: e.number()
|
|
1358
|
-
}),
|
|
1375
|
+
}), Nt = e.object({
|
|
1359
1376
|
id: e.string(),
|
|
1360
1377
|
type: e.literal("FLOW"),
|
|
1361
1378
|
coordinates: E,
|
|
@@ -1364,7 +1381,7 @@ const ze = e.object({
|
|
|
1364
1381
|
flow_id: e.string().max(30),
|
|
1365
1382
|
next_node: e.string().optional()
|
|
1366
1383
|
})
|
|
1367
|
-
}),
|
|
1384
|
+
}), wt = e.object({
|
|
1368
1385
|
id: e.string(),
|
|
1369
1386
|
type: e.literal("ROUTER"),
|
|
1370
1387
|
coordinates: E,
|
|
@@ -1380,19 +1397,19 @@ const ze = e.object({
|
|
|
1380
1397
|
),
|
|
1381
1398
|
fallback: e.string()
|
|
1382
1399
|
})
|
|
1383
|
-
}),
|
|
1400
|
+
}), jt = e.object({
|
|
1384
1401
|
id: e.string(),
|
|
1385
1402
|
type: e.literal("STEP"),
|
|
1386
1403
|
coordinates: E,
|
|
1387
1404
|
alias: e.string().min(1).max(150).optional(),
|
|
1388
1405
|
config: e.object({
|
|
1389
|
-
components: e.array(
|
|
1406
|
+
components: e.array(P),
|
|
1390
1407
|
next_node: e.string().optional()
|
|
1391
1408
|
})
|
|
1392
|
-
}),
|
|
1393
|
-
Ot,
|
|
1409
|
+
}), kt = e.discriminatedUnion("type", [
|
|
1394
1410
|
Nt,
|
|
1395
|
-
wt
|
|
1411
|
+
wt,
|
|
1412
|
+
jt
|
|
1396
1413
|
]), Rt = e.object({
|
|
1397
1414
|
name: e.string().openapi({
|
|
1398
1415
|
description: "The name of the form"
|
|
@@ -1406,7 +1423,7 @@ const ze = e.object({
|
|
|
1406
1423
|
default: e.string().optional()
|
|
1407
1424
|
}).optional(),
|
|
1408
1425
|
translations: e.record(e.string(), e.any()).optional(),
|
|
1409
|
-
nodes: e.array(
|
|
1426
|
+
nodes: e.array(kt).optional(),
|
|
1410
1427
|
start: e.object({
|
|
1411
1428
|
hidden_fields: e.array(e.object({ key: e.string(), value: e.string() })).optional(),
|
|
1412
1429
|
next_node: e.string().optional(),
|
|
@@ -1428,42 +1445,42 @@ const ze = e.object({
|
|
|
1428
1445
|
}).optional()
|
|
1429
1446
|
}).openapi({
|
|
1430
1447
|
description: "Schema for flow-based forms (matches Auth0 Forms structure)"
|
|
1431
|
-
}),
|
|
1432
|
-
...
|
|
1448
|
+
}), un = e.object({
|
|
1449
|
+
...a.shape,
|
|
1433
1450
|
...Rt.shape,
|
|
1434
1451
|
id: e.string()
|
|
1435
|
-
}),
|
|
1452
|
+
}), vt = e.object({
|
|
1436
1453
|
id: e.number().optional(),
|
|
1437
1454
|
text: e.string(),
|
|
1438
1455
|
type: e.enum(["info", "error", "success", "warning"])
|
|
1439
|
-
}),
|
|
1456
|
+
}), Dt = e.object({
|
|
1440
1457
|
id: e.string().optional(),
|
|
1441
1458
|
text: e.string(),
|
|
1442
1459
|
href: e.string(),
|
|
1443
1460
|
linkText: e.string().optional()
|
|
1444
|
-
}),
|
|
1461
|
+
}), mn = e.object({
|
|
1445
1462
|
/** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
|
|
1446
1463
|
name: e.string().optional(),
|
|
1447
1464
|
action: e.string(),
|
|
1448
1465
|
method: e.enum(["POST", "GET"]),
|
|
1449
1466
|
title: e.string().optional(),
|
|
1450
1467
|
description: e.string().optional(),
|
|
1451
|
-
components: e.array(
|
|
1452
|
-
messages: e.array(
|
|
1453
|
-
links: e.array(
|
|
1468
|
+
components: e.array(P),
|
|
1469
|
+
messages: e.array(vt).optional(),
|
|
1470
|
+
links: e.array(Dt).optional(),
|
|
1454
1471
|
/** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
|
|
1455
1472
|
footer: e.string().optional()
|
|
1456
1473
|
});
|
|
1457
|
-
function
|
|
1474
|
+
function hn(t) {
|
|
1458
1475
|
return t.category === "BLOCK";
|
|
1459
1476
|
}
|
|
1460
|
-
function
|
|
1477
|
+
function bn(t) {
|
|
1461
1478
|
return t.category === "WIDGET";
|
|
1462
1479
|
}
|
|
1463
|
-
function
|
|
1480
|
+
function fn(t) {
|
|
1464
1481
|
return t.category === "FIELD";
|
|
1465
1482
|
}
|
|
1466
|
-
const
|
|
1483
|
+
const M = e.enum([
|
|
1467
1484
|
"pre-user-registration",
|
|
1468
1485
|
"post-user-registration",
|
|
1469
1486
|
"post-user-login",
|
|
@@ -1472,28 +1489,28 @@ const x = e.enum([
|
|
|
1472
1489
|
"pre-user-deletion",
|
|
1473
1490
|
"post-user-deletion"
|
|
1474
1491
|
// Potentially other triggers specific to webhooks in the future
|
|
1475
|
-
]),
|
|
1492
|
+
]), H = e.enum([
|
|
1476
1493
|
"pre-user-registration",
|
|
1477
1494
|
"post-user-registration",
|
|
1478
1495
|
"post-user-login",
|
|
1479
1496
|
"validate-registration-username",
|
|
1480
1497
|
"pre-user-deletion",
|
|
1481
1498
|
"post-user-deletion"
|
|
1482
|
-
]),
|
|
1499
|
+
]), G = e.enum([
|
|
1483
1500
|
"post-user-login",
|
|
1484
1501
|
"post-user-registration",
|
|
1485
1502
|
"post-user-update",
|
|
1486
1503
|
"credentials-exchange"
|
|
1487
|
-
]),
|
|
1504
|
+
]), B = e.enum([
|
|
1488
1505
|
"post-user-login",
|
|
1489
1506
|
"credentials-exchange",
|
|
1490
1507
|
"pre-user-registration",
|
|
1491
1508
|
"post-user-registration"
|
|
1492
|
-
]),
|
|
1509
|
+
]), W = e.enum([
|
|
1493
1510
|
"ensure-username",
|
|
1494
1511
|
"set-preferred-username",
|
|
1495
1512
|
"account-linking"
|
|
1496
|
-
]),
|
|
1513
|
+
]), En = {
|
|
1497
1514
|
"ensure-username": {
|
|
1498
1515
|
name: "Ensure Username",
|
|
1499
1516
|
description: "Automatically assigns a username to users who sign in without one. Creates a linked username account for social/email users.",
|
|
@@ -1530,71 +1547,71 @@ const x = e.enum([
|
|
|
1530
1547
|
* Everything else is opaque to the runtime. Persisted as JSON.
|
|
1531
1548
|
*/
|
|
1532
1549
|
metadata: e.record(e.unknown()).optional()
|
|
1533
|
-
},
|
|
1550
|
+
}, Lt = e.object({
|
|
1534
1551
|
...p,
|
|
1535
|
-
trigger_id:
|
|
1552
|
+
trigger_id: M,
|
|
1536
1553
|
url: e.string()
|
|
1537
|
-
}), Lt = e.object({
|
|
1538
|
-
...p,
|
|
1539
|
-
trigger_id: F,
|
|
1540
|
-
form_id: e.string()
|
|
1541
1554
|
}), Ut = e.object({
|
|
1542
1555
|
...p,
|
|
1543
|
-
trigger_id:
|
|
1544
|
-
|
|
1556
|
+
trigger_id: H,
|
|
1557
|
+
form_id: e.string()
|
|
1545
1558
|
}), xt = e.object({
|
|
1546
1559
|
...p,
|
|
1547
|
-
trigger_id:
|
|
1560
|
+
trigger_id: G,
|
|
1561
|
+
template_id: W
|
|
1562
|
+
}), Ft = e.object({
|
|
1563
|
+
...p,
|
|
1564
|
+
trigger_id: B,
|
|
1548
1565
|
code_id: e.string()
|
|
1549
|
-
}),
|
|
1550
|
-
Dt,
|
|
1566
|
+
}), Sn = e.union([
|
|
1551
1567
|
Lt,
|
|
1552
1568
|
Ut,
|
|
1553
|
-
xt
|
|
1554
|
-
|
|
1569
|
+
xt,
|
|
1570
|
+
Ft
|
|
1571
|
+
]), Pt = e.object({
|
|
1555
1572
|
...p,
|
|
1556
|
-
trigger_id:
|
|
1557
|
-
...
|
|
1573
|
+
trigger_id: M,
|
|
1574
|
+
...a.shape,
|
|
1558
1575
|
hook_id: e.string(),
|
|
1559
1576
|
url: e.string()
|
|
1560
|
-
}),
|
|
1577
|
+
}), Mt = e.object({
|
|
1561
1578
|
...p,
|
|
1562
|
-
trigger_id:
|
|
1563
|
-
...
|
|
1579
|
+
trigger_id: H,
|
|
1580
|
+
...a.shape,
|
|
1564
1581
|
hook_id: e.string(),
|
|
1565
1582
|
form_id: e.string()
|
|
1566
|
-
}),
|
|
1583
|
+
}), Ht = e.object({
|
|
1567
1584
|
...p,
|
|
1568
|
-
trigger_id:
|
|
1569
|
-
...
|
|
1585
|
+
trigger_id: G,
|
|
1586
|
+
...a.shape,
|
|
1570
1587
|
hook_id: e.string(),
|
|
1571
|
-
template_id:
|
|
1572
|
-
}),
|
|
1588
|
+
template_id: W
|
|
1589
|
+
}), Gt = e.object({
|
|
1573
1590
|
...p,
|
|
1574
|
-
trigger_id:
|
|
1575
|
-
...
|
|
1591
|
+
trigger_id: B,
|
|
1592
|
+
...a.shape,
|
|
1576
1593
|
hook_id: e.string(),
|
|
1577
1594
|
code_id: e.string()
|
|
1578
|
-
}),
|
|
1579
|
-
Ft,
|
|
1595
|
+
}), yn = e.union([
|
|
1580
1596
|
Pt,
|
|
1581
1597
|
Mt,
|
|
1582
|
-
Ht
|
|
1583
|
-
|
|
1598
|
+
Ht,
|
|
1599
|
+
Gt
|
|
1600
|
+
]), Bt = e.object({
|
|
1584
1601
|
code: e.string().max(1e5),
|
|
1585
1602
|
secrets: e.record(e.string()).optional()
|
|
1586
|
-
}),
|
|
1603
|
+
}), An = Bt.extend({
|
|
1587
1604
|
id: e.string(),
|
|
1588
1605
|
tenant_id: e.string(),
|
|
1589
|
-
...
|
|
1590
|
-
}), Bt = e.object({
|
|
1591
|
-
name: e.string().optional()
|
|
1606
|
+
...a.shape
|
|
1592
1607
|
}), Wt = e.object({
|
|
1593
|
-
|
|
1608
|
+
name: e.string().optional()
|
|
1594
1609
|
}), Kt = e.object({
|
|
1610
|
+
email: e.string().optional()
|
|
1611
|
+
}), zt = e.object({
|
|
1595
1612
|
organization_id: e.string().max(50),
|
|
1596
|
-
inviter:
|
|
1597
|
-
invitee:
|
|
1613
|
+
inviter: Wt,
|
|
1614
|
+
invitee: Kt,
|
|
1598
1615
|
invitation_url: e.string().url(),
|
|
1599
1616
|
client_id: e.string(),
|
|
1600
1617
|
connection_id: e.string().optional(),
|
|
@@ -1603,13 +1620,13 @@ const x = e.enum([
|
|
|
1603
1620
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
1604
1621
|
roles: e.array(e.string()).default([]).optional(),
|
|
1605
1622
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
1606
|
-
}),
|
|
1623
|
+
}), In = e.object({
|
|
1607
1624
|
id: e.string(),
|
|
1608
1625
|
organization_id: e.string().max(50),
|
|
1609
1626
|
created_at: e.string().datetime(),
|
|
1610
1627
|
expires_at: e.string().datetime(),
|
|
1611
1628
|
ticket_id: e.string().optional()
|
|
1612
|
-
}).extend(
|
|
1629
|
+
}).extend(zt.shape), qt = e.object({
|
|
1613
1630
|
alg: e.enum([
|
|
1614
1631
|
"RS256",
|
|
1615
1632
|
"RS384",
|
|
@@ -1648,9 +1665,9 @@ const x = e.enum([
|
|
|
1648
1665
|
path: [n],
|
|
1649
1666
|
message: `EC JWK is missing required member '${n}'`
|
|
1650
1667
|
});
|
|
1651
|
-
}),
|
|
1652
|
-
keys: e.array(
|
|
1653
|
-
}),
|
|
1668
|
+
}), Cn = e.object({
|
|
1669
|
+
keys: e.array(qt)
|
|
1670
|
+
}), Tn = e.object({
|
|
1654
1671
|
issuer: e.string(),
|
|
1655
1672
|
authorization_endpoint: e.string(),
|
|
1656
1673
|
token_endpoint: e.string(),
|
|
@@ -1673,21 +1690,21 @@ const x = e.enum([
|
|
|
1673
1690
|
request_object_signing_alg_values_supported: e.array(e.string()).optional(),
|
|
1674
1691
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1675
1692
|
});
|
|
1676
|
-
var
|
|
1677
|
-
const
|
|
1693
|
+
var K = /* @__PURE__ */ ((t) => (t.PENDING = "pending", t.AUTHENTICATED = "authenticated", t.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", t.AWAITING_MFA = "awaiting_mfa", t.AWAITING_HOOK = "awaiting_hook", t.AWAITING_CONTINUATION = "awaiting_continuation", t.COMPLETED = "completed", t.FAILED = "failed", t.EXPIRED = "expired", t))(K || {});
|
|
1694
|
+
const Vt = e.nativeEnum(K), Xt = e.object({
|
|
1678
1695
|
strategy: e.string(),
|
|
1679
1696
|
strategy_type: e.string()
|
|
1680
|
-
}),
|
|
1697
|
+
}), Yt = e.object({
|
|
1681
1698
|
csrf_token: e.string(),
|
|
1682
1699
|
auth0Client: e.string().optional(),
|
|
1683
|
-
authParams:
|
|
1700
|
+
authParams: Be,
|
|
1684
1701
|
expires_at: e.string(),
|
|
1685
1702
|
deleted_at: e.string().optional(),
|
|
1686
1703
|
ip: e.string().optional(),
|
|
1687
1704
|
useragent: e.string().optional(),
|
|
1688
1705
|
session_id: e.string().optional(),
|
|
1689
1706
|
authorization_url: e.string().optional(),
|
|
1690
|
-
state:
|
|
1707
|
+
state: Vt.optional().default(
|
|
1691
1708
|
"pending"
|
|
1692
1709
|
/* PENDING */
|
|
1693
1710
|
),
|
|
@@ -1703,14 +1720,14 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1703
1720
|
// ISO timestamp persisted for audit/metadata; not used to reject resumed sessions
|
|
1704
1721
|
}).openapi({
|
|
1705
1722
|
description: "This represents a login sesion"
|
|
1706
|
-
}),
|
|
1707
|
-
...
|
|
1723
|
+
}), On = e.object({
|
|
1724
|
+
...Yt.shape,
|
|
1708
1725
|
id: e.string().openapi({
|
|
1709
1726
|
description: "This is is used as the state in the universal login"
|
|
1710
1727
|
}),
|
|
1711
1728
|
created_at: e.string(),
|
|
1712
1729
|
updated_at: e.string()
|
|
1713
|
-
}),
|
|
1730
|
+
}), Zt = {
|
|
1714
1731
|
// Network & System
|
|
1715
1732
|
ACLS_SUMMARY: "acls_summary",
|
|
1716
1733
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1884,24 +1901,24 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1884
1901
|
WARNING_DURING_LOGIN: "w",
|
|
1885
1902
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1886
1903
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1887
|
-
},
|
|
1888
|
-
(t) => Object.values(
|
|
1904
|
+
}, Qt = e.string().refine(
|
|
1905
|
+
(t) => Object.values(Zt).includes(t),
|
|
1889
1906
|
{ message: "Invalid log type" }
|
|
1890
|
-
),
|
|
1907
|
+
), $t = e.object({
|
|
1891
1908
|
name: e.string(),
|
|
1892
1909
|
version: e.string(),
|
|
1893
1910
|
env: e.object({
|
|
1894
1911
|
node: e.string().optional()
|
|
1895
1912
|
}).optional()
|
|
1896
|
-
}),
|
|
1913
|
+
}), Jt = e.object({
|
|
1897
1914
|
country_code: e.string().length(2),
|
|
1898
1915
|
city_name: e.string(),
|
|
1899
1916
|
latitude: e.string(),
|
|
1900
1917
|
longitude: e.string(),
|
|
1901
1918
|
time_zone: e.string(),
|
|
1902
1919
|
continent_code: e.string()
|
|
1903
|
-
}),
|
|
1904
|
-
type:
|
|
1920
|
+
}), eo = e.object({
|
|
1921
|
+
type: Qt,
|
|
1905
1922
|
date: e.string(),
|
|
1906
1923
|
description: e.string().optional(),
|
|
1907
1924
|
ip: e.string().optional(),
|
|
@@ -1920,39 +1937,39 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1920
1937
|
strategy: e.string().optional(),
|
|
1921
1938
|
strategy_type: e.string().optional(),
|
|
1922
1939
|
hostname: e.string().optional(),
|
|
1923
|
-
auth0_client:
|
|
1940
|
+
auth0_client: $t.optional(),
|
|
1924
1941
|
log_id: e.string().optional(),
|
|
1925
|
-
location_info:
|
|
1926
|
-
}),
|
|
1927
|
-
...
|
|
1942
|
+
location_info: Jt.optional()
|
|
1943
|
+
}), Nn = e.object({
|
|
1944
|
+
...eo.shape,
|
|
1928
1945
|
log_id: e.string()
|
|
1929
|
-
}),
|
|
1946
|
+
}), to = e.enum([
|
|
1930
1947
|
"http",
|
|
1931
1948
|
"eventbridge",
|
|
1932
1949
|
"eventgrid",
|
|
1933
1950
|
"splunk",
|
|
1934
1951
|
"datadog",
|
|
1935
1952
|
"sumo"
|
|
1936
|
-
]),
|
|
1953
|
+
]), z = e.enum([
|
|
1937
1954
|
"active",
|
|
1938
1955
|
"paused",
|
|
1939
1956
|
"suspended"
|
|
1940
|
-
]),
|
|
1957
|
+
]), oo = e.object({
|
|
1941
1958
|
type: e.string(),
|
|
1942
1959
|
name: e.string()
|
|
1943
|
-
}),
|
|
1960
|
+
}), no = e.object({
|
|
1944
1961
|
name: e.string(),
|
|
1945
|
-
type:
|
|
1946
|
-
status:
|
|
1962
|
+
type: to,
|
|
1963
|
+
status: z.optional(),
|
|
1947
1964
|
sink: e.record(e.string(), e.unknown()),
|
|
1948
|
-
filters: e.array(
|
|
1965
|
+
filters: e.array(oo).optional(),
|
|
1949
1966
|
isPriority: e.boolean().optional()
|
|
1950
|
-
}),
|
|
1967
|
+
}), wn = no.extend({
|
|
1951
1968
|
id: e.string(),
|
|
1952
|
-
status:
|
|
1969
|
+
status: z,
|
|
1953
1970
|
created_at: e.string().optional(),
|
|
1954
1971
|
updated_at: e.string().optional()
|
|
1955
|
-
}),
|
|
1972
|
+
}), io = e.object({
|
|
1956
1973
|
enabled: e.boolean().optional(),
|
|
1957
1974
|
shields: e.array(e.string()).optional(),
|
|
1958
1975
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -1965,13 +1982,13 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1965
1982
|
shields: e.array(e.string()).optional()
|
|
1966
1983
|
}).optional()
|
|
1967
1984
|
}).optional()
|
|
1968
|
-
}),
|
|
1985
|
+
}), ao = e.object({
|
|
1969
1986
|
enabled: e.boolean().optional(),
|
|
1970
1987
|
shields: e.array(e.string()).optional(),
|
|
1971
1988
|
allowlist: e.array(e.string()).optional(),
|
|
1972
1989
|
mode: e.string().optional(),
|
|
1973
1990
|
max_attempts: e.number().optional()
|
|
1974
|
-
}),
|
|
1991
|
+
}), ro = e.object({
|
|
1975
1992
|
enabled: e.boolean().optional(),
|
|
1976
1993
|
shields: e.array(e.string()).optional(),
|
|
1977
1994
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -1985,28 +2002,28 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
1985
2002
|
rate: e.number().optional()
|
|
1986
2003
|
}).optional()
|
|
1987
2004
|
}).optional()
|
|
1988
|
-
}), ro = e.object({
|
|
1989
|
-
breached_password_detection: no.optional(),
|
|
1990
|
-
brute_force_protection: io.optional(),
|
|
1991
|
-
suspicious_ip_throttling: ao.optional()
|
|
1992
2005
|
}), so = e.object({
|
|
2006
|
+
breached_password_detection: io.optional(),
|
|
2007
|
+
brute_force_protection: ao.optional(),
|
|
2008
|
+
suspicious_ip_throttling: ro.optional()
|
|
2009
|
+
}), lo = e.object({
|
|
1993
2010
|
id: e.string().optional(),
|
|
1994
2011
|
user_id: e.string(),
|
|
1995
2012
|
password: e.string(),
|
|
1996
2013
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1997
2014
|
is_current: e.boolean().default(!0)
|
|
1998
|
-
}),
|
|
2015
|
+
}), jn = lo.extend({
|
|
1999
2016
|
id: e.string(),
|
|
2000
2017
|
created_at: e.string(),
|
|
2001
2018
|
updated_at: e.string()
|
|
2002
|
-
}),
|
|
2019
|
+
}), q = e.object({
|
|
2003
2020
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
2004
2021
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
2005
2022
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
2006
2023
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
2007
2024
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
2008
2025
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
2009
|
-
}),
|
|
2026
|
+
}), po = e.object({
|
|
2010
2027
|
id: e.string(),
|
|
2011
2028
|
revoked_at: e.string().optional(),
|
|
2012
2029
|
used_at: e.string().optional(),
|
|
@@ -2014,17 +2031,17 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2014
2031
|
expires_at: e.string().optional(),
|
|
2015
2032
|
login_session_id: e.string(),
|
|
2016
2033
|
idle_expires_at: e.string().optional(),
|
|
2017
|
-
device:
|
|
2034
|
+
device: q.describe(
|
|
2018
2035
|
"Metadata related to the device used in the session"
|
|
2019
2036
|
),
|
|
2020
2037
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
2021
|
-
}),
|
|
2038
|
+
}), kn = e.object({
|
|
2022
2039
|
created_at: e.string(),
|
|
2023
2040
|
updated_at: e.string(),
|
|
2024
2041
|
authenticated_at: e.string(),
|
|
2025
2042
|
last_interaction_at: e.string(),
|
|
2026
|
-
...
|
|
2027
|
-
}),
|
|
2043
|
+
...po.shape
|
|
2044
|
+
}), Rn = e.object({
|
|
2028
2045
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
2029
2046
|
tenant_id: e.string().optional().openapi({
|
|
2030
2047
|
description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped."
|
|
@@ -2052,7 +2069,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2052
2069
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({
|
|
2053
2070
|
description: "The type of the signing key"
|
|
2054
2071
|
})
|
|
2055
|
-
}),
|
|
2072
|
+
}), co = e.object({
|
|
2056
2073
|
id: e.string().optional(),
|
|
2057
2074
|
// Basic settings
|
|
2058
2075
|
audience: e.string(),
|
|
@@ -2205,7 +2222,7 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2205
2222
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
2206
2223
|
authorization_response_iss_parameter_supported: e.boolean().optional(),
|
|
2207
2224
|
// Attack-protection config (singleton, exposed via /api/v2/attack-protection)
|
|
2208
|
-
attack_protection:
|
|
2225
|
+
attack_protection: so.optional(),
|
|
2209
2226
|
// Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
|
|
2210
2227
|
mfa: e.object({
|
|
2211
2228
|
// MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
|
|
@@ -2237,14 +2254,14 @@ const qt = e.nativeEnum(G), Xt = e.object({
|
|
|
2237
2254
|
message: e.string().optional()
|
|
2238
2255
|
}).optional()
|
|
2239
2256
|
}).optional()
|
|
2240
|
-
}),
|
|
2257
|
+
}), vn = e.object({
|
|
2241
2258
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2242
2259
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
2243
|
-
...
|
|
2260
|
+
...co.shape,
|
|
2244
2261
|
id: e.string()
|
|
2245
2262
|
});
|
|
2246
|
-
var
|
|
2247
|
-
const
|
|
2263
|
+
var _o = /* @__PURE__ */ ((t) => (t.RefreshToken = "refresh_token", t.AuthorizationCode = "authorization_code", t.ClientCredential = "client_credentials", t.Passwordless = "passwordless", t.Password = "password", t.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", t))(_o || {});
|
|
2264
|
+
const Dn = e.object({
|
|
2248
2265
|
access_token: e.string(),
|
|
2249
2266
|
id_token: e.string().optional(),
|
|
2250
2267
|
scope: e.string().optional(),
|
|
@@ -2257,7 +2274,7 @@ e.object({
|
|
|
2257
2274
|
code: e.string(),
|
|
2258
2275
|
state: e.string().optional()
|
|
2259
2276
|
});
|
|
2260
|
-
const
|
|
2277
|
+
const go = e.object({
|
|
2261
2278
|
button_border_radius: e.number(),
|
|
2262
2279
|
button_border_weight: e.number(),
|
|
2263
2280
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -2267,7 +2284,7 @@ const _o = e.object({
|
|
|
2267
2284
|
show_widget_shadow: e.boolean(),
|
|
2268
2285
|
widget_border_weight: e.number(),
|
|
2269
2286
|
widget_corner_radius: e.number()
|
|
2270
|
-
}),
|
|
2287
|
+
}), uo = e.object({
|
|
2271
2288
|
base_focus_color: e.string(),
|
|
2272
2289
|
base_hover_color: e.string(),
|
|
2273
2290
|
body_text: e.string(),
|
|
@@ -2290,7 +2307,7 @@ const _o = e.object({
|
|
|
2290
2307
|
}), u = e.object({
|
|
2291
2308
|
bold: e.boolean(),
|
|
2292
2309
|
size: e.number()
|
|
2293
|
-
}),
|
|
2310
|
+
}), mo = e.object({
|
|
2294
2311
|
body_text: u,
|
|
2295
2312
|
buttons_text: u,
|
|
2296
2313
|
font_url: e.string(),
|
|
@@ -2300,7 +2317,7 @@ const _o = e.object({
|
|
|
2300
2317
|
reference_text_size: e.number(),
|
|
2301
2318
|
subtitle: u,
|
|
2302
2319
|
title: u
|
|
2303
|
-
}),
|
|
2320
|
+
}), ho = e.object({
|
|
2304
2321
|
background_color: e.string(),
|
|
2305
2322
|
background_image_url: e.string(),
|
|
2306
2323
|
page_layout: e.enum(["center", "left", "right"]),
|
|
@@ -2313,33 +2330,33 @@ const _o = e.object({
|
|
|
2313
2330
|
* Optional for backwards compatibility; absent values mean "widget".
|
|
2314
2331
|
*/
|
|
2315
2332
|
logo_placement: e.enum(["widget", "chip", "none"]).optional()
|
|
2316
|
-
}),
|
|
2333
|
+
}), bo = e.object({
|
|
2317
2334
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
2318
2335
|
logo_height: e.number(),
|
|
2319
2336
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
2320
2337
|
logo_url: e.string(),
|
|
2321
2338
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
2322
|
-
}),
|
|
2323
|
-
borders:
|
|
2324
|
-
colors:
|
|
2339
|
+
}), fo = e.object({
|
|
2340
|
+
borders: go,
|
|
2341
|
+
colors: uo,
|
|
2325
2342
|
displayName: e.string(),
|
|
2326
|
-
fonts:
|
|
2327
|
-
page_background:
|
|
2328
|
-
widget:
|
|
2329
|
-
}),
|
|
2343
|
+
fonts: mo,
|
|
2344
|
+
page_background: ho,
|
|
2345
|
+
widget: bo
|
|
2346
|
+
}), Ln = fo.extend({
|
|
2330
2347
|
themeId: e.string()
|
|
2331
|
-
}),
|
|
2348
|
+
}), Un = e.object({
|
|
2332
2349
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
2333
2350
|
identifier_first: e.boolean().default(!0),
|
|
2334
2351
|
password_first: e.boolean().default(!1),
|
|
2335
2352
|
webauthn_platform_first_factor: e.boolean()
|
|
2336
|
-
}),
|
|
2353
|
+
}), xn = e.object({
|
|
2337
2354
|
name: e.string(),
|
|
2338
2355
|
enabled: e.boolean().optional().default(!0),
|
|
2339
2356
|
default_from_address: e.string().optional(),
|
|
2340
2357
|
credentials: e.record(e.string(), e.unknown()),
|
|
2341
2358
|
settings: e.object({}).optional()
|
|
2342
|
-
}),
|
|
2359
|
+
}), Eo = e.enum([
|
|
2343
2360
|
"verify_email",
|
|
2344
2361
|
"verify_email_by_code",
|
|
2345
2362
|
"reset_email",
|
|
@@ -2352,8 +2369,8 @@ const _o = e.object({
|
|
|
2352
2369
|
"change_password",
|
|
2353
2370
|
"password_reset",
|
|
2354
2371
|
"user_invitation"
|
|
2355
|
-
]),
|
|
2356
|
-
template:
|
|
2372
|
+
]), Fn = e.object({
|
|
2373
|
+
template: Eo,
|
|
2357
2374
|
body: e.string(),
|
|
2358
2375
|
from: e.string(),
|
|
2359
2376
|
subject: e.string(),
|
|
@@ -2362,7 +2379,7 @@ const _o = e.object({
|
|
|
2362
2379
|
urlLifetimeInSeconds: e.number().int().nonnegative().optional(),
|
|
2363
2380
|
includeEmailInRedirect: e.boolean().default(!1),
|
|
2364
2381
|
enabled: e.boolean().default(!0)
|
|
2365
|
-
}),
|
|
2382
|
+
}), So = e.object({
|
|
2366
2383
|
// Internal primary key (ULID). Never sent to clients in the new wire format.
|
|
2367
2384
|
id: e.string(),
|
|
2368
2385
|
// Link to the login session
|
|
@@ -2375,7 +2392,7 @@ const _o = e.object({
|
|
|
2375
2392
|
idle_expires_at: e.string().optional(),
|
|
2376
2393
|
// When the token was last used.
|
|
2377
2394
|
last_exchanged_at: e.string().optional(),
|
|
2378
|
-
device:
|
|
2395
|
+
device: q,
|
|
2379
2396
|
resource_servers: e.array(
|
|
2380
2397
|
e.object({
|
|
2381
2398
|
audience: e.string(),
|
|
@@ -2396,23 +2413,23 @@ const _o = e.object({
|
|
|
2396
2413
|
// ISO of the *first* rotation. Anchors the leeway window so siblings minted
|
|
2397
2414
|
// within the window don't extend the parent's exposure.
|
|
2398
2415
|
rotated_at: e.string().optional()
|
|
2399
|
-
}),
|
|
2416
|
+
}), Pn = e.object({
|
|
2400
2417
|
// When the refresh token record was created.
|
|
2401
2418
|
created_at: e.string(),
|
|
2402
2419
|
// When the token was explicitly revoked (null = still active).
|
|
2403
2420
|
revoked_at: e.string().optional(),
|
|
2404
2421
|
// Spread in the rest of the refresh token properties.
|
|
2405
|
-
...
|
|
2406
|
-
}),
|
|
2422
|
+
...So.shape
|
|
2423
|
+
}), Mn = e.object({
|
|
2407
2424
|
to: e.string(),
|
|
2408
2425
|
message: e.string()
|
|
2409
|
-
}),
|
|
2426
|
+
}), Hn = e.object({
|
|
2410
2427
|
name: e.string(),
|
|
2411
2428
|
options: e.object({})
|
|
2412
|
-
}),
|
|
2429
|
+
}), yo = e.object({
|
|
2413
2430
|
value: e.string(),
|
|
2414
2431
|
description: e.string().optional()
|
|
2415
|
-
}),
|
|
2432
|
+
}), Ao = e.object({
|
|
2416
2433
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
2417
2434
|
enforce_policies: e.boolean().optional(),
|
|
2418
2435
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -2422,11 +2439,11 @@ const _o = e.object({
|
|
|
2422
2439
|
mtls: e.object({
|
|
2423
2440
|
bound_access_tokens: e.boolean().optional()
|
|
2424
2441
|
}).optional()
|
|
2425
|
-
}),
|
|
2442
|
+
}), Io = e.object({
|
|
2426
2443
|
id: e.string().optional(),
|
|
2427
2444
|
name: e.string(),
|
|
2428
2445
|
identifier: e.string(),
|
|
2429
|
-
scopes: e.array(
|
|
2446
|
+
scopes: e.array(yo).optional(),
|
|
2430
2447
|
signing_alg: e.string().optional(),
|
|
2431
2448
|
signing_secret: e.string().optional(),
|
|
2432
2449
|
token_lifetime: e.number().default(86400),
|
|
@@ -2434,30 +2451,30 @@ const _o = e.object({
|
|
|
2434
2451
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
2435
2452
|
allow_offline_access: e.boolean().optional(),
|
|
2436
2453
|
verificationKey: e.string().optional(),
|
|
2437
|
-
options:
|
|
2454
|
+
options: Ao.optional(),
|
|
2438
2455
|
is_system: e.boolean().optional(),
|
|
2439
2456
|
metadata: e.record(e.any()).optional()
|
|
2440
|
-
}),
|
|
2441
|
-
...
|
|
2457
|
+
}), Co = e.object({
|
|
2458
|
+
...Io.shape,
|
|
2442
2459
|
created_at: e.string().optional(),
|
|
2443
2460
|
updated_at: e.string().optional()
|
|
2444
|
-
}),
|
|
2461
|
+
}), Gn = e.array(Co), To = e.object({
|
|
2445
2462
|
role_id: e.string(),
|
|
2446
2463
|
resource_server_identifier: e.string(),
|
|
2447
2464
|
permission_name: e.string()
|
|
2448
|
-
}),
|
|
2449
|
-
...
|
|
2465
|
+
}), Oo = e.object({
|
|
2466
|
+
...To.shape,
|
|
2450
2467
|
created_at: e.string()
|
|
2451
|
-
}),
|
|
2468
|
+
}), Bn = e.array(Oo), No = e.object({
|
|
2452
2469
|
user_id: e.string(),
|
|
2453
2470
|
resource_server_identifier: e.string(),
|
|
2454
2471
|
permission_name: e.string(),
|
|
2455
2472
|
organization_id: e.string().optional()
|
|
2456
|
-
}),
|
|
2457
|
-
...
|
|
2473
|
+
}), wo = e.object({
|
|
2474
|
+
...No.shape,
|
|
2458
2475
|
tenant_id: e.string(),
|
|
2459
2476
|
created_at: e.string().optional()
|
|
2460
|
-
}),
|
|
2477
|
+
}), Wn = e.array(wo), jo = e.object({
|
|
2461
2478
|
user_id: e.string(),
|
|
2462
2479
|
resource_server_identifier: e.string(),
|
|
2463
2480
|
resource_server_name: e.string(),
|
|
@@ -2465,17 +2482,17 @@ const _o = e.object({
|
|
|
2465
2482
|
description: e.string().nullable().optional(),
|
|
2466
2483
|
created_at: e.string().optional(),
|
|
2467
2484
|
organization_id: e.string().optional()
|
|
2468
|
-
}),
|
|
2469
|
-
|
|
2470
|
-
),
|
|
2485
|
+
}), Kn = e.array(
|
|
2486
|
+
jo
|
|
2487
|
+
), ko = e.object({
|
|
2471
2488
|
user_id: e.string(),
|
|
2472
2489
|
role_id: e.string(),
|
|
2473
2490
|
organization_id: e.string().optional()
|
|
2474
2491
|
}), Ro = e.object({
|
|
2475
|
-
...
|
|
2492
|
+
...ko.shape,
|
|
2476
2493
|
tenant_id: e.string(),
|
|
2477
2494
|
created_at: e.string().optional()
|
|
2478
|
-
}),
|
|
2495
|
+
}), zn = e.array(Ro), vo = e.object({
|
|
2479
2496
|
id: e.string().optional().openapi({
|
|
2480
2497
|
description: "The unique identifier of the role. If not provided, one will be generated."
|
|
2481
2498
|
}),
|
|
@@ -2489,13 +2506,13 @@ const _o = e.object({
|
|
|
2489
2506
|
metadata: e.record(e.any()).optional().openapi({
|
|
2490
2507
|
description: "Metadata associated with the role. Can be used to control sync behavior in multi-tenancy scenarios."
|
|
2491
2508
|
})
|
|
2492
|
-
}),
|
|
2509
|
+
}), Do = vo.extend({
|
|
2493
2510
|
id: e.string().openapi({
|
|
2494
2511
|
description: "The unique identifier of the role"
|
|
2495
2512
|
}),
|
|
2496
2513
|
created_at: e.string().optional(),
|
|
2497
2514
|
updated_at: e.string().optional()
|
|
2498
|
-
}),
|
|
2515
|
+
}), qn = e.array(Do), Lo = e.object({
|
|
2499
2516
|
logo_url: e.string().optional().openapi({
|
|
2500
2517
|
description: "URL of the organization's logo"
|
|
2501
2518
|
}),
|
|
@@ -2507,7 +2524,7 @@ const _o = e.object({
|
|
|
2507
2524
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
2508
2525
|
})
|
|
2509
2526
|
}).optional()
|
|
2510
|
-
}).optional(),
|
|
2527
|
+
}).optional(), Uo = e.object({
|
|
2511
2528
|
connection_id: e.string().openapi({
|
|
2512
2529
|
description: "ID of the connection"
|
|
2513
2530
|
}),
|
|
@@ -2520,7 +2537,7 @@ const _o = e.object({
|
|
|
2520
2537
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
2521
2538
|
description: "Whether signup is enabled for this connection"
|
|
2522
2539
|
})
|
|
2523
|
-
}),
|
|
2540
|
+
}), xo = e.object({
|
|
2524
2541
|
client_credentials: e.object({
|
|
2525
2542
|
enforce: e.boolean().default(!1).openapi({
|
|
2526
2543
|
description: "Whether to enforce token quota limits"
|
|
@@ -2532,7 +2549,7 @@ const _o = e.object({
|
|
|
2532
2549
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
2533
2550
|
})
|
|
2534
2551
|
}).optional()
|
|
2535
|
-
}).optional(),
|
|
2552
|
+
}).optional(), Fo = e.object({
|
|
2536
2553
|
id: e.string().optional(),
|
|
2537
2554
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, {
|
|
2538
2555
|
message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores"
|
|
@@ -2542,31 +2559,31 @@ const _o = e.object({
|
|
|
2542
2559
|
display_name: e.string().optional().openapi({
|
|
2543
2560
|
description: "The display name of the organization"
|
|
2544
2561
|
}),
|
|
2545
|
-
branding:
|
|
2562
|
+
branding: Lo,
|
|
2546
2563
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
2547
2564
|
description: "Custom metadata for the organization"
|
|
2548
2565
|
}),
|
|
2549
|
-
enabled_connections: e.array(
|
|
2566
|
+
enabled_connections: e.array(Uo).default([]).optional().openapi({
|
|
2550
2567
|
description: "List of enabled connections for the organization"
|
|
2551
2568
|
}),
|
|
2552
|
-
token_quota:
|
|
2553
|
-
}),
|
|
2554
|
-
...
|
|
2555
|
-
...
|
|
2569
|
+
token_quota: xo
|
|
2570
|
+
}), Vn = e.object({
|
|
2571
|
+
...Fo.shape,
|
|
2572
|
+
...a.shape,
|
|
2556
2573
|
id: e.string(),
|
|
2557
2574
|
// Override name to be lenient when reading from database (to support existing uppercase names)
|
|
2558
2575
|
name: e.string().min(1).openapi({
|
|
2559
2576
|
description: "The name of the organization"
|
|
2560
2577
|
})
|
|
2561
|
-
}),
|
|
2578
|
+
}), Po = e.object({
|
|
2562
2579
|
connection_id: e.string().openapi({
|
|
2563
2580
|
description: "ID of the tenant-level connection to enable for the org."
|
|
2564
2581
|
}),
|
|
2565
2582
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
2566
2583
|
show_as_button: e.boolean().optional().default(!0),
|
|
2567
2584
|
is_signup_enabled: e.boolean().optional().default(!0)
|
|
2568
|
-
}),
|
|
2569
|
-
...
|
|
2585
|
+
}), Mo = e.object({
|
|
2586
|
+
...Po.shape,
|
|
2570
2587
|
// Auth0 includes the embedded connection in GET responses.
|
|
2571
2588
|
connection: e.object({
|
|
2572
2589
|
name: e.string().optional(),
|
|
@@ -2574,20 +2591,20 @@ const _o = e.object({
|
|
|
2574
2591
|
}).optional(),
|
|
2575
2592
|
created_at: e.string().optional(),
|
|
2576
2593
|
updated_at: e.string().optional()
|
|
2577
|
-
}),
|
|
2578
|
-
|
|
2579
|
-
),
|
|
2594
|
+
}), Xn = e.array(
|
|
2595
|
+
Mo
|
|
2596
|
+
), Ho = e.object({
|
|
2580
2597
|
user_id: e.string().openapi({
|
|
2581
2598
|
description: "ID of the user"
|
|
2582
2599
|
}),
|
|
2583
2600
|
organization_id: e.string().openapi({
|
|
2584
2601
|
description: "ID of the organization"
|
|
2585
2602
|
})
|
|
2586
|
-
}),
|
|
2587
|
-
...
|
|
2588
|
-
...
|
|
2603
|
+
}), Yn = e.object({
|
|
2604
|
+
...Ho.shape,
|
|
2605
|
+
...a.shape,
|
|
2589
2606
|
id: e.string()
|
|
2590
|
-
}),
|
|
2607
|
+
}), Zn = e.object({
|
|
2591
2608
|
// Session settings
|
|
2592
2609
|
idle_session_lifetime: e.number().default(72),
|
|
2593
2610
|
session_lifetime: e.number().default(168),
|
|
@@ -2687,7 +2704,7 @@ const _o = e.object({
|
|
|
2687
2704
|
message: e.string().optional()
|
|
2688
2705
|
}).optional()
|
|
2689
2706
|
}).optional()
|
|
2690
|
-
}),
|
|
2707
|
+
}), Qn = e.object({
|
|
2691
2708
|
date: e.string().openapi({
|
|
2692
2709
|
description: "Date these events occurred in ISO 8601 format",
|
|
2693
2710
|
example: "2025-12-19"
|
|
@@ -2712,10 +2729,10 @@ const _o = e.object({
|
|
|
2712
2729
|
description: "Approximate date and time the first event occurred in ISO 8601 format",
|
|
2713
2730
|
example: "2025-12-19T00:00:00.000Z"
|
|
2714
2731
|
})
|
|
2715
|
-
}),
|
|
2732
|
+
}), $n = e.number().openapi({
|
|
2716
2733
|
description: "Number of active users in the last 30 days",
|
|
2717
2734
|
example: 1234
|
|
2718
|
-
}),
|
|
2735
|
+
}), Go = e.enum([
|
|
2719
2736
|
"login",
|
|
2720
2737
|
"login-id",
|
|
2721
2738
|
"login-password",
|
|
@@ -2744,17 +2761,17 @@ const _o = e.object({
|
|
|
2744
2761
|
"custom-form",
|
|
2745
2762
|
"login-passwordless",
|
|
2746
2763
|
"mfa-login-options"
|
|
2747
|
-
]),
|
|
2764
|
+
]), Bo = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
2748
2765
|
type: "object",
|
|
2749
2766
|
additionalProperties: {
|
|
2750
2767
|
type: "object",
|
|
2751
2768
|
additionalProperties: { type: "string" }
|
|
2752
2769
|
}
|
|
2753
|
-
}),
|
|
2754
|
-
prompt:
|
|
2770
|
+
}), Jn = e.object({
|
|
2771
|
+
prompt: Go,
|
|
2755
2772
|
language: e.string(),
|
|
2756
|
-
custom_text:
|
|
2757
|
-
}),
|
|
2773
|
+
custom_text: Bo
|
|
2774
|
+
}), ei = {
|
|
2758
2775
|
EMAIL: "email",
|
|
2759
2776
|
SMS: "sms",
|
|
2760
2777
|
USERNAME_PASSWORD: "Username-Password-Authentication",
|
|
@@ -2770,11 +2787,11 @@ const _o = e.object({
|
|
|
2770
2787
|
WAAD: "waad",
|
|
2771
2788
|
ADFS: "adfs",
|
|
2772
2789
|
AUTH0: "auth0"
|
|
2773
|
-
},
|
|
2790
|
+
}, ti = {
|
|
2774
2791
|
DATABASE: "database",
|
|
2775
2792
|
SOCIAL: "social",
|
|
2776
2793
|
PASSWORDLESS: "passwordless"
|
|
2777
|
-
},
|
|
2794
|
+
}, Wo = e.enum([
|
|
2778
2795
|
"phone",
|
|
2779
2796
|
"totp",
|
|
2780
2797
|
"email",
|
|
@@ -2782,9 +2799,9 @@ const _o = e.object({
|
|
|
2782
2799
|
"webauthn-roaming",
|
|
2783
2800
|
"webauthn-platform",
|
|
2784
2801
|
"passkey"
|
|
2785
|
-
]),
|
|
2802
|
+
]), V = e.object({
|
|
2786
2803
|
user_id: e.string(),
|
|
2787
|
-
type:
|
|
2804
|
+
type: Wo,
|
|
2788
2805
|
// Phone-specific
|
|
2789
2806
|
phone_number: e.string().optional(),
|
|
2790
2807
|
// TOTP-specific
|
|
@@ -2799,7 +2816,7 @@ const _o = e.object({
|
|
|
2799
2816
|
// Common
|
|
2800
2817
|
confirmed: e.boolean().default(!1)
|
|
2801
2818
|
});
|
|
2802
|
-
function
|
|
2819
|
+
function X(t, o) {
|
|
2803
2820
|
t.type === "phone" && !t.phone_number && o.addIssue({
|
|
2804
2821
|
code: e.ZodIssueCode.custom,
|
|
2805
2822
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -2818,32 +2835,32 @@ function z(t, o) {
|
|
|
2818
2835
|
path: ["public_key"]
|
|
2819
2836
|
}));
|
|
2820
2837
|
}
|
|
2821
|
-
const
|
|
2822
|
-
...
|
|
2838
|
+
const oi = V.superRefine(X), ni = e.object({
|
|
2839
|
+
...V.shape,
|
|
2823
2840
|
id: e.string(),
|
|
2824
2841
|
created_at: e.string(),
|
|
2825
2842
|
updated_at: e.string()
|
|
2826
|
-
}).superRefine(
|
|
2827
|
-
function
|
|
2843
|
+
}).superRefine(X);
|
|
2844
|
+
function ii(t) {
|
|
2828
2845
|
const [o, n] = t.split("|");
|
|
2829
2846
|
if (!o || !n)
|
|
2830
2847
|
throw new Error(`Invalid user_id: ${t}`);
|
|
2831
2848
|
return { connection: o, id: n };
|
|
2832
2849
|
}
|
|
2833
|
-
function
|
|
2850
|
+
function ai(t) {
|
|
2834
2851
|
const {
|
|
2835
2852
|
primary: o,
|
|
2836
2853
|
secondaries: n,
|
|
2837
2854
|
syncMethods: h = ["create", "rawCreate", "update", "remove", "delete", "set"]
|
|
2838
2855
|
} = t, S = {
|
|
2839
|
-
get(c,
|
|
2840
|
-
if (typeof
|
|
2841
|
-
return c[
|
|
2842
|
-
const d = c[
|
|
2843
|
-
return typeof d != "function" ? d : h.includes(
|
|
2856
|
+
get(c, r) {
|
|
2857
|
+
if (typeof r == "symbol")
|
|
2858
|
+
return c[r];
|
|
2859
|
+
const d = c[r];
|
|
2860
|
+
return typeof d != "function" ? d : h.includes(r) ? async (..._) => {
|
|
2844
2861
|
const y = await d.apply(c, _), g = [];
|
|
2845
2862
|
for (const s of n) {
|
|
2846
|
-
const b = s.adapter[
|
|
2863
|
+
const b = s.adapter[r];
|
|
2847
2864
|
if (typeof b != "function")
|
|
2848
2865
|
continue;
|
|
2849
2866
|
const A = (async () => {
|
|
@@ -2851,13 +2868,13 @@ function ni(t) {
|
|
|
2851
2868
|
await b.apply(s.adapter, _);
|
|
2852
2869
|
} catch (f) {
|
|
2853
2870
|
try {
|
|
2854
|
-
s.onError ? s.onError(f,
|
|
2855
|
-
`Passthrough adapter: secondary write failed for ${
|
|
2871
|
+
s.onError ? s.onError(f, r, _) : console.error(
|
|
2872
|
+
`Passthrough adapter: secondary write failed for ${r}:`,
|
|
2856
2873
|
f
|
|
2857
2874
|
);
|
|
2858
2875
|
} catch (I) {
|
|
2859
2876
|
console.error(
|
|
2860
|
-
`Passthrough adapter: onError handler threw for ${
|
|
2877
|
+
`Passthrough adapter: onError handler threw for ${r}:`,
|
|
2861
2878
|
I
|
|
2862
2879
|
);
|
|
2863
2880
|
}
|
|
@@ -2871,11 +2888,11 @@ function ni(t) {
|
|
|
2871
2888
|
};
|
|
2872
2889
|
return new Proxy(o, S);
|
|
2873
2890
|
}
|
|
2874
|
-
function
|
|
2891
|
+
function ri(t) {
|
|
2875
2892
|
return t;
|
|
2876
2893
|
}
|
|
2877
|
-
function
|
|
2878
|
-
var S, c,
|
|
2894
|
+
function si(t) {
|
|
2895
|
+
var S, c, r, d, _, y, g, s, b, A, f, I;
|
|
2879
2896
|
const o = t == null ? void 0 : t.options;
|
|
2880
2897
|
if (!o)
|
|
2881
2898
|
return {
|
|
@@ -2886,12 +2903,12 @@ function ai(t) {
|
|
|
2886
2903
|
};
|
|
2887
2904
|
const n = o.attributes;
|
|
2888
2905
|
if (n) {
|
|
2889
|
-
const
|
|
2906
|
+
const Y = ((c = (S = n.username) == null ? void 0 : S.identifier) == null ? void 0 : c.active) === !0, Z = ((d = (r = n.email) == null ? void 0 : r.identifier) == null ? void 0 : d.active) !== !1, Q = ((y = (_ = n.username) == null ? void 0 : _.validation) == null ? void 0 : y.min_length) ?? 1, $ = ((s = (g = n.username) == null ? void 0 : g.validation) == null ? void 0 : s.max_length) ?? 15;
|
|
2890
2907
|
return {
|
|
2891
|
-
usernameIdentifierActive:
|
|
2892
|
-
emailIdentifierActive:
|
|
2893
|
-
usernameMinLength:
|
|
2894
|
-
usernameMaxLength:
|
|
2908
|
+
usernameIdentifierActive: Y,
|
|
2909
|
+
emailIdentifierActive: Z,
|
|
2910
|
+
usernameMinLength: Q,
|
|
2911
|
+
usernameMaxLength: $
|
|
2895
2912
|
};
|
|
2896
2913
|
}
|
|
2897
2914
|
return {
|
|
@@ -2901,203 +2918,205 @@ function ai(t) {
|
|
|
2901
2918
|
usernameMaxLength: ((I = (f = o.validation) == null ? void 0 : f.username) == null ? void 0 : I.max) ?? 15
|
|
2902
2919
|
};
|
|
2903
2920
|
}
|
|
2904
|
-
function
|
|
2921
|
+
function li(t) {
|
|
2905
2922
|
return typeof t == "object" && t !== null && !Array.isArray(t);
|
|
2906
2923
|
}
|
|
2907
2924
|
export {
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
Jo as
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
Ie as
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2925
|
+
Zo as Auth0ActionEnum,
|
|
2926
|
+
$t as Auth0Client,
|
|
2927
|
+
x as AuthorizationResponseMode,
|
|
2928
|
+
U as AuthorizationResponseType,
|
|
2929
|
+
F as CodeChallengeMethod,
|
|
2930
|
+
L as ComponentCategory,
|
|
2931
|
+
D as ComponentType,
|
|
2932
|
+
Qo as EmailActionEnum,
|
|
2933
|
+
_n as FORM_FIELD_TYPES,
|
|
2934
|
+
Yo as FlowActionTypeEnum,
|
|
2935
|
+
_o as GrantType,
|
|
2936
|
+
Jt as LocationInfo,
|
|
2937
|
+
Zt as LogTypes,
|
|
2938
|
+
K as LoginSessionState,
|
|
2939
|
+
De as NodeType,
|
|
2940
|
+
de as RedirectTargetEnum,
|
|
2941
|
+
ei as Strategy,
|
|
2942
|
+
ti as StrategyType,
|
|
2943
|
+
j as actionDependencySchema,
|
|
2944
|
+
R as actionInsertSchema,
|
|
2945
|
+
xe as actionNodeSchema,
|
|
2946
|
+
qo as actionSchema,
|
|
2947
|
+
k as actionSecretSchema,
|
|
2948
|
+
w as actionTriggerSchema,
|
|
2949
|
+
zo as actionUpdateSchema,
|
|
2950
|
+
J as actionVersionInsertSchema,
|
|
2951
|
+
Vo as actionVersionSchema,
|
|
2952
|
+
$n as activeUsersResponseSchema,
|
|
2953
|
+
te as actorSchema,
|
|
2954
|
+
be as addressSchema,
|
|
2955
|
+
so as attackProtectionSchema,
|
|
2956
|
+
ee as auditCategorySchema,
|
|
2957
|
+
se as auditEventInsertSchema,
|
|
2958
|
+
Xo as auditEventSchema,
|
|
2959
|
+
re as auth0ClientSchema,
|
|
2960
|
+
sn as auth0FlowInsertSchema,
|
|
2961
|
+
Ge as auth0FlowSchema,
|
|
2962
|
+
Jo as auth0QuerySchema,
|
|
2963
|
+
pe as auth0UpdateUserActionSchema,
|
|
2964
|
+
tn as auth0UserResponseSchema,
|
|
2965
|
+
Be as authParamsSchema,
|
|
2966
|
+
oi as authenticationMethodInsertSchema,
|
|
2967
|
+
ni as authenticationMethodSchema,
|
|
2968
|
+
Wo as authenticationMethodTypeSchema,
|
|
2969
|
+
v as baseUserSchema,
|
|
2970
|
+
Ct as blockComponentSchema,
|
|
2971
|
+
go as bordersSchema,
|
|
2972
|
+
ln as brandingSchema,
|
|
2973
|
+
io as breachedPasswordDetectionSchema,
|
|
2974
|
+
ao as bruteForceProtectionSchema,
|
|
2975
|
+
we as buttonComponentSchema,
|
|
2976
|
+
Ie as clientGrantInsertSchema,
|
|
2977
|
+
an as clientGrantListSchema,
|
|
2978
|
+
Ce as clientGrantSchema,
|
|
2979
|
+
Ae as clientInsertSchema,
|
|
2980
|
+
Oe as clientRegistrationTokenInsertSchema,
|
|
2981
|
+
rn as clientRegistrationTokenSchema,
|
|
2982
|
+
Te as clientRegistrationTokenTypeSchema,
|
|
2983
|
+
nn as clientSchema,
|
|
2984
|
+
Ke as codeInsertSchema,
|
|
2985
|
+
pn as codeSchema,
|
|
2986
|
+
We as codeTypeSchema,
|
|
2987
|
+
uo as colorsSchema,
|
|
2988
|
+
vt as componentMessageSchema,
|
|
2989
|
+
ve as componentSchema,
|
|
2990
|
+
qe as connectionInsertSchema,
|
|
2991
|
+
ze as connectionOptionsSchema,
|
|
2992
|
+
cn as connectionSchema,
|
|
2974
2993
|
m as coordinatesSchema,
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2994
|
+
ai as createPassthroughAdapter,
|
|
2995
|
+
ri as createWriteOnlyAdapter,
|
|
2996
|
+
Ve as customDomainInsertSchema,
|
|
2997
|
+
Ye as customDomainSchema,
|
|
2998
|
+
dn as customDomainWithTenantIdSchema,
|
|
2999
|
+
Jn as customTextEntrySchema,
|
|
3000
|
+
Bo as customTextSchema,
|
|
3001
|
+
Qn as dailyStatsSchema,
|
|
3002
|
+
xn as emailProviderSchema,
|
|
3003
|
+
Eo as emailTemplateNameSchema,
|
|
3004
|
+
Fn as emailTemplateSchema,
|
|
3005
|
+
le as emailVerificationRulesSchema,
|
|
3006
|
+
ce as emailVerifyActionSchema,
|
|
3007
|
+
He as endingSchema,
|
|
3008
|
+
Ot as fieldComponentSchema,
|
|
3009
|
+
ge as flowActionStepSchema,
|
|
3010
|
+
ue as flowInsertSchema,
|
|
3011
|
+
$o as flowSchema,
|
|
3012
|
+
ke as flowsFieldComponentSchema,
|
|
3013
|
+
Ue as flowsFlowNodeSchema,
|
|
3014
|
+
Le as flowsStepNodeSchema,
|
|
2996
3015
|
u as fontDetailsSchema,
|
|
2997
|
-
|
|
2998
|
-
|
|
3016
|
+
mo as fontsSchema,
|
|
3017
|
+
gn as formControlSchema,
|
|
2999
3018
|
Rt as formInsertSchema,
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3019
|
+
P as formNodeComponentDefinition,
|
|
3020
|
+
kt as formNodeSchema,
|
|
3021
|
+
un as formSchema,
|
|
3003
3022
|
Re as genericComponentSchema,
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3023
|
+
Fe as genericNodeSchema,
|
|
3024
|
+
si as getConnectionIdentifierConfig,
|
|
3025
|
+
Bt as hookCodeInsertSchema,
|
|
3026
|
+
An as hookCodeSchema,
|
|
3027
|
+
Sn as hookInsertSchema,
|
|
3028
|
+
yn as hookSchema,
|
|
3029
|
+
W as hookTemplateId,
|
|
3030
|
+
En as hookTemplates,
|
|
3031
|
+
he as identitySchema,
|
|
3032
|
+
zt as inviteInsertSchema,
|
|
3033
|
+
In as inviteSchema,
|
|
3034
|
+
Kt as inviteeSchema,
|
|
3035
|
+
Wt as inviterSchema,
|
|
3036
|
+
hn as isBlockComponent,
|
|
3037
|
+
fn as isFieldComponent,
|
|
3038
|
+
li as isPlainObject,
|
|
3039
|
+
bn as isWidgetComponent,
|
|
3040
|
+
Cn as jwksKeySchema,
|
|
3041
|
+
qt as jwksSchema,
|
|
3042
|
+
je as legalComponentSchema,
|
|
3043
|
+
ae as locationInfoSchema,
|
|
3044
|
+
eo as logInsertSchema,
|
|
3045
|
+
Nn as logSchema,
|
|
3046
|
+
oo as logStreamFilterSchema,
|
|
3047
|
+
no as logStreamInsertSchema,
|
|
3048
|
+
wn as logStreamSchema,
|
|
3049
|
+
z as logStreamStatusSchema,
|
|
3050
|
+
to as logStreamTypeSchema,
|
|
3032
3051
|
Xt as loginSessionAuthStrategySchema,
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3052
|
+
Yt as loginSessionInsertSchema,
|
|
3053
|
+
On as loginSessionSchema,
|
|
3054
|
+
Vt as loginSessionStateSchema,
|
|
3055
|
+
Pe as nodeSchema,
|
|
3056
|
+
Tn as openIDConfigurationSchema,
|
|
3057
|
+
Lo as organizationBrandingSchema,
|
|
3058
|
+
Po as organizationConnectionInsertSchema,
|
|
3059
|
+
Xn as organizationConnectionListSchema,
|
|
3060
|
+
Mo as organizationConnectionSchema,
|
|
3061
|
+
Uo as organizationEnabledConnectionSchema,
|
|
3062
|
+
Fo as organizationInsertSchema,
|
|
3063
|
+
Vn as organizationSchema,
|
|
3064
|
+
xo as organizationTokenQuotaSchema,
|
|
3065
|
+
ho as pageBackgroundSchema,
|
|
3066
|
+
ii as parseUserId,
|
|
3067
|
+
lo as passwordInsertSchema,
|
|
3068
|
+
jn as passwordSchema,
|
|
3069
|
+
me as profileDataSchema,
|
|
3070
|
+
Go as promptScreenSchema,
|
|
3071
|
+
Un as promptSettingSchema,
|
|
3072
|
+
_e as redirectActionSchema,
|
|
3073
|
+
So as refreshTokenInsertSchema,
|
|
3074
|
+
Pn as refreshTokenSchema,
|
|
3075
|
+
ne as requestContextSchema,
|
|
3076
|
+
Io as resourceServerInsertSchema,
|
|
3077
|
+
Gn as resourceServerListSchema,
|
|
3078
|
+
Ao as resourceServerOptionsSchema,
|
|
3079
|
+
Co as resourceServerSchema,
|
|
3080
|
+
yo as resourceServerScopeSchema,
|
|
3081
|
+
ie as responseContextSchema,
|
|
3082
|
+
Ne as richTextComponentSchema,
|
|
3083
|
+
vo as roleInsertSchema,
|
|
3084
|
+
qn as roleListSchema,
|
|
3085
|
+
To as rolePermissionInsertSchema,
|
|
3086
|
+
Bn as rolePermissionListSchema,
|
|
3087
|
+
Oo as rolePermissionSchema,
|
|
3088
|
+
Do as roleSchema,
|
|
3089
|
+
Dt as screenLinkSchema,
|
|
3090
|
+
po as sessionInsertSchema,
|
|
3091
|
+
kn as sessionSchema,
|
|
3092
|
+
Rn as signingKeySchema,
|
|
3093
|
+
Hn as smsProviderSchema,
|
|
3094
|
+
Mn as smsSendParamsSchema,
|
|
3095
|
+
Me as startSchema,
|
|
3096
|
+
ro as suspiciousIpThrottlingSchema,
|
|
3097
|
+
oe as targetSchema,
|
|
3098
|
+
co as tenantInsertSchema,
|
|
3099
|
+
vn as tenantSchema,
|
|
3100
|
+
Zn as tenantSettingsSchema,
|
|
3101
|
+
fo as themeInsertSchema,
|
|
3102
|
+
Ln as themeSchema,
|
|
3103
|
+
Dn as tokenResponseSchema,
|
|
3104
|
+
en as totalsSchema,
|
|
3105
|
+
mn as uiScreenSchema,
|
|
3106
|
+
fe as userInsertSchema,
|
|
3107
|
+
Ho as userOrganizationInsertSchema,
|
|
3108
|
+
Yn as userOrganizationSchema,
|
|
3109
|
+
No as userPermissionInsertSchema,
|
|
3110
|
+
Wn as userPermissionListSchema,
|
|
3111
|
+
wo as userPermissionSchema,
|
|
3112
|
+
Kn as userPermissionWithDetailsListSchema,
|
|
3113
|
+
jo as userPermissionWithDetailsSchema,
|
|
3114
|
+
on as userResponseSchema,
|
|
3115
|
+
ko as userRoleInsertSchema,
|
|
3116
|
+
zn as userRoleListSchema,
|
|
3098
3117
|
Ro as userRoleSchema,
|
|
3099
|
-
|
|
3118
|
+
Ee as userSchema,
|
|
3100
3119
|
Xe as verificationMethodsSchema,
|
|
3101
|
-
|
|
3102
|
-
|
|
3120
|
+
Tt as widgetComponentSchema,
|
|
3121
|
+
bo as widgetSchema
|
|
3103
3122
|
};
|