faire-auth 1.0.1 → 1.0.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.
Files changed (73) 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 +1 -1
  8. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  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 +12 -12
  22. package/dist/client/lynx/index.d.mts +12 -12
  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 +16 -16
  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 +13 -13
  30. package/dist/client/svelte/index.d.mts +26 -26
  31. package/dist/client/vue/index.d.cts +12 -12
  32. package/dist/client/vue/index.d.mts +10 -10
  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-DCuvAh3N.d.mts → index-4PEF72Mq.d.cts} +15 -15
  38. package/dist/{index-CL5oW5Uh.d.cts → index-BCzB3uDD.d.cts} +791 -791
  39. package/dist/{index-ClFGA8tb.d.mts → index-Bw8dyZTc.d.cts} +2 -2
  40. package/dist/{index-BfbDrljm.d.cts → index-C0b8eC8h.d.mts} +17 -17
  41. package/dist/{index-DK2ECcVe.d.mts → index-CrmLTEj8.d.mts} +232 -232
  42. package/dist/{index-ztVZPQdV.d.mts → index-Dfgobqa-.d.mts} +6 -6
  43. package/dist/index.d.cts +1 -1
  44. package/dist/index.d.mts +1 -1
  45. package/dist/integrations/next-js.d.cts +4 -4
  46. package/dist/integrations/next-js.d.mts +5 -5
  47. package/dist/integrations/node.d.cts +1 -1
  48. package/dist/integrations/node.d.mts +1 -1
  49. package/dist/integrations/react-start.d.cts +4 -4
  50. package/dist/integrations/react-start.d.mts +5 -5
  51. package/dist/integrations/svelte-kit.d.cts +5 -5
  52. package/dist/integrations/svelte-kit.d.mts +5 -5
  53. package/dist/oauth2/index.d.cts +1 -1
  54. package/dist/oauth2/index.d.mts +1 -1
  55. package/dist/plugins/bearer/index.d.cts +2 -2
  56. package/dist/plugins/bearer/index.d.mts +2 -2
  57. package/dist/plugins/index.d.cts +262 -262
  58. package/dist/plugins/index.d.mts +348 -348
  59. package/dist/plugins/passkey/index.d.cts +2 -2
  60. package/dist/plugins/passkey/index.d.mts +2 -2
  61. package/dist/test-utils/index.d.cts +268 -268
  62. package/dist/test-utils/index.d.mts +997 -997
  63. package/dist/types/index.d.cts +1 -1
  64. package/dist/types/index.d.mts +1 -1
  65. package/dist/utils/cookies.d.cts +1 -1
  66. package/dist/utils/cookies.d.mts +1 -1
  67. package/package.json +2 -2
  68. package/dist/index-BC42NdCJ.d.mts +0 -992
  69. package/dist/index-BNCikaaH.d.cts +0 -13350
  70. package/dist/index-BotKDRUI.d.mts +0 -13350
  71. package/dist/index-Dsua4U8w.d.cts +0 -33
  72. package/dist/index-KQ5RLFjm.d.cts +0 -33
  73. package/dist/index-w-IdIOQJ.d.cts +0 -992
@@ -1,9 +1,9 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BotKDRUI.mjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-CrmLTEj8.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono41 from "hono";
4
+ import * as hono33 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _better_fetch_fetch19 from "@better-fetch/fetch";
6
+ import * as _better_fetch_fetch0 from "@better-fetch/fetch";
7
7
  import { BetterFetchError } from "@better-fetch/fetch";
8
8
  import { Accessor } from "solid-js";
9
9
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
@@ -12,9 +12,9 @@ export * from "nanostores";
12
12
 
13
13
  //#region src/client/solid/index.d.ts
14
14
  type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends FaireAuthClientPlugin ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Accessor<ReturnType<Atoms[key]["get"]>> } : {} : {} : {} : {};
15
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono41.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
15
+ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono33.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
16
16
  useSession: () => Accessor<{
17
- data: App extends Hono<any, infer S_1 extends hono41.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
17
+ data: App extends Hono<any, infer S_1 extends hono33.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
18
18
  success: true;
19
19
  })["data"] : never;
