authhero 7.2.0 → 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 +148 -148
- package/dist/authhero.mjs +5754 -5716
- package/dist/stats.html +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/authentication-flows/passwordless.d.ts +2 -2
- package/dist/types/helpers/adapter-methods.d.ts +12 -0
- package/dist/types/helpers/dcr/metadata-mapping.d.ts +1 -1
- package/dist/types/index.d.ts +148 -148
- package/dist/types/routes/auth-api/index.d.ts +8 -8
- package/dist/types/routes/auth-api/passwordless.d.ts +8 -8
- 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/connections.d.ts +1 -1
- package/dist/types/routes/management-api/failed-events.d.ts +1 -1
- package/dist/types/routes/management-api/forms.d.ts +119 -119
- package/dist/types/routes/management-api/index.d.ts +134 -134
- package/dist/types/routes/management-api/logs.d.ts +3 -3
- 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/users.d.ts +2 -2
- package/dist/types/routes/universal-login/flow-api.d.ts +12 -12
- package/dist/types/routes/universal-login/u2-index.d.ts +6 -6
- package/dist/types/routes/universal-login/u2-routes.d.ts +6 -6
- package/package.json +5 -5
|
@@ -540,8 +540,8 @@ export declare function passwordlessGrantUser(ctx: Context<{
|
|
|
540
540
|
} | undefined;
|
|
541
541
|
authenticated_at?: string | undefined;
|
|
542
542
|
};
|
|
543
|
-
connectionType: "
|
|
544
|
-
authConnection: "
|
|
543
|
+
connectionType: "sms" | "email" | "username";
|
|
544
|
+
authConnection: "sms" | "email" | "username";
|
|
545
545
|
session_id: string | undefined;
|
|
546
546
|
authParams: {
|
|
547
547
|
client_id: string;
|
|
@@ -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[];
|
|
@@ -24,10 +24,10 @@ export declare const dcrRequestSchema: z.ZodObject<{
|
|
|
24
24
|
response_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
25
|
token_endpoint_auth_method: z.ZodOptional<z.ZodEnum<{
|
|
26
26
|
none: "none";
|
|
27
|
+
private_key_jwt: "private_key_jwt";
|
|
27
28
|
client_secret_post: "client_secret_post";
|
|
28
29
|
client_secret_basic: "client_secret_basic";
|
|
29
30
|
client_secret_jwt: "client_secret_jwt";
|
|
30
|
-
private_key_jwt: "private_key_jwt";
|
|
31
31
|
}>>;
|
|
32
32
|
jwks_uri: z.ZodOptional<z.ZodString>;
|
|
33
33
|
jwks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|