faire-auth 1.0.3 → 1.0.4

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 (76) 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 +1 -1
  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 +26 -26
  27. package/dist/client/solid/index.d.cts +1 -1
  28. package/dist/client/solid/index.d.mts +5 -5
  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 +27 -27
  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-Baarsq5J.d.mts → index--DLiUhEn.d.mts} +6 -6
  38. package/dist/{index-BCTFWP_o.d.mts → index-B4bqEDYG.d.mts} +1 -1
  39. package/dist/{index-f-5OJ9yV.d.cts → index-Boa0SV4h.d.cts} +300 -300
  40. package/dist/{index-rFv8Hxld.d.mts → index-Bykgiq3o.d.cts} +638 -638
  41. package/dist/{index-ztVZPQdV.d.mts → index-ClFGA8tb.d.mts} +6 -6
  42. package/dist/{index-By364WbF.d.cts → index-ClOM0wFf.d.cts} +15 -15
  43. package/dist/{index-CzidsAyA.d.mts → index-CsxNfGAV.d.mts} +354 -354
  44. package/dist/{index-BzWwMgxr.d.cts → index-DKnO_Zfm.d.cts} +9 -9
  45. package/dist/{index-CJD2yB-W.d.cts → index-DRYO4mGd.d.cts} +6 -6
  46. package/dist/{index-DvW-GCcI.d.cts → index-Dsua4U8w.d.cts} +6 -6
  47. package/dist/{index-CsWF3f7U.d.cts → index-DxXFCG2_.d.mts} +378 -378
  48. package/dist/{index-BVRfQy6L.d.mts → index-gtCVvDvC.d.mts} +15 -15
  49. package/dist/index.cjs +1 -1
  50. package/dist/index.d.cts +1 -1
  51. package/dist/index.d.mts +1 -1
  52. package/dist/index.mjs +1 -1
  53. package/dist/integrations/next-js.d.cts +1 -1
  54. package/dist/integrations/next-js.d.mts +5 -5
  55. package/dist/integrations/node.d.cts +1 -1
  56. package/dist/integrations/node.d.mts +1 -1
  57. package/dist/integrations/react-start.d.cts +5 -5
  58. package/dist/integrations/react-start.d.mts +5 -5
  59. package/dist/integrations/svelte-kit.d.cts +5 -5
  60. package/dist/integrations/svelte-kit.d.mts +5 -5
  61. package/dist/oauth2/index.d.cts +1 -1
  62. package/dist/oauth2/index.d.mts +1 -1
  63. package/dist/plugins/bearer/index.d.cts +2 -2
  64. package/dist/plugins/bearer/index.d.mts +2 -2
  65. package/dist/plugins/index.d.cts +348 -348
  66. package/dist/plugins/index.d.mts +181 -181
  67. package/dist/plugins/passkey/index.d.cts +2 -2
  68. package/dist/plugins/passkey/index.d.mts +2 -2
  69. package/dist/test-utils/index.cjs +1 -1
  70. package/dist/test-utils/index.d.cts +743 -743
  71. package/dist/test-utils/index.mjs +1 -1
  72. package/dist/types/index.d.cts +1 -1
  73. package/dist/types/index.d.mts +1 -1
  74. package/dist/utils/cookies.d.cts +1 -1
  75. package/dist/utils/cookies.d.mts +1 -1
  76. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions$1, gn as Where$1, hn as TransactionAdapter, un as AdapterSchemaCreation } from "../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions$1, gn as Where$1, hn as TransactionAdapter, un as AdapterSchemaCreation } from "../index-Boa0SV4h.cjs";
2
2
  import "../hono-DOM31WQz.cjs";
3
3
  import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig } from "@faire-auth/core/db/adapter";
4
4
  import { Prettify } from "@faire-auth/core/types";
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions$1, gn as Where$1, hn as TransactionAdapter, un as AdapterSchemaCreation } from "../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions$1, gn as Where$1, hn as TransactionAdapter, un as AdapterSchemaCreation } from "../index-DxXFCG2_.mjs";
2
2
  import "../hono-D0VqxVy1.mjs";