20
20
  isPending: boolean;
@@ -22,18 +22,18 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
22
22
  error: BetterFetchError | null;
23
23
  }>;
24
24
  $Infer: {
25
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono41.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
25
+ Session: NonNullable<App extends Hono<any, infer S_1 extends hono33.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
26
26
  success: true;
27
27
  })["data"] : never>;
28
28
  };
29
- $fetch: _better_fetch_fetch19.BetterFetch<{
30
- plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
29
+ $fetch: _better_fetch_fetch0.BetterFetch<{
30
+ plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
31
31
  id: string;
32
32
  name: string;
33
33
  hooks: {};
34
34
  })[];
35
35
  method: string;
36
- output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
36
+ output?: _better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File;
37
37
  query?: any;
38
38
  baseURL: string;
39
39
  headers?: HeadersInit & (HeadersInit | {
@@ -67,23 +67,23 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
67
67
  referrer?: string;
68
68
  referrerPolicy?: ReferrerPolicy;
69
69
  signal?: AbortSignal | null;
70
- onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
70
+ onRetry?: (response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void;
71
71
  hookOptions?: {
72
72
  cloneResponse?: boolean;
73
73
  };
74
74
  timeout?: number;
75
75
  duplex?: "full" | "half";
76
76
  jsonParser: (text: string) => Promise<any> | any;
77
- retry?: _better_fetch_fetch19.RetryOptions;
77
+ retry?: _better_fetch_fetch0.RetryOptions;
78
78
  retryAttempt?: number;
79
- errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
79
+ errorSchema?: _better_fetch_fetch0.StandardSchemaV1;
80
80
  disableValidation?: boolean;
81
- defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
82
- defaultError?: _better_fetch_fetch19.StandardSchemaV1;
83
81
  catchAllError?: boolean;
84
- schema?: _better_fetch_fetch19.Schema;
82
+ defaultOutput?: _better_fetch_fetch0.StandardSchemaV1;
83
+ defaultError?: _better_fetch_fetch0.StandardSchemaV1;
84
+ schema?: _better_fetch_fetch0.Schema;
85
85
  customFetchImpl: any;
86
- }, unknown, unknown, _better_fetch_fetch19.Schema>;
86
+ }, unknown, unknown, _better_fetch_fetch0.Schema>;
87
87
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
88
88
  };
89
89
  //#endregion
@@ -1,23 +1,23 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BNCikaaH.cjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BCzB3uDD.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import * as _faire_auth_core_types41 from "@faire-auth/core/types";
4
4
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
5
- import * as hono49 from "hono";
5
+ import * as hono64 from "hono";
6
6
  import { Hono } from "hono";
7
- import * as _faire_auth_core_db5 from "@faire-auth/core/db";
7
+ import * as _faire_auth_core_db7 from "@faire-auth/core/db";
8
8
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
9
9
  import * as _better_fetch_fetch29 from "@better-fetch/fetch";
10
10
  import { BetterFetchError } from "@better-fetch/fetch";
11
- import * as nanostores8 from "nanostores";
11
+ import * as nanostores5 from "nanostores";
12
12
  import { Atom } from "nanostores";
13
13
  export * from "@better-fetch/fetch";
14
14
  export * from "nanostores";
15
15
 
16
16
  //#region src/client/svelte/index.d.ts
17
17
  type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends FaireAuthClientPlugin ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key] } : {} : {} : {} : {};
18
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono49.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
18
+ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono64.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
19
19
  useSession: () => Atom<{
20
- data: App extends Hono<any, infer S_1 extends hono49.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
20
+ data: App extends Hono<any, infer S_1 extends hono64.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
21
21
  success: true;
22
22
  })["data"] : never;
23
23
  error: BetterFetchError | null;
@@ -76,9 +76,9 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
76
76
  retryAttempt?: number;
77
77
  errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
78
78
  disableValidation?: boolean;
79
+ catchAllError?: boolean;
79
80
  defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
