authhero 7.2.1 → 7.2.2
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/authhero.cjs +87 -87
- package/dist/authhero.d.ts +5 -5
- package/dist/authhero.mjs +5750 -5714
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/helpers/adapter-methods.d.ts +12 -0
- package/dist/types/index.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +5 -5
- package/dist/types/routes/management-api/organizations.d.ts +1 -1
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/package.json +5 -5
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the names of every callable-ish property on `adapter`, including
|
|
3
|
+
* those inherited from prototypes. `Object.entries` / `Object.keys` skip
|
|
4
|
+
* prototype methods, so iterating with those alone silently strips methods
|
|
5
|
+
* off class-based adapters (e.g. CloudflareRateLimit, CloudflareCache),
|
|
6
|
+
* leaving callers staring at `TypeError: foo.consume is not a function`
|
|
7
|
+
* even though the original instance had the method.
|
|
8
|
+
*
|
|
9
|
+
* Walks up to (but not including) `Object.prototype` so we don't surface
|
|
10
|
+
* `hasOwnProperty` and friends, and filters out `constructor`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAdapterMethodNames(adapter: Record<string, unknown>): string[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1159,11 +1159,11 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
1159
1159
|
invitee: {
|
|
1160
1160
|
email?: string | undefined;
|
|
1161
1161
|
};
|
|
1162
|
+
roles?: string[] | undefined;
|
|
1162
1163
|
id?: string | undefined;
|
|
1163
1164
|
app_metadata?: Record<string, any> | undefined;
|
|
1164
1165
|
user_metadata?: Record<string, any> | undefined;
|
|
1165
1166
|
connection_id?: string | undefined;
|
|
1166
|
-
roles?: string[] | undefined;
|
|
1167
1167
|
ttl_sec?: number | undefined;
|
|
1168
1168
|
send_invitation_email?: boolean | undefined;
|
|
1169
1169
|
};
|
|
@@ -6650,7 +6650,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6650
6650
|
};
|
|
6651
6651
|
};
|
|
6652
6652
|
output: {
|
|
6653
|
-
prompt: "
|
|
6653
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6654
6654
|
language: string;
|
|
6655
6655
|
}[];
|
|
6656
6656
|
outputFormat: "json";
|
|
@@ -6688,7 +6688,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6688
6688
|
$get: {
|
|
6689
6689
|
input: {
|
|
6690
6690
|
param: {
|
|
6691
|
-
prompt: "
|
|
6691
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6692
6692
|
language: string;
|
|
6693
6693
|
};
|
|
6694
6694
|
} & {
|
|
@@ -6710,7 +6710,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6710
6710
|
$put: {
|
|
6711
6711
|
input: {
|
|
6712
6712
|
param: {
|
|
6713
|
-
prompt: "
|
|
6713
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6714
6714
|
language: string;
|
|
6715
6715
|
};
|
|
6716
6716
|
} & {
|
|
@@ -6734,7 +6734,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
6734
6734
|
$delete: {
|
|
6735
6735
|
input: {
|
|
6736
6736
|
param: {
|
|
6737
|
-
prompt: "
|
|
6737
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6738
6738
|
language: string;
|
|
6739
6739
|
};
|
|
6740
6740
|
} & {
|
|
@@ -1110,11 +1110,11 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
1110
1110
|
invitee: {
|
|
1111
1111
|
email?: string | undefined;
|
|
1112
1112
|
};
|
|
1113
|
+
roles?: string[] | undefined;
|
|
1113
1114
|
id?: string | undefined;
|
|
1114
1115
|
app_metadata?: Record<string, any> | undefined;
|
|
1115
1116
|
user_metadata?: Record<string, any> | undefined;
|
|
1116
1117
|
connection_id?: string | undefined;
|
|
1117
|
-
roles?: string[] | undefined;
|
|
1118
1118
|
ttl_sec?: number | undefined;
|
|
1119
1119
|
send_invitation_email?: boolean | undefined;
|
|
1120
1120
|
};
|
|
@@ -6601,7 +6601,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6601
6601
|
};
|
|
6602
6602
|
};
|
|
6603
6603
|
output: {
|
|
6604
|
-
prompt: "
|
|
6604
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6605
6605
|
language: string;
|
|
6606
6606
|
}[];
|
|
6607
6607
|
outputFormat: "json";
|
|
@@ -6639,7 +6639,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6639
6639
|
$get: {
|
|
6640
6640
|
input: {
|
|
6641
6641
|
param: {
|
|
6642
|
-
prompt: "
|
|
6642
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6643
6643
|
language: string;
|
|
6644
6644
|
};
|
|
6645
6645
|
} & {
|
|
@@ -6661,7 +6661,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6661
6661
|
$put: {
|
|
6662
6662
|
input: {
|
|
6663
6663
|
param: {
|
|
6664
|
-
prompt: "
|
|
6664
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6665
6665
|
language: string;
|
|
6666
6666
|
};
|
|
6667
6667
|
} & {
|
|
@@ -6685,7 +6685,7 @@ export default function create(config: AuthHeroConfig): OpenAPIHono<{
|
|
|
6685
6685
|
$delete: {
|
|
6686
6686
|
input: {
|
|
6687
6687
|
param: {
|
|
6688
|
-
prompt: "
|
|
6688
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
6689
6689
|
language: string;
|
|
6690
6690
|
};
|
|
6691
6691
|
} & {
|
|
@@ -702,11 +702,11 @@ export declare const organizationRoutes: OpenAPIHono<{
|
|
|
702
702
|
invitee: {
|
|
703
703
|
email?: string | undefined;
|
|
704
704
|
};
|
|
705
|
+
roles?: string[] | undefined;
|
|
705
706
|
id?: string | undefined;
|
|
706
707
|
app_metadata?: Record<string, any> | undefined;
|
|
707
708
|
user_metadata?: Record<string, any> | undefined;
|
|
708
709
|
connection_id?: string | undefined;
|
|
709
|
-
roles?: string[] | undefined;
|
|
710
710
|
ttl_sec?: number | undefined;
|
|
711
711
|
send_invitation_email?: boolean | undefined;
|
|
712
712
|
};
|
|
@@ -50,7 +50,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
output: {
|
|
53
|
-
prompt: "
|
|
53
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
54
54
|
language: string;
|
|
55
55
|
}[];
|
|
56
56
|
outputFormat: "json";
|
|
@@ -88,7 +88,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
88
88
|
$get: {
|
|
89
89
|
input: {
|
|
90
90
|
param: {
|
|
91
|
-
prompt: "
|
|
91
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
92
92
|
language: string;
|
|
93
93
|
};
|
|
94
94
|
} & {
|
|
@@ -110,7 +110,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
110
110
|
$put: {
|
|
111
111
|
input: {
|
|
112
112
|
param: {
|
|
113
|
-
prompt: "
|
|
113
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
114
114
|
language: string;
|
|
115
115
|
};
|
|
116
116
|
} & {
|
|
@@ -134,7 +134,7 @@ export declare const promptsRoutes: OpenAPIHono<{
|
|
|
134
134
|
$delete: {
|
|
135
135
|
input: {
|
|
136
136
|
param: {
|
|
137
|
-
prompt: "
|
|
137
|
+
prompt: "organizations" | "mfa" | "signup" | "status" | "login" | "login-id" | "login-password" | "signup-id" | "signup-password" | "reset-password" | "consent" | "mfa-push" | "mfa-otp" | "mfa-voice" | "mfa-phone" | "mfa-webauthn" | "mfa-email" | "mfa-recovery-code" | "device-flow" | "email-verification" | "email-otp-challenge" | "invitation" | "common" | "passkeys" | "captcha" | "custom-form" | "login-passwordless" | "mfa-login-options";
|
|
138
138
|
language: string;
|
|
139
139
|
};
|
|
140
140
|
} & {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "7.2.
|
|
14
|
+
"version": "7.2.2",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"vite": "^8.0.14",
|
|
63
63
|
"vite-plugin-dts": "^4.5.4",
|
|
64
64
|
"vitest": "^4.1.7",
|
|
65
|
-
"@authhero/kysely-adapter": "11.8.
|
|
66
|
-
"@authhero/widget": "0.32.
|
|
65
|
+
"@authhero/kysely-adapter": "11.8.8",
|
|
66
|
+
"@authhero/widget": "0.32.41"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@peculiar/x509": "^1.14.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"qrcode": "^1.5.4",
|
|
82
82
|
"sanitize-html": "^2.17.4",
|
|
83
83
|
"xstate": "^5.31.1",
|
|
84
|
-
"@authhero/adapter-interfaces": "3.1.
|
|
85
|
-
"@authhero/proxy": "0.
|
|
84
|
+
"@authhero/adapter-interfaces": "3.1.1",
|
|
85
|
+
"@authhero/proxy": "0.7.0",
|
|
86
86
|
"@authhero/saml": "0.4.1"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|