3
3
  import { DBFieldAttribute, FaireAuthDBSchema } from "@faire-auth/core/db";
4
4
  import { CustomAdapter as CustomAdapter$1, DBAdapter, DBAdapterFactoryConfig } from "@faire-auth/core/db/adapter";
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions, Wt as KyselyDatabaseType } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions, Wt as KyselyDatabaseType } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
  import { Kysely } from "kysely";
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions, Wt as KyselyDatabaseType } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions, Wt as KyselyDatabaseType } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { Kysely } from "kysely";
4
4
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
@@ -1,7 +1,7 @@
1
- import { I as FaireAuthOptions } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
- import * as _faire_auth_core_db22 from "@faire-auth/core/db";
4
+ import * as _faire_auth_core_db13 from "@faire-auth/core/db";
5
5
 
6
6
  //#region src/adapters/memory-adapter/memory-adapter.d.ts
7
7
  interface MemoryDB {
@@ -10,6 +10,6 @@ interface MemoryDB {
10
10
  interface MemoryAdapterConfig {
11
11
  debugLogs?: DBAdapterDebugLogOption;
12
12
  }
13
- declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: FaireAuthOptions) => _faire_auth_core_db22.DBAdapter<FaireAuthOptions>;
13
+ declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: FaireAuthOptions) => _faire_auth_core_db13.DBAdapter<FaireAuthOptions>;
14
14
  //#endregion
15
15
  export { MemoryAdapterConfig, MemoryDB, memoryAdapter };
