better-auth 1.1.6 → 1.1.7-beta.2
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.d.cts +1 -1
- package/dist/adapters/drizzle.d.ts +1 -1
- package/dist/adapters/kysely.d.cts +1 -1
- package/dist/adapters/kysely.d.ts +1 -1
- package/dist/adapters/memory.d.cts +1 -1
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/mongodb.d.cts +1 -1
- package/dist/adapters/mongodb.d.ts +1 -1
- package/dist/adapters/prisma.d.cts +1 -1
- package/dist/adapters/prisma.d.ts +1 -1
- package/dist/api.d.cts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/client/plugins.d.cts +2 -2
- package/dist/client/plugins.d.ts +2 -2
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/cookies.d.cts +1 -1
- package/dist/cookies.d.ts +1 -1
- package/dist/db.d.cts +2 -2
- package/dist/db.d.ts +2 -2
- package/dist/{index-Dpgm40FH.d.cts → index-8fqX8-_k.d.cts} +10 -10
- package/dist/{index-C1MweRkC.d.ts → index-C90HUvxS.d.ts} +10 -10
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/next-js.d.cts +1 -1
- package/dist/next-js.d.ts +1 -1
- package/dist/node.d.cts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/oauth2.d.cts +2 -2
- package/dist/oauth2.d.ts +2 -2
- package/dist/plugin/custom-session.d.cts +1 -1
- package/dist/plugin/custom-session.d.ts +1 -1
- package/dist/plugins/admin.d.cts +1 -1
- package/dist/plugins/admin.d.ts +1 -1
- package/dist/plugins/anonymous.d.cts +1 -1
- package/dist/plugins/anonymous.d.ts +1 -1
- package/dist/plugins/bearer.d.cts +1 -1
- package/dist/plugins/bearer.d.ts +1 -1
- package/dist/plugins/email-otp.d.cts +13 -13
- package/dist/plugins/email-otp.d.ts +13 -13
- package/dist/plugins/generic-oauth.d.cts +1 -1
- package/dist/plugins/generic-oauth.d.ts +1 -1
- package/dist/plugins/jwt.d.cts +1 -1
- package/dist/plugins/jwt.d.ts +1 -1
- package/dist/plugins/multi-session.d.cts +1 -1
- package/dist/plugins/multi-session.d.ts +1 -1
- package/dist/plugins/oidc-provider.d.cts +1 -1
- package/dist/plugins/oidc-provider.d.ts +1 -1
- package/dist/plugins/organization.d.cts +2 -2
- package/dist/plugins/organization.d.ts +2 -2
- package/dist/plugins/passkey.d.cts +1 -1
- package/dist/plugins/passkey.d.ts +1 -1
- package/dist/plugins/phone-number.d.cts +1 -1
- package/dist/plugins/phone-number.d.ts +1 -1
- package/dist/plugins/sso.d.cts +1 -1
- package/dist/plugins/sso.d.ts +1 -1
- package/dist/plugins/two-factor.d.cts +1 -1
- package/dist/plugins/two-factor.d.ts +1 -1
- package/dist/plugins/username.d.cts +1 -1
- package/dist/plugins/username.d.ts +1 -1
- package/dist/plugins.d.cts +4 -3
- package/dist/plugins.d.ts +4 -3
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/solid-start.d.cts +1 -1
- package/dist/solid-start.d.ts +1 -1
- package/dist/solid.d.cts +1 -1
- package/dist/solid.d.ts +1 -1
- package/dist/{state-B99Ib5xU.d.cts → state-Cdmno7re.d.cts} +1 -1
- package/dist/{state-DuWk0eqW.d.ts → state-Da6l-Yr4.d.ts} +1 -1
- package/dist/svelte-kit.d.cts +1 -1
- package/dist/svelte-kit.d.ts +1 -1
- package/dist/svelte.d.cts +1 -1
- package/dist/svelte.d.ts +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/vue.d.cts +1 -1
- package/dist/vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{auth-EFXw818u.d.ts → auth-DsLay_dm.d.ts} +4 -4
- package/dist/{auth-CANDmYqA.d.cts → auth-pghYMPeF.d.cts} +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-pghYMPeF.cjs';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../helper-Bi8FQwDD.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Kysely } from 'kysely';
|
|
2
|
-
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-
|
|
2
|
+
import { B as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../auth-DsLay_dm.js';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../helper-Bi8FQwDD.js';
|
package/dist/api.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as AuthEndpoint, i as AuthMiddleware, an as callbackOAuth, aJ as changeEmail, aF as changePassword, g as createAuthEndpoint, f as createAuthMiddleware, aA as createEmailVerificationToken, aH as deleteUser, aI as deleteUserCallback, aK as error, ax as forgetPassword, ay as forgetPasswordCallback, ar as freshSessionMiddleware, aj as getEndpoints, ao as getSession, ap as getSessionFromCtx, aO as linkSocialAccount, as as listSessions, aN as listUserAccounts, aL as ok, o as optionsMiddleware, aP as originCheckMiddleware, az as resetPassword, av as revokeOtherSessions, at as revokeSession, au as revokeSessions, ak as router, aC as sendVerificationEmail, aB as sendVerificationEmailFn, aq as sessionMiddleware, aG as setPassword, am as signInEmail, al as signInSocial, aw as signOut, aM as signUpEmail, aE as updateUser, aD as verifyEmail } from './auth-
|
|
1
|
+
export { h as AuthEndpoint, i as AuthMiddleware, an as callbackOAuth, aJ as changeEmail, aF as changePassword, g as createAuthEndpoint, f as createAuthMiddleware, aA as createEmailVerificationToken, aH as deleteUser, aI as deleteUserCallback, aK as error, ax as forgetPassword, ay as forgetPasswordCallback, ar as freshSessionMiddleware, aj as getEndpoints, ao as getSession, ap as getSessionFromCtx, aO as linkSocialAccount, as as listSessions, aN as listUserAccounts, aL as ok, o as optionsMiddleware, aP as originCheckMiddleware, az as resetPassword, av as revokeOtherSessions, at as revokeSession, au as revokeSessions, ak as router, aC as sendVerificationEmail, aB as sendVerificationEmailFn, aq as sessionMiddleware, aG as setPassword, am as signInEmail, al as signInSocial, aw as signOut, aM as signUpEmail, aE as updateUser, aD as verifyEmail } from './auth-pghYMPeF.cjs';
|
|
2
2
|
import './helper-Bi8FQwDD.cjs';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
package/dist/api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as AuthEndpoint, i as AuthMiddleware, an as callbackOAuth, aJ as changeEmail, aF as changePassword, g as createAuthEndpoint, f as createAuthMiddleware, aA as createEmailVerificationToken, aH as deleteUser, aI as deleteUserCallback, aK as error, ax as forgetPassword, ay as forgetPasswordCallback, ar as freshSessionMiddleware, aj as getEndpoints, ao as getSession, ap as getSessionFromCtx, aO as linkSocialAccount, as as listSessions, aN as listUserAccounts, aL as ok, o as optionsMiddleware, aP as originCheckMiddleware, az as resetPassword, av as revokeOtherSessions, at as revokeSession, au as revokeSessions, ak as router, aC as sendVerificationEmail, aB as sendVerificationEmailFn, aq as sessionMiddleware, aG as setPassword, am as signInEmail, al as signInSocial, aw as signOut, aM as signUpEmail, aE as updateUser, aD as verifyEmail } from './auth-
|
|
1
|
+
export { h as AuthEndpoint, i as AuthMiddleware, an as callbackOAuth, aJ as changeEmail, aF as changePassword, g as createAuthEndpoint, f as createAuthMiddleware, aA as createEmailVerificationToken, aH as deleteUser, aI as deleteUserCallback, aK as error, ax as forgetPassword, ay as forgetPasswordCallback, ar as freshSessionMiddleware, aj as getEndpoints, ao as getSession, ap as getSessionFromCtx, aO as linkSocialAccount, as as listSessions, aN as listUserAccounts, aL as ok, o as optionsMiddleware, aP as originCheckMiddleware, az as resetPassword, av as revokeOtherSessions, at as revokeSession, au as revokeSessions, ak as router, aC as sendVerificationEmail, aB as sendVerificationEmailFn, aq as sessionMiddleware, aG as setPassword, am as signInEmail, al as signInSocial, aw as signOut, aM as signUpEmail, aE as updateUser, aD as verifyEmail } from './auth-DsLay_dm.js';
|
|
2
2
|
import './helper-Bi8FQwDD.js';
|
|
3
3
|
export { APIError } from 'better-call';
|
|
4
4
|
import 'zod';
|
|
@@ -2,7 +2,7 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.cjs';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-
|
|
5
|
+
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-8fqX8-_k.cjs';
|
|
6
6
|
import { b as Prettify } from '../helper-Bi8FQwDD.cjs';
|
|
7
7
|
import { username } from '../plugins/username.cjs';
|
|
8
8
|
export { getPasskeyActions, passkeyClient } from '../plugins/passkey.cjs';
|
|
@@ -10,7 +10,7 @@ export { twoFactorClient } from '../plugins/two-factor.cjs';
|
|
|
10
10
|
import { magicLink } from '../plugins/magic-link.cjs';
|
|
11
11
|
import { phoneNumber } from '../plugins/phone-number.cjs';
|
|
12
12
|
import { anonymous } from '../plugins/anonymous.cjs';
|
|
13
|
-
import { a4 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-
|
|
13
|
+
import { a4 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-pghYMPeF.cjs';
|
|
14
14
|
import { admin } from '../plugins/admin.cjs';
|
|
15
15
|
import { genericOAuth } from '../plugins/generic-oauth.cjs';
|
|
16
16
|
import { jwt } from '../plugins/jwt.cjs';
|
package/dist/client/plugins.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as nanostores from 'nanostores';
|
|
|
2
2
|
import { AccessControl, StatementsPrimitive, Role } from '../plugins/access.js';
|
|
3
3
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
4
4
|
import { BetterFetchOption } from '@better-fetch/fetch';
|
|
5
|
-
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-
|
|
5
|
+
import { o as organization, a as Organization, M as Member, I as Invitation } from '../index-C90HUvxS.js';
|
|
6
6
|
import { b as Prettify } from '../helper-Bi8FQwDD.js';
|
|
7
7
|
import { username } from '../plugins/username.js';
|
|
8
8
|
export { getPasskeyActions, passkeyClient } from '../plugins/passkey.js';
|
|
@@ -10,7 +10,7 @@ export { twoFactorClient } from '../plugins/two-factor.js';
|
|
|
10
10
|
import { magicLink } from '../plugins/magic-link.js';
|
|
11
11
|
import { phoneNumber } from '../plugins/phone-number.js';
|
|
12
12
|
import { anonymous } from '../plugins/anonymous.js';
|
|
13
|
-
import { a4 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-
|
|
13
|
+
import { a4 as FieldAttribute, B as BetterAuthOptions, d as BetterAuthPlugin } from '../auth-DsLay_dm.js';
|
|
14
14
|
import { admin } from '../plugins/admin.js';
|
|
15
15
|
import { genericOAuth } from '../plugins/generic-oauth.js';
|
|
16
16
|
import { jwt } from '../plugins/jwt.js';
|
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-pghYMPeF.cjs';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
export * from 'zod';
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-
|
|
1
|
+
import { a as BASE_ERROR_CODES, d as BetterAuthPlugin } from './auth-DsLay_dm.js';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
export * from 'zod';
|
|
4
4
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
package/dist/cookies.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { N as BetterAuthCookies, X as EligibleCookies, J as createCookieGetter, Q as deleteSessionCookie, L as getCookies, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie } from './auth-
|
|
2
|
+
export { N as BetterAuthCookies, X as EligibleCookies, J as createCookieGetter, Q as deleteSessionCookie, L as getCookies, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie } from './auth-pghYMPeF.cjs';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-Bi8FQwDD.cjs';
|
package/dist/cookies.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
export { N as BetterAuthCookies, X as EligibleCookies, J as createCookieGetter, Q as deleteSessionCookie, L as getCookies, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie } from './auth-
|
|
2
|
+
export { N as BetterAuthCookies, X as EligibleCookies, J as createCookieGetter, Q as deleteSessionCookie, L as getCookies, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie } from './auth-DsLay_dm.js';
|
|
3
3
|
import 'kysely';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './helper-Bi8FQwDD.js';
|
package/dist/db.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as Adapter, B as BetterAuthOptions, W as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { ah as BetterAuthDbSchema, a8 as FieldAttributeConfig, ag as InferFieldsFromOptions, af as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, a9 as createFieldAttribute, a6 as createInternalAdapter, ai as getAuthTables } from './auth-
|
|
1
|
+
import { x as Adapter, B as BetterAuthOptions, W as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from './auth-pghYMPeF.cjs';
|
|
2
|
+
export { ah as BetterAuthDbSchema, a8 as FieldAttributeConfig, ag as InferFieldsFromOptions, af as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, a9 as createFieldAttribute, a6 as createInternalAdapter, ai as getAuthTables } from './auth-pghYMPeF.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
package/dist/db.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { x as Adapter, B as BetterAuthOptions, W as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from './auth-
|
|
2
|
-
export { ah as BetterAuthDbSchema, a8 as FieldAttributeConfig, ag as InferFieldsFromOptions, af as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, a9 as createFieldAttribute, a6 as createInternalAdapter, ai as getAuthTables } from './auth-
|
|
1
|
+
import { x as Adapter, B as BetterAuthOptions, W as Where, a4 as FieldAttribute, a5 as FieldType, K as KyselyDatabaseType } from './auth-DsLay_dm.js';
|
|
2
|
+
export { ah as BetterAuthDbSchema, a8 as FieldAttributeConfig, ag as InferFieldsFromOptions, af as InferFieldsFromPlugins, ac as InferFieldsInput, ad as InferFieldsInputClient, ab as InferFieldsOutput, aa as InferValueType, a7 as InternalAdapter, ae as PluginFieldAttribute, a9 as createFieldAttribute, a6 as createInternalAdapter, ai as getAuthTables } from './auth-DsLay_dm.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import 'better-call';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z, ZodLiteral, ZodObject, ZodOptional, ZodArray, ZodString } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { b as Prettify } from './helper-Bi8FQwDD.cjs';
|
|
4
|
-
import { U as User, S as Session } from './auth-
|
|
4
|
+
import { U as User, S as Session } from './auth-pghYMPeF.cjs';
|
|
5
5
|
import { AccessControl, Role, StatementsPrimitive, defaultRoles } from './plugins/access.cjs';
|
|
6
6
|
|
|
7
7
|
declare const organizationSchema: z.ZodObject<{
|
|
@@ -57,9 +57,9 @@ declare const invitationSchema: z.ZodObject<{
|
|
|
57
57
|
inviterId: z.ZodString;
|
|
58
58
|
expiresAt: z.ZodDate;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
60
61
|
id: string;
|
|
61
62
|
email: string;
|
|
62
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
63
63
|
expiresAt: Date;
|
|
64
64
|
organizationId: string;
|
|
65
65
|
role: string;
|
|
@@ -70,8 +70,8 @@ declare const invitationSchema: z.ZodObject<{
|
|
|
70
70
|
organizationId: string;
|
|
71
71
|
role: string;
|
|
72
72
|
inviterId: string;
|
|
73
|
-
id?: string | undefined;
|
|
74
73
|
status?: "pending" | "accepted" | "rejected" | "canceled" | undefined;
|
|
74
|
+
id?: string | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
type Organization = z.infer<typeof organizationSchema>;
|
|
77
77
|
type Member = z.infer<typeof memberSchema>;
|
|
@@ -994,9 +994,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
994
994
|
asResponse: true;
|
|
995
995
|
}] ? Response : {
|
|
996
996
|
invitations: {
|
|
997
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
997
998
|
id: string;
|
|
998
999
|
email: string;
|
|
999
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1000
1000
|
expiresAt: Date;
|
|
1001
1001
|
organizationId: string;
|
|
1002
1002
|
role: string;
|
|
@@ -1237,9 +1237,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1237
1237
|
asResponse: true;
|
|
1238
1238
|
}] ? Response : {
|
|
1239
1239
|
invitations: {
|
|
1240
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1240
1241
|
id: string;
|
|
1241
1242
|
email: string;
|
|
1242
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1243
1243
|
expiresAt: Date;
|
|
1244
1244
|
organizationId: string;
|
|
1245
1245
|
role: string;
|
|
@@ -1719,9 +1719,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1719
1719
|
}>]>(...ctx: C): Promise<C extends [{
|
|
1720
1720
|
asResponse: true;
|
|
1721
1721
|
}] ? Response : {
|
|
1722
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1722
1723
|
id: string;
|
|
1723
1724
|
email: string;
|
|
1724
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1725
1725
|
expiresAt: Date;
|
|
1726
1726
|
organizationId: string;
|
|
1727
1727
|
role: string;
|
|
@@ -1976,9 +1976,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1976
1976
|
}>]>(...ctx: C): Promise<C extends [{
|
|
1977
1977
|
asResponse: true;
|
|
1978
1978
|
}] ? Response : {
|
|
1979
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1979
1980
|
id: string;
|
|
1980
1981
|
email: string;
|
|
1981
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1982
1982
|
expiresAt: Date;
|
|
1983
1983
|
organizationId: string;
|
|
1984
1984
|
role: string;
|
|
@@ -2199,9 +2199,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2199
2199
|
asResponse: true;
|
|
2200
2200
|
}] ? Response : {
|
|
2201
2201
|
invitation: {
|
|
2202
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2202
2203
|
id: string;
|
|
2203
2204
|
email: string;
|
|
2204
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2205
2205
|
expiresAt: Date;
|
|
2206
2206
|
organizationId: string;
|
|
2207
2207
|
role: string;
|
|
@@ -2404,9 +2404,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2404
2404
|
organizationName: string;
|
|
2405
2405
|
organizationSlug: string;
|
|
2406
2406
|
inviterEmail: string;
|
|
2407
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2407
2408
|
id: string;
|
|
2408
2409
|
email: string;
|
|
2409
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2410
2410
|
expiresAt: Date;
|
|
2411
2411
|
organizationId: string;
|
|
2412
2412
|
role: string;
|
|
@@ -2599,9 +2599,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2599
2599
|
asResponse: true;
|
|
2600
2600
|
}] ? Response : {
|
|
2601
2601
|
invitation: {
|
|
2602
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2602
2603
|
id: string;
|
|
2603
2604
|
email: string;
|
|
2604
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2605
2605
|
expiresAt: Date;
|
|
2606
2606
|
organizationId: string;
|
|
2607
2607
|
role: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z, ZodLiteral, ZodObject, ZodOptional, ZodArray, ZodString } from 'zod';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { b as Prettify } from './helper-Bi8FQwDD.js';
|
|
4
|
-
import { U as User, S as Session } from './auth-
|
|
4
|
+
import { U as User, S as Session } from './auth-DsLay_dm.js';
|
|
5
5
|
import { AccessControl, Role, StatementsPrimitive, defaultRoles } from './plugins/access.js';
|
|
6
6
|
|
|
7
7
|
declare const organizationSchema: z.ZodObject<{
|
|
@@ -57,9 +57,9 @@ declare const invitationSchema: z.ZodObject<{
|
|
|
57
57
|
inviterId: z.ZodString;
|
|
58
58
|
expiresAt: z.ZodDate;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
60
61
|
id: string;
|
|
61
62
|
email: string;
|
|
62
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
63
63
|
expiresAt: Date;
|
|
64
64
|
organizationId: string;
|
|
65
65
|
role: string;
|
|
@@ -70,8 +70,8 @@ declare const invitationSchema: z.ZodObject<{
|
|
|
70
70
|
organizationId: string;
|
|
71
71
|
role: string;
|
|
72
72
|
inviterId: string;
|
|
73
|
-
id?: string | undefined;
|
|
74
73
|
status?: "pending" | "accepted" | "rejected" | "canceled" | undefined;
|
|
74
|
+
id?: string | undefined;
|
|
75
75
|
}>;
|
|
76
76
|
type Organization = z.infer<typeof organizationSchema>;
|
|
77
77
|
type Member = z.infer<typeof memberSchema>;
|
|
@@ -994,9 +994,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
994
994
|
asResponse: true;
|
|
995
995
|
}] ? Response : {
|
|
996
996
|
invitations: {
|
|
997
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
997
998
|
id: string;
|
|
998
999
|
email: string;
|
|
999
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1000
1000
|
expiresAt: Date;
|
|
1001
1001
|
organizationId: string;
|
|
1002
1002
|
role: string;
|
|
@@ -1237,9 +1237,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1237
1237
|
asResponse: true;
|
|
1238
1238
|
}] ? Response : {
|
|
1239
1239
|
invitations: {
|
|
1240
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1240
1241
|
id: string;
|
|
1241
1242
|
email: string;
|
|
1242
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1243
1243
|
expiresAt: Date;
|
|
1244
1244
|
organizationId: string;
|
|
1245
1245
|
role: string;
|
|
@@ -1719,9 +1719,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1719
1719
|
}>]>(...ctx: C): Promise<C extends [{
|
|
1720
1720
|
asResponse: true;
|
|
1721
1721
|
}] ? Response : {
|
|
1722
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1722
1723
|
id: string;
|
|
1723
1724
|
email: string;
|
|
1724
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1725
1725
|
expiresAt: Date;
|
|
1726
1726
|
organizationId: string;
|
|
1727
1727
|
role: string;
|
|
@@ -1976,9 +1976,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
1976
1976
|
}>]>(...ctx: C): Promise<C extends [{
|
|
1977
1977
|
asResponse: true;
|
|
1978
1978
|
}] ? Response : {
|
|
1979
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1979
1980
|
id: string;
|
|
1980
1981
|
email: string;
|
|
1981
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
1982
1982
|
expiresAt: Date;
|
|
1983
1983
|
organizationId: string;
|
|
1984
1984
|
role: string;
|
|
@@ -2199,9 +2199,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2199
2199
|
asResponse: true;
|
|
2200
2200
|
}] ? Response : {
|
|
2201
2201
|
invitation: {
|
|
2202
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2202
2203
|
id: string;
|
|
2203
2204
|
email: string;
|
|
2204
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2205
2205
|
expiresAt: Date;
|
|
2206
2206
|
organizationId: string;
|
|
2207
2207
|
role: string;
|
|
@@ -2404,9 +2404,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2404
2404
|
organizationName: string;
|
|
2405
2405
|
organizationSlug: string;
|
|
2406
2406
|
inviterEmail: string;
|
|
2407
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2407
2408
|
id: string;
|
|
2408
2409
|
email: string;
|
|
2409
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2410
2410
|
expiresAt: Date;
|
|
2411
2411
|
organizationId: string;
|
|
2412
2412
|
role: string;
|
|
@@ -2599,9 +2599,9 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
|
|
|
2599
2599
|
asResponse: true;
|
|
2600
2600
|
}] ? Response : {
|
|
2601
2601
|
invitation: {
|
|
2602
|
+
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2602
2603
|
id: string;
|
|
2603
2604
|
email: string;
|
|
2604
|
-
status: "pending" | "accepted" | "rejected" | "canceled";
|
|
2605
2605
|
expiresAt: Date;
|
|
2606
2606
|
organizationId: string;
|
|
2607
2607
|
role: string;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, j as Auth, k as AuthContext, A as AuthPluginSchema, N as BetterAuthCookies, B as BetterAuthOptions, d as BetterAuthPlugin, X as EligibleCookies, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, z as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, n as WithJsDoc, p as betterAuth, J as createCookieGetter, a2 as createLogger, Q as deleteSessionCookie, L as getCookies, w as init, _ as levels, a3 as logger, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie, $ as shouldPublishLog } from './auth-
|
|
1
|
+
export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, j as Auth, k as AuthContext, A as AuthPluginSchema, N as BetterAuthCookies, B as BetterAuthOptions, d as BetterAuthPlugin, X as EligibleCookies, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, z as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, n as WithJsDoc, p as betterAuth, J as createCookieGetter, a2 as createLogger, Q as deleteSessionCookie, L as getCookies, w as init, _ as levels, a3 as logger, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie, $ as shouldPublishLog } from './auth-pghYMPeF.cjs';
|
|
2
2
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-Bi8FQwDD.cjs';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.cjs';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.cjs';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-Cdmno7re.cjs';
|
|
6
6
|
export * from 'better-call';
|
|
7
7
|
export * from 'zod';
|
|
8
8
|
import 'kysely';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, j as Auth, k as AuthContext, A as AuthPluginSchema, N as BetterAuthCookies, B as BetterAuthOptions, d as BetterAuthPlugin, X as EligibleCookies, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, z as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, n as WithJsDoc, p as betterAuth, J as createCookieGetter, a2 as createLogger, Q as deleteSessionCookie, L as getCookies, w as init, _ as levels, a3 as logger, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie, $ as shouldPublishLog } from './auth-
|
|
1
|
+
export { v as Account, x as Adapter, y as AdapterInstance, s as AdditionalSessionFieldsInput, t as AdditionalSessionFieldsOutput, q as AdditionalUserFieldsInput, r as AdditionalUserFieldsOutput, j as Auth, k as AuthContext, A as AuthPluginSchema, N as BetterAuthCookies, B as BetterAuthOptions, d as BetterAuthPlugin, X as EligibleCookies, C as FilterActions, F as FilteredAPI, G as GenericEndpointContext, c as HookAfterHandler, b as HookBeforeHandler, H as HookEndpointContext, E as InferAPI, I as InferOptionSchema, e as InferPluginErrorCodes, u as InferPluginTypes, m as InferSession, D as InferSessionAPI, l as InferUser, a1 as LogHandlerParams, Z as LogLevel, a0 as Logger, M as Models, R as RateLimit, z as SecondaryStorage, S as Session, U as User, V as Verification, W as Where, n as WithJsDoc, p as betterAuth, J as createCookieGetter, a2 as createLogger, Q as deleteSessionCookie, L as getCookies, w as init, _ as levels, a3 as logger, T as parseCookies, Y as parseSetCookieHeader, O as setCookieCache, P as setSessionCookie, $ as shouldPublishLog } from './auth-DsLay_dm.js';
|
|
2
2
|
export { D as DeepPartial, E as Expand, H as HasRequiredKeys, a as LiteralNumber, L as LiteralString, d as LiteralUnion, O as OmitId, c as PreserveJSDoc, b as Prettify, P as PrettifyDeep, R as RequiredKeysOf, S as StripEmptyObjects, U as UnionToIntersection, W as WithoutEmpty } from './helper-Bi8FQwDD.js';
|
|
3
3
|
export { AtomListener, BetterAuthClientPlugin, ClientOptions, InferActions, InferAdditionalFromClient, InferClientAPI, InferErrorCodes, InferPluginsFromClient, InferSessionFromClient, InferUserFromClient, IsSignal, Store } from './types.js';
|
|
4
4
|
export { H as HIDE_METADATA } from './hide-metadata-DEHJp1rk.js';
|
|
5
|
-
export { g as generateState, p as parseState } from './state-
|
|
5
|
+
export { g as generateState, p as parseState } from './state-Da6l-Yr4.js';
|
|
6
6
|
export * from 'better-call';
|
|
7
7
|
export * from 'zod';
|
|
8
8
|
import 'kysely';
|
package/dist/next-js.d.cts
CHANGED
package/dist/next-js.d.ts
CHANGED
package/dist/node.d.cts
CHANGED
package/dist/node.d.ts
CHANGED
package/dist/oauth2.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, a as OAuth2Tokens } from './index-BxVuNcHr.cjs';
|
|
2
2
|
export { O as OAuthProvider } from './index-BxVuNcHr.cjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
export { g as generateState, p as parseState } from './state-
|
|
4
|
+
export { g as generateState, p as parseState } from './state-Cdmno7re.cjs';
|
|
5
5
|
import './helper-Bi8FQwDD.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-pghYMPeF.cjs';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
package/dist/oauth2.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as ProviderOptions, a as OAuth2Tokens } from './index-4d8GiU4g.js';
|
|
2
2
|
export { O as OAuthProvider } from './index-4d8GiU4g.js';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
export { g as generateState, p as parseState } from './state-
|
|
4
|
+
export { g as generateState, p as parseState } from './state-Da6l-Yr4.js';
|
|
5
5
|
import './helper-Bi8FQwDD.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import './auth-
|
|
7
|
+
import './auth-DsLay_dm.js';
|
|
8
8
|
import 'kysely';
|
|
9
9
|
import 'better-call';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { B as BetterAuthOptions, l as InferUser, m as InferSession } from '../auth-
|
|
3
|
+
import { B as BetterAuthOptions, l as InferUser, m as InferSession } from '../auth-pghYMPeF.cjs';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../helper-Bi8FQwDD.cjs';
|
|
6
6
|
import '../index-BxVuNcHr.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { B as BetterAuthOptions, l as InferUser, m as InferSession } from '../auth-
|
|
3
|
+
import { B as BetterAuthOptions, l as InferUser, m as InferSession } from '../auth-DsLay_dm.js';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../helper-Bi8FQwDD.js';
|
|
6
6
|
import '../index-4d8GiU4g.js';
|
package/dist/plugins/admin.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { U as User, S as Session, k as AuthContext, H as HookEndpointContext, I as InferOptionSchema } from '../auth-
|
|
3
|
+
import { U as User, S as Session, k as AuthContext, H as HookEndpointContext, I as InferOptionSchema } from '../auth-pghYMPeF.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../helper-Bi8FQwDD.cjs';
|
package/dist/plugins/admin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
2
|
import { APIError } from 'better-call';
|
|
3
|
-
import { U as User, S as Session, k as AuthContext, H as HookEndpointContext, I as InferOptionSchema } from '../auth-
|
|
3
|
+
import { U as User, S as Session, k as AuthContext, H as HookEndpointContext, I as InferOptionSchema } from '../auth-DsLay_dm.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../helper-Bi8FQwDD.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../auth-
|
|
1
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../auth-pghYMPeF.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import 'kysely';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../auth-
|
|
1
|
+
import { U as User, S as Session, I as InferOptionSchema, H as HookEndpointContext } from '../auth-DsLay_dm.js';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
3
|
import { APIError } from 'better-call';
|
|
4
4
|
import 'kysely';
|
package/dist/plugins/bearer.d.ts
CHANGED