80
81
  defaultError?: _better_fetch_fetch29.StandardSchemaV1;
81
- catchAllError?: boolean;
82
82
  schema?: _better_fetch_fetch29.Schema;
83
83
  customFetchImpl: any;
84
84
  }, unknown, unknown, _better_fetch_fetch29.Schema>;
@@ -86,21 +86,21 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
86
86
  notify: (signal?: _faire_auth_core_types41.LiteralStringUnion<"$sessionSignal">) => void;
87
87
  listen: (signal: _faire_auth_core_types41.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
88
88
  atoms: {
89
- session: nanostores8.PreinitializedWritableAtom<{
89
+ session: nanostores5.PreinitializedWritableAtom<{
90
90
  data: {
91
- user: _faire_auth_core_db5.User;
92
- session: _faire_auth_core_db5.Session;
91
+ user: _faire_auth_core_db7.User;
92
+ session: _faire_auth_core_db7.Session;
93
93
  } | null;
94
94
  error: BetterFetchError | null;
95
95
  isPending: boolean;
96
96
  isRefetching: boolean;
97
97
  refetch: () => void;
98
98
  }> & object;
99
- $sessionSignal: nanostores8.PreinitializedWritableAtom<boolean> & object;
100
- } & Record<string, nanostores8.WritableAtom<any>>;
99
+ $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
100
+ } & Record<string, nanostores5.WritableAtom<any>>;
101
101
  };
102
102
  $Infer: {
103
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono49.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
103
+ Session: NonNullable<App extends Hono<any, infer S_1 extends hono64.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
104
104
  success: true;
105
105
  })["data"] : never>;
106
106
  };
@@ -1,37 +1,37 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BotKDRUI.mjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-CrmLTEj8.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono35 from "hono";
4
+ import * as hono39 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _faire_auth_core_db0 from "@faire-auth/core/db";
7
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
6
+ import * as _faire_auth_core_db1 from "@faire-auth/core/db";
7
+ import * as _better_fetch_fetch19 from "@better-fetch/fetch";
8
8
  import { BetterFetchError } from "@better-fetch/fetch";
9
- import * as nanostores0 from "nanostores";
9
+ import * as nanostores2 from "nanostores";
10
10
  import { Atom } from "nanostores";
11
- import * as _faire_auth_core_types33 from "@faire-auth/core/types";
11
+ import * as _faire_auth_core_types34 from "@faire-auth/core/types";
12
12
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
13
13
  export * from "@better-fetch/fetch";
14
14
  export * from "nanostores";
15
15
 
16
16
  //#region src/client/svelte/index.d.ts
17
17
  type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends FaireAuthClientPlugin ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => Atoms[key] } : {} : {} : {} : {};
18
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono35.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
18
+ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono39.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
19
19
  useSession: () => Atom<{
20
- data: App extends Hono<any, infer S_1 extends hono35.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
20
+ data: App extends Hono<any, infer S_1 extends hono39.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
21
21
  success: true;
22
22
  })["data"] : never;
23
23
  error: BetterFetchError | null;
24
24
  isPending: boolean;
25
25
  isRefetching: boolean;
26
26
  }>;
27
- $fetch: _better_fetch_fetch0.BetterFetch<{
28
- plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
27
+ $fetch: _better_fetch_fetch19.BetterFetch<{
28
+ plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
29
29
  id: string;
30
30
  name: string;
31
31
  hooks: {};
32
32
  })[];
33
33
  method: string;
34
- output?: _better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File;
34
+ output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
35
35
  query?: any;
36
36
  baseURL: string;
