better-auth 1.4.0-beta.3 → 1.4.0-beta.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 (262) 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/drizzle-adapter/index.d.ts +1 -1
  4. package/dist/adapters/index.d.cts +2 -2
  5. package/dist/adapters/index.d.mts +2 -2
  6. package/dist/adapters/index.d.ts +2 -2
  7. package/dist/adapters/kysely-adapter/index.d.cts +1 -1
  8. package/dist/adapters/kysely-adapter/index.d.mts +1 -1
  9. package/dist/adapters/kysely-adapter/index.d.ts +1 -1
  10. package/dist/adapters/memory-adapter/index.d.cts +1 -1
  11. package/dist/adapters/memory-adapter/index.d.mts +1 -1
  12. package/dist/adapters/memory-adapter/index.d.ts +1 -1
  13. package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
  14. package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
  15. package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
  16. package/dist/adapters/prisma-adapter/index.d.cts +1 -1
  17. package/dist/adapters/prisma-adapter/index.d.mts +1 -1
  18. package/dist/adapters/prisma-adapter/index.d.ts +1 -1
  19. package/dist/adapters/test.d.cts +1 -1
  20. package/dist/adapters/test.d.mts +1 -1
  21. package/dist/adapters/test.d.ts +1 -1
  22. package/dist/api/index.cjs +7 -6
  23. package/dist/api/index.d.cts +1 -1
  24. package/dist/api/index.d.mts +1 -1
  25. package/dist/api/index.d.ts +1 -1
  26. package/dist/api/index.mjs +9 -8
  27. package/dist/client/index.cjs +3 -3
  28. package/dist/client/index.d.cts +3 -3
  29. package/dist/client/index.d.mts +3 -3
  30. package/dist/client/index.d.ts +3 -3
  31. package/dist/client/index.mjs +3 -3
  32. package/dist/client/plugins/index.d.cts +3 -3
  33. package/dist/client/plugins/index.d.mts +3 -3
  34. package/dist/client/plugins/index.d.ts +3 -3
  35. package/dist/client/react/index.cjs +2 -2
  36. package/dist/client/react/index.d.cts +9 -9
  37. package/dist/client/react/index.d.mts +9 -9
  38. package/dist/client/react/index.d.ts +9 -9
  39. package/dist/client/react/index.mjs +2 -2
  40. package/dist/client/solid/index.cjs +2 -2
  41. package/dist/client/solid/index.d.cts +9 -9
  42. package/dist/client/solid/index.d.mts +9 -9
  43. package/dist/client/solid/index.d.ts +9 -9
  44. package/dist/client/solid/index.mjs +2 -2
  45. package/dist/client/svelte/index.cjs +2 -2
  46. package/dist/client/svelte/index.d.cts +3 -3
  47. package/dist/client/svelte/index.d.mts +3 -3
  48. package/dist/client/svelte/index.d.ts +3 -3
  49. package/dist/client/svelte/index.mjs +2 -2
  50. package/dist/client/vue/index.cjs +3 -3
  51. package/dist/client/vue/index.d.cts +3 -3
  52. package/dist/client/vue/index.d.mts +3 -3
  53. package/dist/client/vue/index.d.ts +3 -3
  54. package/dist/client/vue/index.mjs +3 -3
  55. package/dist/cookies/index.cjs +2 -2
  56. package/dist/cookies/index.d.cts +1 -1
  57. package/dist/cookies/index.d.mts +1 -1
  58. package/dist/cookies/index.d.ts +1 -1
  59. package/dist/cookies/index.mjs +2 -2
  60. package/dist/db/index.cjs +1 -1
  61. package/dist/db/index.d.cts +2 -2
  62. package/dist/db/index.d.mts +2 -2
  63. package/dist/db/index.d.ts +2 -2
  64. package/dist/db/index.mjs +1 -1
  65. package/dist/index.cjs +7 -6
  66. package/dist/index.d.cts +9 -9
  67. package/dist/index.d.mts +9 -9
  68. package/dist/index.d.ts +9 -9
  69. package/dist/index.mjs +7 -6
  70. package/dist/integrations/next-js.cjs +6 -5
  71. package/dist/integrations/next-js.d.cts +1 -1
  72. package/dist/integrations/next-js.d.mts +1 -1
  73. package/dist/integrations/next-js.d.ts +1 -1
  74. package/dist/integrations/next-js.mjs +6 -5
  75. package/dist/integrations/node.d.cts +1 -1
  76. package/dist/integrations/node.d.mts +1 -1
  77. package/dist/integrations/node.d.ts +1 -1
  78. package/dist/integrations/react-start.cjs +6 -5
  79. package/dist/integrations/react-start.d.cts +1 -1
  80. package/dist/integrations/react-start.d.mts +1 -1
  81. package/dist/integrations/react-start.d.ts +1 -1
  82. package/dist/integrations/react-start.mjs +6 -5
  83. package/dist/integrations/svelte-kit.cjs +5 -4
  84. package/dist/integrations/svelte-kit.d.cts +1 -1
  85. package/dist/integrations/svelte-kit.d.mts +1 -1
  86. package/dist/integrations/svelte-kit.d.ts +1 -1
  87. package/dist/integrations/svelte-kit.mjs +5 -4
  88. package/dist/oauth2/index.cjs +5 -4
  89. package/dist/oauth2/index.d.cts +2 -2
  90. package/dist/oauth2/index.d.mts +2 -2
  91. package/dist/oauth2/index.d.ts +2 -2
  92. package/dist/oauth2/index.mjs +5 -4
  93. package/dist/plugins/admin/index.cjs +6 -5
  94. package/dist/plugins/admin/index.d.cts +7 -6
  95. package/dist/plugins/admin/index.d.mts +7 -6
  96. package/dist/plugins/admin/index.d.ts +7 -6
  97. package/dist/plugins/admin/index.mjs +6 -5
  98. package/dist/plugins/anonymous/index.cjs +5 -4
  99. package/dist/plugins/anonymous/index.d.cts +1 -1
  100. package/dist/plugins/anonymous/index.d.mts +1 -1
  101. package/dist/plugins/anonymous/index.d.ts +1 -1
  102. package/dist/plugins/anonymous/index.mjs +5 -4
  103. package/dist/plugins/bearer/index.cjs +5 -4
  104. package/dist/plugins/bearer/index.d.cts +1 -1
  105. package/dist/plugins/bearer/index.d.mts +1 -1
  106. package/dist/plugins/bearer/index.d.ts +1 -1
  107. package/dist/plugins/bearer/index.mjs +5 -4
  108. package/dist/plugins/captcha/index.cjs +5 -4
  109. package/dist/plugins/captcha/index.d.cts +1 -1
  110. package/dist/plugins/captcha/index.d.mts +1 -1
  111. package/dist/plugins/captcha/index.d.ts +1 -1
  112. package/dist/plugins/captcha/index.mjs +5 -4
  113. package/dist/plugins/custom-session/index.cjs +11 -8
  114. package/dist/plugins/custom-session/index.d.cts +1 -1
  115. package/dist/plugins/custom-session/index.d.mts +1 -1
  116. package/dist/plugins/custom-session/index.d.ts +1 -1
  117. package/dist/plugins/custom-session/index.mjs +11 -8
  118. package/dist/plugins/device-authorization/index.cjs +52 -19
  119. package/dist/plugins/device-authorization/index.d.cts +1 -1
  120. package/dist/plugins/device-authorization/index.d.mts +1 -1
  121. package/dist/plugins/device-authorization/index.d.ts +1 -1
  122. package/dist/plugins/device-authorization/index.mjs +52 -19
  123. package/dist/plugins/email-otp/index.cjs +62 -21
  124. package/dist/plugins/email-otp/index.d.cts +1 -1
  125. package/dist/plugins/email-otp/index.d.mts +1 -1
  126. package/dist/plugins/email-otp/index.d.ts +1 -1
  127. package/dist/plugins/email-otp/index.mjs +62 -21
  128. package/dist/plugins/generic-oauth/index.cjs +44 -25
  129. package/dist/plugins/generic-oauth/index.d.cts +1 -1
  130. package/dist/plugins/generic-oauth/index.d.mts +1 -1
  131. package/dist/plugins/generic-oauth/index.d.ts +1 -1
  132. package/dist/plugins/generic-oauth/index.mjs +44 -25
  133. package/dist/plugins/haveibeenpwned/index.cjs +5 -4
  134. package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
  135. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  136. package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
  137. package/dist/plugins/haveibeenpwned/index.mjs +5 -4
  138. package/dist/plugins/index.cjs +11 -10
  139. package/dist/plugins/index.d.cts +6 -6
  140. package/dist/plugins/index.d.mts +6 -6
  141. package/dist/plugins/index.d.ts +6 -6
  142. package/dist/plugins/index.mjs +13 -12
  143. package/dist/plugins/jwt/index.cjs +5 -4
  144. package/dist/plugins/jwt/index.d.cts +1 -1
  145. package/dist/plugins/jwt/index.d.mts +1 -1
  146. package/dist/plugins/jwt/index.d.ts +1 -1
  147. package/dist/plugins/jwt/index.mjs +5 -4
  148. package/dist/plugins/magic-link/index.cjs +32 -21
  149. package/dist/plugins/magic-link/index.mjs +32 -21
  150. package/dist/plugins/multi-session/index.cjs +11 -6
  151. package/dist/plugins/multi-session/index.d.cts +1 -1
  152. package/dist/plugins/multi-session/index.d.mts +1 -1
  153. package/dist/plugins/multi-session/index.d.ts +1 -1
  154. package/dist/plugins/multi-session/index.mjs +11 -6
  155. package/dist/plugins/oauth-proxy/index.cjs +11 -6
  156. package/dist/plugins/oauth-proxy/index.d.cts +1 -1
  157. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  158. package/dist/plugins/oauth-proxy/index.d.ts +1 -1
  159. package/dist/plugins/oauth-proxy/index.mjs +11 -6
  160. package/dist/plugins/oidc-provider/index.cjs +6 -5
  161. package/dist/plugins/oidc-provider/index.d.cts +5 -5
  162. package/dist/plugins/oidc-provider/index.d.mts +5 -5
  163. package/dist/plugins/oidc-provider/index.d.ts +5 -5
  164. package/dist/plugins/oidc-provider/index.mjs +6 -5
  165. package/dist/plugins/one-tap/index.cjs +8 -7
  166. package/dist/plugins/one-tap/index.mjs +8 -7
  167. package/dist/plugins/one-time-token/index.cjs +7 -6
  168. package/dist/plugins/one-time-token/index.d.cts +1 -1
  169. package/dist/plugins/one-time-token/index.d.mts +1 -1
  170. package/dist/plugins/one-time-token/index.d.ts +1 -1
  171. package/dist/plugins/one-time-token/index.mjs +7 -6
  172. package/dist/plugins/open-api/index.cjs +5 -4
  173. package/dist/plugins/open-api/index.d.cts +1 -1
  174. package/dist/plugins/open-api/index.d.mts +1 -1
  175. package/dist/plugins/open-api/index.d.ts +1 -1
  176. package/dist/plugins/open-api/index.mjs +5 -4
  177. package/dist/plugins/organization/index.cjs +7 -6
  178. package/dist/plugins/organization/index.d.cts +9 -9
  179. package/dist/plugins/organization/index.d.mts +9 -9
  180. package/dist/plugins/organization/index.d.ts +9 -9
  181. package/dist/plugins/organization/index.mjs +7 -6
  182. package/dist/plugins/passkey/index.cjs +17 -12
  183. package/dist/plugins/passkey/index.d.cts +1 -1
  184. package/dist/plugins/passkey/index.d.mts +1 -1
  185. package/dist/plugins/passkey/index.d.ts +1 -1
  186. package/dist/plugins/passkey/index.mjs +17 -12
  187. package/dist/plugins/phone-number/index.cjs +41 -24
  188. package/dist/plugins/phone-number/index.d.cts +1 -1
  189. package/dist/plugins/phone-number/index.d.mts +1 -1
  190. package/dist/plugins/phone-number/index.d.ts +1 -1
  191. package/dist/plugins/phone-number/index.mjs +41 -24
  192. package/dist/plugins/siwe/index.cjs +5 -4
  193. package/dist/plugins/siwe/index.d.cts +1 -1
  194. package/dist/plugins/siwe/index.d.mts +1 -1
  195. package/dist/plugins/siwe/index.d.ts +1 -1
  196. package/dist/plugins/siwe/index.mjs +5 -4
  197. package/dist/plugins/sso/index.cjs +89 -62
  198. package/dist/plugins/sso/index.d.cts +3 -3
  199. package/dist/plugins/sso/index.d.mts +3 -3
  200. package/dist/plugins/sso/index.d.ts +3 -3
  201. package/dist/plugins/sso/index.mjs +89 -62
  202. package/dist/plugins/two-factor/index.cjs +50 -19
  203. package/dist/plugins/two-factor/index.d.cts +1 -1
  204. package/dist/plugins/two-factor/index.d.mts +1 -1
  205. package/dist/plugins/two-factor/index.d.ts +1 -1
  206. package/dist/plugins/two-factor/index.mjs +50 -19
  207. package/dist/plugins/username/index.cjs +18 -11
  208. package/dist/plugins/username/index.d.cts +19 -19
  209. package/dist/plugins/username/index.d.mts +19 -19
  210. package/dist/plugins/username/index.d.ts +19 -19
  211. package/dist/plugins/username/index.mjs +18 -11
  212. package/dist/shared/{better-auth.CuyhlHls.cjs → better-auth.1iHKsGdY.cjs} +2 -2
  213. package/dist/shared/{better-auth.DyZUF2_t.d.ts → better-auth.3es9ZU_K.d.ts} +36 -37
  214. package/dist/shared/{better-auth.COdnr6eY.cjs → better-auth.B2Bmtu6f.cjs} +83 -47
  215. package/dist/shared/{better-auth.T3Ux10v9.mjs → better-auth.BAPVOPl3.mjs} +3 -3
  216. package/dist/shared/{better-auth.DxV4YGX3.mjs → better-auth.BAQSo96z.mjs} +6 -4
  217. package/dist/shared/{better-auth.cXemjp2M.mjs → better-auth.BHwIy11H.mjs} +83 -47
  218. package/dist/shared/{better-auth.B1Za4fb4.d.cts → better-auth.BLDIAFp8.d.cts} +5 -5
  219. package/dist/shared/{better-auth.DHiuXI9L.d.cts → better-auth.BOKSn3AP.d.cts} +36 -37
  220. package/dist/shared/{better-auth.ZC_QEMLv.d.cts → better-auth.BW0VS3vZ.d.cts} +1 -1
  221. package/dist/shared/{better-auth.DXd8qaHd.mjs → better-auth.Bc2H_kPB.mjs} +54 -28
  222. package/dist/shared/{better-auth.DhQzyejE.mjs → better-auth.BoY6Vo7c.mjs} +1 -1
  223. package/dist/shared/{better-auth.D1jaLDAW.mjs → better-auth.C-9OPnjJ.mjs} +151 -71
  224. package/dist/shared/{better-auth.A_lT_4ey.cjs → better-auth.C0WkvM-b.cjs} +151 -71
  225. package/dist/shared/{better-auth.iE8wqp5_.cjs → better-auth.C2xLgiCv.cjs} +1 -1
  226. package/dist/shared/{better-auth.Cdkx1UlR.cjs → better-auth.C4gSFtQb.cjs} +54 -28
  227. package/dist/shared/{better-auth.D3u5pPGf.d.ts → better-auth.CAc8m5ps.d.ts} +1 -1
  228. package/dist/shared/{better-auth.BUqsHDoX.d.ts → better-auth.CBpfh9gd.d.ts} +1 -1
  229. package/dist/shared/{better-auth.BUmFH1YH.d.mts → better-auth.CHakYG_s.d.mts} +5 -5
  230. package/dist/shared/{better-auth.Co88PbP3.mjs → better-auth.CIqzVuC5.mjs} +15 -9
  231. package/dist/shared/{better-auth.DL28hkwE.mjs → better-auth.CJk6lu9H.mjs} +5 -5
  232. package/dist/shared/{better-auth.wBgaxGEw.cjs → better-auth.CWoe8tep.cjs} +15 -9
  233. package/dist/shared/{better-auth.TQtfFmwt.mjs → better-auth.Cs4ObP2J.mjs} +246 -139
  234. package/dist/shared/{better-auth.BftmE2f4.mjs → better-auth.Cw2Wb5xl.mjs} +2 -2
  235. package/dist/shared/{better-auth.BTmQo2-r.mjs → better-auth.CyhdLtgz.mjs} +122 -54
  236. package/dist/shared/{better-auth.Cn3gHKIq.d.ts → better-auth.D1mfnXw8.d.ts} +5 -5
  237. package/dist/shared/better-auth.D2xndZ2p.mjs +5 -0
  238. package/dist/shared/{better-auth.LBYUF6qL.d.mts → better-auth.D63GoHoT.d.mts} +1 -1
  239. package/dist/shared/{better-auth.DrO1u8u7.cjs → better-auth.DVpUemsq.cjs} +49 -10
  240. package/dist/shared/{better-auth.CYRK2rir.cjs → better-auth.DcLnIy5M.cjs} +122 -54
  241. package/dist/shared/{better-auth.B-RhOtHf.cjs → better-auth.Df7v65t4.cjs} +3 -3
  242. package/dist/shared/{better-auth.g25nv4YL.mjs → better-auth.DpE8ZxDZ.mjs} +49 -10
  243. package/dist/shared/{better-auth.8am3GyvS.d.cts → better-auth.DqouI_5s.d.cts} +1 -1
  244. package/dist/shared/{better-auth.DRmln2Nr.cjs → better-auth.DxBcELEX.cjs} +6 -4
  245. package/dist/shared/{better-auth.BSU7i7gN.cjs → better-auth.Fhb5xDFB.cjs} +5 -5
  246. package/dist/shared/{better-auth.CNhgW39t.cjs → better-auth.W6wY8Xk1.cjs} +246 -139
  247. package/dist/shared/{better-auth.DIfV2UBl.cjs → better-auth.oHfRlmfe.cjs} +1 -1
  248. package/dist/shared/{better-auth.C3bLnul-.mjs → better-auth.pyHheoY8.mjs} +1 -1
  249. package/dist/shared/better-auth.uykCWCYS.cjs +7 -0
  250. package/dist/shared/{better-auth.DQBMcFsm.d.mts → better-auth.vNMd9aBC.d.mts} +36 -37
  251. package/dist/shared/{better-auth.BC_XVl81.d.mts → better-auth.x83uJ-Ru.d.mts} +1 -1
  252. package/dist/social-providers/index.cjs +5 -4
  253. package/dist/social-providers/index.mjs +5 -4
  254. package/dist/test-utils/index.cjs +10 -9
  255. package/dist/test-utils/index.d.cts +59 -57
  256. package/dist/test-utils/index.d.mts +59 -57
  257. package/dist/test-utils/index.d.ts +59 -57
  258. package/dist/test-utils/index.mjs +10 -9
  259. package/dist/types/index.d.cts +2 -2
  260. package/dist/types/index.d.mts +2 -2
  261. package/dist/types/index.d.ts +2 -2
  262. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.DHiuXI9L.cjs';
