faire-auth 1.0.1 → 1.0.3

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.
Files changed (71) hide show
  1. package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
  2. package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
  3. package/dist/adapters/index.d.cts +1 -1
  4. package/dist/adapters/index.d.mts +1 -1
  5. package/dist/adapters/kysely-adapter/index.d.cts +1 -1
  6. package/dist/adapters/kysely-adapter/index.d.mts +1 -1
  7. package/dist/adapters/memory-adapter/index.d.cts +3 -3
  8. package/dist/adapters/memory-adapter/index.d.mts +3 -3
  9. package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
  10. package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
  11. package/dist/adapters/prisma-adapter/index.d.cts +1 -1
  12. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  13. package/dist/adapters/test.d.cts +1 -1
  14. package/dist/adapters/test.d.mts +1 -1
  15. package/dist/api/index.d.cts +1 -1
  16. package/dist/api/index.d.mts +1 -1
  17. package/dist/api/middleware/index.d.cts +3 -3
  18. package/dist/api/middleware/index.d.mts +3 -3
  19. package/dist/client/index.d.cts +1 -1
  20. package/dist/client/index.d.mts +1 -1
  21. package/dist/client/lynx/index.d.cts +15 -15
  22. package/dist/client/lynx/index.d.mts +26 -26
  23. package/dist/client/plugins/index.d.cts +1 -1
  24. package/dist/client/plugins/index.d.mts +1 -1
  25. package/dist/client/react/index.d.cts +26 -26
  26. package/dist/client/react/index.d.mts +19 -19
  27. package/dist/client/solid/index.d.cts +16 -16
  28. package/dist/client/solid/index.d.mts +16 -16
  29. package/dist/client/svelte/index.d.cts +26 -26
  30. package/dist/client/svelte/index.d.mts +26 -26
  31. package/dist/client/vue/index.d.cts +22 -22
  32. package/dist/client/vue/index.d.mts +27 -27
  33. package/dist/crypto/index.d.cts +2 -2
  34. package/dist/crypto/index.d.mts +2 -2
  35. package/dist/db/index.d.cts +1 -1
  36. package/dist/db/index.d.mts +1 -1
  37. package/dist/{index-BfbDrljm.d.cts → index-BCTFWP_o.d.mts} +15 -15
  38. package/dist/{index-DCuvAh3N.d.mts → index-BVRfQy6L.d.mts} +20 -20
  39. package/dist/{index-ClFGA8tb.d.mts → index-Baarsq5J.d.mts} +6 -6
  40. package/dist/{index-w-IdIOQJ.d.cts → index-By364WbF.d.cts} +15 -15
  41. package/dist/{index-BC42NdCJ.d.mts → index-BzWwMgxr.d.cts} +4 -4
  42. package/dist/{index-Dsua4U8w.d.cts → index-CJD2yB-W.d.cts} +6 -6
  43. package/dist/{index-CL5oW5Uh.d.cts → index-CsWF3f7U.d.cts} +820 -820
  44. package/dist/{index-DK2ECcVe.d.mts → index-CzidsAyA.d.mts} +340 -340
  45. package/dist/{index-KQ5RLFjm.d.cts → index-DvW-GCcI.d.cts} +6 -6
  46. package/dist/{index-BNCikaaH.d.cts → index-f-5OJ9yV.d.cts} +365 -365
  47. package/dist/{index-BotKDRUI.d.mts → index-rFv8Hxld.d.mts} +791 -791
  48. package/dist/index.d.cts +1 -1
  49. package/dist/index.d.mts +1 -1
  50. package/dist/integrations/next-js.d.cts +5 -5
  51. package/dist/integrations/next-js.d.mts +5 -5
  52. package/dist/integrations/node.d.cts +1 -1
  53. package/dist/integrations/node.d.mts +1 -1
  54. package/dist/integrations/react-start.d.cts +5 -5
  55. package/dist/integrations/react-start.d.mts +5 -5
  56. package/dist/integrations/svelte-kit.d.cts +5 -5
  57. package/dist/integrations/svelte-kit.d.mts +5 -5
  58. package/dist/oauth2/index.d.cts +1 -1
  59. package/dist/oauth2/index.d.mts +1 -1
  60. package/dist/plugins/bearer/index.d.cts +2 -2
  61. package/dist/plugins/bearer/index.d.mts +2 -2
  62. package/dist/plugins/index.d.cts +7 -7
  63. package/dist/plugins/index.d.mts +262 -262
  64. package/dist/plugins/passkey/index.d.cts +2 -2
  65. package/dist/plugins/passkey/index.d.mts +2 -2
  66. package/dist/test-utils/index.d.cts +743 -743
  67. package/dist/types/index.d.cts +1 -1
  68. package/dist/types/index.d.mts +1 -1
  69. package/dist/utils/cookies.d.cts +1 -1
  70. package/dist/utils/cookies.d.mts +1 -1
  71. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { $t as PluginFieldAttribute, At as mergeSchema, Bt as getAuthTables, Dt as getAdapter, Et as convertToDB, Ft as parseSessionInput, Gt as FieldAttributeToObject, Ht as getMigrations, It as parseSessionOutput, Jt as InferFieldsFromPlugins, Kt as InferAdditionalFieldsFromPluginOptions, Lt as parseUserInput, Mt as parseAccountOutput, Nt as parseAdditionalUserInput, Ot as FieldAttributeToSchema, Pt as parseInputData, Qt as InferValueType, Rt as parseUserOutput, Tt as convertFromDB, Ut as matchType, Vt as getSchema, Xt as InferFieldsInputClient, Yt as InferFieldsInput, Zt as InferFieldsOutput, en as createFieldAttribute, jt as parseAccountInput, kt as toZodSchema, qt as InferFieldsFromOptions, wt as getWithHooks, zt as createInternalAdapter } from "../index-BotKDRUI.mjs";
