faire-auth 1.0.0 → 1.0.1

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 (205) hide show
  1. package/dist/{access-Crt-IJ2P.cjs → access-BZ7-AbTM.cjs} +1 -1
  2. package/dist/{adapter-factory-DT-_2aHJ.cjs → adapter-factory-D1I7joki.cjs} +2 -2
  3. package/dist/adapters/drizzle-adapter/index.cjs +5 -5
  4. package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
  5. package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
  6. package/dist/adapters/drizzle-adapter/index.mjs +3 -3
  7. package/dist/adapters/index.cjs +4 -4
  8. package/dist/adapters/index.d.cts +1 -1
  9. package/dist/adapters/index.d.mts +2 -2
  10. package/dist/adapters/index.mjs +3 -3
  11. package/dist/adapters/kysely-adapter/index.cjs +5 -5
  12. package/dist/adapters/kysely-adapter/index.d.cts +1 -1
  13. package/dist/adapters/kysely-adapter/index.d.mts +2 -2
  14. package/dist/adapters/kysely-adapter/index.mjs +4 -4
  15. package/dist/adapters/memory-adapter/index.cjs +5 -5
  16. package/dist/adapters/memory-adapter/index.d.cts +1 -1
  17. package/dist/adapters/memory-adapter/index.d.mts +2 -2
  18. package/dist/adapters/memory-adapter/index.mjs +4 -4
  19. package/dist/adapters/mongodb-adapter/index.cjs +294 -6
  20. package/dist/adapters/mongodb-adapter/index.d.cts +34 -2
  21. package/dist/adapters/mongodb-adapter/index.d.mts +35 -3
  22. package/dist/adapters/mongodb-adapter/index.mjs +291 -4
  23. package/dist/adapters/prisma-adapter/index.cjs +5 -5
  24. package/dist/adapters/prisma-adapter/index.d.cts +1 -1
  25. package/dist/adapters/prisma-adapter/index.d.mts +2 -2
  26. package/dist/adapters/prisma-adapter/index.mjs +3 -3
  27. package/dist/adapters/test.cjs +3 -3
  28. package/dist/adapters/test.d.cts +1 -1
  29. package/dist/adapters/test.d.mts +2 -2
  30. package/dist/adapters/test.mjs +2 -2
  31. package/dist/api/index.cjs +15 -15
  32. package/dist/api/index.d.cts +1 -1
  33. package/dist/api/index.d.mts +2 -2
  34. package/dist/api/index.mjs +8 -8
  35. package/dist/api/middleware/index.cjs +8 -8
  36. package/dist/api/middleware/index.d.cts +3 -3
  37. package/dist/api/middleware/index.d.mts +4 -4
  38. package/dist/api/middleware/index.mjs +3 -3
  39. package/dist/{api-_B7qO28y.mjs → api-B4RDwBty.mjs} +7 -7
  40. package/dist/{api-Bm89BLgN.cjs → api-CaRC1Gio.cjs} +12 -12
  41. package/dist/{bearer-CHeREcGT.cjs → bearer-DDzrp5M7.cjs} +2 -2
  42. package/dist/{bearer-0SeEmaS4.mjs → bearer-WZcs7gxL.mjs} +1 -1
  43. package/dist/{bun-sqlite-dialect-wuaC2-gh.cjs → bun-sqlite-dialect-DPgTzc0w.cjs} +1 -1
  44. package/dist/{chunk-Ceigfy4P.mjs → chunk-BFnQceUY.mjs} +1 -13
  45. package/dist/{chunk-oakRccI5.cjs → chunk-fPmz2rbM.cjs} +0 -9
  46. package/dist/client/index.cjs +26 -7
  47. package/dist/client/index.d.cts +27 -4
  48. package/dist/client/index.d.mts +28 -5
  49. package/dist/client/index.mjs +25 -6
  50. package/dist/client/lynx/index.cjs +5 -5
  51. package/dist/client/lynx/index.d.cts +9 -9
  52. package/dist/client/lynx/index.d.mts +27 -27
  53. package/dist/client/lynx/index.mjs +3 -3
  54. package/dist/client/plugins/index.d.cts +1 -1
  55. package/dist/client/plugins/index.d.mts +2 -2
  56. package/dist/client/react/index.cjs +5 -5
  57. package/dist/client/react/index.d.cts +9 -9
  58. package/dist/client/react/index.d.mts +3 -3
  59. package/dist/client/react/index.mjs +3 -3
  60. package/dist/client/solid/index.cjs +5 -5
  61. package/dist/client/solid/index.d.cts +16 -16
  62. package/dist/client/solid/index.d.mts +17 -17
  63. package/dist/client/solid/index.mjs +3 -3
  64. package/dist/client/svelte/index.cjs +4 -4
  65. package/dist/client/svelte/index.d.cts +16 -16
  66. package/dist/client/svelte/index.d.mts +27 -27
  67. package/dist/client/svelte/index.mjs +3 -3
  68. package/dist/client/vue/index.cjs +5 -5
  69. package/dist/client/vue/index.d.cts +27 -27
  70. package/dist/client/vue/index.d.mts +28 -28
  71. package/dist/client/vue/index.mjs +3 -3
  72. package/dist/{cookies-B5xeA6i8.cjs → cookies-BTl72THv.cjs} +3 -3
  73. package/dist/{cookies-Ch1JfQIz.mjs → cookies-BTs1o992.mjs} +2 -2
  74. package/dist/crypto/index.cjs +1 -1
  75. package/dist/crypto/index.d.cts +2 -2
  76. package/dist/crypto/index.d.mts +3 -3
  77. package/dist/crypto/index.mjs +1 -1
  78. package/dist/{crypto-CyQRFtkq.mjs → crypto-DH2Aa7jN.mjs} +1 -1
  79. package/dist/{crypto-CcTxYH82.cjs → crypto-DpSCnrTp.cjs} +1 -1
  80. package/dist/db/index.cjs +10 -10
  81. package/dist/db/index.d.cts +1 -1
  82. package/dist/db/index.d.mts +2 -2
  83. package/dist/db/index.mjs +6 -6
  84. package/dist/{db-xiJtoDgz.mjs → db-4tUsQJXd.mjs} +3 -3
  85. package/dist/{db-BTKyYu-_.cjs → db-ChMbb_U-.cjs} +8 -8
  86. package/dist/{email-verification-CWhj2qfb.mjs → email-verification-C_lBu_JY.mjs} +3 -3
  87. package/dist/{email-verification-C-AsfJsb.cjs → email-verification-DI_0H4JC.cjs} +5 -5
  88. package/dist/{hono-Cdukwu5K.cjs → hono-C14rpOEa.cjs} +1 -1
  89. package/dist/{hono-Covz10jU.mjs → hono-CO-zsqI-.mjs} +2 -2
  90. package/dist/{hono-BEq1NYVX.cjs → hono-DnW5crl1.cjs} +4 -4
  91. package/dist/index-BC42NdCJ.d.mts +992 -0
  92. package/dist/{index-B-WeOMzg.d.cts → index-BNCikaaH.d.cts} +834 -834
  93. package/dist/{index-Qu-iJGNr.d.mts → index-BfbDrljm.d.cts} +15 -15
  94. package/dist/index-BotKDRUI.d.mts +13350 -0
  95. package/dist/index-CL5oW5Uh.d.cts +13350 -0
  96. package/dist/index-ClFGA8tb.d.mts +33 -0
  97. package/dist/index-DCuvAh3N.d.mts +992 -0
  98. package/dist/{index-jlessPI0.d.mts → index-DK2ECcVe.d.mts} +382 -382
  99. package/dist/{index-B09P9p5_.d.cts → index-Dsua4U8w.d.cts} +6 -6
  100. package/dist/index-KQ5RLFjm.d.cts +33 -0
  101. package/dist/{index-BVHscLQl.d.cts → index-w-IdIOQJ.d.cts} +15 -15
  102. package/dist/{index-ppgcFe12.d.mts → index-ztVZPQdV.d.mts} +6 -6
  103. package/dist/index.cjs +721 -27
  104. package/dist/index.d.cts +1 -1
  105. package/dist/index.d.mts +2 -2
  106. package/dist/index.mjs +711 -16
  107. package/dist/integrations/next-js.cjs +3 -3
  108. package/dist/integrations/next-js.d.cts +3 -3
  109. package/dist/integrations/next-js.d.mts +6 -6
  110. package/dist/integrations/next-js.mjs +2 -2
  111. package/dist/integrations/node.d.cts +1 -1
  112. package/dist/integrations/node.d.mts +2 -2
  113. package/dist/integrations/react-start.cjs +3 -3
  114. package/dist/integrations/react-start.d.cts +5 -5
  115. package/dist/integrations/react-start.d.mts +6 -6
  116. package/dist/integrations/react-start.mjs +2 -2
  117. package/dist/integrations/svelte-kit.cjs +3 -3
  118. package/dist/integrations/svelte-kit.d.cts +5 -5
  119. package/dist/integrations/svelte-kit.d.mts +6 -6
  120. package/dist/integrations/svelte-kit.mjs +2 -2
  121. package/dist/{ip-B5SwXaMB.cjs → ip-C17Qdq-G.cjs} +2 -2
  122. package/dist/{json-CcJ2HjGo.cjs → json--tl7Grvs.cjs} +1 -1
  123. package/dist/{kysely-adapter-DRuoT_X8.mjs → kysely-adapter-CtIdoHa8.mjs} +3 -3
  124. package/dist/{kysely-adapter-Bxi7sPdG.cjs → kysely-adapter-QZTx077T.cjs} +4 -4
  125. package/dist/{logged-DQK3C64b.cjs → logged-Dv3st5qc.cjs} +1 -1
  126. package/dist/{memory-adapter-BlnDIAAX.cjs → memory-adapter-17RZd5df.cjs} +2 -2
  127. package/dist/{memory-adapter-Db3tsJTn.mjs → memory-adapter-Dp4XdCZK.mjs} +1 -1
  128. package/dist/{node-sqlite-dialect-mJWC8LWQ.cjs → node-sqlite-dialect-DP11CB0y.cjs} +1 -1
  129. package/dist/oauth2/index.cjs +11 -11
  130. package/dist/oauth2/index.d.cts +1 -1
  131. package/dist/oauth2/index.d.mts +2 -2
  132. package/dist/oauth2/index.mjs +6 -6
  133. package/dist/{oauth2-BLeOEi7Y.cjs → oauth2-5RL4cVNS.cjs} +3 -3
  134. package/dist/{oauth2-B8M0lW9l.mjs → oauth2-C56wz-n9.mjs} +2 -2
  135. package/dist/{origin-check-id9lTnqZ.cjs → origin-check-DjLTuZQ8.cjs} +2 -2
  136. package/dist/{passkey-B6N20LSS.cjs → passkey-BTT-v5c-.cjs} +4 -4
  137. package/dist/{passkey-DJsR_GX3.mjs → passkey-CzY_W2us.mjs} +2 -2
  138. package/dist/plugins/access/index.cjs +1 -1
  139. package/dist/plugins/access/index.d.cts +1 -1
  140. package/dist/plugins/access/index.d.mts +1 -1
  141. package/dist/plugins/access/index.mjs +1 -1
  142. package/dist/plugins/bearer/index.cjs +4 -4
  143. package/dist/plugins/bearer/index.d.cts +2 -2
  144. package/dist/plugins/bearer/index.d.mts +3 -3
  145. package/dist/plugins/bearer/index.mjs +3 -3
  146. package/dist/plugins/index.cjs +5215 -31
  147. package/dist/plugins/index.d.cts +270 -270
  148. package/dist/plugins/index.d.mts +352 -352
  149. package/dist/plugins/index.mjs +5202 -19
  150. package/dist/plugins/passkey/index.cjs +10 -10
  151. package/dist/plugins/passkey/index.d.cts +2 -2
  152. package/dist/plugins/passkey/index.d.mts +3 -3
  153. package/dist/plugins/passkey/index.mjs +5 -5
  154. package/dist/{schema-D-qjygfE.cjs → schema-CirKflVs.cjs} +2 -2
  155. package/dist/{session-rH8ougDl.mjs → session-CM3rmOYF.mjs} +1 -1
  156. package/dist/{session-De9POJTW.cjs → session-Cwrj4GfV.cjs} +5 -5
  157. package/dist/social-providers/index.cjs +1 -1
  158. package/dist/social-providers/index.d.cts +1 -1
  159. package/dist/social-providers/index.d.mts +1 -1
  160. package/dist/social-providers/index.mjs +1 -1
  161. package/dist/{social-providers-DoYJhBe3.mjs → social-providers-B8RK5yqI.mjs} +1 -1
  162. package/dist/{social-providers-DcFNUT0S.cjs → social-providers-BmFOIIPk.cjs} +1 -1
  163. package/dist/{state-CqJfCIl9.mjs → state-CQghgH9I.mjs} +1 -1
  164. package/dist/{state--f7fwIGh.cjs → state-CvSihlVT.cjs} +2 -2
  165. package/dist/test-utils/bun-sqlite-dialect-BSWhhKNs.mjs +155 -0
  166. package/dist/test-utils/bun-sqlite-dialect-BZBvHchL.cjs +156 -0
  167. package/dist/test-utils/index.cjs +8927 -482
  168. package/dist/test-utils/index.d.cts +8637 -579
  169. package/dist/test-utils/index.d.mts +8636 -576
  170. package/dist/test-utils/index.mjs +8712 -265
  171. package/dist/test-utils/node-sqlite-dialect-BgJqjBOu.cjs +156 -0
  172. package/dist/test-utils/node-sqlite-dialect-DAQXiobH.mjs +155 -0
  173. package/dist/types/index.d.cts +1 -1
  174. package/dist/types/index.d.mts +2 -2
  175. package/dist/{url-D2yvKaM7.cjs → url-Ce7CVaQD.cjs} +1 -1
  176. package/dist/utils/cookies.cjs +4 -4
  177. package/dist/utils/cookies.d.cts +1 -1
  178. package/dist/utils/cookies.d.mts +2 -2
  179. package/dist/utils/cookies.mjs +2 -2
  180. package/package.json +2 -2
  181. package/dist/auth-Bo9PDt5j.cjs +0 -739
  182. package/dist/auth-Ds4AG4h4.mjs +0 -709
  183. package/dist/index-C2-2QDyS.d.cts +0 -35
  184. package/dist/index-CWAqWfoZ.d.cts +0 -27
  185. package/dist/index-CYSShrFx.d.mts +0 -27
  186. package/dist/index-to0RO38U.d.mts +0 -35
  187. package/dist/mongodb-adapter-C_qGQED5.mjs +0 -291
  188. package/dist/mongodb-adapter-C_qfK87x.cjs +0 -297
  189. package/dist/plugins-C1lm2Wj3.cjs +0 -5254
  190. package/dist/plugins-Dai1QkRU.mjs +0 -5199
  191. package/dist/vanilla-Bu2PmFzE.cjs +0 -30
  192. package/dist/vanilla-TfHqeiC7.mjs +0 -25
  193. /package/dist/{access-B5bBI4uT.mjs → access-D0DRqUKC.mjs} +0 -0
  194. /package/dist/{adapter-factory-BXei1QRX.mjs → adapter-factory-lKIOf2OR.mjs} +0 -0
  195. /package/dist/{bun-sqlite-dialect-CfkBo2v5.mjs → bun-sqlite-dialect-6NqeV3px.mjs} +0 -0
  196. /package/dist/{defu-B0Svx_x4.cjs → defu-BmOYq4PU.cjs} +0 -0
  197. /package/dist/{defu-SZkpHhbR.mjs → defu-D9ZTXqlo.mjs} +0 -0
  198. /package/dist/{hono-DuE14mmj.d.mts → hono-D0VqxVy1.d.mts} +0 -0
  199. /package/dist/{index-B5_0QTLg.d.mts → index-BDhhaE6Y.d.cts} +0 -0
  200. /package/dist/{index-B7SKyR_a.d.cts → index-CF9iq55a.d.mts} +0 -0
  201. /package/dist/{index-CTwrVluH.d.mts → index-CRt_fppq.d.mts} +0 -0
  202. /package/dist/{index-cs4Sh0En.d.cts → index-CdLyn7qP.d.cts} +0 -0
  203. /package/dist/{node-sqlite-dialect-BfBzyOAg.mjs → node-sqlite-dialect-w4DAg0PH.mjs} +0 -0
  204. /package/dist/{parser-CeAer-RM.mjs → parser-B25ylT5u.mjs} +0 -0
  205. /package/dist/{parser-CdncAl9i.cjs → parser-B_wxvaAr.cjs} +0 -0
