authhero 9.13.0 → 9.14.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/authhero.cjs +138 -138
- package/dist/authhero.d.ts +146 -116
- package/dist/authhero.mjs +18761 -18695
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +3 -3
- package/dist/types/emails/index.d.ts +8 -9
- package/dist/types/emails/render.d.ts +2 -6
- package/dist/types/helpers/connection.d.ts +2 -6
- package/dist/types/helpers/logging.d.ts +2 -5
- package/dist/types/helpers/reserved-claims.d.ts +4 -8
- package/dist/types/helpers/service-token.d.ts +2 -5
- package/dist/types/helpers/wait-until.d.ts +3 -1
- package/dist/types/index.d.ts +110 -110
- package/dist/types/middlewares/apply-config.d.ts +8 -0
- package/dist/types/middlewares/client-info.d.ts +27 -1
- package/dist/types/routes/auth-api/index.d.ts +43 -43
- package/dist/types/routes/auth-api/passwordless.d.ts +10 -10
- package/dist/types/routes/auth-api/register/index.d.ts +2 -2
- package/dist/types/routes/auth-api/revoke.d.ts +8 -8
- package/dist/types/routes/auth-api/token.d.ts +22 -22
- package/dist/types/routes/auth-api/well-known.d.ts +1 -1
- package/dist/types/routes/management-api/action-executions.d.ts +1 -1
- package/dist/types/routes/management-api/actions.d.ts +1 -1
- package/dist/types/routes/management-api/clients.d.ts +8 -8
- package/dist/types/routes/management-api/custom-domains.d.ts +6 -6
- package/dist/types/routes/management-api/email-templates.d.ts +18 -18
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/guardian.d.ts +5 -5
- package/dist/types/routes/management-api/index.d.ts +66 -66
- package/dist/types/routes/management-api/keys.d.ts +4 -4
- package/dist/types/routes/management-api/logs.d.ts +4 -4
- package/dist/types/routes/management-api/organizations.d.ts +2 -2
- package/dist/types/routes/management-api/prompts.d.ts +4 -4
- package/dist/types/routes/management-api/roles.d.ts +1 -1
- package/dist/types/routes/management-api/tenants.d.ts +1 -1
- package/dist/types/routes/management-api/users.d.ts +11 -11
- package/dist/types/routes/proxy-control-plane/tenant-members.d.ts +9 -2
- package/dist/types/routes/proxy-control-plane/verify.d.ts +15 -0
- package/dist/types/routes/universal-login/flow-api.d.ts +4 -4
- package/dist/types/routes/universal-login/u2-index.d.ts +5 -5
- package/dist/types/routes/universal-login/u2-routes.d.ts +5 -5
- package/dist/types/tenant-members/local-backend.d.ts +11 -3
- package/dist/types/types/RequestContext.d.ts +16 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/jwks.d.ts +2 -2
- package/package.json +5 -5
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Context } from "hono";
|
|
2
|
+
import type { Bindings } from "./Bindings";
|
|
3
|
+
import type { Variables } from "./Variables";
|
|
4
|
+
/**
|
|
5
|
+
* The part of a request context the email, logging and service-token helpers
|
|
6
|
+
* use. Every `Variables` entry is optional, so a context that sets only some of
|
|
7
|
+
* them (such as the proxy control-plane resource) can call these helpers too.
|
|
8
|
+
* The app's full `Context<{ Bindings; Variables }>` is assignable to it.
|
|
9
|
+
*/
|
|
10
|
+
export type RequestContext = Pick<Context<{
|
|
11
|
+
Bindings: Bindings;
|
|
12
|
+
Variables: Partial<Variables>;
|
|
13
|
+
}>, "env" | "var" | "req" | "executionCtx"> & {
|
|
14
|
+
set(key: "outboxEventPromises", value: Promise<string>[]): void;
|
|
15
|
+
set(key: "backgroundPromises", value: Promise<void>[]): void;
|
|
16
|
+
};
|
|
@@ -8,7 +8,7 @@ import { SigningKeyModeOption } from "../types/AuthHeroConfig";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function getJwksForPublication(data: DataAdapters, tenantId: string, modeOption: SigningKeyModeOption | undefined): Promise<{
|
|
10
10
|
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
11
|
-
kty: "
|
|
11
|
+
kty: "RSA" | "EC" | "oct";
|
|
12
12
|
kid?: string | undefined;
|
|
13
13
|
use?: "sig" | "enc" | undefined;
|
|
14
14
|
n?: string | undefined;
|
|
@@ -27,7 +27,7 @@ export declare function getJwksForPublication(data: DataAdapters, tenantId: stri
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function getJwksForVerification(data: DataAdapters, tenantId: string | undefined, modeOption: SigningKeyModeOption | undefined): Promise<{
|
|
29
29
|
alg: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "HS256" | "HS384" | "HS512";
|
|
30
|
-
kty: "
|
|
30
|
+
kty: "RSA" | "EC" | "oct";
|
|
31
31
|
kid?: string | undefined;
|
|
32
32
|
use?: "sig" | "enc" | undefined;
|
|
33
33
|
n?: string | undefined;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "9.
|
|
14
|
+
"version": "9.14.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"vite": "^8.0.14",
|
|
64
64
|
"vite-plugin-dts": "^4.5.4",
|
|
65
65
|
"vitest": "^4.1.7",
|
|
66
|
-
"@authhero/kysely-adapter": "12.8.
|
|
66
|
+
"@authhero/kysely-adapter": "12.8.3",
|
|
67
67
|
"@authhero/widget": "0.39.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"qrcode": "^1.5.4",
|
|
81
81
|
"sanitize-html": "^2.17.4",
|
|
82
82
|
"xstate": "^5.31.1",
|
|
83
|
-
"@authhero/
|
|
84
|
-
"@authhero/
|
|
85
|
-
"@authhero/
|
|
83
|
+
"@authhero/adapter-interfaces": "4.14.0",
|
|
84
|
+
"@authhero/proxy": "0.11.0",
|
|
85
|
+
"@authhero/saml": "0.5.12"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@authhero/widget": "^0.1.0",
|