2
+ import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.BOKSn3AP.cjs';
3
3
  import { AccessControl, Role, Subset, Statements } from '../access/index.cjs';
4
4
  import * as better_call from 'better-call';
5
5
  import { Prettify } from 'better-call';
@@ -4301,7 +4301,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4301
4301
  sortDirection?: "asc" | "desc" | undefined;
4302
4302
  filterField?: string | undefined;
4303
4303
  filterValue?: string | number | boolean | undefined;
4304
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
4304
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
4305
4305
  organizationId?: string | undefined;
4306
4306
  } | undefined;
4307
4307
  } & {
@@ -4365,13 +4365,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4365
4365
  filterField: z.ZodOptional<z.ZodString>;
4366
4366
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
4367
4367
  filterOperator: z.ZodOptional<z.ZodEnum<{
4368
+ contains: "contains";
4368
4369
  eq: "eq";
4369
4370
  ne: "ne";
4370
4371
  lt: "lt";
4371
4372
  lte: "lte";
4372
4373
  gt: "gt";
4373
4374
  gte: "gte";
4374
- contains: "contains";
4375
4375
  }>>;
4376
4376
  organizationId: z.ZodOptional<z.ZodString>;
4377
4377
  }, z.core.$strip>>;
@@ -9228,7 +9228,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9228
9228
  sortDirection?: "asc" | "desc" | undefined;
