@authhero/adapter-interfaces 0.76.0 → 0.79.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 +732 -65
- package/dist/adapter-interfaces.mjs +183 -139
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z as t } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const Lt = t.object({
|
|
3
3
|
start: t.number(),
|
|
4
4
|
limit: t.number(),
|
|
5
5
|
length: t.number()
|
|
6
6
|
}), s = t.object({
|
|
7
7
|
created_at: t.string(),
|
|
8
8
|
updated_at: t.string()
|
|
9
|
-
}),
|
|
9
|
+
}), h = t.object({
|
|
10
10
|
email: t.string().optional(),
|
|
11
11
|
email_verified: t.boolean().optional(),
|
|
12
12
|
name: t.string().optional(),
|
|
@@ -15,7 +15,7 @@ const bt = t.object({
|
|
|
15
15
|
phone_number: t.string().optional(),
|
|
16
16
|
phone_verified: t.boolean().optional(),
|
|
17
17
|
family_name: t.string().optional()
|
|
18
|
-
}).catchall(t.any()),
|
|
18
|
+
}).catchall(t.any()), A = t.object({
|
|
19
19
|
connection: t.string(),
|
|
20
20
|
user_id: t.string(),
|
|
21
21
|
provider: t.string(),
|
|
@@ -23,7 +23,7 @@ const bt = t.object({
|
|
|
23
23
|
access_token: t.string().optional(),
|
|
24
24
|
access_token_secret: t.string().optional(),
|
|
25
25
|
refresh_token: t.string().optional(),
|
|
26
|
-
profileData:
|
|
26
|
+
profileData: h.optional()
|
|
27
27
|
}), l = t.object({
|
|
28
28
|
email: t.string().optional().transform((e) => e && e.toLowerCase()),
|
|
29
29
|
username: t.string().optional(),
|
|
@@ -55,21 +55,21 @@ const bt = t.object({
|
|
|
55
55
|
is_social: t.boolean(),
|
|
56
56
|
email: t.string().optional(),
|
|
57
57
|
login_count: t.number().default(0),
|
|
58
|
-
identities: t.array(
|
|
59
|
-
}),
|
|
58
|
+
identities: t.array(A).optional()
|
|
59
|
+
}), Dt = C, yt = l.extend({
|
|
60
60
|
login_count: t.number(),
|
|
61
61
|
multifactor: t.array(t.string()).optional(),
|
|
62
62
|
last_ip: t.string().optional(),
|
|
63
63
|
last_login: t.string().optional(),
|
|
64
64
|
user_id: t.string()
|
|
65
65
|
}).catchall(t.any()), I = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
66
|
-
let
|
|
67
|
-
let
|
|
66
|
+
let f = (e = 21) => {
|
|
67
|
+
let n = "", a = crypto.getRandomValues(new Uint8Array(e));
|
|
68
68
|
for (; e--; )
|
|
69
|
-
|
|
70
|
-
return
|
|
69
|
+
n += I[a[e] & 63];
|
|
70
|
+
return n;
|
|
71
71
|
};
|
|
72
|
-
const
|
|
72
|
+
const O = t.object({
|
|
73
73
|
audience: t.string().optional(),
|
|
74
74
|
recipient: t.string().optional(),
|
|
75
75
|
createUpnClaim: t.boolean().optional(),
|
|
@@ -105,17 +105,18 @@ const f = t.object({
|
|
|
105
105
|
description: "Ids of clients that will be allowed to perform delegation requests. Clients that will be allowed to make delegation request. By default, all your clients will be allowed. This field allows you to specify specific clients"
|
|
106
106
|
}),
|
|
107
107
|
addons: t.object({
|
|
108
|
-
samlp:
|
|
108
|
+
samlp: O.optional()
|
|
109
109
|
}).default({}).optional().openapi({
|
|
110
110
|
description: "Addons associated with the client. The key is the addon's package name and the value is an object with the configuration for the addon."
|
|
111
111
|
}),
|
|
112
112
|
email_validation: t.enum(["enabled", "disabled", "enforced"]).default("enforced").optional().openapi({
|
|
113
113
|
description: "Defines if it possible to sign in with an unverified email and if verification emails will be sent. This is not available in auth0"
|
|
114
114
|
}),
|
|
115
|
-
client_secret: t.string().default(() =>
|
|
115
|
+
client_secret: t.string().default(() => f()).optional(),
|
|
116
116
|
disable_sign_ups: t.boolean().optional().default(!1).openapi({
|
|
117
117
|
description: "Prevents users from signing up using the hosted login page. This is not available in auth0"
|
|
118
|
-
})
|
|
118
|
+
}),
|
|
119
|
+
client_metadata: t.record(t.string().length(255)).optional()
|
|
119
120
|
}), T = t.object({
|
|
120
121
|
created_at: t.string().transform((e) => e === null ? "" : e),
|
|
121
122
|
updated_at: t.string().transform((e) => e === null ? "" : e),
|
|
@@ -124,10 +125,10 @@ const f = t.object({
|
|
|
124
125
|
x: t.number(),
|
|
125
126
|
y: t.number()
|
|
126
127
|
});
|
|
127
|
-
var c = /* @__PURE__ */ ((e) => (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))(c || {}),
|
|
128
|
+
var c = /* @__PURE__ */ ((e) => (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))(c || {}), p = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.FIELD = "FIELD", e))(p || {});
|
|
128
129
|
const r = t.object({
|
|
129
130
|
id: t.string(),
|
|
130
|
-
category: t.nativeEnum(
|
|
131
|
+
category: t.nativeEnum(p),
|
|
131
132
|
type: t.nativeEnum(c)
|
|
132
133
|
}), R = r.extend({
|
|
133
134
|
category: t.literal(
|
|
@@ -177,7 +178,7 @@ const r = t.object({
|
|
|
177
178
|
config: t.object({
|
|
178
179
|
text: t.string()
|
|
179
180
|
}).passthrough()
|
|
180
|
-
}),
|
|
181
|
+
}), y = r.extend({
|
|
181
182
|
category: t.literal(
|
|
182
183
|
"FIELD"
|
|
183
184
|
/* FIELD */
|
|
@@ -230,7 +231,7 @@ const r = t.object({
|
|
|
230
231
|
label: t.string().optional(),
|
|
231
232
|
placeholder: t.string().optional()
|
|
232
233
|
}).passthrough()
|
|
233
|
-
}),
|
|
234
|
+
}), U = t.object({
|
|
234
235
|
id: t.string(),
|
|
235
236
|
category: t.string(),
|
|
236
237
|
type: t.string()
|
|
@@ -238,11 +239,11 @@ const r = t.object({
|
|
|
238
239
|
R,
|
|
239
240
|
L,
|
|
240
241
|
D,
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
y,
|
|
243
|
+
U
|
|
243
244
|
]);
|
|
244
245
|
var j = /* @__PURE__ */ ((e) => (e.STEP = "STEP", e.FLOW = "FLOW", e.CONDITION = "CONDITION", e.ACTION = "ACTION", e))(j || {});
|
|
245
|
-
const
|
|
246
|
+
const k = t.object({
|
|
246
247
|
id: t.string(),
|
|
247
248
|
type: t.literal(
|
|
248
249
|
"STEP"
|
|
@@ -254,7 +255,7 @@ const w = t.object({
|
|
|
254
255
|
components: t.array(F),
|
|
255
256
|
next_node: t.string()
|
|
256
257
|
}).passthrough()
|
|
257
|
-
}),
|
|
258
|
+
}), w = t.object({
|
|
258
259
|
id: t.string(),
|
|
259
260
|
type: t.literal(
|
|
260
261
|
"FLOW"
|
|
@@ -266,15 +267,15 @@ const w = t.object({
|
|
|
266
267
|
flow_id: t.string(),
|
|
267
268
|
next_node: t.string()
|
|
268
269
|
})
|
|
269
|
-
}),
|
|
270
|
+
}), v = t.object({
|
|
270
271
|
id: t.string(),
|
|
271
272
|
type: t.string(),
|
|
272
273
|
coordinates: i
|
|
273
|
-
}).passthrough(),
|
|
274
|
-
w,
|
|
274
|
+
}).passthrough(), H = t.union([
|
|
275
275
|
k,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
w,
|
|
277
|
+
v
|
|
278
|
+
]), P = t.object({
|
|
278
279
|
next_node: t.string(),
|
|
279
280
|
coordinates: i
|
|
280
281
|
}).passthrough(), M = t.object({
|
|
@@ -286,8 +287,8 @@ const w = t.object({
|
|
|
286
287
|
languages: t.object({
|
|
287
288
|
primary: t.string()
|
|
288
289
|
}).passthrough(),
|
|
289
|
-
nodes: t.array(
|
|
290
|
-
start:
|
|
290
|
+
nodes: t.array(H),
|
|
291
|
+
start: P,
|
|
291
292
|
ending: M,
|
|
292
293
|
created_at: t.string(),
|
|
293
294
|
updated_at: t.string(),
|
|
@@ -295,16 +296,16 @@ const w = t.object({
|
|
|
295
296
|
sdkSrc: t.string().optional(),
|
|
296
297
|
sdk_src: t.string().optional()
|
|
297
298
|
}).passthrough()
|
|
298
|
-
}).passthrough(),
|
|
299
|
+
}).passthrough(), Ut = G.omit({
|
|
299
300
|
id: !0,
|
|
300
301
|
created_at: !0,
|
|
301
302
|
updated_at: !0
|
|
302
303
|
});
|
|
303
|
-
var
|
|
304
|
+
var d = /* @__PURE__ */ ((e) => (e.TOKEN = "token", e.TOKEN_ID_TOKEN = "token id_token", e.CODE = "code", e))(d || {}), g = /* @__PURE__ */ ((e) => (e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e))(g || {}), E = /* @__PURE__ */ ((e) => (e.S256 = "S256", e.Plain = "plain", e))(E || {});
|
|
304
305
|
const x = t.object({
|
|
305
306
|
client_id: t.string(),
|
|
306
307
|
act_as: t.string().optional(),
|
|
307
|
-
response_type: t.nativeEnum(
|
|
308
|
+
response_type: t.nativeEnum(d).optional(),
|
|
308
309
|
response_mode: t.nativeEnum(g).optional(),
|
|
309
310
|
redirect_uri: t.string().optional(),
|
|
310
311
|
audience: t.string().optional(),
|
|
@@ -319,7 +320,7 @@ const x = t.object({
|
|
|
319
320
|
ui_locales: t.string().optional(),
|
|
320
321
|
// The following fields are not available in Auth0
|
|
321
322
|
vendor_id: t.string().optional()
|
|
322
|
-
}),
|
|
323
|
+
}), Ft = t.object({
|
|
323
324
|
colors: t.object({
|
|
324
325
|
primary: t.string(),
|
|
325
326
|
page_background: t.object({
|
|
@@ -381,24 +382,6 @@ const x = t.object({
|
|
|
381
382
|
updated_at: t.string().transform((e) => e === null ? "" : e),
|
|
382
383
|
...V.shape,
|
|
383
384
|
id: t.string()
|
|
384
|
-
}), Nt = t.object({
|
|
385
|
-
logoUrl: t.string(),
|
|
386
|
-
loginBackgroundImage: t.string().nullish(),
|
|
387
|
-
style: t.object({
|
|
388
|
-
primaryColor: t.string(),
|
|
389
|
-
buttonTextColor: t.string(),
|
|
390
|
-
primaryHoverColor: t.string()
|
|
391
|
-
}),
|
|
392
|
-
country: t.string().optional(),
|
|
393
|
-
supportEmail: t.string().nullable(),
|
|
394
|
-
supportUrl: t.string().nullable(),
|
|
395
|
-
name: t.string(),
|
|
396
|
-
showGreyishBackground: t.boolean().optional(),
|
|
397
|
-
termsAndConditionsUrl: t.string().nullable(),
|
|
398
|
-
companyName: t.string().optional(),
|
|
399
|
-
checkoutHideSocial: t.boolean().optional(),
|
|
400
|
-
siteUrl: t.string().nullable(),
|
|
401
|
-
manageSubscriptionsUrl: t.string().optional()
|
|
402
385
|
});
|
|
403
386
|
t.object({
|
|
404
387
|
...T.shape,
|
|
@@ -444,10 +427,10 @@ const Y = t.enum([
|
|
|
444
427
|
expires_at: t.string(),
|
|
445
428
|
used_at: t.string().optional(),
|
|
446
429
|
user_id: t.string().optional()
|
|
447
|
-
}),
|
|
430
|
+
}), jt = t.object({
|
|
448
431
|
...q.shape,
|
|
449
432
|
created_at: t.string()
|
|
450
|
-
}),
|
|
433
|
+
}), z = t.object({
|
|
451
434
|
domain: t.string(),
|
|
452
435
|
custom_domain_id: t.string().optional(),
|
|
453
436
|
type: t.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -461,23 +444,23 @@ const Y = t.enum([
|
|
|
461
444
|
"null"
|
|
462
445
|
]).optional(),
|
|
463
446
|
domain_metadata: t.record(t.string().max(255)).optional()
|
|
464
|
-
}),
|
|
447
|
+
}), Q = t.object({
|
|
465
448
|
name: t.literal("txt"),
|
|
466
449
|
record: t.string(),
|
|
467
450
|
domain: t.string()
|
|
468
451
|
}), Z = t.object({
|
|
469
|
-
...
|
|
452
|
+
...z.shape,
|
|
470
453
|
custom_domain_id: t.string(),
|
|
471
454
|
primary: t.boolean(),
|
|
472
455
|
status: t.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
473
456
|
origin_domain_name: t.string().optional(),
|
|
474
457
|
verification: t.object({
|
|
475
|
-
methods: t.array(
|
|
458
|
+
methods: t.array(Q)
|
|
476
459
|
}).optional(),
|
|
477
460
|
tls_policy: t.string().optional()
|
|
478
|
-
}),
|
|
461
|
+
}), kt = Z.extend({
|
|
479
462
|
tenant_id: t.string()
|
|
480
|
-
}),
|
|
463
|
+
}), wt = t.object({
|
|
481
464
|
id: t.string(),
|
|
482
465
|
type: t.literal("submit"),
|
|
483
466
|
label: t.string(),
|
|
@@ -603,7 +586,7 @@ const Y = t.enum([
|
|
|
603
586
|
style: t.object({ css: t.string().optional() }).optional()
|
|
604
587
|
}).openapi({
|
|
605
588
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
606
|
-
}),
|
|
589
|
+
}), vt = t.object({
|
|
607
590
|
...s.shape,
|
|
608
591
|
...$.shape,
|
|
609
592
|
id: t.string()
|
|
@@ -629,22 +612,22 @@ const Y = t.enum([
|
|
|
629
612
|
..._,
|
|
630
613
|
trigger_id: S,
|
|
631
614
|
form_id: t.string()
|
|
632
|
-
}),
|
|
615
|
+
}), Ht = t.union([
|
|
633
616
|
tt,
|
|
634
617
|
et
|
|
635
|
-
]),
|
|
618
|
+
]), ot = t.object({
|
|
636
619
|
..._,
|
|
637
620
|
trigger_id: u,
|
|
638
621
|
...s.shape,
|
|
639
622
|
hook_id: t.string(),
|
|
640
623
|
url: t.string()
|
|
641
|
-
}),
|
|
624
|
+
}), nt = t.object({
|
|
642
625
|
..._,
|
|
643
626
|
trigger_id: S,
|
|
644
627
|
...s.shape,
|
|
645
628
|
hook_id: t.string(),
|
|
646
629
|
form_id: t.string()
|
|
647
|
-
}),
|
|
630
|
+
}), Pt = t.union([ot, nt]), it = t.object({
|
|
648
631
|
alg: t.enum([
|
|
649
632
|
"RS256",
|
|
650
633
|
"RS384",
|
|
@@ -663,9 +646,9 @@ const Y = t.enum([
|
|
|
663
646
|
x5t: t.string().optional(),
|
|
664
647
|
x5c: t.array(t.string()).optional(),
|
|
665
648
|
use: t.enum(["sig", "enc"]).optional()
|
|
666
|
-
}),
|
|
649
|
+
}), Mt = t.object({
|
|
667
650
|
keys: t.array(it)
|
|
668
|
-
}),
|
|
651
|
+
}), Gt = t.object({
|
|
669
652
|
issuer: t.string(),
|
|
670
653
|
authorization_endpoint: t.string(),
|
|
671
654
|
token_endpoint: t.string(),
|
|
@@ -699,7 +682,7 @@ const Y = t.enum([
|
|
|
699
682
|
login_completed: t.boolean().optional().default(!1)
|
|
700
683
|
}).openapi({
|
|
701
684
|
description: "This represents a login sesion"
|
|
702
|
-
}),
|
|
685
|
+
}), xt = t.object({
|
|
703
686
|
...at.shape,
|
|
704
687
|
id: t.string().openapi({
|
|
705
688
|
description: "This is is used as the state in the universal login"
|
|
@@ -882,7 +865,7 @@ const Y = t.enum([
|
|
|
882
865
|
env: t.object({
|
|
883
866
|
node: t.string().optional()
|
|
884
867
|
}).optional()
|
|
885
|
-
}),
|
|
868
|
+
}), Kt = t.object({
|
|
886
869
|
type: rt,
|
|
887
870
|
date: t.string(),
|
|
888
871
|
description: t.string().optional(),
|
|
@@ -909,7 +892,7 @@ const Y = t.enum([
|
|
|
909
892
|
user_id: t.string(),
|
|
910
893
|
password: t.string(),
|
|
911
894
|
algorithm: t.enum(["bcrypt", "argon2id"]).default("argon2id")
|
|
912
|
-
}),
|
|
895
|
+
}), Bt = t.object({
|
|
913
896
|
...lt.shape,
|
|
914
897
|
created_at: t.string(),
|
|
915
898
|
updated_at: t.string()
|
|
@@ -932,13 +915,13 @@ const Y = t.enum([
|
|
|
932
915
|
"Metadata related to the device used in the session"
|
|
933
916
|
),
|
|
934
917
|
clients: t.array(t.string()).describe("List of client details for the session")
|
|
935
|
-
}),
|
|
918
|
+
}), Xt = t.object({
|
|
936
919
|
created_at: t.string(),
|
|
937
920
|
updated_at: t.string(),
|
|
938
921
|
authenticated_at: t.string(),
|
|
939
922
|
last_interaction_at: t.string(),
|
|
940
923
|
...ct.shape
|
|
941
|
-
}),
|
|
924
|
+
}), Vt = t.object({
|
|
942
925
|
kid: t.string().openapi({ description: "The key id of the signing key" }),
|
|
943
926
|
cert: t.string().openapi({ description: "The public certificate of the signing key" }),
|
|
944
927
|
fingerprint: t.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -958,8 +941,8 @@ const Y = t.enum([
|
|
|
958
941
|
revoked: t.boolean().optional().openapi({ description: "True if the key is revoked" }),
|
|
959
942
|
revoked_at: t.string().optional().openapi({ description: "The date and time when the key was revoked" })
|
|
960
943
|
});
|
|
961
|
-
var
|
|
962
|
-
const
|
|
944
|
+
var pt = /* @__PURE__ */ ((e) => (e.RefreshToken = "refresh_token", e.AuthorizationCode = "authorization_code", e.ClientCredential = "client_credentials", e.Passwordless = "passwordless", e.Password = "password", e.OTP = "http://auth0.com/oauth/grant-type/passwordless/otp", e))(pt || {});
|
|
945
|
+
const Wt = t.object({
|
|
963
946
|
access_token: t.string(),
|
|
964
947
|
id_token: t.string().optional(),
|
|
965
948
|
scope: t.string().optional(),
|
|
@@ -972,7 +955,7 @@ t.object({
|
|
|
972
955
|
code: t.string(),
|
|
973
956
|
state: t.string().optional()
|
|
974
957
|
});
|
|
975
|
-
const
|
|
958
|
+
const dt = t.object({
|
|
976
959
|
button_border_radius: t.number(),
|
|
977
960
|
button_border_weight: t.number(),
|
|
978
961
|
buttons_style: t.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1002,19 +985,19 @@ const pt = t.object({
|
|
|
1002
985
|
success: t.string(),
|
|
1003
986
|
widget_background: t.string(),
|
|
1004
987
|
widget_border: t.string()
|
|
1005
|
-
}),
|
|
988
|
+
}), o = t.object({
|
|
1006
989
|
bold: t.boolean(),
|
|
1007
990
|
size: t.number()
|
|
1008
991
|
}), Et = t.object({
|
|
1009
|
-
body_text:
|
|
1010
|
-
buttons_text:
|
|
992
|
+
body_text: o,
|
|
993
|
+
buttons_text: o,
|
|
1011
994
|
font_url: t.string(),
|
|
1012
|
-
input_labels:
|
|
1013
|
-
links:
|
|
995
|
+
input_labels: o,
|
|
996
|
+
links: o,
|
|
1014
997
|
links_style: t.enum(["normal", "underlined"]),
|
|
1015
998
|
reference_text_size: t.number(),
|
|
1016
|
-
subtitle:
|
|
1017
|
-
title:
|
|
999
|
+
subtitle: o,
|
|
1000
|
+
title: o
|
|
1018
1001
|
}), ut = t.object({
|
|
1019
1002
|
background_color: t.string(),
|
|
1020
1003
|
background_image_url: t.string(),
|
|
@@ -1026,20 +1009,20 @@ const pt = t.object({
|
|
|
1026
1009
|
logo_url: t.string(),
|
|
1027
1010
|
social_buttons_layout: t.enum(["bottom", "top"])
|
|
1028
1011
|
}), mt = t.object({
|
|
1029
|
-
borders:
|
|
1012
|
+
borders: dt,
|
|
1030
1013
|
colors: gt,
|
|
1031
1014
|
displayName: t.string(),
|
|
1032
1015
|
fonts: Et,
|
|
1033
1016
|
page_background: ut,
|
|
1034
1017
|
widget: St
|
|
1035
|
-
}),
|
|
1018
|
+
}), Yt = mt.extend({
|
|
1036
1019
|
themeId: t.string()
|
|
1037
|
-
}),
|
|
1020
|
+
}), qt = t.object({
|
|
1038
1021
|
universal_login_experience: t.enum(["new", "classic"]).default("new"),
|
|
1039
1022
|
identifier_first: t.boolean().default(!0),
|
|
1040
1023
|
password_first: t.boolean().default(!1),
|
|
1041
1024
|
webauthn_platform_first_factor: t.boolean()
|
|
1042
|
-
}),
|
|
1025
|
+
}), zt = t.object({
|
|
1043
1026
|
name: t.string(),
|
|
1044
1027
|
enabled: t.boolean().optional().default(!0),
|
|
1045
1028
|
default_from_address: t.string().optional(),
|
|
@@ -1069,7 +1052,7 @@ const pt = t.object({
|
|
|
1069
1052
|
})
|
|
1070
1053
|
]),
|
|
1071
1054
|
settings: t.object({}).optional()
|
|
1072
|
-
}),
|
|
1055
|
+
}), ht = t.object({
|
|
1073
1056
|
// The actual refresh token value (primary key).
|
|
1074
1057
|
id: t.string(),
|
|
1075
1058
|
// Link to the session record
|
|
@@ -1090,46 +1073,97 @@ const pt = t.object({
|
|
|
1090
1073
|
})
|
|
1091
1074
|
),
|
|
1092
1075
|
rotating: t.boolean()
|
|
1093
|
-
}),
|
|
1076
|
+
}), Qt = t.object({
|
|
1094
1077
|
// When the refresh token record was created.
|
|
1095
1078
|
created_at: t.string(),
|
|
1096
1079
|
// Spread in the rest of the refresh token properties.
|
|
1097
|
-
...
|
|
1098
|
-
}),
|
|
1080
|
+
...ht.shape
|
|
1081
|
+
}), Zt = t.object({
|
|
1099
1082
|
to: t.string(),
|
|
1100
1083
|
message: t.string()
|
|
1101
|
-
}),
|
|
1084
|
+
}), Jt = t.object({
|
|
1102
1085
|
name: t.string(),
|
|
1103
1086
|
options: t.object({})
|
|
1104
|
-
})
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1087
|
+
}), At = t.object({
|
|
1088
|
+
value: t.string(),
|
|
1089
|
+
description: t.string().optional()
|
|
1090
|
+
}), bt = t.object({
|
|
1091
|
+
token_dialect: t.enum(["access_token", "access_token_authz"]).optional(),
|
|
1092
|
+
enforce_policies: t.boolean().optional(),
|
|
1093
|
+
allow_skipping_userinfo: t.boolean().optional(),
|
|
1094
|
+
skip_userinfo: t.boolean().optional(),
|
|
1095
|
+
persist_client_authorization: t.boolean().optional(),
|
|
1096
|
+
enable_introspection_endpoint: t.boolean().optional(),
|
|
1097
|
+
mtls: t.object({
|
|
1098
|
+
bound_access_tokens: t.boolean().optional()
|
|
1099
|
+
}).optional()
|
|
1100
|
+
}).passthrough(), Ct = t.object({
|
|
1101
|
+
name: t.string(),
|
|
1102
|
+
identifier: t.string(),
|
|
1103
|
+
scopes: t.array(At).optional(),
|
|
1104
|
+
signing_alg: t.string().optional(),
|
|
1105
|
+
signing_secret: t.string().optional(),
|
|
1106
|
+
token_lifetime: t.number().optional(),
|
|
1107
|
+
token_lifetime_for_web: t.number().optional(),
|
|
1108
|
+
skip_consent_for_verifiable_first_party_clients: t.boolean().optional(),
|
|
1109
|
+
allow_offline_access: t.boolean().optional(),
|
|
1110
|
+
verificationKey: t.string().optional(),
|
|
1111
|
+
options: bt.optional()
|
|
1112
|
+
}), It = t.object({
|
|
1113
|
+
id: t.string().optional(),
|
|
1114
|
+
...Ct.shape
|
|
1115
|
+
}), $t = t.array(It), ft = t.object({
|
|
1116
|
+
source_id: t.string().optional(),
|
|
1117
|
+
source_name: t.string().optional(),
|
|
1118
|
+
// Auth0 commonly uses values like "DIRECT" and "ROLE"; allow any string for forward compatibility
|
|
1119
|
+
source_type: t.string().optional()
|
|
1120
|
+
}).passthrough(), Ot = t.object({
|
|
1121
|
+
permission_name: t.string(),
|
|
1122
|
+
description: t.string().nullable().optional(),
|
|
1123
|
+
resource_server_identifier: t.string(),
|
|
1124
|
+
resource_server_name: t.string(),
|
|
1125
|
+
sources: t.array(ft).optional()
|
|
1126
|
+
}).passthrough(), te = t.array(Ot), Nt = t.object({
|
|
1127
|
+
name: t.string(),
|
|
1128
|
+
script: t.string(),
|
|
1129
|
+
order: t.number().int().optional(),
|
|
1130
|
+
enabled: t.boolean().optional(),
|
|
1131
|
+
// Auth0 currently returns "login_success" for rules; keep as string for forward compatibility
|
|
1132
|
+
stage: t.string().optional()
|
|
1133
|
+
}), Tt = t.object({
|
|
1134
|
+
id: t.string(),
|
|
1135
|
+
created_at: t.string().optional(),
|
|
1136
|
+
updated_at: t.string().optional(),
|
|
1137
|
+
...Nt.shape
|
|
1138
|
+
}).passthrough(), ee = t.array(Tt);
|
|
1139
|
+
function oe(e) {
|
|
1140
|
+
const [n, a] = e.split("|");
|
|
1141
|
+
if (!n || !a)
|
|
1108
1142
|
throw new Error(`Invalid user_id: ${e}`);
|
|
1109
|
-
return { connection:
|
|
1143
|
+
return { connection: n, id: a };
|
|
1110
1144
|
}
|
|
1111
1145
|
export {
|
|
1112
1146
|
_t as Auth0Client,
|
|
1113
1147
|
g as AuthorizationResponseMode,
|
|
1114
|
-
|
|
1148
|
+
d as AuthorizationResponseType,
|
|
1115
1149
|
E as CodeChallengeMethod,
|
|
1116
|
-
|
|
1150
|
+
p as ComponentCategory,
|
|
1117
1151
|
c as ComponentType,
|
|
1118
|
-
|
|
1152
|
+
pt as GrantType,
|
|
1119
1153
|
st as LogTypes,
|
|
1120
1154
|
j as NodeType,
|
|
1121
1155
|
N as applicationInsertSchema,
|
|
1122
1156
|
T as applicationSchema,
|
|
1123
|
-
|
|
1157
|
+
Ut as auth0FlowInsertSchema,
|
|
1124
1158
|
G as auth0FlowSchema,
|
|
1125
|
-
|
|
1159
|
+
Dt as auth0UserResponseSchema,
|
|
1126
1160
|
x as authParamsSchema,
|
|
1127
1161
|
l as baseUserSchema,
|
|
1128
|
-
|
|
1129
|
-
|
|
1162
|
+
dt as bordersSchema,
|
|
1163
|
+
Ft as brandingSchema,
|
|
1130
1164
|
L as buttonComponentSchema,
|
|
1131
1165
|
q as codeInsertSchema,
|
|
1132
|
-
|
|
1166
|
+
jt as codeSchema,
|
|
1133
1167
|
Y as codeTypeSchema,
|
|
1134
1168
|
gt as colorsSchema,
|
|
1135
1169
|
F as componentSchema,
|
|
@@ -1137,59 +1171,69 @@ export {
|
|
|
1137
1171
|
K as connectionOptionsSchema,
|
|
1138
1172
|
X as connectionSchema,
|
|
1139
1173
|
i as coordinatesSchema,
|
|
1140
|
-
|
|
1174
|
+
z as customDomainInsertSchema,
|
|
1141
1175
|
Z as customDomainSchema,
|
|
1142
|
-
|
|
1143
|
-
|
|
1176
|
+
kt as customDomainWithTenantIdSchema,
|
|
1177
|
+
zt as emailProviderSchema,
|
|
1144
1178
|
M as endingSchema,
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1179
|
+
y as fieldComponentSchema,
|
|
1180
|
+
w as flowNodeSchema,
|
|
1181
|
+
o as fontDetailsSchema,
|
|
1148
1182
|
Et as fontsSchema,
|
|
1149
|
-
|
|
1183
|
+
wt as formControlSchema,
|
|
1150
1184
|
$ as formInsertSchema,
|
|
1151
1185
|
J as formNodeComponentDefinition,
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1186
|
+
vt as formSchema,
|
|
1187
|
+
U as genericComponentSchema,
|
|
1188
|
+
v as genericNodeSchema,
|
|
1189
|
+
Ht as hookInsertSchema,
|
|
1190
|
+
Pt as hookSchema,
|
|
1191
|
+
A as identitySchema,
|
|
1192
|
+
Mt as jwksKeySchema,
|
|
1159
1193
|
it as jwksSchema,
|
|
1160
1194
|
D as legalComponentSchema,
|
|
1161
|
-
|
|
1195
|
+
Kt as logSchema,
|
|
1162
1196
|
at as loginSessionInsertSchema,
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1197
|
+
xt as loginSessionSchema,
|
|
1198
|
+
H as nodeSchema,
|
|
1199
|
+
Gt as openIDConfigurationSchema,
|
|
1166
1200
|
ut as pageBackgroundSchema,
|
|
1167
|
-
|
|
1201
|
+
oe as parseUserId,
|
|
1168
1202
|
lt as passwordInsertSchema,
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1203
|
+
Bt as passwordSchema,
|
|
1204
|
+
te as permissionListSchema,
|
|
1205
|
+
Ot as permissionSchema,
|
|
1206
|
+
ft as permissionSourceSchema,
|
|
1207
|
+
h as profileDataSchema,
|
|
1208
|
+
qt as promptSettingSchema,
|
|
1209
|
+
ht as refreshTokenInsertSchema,
|
|
1210
|
+
Qt as refreshTokenSchema,
|
|
1211
|
+
Ct as resourceServerInsertSchema,
|
|
1212
|
+
$t as resourceServerListSchema,
|
|
1213
|
+
bt as resourceServerOptionsSchema,
|
|
1214
|
+
It as resourceServerSchema,
|
|
1215
|
+
At as resourceServerScopeSchema,
|
|
1174
1216
|
R as richTextComponentSchema,
|
|
1175
|
-
|
|
1217
|
+
Nt as ruleInsertSchema,
|
|
1218
|
+
ee as ruleListSchema,
|
|
1219
|
+
Tt as ruleSchema,
|
|
1220
|
+
O as samlpAddon,
|
|
1176
1221
|
ct as sessionInsertSchema,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1222
|
+
Xt as sessionSchema,
|
|
1223
|
+
Vt as signingKeySchema,
|
|
1224
|
+
Jt as smsProviderSchema,
|
|
1225
|
+
Zt as smsSendParamsSchema,
|
|
1226
|
+
P as startSchema,
|
|
1227
|
+
k as stepNodeSchema,
|
|
1183
1228
|
V as tenantInsertSchema,
|
|
1184
1229
|
W as tenantSchema,
|
|
1185
1230
|
mt as themeInsertSchema,
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1231
|
+
Yt as themeSchema,
|
|
1232
|
+
Wt as tokenResponseSchema,
|
|
1233
|
+
Lt as totalsSchema,
|
|
1189
1234
|
b as userInsertSchema,
|
|
1190
|
-
|
|
1235
|
+
yt as userResponseSchema,
|
|
1191
1236
|
C as userSchema,
|
|
1192
|
-
|
|
1193
|
-
z as verificationMethodsSchema,
|
|
1237
|
+
Q as verificationMethodsSchema,
|
|
1194
1238
|
St as widgetSchema
|
|
1195
1239
|
};
|