better-auth 1.2.9-beta.7 → 1.2.9-beta.8

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 (142) 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.d.cts +1 -1
  23. package/dist/api/index.d.mts +1 -1
  24. package/dist/api/index.d.ts +1 -1
  25. package/dist/client/index.d.cts +1 -1
  26. package/dist/client/index.d.mts +1 -1
  27. package/dist/client/index.d.ts +1 -1
  28. package/dist/client/plugins/index.d.cts +2 -2
  29. package/dist/client/plugins/index.d.mts +2 -2
  30. package/dist/client/plugins/index.d.ts +2 -2
  31. package/dist/client/react/index.d.cts +1 -1
  32. package/dist/client/react/index.d.mts +1 -1
  33. package/dist/client/react/index.d.ts +1 -1
  34. package/dist/client/solid/index.d.cts +1 -1
  35. package/dist/client/solid/index.d.mts +1 -1
  36. package/dist/client/solid/index.d.ts +1 -1
  37. package/dist/client/svelte/index.d.cts +1 -1
  38. package/dist/client/svelte/index.d.mts +1 -1
  39. package/dist/client/svelte/index.d.ts +1 -1
  40. package/dist/client/vue/index.d.cts +1 -1
  41. package/dist/client/vue/index.d.mts +1 -1
  42. package/dist/client/vue/index.d.ts +1 -1
  43. package/dist/cookies/index.d.cts +1 -1
  44. package/dist/cookies/index.d.mts +1 -1
  45. package/dist/cookies/index.d.ts +1 -1
  46. package/dist/db/index.d.cts +2 -2
  47. package/dist/db/index.d.mts +2 -2
  48. package/dist/db/index.d.ts +2 -2
  49. package/dist/index.d.cts +2 -2
  50. package/dist/index.d.mts +2 -2
  51. package/dist/index.d.ts +2 -2
  52. package/dist/integrations/next-js.d.cts +1 -1
  53. package/dist/integrations/next-js.d.mts +1 -1
  54. package/dist/integrations/next-js.d.ts +1 -1
  55. package/dist/integrations/node.d.cts +1 -1
  56. package/dist/integrations/node.d.mts +1 -1
  57. package/dist/integrations/node.d.ts +1 -1
  58. package/dist/integrations/react-start.d.cts +1 -1
  59. package/dist/integrations/react-start.d.mts +1 -1
  60. package/dist/integrations/react-start.d.ts +1 -1
  61. package/dist/integrations/svelte-kit.d.cts +1 -1
  62. package/dist/integrations/svelte-kit.d.mts +1 -1
  63. package/dist/integrations/svelte-kit.d.ts +1 -1
  64. package/dist/oauth2/index.d.cts +2 -2
  65. package/dist/oauth2/index.d.mts +2 -2
  66. package/dist/oauth2/index.d.ts +2 -2
  67. package/dist/plugins/admin/index.d.cts +25 -25
  68. package/dist/plugins/admin/index.d.mts +25 -25
  69. package/dist/plugins/admin/index.d.ts +25 -25
  70. package/dist/plugins/anonymous/index.d.cts +1 -1
  71. package/dist/plugins/anonymous/index.d.mts +1 -1
  72. package/dist/plugins/anonymous/index.d.ts +1 -1
  73. package/dist/plugins/bearer/index.d.cts +1 -1
  74. package/dist/plugins/bearer/index.d.mts +1 -1
  75. package/dist/plugins/bearer/index.d.ts +1 -1
  76. package/dist/plugins/captcha/index.d.cts +1 -1
  77. package/dist/plugins/captcha/index.d.mts +1 -1
  78. package/dist/plugins/captcha/index.d.ts +1 -1
  79. package/dist/plugins/custom-session/index.d.cts +1 -1
  80. package/dist/plugins/custom-session/index.d.mts +1 -1
  81. package/dist/plugins/custom-session/index.d.ts +1 -1
  82. package/dist/plugins/email-otp/index.d.cts +1 -1
  83. package/dist/plugins/email-otp/index.d.mts +1 -1
  84. package/dist/plugins/email-otp/index.d.ts +1 -1
  85. package/dist/plugins/generic-oauth/index.d.cts +2 -2
  86. package/dist/plugins/generic-oauth/index.d.mts +2 -2
  87. package/dist/plugins/generic-oauth/index.d.ts +2 -2
  88. package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
  89. package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
  90. package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
  91. package/dist/plugins/index.d.cts +3 -3
  92. package/dist/plugins/index.d.mts +3 -3
  93. package/dist/plugins/index.d.ts +3 -3
  94. package/dist/plugins/jwt/index.d.cts +2 -2
  95. package/dist/plugins/jwt/index.d.mts +2 -2
  96. package/dist/plugins/jwt/index.d.ts +2 -2
  97. package/dist/plugins/multi-session/index.d.cts +3 -3
  98. package/dist/plugins/multi-session/index.d.mts +3 -3
  99. package/dist/plugins/multi-session/index.d.ts +3 -3
  100. package/dist/plugins/oauth-proxy/index.d.cts +1 -1
  101. package/dist/plugins/oauth-proxy/index.d.mts +1 -1
  102. package/dist/plugins/oauth-proxy/index.d.ts +1 -1
  103. package/dist/plugins/oidc-provider/index.d.cts +6 -6
  104. package/dist/plugins/oidc-provider/index.d.mts +6 -6
  105. package/dist/plugins/oidc-provider/index.d.ts +6 -6
  106. package/dist/plugins/one-time-token/index.d.cts +2 -2
  107. package/dist/plugins/one-time-token/index.d.mts +2 -2
  108. package/dist/plugins/one-time-token/index.d.ts +2 -2
  109. package/dist/plugins/open-api/index.d.cts +1 -1
  110. package/dist/plugins/open-api/index.d.mts +1 -1
  111. package/dist/plugins/open-api/index.d.ts +1 -1
  112. package/dist/plugins/organization/index.d.cts +109 -109
  113. package/dist/plugins/organization/index.d.mts +109 -109
  114. package/dist/plugins/organization/index.d.ts +109 -109
  115. package/dist/plugins/passkey/index.d.cts +8 -8
  116. package/dist/plugins/passkey/index.d.mts +8 -8
  117. package/dist/plugins/passkey/index.d.ts +8 -8
  118. package/dist/plugins/phone-number/index.d.cts +1 -1
  119. package/dist/plugins/phone-number/index.d.mts +1 -1
  120. package/dist/plugins/phone-number/index.d.ts +1 -1
  121. package/dist/plugins/sso/index.d.cts +2 -2
  122. package/dist/plugins/sso/index.d.mts +2 -2
  123. package/dist/plugins/sso/index.d.ts +2 -2
  124. package/dist/plugins/two-factor/index.d.cts +8 -8
  125. package/dist/plugins/two-factor/index.d.mts +8 -8
  126. package/dist/plugins/two-factor/index.d.ts +8 -8
  127. package/dist/plugins/username/index.d.cts +2 -2
  128. package/dist/plugins/username/index.d.mts +2 -2
  129. package/dist/plugins/username/index.d.ts +2 -2
  130. package/dist/shared/{better-auth.CFB3tRhe.d.ts → better-auth.BNd5XKh_.d.ts} +1 -1
  131. package/dist/shared/{better-auth.DrtmN2NE.d.mts → better-auth.CEh_VF4H.d.mts} +19 -19
  132. package/dist/shared/{better-auth.DlrGYDwK.d.cts → better-auth.Ca-u1VDq.d.cts} +19 -19
  133. package/dist/shared/{better-auth.C3XZ-VgJ.d.cts → better-auth.CtOqPuAo.d.cts} +1 -1
  134. package/dist/shared/{better-auth.CnWEHFr7.d.ts → better-auth.UGX6z4ai.d.ts} +19 -19
  135. package/dist/shared/{better-auth.kagr8goH.d.mts → better-auth.vOCuqX1T.d.mts} +1 -1
  136. package/dist/types/index.d.cts +2 -2
  137. package/dist/types/index.d.mts +2 -2
  138. package/dist/types/index.d.ts +2 -2
  139. package/package.json +1 -1
  140. package/dist/shared/{better-auth.DGCyfEhG.d.ts → better-auth.CFiv_jsY.d.ts} +159 -159
  141. package/dist/shared/{better-auth.DwXCmEc7.d.cts → better-auth.CpY7n5vC.d.cts} +159 -159
  142. package/dist/shared/{better-auth.Dqj-g-Up.d.mts → better-auth.Dz-H0d-W.d.mts} +159 -159
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../shared/better-auth.Dqj-g-Up.mjs';
2
+ import { H as HookEndpointContext } from '../shared/better-auth.Dz-H0d-W.mjs';
3
3
  import '../shared/better-auth.Bi8FQwDD.mjs';