@@ -1,6 +1,6 @@
1
- import { I as FaireAuthOptions } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
- import * as _faire_auth_core_db15 from "@faire-auth/core/db";
3
+ import * as _faire_auth_core_db20 from "@faire-auth/core/db";
4
4
  import { DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
5
5
 
6
6
  //#region src/adapters/memory-adapter/memory-adapter.d.ts
@@ -10,6 +10,6 @@ interface MemoryDB {
10
10
  interface MemoryAdapterConfig {
11
11
  debugLogs?: DBAdapterDebugLogOption;
12
12
  }
13
- declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: FaireAuthOptions) => _faire_auth_core_db15.DBAdapter<FaireAuthOptions>;
13
+ declare const memoryAdapter: (db: MemoryDB, config?: MemoryAdapterConfig) => (options: FaireAuthOptions) => _faire_auth_core_db20.DBAdapter<FaireAuthOptions>;
14
14
  //#endregion
15
15
  export { MemoryAdapterConfig, MemoryDB, memoryAdapter };
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
  import { Db, MongoClient } from "mongodb";
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
  import { Db, MongoClient } from "mongodb";
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { DBAdapter, DBAdapterDebugLogOption } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../index-Boa0SV4h.cjs";
2
2
  import "../hono-DOM31WQz.cjs";
3
3
  import { DBAdapter } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../index-DxXFCG2_.mjs";
2
2
  import "../hono-D0VqxVy1.mjs";
3
3
  import { DBAdapter } from "@faire-auth/core/db/adapter";
4
4
 
@@ -1,3 +1,3 @@
1
- import { H as InferApp, U as InferClient, V as InferAPI, m as router } from "../index-CsWF3f7U.cjs";
1
+ import { H as InferApp, U as InferClient, V as InferAPI, m as router } from "../index-Boa0SV4h.cjs";
2
2
  import "../hono-DOM31WQz.cjs";
3
3
  export { InferAPI, InferApp, InferClient, router };
@@ -1,3 +1,3 @@
1
- import { H as InferApp, U as InferClient, V as InferAPI, m as router } from "../index-rFv8Hxld.mjs";
1
+ import { H as InferApp, U as InferClient, V as InferAPI, m as router } from "../index-DxXFCG2_.mjs";
2
2
  import "../hono-D0VqxVy1.mjs";
3
3
  export { InferAPI, InferApp, InferClient, router };
@@ -1,6 +1,6 @@
1
- import { G as getSessionFromCtx, J as sessionMiddleware, K as requestOnlySessionMiddleware, W as freshSessionMiddleware, q as sensitiveSessionMiddleware } from "../../index-CsWF3f7U.cjs";
1
+ import { G as getSessionFromCtx, J as sessionMiddleware, K as requestOnlySessionMiddleware, W as freshSessionMiddleware, q as sensitiveSessionMiddleware } from "../../index-Boa0SV4h.cjs";
2
2
  import { t as ContextVars } from "../../hono-DOM31WQz.cjs";
3
- import * as hono103 from "hono";
3
+ import * as hono129 from "hono";
4
4
  import { Context } from "hono";
5
5
 
6
6
  //#region src/api/middleware/origin-check.d.ts
@@ -11,6 +11,6 @@ import { Context } from "hono";
11
11
  * @param getValue - Function to get the callback URL(s) from the context.
12
12
  * @returns The middleware function.
13
13
  */
14
- declare const originCheck: (getValue: <V extends object>(ctx: Context<ContextVars<V>>) => string | string[] | undefined | Promise<string | string[] | undefined>) => (ctx: Context<ContextVars<object>, string, {}>, next: hono103.Next) => Promise<void | Response>;
14
+ declare const originCheck: (getValue: <V extends object>(ctx: Context<ContextVars<V>>) => string | string[] | undefined | Promise<string | string[] | undefined>) => (ctx: Context<ContextVars<object>, string, {}>, next: hono129.Next) => Promise<void | Response>;
15
15
  //#endregion
16
16
  export { freshSessionMiddleware, getSessionFromCtx, originCheck, requestOnlySessionMiddleware, sensitiveSessionMiddleware, sessionMiddleware };
@@ -1,6 +1,6 @@
1
- import { G as getSessionFromCtx, J as sessionMiddleware, K as requestOnlySessionMiddleware, W as freshSessionMiddleware, q as sensitiveSessionMiddleware } from "../../index-rFv8Hxld.mjs";
1
+ import { G as getSessionFromCtx, J as sessionMiddleware, K as requestOnlySessionMiddleware, W as freshSessionMiddleware, q as sensitiveSessionMiddleware } from "../../index-DxXFCG2_.mjs";
2
2
  import { t as ContextVars } from "../../hono-D0VqxVy1.mjs";
3
- import * as hono70 from "hono";
3
+ import * as hono100 from "hono";
4
4
  import { Context } from "hono";
5
5
 
6
6
  //#region src/api/middleware/origin-check.d.ts
@@ -11,6 +11,6 @@ import { Context } from "hono";
11
11
  * @param getValue - Function to get the callback URL(s) from the context.
12
12
  * @returns The middleware function.
13
13
  */
14
- declare const originCheck: (getValue: <V extends object>(ctx: Context<ContextVars<V>>) => string | string[] | undefined | Promise<string | string[] | undefined>) => (ctx: Context<ContextVars<object>, string, {}>, next: hono70.Next) => Promise<void | Response>;
14
+ declare const originCheck: (getValue: <V extends object>(ctx: Context<ContextVars<V>>) => string | string[] | undefined | Promise<string | string[] | undefined>) => (ctx: Context<ContextVars<object>, string, {}>, next: hono100.Next) => Promise<void | Response>;
15
15
  //#endregion
16
16
  export { freshSessionMiddleware, getSessionFromCtx, originCheck, requestOnlySessionMiddleware, sensitiveSessionMiddleware, sessionMiddleware };
@@ -1,4 +1,4 @@
1
- import { $ as Client, I as FaireAuthOptions, Q as CamelCase, X as createAuthClient, Y as InferResolvedHooks, Z as AtomListener, _t as FaireAuthPlugin, at as InferAdditionalAsClient, ct as InferPluginsFromClient, dt as IsSignal, et as ClientOptions, ft as RevalidateOptions, ht as FetchOptions, it as InferActions, lt as InferSessionFromClient, mt as Store, nt as FaireAuthClientPlugin, ot as InferAdditionalFromClient, pt as SessionQueryParams, rt as Inc, st as InferErrorCodes, tt as CreateSchemaType, ut as InferUserFromClient } from "../index-CsWF3f7U.cjs";
1
+ import { $ as Client, I as FaireAuthOptions, Q as CamelCase, X as createAuthClient, Y as InferResolvedHooks, Z as AtomListener, _t as FaireAuthPlugin, at as InferAdditionalAsClient, ct as InferPluginsFromClient, dt as IsSignal, et as ClientOptions, ft as RevalidateOptions, ht as FetchOptions, it as InferActions, lt as InferSessionFromClient, mt as Store, nt as FaireAuthClientPlugin, ot as InferAdditionalFromClient, pt as SessionQueryParams, rt as Inc, st as InferErrorCodes, tt as CreateSchemaType, ut as InferUserFromClient } from "../index-Boa0SV4h.cjs";
2
2
  import "../hono-DOM31WQz.cjs";
3
3
  import { t as index_d_exports } from "../index-BDhhaE6Y.cjs";
4
4
  import { BetterFetch, BetterFetchError, BetterFetchOption } from "@better-fetch/fetch";
@@ -1,4 +1,4 @@
1
- import { $ as Client, I as FaireAuthOptions, Q as CamelCase, X as createAuthClient, Y as InferResolvedHooks, Z as AtomListener, _t as FaireAuthPlugin, at as InferAdditionalAsClient, ct as InferPluginsFromClient, dt as IsSignal, et as ClientOptions, ft as RevalidateOptions, ht as FetchOptions, it as InferActions, lt as InferSessionFromClient, mt as Store, nt as FaireAuthClientPlugin, ot as InferAdditionalFromClient, pt as SessionQueryParams, rt as Inc, st as InferErrorCodes, tt as CreateSchemaType, ut as InferUserFromClient } from "../index-rFv8Hxld.mjs";
1
+ import { $ as Client, I as FaireAuthOptions, Q as CamelCase, X as createAuthClient, Y as InferResolvedHooks, Z as AtomListener, _t as FaireAuthPlugin, at as InferAdditionalAsClient, ct as InferPluginsFromClient, dt as IsSignal, et as ClientOptions, ft as RevalidateOptions, ht as FetchOptions, it as InferActions, lt as InferSessionFromClient, mt as Store, nt as FaireAuthClientPlugin, ot as InferAdditionalFromClient, pt as SessionQueryParams, rt as Inc, st as InferErrorCodes, tt as CreateSchemaType, ut as InferUserFromClient } from "../index-DxXFCG2_.mjs";
2
2
  import "../hono-D0VqxVy1.mjs";
3
3
  import { t as index_d_exports } from "../index-CF9iq55a.mjs";
4
4
  import { BetterFetch, BetterFetchError, BetterFetchOption } from "@better-fetch/fetch";
@@ -1,4 +1,4 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-CsWF3f7U.cjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import * as _faire_auth_core_types32 from "@faire-auth/core/types";
4
4
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
@@ -1,15 +1,15 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-rFv8Hxld.mjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono4 from "hono";
4
+ import * as hono42 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_fetch9 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 { Store, StoreValue } from "nanostores";
11
11
  import { DependencyList } from "@lynx-js/react";
12
- import * as _faire_auth_core_types1 from "@faire-auth/core/types";
12
+ import * as _faire_auth_core_types35 from "@faire-auth/core/types";
13
13
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
14
14
  export * from "@better-fetch/fetch";
15
15
  export * from "nanostores";
@@ -59,9 +59,9 @@ declare function useStore<SomeStore extends Store>(store: SomeStore, options?: U
59
59
  //#region src/client/lynx/index.d.ts
60
60
  declare function capitalizeFirstLetter(str: string): string;
61
61
  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]: () => ReturnType<Atoms[key]["get"]> } : {} : {} : {} : {};