@@ -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-jlessPI0.mjs";
2
- import "../../hono-DuE14mmj.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-BotKDRUI.mjs";
2
+ import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono48 from "hono";
4
+ import * as hono41 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _better_fetch_fetch29 from "@better-fetch/fetch";
6
+ import * as _better_fetch_fetch19 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 hono48.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 hono41.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 hono48.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
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"] & {
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 hono48.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 hono41.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_fetch29.BetterFetch<{
30
- plugins: (_better_fetch_fetch29.BetterFetchPlugin | {
29
+ $fetch: _better_fetch_fetch19.BetterFetch<{
30
+ plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
31
31
  id: string;
32
32
  name: string;
33
33
  hooks: {};
34
34
  })[];
35
35
  method: string;
36
- output?: _better_fetch_fetch29.StandardSchemaV1 | typeof Blob | typeof File;
36
+ output?: _better_fetch_fetch19.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_fetch29.ResponseContext) => Promise<void> | void;
70
+ onRetry?: (response: _better_fetch_fetch19.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_fetch29.RetryOptions;
77
+ retry?: _better_fetch_fetch19.RetryOptions;
78
78
  retryAttempt?: number;
79
- errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
79
+ errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
80
80
  disableValidation?: boolean;
81
+ defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
82
+ defaultError?: _better_fetch_fetch19.StandardSchemaV1;
81
83
  catchAllError?: boolean;
82
- defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
83
- defaultError?: _better_fetch_fetch29.StandardSchemaV1;
84
- schema?: _better_fetch_fetch29.Schema;
84
+ schema?: _better_fetch_fetch19.Schema;
85
85
  customFetchImpl: any;
86
- }, unknown, unknown, _better_fetch_fetch29.Schema>;
86
+ }, unknown, unknown, _better_fetch_fetch19.Schema>;
87
87
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
88
88
  };
