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