62
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono4.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
62
+ 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> & {
63
63
  useSession: () => {
64
- data: App extends Hono<any, infer S_1 extends hono4.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
64
+ data: App extends Hono<any, infer S_1 extends hono42.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
65
65
  success: true;
66
66
  })["data"] : never;
67
67
  isPending: boolean;
@@ -71,18 +71,18 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
71
71
  }) => void;
72
72
  };
73
73
  $Infer: {
74
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono4.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
74
+ 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"] & {
75
75
  success: true;
76
76
  })["data"] : never>;
77
77
  };
78
- $fetch: _better_fetch_fetch9.BetterFetch<{
79
- plugins: (_better_fetch_fetch9.BetterFetchPlugin | {
78
+ $fetch: _better_fetch_fetch19.BetterFetch<{
79
+ plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
80
80
  id: string;
81
81
  name: string;
82
82
  hooks: {};
83
83
  })[];
84
84
  method: string;
85
- output?: _better_fetch_fetch9.StandardSchemaV1 | typeof Blob | typeof File;
85
+ output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
86
86
  query?: any;
87
87
  baseURL: string;
88
88
  headers?: HeadersInit & (HeadersInit | {
@@ -116,39 +116,39 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
116
116
  referrer?: string;
117
117
  referrerPolicy?: ReferrerPolicy;
118
118
  signal?: AbortSignal | null;
119
- onRetry?: (response: _better_fetch_fetch9.ResponseContext) => Promise<void> | void;
119
+ onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
120
120
  hookOptions?: {
121
121
  cloneResponse?: boolean;
122
122
  };
123
123
  timeout?: number;
124
124
  duplex?: "full" | "half";
125
125
  jsonParser: (text: string) => Promise<any> | any;
126
- retry?: _better_fetch_fetch9.RetryOptions;
126
+ retry?: _better_fetch_fetch19.RetryOptions;
127
127
  retryAttempt?: number;
128
- errorSchema?: _better_fetch_fetch9.StandardSchemaV1;
128
+ errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
129
129
  disableValidation?: boolean;
130
- defaultOutput?: _better_fetch_fetch9.StandardSchemaV1;
131
- defaultError?: _better_fetch_fetch9.StandardSchemaV1;
130
+ defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
131
+ defaultError?: _better_fetch_fetch19.StandardSchemaV1;
132
132
  catchAllError?: boolean;
133
- schema?: _better_fetch_fetch9.Schema;
133
+ schema?: _better_fetch_fetch19.Schema;
134
134
  customFetchImpl: any;
135
- }, unknown, unknown, _better_fetch_fetch9.Schema>;
135
+ }, unknown, unknown, _better_fetch_fetch19.Schema>;
136
136
  $store: {
137
- notify: (signal?: _faire_auth_core_types1.LiteralStringUnion<"$sessionSignal">) => void;
138
- listen: (signal: _faire_auth_core_types1.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
137
+ notify: (signal?: _faire_auth_core_types35.LiteralStringUnion<"$sessionSignal">) => void;
138
+ listen: (signal: _faire_auth_core_types35.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
139
139
  atoms: {
140
- session: nanostores0.PreinitializedWritableAtom<{
140
+ session: nanostores2.PreinitializedWritableAtom<{
141
141
  data: {
142
- user: _faire_auth_core_db0.User;
143
- session: _faire_auth_core_db0.Session;
142
+ user: _faire_auth_core_db1.User;
143
+ session: _faire_auth_core_db1.Session;
144
144
  } | null;
145
145
  error: BetterFetchError | null;
146
146
  isPending: boolean;
147
147
  isRefetching: boolean;
148
148
  refetch: () => void;
149
149
  }> & object;
150
- $sessionSignal: nanostores0.PreinitializedWritableAtom<boolean> & object;
151
- } & Record<string, nanostores0.WritableAtom<any>>;
150
+ $sessionSignal: nanostores2.PreinitializedWritableAtom<boolean> & object;
151
+ } & Record<string, nanostores2.WritableAtom<any>>;
152
152
  };
153
153
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
154
154
  };
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-CsWF3f7U.cjs";
1
+ import { I as FaireAuthOptions } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  export * from "@simplewebauthn/server";
4
4
 
@@ -1,4 +1,4 @@
1
- import { I as FaireAuthOptions } from "../../index-rFv8Hxld.mjs";
1
+ import { I as FaireAuthOptions } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  export * from "@simplewebauthn/server";
4
4
 
@@ -1,14 +1,14 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-CsWF3f7U.cjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types36 from "@faire-auth/core/types";
3
+ import * as _faire_auth_core_types35 from "@faire-auth/core/types";
4
4
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
5
- import * as hono42 from "hono";
5
+ import * as hono41 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
- import * as _better_fetch_fetch29 from "@better-fetch/fetch";
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 { Store, StoreValue } from "nanostores";
13
13
  import { DependencyList } from "react";
14
14
  export * from "@better-fetch/fetch";
@@ -59,9 +59,9 @@ declare function useStore<SomeStore extends Store>(store: SomeStore, options?: U
59
59
  //#region src/client/react/index.d.ts
60
60
  declare function capitalizeFirstLetter(str: string): string;
61
61
  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]: () => ReturnType<Atoms[key]["get"]> } : {} : {} : {} : {};
62
- 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> & {
62
+ 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> & {
63
63
  useSession: () => {
64
- data: (App extends Hono<any, infer S_1 extends hono42.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
64
+ data: (App extends Hono<any, infer S_1 extends hono41.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
65
65
  success: true;
66
66
  })["data"] : never) | null;
67
67
  isPending: boolean;
@@ -71,18 +71,18 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
71
71
  }) => void;
72
72
  };
73
73
  $Infer: {
74
- 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"] & {
74
+ 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"] & {
75
75
  success: true;
76
76
  })["data"] : never>;
