@authhero/kysely-adapter 10.65.0 → 10.66.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/kysely-adapter.d.ts +2 -2
- package/dist/kysely-adapter.mjs +10 -0
- package/package.json +2 -2
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -828,7 +828,7 @@ declare const brandingSchema: z.ZodObject<{
|
|
|
828
828
|
} | undefined;
|
|
829
829
|
}>;
|
|
830
830
|
export type Branding = z.infer<typeof brandingSchema>;
|
|
831
|
-
declare const
|
|
831
|
+
declare const legacyClientSchema: z.ZodObject<{
|
|
832
832
|
tenant: z.ZodObject<{
|
|
833
833
|
id: z.ZodString;
|
|
834
834
|
audience: z.ZodString;
|
|
@@ -1873,7 +1873,7 @@ declare const LegacyClientSchema: z.ZodObject<{
|
|
|
1873
1873
|
par_request_expiry?: number | undefined;
|
|
1874
1874
|
token_quota?: Record<string, any> | undefined;
|
|
1875
1875
|
}>;
|
|
1876
|
-
export type LegacyClient = z.infer<typeof
|
|
1876
|
+
export type LegacyClient = z.infer<typeof legacyClientSchema>;
|
|
1877
1877
|
declare const codeTypeSchema: z.ZodEnum<[
|
|
1878
1878
|
"password_reset",
|
|
1879
1879
|
"email_verification",
|
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -8,12 +8,22 @@ var i = (t, e, n) => (Qt(t, e, "read from private field"), n ? n.call(t) : e.get
|
|
|
8
8
|
import { parseUserId as pn, codeSchema as Wa, connectionSchema as Ka, loginSessionSchema as Ua, promptSettingSchema as Qa, formSchema as Tt, resourceServerSchema as Va } from "@authhero/adapter-interfaces";
|
|
9
9
|
import "@hono/zod-openapi";
|
|
10
10
|
var et = class extends Error {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of `HTTPException`.
|
|
13
|
+
* @param status - HTTP status code for the exception. Defaults to 500.
|
|
14
|
+
* @param options - Additional options for the exception.
|
|
15
|
+
*/
|
|
11
16
|
constructor(e = 500, n) {
|
|
12
17
|
super(n == null ? void 0 : n.message, { cause: n == null ? void 0 : n.cause });
|
|
13
18
|
ie(this, "res");
|
|
14
19
|
ie(this, "status");
|
|
15
20
|
this.res = n == null ? void 0 : n.res, this.status = e;
|
|
16
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Returns the response object associated with the exception.
|
|
24
|
+
* If a response object is not provided, a new response is created with the error message and status code.
|
|
25
|
+
* @returns The response object.
|
|
26
|
+
*/
|
|
17
27
|
getResponse() {
|
|
18
28
|
return this.res ? new Response(this.res.body, {
|
|
19
29
|
status: this.status,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/markusahlstrand/authhero"
|
|
13
13
|
},
|
|
14
|
-
"version": "10.
|
|
14
|
+
"version": "10.66.0",
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"kysely": "^0.27.4",
|
|
44
44
|
"nanoid": "^5.0.8",
|
|
45
|
-
"@authhero/adapter-interfaces": "
|
|
45
|
+
"@authhero/adapter-interfaces": "0.108.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@hono/zod-openapi": "^0.19.2",
|