9229
9229
  filterField?: string | undefined;
9230
9230
  filterValue?: string | number | boolean | undefined;
9231
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
9231
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
9232
9232
  organizationId?: string | undefined;
9233
9233
  } | undefined;
9234
9234
  } & {
@@ -9292,13 +9292,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9292
9292
  filterField: z.ZodOptional<z.ZodString>;
9293
9293
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
9294
9294
  filterOperator: z.ZodOptional<z.ZodEnum<{
9295
+ contains: "contains";
9295
9296
  eq: "eq";
9296
9297
  ne: "ne";
9297
9298
  lt: "lt";
9298
9299
  lte: "lte";
9299
9300
  gt: "gt";
9300
9301
  gte: "gte";
9301
- contains: "contains";
9302
9302
  }>>;
9303
9303
  organizationId: z.ZodOptional<z.ZodString>;
9304
9304
  }, z.core.$strip>>;
@@ -13421,7 +13421,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13421
13421
  sortDirection?: "asc" | "desc" | undefined;
13422
13422
  filterField?: string | undefined;
13423
13423
  filterValue?: string | number | boolean | undefined;
13424
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
13424
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
13425
13425
  organizationId?: string | undefined;
13426
13426
  } | undefined;
13427
13427
  } & {
@@ -13485,13 +13485,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13485
13485
  filterField: z.ZodOptional<z.ZodString>;
13486
13486
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
13487
13487
  filterOperator: z.ZodOptional<z.ZodEnum<{
13488
+ contains: "contains";
13488
13489
  eq: "eq";
13489
13490
  ne: "ne";
13490
13491
  lt: "lt";
13491
13492
  lte: "lte";
13492
13493
  gt: "gt";
13493
13494
  gte: "gte";
13494
- contains: "contains";
13495
13495
  }>>;
13496
13496
  organizationId: z.ZodOptional<z.ZodString>;
13497
13497
  }, z.core.$strip>>;
