@authhero/adapter-interfaces 0.10.4 → 0.11.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.
|
@@ -553,6 +553,13 @@ export type UserResponse = z.infer<typeof userResponseSchema>;
|
|
|
553
553
|
export declare const applicationInsertSchema: z.ZodObject<{
|
|
554
554
|
id: z.ZodString;
|
|
555
555
|
name: z.ZodString;
|
|
556
|
+
callbacks: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
557
|
+
allowed_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
558
|
+
web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
559
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
560
|
+
z.ZodString,
|
|
561
|
+
z.ZodNumber
|
|
562
|
+
]>>>>;
|
|
556
563
|
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
557
564
|
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
558
565
|
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -566,15 +573,23 @@ export declare const applicationInsertSchema: z.ZodObject<{
|
|
|
566
573
|
}, "strip", z.ZodTypeAny, {
|
|
567
574
|
name: string;
|
|
568
575
|
id: string;
|
|
576
|
+
callbacks: string;
|
|
577
|
+
allowed_origins: string;
|
|
578
|
+
web_origins: string;
|
|
569
579
|
allowed_web_origins: string;
|
|
570
580
|
allowed_callback_urls: string;
|
|
571
581
|
allowed_logout_urls: string;
|
|
572
582
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
573
583
|
client_secret: string;
|
|
574
584
|
disable_sign_ups: boolean;
|
|
585
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
575
586
|
}, {
|
|
576
587
|
name: string;
|
|
577
588
|
id: string;
|
|
589
|
+
callbacks?: string | undefined;
|
|
590
|
+
allowed_origins?: string | undefined;
|
|
591
|
+
web_origins?: string | undefined;
|
|
592
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
578
593
|
allowed_web_origins?: string | undefined;
|
|
579
594
|
allowed_callback_urls?: string | undefined;
|
|
580
595
|
allowed_logout_urls?: string | undefined;
|
|
@@ -589,6 +604,13 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
589
604
|
}, {
|
|
590
605
|
id: z.ZodString;
|
|
591
606
|
name: z.ZodString;
|
|
607
|
+
callbacks: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
608
|
+
allowed_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
609
|
+
web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
610
|
+
addons: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<[
|
|
611
|
+
z.ZodString,
|
|
612
|
+
z.ZodNumber
|
|
613
|
+
]>>>>;
|
|
592
614
|
allowed_web_origins: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
593
615
|
allowed_callback_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
594
616
|
allowed_logout_urls: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -604,17 +626,25 @@ export declare const applicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
604
626
|
updated_at: string;
|
|
605
627
|
name: string;
|
|
606
628
|
id: string;
|
|
629
|
+
callbacks: string;
|
|
630
|
+
allowed_origins: string;
|
|
631
|
+
web_origins: string;
|
|
607
632
|
allowed_web_origins: string;
|
|
608
633
|
allowed_callback_urls: string;
|
|
609
634
|
allowed_logout_urls: string;
|
|
610
635
|
email_validation: "enabled" | "disabled" | "enforced";
|
|
611
636
|
client_secret: string;
|
|
612
637
|
disable_sign_ups: boolean;
|
|
638
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
613
639
|
}, {
|
|
614
640
|
created_at: string;
|
|
615
641
|
updated_at: string;
|
|
616
642
|
name: string;
|
|
617
643
|
id: string;
|
|
644
|
+
callbacks?: string | undefined;
|
|
645
|
+
allowed_origins?: string | undefined;
|
|
646
|
+
web_origins?: string | undefined;
|
|
647
|
+
addons?: Record<string, Record<string, string | number>> | undefined;
|
|
618
648
|
allowed_web_origins?: string | undefined;
|
|
619
649
|
allowed_callback_urls?: string | undefined;
|
|
620
650
|
allowed_logout_urls?: string | undefined;
|
|
@@ -632,7 +662,8 @@ export declare enum AuthorizationResponseMode {
|
|
|
632
662
|
QUERY = "query",
|
|
633
663
|
FRAGMENT = "fragment",
|
|
634
664
|
FORM_POST = "form_post",
|
|
635
|
-
WEB_MESSAGE = "web_message"
|
|
665
|
+
WEB_MESSAGE = "web_message",
|
|
666
|
+
SAML_POST = "saml_post"
|
|
636
667
|
}
|
|
637
668
|
export declare enum CodeChallengeMethod {
|
|
638
669
|
S265 = "S256",
|
|
@@ -1412,6 +1443,7 @@ export declare const domainSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1412
1443
|
export type Domain = z.infer<typeof domainSchema>;
|
|
1413
1444
|
export declare const hookInsertSchema: z.ZodObject<{
|
|
1414
1445
|
trigger_id: z.ZodEnum<[
|
|
1446
|
+
"pre-user-signup",
|
|
1415
1447
|
"post-user-registration",
|
|
1416
1448
|
"post-user-login"
|
|
1417
1449
|
]>;
|
|
@@ -1423,13 +1455,13 @@ export declare const hookInsertSchema: z.ZodObject<{
|
|
|
1423
1455
|
}, "strip", z.ZodTypeAny, {
|
|
1424
1456
|
enabled: boolean;
|
|
1425
1457
|
url: string;
|
|
1426
|
-
trigger_id: "post-user-registration" | "post-user-login";
|
|
1458
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
1427
1459
|
synchronous: boolean;
|
|
1428
1460
|
hook_id?: string | undefined;
|
|
1429
1461
|
priority?: number | undefined;
|
|
1430
1462
|
}, {
|
|
1431
1463
|
url: string;
|
|
1432
|
-
trigger_id: "post-user-registration" | "post-user-login";
|
|
1464
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
1433
1465
|
enabled?: boolean | undefined;
|
|
1434
1466
|
hook_id?: string | undefined;
|
|
1435
1467
|
synchronous?: boolean | undefined;
|
|
@@ -1438,6 +1470,7 @@ export declare const hookInsertSchema: z.ZodObject<{
|
|
|
1438
1470
|
export type HookInsert = z.infer<typeof hookInsertSchema>;
|
|
1439
1471
|
export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
1440
1472
|
trigger_id: z.ZodEnum<[
|
|
1473
|
+
"pre-user-signup",
|
|
1441
1474
|
"post-user-registration",
|
|
1442
1475
|
"post-user-login"
|
|
1443
1476
|
]>;
|
|
@@ -1455,7 +1488,7 @@ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1455
1488
|
updated_at: string;
|
|
1456
1489
|
enabled: boolean;
|
|
1457
1490
|
url: string;
|
|
1458
|
-
trigger_id: "post-user-registration" | "post-user-login";
|
|
1491
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
1459
1492
|
hook_id: string;
|
|
1460
1493
|
synchronous: boolean;
|
|
1461
1494
|
priority?: number | undefined;
|
|
@@ -1463,7 +1496,7 @@ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1463
1496
|
created_at: string;
|
|
1464
1497
|
updated_at: string;
|
|
1465
1498
|
url: string;
|
|
1466
|
-
trigger_id: "post-user-registration" | "post-user-login";
|
|
1499
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
1467
1500
|
hook_id: string;
|
|
1468
1501
|
enabled?: boolean | undefined;
|
|
1469
1502
|
synchronous?: boolean | undefined;
|
|
@@ -1880,39 +1913,55 @@ export declare const loginSchema: z.ZodObject<{
|
|
|
1880
1913
|
}>;
|
|
1881
1914
|
export type Login = z.infer<typeof loginSchema>;
|
|
1882
1915
|
export declare enum LogTypes {
|
|
1883
|
-
SUCCESS_API_OPERATION = "sapi",
|
|
1884
|
-
SUCCESS_SILENT_AUTH = "ssa",
|
|
1885
1916
|
FAILED_SILENT_AUTH = "fsa",
|
|
1886
|
-
SUCCESS_SIGNUP = "ss",
|
|
1887
1917
|
FAILED_SIGNUP = "fs",
|
|
1888
|
-
SUCCESS_LOGIN = "s",
|
|
1889
1918
|
FAILED_LOGIN = "f",
|
|
1890
1919
|
FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
|
|
1891
|
-
|
|
1892
|
-
|
|
1920
|
+
FAILED_CHANGE_PASSWORD = "fcp",
|
|
1921
|
+
FAILED_BY_CONNECTOR = "fc",
|
|
1922
|
+
FAILED_LOGIN_INVALID_EMAIL_USERNAME = "fu",
|
|
1923
|
+
FAILED_HOOK = "fh",
|
|
1893
1924
|
FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
|
|
1925
|
+
SUCCESS_API_OPERATION = "sapi",
|
|
1926
|
+
SUCCESS_CHANGE_PASSWORD = "scp",
|
|
1927
|
+
SUCCESS_CHANGE_PASSWORD_REQUEST = "scpr",
|
|
1928
|
+
SUCCESS_CHANGE_USERNAME = "scu",
|
|
1929
|
+
SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
|
|
1894
1930
|
SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
|
|
1895
1931
|
SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
|
|
1896
|
-
|
|
1897
|
-
|
|
1932
|
+
SUCCESS_LOGIN = "s",
|
|
1933
|
+
SUCCESS_LOGOUT = "slo",
|
|
1934
|
+
SUCCESS_SIGNUP = "ss",
|
|
1935
|
+
SUCCESS_SILENT_AUTH = "ssa",
|
|
1936
|
+
SUCCESS_VERIFICATION_EMAIL = "sv",
|
|
1937
|
+
SUCCESS_VERIFICATION_EMAIL_REQUEST = "svr",
|
|
1938
|
+
CODE_LINK_SENT = "cls"
|
|
1898
1939
|
}
|
|
1899
1940
|
declare const LogType: z.ZodEnum<[
|
|
1900
|
-
"
|
|
1901
|
-
"ssa",
|
|
1941
|
+
"cls",
|
|
1902
1942
|
"fsa",
|
|
1903
|
-
"ss",
|
|
1904
|
-
"ssa",
|
|
1905
1943
|
"fs",
|
|
1906
|
-
"s",
|
|
1907
1944
|
"f",
|
|
1945
|
+
"fc",
|
|
1946
|
+
"fcoa",
|
|
1947
|
+
"fcp",
|
|
1948
|
+
"fh",
|
|
1908
1949
|
"fp",
|
|
1909
|
-
"
|
|
1950
|
+
"fs",
|
|
1951
|
+
"fu",
|
|
1952
|
+
"s",
|
|
1953
|
+
"sapi",
|
|
1910
1954
|
"scoa",
|
|
1911
|
-
"
|
|
1912
|
-
"
|
|
1913
|
-
"
|
|
1955
|
+
"scp",
|
|
1956
|
+
"scpr",
|
|
1957
|
+
"scu",
|
|
1914
1958
|
"seacft",
|
|
1915
|
-
"serft"
|
|
1959
|
+
"serft",
|
|
1960
|
+
"slo",
|
|
1961
|
+
"ss",
|
|
1962
|
+
"ssa",
|
|
1963
|
+
"sv",
|
|
1964
|
+
"svr"
|
|
1916
1965
|
]>;
|
|
1917
1966
|
type LogType$1 = z.infer<typeof LogType>;
|
|
1918
1967
|
export declare const Auth0Client: z.ZodObject<{
|
|
@@ -1940,22 +1989,30 @@ export declare const Auth0Client: z.ZodObject<{
|
|
|
1940
1989
|
}>;
|
|
1941
1990
|
export declare const logSchema: z.ZodObject<{
|
|
1942
1991
|
type: z.ZodEnum<[
|
|
1943
|
-
"
|
|
1944
|
-
"ssa",
|
|
1992
|
+
"cls",
|
|
1945
1993
|
"fsa",
|
|
1946
|
-
"ss",
|
|
1947
|
-
"ssa",
|
|
1948
1994
|
"fs",
|
|
1949
|
-
"s",
|
|
1950
1995
|
"f",
|
|
1996
|
+
"fc",
|
|
1997
|
+
"fcoa",
|
|
1998
|
+
"fcp",
|
|
1999
|
+
"fh",
|
|
1951
2000
|
"fp",
|
|
1952
|
-
"
|
|
2001
|
+
"fs",
|
|
2002
|
+
"fu",
|
|
2003
|
+
"s",
|
|
2004
|
+
"sapi",
|
|
1953
2005
|
"scoa",
|
|
1954
|
-
"
|
|
1955
|
-
"
|
|
1956
|
-
"
|
|
2006
|
+
"scp",
|
|
2007
|
+
"scpr",
|
|
2008
|
+
"scu",
|
|
1957
2009
|
"seacft",
|
|
1958
|
-
"serft"
|
|
2010
|
+
"serft",
|
|
2011
|
+
"slo",
|
|
2012
|
+
"ss",
|
|
2013
|
+
"ssa",
|
|
2014
|
+
"sv",
|
|
2015
|
+
"svr"
|
|
1959
2016
|
]>;
|
|
1960
2017
|
date: z.ZodString;
|
|
1961
2018
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2000,7 +2057,7 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2000
2057
|
} | undefined;
|
|
2001
2058
|
}>>;
|
|
2002
2059
|
}, "strip", z.ZodTypeAny, {
|
|
2003
|
-
type: "
|
|
2060
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
2004
2061
|
date: string;
|
|
2005
2062
|
ip: string;
|
|
2006
2063
|
user_agent: string;
|
|
@@ -2028,7 +2085,7 @@ export declare const logSchema: z.ZodObject<{
|
|
|
2028
2085
|
} | undefined;
|
|
2029
2086
|
} | undefined;
|
|
2030
2087
|
}, {
|
|
2031
|
-
type: "
|
|
2088
|
+
type: "fsa" | "fs" | "f" | "fp" | "fcp" | "fc" | "fu" | "fh" | "fcoa" | "sapi" | "scp" | "scpr" | "scu" | "scoa" | "seacft" | "serft" | "s" | "slo" | "ss" | "ssa" | "sv" | "svr" | "cls";
|
|
2032
2089
|
date: string;
|
|
2033
2090
|
ip: string;
|
|
2034
2091
|
user_agent: string;
|
|
@@ -4233,6 +4290,7 @@ export interface CreateApplicationParams {
|
|
|
4233
4290
|
client_secret: string;
|
|
4234
4291
|
id: string;
|
|
4235
4292
|
disable_sign_ups: boolean;
|
|
4293
|
+
addons?: Record<string, Record<string, string | number>>;
|
|
4236
4294
|
}
|
|
4237
4295
|
export interface ApplicationsAdapter {
|
|
4238
4296
|
create(tenant_id: string, params: CreateApplicationParams): Promise<Application>;
|