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.
- package/dist/adapters/drizzle-adapter/index.d.cts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.mts +1 -1
- package/dist/adapters/drizzle-adapter/index.d.ts +1 -1
- package/dist/adapters/index.d.cts +2 -2
- package/dist/adapters/index.d.mts +2 -2
- package/dist/adapters/index.d.ts +2 -2
- package/dist/adapters/kysely-adapter/index.d.cts +1 -1
- package/dist/adapters/kysely-adapter/index.d.mts +1 -1
- package/dist/adapters/kysely-adapter/index.d.ts +1 -1
- package/dist/adapters/memory-adapter/index.d.cts +1 -1
- package/dist/adapters/memory-adapter/index.d.mts +1 -1
- package/dist/adapters/memory-adapter/index.d.ts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.cts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.mts +1 -1
- package/dist/adapters/mongodb-adapter/index.d.ts +1 -1
- package/dist/adapters/prisma-adapter/index.d.cts +1 -1
- package/dist/adapters/prisma-adapter/index.d.mts +1 -1
- package/dist/adapters/prisma-adapter/index.d.ts +1 -1
- package/dist/adapters/test.d.cts +1 -1
- package/dist/adapters/test.d.mts +1 -1
- package/dist/adapters/test.d.ts +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/plugins/index.d.cts +2 -2
- package/dist/client/plugins/index.d.mts +2 -2
- package/dist/client/plugins/index.d.ts +2 -2
- package/dist/client/react/index.d.cts +1 -1
- package/dist/client/react/index.d.mts +1 -1
- package/dist/client/react/index.d.ts +1 -1
- package/dist/client/solid/index.d.cts +1 -1
- package/dist/client/solid/index.d.mts +1 -1
- package/dist/client/solid/index.d.ts +1 -1
- package/dist/client/svelte/index.d.cts +1 -1
- package/dist/client/svelte/index.d.mts +1 -1
- package/dist/client/svelte/index.d.ts +1 -1
- package/dist/client/vue/index.d.cts +1 -1
- package/dist/client/vue/index.d.mts +1 -1
- package/dist/client/vue/index.d.ts +1 -1
- package/dist/cookies/index.d.cts +1 -1
- package/dist/cookies/index.d.mts +1 -1
- package/dist/cookies/index.d.ts +1 -1
- package/dist/db/index.d.cts +2 -2
- package/dist/db/index.d.mts +2 -2
- package/dist/db/index.d.ts +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/integrations/next-js.d.cts +1 -1
- package/dist/integrations/next-js.d.mts +1 -1
- package/dist/integrations/next-js.d.ts +1 -1
- package/dist/integrations/node.d.cts +1 -1
- package/dist/integrations/node.d.mts +1 -1
- package/dist/integrations/node.d.ts +1 -1
- package/dist/integrations/react-start.d.cts +1 -1
- package/dist/integrations/react-start.d.mts +1 -1
- package/dist/integrations/react-start.d.ts +1 -1
- package/dist/integrations/svelte-kit.d.cts +1 -1
- package/dist/integrations/svelte-kit.d.mts +1 -1
- package/dist/integrations/svelte-kit.d.ts +1 -1
- package/dist/oauth2/index.d.cts +2 -2
- package/dist/oauth2/index.d.mts +2 -2
- package/dist/oauth2/index.d.ts +2 -2
- package/dist/plugins/admin/index.d.cts +25 -25
- package/dist/plugins/admin/index.d.mts +25 -25
- package/dist/plugins/admin/index.d.ts +25 -25
- package/dist/plugins/anonymous/index.d.cts +1 -1
- package/dist/plugins/anonymous/index.d.mts +1 -1
- package/dist/plugins/anonymous/index.d.ts +1 -1
- package/dist/plugins/bearer/index.d.cts +1 -1
- package/dist/plugins/bearer/index.d.mts +1 -1
- package/dist/plugins/bearer/index.d.ts +1 -1
- package/dist/plugins/captcha/index.d.cts +1 -1
- package/dist/plugins/captcha/index.d.mts +1 -1
- package/dist/plugins/captcha/index.d.ts +1 -1
- package/dist/plugins/custom-session/index.d.cts +1 -1
- package/dist/plugins/custom-session/index.d.mts +1 -1
- package/dist/plugins/custom-session/index.d.ts +1 -1
- package/dist/plugins/email-otp/index.d.cts +1 -1
- package/dist/plugins/email-otp/index.d.mts +1 -1
- package/dist/plugins/email-otp/index.d.ts +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +2 -2
- package/dist/plugins/generic-oauth/index.d.mts +2 -2
- package/dist/plugins/generic-oauth/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.cts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.mts +1 -1
- package/dist/plugins/haveibeenpwned/index.d.ts +1 -1
- package/dist/plugins/index.d.cts +3 -3
- package/dist/plugins/index.d.mts +3 -3
- package/dist/plugins/index.d.ts +3 -3
- package/dist/plugins/jwt/index.d.cts +2 -2
- package/dist/plugins/jwt/index.d.mts +2 -2
- package/dist/plugins/jwt/index.d.ts +2 -2
- package/dist/plugins/multi-session/index.d.cts +3 -3
- package/dist/plugins/multi-session/index.d.mts +3 -3
- package/dist/plugins/multi-session/index.d.ts +3 -3
- package/dist/plugins/oauth-proxy/index.d.cts +1 -1
- package/dist/plugins/oauth-proxy/index.d.mts +1 -1
- package/dist/plugins/oauth-proxy/index.d.ts +1 -1
- package/dist/plugins/oidc-provider/index.d.cts +6 -6
- package/dist/plugins/oidc-provider/index.d.mts +6 -6
- package/dist/plugins/oidc-provider/index.d.ts +6 -6
- package/dist/plugins/one-time-token/index.d.cts +2 -2
- package/dist/plugins/one-time-token/index.d.mts +2 -2
- package/dist/plugins/one-time-token/index.d.ts +2 -2
- package/dist/plugins/open-api/index.d.cts +1 -1
- package/dist/plugins/open-api/index.d.mts +1 -1
- package/dist/plugins/open-api/index.d.ts +1 -1
- package/dist/plugins/organization/index.d.cts +109 -109
- package/dist/plugins/organization/index.d.mts +109 -109
- package/dist/plugins/organization/index.d.ts +109 -109
- package/dist/plugins/passkey/index.d.cts +8 -8
- package/dist/plugins/passkey/index.d.mts +8 -8
- package/dist/plugins/passkey/index.d.ts +8 -8
- package/dist/plugins/phone-number/index.d.cts +1 -1
- package/dist/plugins/phone-number/index.d.mts +1 -1
- package/dist/plugins/phone-number/index.d.ts +1 -1
- package/dist/plugins/sso/index.d.cts +2 -2
- package/dist/plugins/sso/index.d.mts +2 -2
- package/dist/plugins/sso/index.d.ts +2 -2
- package/dist/plugins/two-factor/index.d.cts +8 -8
- package/dist/plugins/two-factor/index.d.mts +8 -8
- package/dist/plugins/two-factor/index.d.ts +8 -8
- package/dist/plugins/username/index.d.cts +2 -2
- package/dist/plugins/username/index.d.mts +2 -2
- package/dist/plugins/username/index.d.ts +2 -2
- package/dist/shared/{better-auth.CFB3tRhe.d.ts → better-auth.BNd5XKh_.d.ts} +1 -1
- package/dist/shared/{better-auth.DrtmN2NE.d.mts → better-auth.CEh_VF4H.d.mts} +19 -19
- package/dist/shared/{better-auth.DlrGYDwK.d.cts → better-auth.Ca-u1VDq.d.cts} +19 -19
- package/dist/shared/{better-auth.C3XZ-VgJ.d.cts → better-auth.CtOqPuAo.d.cts} +1 -1
- package/dist/shared/{better-auth.CnWEHFr7.d.ts → better-auth.UGX6z4ai.d.ts} +19 -19
- package/dist/shared/{better-auth.kagr8goH.d.mts → better-auth.vOCuqX1T.d.mts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/shared/{better-auth.DGCyfEhG.d.ts → better-auth.CFiv_jsY.d.ts} +159 -159
- package/dist/shared/{better-auth.DwXCmEc7.d.cts → better-auth.CpY7n5vC.d.cts} +159 -159
- 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.
|
|
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.
|
|
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';
|
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -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.
|
|
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.
|
|
7
|
+
import '../shared/better-auth.CpY7n5vC.cjs';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -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.
|
|
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.
|
|
7
|
+
import '../shared/better-auth.Dz-H0d-W.mjs';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/oauth2/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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.
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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.
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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';
|