89
89
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { t as getBaseURL } from "../../url-BoUuoIwZ.mjs";
2
2
  import "../../request-1NL_1lyJ.mjs";
3
- import "../../defu-SZkpHhbR.mjs";
4
- import { n as getClientConfig, t as createHonoClient } from "../../hono-Covz10jU.mjs";
5
- import "../../parser-CeAer-RM.mjs";
3
+ import "../../defu-D9ZTXqlo.mjs";
4
+ import { n as getClientConfig, t as createHonoClient } from "../../hono-CO-zsqI-.mjs";
5
+ import "../../parser-B25ylT5u.mjs";
6
6
  import { createStore, reconcile } from "solid-js/store";
7
7
  import { onCleanup } from "solid-js";
8
8
 
@@ -1,8 +1,8 @@
1
- const require_url = require('../../url-D2yvKaM7.cjs');
1
+ const require_url = require('../../url-Ce7CVaQD.cjs');
2
2
  require('../../request-CPNlp-DK.cjs');
3
- require('../../defu-B0Svx_x4.cjs');
4
- const require_hono = require('../../hono-BEq1NYVX.cjs');
5
- require('../../parser-CdncAl9i.cjs');
3
+ require('../../defu-BmOYq4PU.cjs');
4
+ const require_hono = require('../../hono-DnW5crl1.cjs');
5
+ require('../../parser-B_wxvaAr.cjs');
6
6
 