4
4
  import 'zod';
5
5
  import '../shared/better-auth.DNEJbRnE.mjs';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../shared/better-auth.DGCyfEhG.js';
2
+ import { H as HookEndpointContext } from '../shared/better-auth.CFiv_jsY.js';
3
3
  import '../shared/better-auth.Bi8FQwDD.js';
4
4
  import 'zod';
5
5
  import '../shared/better-auth.BTuiucL9.js';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from '../shared/better-auth.DwXCmEc7.cjs';
1
+ import { B as BetterAuthOptions } from '../shared/better-auth.CpY7n5vC.cjs';
2
2
  import '../shared/better-auth.Bi8FQwDD.cjs';
3
3
  import 'zod';
4
4
  import '../shared/better-auth.Dz9w_OUB.cjs';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from '../shared/better-auth.Dqj-g-Up.mjs';
1
+ import { B as BetterAuthOptions } from '../shared/better-auth.Dz-H0d-W.mjs';
2
2
  import '../shared/better-auth.Bi8FQwDD.mjs';
3
3
  import 'zod';
4
4
  import '../shared/better-auth.DNEJbRnE.mjs';
@@ -1,4 +1,4 @@
1
- import { B as BetterAuthOptions } from '../shared/better-auth.DGCyfEhG.js';
1
+ import { B as BetterAuthOptions } from '../shared/better-auth.CFiv_jsY.js';
2
2
  import '../shared/better-auth.Bi8FQwDD.js';