37
37
  headers?: HeadersInit & (HeadersInit | {
@@ -65,42 +65,42 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
65
65
  referrer?: string;
66
66
  referrerPolicy?: ReferrerPolicy;
67
67
  signal?: AbortSignal | null;
68
- onRetry?: (response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void;
68
+ onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
69
69
  hookOptions?: {
70
70
  cloneResponse?: boolean;
71
71
  };
72
72
  timeout?: number;
73
73
  duplex?: "full" | "half";
74
74
  jsonParser: (text: string) => Promise<any> | any;
75
- retry?: _better_fetch_fetch0.RetryOptions;
75
+ retry?: _better_fetch_fetch19.RetryOptions;
76
76
  retryAttempt?: number;
77
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1;
77
+ errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
78
78
  disableValidation?: boolean;
79
- defaultOutput?: _better_fetch_fetch0.StandardSchemaV1;
80
- defaultError?: _better_fetch_fetch0.StandardSchemaV1;
81
79
  catchAllError?: boolean;
82
- schema?: _better_fetch_fetch0.Schema;
80
+ defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
81
+ defaultError?: _better_fetch_fetch19.StandardSchemaV1;
82
+ schema?: _better_fetch_fetch19.Schema;
83
83
  customFetchImpl: any;
84
- }, unknown, unknown, _better_fetch_fetch0.Schema>;
84
+ }, unknown, unknown, _better_fetch_fetch19.Schema>;
85
85
  $store: {
86
- notify: (signal?: _faire_auth_core_types33.LiteralStringUnion<"$sessionSignal">) => void;
87
- listen: (signal: _faire_auth_core_types33.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
86
+ notify: (signal?: _faire_auth_core_types34.LiteralStringUnion<"$sessionSignal">) => void;
87
+ listen: (signal: _faire_auth_core_types34.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
88
88
  atoms: {
89
- session: nanostores0.PreinitializedWritableAtom<{
89
+ session: nanostores2.PreinitializedWritableAtom<{
90
90
  data: {
91
- user: _faire_auth_core_db0.User;
92
- session: _faire_auth_core_db0.Session;
91
+ user: _faire_auth_core_db1.User;
92
+ session: _faire_auth_core_db1.Session;
93
93
  } | null;
94
94
  error: BetterFetchError | null;
95
95
  isPending: boolean;
96
96
  isRefetching: boolean;
97
97
  refetch: () => void;
98
98
  }> & object;
99
- $sessionSignal: nanostores0.PreinitializedWritableAtom<boolean> & object;
100
- } & Record<string, nanostores0.WritableAtom<any>>;
99
+ $sessionSignal: nanostores2.PreinitializedWritableAtom<boolean> & object;
100
+ } & Record<string, nanostores2.WritableAtom<any>>;
101
101
  };
102
102
  $Infer: {
103
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono35.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
103
+ Session: NonNullable<App extends Hono<any, infer S_1 extends hono39.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
104
104
  success: true;
105
105
  })["data"] : never>;
106
106
  };
@@ -1,14 +1,14 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BNCikaaH.cjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BCzB3uDD.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types39 from "@faire-auth/core/types";
3
+ import * as _faire_auth_core_types37 from "@faire-auth/core/types";
4
4
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
5
5
  import * as hono45 from "hono";
6
6
  import { Hono } from "hono";
7
- import * as _faire_auth_core_db3 from "@faire-auth/core/db";
7
+ import * as _faire_auth_core_db1 from "@faire-auth/core/db";
8
8
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
9
9
  import * as _better_fetch_fetch19 from "@better-fetch/fetch";
10
10
  import { BetterFetchError } from "@better-fetch/fetch";
11
- import * as nanostores5 from "nanostores";
11
+ import * as nanostores2 from "nanostores";
12
12
  import { DeepReadonly, Ref } from "vue";
13
13
  export * from "@better-fetch/fetch";
14
14
  export * from "nanostores";
@@ -94,28 +94,28 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
94
94
  retryAttempt?: number;
95
95
  errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
96
96
  disableValidation?: boolean;
97
+ catchAllError?: boolean;
97
98
  defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
98
99
  defaultError?: _better_fetch_fetch19.StandardSchemaV1;
99
- catchAllError?: boolean;
100
100
  schema?: _better_fetch_fetch19.Schema;
101
101
  customFetchImpl: any;
102
102
  }, unknown, unknown, _better_fetch_fetch19.Schema>;