@@ -18348,7 +18348,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18348
18348
  sortDirection?: "asc" | "desc" | undefined;
18349
18349
  filterField?: string | undefined;
18350
18350
  filterValue?: string | number | boolean | undefined;
18351
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
18351
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
18352
18352
  organizationId?: string | undefined;
18353
18353
  } | undefined;
18354
18354
  } & {
@@ -18412,13 +18412,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18412
18412
  filterField: z.ZodOptional<z.ZodString>;
18413
18413
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
18414
18414
  filterOperator: z.ZodOptional<z.ZodEnum<{
18415
+ contains: "contains";
18415
18416
  eq: "eq";
18416
18417
  ne: "ne";
18417
18418
  lt: "lt";
18418
18419
  lte: "lte";
18419
18420
  gt: "gt";
18420
18421
  gte: "gte";
18421
- contains: "contains";
18422
18422
  }>>;
18423
18423
  organizationId: z.ZodOptional<z.ZodString>;
18424
18424
  }, z.core.$strip>>;
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.DQBMcFsm.mjs';
2
+ import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.vNMd9aBC.mjs';
3
3
  import { AccessControl, Role, Subset, Statements } from '../access/index.mjs';
4
4
  import * as better_call from 'better-call';
5
5
  import { Prettify } from 'better-call';
@@ -4301,7 +4301,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4301
4301
  sortDirection?: "asc" | "desc" | undefined;
4302
4302
  filterField?: string | undefined;
4303
4303
  filterValue?: string | number | boolean | undefined;
4304
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
4304
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
4305
4305
  organizationId?: string | undefined;
4306
4306
  } | undefined;
4307
4307
  } & {
@@ -4365,13 +4365,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4365
4365
  filterField: z.ZodOptional<z.ZodString>;
4366
4366
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
4367
4367
  filterOperator: z.ZodOptional<z.ZodEnum<{
4368
+ contains: "contains";
4368
4369
  eq: "eq";
4369
4370
  ne: "ne";
4370
4371
  lt: "lt";
4371
4372
  lte: "lte";
4372
4373
  gt: "gt";
4373
4374
  gte: "gte";
4374
- contains: "contains";
4375
4375
  }>>;
4376
4376
  organizationId: z.ZodOptional<z.ZodString>;
4377
4377
  }, z.core.$strip>>;
