@authhero/adapter-interfaces 0.106.0 → 0.108.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/README.md +112 -0
- package/dist/adapter-interfaces.cjs +1 -1
- package/dist/adapter-interfaces.d.ts +111 -0
- package/dist/adapter-interfaces.mjs +393 -347
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as e } from "@hono/zod-openapi";
|
|
2
|
-
const
|
|
2
|
+
const rt = e.object({
|
|
3
3
|
page: e.string().min(0).optional().default("0").transform((t) => parseInt(t, 10)).openapi({
|
|
4
4
|
description: "The page number where 0 is the first page"
|
|
5
5
|
}),
|
|
@@ -15,14 +15,14 @@ const Ve = e.object({
|
|
|
15
15
|
q: e.string().optional().openapi({
|
|
16
16
|
description: "A lucene query string used to filter the results"
|
|
17
17
|
})
|
|
18
|
-
}),
|
|
18
|
+
}), st = e.object({
|
|
19
19
|
start: e.number(),
|
|
20
20
|
limit: e.number(),
|
|
21
21
|
length: e.number()
|
|
22
|
-
}),
|
|
22
|
+
}), r = e.object({
|
|
23
23
|
created_at: e.string(),
|
|
24
24
|
updated_at: e.string()
|
|
25
|
-
}),
|
|
25
|
+
}), U = e.object({
|
|
26
26
|
email: e.string().optional(),
|
|
27
27
|
email_verified: e.boolean().optional(),
|
|
28
28
|
name: e.string().optional(),
|
|
@@ -31,7 +31,7 @@ const Ve = e.object({
|
|
|
31
31
|
phone_number: e.string().optional(),
|
|
32
32
|
phone_verified: e.boolean().optional(),
|
|
33
33
|
family_name: e.string().optional()
|
|
34
|
-
}).catchall(e.any()),
|
|
34
|
+
}).catchall(e.any()), F = e.object({
|
|
35
35
|
connection: e.string(),
|
|
36
36
|
user_id: e.string(),
|
|
37
37
|
provider: e.string(),
|
|
@@ -39,8 +39,8 @@ const Ve = e.object({
|
|
|
39
39
|
access_token: e.string().optional(),
|
|
40
40
|
access_token_secret: e.string().optional(),
|
|
41
41
|
refresh_token: e.string().optional(),
|
|
42
|
-
profileData:
|
|
43
|
-
}),
|
|
42
|
+
profileData: U.optional()
|
|
43
|
+
}), E = e.object({
|
|
44
44
|
email: e.string().optional().transform((t) => t && t.toLowerCase()),
|
|
45
45
|
username: e.string().optional(),
|
|
46
46
|
phone_number: e.string().optional(),
|
|
@@ -55,7 +55,7 @@ const Ve = e.object({
|
|
|
55
55
|
user_id: e.string().optional(),
|
|
56
56
|
app_metadata: e.any().default({}).optional(),
|
|
57
57
|
user_metadata: e.any().default({}).optional()
|
|
58
|
-
}),
|
|
58
|
+
}), v = E.extend({
|
|
59
59
|
email_verified: e.boolean().default(!1),
|
|
60
60
|
verify_email: e.boolean().optional(),
|
|
61
61
|
last_ip: e.string().optional(),
|
|
@@ -64,29 +64,29 @@ const Ve = e.object({
|
|
|
64
64
|
provider: e.string().optional(),
|
|
65
65
|
connection: e.string(),
|
|
66
66
|
is_social: e.boolean().optional()
|
|
67
|
-
}),
|
|
68
|
-
...
|
|
69
|
-
...
|
|
67
|
+
}), P = e.object({
|
|
68
|
+
...v.shape,
|
|
69
|
+
...r.shape,
|
|
70
70
|
user_id: e.string(),
|
|
71
71
|
provider: e.string(),
|
|
72
72
|
is_social: e.boolean(),
|
|
73
73
|
email: e.string().optional(),
|
|
74
74
|
login_count: e.number().default(0),
|
|
75
|
-
identities: e.array(
|
|
76
|
-
}),
|
|
75
|
+
identities: e.array(F).optional()
|
|
76
|
+
}), lt = P, ct = E.extend({
|
|
77
77
|
login_count: e.number(),
|
|
78
78
|
multifactor: e.array(e.string()).optional(),
|
|
79
79
|
last_ip: e.string().optional(),
|
|
80
80
|
last_login: e.string().optional(),
|
|
81
81
|
user_id: e.string()
|
|
82
|
-
}).catchall(e.any()),
|
|
83
|
-
let
|
|
84
|
-
let
|
|
82
|
+
}).catchall(e.any()), x = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
83
|
+
let M = (t = 21) => {
|
|
84
|
+
let n = "", i = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
85
85
|
for (; t--; )
|
|
86
|
-
|
|
87
|
-
return
|
|
86
|
+
n += x[i[t] & 63];
|
|
87
|
+
return n;
|
|
88
88
|
};
|
|
89
|
-
const
|
|
89
|
+
const H = e.object({
|
|
90
90
|
client_id: e.string().openapi({
|
|
91
91
|
description: "ID of this client."
|
|
92
92
|
}),
|
|
@@ -99,7 +99,7 @@ const N = e.object({
|
|
|
99
99
|
global: e.boolean().default(!1).openapi({
|
|
100
100
|
description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)."
|
|
101
101
|
}),
|
|
102
|
-
client_secret: e.string().default(() =>
|
|
102
|
+
client_secret: e.string().default(() => M()).optional().openapi({
|
|
103
103
|
description: "Client secret (which you must not make public)."
|
|
104
104
|
}),
|
|
105
105
|
app_type: e.enum([
|
|
@@ -256,11 +256,11 @@ const N = e.object({
|
|
|
256
256
|
description: "Specifies how long, in seconds, a Pushed Authorization Request URI remains valid"
|
|
257
257
|
}),
|
|
258
258
|
token_quota: e.record(e.any()).default({}).optional()
|
|
259
|
-
}),
|
|
259
|
+
}), G = e.object({
|
|
260
260
|
created_at: e.string(),
|
|
261
261
|
updated_at: e.string(),
|
|
262
|
-
...
|
|
263
|
-
}),
|
|
262
|
+
...H.shape
|
|
263
|
+
}), K = e.object({
|
|
264
264
|
client_id: e.string().min(1).openapi({
|
|
265
265
|
description: "ID of the client."
|
|
266
266
|
}),
|
|
@@ -285,23 +285,23 @@ const N = e.object({
|
|
|
285
285
|
authorization_details_types: e.array(e.string()).optional().openapi({
|
|
286
286
|
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."
|
|
287
287
|
})
|
|
288
|
-
}),
|
|
288
|
+
}), B = e.object({
|
|
289
289
|
id: e.string().openapi({
|
|
290
290
|
description: "ID of the client grant."
|
|
291
291
|
}),
|
|
292
|
-
...
|
|
292
|
+
...K.shape,
|
|
293
293
|
created_at: e.string().optional(),
|
|
294
294
|
updated_at: e.string().optional()
|
|
295
|
-
}),
|
|
295
|
+
}), _t = e.array(B), c = e.object({
|
|
296
296
|
x: e.number(),
|
|
297
297
|
y: e.number()
|
|
298
298
|
});
|
|
299
|
-
var
|
|
300
|
-
const
|
|
299
|
+
var S = /* @__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))(S || {}), A = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.FIELD = "FIELD", t))(A || {});
|
|
300
|
+
const d = e.object({
|
|
301
301
|
id: e.string(),
|
|
302
|
-
category: e.nativeEnum(
|
|
303
|
-
type: e.nativeEnum(
|
|
304
|
-
}),
|
|
302
|
+
category: e.nativeEnum(A),
|
|
303
|
+
type: e.nativeEnum(S)
|
|
304
|
+
}), z = d.extend({
|
|
305
305
|
category: e.literal(
|
|
306
306
|
"BLOCK"
|
|
307
307
|
/* BLOCK */
|
|
@@ -313,7 +313,7 @@ const l = e.object({
|
|
|
313
313
|
config: e.object({
|
|
314
314
|
content: e.string()
|
|
315
315
|
}).passthrough()
|
|
316
|
-
}),
|
|
316
|
+
}), W = d.extend({
|
|
317
317
|
category: e.literal(
|
|
318
318
|
"BLOCK"
|
|
319
319
|
/* BLOCK */
|
|
@@ -335,7 +335,7 @@ const l = e.object({
|
|
|
335
335
|
config: e.object({
|
|
336
336
|
text: e.string()
|
|
337
337
|
}).passthrough()
|
|
338
|
-
}),
|
|
338
|
+
}), X = d.extend({
|
|
339
339
|
category: e.literal(
|
|
340
340
|
"FIELD"
|
|
341
341
|
/* FIELD */
|
|
@@ -349,7 +349,7 @@ const l = e.object({
|
|
|
349
349
|
config: e.object({
|
|
350
350
|
text: e.string()
|
|
351
351
|
}).passthrough()
|
|
352
|
-
}),
|
|
352
|
+
}), V = d.extend({
|
|
353
353
|
category: e.literal(
|
|
354
354
|
"FIELD"
|
|
355
355
|
/* FIELD */
|
|
@@ -402,82 +402,82 @@ const l = e.object({
|
|
|
402
402
|
label: e.string().optional(),
|
|
403
403
|
placeholder: e.string().optional()
|
|
404
404
|
}).passthrough()
|
|
405
|
-
}),
|
|
405
|
+
}), q = e.object({
|
|
406
406
|
id: e.string(),
|
|
407
407
|
category: e.string(),
|
|
408
408
|
type: e.string()
|
|
409
|
-
}).passthrough(),
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
409
|
+
}).passthrough(), Y = e.union([
|
|
410
|
+
z,
|
|
411
|
+
W,
|
|
412
|
+
X,
|
|
413
|
+
V,
|
|
414
|
+
q
|
|
415
415
|
]);
|
|
416
|
-
var
|
|
417
|
-
const
|
|
416
|
+
var Q = /* @__PURE__ */ ((t) => (t.STEP = "STEP", t.FLOW = "FLOW", t.CONDITION = "CONDITION", t.ACTION = "ACTION", t))(Q || {});
|
|
417
|
+
const J = e.object({
|
|
418
418
|
id: e.string(),
|
|
419
419
|
type: e.literal(
|
|
420
420
|
"STEP"
|
|
421
421
|
/* STEP */
|
|
422
422
|
),
|
|
423
|
-
coordinates:
|
|
423
|
+
coordinates: c,
|
|
424
424
|
alias: e.string().optional(),
|
|
425
425
|
config: e.object({
|
|
426
|
-
components: e.array(
|
|
426
|
+
components: e.array(Y),
|
|
427
427
|
next_node: e.string()
|
|
428
428
|
}).passthrough()
|
|
429
|
-
}),
|
|
429
|
+
}), Z = e.object({
|
|
430
430
|
id: e.string(),
|
|
431
431
|
type: e.literal(
|
|
432
432
|
"FLOW"
|
|
433
433
|
/* FLOW */
|
|
434
434
|
),
|
|
435
|
-
coordinates:
|
|
435
|
+
coordinates: c,
|
|
436
436
|
alias: e.string().optional(),
|
|
437
437
|
config: e.object({
|
|
438
438
|
flow_id: e.string(),
|
|
439
439
|
next_node: e.string()
|
|
440
440
|
})
|
|
441
|
-
}),
|
|
441
|
+
}), $ = e.object({
|
|
442
442
|
id: e.string(),
|
|
443
443
|
type: e.string(),
|
|
444
|
-
coordinates:
|
|
445
|
-
}).passthrough(),
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
]),
|
|
444
|
+
coordinates: c
|
|
445
|
+
}).passthrough(), ee = e.union([
|
|
446
|
+
J,
|
|
447
|
+
Z,
|
|
448
|
+
$
|
|
449
|
+
]), te = e.object({
|
|
450
450
|
next_node: e.string(),
|
|
451
|
-
coordinates:
|
|
452
|
-
}).passthrough(),
|
|
451
|
+
coordinates: c
|
|
452
|
+
}).passthrough(), oe = e.object({
|
|
453
453
|
resume_flow: e.boolean().optional(),
|
|
454
|
-
coordinates:
|
|
455
|
-
}).passthrough(),
|
|
454
|
+
coordinates: c
|
|
455
|
+
}).passthrough(), ne = e.object({
|
|
456
456
|
id: e.string(),
|
|
457
457
|
name: e.string(),
|
|
458
458
|
languages: e.object({
|
|
459
459
|
primary: e.string()
|
|
460
460
|
}).passthrough(),
|
|
461
|
-
nodes: e.array(
|
|
462
|
-
start:
|
|
463
|
-
ending:
|
|
461
|
+
nodes: e.array(ee),
|
|
462
|
+
start: te,
|
|
463
|
+
ending: oe,
|
|
464
464
|
created_at: e.string(),
|
|
465
465
|
updated_at: e.string(),
|
|
466
466
|
links: e.object({
|
|
467
467
|
sdkSrc: e.string().optional(),
|
|
468
468
|
sdk_src: e.string().optional()
|
|
469
469
|
}).passthrough()
|
|
470
|
-
}).passthrough(),
|
|
470
|
+
}).passthrough(), pt = ne.omit({
|
|
471
471
|
id: !0,
|
|
472
472
|
created_at: !0,
|
|
473
473
|
updated_at: !0
|
|
474
474
|
});
|
|
475
|
-
var
|
|
476
|
-
const
|
|
475
|
+
var I = /* @__PURE__ */ ((t) => (t.TOKEN = "token", t.TOKEN_ID_TOKEN = "token id_token", t.CODE = "code", t))(I || {}), C = /* @__PURE__ */ ((t) => (t.QUERY = "query", t.FRAGMENT = "fragment", t.FORM_POST = "form_post", t.WEB_MESSAGE = "web_message", t.SAML_POST = "saml_post", t))(C || {}), O = /* @__PURE__ */ ((t) => (t.S256 = "S256", t.Plain = "plain", t))(O || {});
|
|
476
|
+
const ie = e.object({
|
|
477
477
|
client_id: e.string(),
|
|
478
478
|
act_as: e.string().optional(),
|
|
479
|
-
response_type: e.nativeEnum(
|
|
480
|
-
response_mode: e.nativeEnum(
|
|
479
|
+
response_type: e.nativeEnum(I).optional(),
|
|
480
|
+
response_mode: e.nativeEnum(C).optional(),
|
|
481
481
|
redirect_uri: e.string().optional(),
|
|
482
482
|
audience: e.string().optional(),
|
|
483
483
|
organization: e.string().optional(),
|
|
@@ -485,13 +485,13 @@ const W = e.object({
|
|
|
485
485
|
nonce: e.string().optional(),
|
|
486
486
|
scope: e.string().optional(),
|
|
487
487
|
prompt: e.string().optional(),
|
|
488
|
-
code_challenge_method: e.nativeEnum(
|
|
488
|
+
code_challenge_method: e.nativeEnum(O).optional(),
|
|
489
489
|
code_challenge: e.string().optional(),
|
|
490
490
|
username: e.string().optional(),
|
|
491
491
|
ui_locales: e.string().optional(),
|
|
492
492
|
// The following fields are not available in Auth0
|
|
493
493
|
vendor_id: e.string().optional()
|
|
494
|
-
}),
|
|
494
|
+
}), dt = e.object({
|
|
495
495
|
colors: e.object({
|
|
496
496
|
primary: e.string(),
|
|
497
497
|
page_background: e.object({
|
|
@@ -507,7 +507,7 @@ const W = e.object({
|
|
|
507
507
|
font: e.object({
|
|
508
508
|
url: e.string()
|
|
509
509
|
}).optional()
|
|
510
|
-
}),
|
|
510
|
+
}), ae = e.object({
|
|
511
511
|
kid: e.string().optional(),
|
|
512
512
|
team_id: e.string().optional(),
|
|
513
513
|
realms: e.string().optional(),
|
|
@@ -527,23 +527,23 @@ const W = e.object({
|
|
|
527
527
|
twilio_sid: e.string().optional(),
|
|
528
528
|
twilio_token: e.string().optional(),
|
|
529
529
|
icon_url: e.string().optional()
|
|
530
|
-
}),
|
|
530
|
+
}), re = e.object({
|
|
531
531
|
id: e.string().optional(),
|
|
532
532
|
name: e.string(),
|
|
533
533
|
display_name: e.string().optional(),
|
|
534
534
|
strategy: e.string(),
|
|
535
|
-
options:
|
|
535
|
+
options: ae.default({}),
|
|
536
536
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
537
537
|
response_type: e.custom().optional(),
|
|
538
538
|
response_mode: e.custom().optional(),
|
|
539
539
|
is_domain_connection: e.boolean().optional(),
|
|
540
540
|
show_as_button: e.boolean().optional(),
|
|
541
541
|
metadata: e.record(e.any()).optional()
|
|
542
|
-
}),
|
|
542
|
+
}), se = e.object({
|
|
543
543
|
id: e.string(),
|
|
544
544
|
created_at: e.string().transform((t) => t === null ? "" : t),
|
|
545
545
|
updated_at: e.string().transform((t) => t === null ? "" : t)
|
|
546
|
-
}).extend(
|
|
546
|
+
}).extend(re.shape), le = e.object({
|
|
547
547
|
id: e.string().optional(),
|
|
548
548
|
// Basic settings
|
|
549
549
|
audience: e.string(),
|
|
@@ -663,25 +663,25 @@ const W = e.object({
|
|
|
663
663
|
// Authorization settings
|
|
664
664
|
pushed_authorization_requests_supported: e.boolean().optional(),
|
|
665
665
|
authorization_response_iss_parameter_supported: e.boolean().optional()
|
|
666
|
-
}),
|
|
666
|
+
}), ce = e.object({
|
|
667
667
|
created_at: e.string().nullable().transform((t) => t ?? ""),
|
|
668
668
|
updated_at: e.string().nullable().transform((t) => t ?? ""),
|
|
669
|
-
...
|
|
669
|
+
...le.shape,
|
|
670
670
|
id: e.string()
|
|
671
671
|
});
|
|
672
672
|
e.object({
|
|
673
|
-
...
|
|
674
|
-
tenant:
|
|
675
|
-
connections: e.array(
|
|
673
|
+
...G.shape,
|
|
674
|
+
tenant: ce,
|
|
675
|
+
connections: e.array(se)
|
|
676
676
|
});
|
|
677
|
-
const
|
|
677
|
+
const _e = e.enum([
|
|
678
678
|
"password_reset",
|
|
679
679
|
"email_verification",
|
|
680
680
|
"otp",
|
|
681
681
|
"authorization_code",
|
|
682
682
|
"oauth2_state",
|
|
683
683
|
"ticket"
|
|
684
|
-
]),
|
|
684
|
+
]), pe = e.object({
|
|
685
685
|
code_id: e.string().openapi({
|
|
686
686
|
description: "The code that will be used in for instance an email verification flow"
|
|
687
687
|
}),
|
|
@@ -691,7 +691,7 @@ const J = e.enum([
|
|
|
691
691
|
connection_id: e.string().optional().openapi({
|
|
692
692
|
description: "The connection that the code is connected to"
|
|
693
693
|
}),
|
|
694
|
-
code_type:
|
|
694
|
+
code_type: _e,
|
|
695
695
|
code_verifier: e.string().optional().openapi({
|
|
696
696
|
description: "The code verifier used in PKCE in outbound flows"
|
|
697
697
|
}),
|
|
@@ -713,10 +713,10 @@ const J = e.enum([
|
|
|
713
713
|
expires_at: e.string(),
|
|
714
714
|
used_at: e.string().optional(),
|
|
715
715
|
user_id: e.string().optional()
|
|
716
|
-
}),
|
|
717
|
-
...
|
|
716
|
+
}), gt = e.object({
|
|
717
|
+
...pe.shape,
|
|
718
718
|
created_at: e.string()
|
|
719
|
-
}),
|
|
719
|
+
}), de = e.object({
|
|
720
720
|
domain: e.string(),
|
|
721
721
|
custom_domain_id: e.string().optional(),
|
|
722
722
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -730,23 +730,23 @@ const J = e.enum([
|
|
|
730
730
|
"null"
|
|
731
731
|
]).optional(),
|
|
732
732
|
domain_metadata: e.record(e.string().max(255)).optional()
|
|
733
|
-
}),
|
|
733
|
+
}), ge = e.object({
|
|
734
734
|
name: e.literal("txt"),
|
|
735
735
|
record: e.string(),
|
|
736
736
|
domain: e.string()
|
|
737
|
-
}),
|
|
738
|
-
|
|
737
|
+
}), ue = e.object({
|
|
738
|
+
...de.shape,
|
|
739
739
|
custom_domain_id: e.string(),
|
|
740
740
|
primary: e.boolean(),
|
|
741
741
|
status: e.enum(["disabled", "pending", "pending_verification", "ready"]),
|
|
742
742
|
origin_domain_name: e.string().optional(),
|
|
743
743
|
verification: e.object({
|
|
744
|
-
methods: e.array(
|
|
744
|
+
methods: e.array(ge)
|
|
745
745
|
}).optional(),
|
|
746
746
|
tls_policy: e.string().optional()
|
|
747
|
-
}),
|
|
747
|
+
}), ut = ue.extend({
|
|
748
748
|
tenant_id: e.string()
|
|
749
|
-
}),
|
|
749
|
+
}), mt = e.object({
|
|
750
750
|
id: e.string(),
|
|
751
751
|
type: e.literal("submit"),
|
|
752
752
|
label: e.string(),
|
|
@@ -755,58 +755,58 @@ const J = e.enum([
|
|
|
755
755
|
order: e.number().optional(),
|
|
756
756
|
visible: e.boolean().optional().default(!0),
|
|
757
757
|
customizations: e.record(e.string(), e.any()).optional()
|
|
758
|
-
}),
|
|
758
|
+
}), y = e.object({
|
|
759
759
|
id: e.string(),
|
|
760
760
|
order: e.number().optional(),
|
|
761
761
|
visible: e.boolean().optional().default(!0)
|
|
762
|
-
}),
|
|
762
|
+
}), f = y.extend({
|
|
763
763
|
category: e.literal("BLOCK").optional()
|
|
764
|
-
}),
|
|
764
|
+
}), l = y.extend({
|
|
765
765
|
category: e.literal("FIELD").optional(),
|
|
766
766
|
required: e.boolean().optional(),
|
|
767
767
|
sensitive: e.boolean().optional()
|
|
768
|
-
}),
|
|
769
|
-
|
|
768
|
+
}), me = e.discriminatedUnion("type", [
|
|
769
|
+
f.extend({
|
|
770
770
|
type: e.literal("RICH_TEXT"),
|
|
771
771
|
config: e.object({
|
|
772
772
|
content: e.string()
|
|
773
773
|
})
|
|
774
774
|
}),
|
|
775
|
-
|
|
775
|
+
l.omit({ sensitive: !0 }).extend({
|
|
776
776
|
type: e.literal("LEGAL"),
|
|
777
777
|
config: e.object({
|
|
778
778
|
text: e.string(),
|
|
779
779
|
html: e.boolean().optional()
|
|
780
780
|
})
|
|
781
781
|
}),
|
|
782
|
-
|
|
782
|
+
l.extend({
|
|
783
783
|
type: e.literal("TEXT"),
|
|
784
784
|
config: e.object({
|
|
785
785
|
placeholder: e.string().optional(),
|
|
786
786
|
multiline: e.boolean().optional()
|
|
787
787
|
})
|
|
788
788
|
}),
|
|
789
|
-
|
|
789
|
+
f.extend({
|
|
790
790
|
type: e.literal("NEXT_BUTTON"),
|
|
791
791
|
config: e.object({
|
|
792
792
|
text: e.string().optional()
|
|
793
793
|
})
|
|
794
794
|
}),
|
|
795
|
-
|
|
795
|
+
l.extend({
|
|
796
796
|
type: e.literal("EMAIL"),
|
|
797
797
|
config: e.object({
|
|
798
798
|
label: e.string().optional(),
|
|
799
799
|
placeholder: e.string().optional()
|
|
800
800
|
})
|
|
801
801
|
}),
|
|
802
|
-
|
|
802
|
+
l.extend({
|
|
803
803
|
type: e.literal("NUMBER"),
|
|
804
804
|
config: e.object({
|
|
805
805
|
label: e.string().optional(),
|
|
806
806
|
placeholder: e.string().optional()
|
|
807
807
|
})
|
|
808
808
|
}),
|
|
809
|
-
|
|
809
|
+
l.extend({
|
|
810
810
|
type: e.literal("PHONE"),
|
|
811
811
|
config: e.object({
|
|
812
812
|
label: e.string().optional(),
|
|
@@ -814,7 +814,7 @@ const J = e.enum([
|
|
|
814
814
|
})
|
|
815
815
|
})
|
|
816
816
|
// Add more component types as needed
|
|
817
|
-
]),
|
|
817
|
+
]), he = e.object({
|
|
818
818
|
name: e.string().openapi({
|
|
819
819
|
description: "The name of the form"
|
|
820
820
|
}),
|
|
@@ -865,7 +865,7 @@ const J = e.enum([
|
|
|
865
865
|
coordinates: e.object({ x: e.number(), y: e.number() }),
|
|
866
866
|
alias: e.string().min(1).max(150).optional(),
|
|
867
867
|
config: e.object({
|
|
868
|
-
components: e.array(
|
|
868
|
+
components: e.array(me),
|
|
869
869
|
next_node: e.string().optional()
|
|
870
870
|
})
|
|
871
871
|
})
|
|
@@ -888,11 +888,11 @@ const J = e.enum([
|
|
|
888
888
|
style: e.object({ css: e.string().optional() }).optional()
|
|
889
889
|
}).openapi({
|
|
890
890
|
description: "Schema for flow-based forms (matches new JSON structure)"
|
|
891
|
-
}),
|
|
892
|
-
...
|
|
893
|
-
...
|
|
891
|
+
}), ht = e.object({
|
|
892
|
+
...r.shape,
|
|
893
|
+
...he.shape,
|
|
894
894
|
id: e.string()
|
|
895
|
-
}),
|
|
895
|
+
}), T = e.enum([
|
|
896
896
|
"pre-user-registration",
|
|
897
897
|
"post-user-registration",
|
|
898
898
|
"post-user-login",
|
|
@@ -900,49 +900,49 @@ const J = e.enum([
|
|
|
900
900
|
"pre-user-deletion",
|
|
901
901
|
"post-user-deletion"
|
|
902
902
|
// Potentially other triggers specific to webhooks in the future
|
|
903
|
-
]),
|
|
903
|
+
]), N = e.enum([
|
|
904
904
|
"pre-user-registration",
|
|
905
905
|
"post-user-registration",
|
|
906
906
|
"post-user-login",
|
|
907
907
|
"validate-registration-username",
|
|
908
908
|
"pre-user-deletion",
|
|
909
909
|
"post-user-deletion"
|
|
910
|
-
]),
|
|
910
|
+
]), g = {
|
|
911
911
|
enabled: e.boolean().default(!1),
|
|
912
912
|
synchronous: e.boolean().default(!1),
|
|
913
913
|
priority: e.number().optional(),
|
|
914
914
|
hook_id: e.string().optional()
|
|
915
|
-
},
|
|
916
|
-
...
|
|
917
|
-
trigger_id:
|
|
915
|
+
}, be = e.object({
|
|
916
|
+
...g,
|
|
917
|
+
trigger_id: T,
|
|
918
918
|
url: e.string()
|
|
919
|
-
}),
|
|
920
|
-
...
|
|
921
|
-
trigger_id:
|
|
919
|
+
}), fe = e.object({
|
|
920
|
+
...g,
|
|
921
|
+
trigger_id: N,
|
|
922
922
|
form_id: e.string()
|
|
923
|
-
}),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
]),
|
|
927
|
-
...
|
|
928
|
-
trigger_id:
|
|
929
|
-
...
|
|
923
|
+
}), bt = e.union([
|
|
924
|
+
be,
|
|
925
|
+
fe
|
|
926
|
+
]), Ee = e.object({
|
|
927
|
+
...g,
|
|
928
|
+
trigger_id: T,
|
|
929
|
+
...r.shape,
|
|
930
930
|
hook_id: e.string(),
|
|
931
931
|
url: e.string()
|
|
932
|
-
}),
|
|
933
|
-
...
|
|
934
|
-
trigger_id:
|
|
935
|
-
...
|
|
932
|
+
}), Se = e.object({
|
|
933
|
+
...g,
|
|
934
|
+
trigger_id: N,
|
|
935
|
+
...r.shape,
|
|
936
936
|
hook_id: e.string(),
|
|
937
937
|
form_id: e.string()
|
|
938
|
-
}),
|
|
938
|
+
}), ft = e.union([Ee, Se]), Ae = e.object({
|
|
939
939
|
name: e.string().optional()
|
|
940
|
-
}),
|
|
940
|
+
}), Ie = e.object({
|
|
941
941
|
email: e.string().optional()
|
|
942
|
-
}),
|
|
942
|
+
}), Ce = e.object({
|
|
943
943
|
organization_id: e.string().max(50),
|
|
944
|
-
inviter:
|
|
945
|
-
invitee:
|
|
944
|
+
inviter: Ae,
|
|
945
|
+
invitee: Ie,
|
|
946
946
|
invitation_url: e.string().url(),
|
|
947
947
|
client_id: e.string(),
|
|
948
948
|
connection_id: e.string().optional(),
|
|
@@ -951,13 +951,13 @@ const J = e.enum([
|
|
|
951
951
|
ttl_sec: e.number().int().max(2592e3).default(604800).optional(),
|
|
952
952
|
roles: e.array(e.string()).default([]).optional(),
|
|
953
953
|
send_invitation_email: e.boolean().default(!0).optional()
|
|
954
|
-
}),
|
|
954
|
+
}), Et = e.object({
|
|
955
955
|
id: e.string(),
|
|
956
956
|
organization_id: e.string().max(50),
|
|
957
957
|
created_at: e.string().datetime(),
|
|
958
958
|
expires_at: e.string().datetime(),
|
|
959
959
|
ticket_id: e.string().optional()
|
|
960
|
-
}).extend(
|
|
960
|
+
}).extend(Ce.shape), Oe = e.object({
|
|
961
961
|
alg: e.enum([
|
|
962
962
|
"RS256",
|
|
963
963
|
"RS384",
|
|
@@ -976,9 +976,9 @@ const J = e.enum([
|
|
|
976
976
|
x5t: e.string().optional(),
|
|
977
977
|
x5c: e.array(e.string()).optional(),
|
|
978
978
|
use: e.enum(["sig", "enc"]).optional()
|
|
979
|
-
}),
|
|
980
|
-
keys: e.array(
|
|
981
|
-
}),
|
|
979
|
+
}), St = e.object({
|
|
980
|
+
keys: e.array(Oe)
|
|
981
|
+
}), At = e.object({
|
|
982
982
|
issuer: e.string(),
|
|
983
983
|
authorization_endpoint: e.string(),
|
|
984
984
|
token_endpoint: e.string(),
|
|
@@ -999,10 +999,10 @@ const J = e.enum([
|
|
|
999
999
|
request_uri_parameter_supported: e.boolean(),
|
|
1000
1000
|
request_parameter_supported: e.boolean(),
|
|
1001
1001
|
token_endpoint_auth_signing_alg_values_supported: e.array(e.string())
|
|
1002
|
-
}),
|
|
1002
|
+
}), ye = e.object({
|
|
1003
1003
|
csrf_token: e.string(),
|
|
1004
1004
|
auth0Client: e.string().optional(),
|
|
1005
|
-
authParams:
|
|
1005
|
+
authParams: ie,
|
|
1006
1006
|
expires_at: e.string(),
|
|
1007
1007
|
deleted_at: e.string().optional(),
|
|
1008
1008
|
ip: e.string().optional(),
|
|
@@ -1012,14 +1012,14 @@ const J = e.enum([
|
|
|
1012
1012
|
login_completed: e.boolean().optional().default(!1)
|
|
1013
1013
|
}).openapi({
|
|
1014
1014
|
description: "This represents a login sesion"
|
|
1015
|
-
}),
|
|
1016
|
-
...
|
|
1015
|
+
}), It = e.object({
|
|
1016
|
+
...ye.shape,
|
|
1017
1017
|
id: e.string().openapi({
|
|
1018
1018
|
description: "This is is used as the state in the universal login"
|
|
1019
1019
|
}),
|
|
1020
1020
|
created_at: e.string(),
|
|
1021
1021
|
updated_at: e.string()
|
|
1022
|
-
}),
|
|
1022
|
+
}), Te = {
|
|
1023
1023
|
// Network & System
|
|
1024
1024
|
ACLS_SUMMARY: "acls_summary",
|
|
1025
1025
|
ACTIONS_EXECUTION_FAILED: "actions_execution_failed",
|
|
@@ -1186,24 +1186,24 @@ const J = e.enum([
|
|
|
1186
1186
|
WARNING_DURING_LOGIN: "w",
|
|
1187
1187
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
1188
1188
|
WARNING_USER_MANAGEMENT: "wum"
|
|
1189
|
-
},
|
|
1190
|
-
(t) => Object.values(
|
|
1189
|
+
}, Ne = e.string().refine(
|
|
1190
|
+
(t) => Object.values(Te).includes(t),
|
|
1191
1191
|
{ message: "Invalid log type" }
|
|
1192
|
-
),
|
|
1192
|
+
), Le = e.object({
|
|
1193
1193
|
name: e.string(),
|
|
1194
1194
|
version: e.string(),
|
|
1195
1195
|
env: e.object({
|
|
1196
1196
|
node: e.string().optional()
|
|
1197
1197
|
}).optional()
|
|
1198
|
-
}),
|
|
1198
|
+
}), Re = e.object({
|
|
1199
1199
|
country_code: e.string().length(2),
|
|
1200
1200
|
city_name: e.string(),
|
|
1201
1201
|
latitude: e.string(),
|
|
1202
1202
|
longitude: e.string(),
|
|
1203
1203
|
time_zone: e.string(),
|
|
1204
1204
|
continent_code: e.string()
|
|
1205
|
-
}),
|
|
1206
|
-
type:
|
|
1205
|
+
}), De = e.object({
|
|
1206
|
+
type: Ne,
|
|
1207
1207
|
date: e.string(),
|
|
1208
1208
|
description: e.string().optional(),
|
|
1209
1209
|
ip: e.string().optional(),
|
|
@@ -1222,30 +1222,30 @@ const J = e.enum([
|
|
|
1222
1222
|
strategy: e.string().optional(),
|
|
1223
1223
|
strategy_type: e.string().optional(),
|
|
1224
1224
|
hostname: e.string().optional(),
|
|
1225
|
-
auth0_client:
|
|
1225
|
+
auth0_client: Le.optional(),
|
|
1226
1226
|
log_id: e.string().optional(),
|
|
1227
|
-
location_info:
|
|
1228
|
-
}),
|
|
1229
|
-
...
|
|
1227
|
+
location_info: Re.optional()
|
|
1228
|
+
}), Ct = e.object({
|
|
1229
|
+
...De.shape,
|
|
1230
1230
|
log_id: e.string()
|
|
1231
|
-
}),
|
|
1231
|
+
}), we = e.object({
|
|
1232
1232
|
id: e.string().optional(),
|
|
1233
1233
|
user_id: e.string(),
|
|
1234
1234
|
password: e.string(),
|
|
1235
1235
|
algorithm: e.enum(["bcrypt", "argon2id"]).default("argon2id"),
|
|
1236
1236
|
is_current: e.boolean().default(!0)
|
|
1237
|
-
}),
|
|
1237
|
+
}), Ot = we.extend({
|
|
1238
1238
|
id: e.string(),
|
|
1239
1239
|
created_at: e.string(),
|
|
1240
1240
|
updated_at: e.string()
|
|
1241
|
-
}),
|
|
1241
|
+
}), L = e.object({
|
|
1242
1242
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
1243
1243
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
1244
1244
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
1245
1245
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
1246
1246
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
1247
1247
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
1248
|
-
}),
|
|
1248
|
+
}), je = e.object({
|
|
1249
1249
|
id: e.string(),
|
|
1250
1250
|
revoked_at: e.string().optional(),
|
|
1251
1251
|
used_at: e.string().optional(),
|
|
@@ -1253,17 +1253,17 @@ const J = e.enum([
|
|
|
1253
1253
|
expires_at: e.string().optional(),
|
|
1254
1254
|
login_session_id: e.string(),
|
|
1255
1255
|
idle_expires_at: e.string().optional(),
|
|
1256
|
-
device:
|
|
1256
|
+
device: L.describe(
|
|
1257
1257
|
"Metadata related to the device used in the session"
|
|
1258
1258
|
),
|
|
1259
1259
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
1260
|
-
}),
|
|
1260
|
+
}), yt = e.object({
|
|
1261
1261
|
created_at: e.string(),
|
|
1262
1262
|
updated_at: e.string(),
|
|
1263
1263
|
authenticated_at: e.string(),
|
|
1264
1264
|
last_interaction_at: e.string(),
|
|
1265
|
-
...
|
|
1266
|
-
}),
|
|
1265
|
+
...je.shape
|
|
1266
|
+
}), Tt = e.object({
|
|
1267
1267
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
1268
1268
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
1269
1269
|
fingerprint: e.string().openapi({ description: "The cert fingerprint" }),
|
|
@@ -1289,8 +1289,8 @@ const J = e.enum([
|
|
|
1289
1289
|
description: "The type of the signing key"
|
|
1290
1290
|
})
|
|
1291
1291
|
});
|
|
1292
|
-
var
|
|
1293
|
-
const
|
|
1292
|
+
var ke = /* @__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))(ke || {});
|
|
1293
|
+
const Nt = e.object({
|
|
1294
1294
|
access_token: e.string(),
|
|
1295
1295
|
id_token: e.string().optional(),
|
|
1296
1296
|
scope: e.string().optional(),
|
|
@@ -1303,7 +1303,7 @@ e.object({
|
|
|
1303
1303
|
code: e.string(),
|
|
1304
1304
|
state: e.string().optional()
|
|
1305
1305
|
});
|
|
1306
|
-
const
|
|
1306
|
+
const Ue = e.object({
|
|
1307
1307
|
button_border_radius: e.number(),
|
|
1308
1308
|
button_border_weight: e.number(),
|
|
1309
1309
|
buttons_style: e.enum(["pill", "rounded", "sharp"]),
|
|
@@ -1313,7 +1313,7 @@ const Ae = e.object({
|
|
|
1313
1313
|
show_widget_shadow: e.boolean(),
|
|
1314
1314
|
widget_border_weight: e.number(),
|
|
1315
1315
|
widget_corner_radius: e.number()
|
|
1316
|
-
}),
|
|
1316
|
+
}), Fe = e.object({
|
|
1317
1317
|
base_focus_color: e.string(),
|
|
1318
1318
|
base_hover_color: e.string(),
|
|
1319
1319
|
body_text: e.string(),
|
|
@@ -1333,44 +1333,44 @@ const Ae = e.object({
|
|
|
1333
1333
|
success: e.string(),
|
|
1334
1334
|
widget_background: e.string(),
|
|
1335
1335
|
widget_border: e.string()
|
|
1336
|
-
}),
|
|
1336
|
+
}), a = e.object({
|
|
1337
1337
|
bold: e.boolean(),
|
|
1338
1338
|
size: e.number()
|
|
1339
|
-
}),
|
|
1340
|
-
body_text:
|
|
1341
|
-
buttons_text:
|
|
1339
|
+
}), ve = e.object({
|
|
1340
|
+
body_text: a,
|
|
1341
|
+
buttons_text: a,
|
|
1342
1342
|
font_url: e.string(),
|
|
1343
|
-
input_labels:
|
|
1344
|
-
links:
|
|
1343
|
+
input_labels: a,
|
|
1344
|
+
links: a,
|
|
1345
1345
|
links_style: e.enum(["normal", "underlined"]),
|
|
1346
1346
|
reference_text_size: e.number(),
|
|
1347
|
-
subtitle:
|
|
1348
|
-
title:
|
|
1349
|
-
}),
|
|
1347
|
+
subtitle: a,
|
|
1348
|
+
title: a
|
|
1349
|
+
}), Pe = e.object({
|
|
1350
1350
|
background_color: e.string(),
|
|
1351
1351
|
background_image_url: e.string(),
|
|
1352
1352
|
page_layout: e.enum(["center", "left", "right"])
|
|
1353
|
-
}),
|
|
1353
|
+
}), xe = e.object({
|
|
1354
1354
|
header_text_alignment: e.enum(["center", "left", "right"]),
|
|
1355
1355
|
logo_height: e.number(),
|
|
1356
1356
|
logo_position: e.enum(["center", "left", "none", "right"]),
|
|
1357
1357
|
logo_url: e.string(),
|
|
1358
1358
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
1359
|
-
}),
|
|
1360
|
-
borders:
|
|
1361
|
-
colors:
|
|
1359
|
+
}), Me = e.object({
|
|
1360
|
+
borders: Ue,
|
|
1361
|
+
colors: Fe,
|
|
1362
1362
|
displayName: e.string(),
|
|
1363
|
-
fonts:
|
|
1364
|
-
page_background:
|
|
1365
|
-
widget:
|
|
1366
|
-
}),
|
|
1363
|
+
fonts: ve,
|
|
1364
|
+
page_background: Pe,
|
|
1365
|
+
widget: xe
|
|
1366
|
+
}), Lt = Me.extend({
|
|
1367
1367
|
themeId: e.string()
|
|
1368
|
-
}),
|
|
1368
|
+
}), Rt = e.object({
|
|
1369
1369
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
1370
1370
|
identifier_first: e.boolean().default(!0),
|
|
1371
1371
|
password_first: e.boolean().default(!1),
|
|
1372
1372
|
webauthn_platform_first_factor: e.boolean()
|
|
1373
|
-
}),
|
|
1373
|
+
}), Dt = e.object({
|
|
1374
1374
|
name: e.string(),
|
|
1375
1375
|
enabled: e.boolean().optional().default(!0),
|
|
1376
1376
|
default_from_address: e.string().optional(),
|
|
@@ -1400,7 +1400,7 @@ const Ae = e.object({
|
|
|
1400
1400
|
})
|
|
1401
1401
|
]),
|
|
1402
1402
|
settings: e.object({}).optional()
|
|
1403
|
-
}),
|
|
1403
|
+
}), He = e.object({
|
|
1404
1404
|
// The actual refresh token value (primary key).
|
|
1405
1405
|
id: e.string(),
|
|
1406
1406
|
// Link to the session record
|
|
@@ -1413,7 +1413,7 @@ const Ae = e.object({
|
|
|
1413
1413
|
idle_expires_at: e.string().optional(),
|
|
1414
1414
|
// When the token was last used.
|
|
1415
1415
|
last_exchanged_at: e.string().optional(),
|
|
1416
|
-
device:
|
|
1416
|
+
device: L,
|
|
1417
1417
|
resource_servers: e.array(
|
|
1418
1418
|
e.object({
|
|
1419
1419
|
audience: e.string(),
|
|
@@ -1421,21 +1421,21 @@ const Ae = e.object({
|
|
|
1421
1421
|
})
|
|
1422
1422
|
),
|
|
1423
1423
|
rotating: e.boolean()
|
|
1424
|
-
}),
|
|
1424
|
+
}), wt = e.object({
|
|
1425
1425
|
// When the refresh token record was created.
|
|
1426
1426
|
created_at: e.string(),
|
|
1427
1427
|
// Spread in the rest of the refresh token properties.
|
|
1428
|
-
...
|
|
1429
|
-
}),
|
|
1428
|
+
...He.shape
|
|
1429
|
+
}), jt = e.object({
|
|
1430
1430
|
to: e.string(),
|
|
1431
1431
|
message: e.string()
|
|
1432
|
-
}),
|
|
1432
|
+
}), kt = e.object({
|
|
1433
1433
|
name: e.string(),
|
|
1434
1434
|
options: e.object({})
|
|
1435
|
-
}),
|
|
1435
|
+
}), Ge = e.object({
|
|
1436
1436
|
value: e.string(),
|
|
1437
1437
|
description: e.string().optional()
|
|
1438
|
-
}),
|
|
1438
|
+
}), Ke = e.object({
|
|
1439
1439
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
1440
1440
|
enforce_policies: e.boolean().optional(),
|
|
1441
1441
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -1445,10 +1445,10 @@ const Ae = e.object({
|
|
|
1445
1445
|
mtls: e.object({
|
|
1446
1446
|
bound_access_tokens: e.boolean().optional()
|
|
1447
1447
|
}).optional()
|
|
1448
|
-
}),
|
|
1448
|
+
}), Be = e.object({
|
|
1449
1449
|
name: e.string(),
|
|
1450
1450
|
identifier: e.string(),
|
|
1451
|
-
scopes: e.array(
|
|
1451
|
+
scopes: e.array(Ge).optional(),
|
|
1452
1452
|
signing_alg: e.string().optional(),
|
|
1453
1453
|
signing_secret: e.string().optional(),
|
|
1454
1454
|
token_lifetime: e.number().optional(),
|
|
@@ -1456,29 +1456,29 @@ const Ae = e.object({
|
|
|
1456
1456
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
1457
1457
|
allow_offline_access: e.boolean().optional(),
|
|
1458
1458
|
verificationKey: e.string().optional(),
|
|
1459
|
-
options:
|
|
1460
|
-
}),
|
|
1459
|
+
options: Ke.optional()
|
|
1460
|
+
}), ze = e.object({
|
|
1461
1461
|
id: e.string().optional(),
|
|
1462
|
-
...
|
|
1462
|
+
...Be.shape,
|
|
1463
1463
|
created_at: e.string().optional(),
|
|
1464
1464
|
updated_at: e.string().optional()
|
|
1465
|
-
}),
|
|
1465
|
+
}), Ut = e.array(ze), We = e.object({
|
|
1466
1466
|
role_id: e.string(),
|
|
1467
1467
|
resource_server_identifier: e.string(),
|
|
1468
1468
|
permission_name: e.string()
|
|
1469
|
-
}),
|
|
1470
|
-
...
|
|
1469
|
+
}), Xe = e.object({
|
|
1470
|
+
...We.shape,
|
|
1471
1471
|
created_at: e.string()
|
|
1472
|
-
}),
|
|
1472
|
+
}), Ft = e.array(Xe), Ve = e.object({
|
|
1473
1473
|
user_id: e.string(),
|
|
1474
1474
|
resource_server_identifier: e.string(),
|
|
1475
1475
|
permission_name: e.string(),
|
|
1476
1476
|
organization_id: e.string().optional()
|
|
1477
|
-
}),
|
|
1478
|
-
...
|
|
1477
|
+
}), qe = e.object({
|
|
1478
|
+
...Ve.shape,
|
|
1479
1479
|
tenant_id: e.string(),
|
|
1480
1480
|
created_at: e.string().optional()
|
|
1481
|
-
}),
|
|
1481
|
+
}), vt = e.array(qe), Ye = e.object({
|
|
1482
1482
|
user_id: e.string(),
|
|
1483
1483
|
resource_server_identifier: e.string(),
|
|
1484
1484
|
resource_server_name: e.string(),
|
|
@@ -1486,31 +1486,31 @@ const Ae = e.object({
|
|
|
1486
1486
|
description: e.string().nullable().optional(),
|
|
1487
1487
|
created_at: e.string().optional(),
|
|
1488
1488
|
organization_id: e.string().optional()
|
|
1489
|
-
}),
|
|
1490
|
-
|
|
1491
|
-
),
|
|
1489
|
+
}), Pt = e.array(
|
|
1490
|
+
Ye
|
|
1491
|
+
), Qe = e.object({
|
|
1492
1492
|
user_id: e.string(),
|
|
1493
1493
|
role_id: e.string(),
|
|
1494
1494
|
organization_id: e.string().optional()
|
|
1495
|
-
}),
|
|
1496
|
-
...
|
|
1495
|
+
}), Je = e.object({
|
|
1496
|
+
...Qe.shape,
|
|
1497
1497
|
tenant_id: e.string(),
|
|
1498
1498
|
created_at: e.string().optional()
|
|
1499
|
-
}),
|
|
1499
|
+
}), xt = e.array(Je), Ze = e.object({
|
|
1500
1500
|
name: e.string().min(1).max(50).openapi({
|
|
1501
1501
|
description: "The name of the role. Cannot include '<' or '>'"
|
|
1502
1502
|
}),
|
|
1503
1503
|
description: e.string().max(255).optional().openapi({
|
|
1504
1504
|
description: "The description of the role"
|
|
1505
1505
|
})
|
|
1506
|
-
}),
|
|
1506
|
+
}), $e = e.object({
|
|
1507
1507
|
id: e.string().openapi({
|
|
1508
1508
|
description: "The unique identifier of the role"
|
|
1509
1509
|
}),
|
|
1510
|
-
...
|
|
1510
|
+
...Ze.shape,
|
|
1511
1511
|
created_at: e.string().optional(),
|
|
1512
1512
|
updated_at: e.string().optional()
|
|
1513
|
-
}),
|
|
1513
|
+
}), Mt = e.array($e), et = e.object({
|
|
1514
1514
|
logo_url: e.string().optional().openapi({
|
|
1515
1515
|
description: "URL of the organization's logo"
|
|
1516
1516
|
}),
|
|
@@ -1522,7 +1522,7 @@ const Ae = e.object({
|
|
|
1522
1522
|
description: "Page background color in hex format (e.g., #FFFFFF)"
|
|
1523
1523
|
})
|
|
1524
1524
|
}).optional()
|
|
1525
|
-
}).optional(),
|
|
1525
|
+
}).optional(), tt = e.object({
|
|
1526
1526
|
connection_id: e.string().openapi({
|
|
1527
1527
|
description: "ID of the connection"
|
|
1528
1528
|
}),
|
|
@@ -1535,7 +1535,7 @@ const Ae = e.object({
|
|
|
1535
1535
|
is_signup_enabled: e.boolean().default(!0).openapi({
|
|
1536
1536
|
description: "Whether signup is enabled for this connection"
|
|
1537
1537
|
})
|
|
1538
|
-
}),
|
|
1538
|
+
}), ot = e.object({
|
|
1539
1539
|
client_credentials: e.object({
|
|
1540
1540
|
enforce: e.boolean().default(!1).openapi({
|
|
1541
1541
|
description: "Whether to enforce token quota limits"
|
|
@@ -1547,7 +1547,7 @@ const Ae = e.object({
|
|
|
1547
1547
|
description: "Maximum tokens per hour (0 = unlimited)"
|
|
1548
1548
|
})
|
|
1549
1549
|
}).optional()
|
|
1550
|
-
}).optional(),
|
|
1550
|
+
}).optional(), nt = e.object({
|
|
1551
1551
|
id: e.string().optional(),
|
|
1552
1552
|
name: e.string().min(1).openapi({
|
|
1553
1553
|
description: "The name of the organization"
|
|
@@ -1555,30 +1555,30 @@ const Ae = e.object({
|
|
|
1555
1555
|
display_name: e.string().optional().openapi({
|
|
1556
1556
|
description: "The display name of the organization"
|
|
1557
1557
|
}),
|
|
1558
|
-
branding:
|
|
1558
|
+
branding: et,
|
|
1559
1559
|
metadata: e.record(e.any()).default({}).optional().openapi({
|
|
1560
1560
|
description: "Custom metadata for the organization"
|
|
1561
1561
|
}),
|
|
1562
|
-
enabled_connections: e.array(
|
|
1562
|
+
enabled_connections: e.array(tt).default([]).optional().openapi({
|
|
1563
1563
|
description: "List of enabled connections for the organization"
|
|
1564
1564
|
}),
|
|
1565
|
-
token_quota:
|
|
1566
|
-
}),
|
|
1567
|
-
...
|
|
1568
|
-
...
|
|
1565
|
+
token_quota: ot
|
|
1566
|
+
}), Ht = e.object({
|
|
1567
|
+
...nt.shape,
|
|
1568
|
+
...r.shape,
|
|
1569
1569
|
id: e.string()
|
|
1570
|
-
}),
|
|
1570
|
+
}), it = e.object({
|
|
1571
1571
|
user_id: e.string().openapi({
|
|
1572
1572
|
description: "ID of the user"
|
|
1573
1573
|
}),
|
|
1574
1574
|
organization_id: e.string().openapi({
|
|
1575
1575
|
description: "ID of the organization"
|
|
1576
1576
|
})
|
|
1577
|
-
}),
|
|
1578
|
-
...
|
|
1579
|
-
...
|
|
1577
|
+
}), Gt = e.object({
|
|
1578
|
+
...it.shape,
|
|
1579
|
+
...r.shape,
|
|
1580
1580
|
id: e.string()
|
|
1581
|
-
}),
|
|
1581
|
+
}), Kt = e.object({
|
|
1582
1582
|
// Session settings
|
|
1583
1583
|
idle_session_lifetime: e.number().optional(),
|
|
1584
1584
|
session_lifetime: e.number().optional(),
|
|
@@ -1648,129 +1648,175 @@ const Ae = e.object({
|
|
|
1648
1648
|
oidc_logout_prompt_enabled: e.boolean().optional()
|
|
1649
1649
|
}).optional()
|
|
1650
1650
|
});
|
|
1651
|
-
function
|
|
1652
|
-
const [
|
|
1653
|
-
if (!
|
|
1651
|
+
function Bt(t) {
|
|
1652
|
+
const [n, i] = t.split("|");
|
|
1653
|
+
if (!n || !i)
|
|
1654
1654
|
throw new Error(`Invalid user_id: ${t}`);
|
|
1655
|
-
return { connection:
|
|
1655
|
+
return { connection: n, id: i };
|
|
1656
|
+
}
|
|
1657
|
+
function zt(t) {
|
|
1658
|
+
const {
|
|
1659
|
+
primary: n,
|
|
1660
|
+
secondaries: i,
|
|
1661
|
+
syncMethods: R = ["create", "update", "remove", "delete", "set"]
|
|
1662
|
+
} = t, D = {
|
|
1663
|
+
get(_, o) {
|
|
1664
|
+
if (typeof o == "symbol")
|
|
1665
|
+
return _[o];
|
|
1666
|
+
const p = _[o];
|
|
1667
|
+
return typeof p != "function" ? p : R.includes(o) ? async (...u) => {
|
|
1668
|
+
const w = await p.apply(_, u), m = [];
|
|
1669
|
+
for (const s of i) {
|
|
1670
|
+
const h = s.adapter[o];
|
|
1671
|
+
if (typeof h != "function")
|
|
1672
|
+
continue;
|
|
1673
|
+
const j = (async () => {
|
|
1674
|
+
try {
|
|
1675
|
+
await h.apply(s.adapter, u);
|
|
1676
|
+
} catch (b) {
|
|
1677
|
+
try {
|
|
1678
|
+
s.onError ? s.onError(b, o, u) : console.error(
|
|
1679
|
+
`Passthrough adapter: secondary write failed for ${o}:`,
|
|
1680
|
+
b
|
|
1681
|
+
);
|
|
1682
|
+
} catch (k) {
|
|
1683
|
+
console.error(
|
|
1684
|
+
`Passthrough adapter: onError handler threw for ${o}:`,
|
|
1685
|
+
k
|
|
1686
|
+
);
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
})();
|
|
1690
|
+
s.blocking && m.push(j);
|
|
1691
|
+
}
|
|
1692
|
+
return m.length > 0 && await Promise.all(m), w;
|
|
1693
|
+
} : p.bind(_);
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
return new Proxy(n, D);
|
|
1697
|
+
}
|
|
1698
|
+
function Wt(t) {
|
|
1699
|
+
return t;
|
|
1656
1700
|
}
|
|
1657
1701
|
export {
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1702
|
+
Le as Auth0Client,
|
|
1703
|
+
C as AuthorizationResponseMode,
|
|
1704
|
+
I as AuthorizationResponseType,
|
|
1705
|
+
O as CodeChallengeMethod,
|
|
1706
|
+
A as ComponentCategory,
|
|
1707
|
+
S as ComponentType,
|
|
1708
|
+
ke as GrantType,
|
|
1709
|
+
Re as LocationInfo,
|
|
1710
|
+
Te as LogTypes,
|
|
1711
|
+
Q as NodeType,
|
|
1712
|
+
pt as auth0FlowInsertSchema,
|
|
1713
|
+
ne as auth0FlowSchema,
|
|
1714
|
+
rt as auth0QuerySchema,
|
|
1715
|
+
lt as auth0UserResponseSchema,
|
|
1716
|
+
ie as authParamsSchema,
|
|
1717
|
+
E as baseUserSchema,
|
|
1718
|
+
Ue as bordersSchema,
|
|
1719
|
+
dt as brandingSchema,
|
|
1720
|
+
W as buttonComponentSchema,
|
|
1721
|
+
K as clientGrantInsertSchema,
|
|
1722
|
+
_t as clientGrantListSchema,
|
|
1723
|
+
B as clientGrantSchema,
|
|
1724
|
+
H as clientInsertSchema,
|
|
1725
|
+
G as clientSchema,
|
|
1726
|
+
pe as codeInsertSchema,
|
|
1727
|
+
gt as codeSchema,
|
|
1728
|
+
_e as codeTypeSchema,
|
|
1729
|
+
Fe as colorsSchema,
|
|
1730
|
+
Y as componentSchema,
|
|
1731
|
+
re as connectionInsertSchema,
|
|
1732
|
+
ae as connectionOptionsSchema,
|
|
1733
|
+
se as connectionSchema,
|
|
1734
|
+
c as coordinatesSchema,
|
|
1735
|
+
zt as createPassthroughAdapter,
|
|
1736
|
+
Wt as createWriteOnlyAdapter,
|
|
1737
|
+
de as customDomainInsertSchema,
|
|
1738
|
+
ue as customDomainSchema,
|
|
1739
|
+
ut as customDomainWithTenantIdSchema,
|
|
1740
|
+
Dt as emailProviderSchema,
|
|
1741
|
+
oe as endingSchema,
|
|
1742
|
+
V as fieldComponentSchema,
|
|
1743
|
+
Z as flowNodeSchema,
|
|
1744
|
+
a as fontDetailsSchema,
|
|
1745
|
+
ve as fontsSchema,
|
|
1746
|
+
mt as formControlSchema,
|
|
1747
|
+
he as formInsertSchema,
|
|
1748
|
+
me as formNodeComponentDefinition,
|
|
1749
|
+
ht as formSchema,
|
|
1750
|
+
q as genericComponentSchema,
|
|
1751
|
+
$ as genericNodeSchema,
|
|
1752
|
+
bt as hookInsertSchema,
|
|
1753
|
+
ft as hookSchema,
|
|
1754
|
+
F as identitySchema,
|
|
1755
|
+
Ce as inviteInsertSchema,
|
|
1756
|
+
Et as inviteSchema,
|
|
1757
|
+
Ie as inviteeSchema,
|
|
1758
|
+
Ae as inviterSchema,
|
|
1759
|
+
St as jwksKeySchema,
|
|
1760
|
+
Oe as jwksSchema,
|
|
1761
|
+
X as legalComponentSchema,
|
|
1762
|
+
De as logInsertSchema,
|
|
1763
|
+
Ct as logSchema,
|
|
1764
|
+
ye as loginSessionInsertSchema,
|
|
1765
|
+
It as loginSessionSchema,
|
|
1766
|
+
ee as nodeSchema,
|
|
1767
|
+
At as openIDConfigurationSchema,
|
|
1768
|
+
et as organizationBrandingSchema,
|
|
1769
|
+
tt as organizationEnabledConnectionSchema,
|
|
1770
|
+
nt as organizationInsertSchema,
|
|
1771
|
+
Ht as organizationSchema,
|
|
1772
|
+
ot as organizationTokenQuotaSchema,
|
|
1773
|
+
Pe as pageBackgroundSchema,
|
|
1774
|
+
Bt as parseUserId,
|
|
1775
|
+
we as passwordInsertSchema,
|
|
1776
|
+
Ot as passwordSchema,
|
|
1777
|
+
U as profileDataSchema,
|
|
1778
|
+
Rt as promptSettingSchema,
|
|
1779
|
+
He as refreshTokenInsertSchema,
|
|
1780
|
+
wt as refreshTokenSchema,
|
|
1781
|
+
Be as resourceServerInsertSchema,
|
|
1782
|
+
Ut as resourceServerListSchema,
|
|
1783
|
+
Ke as resourceServerOptionsSchema,
|
|
1784
|
+
ze as resourceServerSchema,
|
|
1785
|
+
Ge as resourceServerScopeSchema,
|
|
1786
|
+
z as richTextComponentSchema,
|
|
1787
|
+
Ze as roleInsertSchema,
|
|
1788
|
+
Mt as roleListSchema,
|
|
1789
|
+
We as rolePermissionInsertSchema,
|
|
1790
|
+
Ft as rolePermissionListSchema,
|
|
1791
|
+
Xe as rolePermissionSchema,
|
|
1792
|
+
$e as roleSchema,
|
|
1793
|
+
je as sessionInsertSchema,
|
|
1794
|
+
yt as sessionSchema,
|
|
1795
|
+
Tt as signingKeySchema,
|
|
1796
|
+
kt as smsProviderSchema,
|
|
1797
|
+
jt as smsSendParamsSchema,
|
|
1798
|
+
te as startSchema,
|
|
1799
|
+
J as stepNodeSchema,
|
|
1800
|
+
le as tenantInsertSchema,
|
|
1801
|
+
ce as tenantSchema,
|
|
1802
|
+
Kt as tenantSettingsSchema,
|
|
1803
|
+
Me as themeInsertSchema,
|
|
1804
|
+
Lt as themeSchema,
|
|
1805
|
+
Nt as tokenResponseSchema,
|
|
1806
|
+
st as totalsSchema,
|
|
1807
|
+
v as userInsertSchema,
|
|
1808
|
+
it as userOrganizationInsertSchema,
|
|
1809
|
+
Gt as userOrganizationSchema,
|
|
1810
|
+
Ve as userPermissionInsertSchema,
|
|
1811
|
+
vt as userPermissionListSchema,
|
|
1812
|
+
qe as userPermissionSchema,
|
|
1813
|
+
Pt as userPermissionWithDetailsListSchema,
|
|
1814
|
+
Ye as userPermissionWithDetailsSchema,
|
|
1815
|
+
ct as userResponseSchema,
|
|
1816
|
+
Qe as userRoleInsertSchema,
|
|
1817
|
+
xt as userRoleListSchema,
|
|
1818
|
+
Je as userRoleSchema,
|
|
1819
|
+
P as userSchema,
|
|
1820
|
+
ge as verificationMethodsSchema,
|
|
1821
|
+
xe as widgetSchema
|
|
1776
1822
|
};
|