103
103
  $store: {
104
- notify: (signal?: _faire_auth_core_types39.LiteralStringUnion<"$sessionSignal">) => void;
105
- listen: (signal: _faire_auth_core_types39.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
104
+ notify: (signal?: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">) => void;
105
+ listen: (signal: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
106
106
  atoms: {
107
- session: nanostores5.PreinitializedWritableAtom<{
107
+ session: nanostores2.PreinitializedWritableAtom<{
108
108
  data: {
109
- user: _faire_auth_core_db3.User;
110
- session: _faire_auth_core_db3.Session;
109
+ user: _faire_auth_core_db1.User;
110
+ session: _faire_auth_core_db1.Session;
111
111
  } | null;
112
112
  error: BetterFetchError | null;
113
113
  isPending: boolean;
114
114
  isRefetching: boolean;
115
115
  refetch: () => void;
116
116
  }> & object;
117
- $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
118
- } & Record<string, nanostores5.WritableAtom<any>>;
117
+ $sessionSignal: nanostores2.PreinitializedWritableAtom<boolean> & object;
118
+ } & Record<string, nanostores2.WritableAtom<any>>;
119
119
  };
120
120
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
121
121
  };
@@ -1,24 +1,24 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-BotKDRUI.mjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-CrmLTEj8.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono44 from "hono";
4
+ import * as hono42 from "hono";
5
5
  import { Hono } from "hono";
6
6
  import * as _faire_auth_core_db3 from "@faire-auth/core/db";
7
7
  import * as _better_fetch_fetch29 from "@better-fetch/fetch";
8
8
  import { BetterFetchError } from "@better-fetch/fetch";
9
9
  import * as nanostores5 from "nanostores";
10
10
  import { DeepReadonly, Ref } from "vue";
11
- import * as _faire_auth_core_types37 from "@faire-auth/core/types";
11
+ import * as _faire_auth_core_types36 from "@faire-auth/core/types";
12
12
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
13
13
  export * from "@better-fetch/fetch";
14
14
  export * from "nanostores";
15
15
 
16
16
  //#region src/client/vue/index.d.ts
17
17
  type InferResolvedHooks<O extends ClientOptions> = O["plugins"] extends Array<infer Plugin> ? Plugin extends FaireAuthClientPlugin ? Plugin["getAtoms"] extends ((fetch: any) => infer Atoms) ? Atoms extends Record<string, any> ? { [key in keyof Atoms as IsSignal<key> extends true ? never : key extends string ? `use${Capitalize<key>}` : never]: () => DeepReadonly<Ref<ReturnType<Atoms[key]["get"]>>> } : {} : {} : {} : {};
18
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono44.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
18
+ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono42.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
19
19
  useSession: {
20
20
  (): DeepReadonly<Ref<{
21
- data: App extends Hono<any, infer S_1 extends hono44.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
21
+ data: App extends Hono<any, infer S_1 extends hono42.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
22
22
  success: true;
23
23
  })["data"] : never;
24
24
  isPending: boolean;
@@ -26,7 +26,7 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
26
26
  error: BetterFetchError | null;
27
27
  }>>;
28
28
  <F extends (...args: any) => any>(useFetch: F): Promise<{
29
- data: Ref<App extends Hono<any, infer S_1 extends hono44.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
29
+ data: Ref<App extends Hono<any, infer S_1 extends hono42.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
30
30
  success: true;
31
31
  })["data"] : never>;
32
32
  isPending: false;
@@ -38,7 +38,7 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
38
38
  }>;
39
39
  };
40
40
  $Infer: {
41
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono44.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
41
+ Session: NonNullable<App extends Hono<any, infer S_1 extends hono42.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
42
42
  success: true;
43
43
  })["data"] : never>;
44
44
  };
@@ -94,15 +94,15 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
94
94
  retryAttempt?: number;
95
95
  errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
96
96
  disableValidation?: boolean;
97
+ catchAllError?: boolean;
97
98
  defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
98
99
  defaultError?: _better_fetch_fetch29.StandardSchemaV1;