@@ -9228,7 +9228,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9228
9228
  sortDirection?: "asc" | "desc" | undefined;
9229
9229
  filterField?: string | undefined;
9230
9230
  filterValue?: string | number | boolean | undefined;
9231
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
9231
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
9232
9232
  organizationId?: string | undefined;
9233
9233
  } | undefined;
9234
9234
  } & {
@@ -9292,13 +9292,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9292
9292
  filterField: z.ZodOptional<z.ZodString>;
9293
9293
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
9294
9294
  filterOperator: z.ZodOptional<z.ZodEnum<{
9295
+ contains: "contains";
9295
9296
  eq: "eq";
9296
9297
  ne: "ne";
9297
9298
  lt: "lt";
9298
9299
  lte: "lte";
9299
9300
  gt: "gt";
9300
9301
  gte: "gte";
9301
- contains: "contains";
9302
9302
  }>>;
9303
9303
  organizationId: z.ZodOptional<z.ZodString>;
9304
9304
  }, z.core.$strip>>;
@@ -13421,7 +13421,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13421
13421
  sortDirection?: "asc" | "desc" | undefined;
13422
13422
  filterField?: string | undefined;
13423
13423
  filterValue?: string | number | boolean | undefined;
13424
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
13424
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
13425
13425
  organizationId?: string | undefined;
13426
13426
  } | undefined;
13427
13427
  } & {
@@ -13485,13 +13485,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13485
13485
  filterField: z.ZodOptional<z.ZodString>;
13486
13486
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
13487
13487
  filterOperator: z.ZodOptional<z.ZodEnum<{
13488
+ contains: "contains";
13488
13489
  eq: "eq";
13489
13490
  ne: "ne";
13490
13491
  lt: "lt";
13491
13492
  lte: "lte";
13492
13493
  gt: "gt";
13493
13494
  gte: "gte";
13494
- contains: "contains";
13495
13495
  }>>;
13496
13496
  organizationId: z.ZodOptional<z.ZodString>;
13497
13497
  }, z.core.$strip>>;
@@ -18348,7 +18348,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18348
18348
  sortDirection?: "asc" | "desc" | undefined;
18349
18349
  filterField?: string | undefined;
18350
18350
  filterValue?: string | number | boolean | undefined;
18351
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
18351
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
18352
18352
  organizationId?: string | undefined;
18353
18353
  } | undefined;
18354
18354
  } & {
@@ -18412,13 +18412,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18412
18412
  filterField: z.ZodOptional<z.ZodString>;
18413
18413
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
18414
18414
  filterOperator: z.ZodOptional<z.ZodEnum<{
18415
+ contains: "contains";
18415
18416
  eq: "eq";
18416
18417
  ne: "ne";
18417
18418
  lt: "lt";
18418
18419
  lte: "lte";
18419
18420
  gt: "gt";
18420
18421
  gte: "gte";
18421
- contains: "contains";
18422
18422
  }>>;
18423
18423
  organizationId: z.ZodOptional<z.ZodString>;
18424
18424
  }, z.core.$strip>>;
@@ -1,5 +1,5 @@
1
1
  import * as z from 'zod';
2
- import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.DyZUF2_t.js';
2
+ import { U as User, S as Session, d as AuthContext, L as FieldAttribute, X as InferAdditionalFieldsFromPluginOptions, G as GenericEndpointContext } from '../../shared/better-auth.3es9ZU_K.js';
3
3
  import { AccessControl, Role, Subset, Statements } from '../access/index.js';
4
4
  import * as better_call from 'better-call';
5
5
  import { Prettify } from 'better-call';
@@ -4301,7 +4301,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4301
4301
  sortDirection?: "asc" | "desc" | undefined;
4302
4302
  filterField?: string | undefined;
4303
4303
  filterValue?: string | number | boolean | undefined;
4304
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
4304
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
4305
4305
  organizationId?: string | undefined;
4306
4306
  } | undefined;
4307
4307
  } & {
@@ -4365,13 +4365,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
4365
4365
  filterField: z.ZodOptional<z.ZodString>;
4366
4366
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
4367
4367
  filterOperator: z.ZodOptional<z.ZodEnum<{
4368
+ contains: "contains";
4368
4369
  eq: "eq";
4369
4370
  ne: "ne";
4370
4371
  lt: "lt";
4371
4372
  lte: "lte";
4372
4373
  gt: "gt";
4373
4374
  gte: "gte";
4374
- contains: "contains";
4375
4375
  }>>;
4376
4376
  organizationId: z.ZodOptional<z.ZodString>;
4377
4377
  }, z.core.$strip>>;
@@ -9228,7 +9228,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9228
9228
  sortDirection?: "asc" | "desc" | undefined;
9229
9229
  filterField?: string | undefined;
9230
9230
  filterValue?: string | number | boolean | undefined;
9231
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
9231
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
9232
9232
  organizationId?: string | undefined;
9233
9233
  } | undefined;
9234
9234
  } & {
@@ -9292,13 +9292,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
9292
9292
  filterField: z.ZodOptional<z.ZodString>;
9293
9293
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
9294
9294
  filterOperator: z.ZodOptional<z.ZodEnum<{
9295
+ contains: "contains";
9295
9296
  eq: "eq";
9296
9297
  ne: "ne";
9297
9298
  lt: "lt";
9298
9299
  lte: "lte";
9299
9300
  gt: "gt";
9300
9301
  gte: "gte";
9301
- contains: "contains";
9302
9302
  }>>;
9303
9303
  organizationId: z.ZodOptional<z.ZodString>;
9304
9304
  }, z.core.$strip>>;
@@ -13421,7 +13421,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13421
13421
  sortDirection?: "asc" | "desc" | undefined;
13422
13422
  filterField?: string | undefined;
13423
13423
  filterValue?: string | number | boolean | undefined;
13424
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
13424
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
13425
13425
  organizationId?: string | undefined;
13426
13426
  } | undefined;
13427
13427
  } & {
@@ -13485,13 +13485,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
13485
13485
  filterField: z.ZodOptional<z.ZodString>;
13486
13486
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
13487
13487
  filterOperator: z.ZodOptional<z.ZodEnum<{
13488
+ contains: "contains";
13488
13489
  eq: "eq";
13489
13490
  ne: "ne";
13490
13491
  lt: "lt";
13491
13492
  lte: "lte";
13492
13493
  gt: "gt";
13493
13494
  gte: "gte";
13494
- contains: "contains";
13495
13495
  }>>;
13496
13496
  organizationId: z.ZodOptional<z.ZodString>;
13497
13497
  }, z.core.$strip>>;
