better-auth 1.3.1 → 1.3.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-adapter/index.d.cts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.mts +2 -2
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -2
- package/dist/adapters/index.d.cts +3 -3
- package/dist/adapters/index.d.mts +3 -3
- package/dist/adapters/index.d.ts +3 -3
- package/dist/adapters/kysely-adapter/index.d.cts +2 -2
- package/dist/adapters/kysely-adapter/index.d.mts +2 -2
- package/dist/adapters/kysely-adapter/index.d.ts +2 -2
- package/dist/adapters/memory-adapter/index.d.cts +2 -2
- package/dist/adapters/memory-adapter/index.d.mts +2 -2
- package/dist/adapters/memory-adapter/index.d.ts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.cts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.mts +2 -2
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -2
- package/dist/adapters/prisma-adapter/index.d.cts +2 -2
- package/dist/adapters/prisma-adapter/index.d.mts +2 -2
- package/dist/adapters/prisma-adapter/index.d.ts +2 -2
- package/dist/adapters/test.d.cts +2 -2
- package/dist/adapters/test.d.mts +2 -2
- package/dist/adapters/test.d.ts +2 -2
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.mjs +2 -2
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.mts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/plugins/index.d.cts +4 -4
- package/dist/client/plugins/index.d.mts +4 -4
- package/dist/client/plugins/index.d.ts +4 -4
- package/dist/client/react/index.d.cts +4 -4
- package/dist/client/react/index.d.mts +4 -4
- package/dist/client/react/index.d.ts +4 -4
- package/dist/client/solid/index.d.cts +4 -4
- package/dist/client/solid/index.d.mts +4 -4
- package/dist/client/solid/index.d.ts +4 -4
- package/dist/client/svelte/index.d.cts +4 -4
- package/dist/client/svelte/index.d.mts +4 -4
- package/dist/client/svelte/index.d.ts +4 -4
- package/dist/client/vue/index.d.cts +4 -4
- package/dist/client/vue/index.d.mts +4 -4
- package/dist/client/vue/index.d.ts +4 -4
- package/dist/cookies/index.d.cts +2 -2
- package/dist/cookies/index.d.mts +2 -2
- package/dist/cookies/index.d.ts +2 -2
- package/dist/db/index.d.cts +12 -12
- package/dist/db/index.d.mts +12 -12
- package/dist/db/index.d.ts +12 -12
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/integrations/next-js.cjs +2 -2
- package/dist/integrations/next-js.d.cts +2 -2
- package/dist/integrations/next-js.d.mts +2 -2
- package/dist/integrations/next-js.d.ts +2 -2
- package/dist/integrations/next-js.mjs +2 -2
- package/dist/integrations/node.d.cts +2 -2
- package/dist/integrations/node.d.mts +2 -2
- package/dist/integrations/node.d.ts +2 -2
- package/dist/integrations/react-start.cjs +2 -2
- package/dist/integrations/react-start.d.cts +2 -2
- package/dist/integrations/react-start.d.mts +2 -2
- package/dist/integrations/react-start.d.ts +2 -2
- package/dist/integrations/react-start.mjs +2 -2
- package/dist/integrations/svelte-kit.cjs +1 -1
- package/dist/integrations/svelte-kit.d.cts +2 -2
- package/dist/integrations/svelte-kit.d.mts +2 -2
- package/dist/integrations/svelte-kit.d.ts +2 -2
- package/dist/integrations/svelte-kit.mjs +1 -1
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +4 -4
- package/dist/oauth2/index.d.mts +4 -4
- package/dist/oauth2/index.d.ts +4 -4
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/admin/index.cjs +2 -2
- package/dist/plugins/admin/index.d.cts +67 -67
- package/dist/plugins/admin/index.d.mts +67 -67
- package/dist/plugins/admin/index.d.ts +67 -67
- package/dist/plugins/admin/index.mjs +2 -2
- package/dist/plugins/anonymous/index.cjs +1 -1
- package/dist/plugins/anonymous/index.d.cts +2 -2
- package/dist/plugins/anonymous/index.d.mts +2 -2
- package/dist/plugins/anonymous/index.d.ts +2 -2
- package/dist/plugins/anonymous/index.mjs +1 -1
- package/dist/plugins/bearer/index.cjs +1 -1
- package/dist/plugins/bearer/index.d.cts +2 -2
- package/dist/plugins/bearer/index.d.mts +2 -2
- package/dist/plugins/bearer/index.d.ts +2 -2
- package/dist/plugins/bearer/index.mjs +1 -1
- package/dist/plugins/captcha/index.d.cts +2 -2
- package/dist/plugins/captcha/index.d.mts +2 -2
- package/dist/plugins/captcha/index.d.ts +2 -2
- package/dist/plugins/custom-session/index.cjs +1 -1
- package/dist/plugins/custom-session/index.d.cts +7 -7
- package/dist/plugins/custom-session/index.d.mts +7 -7
- package/dist/plugins/custom-session/index.d.ts +7 -7
- package/dist/plugins/custom-session/index.mjs +1 -1
- package/dist/plugins/email-otp/index.cjs +1 -1
- package/dist/plugins/email-otp/index.d.cts +31 -31
- package/dist/plugins/email-otp/index.d.mts +31 -31
- package/dist/plugins/email-otp/index.d.ts +31 -31
- package/dist/plugins/email-otp/index.mjs +1 -1
- package/dist/plugins/generic-oauth/index.cjs +1 -1
- package/dist/plugins/generic-oauth/index.d.cts +24 -24
- package/dist/plugins/generic-oauth/index.d.mts +24 -24
- package/dist/plugins/generic-oauth/index.d.ts +24 -24
- package/dist/plugins/generic-oauth/index.mjs +1 -1
- package/dist/plugins/haveibeenpwned/index.cjs +1 -1
- package/dist/plugins/haveibeenpwned/index.d.cts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.mts +2 -2
- package/dist/plugins/haveibeenpwned/index.d.ts +2 -2
- package/dist/plugins/haveibeenpwned/index.mjs +1 -1
- package/dist/plugins/index.cjs +7 -7
- package/dist/plugins/index.d.cts +26 -26
- package/dist/plugins/index.d.mts +26 -26
- package/dist/plugins/index.d.ts +26 -26
- package/dist/plugins/index.mjs +9 -9
- package/dist/plugins/jwt/index.cjs +2 -2
- 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/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +1 -1
- package/dist/plugins/magic-link/index.d.cts +14 -14
- package/dist/plugins/magic-link/index.d.mts +14 -14
- package/dist/plugins/magic-link/index.d.ts +14 -14
- package/dist/plugins/magic-link/index.mjs +1 -1
- package/dist/plugins/multi-session/index.cjs +1 -1
- package/dist/plugins/multi-session/index.d.cts +9 -9
- package/dist/plugins/multi-session/index.d.mts +9 -9
- package/dist/plugins/multi-session/index.d.ts +9 -9
- package/dist/plugins/multi-session/index.mjs +1 -1
- package/dist/plugins/oauth-proxy/index.cjs +1 -1
- package/dist/plugins/oauth-proxy/index.d.cts +7 -7
- package/dist/plugins/oauth-proxy/index.d.mts +7 -7
- package/dist/plugins/oauth-proxy/index.d.ts +7 -7
- package/dist/plugins/oauth-proxy/index.mjs +1 -1
- package/dist/plugins/oidc-provider/index.cjs +3 -3
- package/dist/plugins/oidc-provider/index.d.cts +27 -27
- package/dist/plugins/oidc-provider/index.d.mts +27 -27
- package/dist/plugins/oidc-provider/index.d.ts +27 -27
- package/dist/plugins/oidc-provider/index.mjs +3 -3
- package/dist/plugins/one-tap/index.cjs +1 -1
- package/dist/plugins/one-tap/index.d.cts +4 -4
- package/dist/plugins/one-tap/index.d.mts +4 -4
- package/dist/plugins/one-tap/index.d.ts +4 -4
- package/dist/plugins/one-tap/index.mjs +1 -1
- package/dist/plugins/one-time-token/index.cjs +3 -3
- package/dist/plugins/one-time-token/index.d.cts +6 -6
- package/dist/plugins/one-time-token/index.d.mts +6 -6
- package/dist/plugins/one-time-token/index.d.ts +6 -6
- package/dist/plugins/one-time-token/index.mjs +3 -3
- package/dist/plugins/open-api/index.cjs +1 -1
- package/dist/plugins/open-api/index.d.cts +2 -2
- package/dist/plugins/open-api/index.d.mts +2 -2
- package/dist/plugins/open-api/index.d.ts +2 -2
- package/dist/plugins/open-api/index.mjs +1 -1
- package/dist/plugins/organization/index.cjs +3 -3
- package/dist/plugins/organization/index.d.cts +390 -390
- package/dist/plugins/organization/index.d.mts +390 -390
- package/dist/plugins/organization/index.d.ts +390 -390
- package/dist/plugins/organization/index.mjs +3 -3
- package/dist/plugins/passkey/index.cjs +1 -1
- package/dist/plugins/passkey/index.d.cts +23 -23
- package/dist/plugins/passkey/index.d.mts +23 -23
- package/dist/plugins/passkey/index.d.ts +23 -23
- package/dist/plugins/passkey/index.mjs +1 -1
- package/dist/plugins/phone-number/index.cjs +1 -1
- package/dist/plugins/phone-number/index.d.cts +28 -28
- package/dist/plugins/phone-number/index.d.mts +28 -28
- package/dist/plugins/phone-number/index.d.ts +28 -28
- package/dist/plugins/phone-number/index.mjs +1 -1
- package/dist/plugins/siwe/index.cjs +297 -0
- package/dist/plugins/siwe/index.d.cts +195 -0
- package/dist/plugins/siwe/index.d.mts +195 -0
- package/dist/plugins/siwe/index.d.ts +195 -0
- package/dist/plugins/siwe/index.mjs +295 -0
- package/dist/plugins/sso/index.cjs +1 -1
- package/dist/plugins/sso/index.d.cts +45 -45
- package/dist/plugins/sso/index.d.mts +45 -45
- package/dist/plugins/sso/index.d.ts +45 -45
- package/dist/plugins/sso/index.mjs +1 -1
- package/dist/plugins/two-factor/index.cjs +1 -1
- package/dist/plugins/two-factor/index.d.cts +38 -38
- package/dist/plugins/two-factor/index.d.mts +38 -38
- package/dist/plugins/two-factor/index.d.ts +38 -38
- package/dist/plugins/two-factor/index.mjs +1 -1
- package/dist/plugins/username/index.cjs +1 -1
- package/dist/plugins/username/index.d.cts +12 -12
- package/dist/plugins/username/index.d.mts +12 -12
- package/dist/plugins/username/index.d.ts +12 -12
- package/dist/plugins/username/index.mjs +1 -1
- package/dist/shared/{better-auth.C-oNfZPH.d.cts → better-auth.B0e3ZzlM.d.cts} +36 -36
- package/dist/shared/{better-auth.CE16lr3i.d.mts → better-auth.B1VHvePI.d.mts} +36 -36
- package/dist/shared/{better-auth.DoKaQIwy.d.mts → better-auth.BF0l18Af.d.mts} +1 -1
- package/dist/shared/{better-auth.CNTpFj_S.cjs → better-auth.BXW4aAiQ.cjs} +2 -2
- package/dist/shared/{better-auth.DdKZcMVt.d.ts → better-auth.B_G094Aj.d.ts} +1 -1
- package/dist/shared/{better-auth.DQfCK4Nb.mjs → better-auth.Bqt8-7ls.mjs} +2 -2
- package/dist/shared/{better-auth.DevRAmVV.d.ts → better-auth.Bwe61noi.d.ts} +1 -1
- package/dist/shared/{better-auth.B3K6UWYy.d.cts → better-auth.CF-FWRQL.d.cts} +1 -1
- package/dist/shared/{better-auth.D2QnAIyP.d.ts → better-auth.CHvHihjD.d.ts} +36 -36
- package/dist/shared/{better-auth.pnE8EkZO.cjs → better-auth.COsDmM8f.cjs} +1 -1
- package/dist/shared/{better-auth.B8mbk3HM.cjs → better-auth.CSftMZoM.cjs} +1 -1
- package/dist/shared/{better-auth.DG2FJeYI.cjs → better-auth.CU2ZnFFo.cjs} +4 -3
- package/dist/shared/{better-auth.KpzJUkxw.d.mts → better-auth.CePXeKag.d.mts} +515 -515
- package/dist/shared/{better-auth.CnqHgquB.cjs → better-auth.CeY8lCIq.cjs} +33 -11
- package/dist/shared/{better-auth.Cgjn2thr.d.cts → better-auth.CiGummYu.d.cts} +515 -515
- package/dist/shared/{better-auth.BP6KhZxK.mjs → better-auth.D1SaVuxk.mjs} +1 -1
- package/dist/shared/{better-auth.BOumacvv.mjs → better-auth.D4HhkCZJ.mjs} +4 -3
- package/dist/shared/{better-auth.PchrD52N.d.cts → better-auth.DEgvs2nh.d.cts} +1 -1
- package/dist/shared/{better-auth._di0pH6c.mjs → better-auth.DGaVMVAI.mjs} +1 -1
- package/dist/shared/{better-auth.PS9uuCnX.d.ts → better-auth.DPa2nz5L.d.ts} +3 -3
- package/dist/shared/{better-auth.VKKx-2JU.mjs → better-auth.DR6QsC6j.mjs} +33 -11
- package/dist/shared/{better-auth.ByEh_r9h.d.mts → better-auth.DbqVX6sp.d.mts} +1 -1
- package/dist/shared/{better-auth.2lcgvW_O.d.ts → better-auth.Dj2HyOmw.d.ts} +515 -515
- package/dist/shared/{better-auth.Bs90Z5lG.mjs → better-auth.DygEm6OX.mjs} +1 -1
- package/dist/shared/{better-auth.jZedDYFo.mjs → better-auth.HDgvLN7B.mjs} +2 -2
- package/dist/shared/{better-auth.KXK1cTP6.d.mts → better-auth.IegS6fw_.d.mts} +3 -3
- package/dist/shared/{better-auth.B448Gbxg.cjs → better-auth.PIkdXr0U.cjs} +2 -2
- package/dist/shared/{better-auth.DCdVWPIH.cjs → better-auth.TnpcdNJo.cjs} +1 -1
- package/dist/shared/{better-auth.hWM7ExMT.mjs → better-auth.VOBpdwFt.mjs} +1 -1
- package/dist/shared/{better-auth.CtknPsTc.cjs → better-auth.johXc5IC.cjs} +1 -1
- package/dist/shared/{better-auth.DVIqLF8t.d.cts → better-auth.npEvGVS_.d.cts} +3 -3
- package/dist/social-providers/index.cjs +1 -1
- package/dist/social-providers/index.d.cts +1 -1
- package/dist/social-providers/index.d.mts +1 -1
- package/dist/social-providers/index.d.ts +1 -1
- package/dist/social-providers/index.mjs +1 -1
- package/dist/test-utils/index.cjs +3 -3
- package/dist/test-utils/index.d.cts +732 -731
- package/dist/test-utils/index.d.mts +732 -731
- package/dist/test-utils/index.d.ts +732 -731
- package/dist/test-utils/index.mjs +3 -3
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/package.json +14 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { b as betterAuth } from './shared/better-auth.
|
|
1
|
+
export { b as betterAuth } from './shared/better-auth.VOBpdwFt.mjs';
|
|
2
2
|
export { B as BetterAuthError, M as MissingDependencyError } from './shared/better-auth.DdzSJf-n.mjs';
|
|
3
3
|
export { c as capitalizeFirstLetter } from './shared/better-auth.D-2CmEwz.mjs';
|
|
4
|
-
export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.
|
|
4
|
+
export { H as HIDE_METADATA, g as generateState, p as parseState } from './shared/better-auth.D4HhkCZJ.mjs';
|
|
5
5
|
export { c as createLogger, g as generateId, l as levels, a as logger, s as shouldPublishLog } from './shared/better-auth.DBGfIDnh.mjs';
|
|
6
6
|
import './api/index.mjs';
|
|
7
7
|
import 'better-call';
|
|
@@ -7,9 +7,9 @@ require('@better-auth/utils/binary');
|
|
|
7
7
|
const cookies_index = require('../cookies/index.cjs');
|
|
8
8
|
require('better-call');
|
|
9
9
|
require('zod/v4');
|
|
10
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
10
|
+
const socialProviders_index = require('../shared/better-auth.CU2ZnFFo.cjs');
|
|
11
11
|
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
12
|
-
require('../shared/better-auth.
|
|
12
|
+
require('../shared/better-auth.CSftMZoM.cjs');
|
|
13
13
|
require('../plugins/organization/access/index.cjs');
|
|
14
14
|
require('@better-auth/utils/random');
|
|
15
15
|
require('@better-auth/utils/hash');
|
|
@@ -1,9 +1,9 @@
|
|
|
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.CiGummYu.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.npEvGVS_.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.CePXeKag.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.IegS6fw_.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Dj2HyOmw.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.DPa2nz5L.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -5,9 +5,9 @@ import '@better-auth/utils/binary';
|
|
|
5
5
|
import { parseSetCookieHeader } from '../cookies/index.mjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'zod/v4';
|
|
8
|
-
import { i as createAuthMiddleware } from '../shared/better-auth.
|
|
8
|
+
import { i as createAuthMiddleware } from '../shared/better-auth.D4HhkCZJ.mjs';
|
|
9
9
|
import '../shared/better-auth.n2KFGwjY.mjs';
|
|
10
|
-
import '../shared/better-auth.
|
|
10
|
+
import '../shared/better-auth.DGaVMVAI.mjs';
|
|
11
11
|
import '../plugins/organization/access/index.mjs';
|
|
12
12
|
import '@better-auth/utils/random';
|
|
13
13
|
import '@better-auth/utils/hash';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IncomingHttpHeaders } from 'http';
|
|
3
|
-
import { n as Auth } from '../shared/better-auth.
|
|
3
|
+
import { n as Auth } from '../shared/better-auth.CiGummYu.cjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
8
|
-
import '../shared/better-auth.
|
|
8
|
+
import '../shared/better-auth.npEvGVS_.cjs';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IncomingHttpHeaders } from 'http';
|
|
3
|
-
import { n as Auth } from '../shared/better-auth.
|
|
3
|
+
import { n as Auth } from '../shared/better-auth.CePXeKag.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
8
|
-
import '../shared/better-auth.
|
|
8
|
+
import '../shared/better-auth.IegS6fw_.mjs';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as http from 'http';
|
|
2
2
|
import { IncomingHttpHeaders } from 'http';
|
|
3
|
-
import { n as Auth } from '../shared/better-auth.
|
|
3
|
+
import { n as Auth } from '../shared/better-auth.Dj2HyOmw.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
8
|
-
import '../shared/better-auth.
|
|
8
|
+
import '../shared/better-auth.DPa2nz5L.js';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import 'zod/v4/core';
|
|
11
11
|
import 'better-sqlite3';
|
|
@@ -7,9 +7,9 @@ require('@better-auth/utils/binary');
|
|
|
7
7
|
const cookies_index = require('../cookies/index.cjs');
|
|
8
8
|
require('better-call');
|
|
9
9
|
require('zod/v4');
|
|
10
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
10
|
+
const socialProviders_index = require('../shared/better-auth.CU2ZnFFo.cjs');
|
|
11
11
|
require('../shared/better-auth.BIMq4RPW.cjs');
|
|
12
|
-
require('../shared/better-auth.
|
|
12
|
+
require('../shared/better-auth.CSftMZoM.cjs');
|
|
13
13
|
require('../plugins/organization/access/index.cjs');
|
|
14
14
|
require('@better-auth/utils/random');
|
|
15
15
|
require('@better-auth/utils/hash');
|
|
@@ -1,9 +1,9 @@
|
|
|
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.CiGummYu.cjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.npEvGVS_.cjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.CePXeKag.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.IegS6fw_.mjs';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -1,9 +1,9 @@
|
|
|
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.Dj2HyOmw.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import 'kysely';
|
|
5
5
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
6
|
-
import '../shared/better-auth.
|
|
6
|
+
import '../shared/better-auth.DPa2nz5L.js';
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod/v4/core';
|
|
9
9
|
import 'better-sqlite3';
|
|
@@ -5,9 +5,9 @@ import '@better-auth/utils/binary';
|
|
|
5
5
|
import { parseSetCookieHeader } from '../cookies/index.mjs';
|
|
6
6
|
import 'better-call';
|
|
7
7
|
import 'zod/v4';
|
|
8
|
-
import { i as createAuthMiddleware } from '../shared/better-auth.
|
|
8
|
+
import { i as createAuthMiddleware } from '../shared/better-auth.D4HhkCZJ.mjs';
|
|
9
9
|
import '../shared/better-auth.n2KFGwjY.mjs';
|
|
10
|
-
import '../shared/better-auth.
|
|
10
|
+
import '../shared/better-auth.DGaVMVAI.mjs';
|
|
11
11
|
import '../plugins/organization/access/index.mjs';
|
|
12
12
|
import '@better-auth/utils/random';
|
|
13
13
|
import '@better-auth/utils/hash';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('better-call');
|
|
4
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
4
|
+
const socialProviders_index = require('../shared/better-auth.CU2ZnFFo.cjs');
|
|
5
5
|
require('zod/v4');
|
|
6
6
|
require('../shared/better-auth.DiSjtgs9.cjs');
|
|
7
7
|
require('@better-auth/utils/base64');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.CiGummYu.cjs';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.npEvGVS_.cjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.CePXeKag.mjs';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.IegS6fw_.mjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as better_call from 'better-call';
|
|
2
|
-
import { B as BetterAuthOptions } from '../shared/better-auth.
|
|
2
|
+
import { B as BetterAuthOptions } from '../shared/better-auth.Dj2HyOmw.js';
|
|
3
3
|
import { RequestEvent } from '@sveltejs/kit';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import 'kysely';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
7
|
-
import '../shared/better-auth.
|
|
7
|
+
import '../shared/better-auth.DPa2nz5L.js';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'better-call';
|
|
2
|
-
import { i as createAuthMiddleware } from '../shared/better-auth.
|
|
2
|
+
import { i as createAuthMiddleware } from '../shared/better-auth.D4HhkCZJ.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../shared/better-auth.8zoxzg-F.mjs';
|
|
5
5
|
import '@better-auth/utils/base64';
|
package/dist/oauth2/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const socialProviders_index = require('../shared/better-auth.
|
|
3
|
+
const socialProviders_index = require('../shared/better-auth.CU2ZnFFo.cjs');
|
|
4
4
|
require('zod/v4');
|
|
5
5
|
require('better-call');
|
|
6
6
|
require('../shared/better-auth.C1hdVENX.cjs');
|
package/dist/oauth2/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.npEvGVS_.cjs';
|
|
2
|
+
export { a as OAuthProvider } from '../shared/better-auth.npEvGVS_.cjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.CiGummYu.cjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.DEgvs2nh.cjs';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.cjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.IegS6fw_.mjs';
|
|
2
|
+
export { a as OAuthProvider } from '../shared/better-auth.IegS6fw_.mjs';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.CePXeKag.mjs';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.BF0l18Af.mjs';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.mjs';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.
|
|
2
|
-
export { a as OAuthProvider } from '../shared/better-auth.
|
|
1
|
+
import { P as ProviderOptions, O as OAuth2Tokens } from '../shared/better-auth.DPa2nz5L.js';
|
|
2
|
+
export { a as OAuthProvider } from '../shared/better-auth.DPa2nz5L.js';
|
|
3
3
|
import * as jose from 'jose';
|
|
4
|
-
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.
|
|
5
|
-
export { g as generateState, p as parseState } from '../shared/better-auth.
|
|
4
|
+
import { p as AuthContext, G as GenericEndpointContext, U as User, L as Account } from '../shared/better-auth.Dj2HyOmw.js';
|
|
5
|
+
export { g as generateState, p as parseState } from '../shared/better-auth.Bwe61noi.js';
|
|
6
6
|
import '../shared/better-auth.ZSfSbnQT.js';
|
|
7
7
|
import 'zod/v4';
|
|
8
8
|
import 'kysely';
|
package/dist/oauth2/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createAuthorizationURL, e as encodeOAuthParameter, b as generateCodeChallenge, g as generateState, f as getAccessTokenUtil, d as getOAuth2Tokens, h as handleOAuthUserInfo, p as parseState, r as refreshAccessToken, s as setTokenUtil, v as validateAuthorizationCode, a as validateToken } from '../shared/better-auth.
|
|
1
|
+
export { c as createAuthorizationURL, e as encodeOAuthParameter, b as generateCodeChallenge, g as generateState, f as getAccessTokenUtil, d as getOAuth2Tokens, h as handleOAuthUserInfo, p as parseState, r as refreshAccessToken, s as setTokenUtil, v as validateAuthorizationCode, a as validateToken } from '../shared/better-auth.D4HhkCZJ.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import 'better-call';
|
|
4
4
|
import '../shared/better-auth.CW6D9eSx.mjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const admin = require('../../shared/better-auth.
|
|
3
|
+
const admin = require('../../shared/better-auth.TnpcdNJo.cjs');
|
|
4
4
|
require('zod/v4');
|
|
5
5
|
require('better-call');
|
|
6
|
-
require('../../shared/better-auth.
|
|
6
|
+
require('../../shared/better-auth.CU2ZnFFo.cjs');
|
|
7
7
|
require('../../shared/better-auth.C1hdVENX.cjs');
|
|
8
8
|
require('@better-auth/utils/hash');
|
|
9
9
|
require('@better-auth/utils/base64');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AccessControl, Role, Statements } from '../access/index.cjs';
|
|
2
2
|
import * as better_call from 'better-call';
|
|
3
|
-
import * as
|
|
4
|
-
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.
|
|
3
|
+
import * as z from 'zod/v4';
|
|
4
|
+
import { I as InferOptionSchema, S as Session, U as User, G as GenericEndpointContext, H as HookEndpointContext } from '../../shared/better-auth.CiGummYu.cjs';
|
|
5
5
|
import '../../shared/better-auth.ZSfSbnQT.cjs';
|
|
6
6
|
import 'kysely';
|
|
7
|
-
import '../../shared/better-auth.
|
|
7
|
+
import '../../shared/better-auth.npEvGVS_.cjs';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'zod/v4/core';
|
|
10
10
|
import 'better-sqlite3';
|
|
@@ -224,10 +224,10 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
224
224
|
}>;
|
|
225
225
|
options: {
|
|
226
226
|
method: "POST";
|
|
227
|
-
body:
|
|
228
|
-
userId:
|
|
229
|
-
role:
|
|
230
|
-
},
|
|
227
|
+
body: z.ZodObject<{
|
|
228
|
+
userId: z.ZodCoercedString<unknown>;
|
|
229
|
+
role: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
231
|
requireHeaders: true;
|
|
232
232
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
233
233
|
session: {
|
|
@@ -322,13 +322,13 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
322
322
|
}>;
|
|
323
323
|
options: {
|
|
324
324
|
method: "POST";
|
|
325
|
-
body:
|
|
326
|
-
email:
|
|
327
|
-
password:
|
|
328
|
-
name:
|
|
329
|
-
role:
|
|
330
|
-
data:
|
|
331
|
-
},
|
|
325
|
+
body: z.ZodObject<{
|
|
326
|
+
email: z.ZodString;
|
|
327
|
+
password: z.ZodString;
|
|
328
|
+
name: z.ZodString;
|
|
329
|
+
role: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
330
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
332
|
metadata: {
|
|
333
333
|
openapi: {
|
|
334
334
|
operationId: string;
|
|
@@ -397,10 +397,10 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
397
397
|
} : UserWithRole>;
|
|
398
398
|
options: {
|
|
399
399
|
method: "POST";
|
|
400
|
-
body:
|
|
401
|
-
userId:
|
|
402
|
-
data:
|
|
403
|
-
},
|
|
400
|
+
body: z.ZodObject<{
|
|
401
|
+
userId: z.ZodCoercedString<unknown>;
|
|
402
|
+
data: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
403
|
+
}, z.core.$strip>;
|
|
404
404
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
405
405
|
session: {
|
|
406
406
|
user: UserWithRole;
|
|
@@ -496,27 +496,27 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
496
496
|
session: Session;
|
|
497
497
|
};
|
|
498
498
|
}>)[];
|
|
499
|
-
query:
|
|
500
|
-
searchValue:
|
|
501
|
-
searchField:
|
|
499
|
+
query: z.ZodObject<{
|
|
500
|
+
searchValue: z.ZodOptional<z.ZodString>;
|
|
501
|
+
searchField: z.ZodOptional<z.ZodEnum<{
|
|
502
502
|
name: "name";
|
|
503
503
|
email: "email";
|
|
504
504
|
}>>;
|
|
505
|
-
searchOperator:
|
|
505
|
+
searchOperator: z.ZodOptional<z.ZodEnum<{
|
|
506
506
|
contains: "contains";
|
|
507
507
|
starts_with: "starts_with";
|
|
508
508
|
ends_with: "ends_with";
|
|
509
509
|
}>>;
|
|
510
|
-
limit:
|
|
511
|
-
offset:
|
|
512
|
-
sortBy:
|
|
513
|
-
sortDirection:
|
|
510
|
+
limit: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
511
|
+
offset: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
512
|
+
sortBy: z.ZodOptional<z.ZodString>;
|
|
513
|
+
sortDirection: z.ZodOptional<z.ZodEnum<{
|
|
514
514
|
asc: "asc";
|
|
515
515
|
desc: "desc";
|
|
516
516
|
}>>;
|
|
517
|
-
filterField:
|
|
518
|
-
filterValue:
|
|
519
|
-
filterOperator:
|
|
517
|
+
filterField: z.ZodOptional<z.ZodString>;
|
|
518
|
+
filterValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBoolean]>>;
|
|
519
|
+
filterOperator: z.ZodOptional<z.ZodEnum<{
|
|
520
520
|
lt: "lt";
|
|
521
521
|
eq: "eq";
|
|
522
522
|
ne: "ne";
|
|
@@ -525,7 +525,7 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
525
525
|
gte: "gte";
|
|
526
526
|
contains: "contains";
|
|
527
527
|
}>>;
|
|
528
|
-
},
|
|
528
|
+
}, z.core.$strip>;
|
|
529
529
|
metadata: {
|
|
530
530
|
openapi: {
|
|
531
531
|
operationId: string;
|
|
@@ -640,9 +640,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
640
640
|
session: Session;
|
|
641
641
|
};
|
|
642
642
|
}>)[];
|
|
643
|
-
body:
|
|
644
|
-
userId:
|
|
645
|
-
},
|
|
643
|
+
body: z.ZodObject<{
|
|
644
|
+
userId: z.ZodCoercedString<unknown>;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
646
|
metadata: {
|
|
647
647
|
openapi: {
|
|
648
648
|
operationId: string;
|
|
@@ -723,9 +723,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
723
723
|
}>;
|
|
724
724
|
options: {
|
|
725
725
|
method: "POST";
|
|
726
|
-
body:
|
|
727
|
-
userId:
|
|
728
|
-
},
|
|
726
|
+
body: z.ZodObject<{
|
|
727
|
+
userId: z.ZodCoercedString<unknown>;
|
|
728
|
+
}, z.core.$strip>;
|
|
729
729
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
730
730
|
session: {
|
|
731
731
|
user: UserWithRole;
|
|
@@ -811,11 +811,11 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
811
811
|
}>;
|
|
812
812
|
options: {
|
|
813
813
|
method: "POST";
|
|
814
|
-
body:
|
|
815
|
-
userId:
|
|
816
|
-
banReason:
|
|
817
|
-
banExpiresIn:
|
|
818
|
-
},
|
|
814
|
+
body: z.ZodObject<{
|
|
815
|
+
userId: z.ZodCoercedString<unknown>;
|
|
816
|
+
banReason: z.ZodOptional<z.ZodString>;
|
|
817
|
+
banExpiresIn: z.ZodOptional<z.ZodNumber>;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
819
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
820
820
|
session: {
|
|
821
821
|
user: UserWithRole;
|
|
@@ -935,9 +935,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
935
935
|
}>;
|
|
936
936
|
options: {
|
|
937
937
|
method: "POST";
|
|
938
|
-
body:
|
|
939
|
-
userId:
|
|
940
|
-
},
|
|
938
|
+
body: z.ZodObject<{
|
|
939
|
+
userId: z.ZodCoercedString<unknown>;
|
|
940
|
+
}, z.core.$strip>;
|
|
941
941
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
942
942
|
session: {
|
|
943
943
|
user: UserWithRole;
|
|
@@ -1078,9 +1078,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1078
1078
|
}>;
|
|
1079
1079
|
options: {
|
|
1080
1080
|
method: "POST";
|
|
1081
|
-
body:
|
|
1082
|
-
sessionToken:
|
|
1083
|
-
},
|
|
1081
|
+
body: z.ZodObject<{
|
|
1082
|
+
sessionToken: z.ZodString;
|
|
1083
|
+
}, z.core.$strip>;
|
|
1084
1084
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
1085
1085
|
session: {
|
|
1086
1086
|
user: UserWithRole;
|
|
@@ -1164,9 +1164,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1164
1164
|
}>;
|
|
1165
1165
|
options: {
|
|
1166
1166
|
method: "POST";
|
|
1167
|
-
body:
|
|
1168
|
-
userId:
|
|
1169
|
-
},
|
|
1167
|
+
body: z.ZodObject<{
|
|
1168
|
+
userId: z.ZodCoercedString<unknown>;
|
|
1169
|
+
}, z.core.$strip>;
|
|
1170
1170
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
1171
1171
|
session: {
|
|
1172
1172
|
user: UserWithRole;
|
|
@@ -1250,9 +1250,9 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1250
1250
|
}>;
|
|
1251
1251
|
options: {
|
|
1252
1252
|
method: "POST";
|
|
1253
|
-
body:
|
|
1254
|
-
userId:
|
|
1255
|
-
},
|
|
1253
|
+
body: z.ZodObject<{
|
|
1254
|
+
userId: z.ZodCoercedString<unknown>;
|
|
1255
|
+
}, z.core.$strip>;
|
|
1256
1256
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
1257
1257
|
session: {
|
|
1258
1258
|
user: UserWithRole;
|
|
@@ -1337,10 +1337,10 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1337
1337
|
}>;
|
|
1338
1338
|
options: {
|
|
1339
1339
|
method: "POST";
|
|
1340
|
-
body:
|
|
1341
|
-
newPassword:
|
|
1342
|
-
userId:
|
|
1343
|
-
},
|
|
1340
|
+
body: z.ZodObject<{
|
|
1341
|
+
newPassword: z.ZodString;
|
|
1342
|
+
userId: z.ZodCoercedString<unknown>;
|
|
1343
|
+
}, z.core.$strip>;
|
|
1344
1344
|
use: ((inputContext: better_call.MiddlewareInputContext<better_call.MiddlewareOptions>) => Promise<{
|
|
1345
1345
|
session: {
|
|
1346
1346
|
user: UserWithRole;
|
|
@@ -1454,16 +1454,16 @@ declare const admin: <O extends AdminOptions>(options?: O) => {
|
|
|
1454
1454
|
}>;
|
|
1455
1455
|
options: {
|
|
1456
1456
|
method: "POST";
|
|
1457
|
-
body:
|
|
1458
|
-
userId:
|
|
1459
|
-
role:
|
|
1460
|
-
},
|
|
1461
|
-
permission:
|
|
1462
|
-
permissions:
|
|
1463
|
-
},
|
|
1464
|
-
permission:
|
|
1465
|
-
permissions:
|
|
1466
|
-
},
|
|
1457
|
+
body: z.ZodIntersection<z.ZodObject<{
|
|
1458
|
+
userId: z.ZodOptional<z.ZodCoercedString<unknown>>;
|
|
1459
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1460
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
1461
|
+
permission: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
1462
|
+
permissions: z.ZodUndefined;
|
|
1463
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1464
|
+
permission: z.ZodUndefined;
|
|
1465
|
+
permissions: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
1466
|
+
}, z.core.$strip>]>>;
|
|
1467
1467
|
metadata: {
|
|
1468
1468
|
openapi: {
|
|
1469
1469
|
description: string;
|