77
77
  };
78
- $fetch: _better_fetch_fetch29.BetterFetch<{
79
- plugins: (_better_fetch_fetch29.BetterFetchPlugin | {
78
+ $fetch: _better_fetch_fetch19.BetterFetch<{
79
+ plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
80
80
  id: string;
81
81
  name: string;
82
82
  hooks: {};
83
83
  })[];
84
84
  method: string;
85
- output?: _better_fetch_fetch29.StandardSchemaV1 | typeof Blob | typeof File;
85
+ output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
86
86
  query?: any;
87
87
  baseURL: string;
88
88
  headers?: HeadersInit & (HeadersInit | {
@@ -116,39 +116,39 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
116
116
  referrer?: string;
117
117
  referrerPolicy?: ReferrerPolicy;
118
118
  signal?: AbortSignal | null;
119
- onRetry?: (response: _better_fetch_fetch29.ResponseContext) => Promise<void> | void;
119
+ onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
120
120
  hookOptions?: {
121
121
  cloneResponse?: boolean;
122
122
  };
123
123
  timeout?: number;
124
124
  duplex?: "full" | "half";
125
125
  jsonParser: (text: string) => Promise<any> | any;
126
- retry?: _better_fetch_fetch29.RetryOptions;
126
+ retry?: _better_fetch_fetch19.RetryOptions;
127
127
  retryAttempt?: number;
128
- errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
128
+ errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
129
129
  disableValidation?: boolean;
130
- defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
131
- defaultError?: _better_fetch_fetch29.StandardSchemaV1;
130
+ defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
131
+ defaultError?: _better_fetch_fetch19.StandardSchemaV1;
132
132
  catchAllError?: boolean;
133
- schema?: _better_fetch_fetch29.Schema;
133
+ schema?: _better_fetch_fetch19.Schema;
134
134
  customFetchImpl: any;
135
- }, unknown, unknown, _better_fetch_fetch29.Schema>;
135
+ }, unknown, unknown, _better_fetch_fetch19.Schema>;
136
136
  $store: {
137
- notify: (signal?: _faire_auth_core_types36.LiteralStringUnion<"$sessionSignal">) => void;
138
- listen: (signal: _faire_auth_core_types36.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
137
+ notify: (signal?: _faire_auth_core_types35.LiteralStringUnion<"$sessionSignal">) => void;
138
+ listen: (signal: _faire_auth_core_types35.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
139
139
  atoms: {
140
- session: nanostores5.PreinitializedWritableAtom<{
140
+ session: nanostores2.PreinitializedWritableAtom<{
141
141
  data: {
142
- user: _faire_auth_core_db3.User;
143
- session: _faire_auth_core_db3.Session;
142
+ user: _faire_auth_core_db1.User;
143
+ session: _faire_auth_core_db1.Session;
144
144
  } | null;
145
145
  error: BetterFetchError | null;
146
146
  isPending: boolean;
147
147
  isRefetching: boolean;
148
148
  refetch: () => void;
149
149
  }> & object;
150
- $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
151
- } & Record<string, nanostores5.WritableAtom<any>>;
150
+ $sessionSignal: nanostores2.PreinitializedWritableAtom<boolean> & object;
151
+ } & Record<string, nanostores2.WritableAtom<any>>;
152
152
  };
153
153
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
154
154
  };
@@ -1,15 +1,15 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-rFv8Hxld.mjs";
1
+ import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, pt as SessionQueryParams, st as InferErrorCodes } from "../../index-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono7 from "hono";
4
+ import * as hono45 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _faire_auth_core_db1 from "@faire-auth/core/db";
7
- import * as _better_fetch_fetch19 from "@better-fetch/fetch";
6
+ import * as _faire_auth_core_db3 from "@faire-auth/core/db";
7
+ import * as _better_fetch_fetch29 from "@better-fetch/fetch";
8
8
  import { BetterFetchError } from "@better-fetch/fetch";
9
- import * as nanostores2 from "nanostores";
9
+ import * as nanostores5 from "nanostores";
10
10
  import { Store, StoreValue } from "nanostores";
11
11
  import { DependencyList } from "react";
12
- import * as _faire_auth_core_types3 from "@faire-auth/core/types";
12
+ import * as _faire_auth_core_types37 from "@faire-auth/core/types";
13
13
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
14
14
  export * from "@better-fetch/fetch";
15
15
  export * from "nanostores";
@@ -59,9 +59,9 @@ declare function useStore<SomeStore extends Store>(store: SomeStore, options?: U
59
59
  //#region src/client/react/index.d.ts
60
60
  declare function capitalizeFirstLetter(str: string): string;
61
61
  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]: () => ReturnType<Atoms[key]["get"]> } : {} : {} : {} : {};
62
- declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono7.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
62
+ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option extends ClientOptions>(options: Option) => UnionToIntersection<InferResolvedHooks<Option>> & (App extends Hono<any, infer S extends hono45.Schema, infer P extends string> ? Client<S, P, Option> : never) & InferActions<Option> & {
63
63
  useSession: () => {
64
- data: (App extends Hono<any, infer S_1 extends hono7.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
64
+ data: (App extends Hono<any, infer S_1 extends hono45.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
65
65
  success: true;
66
66
  })["data"] : never) | null;
67
67
  isPending: boolean;
@@ -71,18 +71,18 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
71
71
  }) => void;