@@ -18348,7 +18348,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18348
18348
  sortDirection?: "asc" | "desc" | undefined;
18349
18349
  filterField?: string | undefined;
18350
18350
  filterValue?: string | number | boolean | undefined;
18351
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
18351
+ filterOperator?: "contains" | "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | undefined;
18352
18352
  organizationId?: string | undefined;
18353
18353
  } | undefined;
18354
18354
  } & {
@@ -18412,13 +18412,13 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
18412
18412
  filterField: z.ZodOptional<z.ZodString>;
18413
18413
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
18414
18414
  filterOperator: z.ZodOptional<z.ZodEnum<{
18415
+ contains: "contains";
18415
18416
  eq: "eq";
18416
18417
  ne: "ne";
18417
18418
  lt: "lt";
18418
18419
  lte: "lte";
18419
18420
  gt: "gt";
18420
18421
  gte: "gte";
18421
- contains: "contains";
18422
18422
  }>>;
18423
18423
  organizationId: z.ZodOptional<z.ZodString>;
18424
18424
  }, z.core.$strip>>;
@@ -1,18 +1,19 @@
1
- export { o as organization, p as parseRoles } from '../../shared/better-auth.TQtfFmwt.mjs';
1
+ export { o as organization, p as parseRoles } from '../../shared/better-auth.Cs4ObP2J.mjs';
2
2
  import 'better-call';
3
3
  import 'zod';
4
- import '../../shared/better-auth.Co88PbP3.mjs';
4
+ import '../../shared/better-auth.CIqzVuC5.mjs';
5
5
  import '../../shared/better-auth.CW6D9eSx.mjs';
6
- import '../../shared/better-auth.C3bLnul-.mjs';
6
+ import '../../shared/better-auth.pyHheoY8.mjs';
7
7
  import '../../shared/better-auth.DdzSJf-n.mjs';
8
8
  import '../../shared/better-auth.CiuwFiHM.mjs';
9
9
  import '@better-auth/utils/base64';
10
10
  import '@better-auth/utils/hmac';
11
11
  import '../../shared/better-auth.CvNZNAOW.mjs';
12
12
  import '../../shared/better-auth.C4g12FAA.mjs';
13
- import '../../shared/better-auth.DxV4YGX3.mjs';
13
+ import '../../shared/better-auth.BAQSo96z.mjs';
14
14
  import '@better-auth/utils/binary';
15
- import '../../shared/better-auth.D1jaLDAW.mjs';
15
+ import '../../shared/better-auth.D2xndZ2p.mjs';
16
+ import '../../shared/better-auth.C-9OPnjJ.mjs';
16
17
  import '@better-auth/utils/hash';
17
18
  import '../../crypto/index.mjs';
18
19
  import '@noble/ciphers/chacha.js';
@@ -29,7 +30,7 @@ import '../../shared/better-auth.BUPPRXfK.mjs';
29
30
  import '../../shared/better-auth.CJ2rnsDV.mjs';
30
31
  import 'defu';
31
32
  import '../../shared/better-auth.msGOU0m9.mjs';
32
- import '../../shared/better-auth.BftmE2f4.mjs';
33
+ import '../../shared/better-auth.Cw2Wb5xl.mjs';
33
34
  import './access/index.mjs';
34
35
  import '../access/index.mjs';
35
36
  import '../../shared/better-auth.DaEBQJp_.mjs';
@@ -4,9 +4,9 @@ const server = require('@simplewebauthn/server');
4
4
  const betterCall = require('better-call');
5
5
  const random = require('../../shared/better-auth.CYeOI8C-.cjs');
6
6
  const z = require('zod');
7
- const session = require('../../shared/better-auth.wBgaxGEw.cjs');
8
- require('../../shared/better-auth.A_lT_4ey.cjs');
9
- const cookies_index = require('../../shared/better-auth.DIfV2UBl.cjs');
7
+ const session = require('../../shared/better-auth.CWoe8tep.cjs');
8
+ require('../../shared/better-auth.C0WkvM-b.cjs');
9
+ const cookies_index = require('../../shared/better-auth.oHfRlmfe.cjs');
10
10
  const schema$1 = require('../../shared/better-auth.DcYLM7Us.cjs');
11
11
  require('../../shared/better-auth.B6fIklBU.cjs');
12
12
  require('../../shared/better-auth.DTvRBuq4.cjs');
@@ -22,12 +22,13 @@ require('@noble/hashes/utils.js');
22
22
  require('@better-auth/utils/random');
23
23
  require('../../shared/better-auth.C1hdVENX.cjs');
24
24
  require('../../shared/better-auth.DgMx7bVs.cjs');
25
+ require('../../shared/better-auth.uykCWCYS.cjs');
25
26
  require('@better-auth/utils/hmac');
26
27
  require('@better-auth/utils/binary');
27
28
  require('../../crypto/index.cjs');
28
29
  require('../../shared/better-auth.ANpbi45u.cjs');
29
30
  require('@better-fetch/fetch');
30
- require('../../shared/better-auth.DRmln2Nr.cjs');
31
+ require('../../shared/better-auth.DxBcELEX.cjs');
31
32
  require('jose/errors');
32
33
  require('defu');
33
34
 