1
+ import { $t as PluginFieldAttribute, At as mergeSchema, Bt as getAuthTables, Dt as getAdapter, Et as convertToDB, Ft as parseSessionInput, Gt as FieldAttributeToObject, Ht as getMigrations, It as parseSessionOutput, Jt as InferFieldsFromPlugins, Kt as InferAdditionalFieldsFromPluginOptions, Lt as parseUserInput, Mt as parseAccountOutput, Nt as parseAdditionalUserInput, Ot as FieldAttributeToSchema, Pt as parseInputData, Qt as InferValueType, Rt as parseUserOutput, Tt as convertFromDB, Ut as matchType, Vt as getSchema, Xt as InferFieldsInputClient, Yt as InferFieldsInput, Zt as InferFieldsOutput, en as createFieldAttribute, jt as parseAccountInput, kt as toZodSchema, qt as InferFieldsFromOptions, wt as getWithHooks, zt as createInternalAdapter } from "../index-rFv8Hxld.mjs";
2
2
  import "../hono-D0VqxVy1.mjs";
3
3
  export * from "@faire-auth/core/db";
4
4
  export { FieldAttributeToObject, FieldAttributeToSchema, InferAdditionalFieldsFromPluginOptions, InferFieldsFromOptions, InferFieldsFromPlugins, InferFieldsInput, InferFieldsInputClient, InferFieldsOutput, InferValueType, PluginFieldAttribute, convertFromDB, convertToDB, createFieldAttribute, createInternalAdapter, getAdapter, getAuthTables, getMigrations, getSchema, getWithHooks, matchType, mergeSchema, parseAccountInput, parseAccountOutput, parseAdditionalUserInput, parseInputData, parseSessionInput, parseSessionOutput, parseUserInput, parseUserOutput, toZodSchema };