3
3
  import 'zod';
4
4
  import '../shared/better-auth.BTuiucL9.js';
@@ -1,10 +1,10 @@
1
1
  import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.Dz9w_OUB.cjs';
2
2
  export { a as OAuthProvider } from '../shared/better-auth.Dz9w_OUB.cjs';
3
3
  import * as jose from 'jose';
4
- export { g as generateState, p as parseState } from '../shared/better-auth.C3XZ-VgJ.cjs';
4
+ export { g as generateState, p as parseState } from '../shared/better-auth.CtOqPuAo.cjs';
5
5
  import '../shared/better-auth.Bi8FQwDD.cjs';
6
6
  import 'zod';
7
- import '../shared/better-auth.DwXCmEc7.cjs';
7
+ import '../shared/better-auth.CpY7n5vC.cjs';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import 'better-sqlite3';
@@ -1,10 +1,10 @@
1
1
  import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.DNEJbRnE.mjs';
2
2
  export { a as OAuthProvider } from '../shared/better-auth.DNEJbRnE.mjs';
3
3
  import * as jose from 'jose';
4
- export { g as generateState, p as parseState } from '../shared/better-auth.kagr8goH.mjs';
4
+ export { g as generateState, p as parseState } from '../shared/better-auth.vOCuqX1T.mjs';
5
5
  import '../shared/better-auth.Bi8FQwDD.mjs';
6
6
  import 'zod';
7
- import '../shared/better-auth.Dqj-g-Up.mjs';
7
+ import '../shared/better-auth.Dz-H0d-W.mjs';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import 'better-sqlite3';
@@ -1,10 +1,10 @@
1
1
  import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.BTuiucL9.js';
2
2
  export { a as OAuthProvider } from '../shared/better-auth.BTuiucL9.js';
3
3
  import * as jose from 'jose';
4
- export { g as generateState, p as parseState } from '../shared/better-auth.CFB3tRhe.js';
4
+ export { g as generateState, p as parseState } from '../shared/better-auth.BNd5XKh_.js';
5
5
  import '../shared/better-auth.Bi8FQwDD.js';
6
6
  import 'zod';