@@ -431,7 +432,9 @@ const passkey = (options) => {
431
432
  method: "POST",
432
433
  body: z__namespace.object({
433
434
  response: z__namespace.any(),
434
- name: z__namespace.string().describe("Name of the passkey").optional()
435
+ name: z__namespace.string().meta({
436
+ description: "Name of the passkey"
437
+ }).optional()
435
438
  }),
436
439
  use: [session.freshSessionMiddleware],
437
440
  metadata: {
@@ -773,7 +776,9 @@ const passkey = (options) => {
773
776
  {
774
777
  method: "POST",
775
778
  body: z__namespace.object({
776
- id: z__namespace.string().describe("The ID of the passkey to delete. Eg: ")
779
+ id: z__namespace.string().meta({
780
+ description: 'The ID of the passkey to delete. Eg: "some-passkey-id"'
781
+ })
777
782
  }),
778
783
  use: [session.sessionMiddleware],
779
784
  metadata: {
@@ -836,12 +841,12 @@ const passkey = (options) => {
836
841
  {
837
842
  method: "POST",
838
843
  body: z__namespace.object({
839
- id: z__namespace.string().describe(
840
- `The ID of the passkey which will be updated. Eg: "passkey-id"`
841
- ),
842
- name: z__namespace.string().describe(
843
- `The new name which the passkey will be updated to. Eg: "my-new-passkey-name"`
844
- )
844
+ id: z__namespace.string().meta({
845
+ description: `The ID of the passkey which will be updated. Eg: "passkey-id"`
846
+ }),
847
+ name: z__namespace.string().meta({
848
+ description: `The new name which the passkey will be updated to. Eg: "my-new-passkey-name"`
849
+ })
845
850
  }),
846
851
  use: [session.sessionMiddleware],
847
852
  metadata: {
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
2
2
  import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
3
3
  import * as better_call from 'better-call';
4
4
  import * as z from 'zod';
5
- import { I as InferOptionSchema } from '../../shared/better-auth.DHiuXI9L.cjs';
5
+ import { I as InferOptionSchema } from '../../shared/better-auth.BOKSn3AP.cjs';
6
6
  import 'kysely';
7
7
  import '../../shared/better-auth.v_lf-jeY.cjs';
8
8
  import '../../shared/better-auth.DTtXpZYr.cjs';
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
2
2
  import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
3
3
  import * as better_call from 'better-call';
4
4
  import * as z from 'zod';
5
- import { I as InferOptionSchema } from '../../shared/better-auth.DQBMcFsm.mjs';
5
+ import { I as InferOptionSchema } from '../../shared/better-auth.vNMd9aBC.mjs';
6
6
  import 'kysely';
7
7
  import '../../shared/better-auth.XefKa8DI.mjs';
8
8
  import '../../shared/better-auth.DTtXpZYr.mjs';
@@ -2,7 +2,7 @@ import * as _simplewebauthn_server from '@simplewebauthn/server';
2
2
  import { CredentialDeviceType, PublicKeyCredentialCreationOptionsJSON, AuthenticationResponseJSON } from '@simplewebauthn/server';
3
3
  import * as better_call from 'better-call';
4
4
  import * as z from 'zod';
5
- import { I as InferOptionSchema } from '../../shared/better-auth.DyZUF2_t.js';
5
+ import { I as InferOptionSchema } from '../../shared/better-auth.3es9ZU_K.js';
6
6
  import 'kysely';
7
7
  import '../../shared/better-auth.4SXCyo06.js';
8
8
  import '../../shared/better-auth.DTtXpZYr.js';
@@ -2,9 +2,9 @@ import { verifyAuthenticationResponse, verifyRegistrationResponse, generateAuthe
2
2
  import { APIError } from 'better-call';
3
3
  import { g as generateRandomString } from '../../shared/better-auth.B4Qoxdgc.mjs';
4
4
  import * as z from 'zod';
5
- import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.Co88PbP3.mjs';
6
- import '../../shared/better-auth.D1jaLDAW.mjs';
7
- import { s as setSessionCookie } from '../../shared/better-auth.C3bLnul-.mjs';
5
+ import { a as createAuthEndpoint, s as sessionMiddleware, f as freshSessionMiddleware, g as getSessionFromCtx } from '../../shared/better-auth.CIqzVuC5.mjs';
6
+ import '../../shared/better-auth.C-9OPnjJ.mjs';
7
+ import { s as setSessionCookie } from '../../shared/better-auth.pyHheoY8.mjs';
8
8
  import { m as mergeSchema } from '../../shared/better-auth.CJ2rnsDV.mjs';
9
9
  import '../../shared/better-auth.CiuwFiHM.mjs';
10
10
  import '../../shared/better-auth.C4g12FAA.mjs';
@@ -20,12 +20,13 @@ import '@noble/hashes/utils.js';
20
20
  import '@better-auth/utils/random';
21
21
  import '../../shared/better-auth.CW6D9eSx.mjs';
22
22
  import '../../shared/better-auth.CvNZNAOW.mjs';
23
+ import '../../shared/better-auth.D2xndZ2p.mjs';
23
24
  import '@better-auth/utils/hmac';
24
25
  import '@better-auth/utils/binary';
25
26
  import '../../crypto/index.mjs';
26
27
  import '../../shared/better-auth.DdzSJf-n.mjs';
27
28
  import '@better-fetch/fetch';
28
- import '../../shared/better-auth.DxV4YGX3.mjs';
29
+ import '../../shared/better-auth.BAQSo96z.mjs';
29
30
  import 'jose/errors';
30
31
  import 'defu';
31
32
 
@@ -415,7 +416,9 @@ const passkey = (options) => {
415
416
  method: "POST",
416
417
  body: z.object({
417
418
  response: z.any(),
418
- name: z.string().describe("Name of the passkey").optional()
419
+ name: z.string().meta({
420
+ description: "Name of the passkey"
421
+ }).optional()
419
422
  }),
420
423
  use: [freshSessionMiddleware],
421
424
  metadata: {
@@ -757,7 +760,9 @@ const passkey = (options) => {
757
760
  {
758
761
  method: "POST",
759
762
  body: z.object({
760
- id: z.string().describe("The ID of the passkey to delete. Eg: ")
763
+ id: z.string().meta({
764
+ description: 'The ID of the passkey to delete. Eg: "some-passkey-id"'
765
+ })
761
766
  }),
762
767
  use: [sessionMiddleware],
763
768
  metadata: {
@@ -820,12 +825,12 @@ const passkey = (options) => {
820
825
  {
821
826
  method: "POST",
822
827
  body: z.object({
823
- id: z.string().describe(
824
- `The ID of the passkey which will be updated. Eg: "passkey-id"`
825
- ),
826
- name: z.string().describe(
827
- `The new name which the passkey will be updated to. Eg: "my-new-passkey-name"`
828
- )
828
+ id: z.string().meta({
829
+ description: `The ID of the passkey which will be updated. Eg: "passkey-id"`
830
+ }),
831
+ name: z.string().meta({
832
+ description: `The new name which the passkey will be updated to. Eg: "my-new-passkey-name"`
833
+ })
829
834
  }),
830
835
  use: [sessionMiddleware],
831
836
  metadata: {
@@ -1,16 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  const z = require('zod');
4
- const session = require('../../shared/better-auth.wBgaxGEw.cjs');
4
+ const session = require('../../shared/better-auth.CWoe8tep.cjs');
5
5
  const betterCall = require('better-call');
6
6
  const schema$1 = require('../../shared/better-auth.DcYLM7Us.cjs');
7
7
  const random = require('../../shared/better-auth.CYeOI8C-.cjs');
8
- require('../../shared/better-auth.A_lT_4ey.cjs');
9
- const cookies_index = require('../../shared/better-auth.DIfV2UBl.cjs');
8
+ require('../../shared/better-auth.C0WkvM-b.cjs');
9
+ const cookies_index = require('../../shared/better-auth.oHfRlmfe.cjs');
10
10
  require('../../shared/better-auth.B6fIklBU.cjs');
11
11
  require('../../shared/better-auth.DTvRBuq4.cjs');
12
12
  const date = require('../../shared/better-auth.C1hdVENX.cjs');
13
13
  require('../../shared/better-auth.DgMx7bVs.cjs');
14
+ require('../../shared/better-auth.uykCWCYS.cjs');
14
15
  require('@better-auth/utils/hmac');
15
16
  require('@better-auth/utils/base64');
16
17
  require('@better-auth/utils/binary');
@@ -25,7 +26,7 @@ require('@better-auth/utils/hex');
25
26
  require('@noble/hashes/utils.js');
26
27
  require('../../shared/better-auth.ANpbi45u.cjs');
27
28
  require('@better-fetch/fetch');
28
- require('../../shared/better-auth.DRmln2Nr.cjs');
29
+ require('../../shared/better-auth.DxBcELEX.cjs');
29
30
  require('jose/errors');
30
31
  require('../../shared/better-auth.Bg6iw3ig.cjs');
31
32
  require('defu');
@@ -91,9 +92,15 @@ const phoneNumber = (options) => {
91
92
  {
92
93
  method: "POST",
93
94
  body: z__namespace.object({
94
- phoneNumber: z__namespace.string().describe("Phone number to sign in. Eg: "),
95
- password: z__namespace.string().describe("Password to use for sign in."),
96
- rememberMe: z__namespace.boolean().describe("Remember the session. Eg: true").optional()
95
+ phoneNumber: z__namespace.string().meta({
96
+ description: 'Phone number to sign in. Eg: "+1234567890"'
97
+ }),
98
+ password: z__namespace.string().meta({
99
+ description: "Password to use for sign in."
100
+ }),
101
+ rememberMe: z__namespace.boolean().meta({
102
+ description: "Remember the session. Eg: true"
103
+ }).optional()
97
104
  }),
98
105
  metadata: {
99
106
  openapi: {
@@ -258,7 +265,9 @@ const phoneNumber = (options) => {
258
265
  {
259
266
  method: "POST",
260
267
  body: z__namespace.object({
261
- phoneNumber: z__namespace.string().describe("Phone number to send OTP. Eg: ")
268
+ phoneNumber: z__namespace.string().meta({
269
+ description: 'Phone number to send OTP. Eg: "+1234567890"'
270
+ })
262
271
  }),
263
272
  metadata: {
264
273
  openapi: {
@@ -343,26 +352,30 @@ const phoneNumber = (options) => {
343
352
  /**
344
353
  * Phone number
345
354
  */
346
- phoneNumber: z__namespace.string().describe("Phone number to verify. Eg: "),
355
+ phoneNumber: z__namespace.string().meta({
356
+ description: 'Phone number to verify. Eg: "+1234567890"'
357
+ }),
347
358
  /**
348
359
  * OTP code
349
360
  */
350
- code: z__namespace.string().describe("OTP code. Eg: "),
361
+ code: z__namespace.string().meta({
362
+ description: 'OTP code. Eg: "123456"'
363
+ }),
351
364
  /**
352
365
  * Disable session creation after verification
353
366
  * @default false
354
367
  */
355
- disableSession: z__namespace.boolean().describe(
356
- "Disable session creation after verification. Eg: false"
357
- ).optional(),
368
+ disableSession: z__namespace.boolean().meta({
369
+ description: "Disable session creation after verification. Eg: false"
370
+ }).optional(),
358
371
  /**
359
372
  * This checks if there is a session already
360
373
  * and updates the phone number with the provided
361
374
  * phone number
362
375
  */
363
- updatePhoneNumber: z__namespace.boolean().describe(
364
- "Check if there is a session and update the phone number. Eg: true"
365
- ).optional()
376
+ updatePhoneNumber: z__namespace.boolean().meta({
377
+ description: "Check if there is a session and update the phone number. Eg: true"
378
+ }).optional()
366
379
  }),
367
380
  metadata: {
368
381
  openapi: {
@@ -639,9 +652,9 @@ const phoneNumber = (options) => {
639
652
  {
640
653
  method: "POST",
641
654
  body: z__namespace.object({
642
- phoneNumber: z__namespace.string().describe(
643
- `The phone number which is associated with the user. Eg: "+1234567890"`
644
- )
655
+ phoneNumber: z__namespace.string().meta({
656
+ description: `The phone number which is associated with the user. Eg: "+1234567890"`
657
+ })
645
658
  }),
646
659
  metadata: {
647
660
  openapi: {
@@ -779,11 +792,15 @@ const phoneNumber = (options) => {
779
792
  {
780
793
  method: "POST",
781
794
  body: z__namespace.object({
782
- otp: z__namespace.string().describe("The one time password to reset the password. Eg: "),
783
- phoneNumber: z__namespace.string().describe(
784
- "The phone number to the account which intends to reset the password for. Eg: "
785
- ),
786
- newPassword: z__namespace.string().describe(`The new password. Eg: "new-and-secure-password"`)
795
+ otp: z__namespace.string().meta({
796
+ description: 'The one time password to reset the password. Eg: "123456"'
797
+ }),
798
+ phoneNumber: z__namespace.string().meta({
799
+ description: 'The phone number to the account which intends to reset the password for. Eg: "+1234567890"'
800
+ }),
801
+ newPassword: z__namespace.string().meta({
802
+ description: `The new password. Eg: "new-and-secure-password"`
803
+ })
787
804
  }),
788
805
  metadata: {
789
806
  openapi: {