@@ -1,10 +1,10 @@
1
- import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-CL5oW5Uh.cjs";
2
- import { t as ContextVars } from "./hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types43 from "@faire-auth/core/types";
4
- import * as hono52 from "hono";
5
- import * as _faire_auth_core_db7 from "@faire-auth/core/db";
1
+ import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-CzidsAyA.mjs";
2
+ import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
3
+ import * as hono55 from "hono";
6
4
  import * as z$1 from "zod";
5
+ import * as _faire_auth_core_db7 from "@faire-auth/core/db";
7
6
  import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
7
+ import * as _faire_auth_core_types43 from "@faire-auth/core/types";
8
8
 
9
9
  //#region src/plugins/passkey/index.d.ts
10
10
  interface PasskeyOptions {
@@ -185,12 +185,12 @@ declare const passkey: (options?: PasskeyOptions) => {
185
185
  path: "/passkey/generate-register-options";
186
186
  method: "get";
187
187
  client: false;
188
- middleware: [(ctx: hono52.Context<ContextVars<{
188
+ middleware: [(ctx: hono55.Context<ContextVars<{
189
189
  session: {
190
190
  session: _faire_auth_core_db7.Session;
191
191
  user: _faire_auth_core_db7.User;
192
192
  };
193
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
193
+ }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
194
194
  success: false;
195
195
  code?: string | undefined;
196
196
  message?: string | undefined;
@@ -382,12 +382,12 @@ declare const passkey: (options?: PasskeyOptions) => {
382
382
  operationId: "verifyPasskeyRegistration";
383
383
  path: "/passkey/verify-registration";
384
384
  method: "post";
385
- middleware: [(ctx: hono52.Context<ContextVars<{
385
+ middleware: [(ctx: hono55.Context<ContextVars<{
386
386
  session: {
387
387
  session: _faire_auth_core_db7.Session;
388
388
  user: _faire_auth_core_db7.User;
389
389
  };
390
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
390
+ }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
391
391
  success: false;
392
392
  code?: string | undefined;
393
393
  message?: string | undefined;
@@ -602,7 +602,7 @@ declare const passkey: (options?: PasskeyOptions) => {
602
602
  operationId: "listPasskeys";
603
603
  path: "/passkey/list-user-passkeys";
604
604
  method: "get";
605
- middleware: [(ctx: hono52.Context<ContextVars<object & {
605
+ middleware: [(ctx: hono55.Context<ContextVars<object & {
606
606
  session: {
607
607
  session: {
608
608
  [x: string]: unknown;
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions) => {
626
626
  image?: string | null;
627
627
  };
628
628
  };
629
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
629
+ }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
630
630
  success: false;
631
631
  code?: string | undefined;
632
632
  message?: string | undefined;
@@ -678,7 +678,7 @@ declare const passkey: (options?: PasskeyOptions) => {
678
678
  operationId: "deletePasskey";
679
679
  path: "/passkey/delete-passkey";
680
680
  method: "post";
681
- middleware: [(ctx: hono52.Context<ContextVars<object & {
681
+ middleware: [(ctx: hono55.Context<ContextVars<object & {
682
682
  session: {
683
683
  session: {
684
684
  [x: string]: unknown;
@@ -702,7 +702,7 @@ declare const passkey: (options?: PasskeyOptions) => {
702
702
  image?: string | null;
703
703
  };
704
704
  };
705
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
705
+ }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
706
706
  success: false;
707
707
  code?: string | undefined;
708
708
  message?: string | undefined;
@@ -832,7 +832,7 @@ declare const passkey: (options?: PasskeyOptions) => {
832
832
  operationId: "updatePasskey";
833
833
  path: "/passkey/update-passkey";
834
834
  method: "post";
835
- middleware: [(ctx: hono52.Context<ContextVars<object & {
835
+ middleware: [(ctx: hono55.Context<ContextVars<object & {
836
836
  session: {
837
837
  session: {
838
838
  [x: string]: unknown;
@@ -856,7 +856,7 @@ declare const passkey: (options?: PasskeyOptions) => {
856
856
  image?: string | null;
857
857
  };
858
858
  };
859
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
859
+ }>, string, {}>, next: hono55.Next) => Promise<void | (Response & hono55.TypedResponse<{
860
860
  success: false;
861
861
  code?: string | undefined;
862
862
  message?: string | undefined;
@@ -1,10 +1,10 @@
1
- import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-DK2ECcVe.mjs";
1
+ import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-rFv8Hxld.mjs";
2
2
  import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
3
- import * as hono48 from "hono";
3
+ import * as hono25 from "hono";
4
4
  import * as z$1 from "zod";
5
- import * as _faire_auth_core_db3 from "@faire-auth/core/db";
5
+ import * as _faire_auth_core_db7 from "@faire-auth/core/db";
6
6
  import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
7
- import * as _faire_auth_core_types39 from "@faire-auth/core/types";
7
+ import * as _faire_auth_core_types13 from "@faire-auth/core/types";
8
8
 
9
9
  //#region src/plugins/passkey/index.d.ts
10
10
  interface PasskeyOptions {
@@ -185,16 +185,16 @@ declare const passkey: (options?: PasskeyOptions) => {
185
185
  path: "/passkey/generate-register-options";
186
186
  method: "get";
187
187
  client: false;
188
- middleware: [(ctx: hono48.Context<ContextVars<{
188
+ middleware: [(ctx: hono25.Context<ContextVars<{
189
189
  session: {
190
- session: _faire_auth_core_db3.Session;
191
- user: _faire_auth_core_db3.User;
190
+ session: _faire_auth_core_db7.Session;
191
+ user: _faire_auth_core_db7.User;
192
192
  };
193
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.TypedResponse<{
193
+ }>, string, {}>, next: hono25.Next) => Promise<void | (Response & hono25.TypedResponse<{
194
194
  success: false;
195
195
  code?: string | undefined;
196
196
  message?: string | undefined;
197
- }, 401>) | _faire_auth_core_types39.JSONRespondReturn<{
197
+ }, 401>) | _faire_auth_core_types13.JSONRespondReturn<{
198
198
  success: false;
199
199
  code?: string | undefined;
200
200
  message?: string | undefined;
@@ -382,16 +382,16 @@ declare const passkey: (options?: PasskeyOptions) => {
382
382
  operationId: "verifyPasskeyRegistration";
383
383
  path: "/passkey/verify-registration";
384
384
  method: "post";
385
- middleware: [(ctx: hono48.Context<ContextVars<{
385
+ middleware: [(ctx: hono25.Context<ContextVars<{
386
386
  session: {
387
- session: _faire_auth_core_db3.Session;
388
- user: _faire_auth_core_db3.User;
387
+ session: _faire_auth_core_db7.Session;
388
+ user: _faire_auth_core_db7.User;
389
389
  };
390
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.TypedResponse<{
390
+ }>, string, {}>, next: hono25.Next) => Promise<void | (Response & hono25.TypedResponse<{
391
391
  success: false;
392
392
  code?: string | undefined;
393
393
  message?: string | undefined;
394
- }, 401>) | _faire_auth_core_types39.JSONRespondReturn<{
394
+ }, 401>) | _faire_auth_core_types13.JSONRespondReturn<{
395
395
  success: false;
396
396
  code?: string | undefined;
397
397
  message?: string | undefined;
@@ -602,7 +602,7 @@ declare const passkey: (options?: PasskeyOptions) => {
602
602
  operationId: "listPasskeys";
603
603
  path: "/passkey/list-user-passkeys";
604
604
  method: "get";
605
- middleware: [(ctx: hono48.Context<ContextVars<object & {
605
+ middleware: [(ctx: hono25.Context<ContextVars<object & {
606
606
  session: {
607
607
  session: {
608
608
  [x: string]: unknown;
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions) => {
626
626
  image?: string | null;
627
627
  };
628
628
  };
629
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.TypedResponse<{
629
+ }>, string, {}>, next: hono25.Next) => Promise<void | (Response & hono25.TypedResponse<{
630
630
  success: false;
631
631
  code?: string | undefined;
632
632
  message?: string | undefined;
@@ -678,7 +678,7 @@ declare const passkey: (options?: PasskeyOptions) => {
678
678
  operationId: "deletePasskey";
679
679
  path: "/passkey/delete-passkey";
680
680
  method: "post";
681
- middleware: [(ctx: hono48.Context<ContextVars<object & {
681
+ middleware: [(ctx: hono25.Context<ContextVars<object & {
682
682
  session: {
683
683
  session: {
684
684
  [x: string]: unknown;
@@ -702,7 +702,7 @@ declare const passkey: (options?: PasskeyOptions) => {
702
702
  image?: string | null;
703
703
  };
704
704
  };
705
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.TypedResponse<{
705
+ }>, string, {}>, next: hono25.Next) => Promise<void | (Response & hono25.TypedResponse<{
706
706
  success: false;
707
707
  code?: string | undefined;
708
708
  message?: string | undefined;
@@ -832,7 +832,7 @@ declare const passkey: (options?: PasskeyOptions) => {
832
832
  operationId: "updatePasskey";
833
833
  path: "/passkey/update-passkey";
834
834
  method: "post";
835
- middleware: [(ctx: hono48.Context<ContextVars<object & {
835
+ middleware: [(ctx: hono25.Context<ContextVars<object & {
836
836
  session: {
837
837
  session: {
838
838
  [x: string]: unknown;
@@ -856,7 +856,7 @@ declare const passkey: (options?: PasskeyOptions) => {
856
856
  image?: string | null;
857
857
  };
858
858
  };
859
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.TypedResponse<{
859
+ }>, string, {}>, next: hono25.Next) => Promise<void | (Response & hono25.TypedResponse<{
860
860
  success: false;
861
861
  code?: string | undefined;
862
862
  message?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
2
- import * as hono41 from "hono";
3
- import * as _faire_auth_core_types35 from "@faire-auth/core/types";
2
+ import * as hono21 from "hono";
3
+ import * as _faire_auth_core_types11 from "@faire-auth/core/types";
4
4
 
5
5
  //#region src/plugins/bearer/index.d.ts
6
6
  interface BearerOptions {
@@ -20,12 +20,12 @@ declare const bearer: (options?: BearerOptions) => {
20
20
  id: "bearer";
21
21
  hooks: {
22
22
  before: {
23
- matcher: (ctx: hono41.Context<ContextVars<any>, any, {}>) => boolean;
24
- handler: (_opts: _faire_auth_core_types35.FaireAuthOptions<any>) => (ctx: hono41.Context<ContextVars<object>, string, {}>) => Promise<void>;
23
+ matcher: (ctx: hono21.Context<ContextVars<any>, any, {}>) => boolean;
24
+ handler: (_opts: _faire_auth_core_types11.FaireAuthOptions<any>) => (ctx: hono21.Context<ContextVars<object>, string, {}>) => Promise<void>;
25
25
  }[];
26
26
  after: {
27
- matcher: (_ctx: hono41.Context<ContextVars<any>, any, {}>) => true;
28
- handler: (_opts: _faire_auth_core_types35.FaireAuthOptions<any>) => (ctx: hono41.Context<ContextVars<object>, string, {}>) => Promise<void>;
27
+ matcher: (_ctx: hono21.Context<ContextVars<any>, any, {}>) => true;
28
+ handler: (_opts: _faire_auth_core_types11.FaireAuthOptions<any>) => (ctx: hono21.Context<ContextVars<object>, string, {}>) => Promise<void>;
29
29
  }[];
30
30
  };
31
31
  };
@@ -1,7 +1,7 @@
1
- import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-BNCikaaH.cjs";
1
+ import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-CsWF3f7U.cjs";
2
2
  import { t as ContextVars } from "./hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types43 from "@faire-auth/core/types";
4
- import * as hono52 from "hono";
3
+ import * as _faire_auth_core_types40 from "@faire-auth/core/types";
4
+ import * as hono49 from "hono";
5
5
  import * as _faire_auth_core_db7 from "@faire-auth/core/db";
6
6
  import * as z$1 from "zod";
7
7
  import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
@@ -185,16 +185,16 @@ declare const passkey: (options?: PasskeyOptions) => {
185
185
  path: "/passkey/generate-register-options";
186
186
  method: "get";
187
187
  client: false;
188
- middleware: [(ctx: hono52.Context<ContextVars<{
188
+ middleware: [(ctx: hono49.Context<ContextVars<{
189
189
  session: {
190
190
  session: _faire_auth_core_db7.Session;
191
191
  user: _faire_auth_core_db7.User;
192
192
  };
193
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
193
+ }>, string, {}>, next: hono49.Next) => Promise<void | (Response & hono49.TypedResponse<{
194
194
  success: false;
195
195
  code?: string | undefined;
196
196
  message?: string | undefined;
197
- }, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
197
+ }, 401>) | _faire_auth_core_types40.JSONRespondReturn<{
198
198
  success: false;
199
199
  code?: string | undefined;
200
200
  message?: string | undefined;
@@ -382,16 +382,16 @@ declare const passkey: (options?: PasskeyOptions) => {
382
382
  operationId: "verifyPasskeyRegistration";
383
383
  path: "/passkey/verify-registration";
384
384
  method: "post";
385
- middleware: [(ctx: hono52.Context<ContextVars<{
385
+ middleware: [(ctx: hono49.Context<ContextVars<{
386
386
  session: {
387
387
  session: _faire_auth_core_db7.Session;
388
388
  user: _faire_auth_core_db7.User;
389
389
  };
390
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
390
+ }>, string, {}>, next: hono49.Next) => Promise<void | (Response & hono49.TypedResponse<{
391
391
  success: false;
392
392
  code?: string | undefined;
393
393
  message?: string | undefined;
394
- }, 401>) | _faire_auth_core_types43.JSONRespondReturn<{
394
+ }, 401>) | _faire_auth_core_types40.JSONRespondReturn<{
395
395
  success: false;
396
396
  code?: string | undefined;
397
397
  message?: string | undefined;
@@ -602,7 +602,7 @@ declare const passkey: (options?: PasskeyOptions) => {
602
602
  operationId: "listPasskeys";
603
603
  path: "/passkey/list-user-passkeys";
604
604
  method: "get";
605
- middleware: [(ctx: hono52.Context<ContextVars<object & {
605
+ middleware: [(ctx: hono49.Context<ContextVars<object & {
606
606
  session: {
607
607
  session: {
608
608
  [x: string]: unknown;
@@ -626,7 +626,7 @@ declare const passkey: (options?: PasskeyOptions) => {
626
626
  image?: string | null;
627
627
  };
628
628
  };
629
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
629
+ }>, string, {}>, next: hono49.Next) => Promise<void | (Response & hono49.TypedResponse<{
630
630
  success: false;
631
631
  code?: string | undefined;
632
632
  message?: string | undefined;
@@ -678,7 +678,7 @@ declare const passkey: (options?: PasskeyOptions) => {
678
678
  operationId: "deletePasskey";
679
679
  path: "/passkey/delete-passkey";
680
680
  method: "post";
681
- middleware: [(ctx: hono52.Context<ContextVars<object & {
681
+ middleware: [(ctx: hono49.Context<ContextVars<object & {
682
682
  session: {
683
683
  session: {
684
684
  [x: string]: unknown;
@@ -702,7 +702,7 @@ declare const passkey: (options?: PasskeyOptions) => {
702
702
  image?: string | null;
703
703
  };
704
704
  };
705
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
705
+ }>, string, {}>, next: hono49.Next) => Promise<void | (Response & hono49.TypedResponse<{
706
706
  success: false;
707
707
  code?: string | undefined;
708
708
  message?: string | undefined;
@@ -832,7 +832,7 @@ declare const passkey: (options?: PasskeyOptions) => {
832
832
  operationId: "updatePasskey";
833
833
  path: "/passkey/update-passkey";
834
834
  method: "post";
835
- middleware: [(ctx: hono52.Context<ContextVars<object & {
835
+ middleware: [(ctx: hono49.Context<ContextVars<object & {
836
836
  session: {
837
837
  session: {
838
838
  [x: string]: unknown;
@@ -856,7 +856,7 @@ declare const passkey: (options?: PasskeyOptions) => {
856
856
  image?: string | null;
857
857
  };
858
858
  };
859
- }>, string, {}>, next: hono52.Next) => Promise<void | (Response & hono52.TypedResponse<{
859
+ }>, string, {}>, next: hono49.Next) => Promise<void | (Response & hono49.TypedResponse<{
860
860
  success: false;
861
861
  code?: string | undefined;
862
862
  message?: string | undefined;
@@ -1,10 +1,10 @@
1
- import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-BotKDRUI.mjs";
2
- import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
1
+ import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-f-5OJ9yV.cjs";
2
+ import { t as ContextVars } from "./hono-DOM31WQz.cjs";
3
+ import * as _faire_auth_core_types41 from "@faire-auth/core/types";
3
4
  import * as hono52 from "hono";
4
- import * as z$1 from "zod";
5
5
  import * as _faire_auth_core_db5 from "@faire-auth/core/db";
6
+ import * as z$1 from "zod";
6
7
  import { AuthenticationResponseJSON, CredentialDeviceType } from "@simplewebauthn/server";
7
- import * as _faire_auth_core_types41 from "@faire-auth/core/types";
8
8
 
9
9
  //#region src/plugins/passkey/index.d.ts
10
10
  interface PasskeyOptions {
@@ -1,6 +1,6 @@
1
1
  import { t as ContextVars } from "./hono-DOM31WQz.cjs";
2
- import * as _faire_auth_core_types37 from "@faire-auth/core/types";
3
- import * as hono41 from "hono";
2
+ import * as _faire_auth_core_types32 from "@faire-auth/core/types";
3
+ import * as hono36 from "hono";
4
4
 
5
5
  //#region src/plugins/bearer/index.d.ts
6
6
  interface BearerOptions {
@@ -20,12 +20,12 @@ declare const bearer: (options?: BearerOptions) => {
20
20
  id: "bearer";
21
21
  hooks: {
22
22
  before: {
23
- matcher: (ctx: hono41.Context<ContextVars<any>, any, {}>) => boolean;
24
- handler: (_opts: _faire_auth_core_types37.FaireAuthOptions<any>) => (ctx: hono41.Context<ContextVars<object>, string, {}>) => Promise<void>;
23
+ matcher: (ctx: hono36.Context<ContextVars<any>, any, {}>) => boolean;
24
+ handler: (_opts: _faire_auth_core_types32.FaireAuthOptions<any>) => (ctx: hono36.Context<ContextVars<object>, string, {}>) => Promise<void>;
25
25
  }[];
26
26
  after: {
27
- matcher: (_ctx: hono41.Context<ContextVars<any>, any, {}>) => true;
28
- handler: (_opts: _faire_auth_core_types37.FaireAuthOptions<any>) => (ctx: hono41.Context<ContextVars<object>, string, {}>) => Promise<void>;
27
+ matcher: (_ctx: hono36.Context<ContextVars<any>, any, {}>) => true;
28
+ handler: (_opts: _faire_auth_core_types32.FaireAuthOptions<any>) => (ctx: hono36.Context<ContextVars<object>, string, {}>) => Promise<void>;
29
29
  }[];
30
30
  };
31
31
  };