7
- import '../shared/better-auth.DGCyfEhG.js';
7
+ import '../shared/better-auth.CFiv_jsY.js';
8
8
  import 'kysely';
9
9
  import 'better-call';
10
10
  import 'better-sqlite3';
@@ -1,7 +1,7 @@
1
1
  import { AccessControl, Role, Statements } from '../access/index.cjs';
2
2
  import * as better_call from 'better-call';
3
3
  import { z } from 'zod';
4
- import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.DwXCmEc7.cjs';
4
+ import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.CpY7n5vC.cjs';
5
5
  import '../../shared/better-auth.Bi8FQwDD.cjs';
6
6
  import '../../shared/better-auth.Dz9w_OUB.cjs';
7
7
  import 'jose';
@@ -92,18 +92,18 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
92
92
  create: {
93
93
  before(user: {
94
94
  id: string;
95
- name: string;
96
- emailVerified: boolean;
97
95
  email: string;
96
+ emailVerified: boolean;
97
+ name: string;
98
98
  createdAt: Date;
99
99
  updatedAt: Date;
100
100
  image?: string | null | undefined;
101
101
  }): Promise<{
102
102
  data: {
103
103
  id: string;
104
- name: string;
105
- emailVerified: boolean;
106
104
  email: string;
105
+ emailVerified: boolean;
106
+ name: string;
107
107
  createdAt: Date;
108
108
  updatedAt: Date;
109
109
  image?: string | null | undefined;
@@ -116,9 +116,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
116
116
  create: {
117
117
  before(session: {
118
118
  id: string;
119
- token: string;
120
119
  createdAt: Date;
121
120
  updatedAt: Date;
121
+ token: string;
122
122
  expiresAt: Date;
123
123
  userId: string;
124
124
  ipAddress?: string | null | undefined;
@@ -268,14 +268,14 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
268
268
  */
269
269
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
- name: string;
272
271
  email: string;
272
+ name: string;
273
273
  password: string;
274
274
  data?: Record<string, any> | undefined;
275
275
  role?: string | string[] | undefined;
276
276
  }, {
277
- name: string;
278
277
  email: string;
278
+ name: string;
279
279
  password: string;
280
280
  data?: Record<string, any> | undefined;
281
281
  role?: string | string[] | undefined;
@@ -325,16 +325,16 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
325
325
  method?: "GET" | undefined;
326
326
  } & {
327
327
  query: {
328
- sortBy?: string | undefined;
329
328
  limit?: string | number | undefined;
330
329
  offset?: string | number | undefined;
330
+ sortBy?: string | undefined;
331
331
  searchValue?: string | undefined;
332
- searchField?: "name" | "email" | undefined;
332
+ searchField?: "email" | "name" | undefined;
333
333
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
334
334
  sortDirection?: "asc" | "desc" | undefined;
335
335
  filterField?: string | undefined;
336
336
  filterValue?: string | number | boolean | undefined;
337
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
337
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
338
338
  };
339
339
  } & {
340
340
  params?: Record<string, any>;
@@ -390,27 +390,27 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
390
390
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
391
391
  filterOperator: z.ZodOptional<z.ZodEnum<["eq", "ne", "lt", "lte", "gt", "gte", "contains"]>>;
392
392
  }, "strip", z.ZodTypeAny, {
393
- sortBy?: string | undefined;
394
393
  limit?: string | number | undefined;
395
394
  offset?: string | number | undefined;
395
+ sortBy?: string | undefined;
396
396
  searchValue?: string | undefined;
397
- searchField?: "name" | "email" | undefined;
397
+ searchField?: "email" | "name" | undefined;
398
398
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
399
399
  sortDirection?: "asc" | "desc" | undefined;
400
400
  filterField?: string | undefined;
401
401
  filterValue?: string | number | boolean | undefined;
402
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
402
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
403
403
  }, {
404
- sortBy?: string | undefined;
405
404
  limit?: string | number | undefined;
406
405
  offset?: string | number | undefined;
406
+ sortBy?: string | undefined;
407
407
  searchValue?: string | undefined;
408
- searchField?: "name" | "email" | undefined;
408
+ searchField?: "email" | "name" | undefined;
409
409
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
410
410
  sortDirection?: "asc" | "desc" | undefined;
411
411
  filterField?: string | undefined;
412
412
  filterValue?: string | number | boolean | undefined;
413
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
413
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
414
414
  }>;
415
415
  metadata: {
416
416
  openapi: {
@@ -482,9 +482,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
482
482
  response: {
483
483
  sessions: {
484
484
  id: string;
485
- token: string;
486
485
  createdAt: Date;
487
486
  updatedAt: Date;
487
+ token: string;
488
488
  expiresAt: Date;
489
489
  userId: string;
490
490
  ipAddress?: string | null | undefined;
@@ -494,9 +494,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
494
494
  } : {
495
495
  sessions: {
496
496
  id: string;
497
- token: string;
498
497
  createdAt: Date;
499
498
  updatedAt: Date;
499
+ token: string;
500
500
  expiresAt: Date;
501
501
  userId: string;
502
502
  ipAddress?: string | null | undefined;
@@ -742,9 +742,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
742
742
  response: {
743
743
  session: {
744
744
  id: string;
745
- token: string;
746
745
  createdAt: Date;
747
746
  updatedAt: Date;
747
+ token: string;
748
748
  expiresAt: Date;
749
749
  userId: string;
750
750
  ipAddress?: string | null | undefined;
@@ -752,9 +752,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
752
752
  };
753
753
  user: {
754
754
  id: string;
755
- name: string;
756
- emailVerified: boolean;
757
755
  email: string;
756
+ emailVerified: boolean;
757
+ name: string;
758
758
  createdAt: Date;
759
759
  updatedAt: Date;
760
760
  image?: string | null | undefined;
@@ -763,9 +763,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
763
763
  } : {
764
764
  session: {
765
765
  id: string;
766
- token: string;
767
766
  createdAt: Date;
768
767
  updatedAt: Date;
768
+ token: string;
769
769
  expiresAt: Date;
770
770
  userId: string;
771
771
  ipAddress?: string | null | undefined;
@@ -773,9 +773,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
773
773
  };
774
774
  user: {
775
775
  id: string;
776
- name: string;
777
- emailVerified: boolean;
778
776
  email: string;
777
+ emailVerified: boolean;
778
+ name: string;
779
779
  createdAt: Date;
780
780
  updatedAt: Date;
781
781
  image?: string | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { AccessControl, Role, Statements } from '../access/index.mjs';
2
2
  import * as better_call from 'better-call';
3
3
  import { z } from 'zod';
4
- import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.Dqj-g-Up.mjs';
4
+ import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.Dz-H0d-W.mjs';
5
5
  import '../../shared/better-auth.Bi8FQwDD.mjs';
6
6
  import '../../shared/better-auth.DNEJbRnE.mjs';
7
7
  import 'jose';
@@ -92,18 +92,18 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
92
92
  create: {
93
93
  before(user: {
94
94
  id: string;
95
- name: string;
96
- emailVerified: boolean;
97
95
  email: string;
96
+ emailVerified: boolean;
97
+ name: string;
98
98
  createdAt: Date;
99
99
  updatedAt: Date;
100
100
  image?: string | null | undefined;
101
101
  }): Promise<{
102
102
  data: {
103
103
  id: string;
104
- name: string;
105
- emailVerified: boolean;
106
104
  email: string;
105
+ emailVerified: boolean;
106
+ name: string;
107
107
  createdAt: Date;
108
108
  updatedAt: Date;
109
109
  image?: string | null | undefined;
@@ -116,9 +116,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
116
116
  create: {
117
117
  before(session: {
118
118
  id: string;
119
- token: string;
120
119
  createdAt: Date;
121
120
  updatedAt: Date;
121
+ token: string;
122
122
  expiresAt: Date;
123
123
  userId: string;
124
124
  ipAddress?: string | null | undefined;
@@ -268,14 +268,14 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
268
268
  */
269
269
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
- name: string;
272
271
  email: string;
272
+ name: string;
273
273
  password: string;
274
274
  data?: Record<string, any> | undefined;
275
275
  role?: string | string[] | undefined;
276
276
  }, {
277
- name: string;
278
277
  email: string;
278
+ name: string;
279
279
  password: string;
280
280
  data?: Record<string, any> | undefined;
281
281
  role?: string | string[] | undefined;
@@ -325,16 +325,16 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
325
325
  method?: "GET" | undefined;
326
326
  } & {
327
327
  query: {
328
- sortBy?: string | undefined;
329
328
  limit?: string | number | undefined;
330
329
  offset?: string | number | undefined;
330
+ sortBy?: string | undefined;
331
331
  searchValue?: string | undefined;
332
- searchField?: "name" | "email" | undefined;
332
+ searchField?: "email" | "name" | undefined;
333
333
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
334
334
  sortDirection?: "asc" | "desc" | undefined;
335
335
  filterField?: string | undefined;
336
336
  filterValue?: string | number | boolean | undefined;
337
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
337
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
338
338
  };
339
339
  } & {
340
340
  params?: Record<string, any>;
@@ -390,27 +390,27 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
390
390
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
391
391
  filterOperator: z.ZodOptional<z.ZodEnum<["eq", "ne", "lt", "lte", "gt", "gte", "contains"]>>;
392
392
  }, "strip", z.ZodTypeAny, {
393
- sortBy?: string | undefined;
394
393
  limit?: string | number | undefined;
395
394
  offset?: string | number | undefined;
395
+ sortBy?: string | undefined;
396
396
  searchValue?: string | undefined;
397
- searchField?: "name" | "email" | undefined;
397
+ searchField?: "email" | "name" | undefined;
398
398
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
399
399
  sortDirection?: "asc" | "desc" | undefined;
400
400
  filterField?: string | undefined;
401
401
  filterValue?: string | number | boolean | undefined;
402
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
402
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
403
403
  }, {
404
- sortBy?: string | undefined;
405
404
  limit?: string | number | undefined;
406
405
  offset?: string | number | undefined;
406
+ sortBy?: string | undefined;
407
407
  searchValue?: string | undefined;
408
- searchField?: "name" | "email" | undefined;
408
+ searchField?: "email" | "name" | undefined;
409
409
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
410
410
  sortDirection?: "asc" | "desc" | undefined;
411
411
  filterField?: string | undefined;
412
412
  filterValue?: string | number | boolean | undefined;
413
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
413
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
414
414
  }>;
415
415
  metadata: {
416
416
  openapi: {
@@ -482,9 +482,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
482
482
  response: {
483
483
  sessions: {
484
484
  id: string;
485
- token: string;
486
485
  createdAt: Date;
487
486
  updatedAt: Date;
487
+ token: string;
488
488
  expiresAt: Date;
489
489
  userId: string;
490
490
  ipAddress?: string | null | undefined;
@@ -494,9 +494,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
494
494
  } : {
495
495
  sessions: {
496
496
  id: string;
497
- token: string;
498
497
  createdAt: Date;
499
498
  updatedAt: Date;
499
+ token: string;
500
500
  expiresAt: Date;
501
501
  userId: string;
502
502
  ipAddress?: string | null | undefined;
@@ -742,9 +742,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
742
742
  response: {
743
743
  session: {
744
744
  id: string;
745
- token: string;
746
745
  createdAt: Date;
747
746
  updatedAt: Date;
747
+ token: string;
748
748
  expiresAt: Date;
749
749
  userId: string;
750
750
  ipAddress?: string | null | undefined;
@@ -752,9 +752,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
752
752
  };
753
753
  user: {
754
754
  id: string;
755
- name: string;
756
- emailVerified: boolean;
757
755
  email: string;
756
+ emailVerified: boolean;
757
+ name: string;
758
758
  createdAt: Date;
759
759
  updatedAt: Date;
760
760
  image?: string | null | undefined;
@@ -763,9 +763,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
763
763
  } : {
764
764
  session: {
765
765
  id: string;
766
- token: string;
767
766
  createdAt: Date;
768
767
  updatedAt: Date;
768
+ token: string;
769
769
  expiresAt: Date;
770
770
  userId: string;
771
771
  ipAddress?: string | null | undefined;
@@ -773,9 +773,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
773
773
  };
774
774
  user: {
775
775
  id: string;
776
- name: string;
777
- emailVerified: boolean;
778
776
  email: string;
777
+ emailVerified: boolean;
778
+ name: string;
779
779
  createdAt: Date;
780
780
  updatedAt: Date;
781
781
  image?: string | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import { AccessControl, Role, Statements } from '../access/index.js';
2
2
  import * as better_call from 'better-call';
3
3
  import { z } from 'zod';
4
- import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.DGCyfEhG.js';
4
+ import { I as InferOptionSchema, G as GenericEndpointContext, H as HookEndpointContext, S as Session, U as User } from '../../shared/better-auth.CFiv_jsY.js';
5
5
  import '../../shared/better-auth.Bi8FQwDD.js';
6
6
  import '../../shared/better-auth.BTuiucL9.js';
7
7
  import 'jose';
@@ -92,18 +92,18 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
92
92
  create: {
93
93
  before(user: {
94
94
  id: string;
95
- name: string;
96
- emailVerified: boolean;
97
95
  email: string;
96
+ emailVerified: boolean;
97
+ name: string;
98
98
  createdAt: Date;
99
99
  updatedAt: Date;
100
100
  image?: string | null | undefined;
101
101
  }): Promise<{
102
102
  data: {
103
103
  id: string;
104
- name: string;
105
- emailVerified: boolean;
106
104
  email: string;
105
+ emailVerified: boolean;
106
+ name: string;
107
107
  createdAt: Date;
108
108
  updatedAt: Date;
109
109
  image?: string | null | undefined;
@@ -116,9 +116,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
116
116
  create: {
117
117
  before(session: {
118
118
  id: string;
119
- token: string;
120
119
  createdAt: Date;
121
120
  updatedAt: Date;
121
+ token: string;
122
122
  expiresAt: Date;
123
123
  userId: string;
124
124
  ipAddress?: string | null | undefined;
@@ -268,14 +268,14 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
268
268
  */
269
269
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
270
270
  }, "strip", z.ZodTypeAny, {
271
- name: string;
272
271
  email: string;
272
+ name: string;
273
273
  password: string;
274
274
  data?: Record<string, any> | undefined;
275
275
  role?: string | string[] | undefined;
276
276
  }, {
277
- name: string;
278
277
  email: string;
278
+ name: string;
279
279
  password: string;
280
280
  data?: Record<string, any> | undefined;
281
281
  role?: string | string[] | undefined;
@@ -325,16 +325,16 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
325
325
  method?: "GET" | undefined;
326
326
  } & {
327
327
  query: {
328
- sortBy?: string | undefined;
329
328
  limit?: string | number | undefined;
330
329
  offset?: string | number | undefined;
330
+ sortBy?: string | undefined;
331
331
  searchValue?: string | undefined;
332
- searchField?: "name" | "email" | undefined;
332
+ searchField?: "email" | "name" | undefined;
333
333
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
334
334
  sortDirection?: "asc" | "desc" | undefined;
335
335
  filterField?: string | undefined;
336
336
  filterValue?: string | number | boolean | undefined;
337
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
337
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
338
338
  };
339
339
  } & {
340
340
  params?: Record<string, any>;
@@ -390,27 +390,27 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
390
390
  filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
391
391
  filterOperator: z.ZodOptional<z.ZodEnum<["eq", "ne", "lt", "lte", "gt", "gte", "contains"]>>;
392
392
  }, "strip", z.ZodTypeAny, {
393
- sortBy?: string | undefined;
394
393
  limit?: string | number | undefined;
395
394
  offset?: string | number | undefined;
395
+ sortBy?: string | undefined;
396
396
  searchValue?: string | undefined;
397
- searchField?: "name" | "email" | undefined;
397
+ searchField?: "email" | "name" | undefined;
398
398
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
399
399
  sortDirection?: "asc" | "desc" | undefined;
400
400
  filterField?: string | undefined;
401
401
  filterValue?: string | number | boolean | undefined;
402
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
402
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
403
403
  }, {
404
- sortBy?: string | undefined;
405
404
  limit?: string | number | undefined;
406
405
  offset?: string | number | undefined;
406
+ sortBy?: string | undefined;
407
407
  searchValue?: string | undefined;
408
- searchField?: "name" | "email" | undefined;
408
+ searchField?: "email" | "name" | undefined;
409
409
  searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
410
410
  sortDirection?: "asc" | "desc" | undefined;
411
411
  filterField?: string | undefined;
412
412
  filterValue?: string | number | boolean | undefined;
413
- filterOperator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | undefined;
413
+ filterOperator?: "lt" | "eq" | "ne" | "lte" | "gt" | "gte" | "contains" | undefined;
414
414
  }>;
415
415
  metadata: {
416
416
  openapi: {
@@ -482,9 +482,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
482
482
  response: {
483
483
  sessions: {
484
484
  id: string;
485
- token: string;
486
485
  createdAt: Date;
487
486
  updatedAt: Date;
487
+ token: string;
488
488
  expiresAt: Date;
489
489
  userId: string;
490
490
  ipAddress?: string | null | undefined;
@@ -494,9 +494,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
494
494
  } : {
495
495
  sessions: {
496
496
  id: string;
497
- token: string;
498
497
  createdAt: Date;
499
498
  updatedAt: Date;
499
+ token: string;
500
500
  expiresAt: Date;
501
501
  userId: string;
502
502
  ipAddress?: string | null | undefined;
@@ -742,9 +742,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
742
742
  response: {
743
743
  session: {
744
744
  id: string;
745
- token: string;
746
745
  createdAt: Date;
747
746
  updatedAt: Date;
747
+ token: string;
748
748
  expiresAt: Date;
749
749
  userId: string;
750
750
  ipAddress?: string | null | undefined;
@@ -752,9 +752,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
752
752
  };
753
753
  user: {
754
754
  id: string;
755
- name: string;
756
- emailVerified: boolean;
757
755
  email: string;
756
+ emailVerified: boolean;
757
+ name: string;
758
758
  createdAt: Date;
759
759
  updatedAt: Date;
760
760
  image?: string | null | undefined;
@@ -763,9 +763,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
763
763
  } : {
764
764
  session: {
765
765
  id: string;
766
- token: string;
767
766
  createdAt: Date;
768
767
  updatedAt: Date;
768
+ token: string;
769
769
  expiresAt: Date;
770
770
  userId: string;
771
771
  ipAddress?: string | null | undefined;
@@ -773,9 +773,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
773
773
  };
774
774
  user: {
775
775
  id: string;
776
- name: string;
777
- emailVerified: boolean;
778
776
  email: string;
777
+ emailVerified: boolean;
778
+ name: string;
779
779
  createdAt: Date;
780
780
  updatedAt: Date;
781
781
  image?: string | null | undefined;
@@ -1,4 +1,4 @@
1
- import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.DwXCmEc7.cjs';
1
+ import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.CpY7n5vC.cjs';
2
2
  import * as better_call from 'better-call';
3
3
  import { EndpointContext } from 'better-call';
4
4
  import '../../shared/better-auth.Bi8FQwDD.cjs';
@@ -1,4 +1,4 @@
1
- import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.Dqj-g-Up.mjs';
1
+ import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.Dz-H0d-W.mjs';
2
2
  import * as better_call from 'better-call';
3
3
  import { EndpointContext } from 'better-call';
4
4
  import '../../shared/better-auth.Bi8FQwDD.mjs';
@@ -1,4 +1,4 @@
1
- import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.DGCyfEhG.js';
1
+ import { U as User, S as Session, p as AuthContext, I as InferOptionSchema, H as HookEndpointContext } from '../../shared/better-auth.CFiv_jsY.js';
2
2
  import * as better_call from 'better-call';
3
3
  import { EndpointContext } from 'better-call';
4
4
  import '../../shared/better-auth.Bi8FQwDD.js';
@@ -1,5 +1,5 @@
1
1
  import * as better_call from 'better-call';
2
- import { H as HookEndpointContext } from '../../shared/better-auth.DwXCmEc7.cjs';
2
+ import { H as HookEndpointContext } from '../../shared/better-auth.CpY7n5vC.cjs';
3
3
  import '../../shared/better-auth.Bi8FQwDD.cjs';
4
4
  import 'zod';
5
5
  import '../../shared/better-auth.Dz9w_OUB.cjs';