72
72
  };
73
73
  $Infer: {
74
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono7.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
74
+ Session: NonNullable<App extends Hono<any, infer S_1 extends hono45.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
75
75
  success: true;
76
76
  })["data"] : never>;
77
77
  };
78
- $fetch: _better_fetch_fetch19.BetterFetch<{
79
- plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
78
+ $fetch: _better_fetch_fetch29.BetterFetch<{
79
+ plugins: (_better_fetch_fetch29.BetterFetchPlugin | {
80
80
  id: string;
81
81
  name: string;
82
82
  hooks: {};
83
83
  })[];
84
84
  method: string;
85
- output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
85
+ output?: _better_fetch_fetch29.StandardSchemaV1 | typeof Blob | typeof File;
86
86
  query?: any;
87
87
  baseURL: string;
88
88
  headers?: HeadersInit & (HeadersInit | {
@@ -116,39 +116,39 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
116
116
  referrer?: string;
117
117
  referrerPolicy?: ReferrerPolicy;
118
118
  signal?: AbortSignal | null;
119
- onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
119
+ onRetry?: (response: _better_fetch_fetch29.ResponseContext) => Promise<void> | void;
120
120
  hookOptions?: {
121
121
  cloneResponse?: boolean;
122
122
  };
123
123
  timeout?: number;
124
124
  duplex?: "full" | "half";
125
125
  jsonParser: (text: string) => Promise<any> | any;
126
- retry?: _better_fetch_fetch19.RetryOptions;
126
+ retry?: _better_fetch_fetch29.RetryOptions;
127
127
  retryAttempt?: number;
128
- errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
128
+ errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
129
129
  disableValidation?: boolean;
130
- defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
131
- defaultError?: _better_fetch_fetch19.StandardSchemaV1;
130
+ defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
131
+ defaultError?: _better_fetch_fetch29.StandardSchemaV1;
132
132
  catchAllError?: boolean;
133
- schema?: _better_fetch_fetch19.Schema;
133
+ schema?: _better_fetch_fetch29.Schema;
134
134
  customFetchImpl: any;
135
- }, unknown, unknown, _better_fetch_fetch19.Schema>;
135
+ }, unknown, unknown, _better_fetch_fetch29.Schema>;
136
136
  $store: {
137
- notify: (signal?: _faire_auth_core_types3.LiteralStringUnion<"$sessionSignal">) => void;
138
- listen: (signal: _faire_auth_core_types3.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
137
+ notify: (signal?: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">) => void;
138
+ listen: (signal: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
139
139
  atoms: {
140
- session: nanostores2.PreinitializedWritableAtom<{
140
+ session: nanostores5.PreinitializedWritableAtom<{
141
141
  data: {
142
- user: _faire_auth_core_db1.User;
143
- session: _faire_auth_core_db1.Session;
142
+ user: _faire_auth_core_db3.User;
143
+ session: _faire_auth_core_db3.Session;
144
144
  } | null;
145
145
  error: BetterFetchError | null;
146
146
  isPending: boolean;
147
147
  isRefetching: boolean;
148
148
  refetch: () => void;
149
149
  }> & object;
150
- $sessionSignal: nanostores2.PreinitializedWritableAtom<boolean> & object;
151
- } & Record<string, nanostores2.WritableAtom<any>>;
150
+ $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
151
+ } & Record<string, nanostores5.WritableAtom<any>>;
152
152
  };
153
153
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
154
154
  };
@@ -1,4 +1,4 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-CsWF3f7U.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-Boa0SV4h.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
3
  import { AnyHono, Prettify, UnionToIntersection } from "@faire-auth/core/types";
4
4
  import * as hono33 from "hono";
@@ -1,7 +1,7 @@
1
- import { $ as Client, B as DefaultApp, dt as IsSignal, et as ClientOptions, it as InferActions, nt as FaireAuthClientPlugin, st as InferErrorCodes } from "../../index-rFv8Hxld.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-DxXFCG2_.mjs";
2
2
  import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono1 from "hono";
4
+ import * as hono35 from "hono";
5
5
  import { Hono } from "hono";
6
6
  import * as _better_fetch_fetch0 from "@better-fetch/fetch";
7
7
  import { BetterFetchError } from "@better-fetch/fetch";
@@ -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 hono1.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 hono35.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 hono1.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
17
+ data: App extends Hono<any, infer S_1 extends hono35.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,7 +22,7 @@ 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 hono1.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 hono35.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
26
26
  success: true;
27
27
  })["data"] : never>;
28
28
  };