99
- catchAllError?: boolean;
100
100
  schema?: _better_fetch_fetch29.Schema;
101
101
  customFetchImpl: any;
102
102
  }, unknown, unknown, _better_fetch_fetch29.Schema>;
103
103
  $store: {
104
- notify: (signal?: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">) => void;
105
- listen: (signal: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
104
+ notify: (signal?: _faire_auth_core_types36.LiteralStringUnion<"$sessionSignal">) => void;
105
+ listen: (signal: _faire_auth_core_types36.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
106
106
  atoms: {
107
107
  session: nanostores5.PreinitializedWritableAtom<{
108
108
  data: {
@@ -1,5 +1,5 @@
1
1
  import { t as ContextVars } from "../hono-DOM31WQz.cjs";
2
- import * as _faire_auth_core_types29 from "@faire-auth/core/types";
2
+ import * as _faire_auth_core_types32 from "@faire-auth/core/types";
3
3
  import { Context } from "hono";
4
4
  export * from "@faire-auth/core/crypto";
5
5
 
@@ -14,7 +14,7 @@ declare const checkPassword: <T extends object>(userId: string, ctx: Context<Con
14
14
  password?: string;
15
15
  };
16
16
  };
17
- }>) => Promise<true | _faire_auth_core_types29.JSONRespondReturn<{
17
+ }>) => Promise<true | _faire_auth_core_types32.JSONRespondReturn<{
18
18
  success: false;
19
19
  message: string;
20
20
  }, 400>>;
@@ -1,6 +1,6 @@
1
1
  import { t as ContextVars } from "../hono-D0VqxVy1.mjs";
2
2
  import { Context } from "hono";
3
- import * as _faire_auth_core_types30 from "@faire-auth/core/types";
3
+ import * as _faire_auth_core_types29 from "@faire-auth/core/types";
4
4
  export * from "@faire-auth/core/crypto";
5
5
 
6
6
  //#region src/crypto/index.d.ts
@@ -14,7 +14,7 @@ declare const checkPassword: <T extends object>(userId: string, ctx: Context<Con
14
14
  password?: string;
15
15
  };
16
16
  };
17
- }>) => Promise<true | _faire_auth_core_types30.JSONRespondReturn<{
17
+ }>) => Promise<true | _faire_auth_core_types29.JSONRespondReturn<{
18
18
  success: false;
19
19
  message: string;
20
20
  }, 400>>;
@@ -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-BNCikaaH.cjs";
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-BCzB3uDD.cjs";
2
2
  import "../hono-DOM31WQz.cjs";
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,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-CrmLTEj8.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-DK2ECcVe.mjs";
2
- import { t as ContextVars } from "./hono-D0VqxVy1.mjs";
3
- import * as hono48 from "hono";
4
- import * as z$1 from "zod";
1
+ import { tn as AuthEndpoint, vt as InferOptionSchema } from "./index-BCzB3uDD.cjs";
2
+ import { t as ContextVars } from "./hono-DOM31WQz.cjs";
3
+ import * as _faire_auth_core_types39 from "@faire-auth/core/types";
4
+ import * as hono49 from "hono";
5
5
  import * as _faire_auth_core_db3 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_types39 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: hono48.Context<ContextVars<{
188
+ middleware: [(ctx: hono49.Context<ContextVars<{
189
189
  session: {
190
190
  session: _faire_auth_core_db3.Session;
191
191
  user: _faire_auth_core_db3.User;
192
192
  };
193
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.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;
@@ -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: hono48.Context<ContextVars<{
385
+ middleware: [(ctx: hono49.Context<ContextVars<{
386
386
  session: {
387
387
  session: _faire_auth_core_db3.Session;
388
388
  user: _faire_auth_core_db3.User;
389
389
  };
390
- }>, string, {}>, next: hono48.Next) => Promise<void | (Response & hono48.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;
@@ -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: 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: hono48.Next) => Promise<void | (Response & hono48.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: hono48.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: hono48.Next) => Promise<void | (Response & hono48.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: hono48.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: hono48.Next) => Promise<void | (Response & hono48.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;