7
7
  //#region src/client/svelte/index.ts
8
8
  const capitalizeFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);
@@ -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-B-WeOMzg.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-BNCikaaH.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types38 from "@faire-auth/core/types";
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 hono46 from "hono";
5
+ import * as hono49 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_db5 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 nanostores5 from "nanostores";
11
+ import * as nanostores8 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 hono46.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 hono49.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 hono46.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
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"] & {
21
21
  success: true;
22
22
  })["data"] : never;
23
23
  error: BetterFetchError | null;
@@ -76,31 +76,31 @@ 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;
80
79
  defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
81
80
  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>;
85
85
  $store: {
86
- notify: (signal?: _faire_auth_core_types38.LiteralStringUnion<"$sessionSignal">) => void;
87
- listen: (signal: _faire_auth_core_types38.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
86
+ notify: (signal?: _faire_auth_core_types41.LiteralStringUnion<"$sessionSignal">) => void;
87
+ listen: (signal: _faire_auth_core_types41.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
88
88
  atoms: {
89
- session: nanostores5.PreinitializedWritableAtom<{
89
+ session: nanostores8.PreinitializedWritableAtom<{
90
90
  data: {
91
- user: _faire_auth_core_db3.User;
92
- session: _faire_auth_core_db3.Session;
91
+ user: _faire_auth_core_db5.User;
92
+ session: _faire_auth_core_db5.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: nanostores5.PreinitializedWritableAtom<boolean> & object;
100
- } & Record<string, nanostores5.WritableAtom<any>>;
99
+ $sessionSignal: nanostores8.PreinitializedWritableAtom<boolean> & object;
100
+ } & Record<string, nanostores8.WritableAtom<any>>;
101
101
  };
102
102
  $Infer: {
103
- Session: NonNullable<App extends Hono<any, infer S_1 extends hono46.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 hono49.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-jlessPI0.mjs";
2
- import "../../hono-DuE14mmj.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-BotKDRUI.mjs";
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 hono35 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _faire_auth_core_db3 from "@faire-auth/core/db";
7
- import * as _better_fetch_fetch19 from "@better-fetch/fetch";
6
+ import * as _faire_auth_core_db0 from "@faire-auth/core/db";
7
+ import * as _better_fetch_fetch0 from "@better-fetch/fetch";
8
8
  import { BetterFetchError } from "@better-fetch/fetch";
9
- import * as nanostores5 from "nanostores";
9
+ import * as nanostores0 from "nanostores";
10
10
  import { Atom } from "nanostores";
11
- import * as _faire_auth_core_types37 from "@faire-auth/core/types";
11
+ import * as _faire_auth_core_types33 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 hono41.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 hono35.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 hono41.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
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"] & {
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_fetch19.BetterFetch<{
28
- plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
27
+ $fetch: _better_fetch_fetch0.BetterFetch<{
28
+ plugins: (_better_fetch_fetch0.BetterFetchPlugin | {
29
29
  id: string;
30
30
  name: string;
31
31
  hooks: {};
32
32
  })[];
33
33
  method: string;
34
- output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
34
+ output?: _better_fetch_fetch0.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_fetch19.ResponseContext) => Promise<void> | void;
68
+ onRetry?: (response: _better_fetch_fetch0.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_fetch19.RetryOptions;
75
+ retry?: _better_fetch_fetch0.RetryOptions;
76
76
  retryAttempt?: number;
77
- errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
77
+ errorSchema?: _better_fetch_fetch0.StandardSchemaV1;
78
78
  disableValidation?: boolean;
79
+ defaultOutput?: _better_fetch_fetch0.StandardSchemaV1;
80
+ defaultError?: _better_fetch_fetch0.StandardSchemaV1;
79
81
  catchAllError?: boolean;
80
- defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
81
- defaultError?: _better_fetch_fetch19.StandardSchemaV1;
82
- schema?: _better_fetch_fetch19.Schema;
82
+ schema?: _better_fetch_fetch0.Schema;
83
83
  customFetchImpl: any;
84
- }, unknown, unknown, _better_fetch_fetch19.Schema>;
84
+ }, unknown, unknown, _better_fetch_fetch0.Schema>;
85
85
  $store: {
86
- notify: (signal?: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">) => void;
87
- listen: (signal: _faire_auth_core_types37.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
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;
88
88
  atoms: {
89
- session: nanostores5.PreinitializedWritableAtom<{
89
+ session: nanostores0.PreinitializedWritableAtom<{
90
90
  data: {
91
- user: _faire_auth_core_db3.User;
92
- session: _faire_auth_core_db3.Session;
91
+ user: _faire_auth_core_db0.User;
92
+ session: _faire_auth_core_db0.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: nanostores5.PreinitializedWritableAtom<boolean> & object;
100
- } & Record<string, nanostores5.WritableAtom<any>>;
99
+ $sessionSignal: nanostores0.PreinitializedWritableAtom<boolean> & object;
100
+ } & Record<string, nanostores0.WritableAtom<any>>;
101
101
  };
102
102
  $Infer: {
103
- 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"] & {
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"] & {
104
104
  success: true;
105
105
  })["data"] : never>;
106
106
  };
@@ -1,8 +1,8 @@
1
1
  import { t as getBaseURL } from "../../url-BoUuoIwZ.mjs";
2
2
  import "../../request-1NL_1lyJ.mjs";
3
- import "../../defu-SZkpHhbR.mjs";
4
- import { n as getClientConfig, t as createHonoClient } from "../../hono-Covz10jU.mjs";
5
- import "../../parser-CeAer-RM.mjs";
3
+ import "../../defu-D9ZTXqlo.mjs";
4
+ import { n as getClientConfig, t as createHonoClient } from "../../hono-CO-zsqI-.mjs";
5
+ import "../../parser-B25ylT5u.mjs";
6
6
 
7
7
  //#region src/client/svelte/index.ts
8
8
  const capitalizeFirstLetter = (str) => str.charAt(0).toUpperCase() + str.slice(1);
@@ -1,9 +1,9 @@
1
- const require_chunk = require('../../chunk-oakRccI5.cjs');
2
- const require_url = require('../../url-D2yvKaM7.cjs');
1
+ const require_chunk = require('../../chunk-fPmz2rbM.cjs');
2
+ const require_url = require('../../url-Ce7CVaQD.cjs');
3
3
  require('../../request-CPNlp-DK.cjs');
4
- require('../../defu-B0Svx_x4.cjs');
5
- const require_hono = require('../../hono-BEq1NYVX.cjs');
6
- require('../../parser-CdncAl9i.cjs');
4
+ require('../../defu-BmOYq4PU.cjs');
5
+ const require_hono = require('../../hono-DnW5crl1.cjs');
6
+ require('../../parser-B_wxvaAr.cjs');
7
7
  let vue = require("vue");
8
8
 
9
9
  //#region src/client/vue/vue-store.ts
@@ -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-B-WeOMzg.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-BNCikaaH.cjs";
2
2
  import "../../hono-DOM31WQz.cjs";
3
- import * as _faire_auth_core_types40 from "@faire-auth/core/types";
3
+ import * as _faire_auth_core_types39 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 hono45 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_db3 from "@faire-auth/core/db";
8
8
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
9
- import * as _better_fetch_fetch39 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 nanostores8 from "nanostores";
11
+ import * as nanostores5 from "nanostores";
12
12
  import { DeepReadonly, Ref } from "vue";
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 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 hono45.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 hono49.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
21
+ data: App extends Hono<any, infer S_1 extends hono45.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 hono49.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 hono45.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,18 +38,18 @@ 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 hono49.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 hono45.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
42
42
  success: true;
43
43
  })["data"] : never>;
44
44
  };
45
- $fetch: _better_fetch_fetch39.BetterFetch<{
46
- plugins: (_better_fetch_fetch39.BetterFetchPlugin | {
45
+ $fetch: _better_fetch_fetch19.BetterFetch<{
46
+ plugins: (_better_fetch_fetch19.BetterFetchPlugin | {
47
47
  id: string;
48
48
  name: string;
49
49
  hooks: {};
50
50
  })[];
51
51
  method: string;
52
- output?: _better_fetch_fetch39.StandardSchemaV1 | typeof Blob | typeof File;
52
+ output?: _better_fetch_fetch19.StandardSchemaV1 | typeof Blob | typeof File;
53
53
  query?: any;
54
54
  baseURL: string;
55
55
  headers?: HeadersInit & (HeadersInit | {
@@ -83,39 +83,39 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
83
83
  referrer?: string;
84
84
  referrerPolicy?: ReferrerPolicy;
85
85
  signal?: AbortSignal | null;
86
- onRetry?: (response: _better_fetch_fetch39.ResponseContext) => Promise<void> | void;
86
+ onRetry?: (response: _better_fetch_fetch19.ResponseContext) => Promise<void> | void;
87
87
  hookOptions?: {
88
88
  cloneResponse?: boolean;
89
89
  };
90
90
  timeout?: number;
91
91
  duplex?: "full" | "half";
92
92
  jsonParser: (text: string) => Promise<any> | any;
93
- retry?: _better_fetch_fetch39.RetryOptions;
93
+ retry?: _better_fetch_fetch19.RetryOptions;
94
94
  retryAttempt?: number;
95
- errorSchema?: _better_fetch_fetch39.StandardSchemaV1;
95
+ errorSchema?: _better_fetch_fetch19.StandardSchemaV1;
96
96
  disableValidation?: boolean;
97
+ defaultOutput?: _better_fetch_fetch19.StandardSchemaV1;
98
+ defaultError?: _better_fetch_fetch19.StandardSchemaV1;
97
99
  catchAllError?: boolean;
98
- defaultOutput?: _better_fetch_fetch39.StandardSchemaV1;
99
- defaultError?: _better_fetch_fetch39.StandardSchemaV1;
100
- schema?: _better_fetch_fetch39.Schema;
100
+ schema?: _better_fetch_fetch19.Schema;
101
101
  customFetchImpl: any;
102
- }, unknown, unknown, _better_fetch_fetch39.Schema>;
102
+ }, unknown, unknown, _better_fetch_fetch19.Schema>;
103
103
  $store: {
104
- notify: (signal?: _faire_auth_core_types40.LiteralStringUnion<"$sessionSignal">) => void;
105
- listen: (signal: _faire_auth_core_types40.LiteralStringUnion<"$sessionSignal">, listener: (value: boolean, oldValue?: boolean | undefined) => void) => void;
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;
106
106
  atoms: {
107
- session: nanostores8.PreinitializedWritableAtom<{
107
+ session: nanostores5.PreinitializedWritableAtom<{
108
108
  data: {
109
- user: _faire_auth_core_db5.User;
110
- session: _faire_auth_core_db5.Session;
109
+ user: _faire_auth_core_db3.User;
110
+ session: _faire_auth_core_db3.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: nanostores8.PreinitializedWritableAtom<boolean> & object;
118
- } & Record<string, nanostores8.WritableAtom<any>>;
117
+ $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
118
+ } & Record<string, nanostores5.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-jlessPI0.mjs";
2
- import "../../hono-DuE14mmj.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-BotKDRUI.mjs";
2
+ import "../../hono-D0VqxVy1.mjs";
3
3
  import { BASE_ERROR_CODES } from "@faire-auth/core/error";
4
- import * as hono51 from "hono";
4
+ import * as hono44 from "hono";
5
5
  import { Hono } from "hono";
6
- import * as _faire_auth_core_db5 from "@faire-auth/core/db";
7
- import * as _better_fetch_fetch39 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 nanostores8 from "nanostores";
9
+ import * as nanostores5 from "nanostores";
10
10
  import { DeepReadonly, Ref } from "vue";
11
- import * as _faire_auth_core_types41 from "@faire-auth/core/types";
11
+ import * as _faire_auth_core_types37 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 hono51.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 hono44.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 hono51.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
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"] & {
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 hono51.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 hono44.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,18 +38,18 @@ 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 hono51.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 hono44.Schema, infer P_1 extends string> ? (S_1[`${P_1}/get-session`]["$get"]["output"] & {
42
42
  success: true;
43
43
  })["data"] : never>;
44
44
  };
45
- $fetch: _better_fetch_fetch39.BetterFetch<{
46
- plugins: (_better_fetch_fetch39.BetterFetchPlugin | {
45
+ $fetch: _better_fetch_fetch29.BetterFetch<{
46
+ plugins: (_better_fetch_fetch29.BetterFetchPlugin | {
47
47
  id: string;
48
48
  name: string;
49
49
  hooks: {};
50
50
  })[];
51
51
  method: string;
52
- output?: _better_fetch_fetch39.StandardSchemaV1 | typeof Blob | typeof File;
52
+ output?: _better_fetch_fetch29.StandardSchemaV1 | typeof Blob | typeof File;
53
53
  query?: any;
54
54
  baseURL: string;
55
55
  headers?: HeadersInit & (HeadersInit | {
@@ -83,39 +83,39 @@ declare const createAuthClient: <App extends AnyHono = DefaultApp>() => <Option
83
83
  referrer?: string;
84
84
  referrerPolicy?: ReferrerPolicy;
85
85
  signal?: AbortSignal | null;
86
- onRetry?: (response: _better_fetch_fetch39.ResponseContext) => Promise<void> | void;
86
+ onRetry?: (response: _better_fetch_fetch29.ResponseContext) => Promise<void> | void;
87
87
  hookOptions?: {
88
88
  cloneResponse?: boolean;
89
89
  };
90
90
  timeout?: number;
91
91
  duplex?: "full" | "half";
92
92
  jsonParser: (text: string) => Promise<any> | any;
93
- retry?: _better_fetch_fetch39.RetryOptions;
93
+ retry?: _better_fetch_fetch29.RetryOptions;
94
94
  retryAttempt?: number;
95
- errorSchema?: _better_fetch_fetch39.StandardSchemaV1;
95
+ errorSchema?: _better_fetch_fetch29.StandardSchemaV1;
96
96
  disableValidation?: boolean;
97
+ defaultOutput?: _better_fetch_fetch29.StandardSchemaV1;
98
+ defaultError?: _better_fetch_fetch29.StandardSchemaV1;
97
99
  catchAllError?: boolean;
98
- defaultOutput?: _better_fetch_fetch39.StandardSchemaV1;
99
- defaultError?: _better_fetch_fetch39.StandardSchemaV1;
100
- schema?: _better_fetch_fetch39.Schema;
100
+ schema?: _better_fetch_fetch29.Schema;
101
101
  customFetchImpl: any;
102
- }, unknown, unknown, _better_fetch_fetch39.Schema>;
102
+ }, unknown, unknown, _better_fetch_fetch29.Schema>;
103
103
  $store: {
104
- notify: (signal?: _faire_auth_core_types41.LiteralStringUnion<"$sessionSignal">) => void;
105
- listen: (signal: _faire_auth_core_types41.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: nanostores8.PreinitializedWritableAtom<{
107
+ session: nanostores5.PreinitializedWritableAtom<{
108
108
  data: {
109
- user: _faire_auth_core_db5.User;
110
- session: _faire_auth_core_db5.Session;
109
+ user: _faire_auth_core_db3.User;
110
+ session: _faire_auth_core_db3.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: nanostores8.PreinitializedWritableAtom<boolean> & object;
118
- } & Record<string, nanostores8.WritableAtom<any>>;
117
+ $sessionSignal: nanostores5.PreinitializedWritableAtom<boolean> & object;
118
+ } & Record<string, nanostores5.WritableAtom<any>>;
119
119
  };
120
120
  $ERROR_CODES: Prettify<InferErrorCodes<Option> & typeof BASE_ERROR_CODES>;
121
121
  };
@@ -1,8 +1,8 @@
1
1
  import { t as getBaseURL } from "../../url-BoUuoIwZ.mjs";
2
2
  import "../../request-1NL_1lyJ.mjs";
3
- import "../../defu-SZkpHhbR.mjs";
4
- import { n as getClientConfig, t as createHonoClient } from "../../hono-Covz10jU.mjs";
5
- import "../../parser-CeAer-RM.mjs";
3
+ import "../../defu-D9ZTXqlo.mjs";
4
+ import { n as getClientConfig, t as createHonoClient } from "../../hono-CO-zsqI-.mjs";
5
+ import "../../parser-B25ylT5u.mjs";
6
6
  import { getCurrentInstance, getCurrentScope, onScopeDispose, readonly, shallowRef } from "vue";
7
7
 
8
8
  //#region src/client/vue/vue-store.ts
@@ -1,6 +1,6 @@
1
- const require_chunk = require('./chunk-oakRccI5.cjs');
2
- const require_crypto = require('./crypto-CcTxYH82.cjs');
3
- const require_json = require('./json-CcJ2HjGo.cjs');
1
+ const require_chunk = require('./chunk-fPmz2rbM.cjs');
2
+ const require_crypto = require('./crypto-DpSCnrTp.cjs');
3
+ const require_json = require('./json--tl7Grvs.cjs');
4
4
  let __faire_auth_core_env = require("@faire-auth/core/env");
5
5
  let __faire_auth_core_error = require("@faire-auth/core/error");
6
6
  let __faire_auth_core_static = require("@faire-auth/core/static");
@@ -1,5 +1,5 @@
1
- import { n as __export, r as __reExport } from "./chunk-Ceigfy4P.mjs";
2
- import { n as crypto_exports } from "./crypto-CyQRFtkq.mjs";
1
+ import { n as __reExport, t as __export } from "./chunk-BFnQceUY.mjs";
2
+ import { n as crypto_exports } from "./crypto-DH2Aa7jN.mjs";
3
3
  import { t as safeJSONParse } from "./json-B1v2qRTQ.mjs";
4
4
  import { env, isProduction } from "@faire-auth/core/env";
5
5
  import { FaireAuthError } from "@faire-auth/core/error";
@@ -1,4 +1,4 @@
1
- const require_crypto = require('../crypto-CcTxYH82.cjs');
1
+ const require_crypto = require('../crypto-DpSCnrTp.cjs');
2
2
 
3
3
  exports.checkPassword = require_crypto.checkPassword;
4
4
  exports.validatePassword = require_crypto.validatePassword;
@@ -1,5 +1,5 @@
1
1
  import { t as ContextVars } from "../hono-DOM31WQz.cjs";
2
- import * as _faire_auth_core_types30 from "@faire-auth/core/types";
2
+ import * as _faire_auth_core_types29 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_types30.JSONRespondReturn<{
17
+ }>) => Promise<true | _faire_auth_core_types29.JSONRespondReturn<{
18
18
  success: false;
19
19
  message: string;
20
20
  }, 400>>;