better-auth 1.2.0 → 1.2.1-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-adapter/{drizzle-adapter.d.ts → index.d.cts} +14 -5
- package/dist/adapters/drizzle-adapter/index.d.mts +76 -0
- package/dist/adapters/drizzle-adapter/index.d.ts +76 -2
- package/dist/adapters/kysely-adapter/index.d.cts +68 -0
- package/dist/adapters/kysely-adapter/index.d.mts +68 -0
- package/dist/adapters/kysely-adapter/index.d.ts +68 -4
- package/dist/adapters/memory-adapter/{memory-adapter.d.ts → index.d.cts} +13 -4
- package/dist/adapters/memory-adapter/index.d.mts +59 -0
- package/dist/adapters/memory-adapter/index.d.ts +59 -2
- package/dist/adapters/mongodb-adapter/{mongodb-adapter.d.ts → index.d.cts} +13 -4
- package/dist/adapters/{kysely-adapter/kysely-adapter.d.ts → mongodb-adapter/index.d.mts} +18 -18
- package/dist/adapters/mongodb-adapter/index.d.ts +57 -2
- package/dist/adapters/prisma-adapter/{prisma-adapter.d.ts → index.d.cts} +13 -5
- package/dist/adapters/prisma-adapter/index.d.mts +65 -0
- package/dist/adapters/prisma-adapter/index.d.ts +65 -2
- package/dist/adapters/test.d.cts +16 -0
- package/dist/adapters/test.d.mts +16 -0
- package/dist/adapters/test.d.ts +12 -4
- package/dist/api/index.cjs +2 -2
- package/dist/api/index.d.cts +8 -0
- package/dist/api/index.d.mts +8 -0
- package/dist/api/index.d.ts +8 -7145
- package/dist/api/index.mjs +3 -3
- package/dist/client/index.d.cts +138 -0
- package/dist/client/index.d.mts +138 -0
- package/dist/client/index.d.ts +135 -8
- package/dist/client/plugins/index.cjs +1 -1
- package/dist/client/plugins/index.d.cts +837 -0
- package/dist/client/plugins/index.d.mts +837 -0
- package/dist/client/plugins/index.d.ts +837 -21
- package/dist/client/plugins/index.mjs +1 -1
- package/dist/client/react/index.d.cts +141 -0
- package/dist/client/react/index.d.mts +141 -0
- package/dist/client/react/index.d.ts +54 -26
- package/dist/client/solid/index.d.cts +115 -0
- package/dist/client/solid/index.d.mts +115 -0
- package/dist/client/solid/index.d.ts +32 -23
- package/dist/client/{vanilla.d.ts → svelte/index.d.cts} +36 -26
- package/dist/client/svelte/index.d.mts +120 -0
- package/dist/client/svelte/index.d.ts +33 -24
- package/dist/client/vue/index.d.cts +143 -0
- package/dist/client/vue/index.d.mts +143 -0
- package/dist/client/vue/index.d.ts +33 -24
- package/dist/cookies/index.d.cts +8 -0
- package/dist/cookies/index.d.mts +8 -0
- package/dist/cookies/index.d.ts +8 -51
- package/dist/crypto/index.d.cts +30 -0
- package/dist/crypto/index.d.mts +30 -0
- package/dist/crypto/index.d.ts +24 -10
- package/dist/db/index.d.cts +56 -0
- package/dist/db/index.d.mts +56 -0
- package/dist/db/index.d.ts +56 -10
- package/dist/index.cjs +5 -3
- package/dist/index.d.cts +26 -0
- package/dist/index.d.mts +26 -0
- package/dist/index.d.ts +26 -7
- package/dist/index.mjs +6 -4
- package/dist/integrations/next-js.cjs +6 -6
- package/dist/integrations/next-js.d.cts +34 -0
- package/dist/integrations/next-js.d.mts +34 -0
- package/dist/integrations/next-js.d.ts +15 -5
- package/dist/integrations/next-js.mjs +6 -6
- package/dist/integrations/node.d.cts +17 -0
- package/dist/integrations/node.d.mts +17 -0
- package/dist/integrations/node.d.ts +16 -6
- package/dist/integrations/solid-start.d.cts +12 -0
- package/dist/integrations/solid-start.d.mts +12 -0
- package/dist/integrations/solid-start.d.ts +3 -2
- package/dist/integrations/svelte-kit.d.cts +29 -0
- package/dist/integrations/svelte-kit.d.mts +29 -0
- package/dist/integrations/svelte-kit.d.ts +14 -5
- package/dist/oauth2/index.cjs +1 -1
- package/dist/oauth2/index.d.cts +39 -0
- package/dist/oauth2/index.d.mts +39 -0
- package/dist/oauth2/index.d.ts +39 -6
- package/dist/oauth2/index.mjs +1 -1
- package/dist/plugins/access/index.d.cts +42 -0
- package/dist/plugins/access/index.d.mts +42 -0
- package/dist/plugins/access/index.d.ts +42 -3
- package/dist/plugins/admin/access/{statement.d.ts → index.d.cts} +37 -32
- package/dist/plugins/admin/access/index.d.mts +116 -0
- package/dist/plugins/admin/access/index.d.ts +116 -2
- package/dist/plugins/admin/index.cjs +4 -4
- package/dist/plugins/admin/{admin.d.ts → index.d.cts} +59 -51
- package/dist/plugins/admin/index.d.mts +1398 -0
- package/dist/plugins/admin/index.d.ts +1398 -2
- package/dist/plugins/admin/index.mjs +4 -4
- package/dist/plugins/anonymous/index.cjs +2 -2
- package/dist/plugins/anonymous/index.d.cts +160 -0
- package/dist/plugins/anonymous/index.d.mts +160 -0
- package/dist/plugins/anonymous/index.d.ts +17 -9
- package/dist/plugins/anonymous/index.mjs +2 -2
- package/dist/plugins/bearer/index.cjs +2 -2
- package/dist/plugins/bearer/index.d.cts +57 -0
- package/dist/plugins/bearer/index.d.mts +57 -0
- package/dist/plugins/bearer/index.d.ts +16 -7
- package/dist/plugins/bearer/index.mjs +2 -2
- package/dist/plugins/captcha/index.d.cts +21 -0
- package/dist/plugins/captcha/index.d.mts +21 -0
- package/dist/plugins/captcha/index.d.ts +11 -4
- package/dist/plugins/custom-session/index.cjs +2 -2
- package/dist/plugins/custom-session/index.d.cts +66 -0
- package/dist/plugins/custom-session/index.d.mts +66 -0
- package/dist/plugins/custom-session/index.d.ts +13 -5
- package/dist/plugins/custom-session/index.mjs +2 -2
- package/dist/plugins/email-otp/index.cjs +2 -2
- package/dist/plugins/email-otp/index.d.cts +615 -0
- package/dist/plugins/email-otp/index.d.mts +615 -0
- package/dist/plugins/email-otp/index.d.ts +22 -13
- package/dist/plugins/email-otp/index.mjs +2 -2
- package/dist/plugins/generic-oauth/index.cjs +15 -4
- package/dist/plugins/generic-oauth/index.d.cts +373 -0
- package/dist/plugins/generic-oauth/index.d.mts +373 -0
- package/dist/plugins/generic-oauth/index.d.ts +30 -11
- package/dist/plugins/generic-oauth/index.mjs +15 -4
- package/dist/plugins/index.cjs +8 -8
- package/dist/plugins/index.d.cts +31 -0
- package/dist/plugins/index.d.mts +31 -0
- package/dist/plugins/index.d.ts +31 -23
- package/dist/plugins/index.mjs +9 -9
- package/dist/plugins/jwt/index.cjs +2 -2
- package/dist/plugins/jwt/index.d.cts +303 -0
- package/dist/plugins/jwt/index.d.mts +303 -0
- package/dist/plugins/jwt/index.d.ts +37 -11
- package/dist/plugins/jwt/index.mjs +2 -2
- package/dist/plugins/magic-link/index.cjs +2 -2
- package/dist/plugins/magic-link/index.d.cts +220 -0
- package/dist/plugins/magic-link/index.d.mts +220 -0
- package/dist/plugins/magic-link/index.d.ts +9 -7
- package/dist/plugins/magic-link/index.mjs +2 -2
- package/dist/plugins/multi-session/index.cjs +5 -2
- package/dist/plugins/multi-session/index.d.cts +265 -0
- package/dist/plugins/multi-session/index.d.mts +265 -0
- package/dist/plugins/multi-session/index.d.ts +27 -19
- package/dist/plugins/multi-session/index.mjs +5 -2
- package/dist/plugins/oauth-proxy/index.cjs +2 -2
- package/dist/plugins/oauth-proxy/index.d.cts +142 -0
- package/dist/plugins/oauth-proxy/index.d.mts +142 -0
- package/dist/plugins/oauth-proxy/index.d.ts +19 -11
- package/dist/plugins/oauth-proxy/index.mjs +2 -2
- package/dist/plugins/oidc-provider/index.cjs +2 -2
- package/dist/plugins/oidc-provider/index.d.cts +980 -0
- package/dist/plugins/oidc-provider/index.d.mts +980 -0
- package/dist/plugins/oidc-provider/index.d.ts +512 -15
- package/dist/plugins/oidc-provider/index.mjs +2 -2
- package/dist/plugins/one-tap/index.cjs +2 -2
- package/dist/plugins/one-tap/index.d.cts +116 -0
- package/dist/plugins/one-tap/index.d.mts +116 -0
- package/dist/plugins/one-tap/index.d.ts +7 -5
- package/dist/plugins/one-tap/index.mjs +2 -2
- package/dist/plugins/open-api/index.cjs +2 -2
- package/dist/plugins/open-api/index.d.cts +260 -0
- package/dist/plugins/open-api/index.d.mts +260 -0
- package/dist/plugins/open-api/index.d.ts +117 -9
- package/dist/plugins/open-api/index.mjs +2 -2
- package/dist/plugins/organization/index.cjs +6 -6
- package/dist/plugins/organization/index.d.cts +10 -0
- package/dist/plugins/organization/index.d.mts +10 -0
- package/dist/plugins/organization/index.d.ts +10 -2
- package/dist/plugins/organization/index.mjs +6 -6
- package/dist/plugins/passkey/index.cjs +2 -2
- package/dist/plugins/passkey/index.d.cts +855 -0
- package/dist/plugins/passkey/index.d.mts +855 -0
- package/dist/plugins/passkey/index.d.ts +30 -22
- package/dist/plugins/passkey/index.mjs +2 -2
- package/dist/plugins/phone-number/index.cjs +2 -2
- package/dist/plugins/phone-number/index.d.cts +483 -0
- package/dist/plugins/phone-number/index.d.mts +483 -0
- package/dist/plugins/phone-number/index.d.ts +19 -13
- package/dist/plugins/phone-number/index.mjs +2 -2
- package/dist/plugins/sso/index.cjs +8 -4
- package/dist/plugins/sso/index.d.cts +505 -0
- package/dist/plugins/sso/index.d.mts +505 -0
- package/dist/plugins/sso/index.d.ts +25 -10
- package/dist/plugins/sso/index.mjs +8 -4
- package/dist/plugins/two-factor/index.cjs +3 -3
- package/dist/plugins/two-factor/index.d.cts +1394 -0
- package/dist/plugins/two-factor/index.d.mts +1394 -0
- package/dist/plugins/two-factor/index.d.ts +234 -39
- package/dist/plugins/two-factor/index.mjs +3 -3
- package/dist/plugins/username/index.cjs +2 -2
- package/dist/plugins/username/index.d.cts +194 -0
- package/dist/plugins/username/index.d.mts +194 -0
- package/dist/plugins/username/index.d.ts +37 -9
- package/dist/plugins/username/index.mjs +2 -2
- package/dist/shared/better-auth.6gqj6yY0.d.cts +6995 -0
- package/dist/shared/{better-auth.hD7lTOnD.cjs → better-auth.BUSrqHXr.cjs} +3 -3
- package/dist/shared/better-auth.BaQjPalT.d.cts +17565 -0
- package/dist/{plugins/organization/organization.d.ts → shared/better-auth.BsyCjauU.d.ts} +607 -384
- package/dist/shared/better-auth.BxHU_jBw.d.mts +23 -0
- package/dist/shared/{better-auth.Bs-ICn96.mjs → better-auth.C0ONNNFq.mjs} +3 -3
- package/dist/{oauth2/state.d.ts → shared/better-auth.C8JajzHn.d.ts} +7 -4
- package/dist/shared/{better-auth.am4QbDex.cjs → better-auth.C9_rxJsh.cjs} +8 -4
- package/dist/shared/better-auth.CJEKfv4g.d.cts +1700 -0
- package/dist/shared/better-auth.CLzgLt9r.d.ts +1700 -0
- package/dist/shared/better-auth.ClvQhH7f.d.cts +1331 -0
- package/dist/shared/{better-auth.BXzrqpD0.mjs → better-auth.CoMXyQ1y.mjs} +4 -2
- package/dist/shared/better-auth.CoUcDfY_.d.mts +1331 -0
- package/dist/shared/{better-auth.DMLPzZdQ.cjs → better-auth.CrRSJBLs.cjs} +1 -1
- package/dist/shared/better-auth.DEHJp1rk.d.cts +5 -0
- package/dist/shared/better-auth.DEHJp1rk.d.mts +5 -0
- package/dist/shared/better-auth.DEHJp1rk.d.ts +5 -0
- package/dist/shared/{better-auth.BIdFil5c.mjs → better-auth.DEf1xRKI.mjs} +32 -5
- package/dist/shared/better-auth.DFk-nDjL.d.cts +29 -0
- package/dist/shared/better-auth.DFk-nDjL.d.mts +29 -0
- package/dist/shared/better-auth.DFk-nDjL.d.ts +29 -0
- package/dist/shared/{better-auth.BBVHlTCJ.mjs → better-auth.DM0tp62E.mjs} +1 -1
- package/dist/shared/{better-auth.CuZPmFi8.mjs → better-auth.DOX3pFKZ.mjs} +8 -4
- package/dist/shared/{better-auth.DQRQ_nOW.cjs → better-auth.DWct7EMv.cjs} +2 -2
- package/dist/shared/{better-auth.BtJHz7JQ.mjs → better-auth.DXBE8GNe.mjs} +1 -1
- package/dist/shared/better-auth.DYD-JRMq.d.mts +6995 -0
- package/dist/shared/{better-auth.CHh0hgk_.cjs → better-auth.DcdXBLtR.cjs} +32 -5
- package/dist/shared/{better-auth.BPLoEepG.cjs → better-auth.DgJAmPzg.cjs} +88 -11
- package/dist/shared/{better-auth.BsGMIUYy.cjs → better-auth.Dk8coh4_.cjs} +1 -1
- package/dist/shared/{better-auth.BopGaOCJ.mjs → better-auth.DnLVpdsO.mjs} +2 -2
- package/dist/shared/{better-auth.CZu6g_Il.cjs → better-auth.GgQnT00n.cjs} +4 -2
- package/dist/shared/better-auth.Ol5XTuED.d.cts +23 -0
- package/dist/shared/better-auth.Y5QL3A6K.d.mts +17565 -0
- package/dist/shared/{better-auth.-OeYbqoe.mjs → better-auth.Zq6lveA0.mjs} +88 -11
- package/dist/{plugins/api-key/index.d.ts → shared/better-auth.n0oTeBWE.d.ts} +513 -55
- package/dist/shared/better-auth.rjQjxKRY.d.mts +1700 -0
- package/dist/shared/better-auth.yeQRREpo.d.ts +17565 -0
- package/dist/social-providers/index.d.cts +4 -0
- package/dist/social-providers/index.d.mts +4 -0
- package/dist/social-providers/index.d.ts +4 -477
- package/dist/types/index.d.cts +138 -0
- package/dist/types/index.d.mts +138 -0
- package/dist/types/index.d.ts +138 -9
- package/package.json +2 -2
- package/dist/adapters/drizzle-adapter/drizzle-adapter.d.ts.map +0 -1
- package/dist/adapters/drizzle-adapter/index.d.ts.map +0 -1
- package/dist/adapters/kysely-adapter/dialect.d.ts +0 -8
- package/dist/adapters/kysely-adapter/dialect.d.ts.map +0 -1
- package/dist/adapters/kysely-adapter/index.d.ts.map +0 -1
- package/dist/adapters/kysely-adapter/kysely-adapter.d.ts.map +0 -1
- package/dist/adapters/kysely-adapter/types.d.ts +0 -2
- package/dist/adapters/kysely-adapter/types.d.ts.map +0 -1
- package/dist/adapters/memory-adapter/index.d.ts.map +0 -1
- package/dist/adapters/memory-adapter/memory-adapter.d.ts.map +0 -1
- package/dist/adapters/mongodb-adapter/index.d.ts.map +0 -1
- package/dist/adapters/mongodb-adapter/mongodb-adapter.d.ts.map +0 -1
- package/dist/adapters/prisma-adapter/index.d.ts.map +0 -1
- package/dist/adapters/prisma-adapter/prisma-adapter.d.ts.map +0 -1
- package/dist/adapters/test.d.ts.map +0 -1
- package/dist/adapters/utils.d.ts +0 -3
- package/dist/adapters/utils.d.ts.map +0 -1
- package/dist/api/call.d.ts +0 -1143
- package/dist/api/call.d.ts.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/middlewares/index.d.ts +0 -2
- package/dist/api/middlewares/index.d.ts.map +0 -1
- package/dist/api/middlewares/origin-check.d.ts +0 -24
- package/dist/api/middlewares/origin-check.d.ts.map +0 -1
- package/dist/api/rate-limiter/index.d.ts +0 -7
- package/dist/api/rate-limiter/index.d.ts.map +0 -1
- package/dist/api/routes/account.d.ts +0 -283
- package/dist/api/routes/account.d.ts.map +0 -1
- package/dist/api/routes/callback.d.ts +0 -84
- package/dist/api/routes/callback.d.ts.map +0 -1
- package/dist/api/routes/email-verification.d.ts +0 -205
- package/dist/api/routes/email-verification.d.ts.map +0 -1
- package/dist/api/routes/error.d.ts +0 -46
- package/dist/api/routes/error.d.ts.map +0 -1
- package/dist/api/routes/forget-password.d.ts +0 -221
- package/dist/api/routes/forget-password.d.ts.map +0 -1
- package/dist/api/routes/index.d.ts +0 -12
- package/dist/api/routes/index.d.ts.map +0 -1
- package/dist/api/routes/ok.d.ts +0 -55
- package/dist/api/routes/ok.d.ts.map +0 -1
- package/dist/api/routes/session.d.ts +0 -606
- package/dist/api/routes/session.d.ts.map +0 -1
- package/dist/api/routes/sign-in.d.ts +0 -329
- package/dist/api/routes/sign-in.d.ts.map +0 -1
- package/dist/api/routes/sign-out.d.ts +0 -55
- package/dist/api/routes/sign-out.d.ts.map +0 -1
- package/dist/api/routes/sign-up.d.ts +0 -768
- package/dist/api/routes/sign-up.d.ts.map +0 -1
- package/dist/api/routes/update-user.d.ts +0 -1160
- package/dist/api/routes/update-user.d.ts.map +0 -1
- package/dist/api/to-auth-endpoints.d.ts +0 -4
- package/dist/api/to-auth-endpoints.d.ts.map +0 -1
- package/dist/auth.d.ts +0 -3590
- package/dist/auth.d.ts.map +0 -1
- package/dist/client/config.d.ts +0 -74
- package/dist/client/config.d.ts.map +0 -1
- package/dist/client/fetch-plugins.d.ts +0 -8
- package/dist/client/fetch-plugins.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/parser.d.ts +0 -13
- package/dist/client/parser.d.ts.map +0 -1
- package/dist/client/path-to-object.d.ts +0 -63
- package/dist/client/path-to-object.d.ts.map +0 -1
- package/dist/client/plugins/index.d.ts.map +0 -1
- package/dist/client/plugins/infer-plugin.d.ts +0 -12
- package/dist/client/plugins/infer-plugin.d.ts.map +0 -1
- package/dist/client/proxy.d.ts +0 -9
- package/dist/client/proxy.d.ts.map +0 -1
- package/dist/client/query.d.ts +0 -14
- package/dist/client/query.d.ts.map +0 -1
- package/dist/client/react/index.d.ts.map +0 -1
- package/dist/client/react/react-store.d.ts +0 -21
- package/dist/client/react/react-store.d.ts.map +0 -1
- package/dist/client/session-atom.d.ts +0 -16
- package/dist/client/session-atom.d.ts.map +0 -1
- package/dist/client/solid/index.d.ts.map +0 -1
- package/dist/client/solid/solid-store.d.ts +0 -10
- package/dist/client/solid/solid-store.d.ts.map +0 -1
- package/dist/client/svelte/index.d.ts.map +0 -1
- package/dist/client/test-plugin.d.ts +0 -130
- package/dist/client/test-plugin.d.ts.map +0 -1
- package/dist/client/types.d.ts +0 -79
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/vanilla.d.ts.map +0 -1
- package/dist/client/vue/index.d.ts.map +0 -1
- package/dist/client/vue/vue-store.d.ts +0 -5
- package/dist/client/vue/vue-store.d.ts.map +0 -1
- package/dist/cookies/check-cookies.d.ts +0 -5
- package/dist/cookies/check-cookies.d.ts.map +0 -1
- package/dist/cookies/cookie-utils.d.ts +0 -17
- package/dist/cookies/cookie-utils.d.ts.map +0 -1
- package/dist/cookies/index.d.ts.map +0 -1
- package/dist/crypto/buffer.d.ts +0 -5
- package/dist/crypto/buffer.d.ts.map +0 -1
- package/dist/crypto/hash.d.ts +0 -3
- package/dist/crypto/hash.d.ts.map +0 -1
- package/dist/crypto/index.d.ts.map +0 -1
- package/dist/crypto/jwt.d.ts +0 -2
- package/dist/crypto/jwt.d.ts.map +0 -1
- package/dist/crypto/password.d.ts +0 -6
- package/dist/crypto/password.d.ts.map +0 -1
- package/dist/crypto/random.d.ts +0 -2
- package/dist/crypto/random.d.ts.map +0 -1
- package/dist/db/field.d.ts +0 -148
- package/dist/db/field.d.ts.map +0 -1
- package/dist/db/get-migration.d.ts +0 -19
- package/dist/db/get-migration.d.ts.map +0 -1
- package/dist/db/get-schema.d.ts +0 -7
- package/dist/db/get-schema.d.ts.map +0 -1
- package/dist/db/get-tables.d.ts +0 -23
- package/dist/db/get-tables.d.ts.map +0 -1
- package/dist/db/index.d.ts.map +0 -1
- package/dist/db/internal-adapter.d.ts +0 -219
- package/dist/db/internal-adapter.d.ts.map +0 -1
- package/dist/db/schema.d.ts +0 -216
- package/dist/db/schema.d.ts.map +0 -1
- package/dist/db/to-zod.d.ts +0 -4
- package/dist/db/to-zod.d.ts.map +0 -1
- package/dist/db/utils.d.ts +0 -6
- package/dist/db/utils.d.ts.map +0 -1
- package/dist/db/with-hooks.d.ts +0 -19
- package/dist/db/with-hooks.d.ts.map +0 -1
- package/dist/error/codes.d.ts +0 -26
- package/dist/error/codes.d.ts.map +0 -1
- package/dist/error/index.d.ts +0 -7
- package/dist/error/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/init.d.ts +0 -71
- package/dist/init.d.ts.map +0 -1
- package/dist/integrations/next-js.d.ts.map +0 -1
- package/dist/integrations/node.d.ts.map +0 -1
- package/dist/integrations/solid-start.d.ts.map +0 -1
- package/dist/integrations/svelte-kit.d.ts.map +0 -1
- package/dist/oauth2/create-authorization-url.d.ts +0 -14
- package/dist/oauth2/create-authorization-url.d.ts.map +0 -1
- package/dist/oauth2/index.d.ts.map +0 -1
- package/dist/oauth2/link-account.d.ts +0 -40
- package/dist/oauth2/link-account.d.ts.map +0 -1
- package/dist/oauth2/state.d.ts.map +0 -1
- package/dist/oauth2/types.d.ts +0 -112
- package/dist/oauth2/types.d.ts.map +0 -1
- package/dist/oauth2/utils.d.ts +0 -4
- package/dist/oauth2/utils.d.ts.map +0 -1
- package/dist/oauth2/validate-authorization-code.d.ts +0 -12
- package/dist/oauth2/validate-authorization-code.d.ts.map +0 -1
- package/dist/plugins/access/access.d.ts +0 -26
- package/dist/plugins/access/access.d.ts.map +0 -1
- package/dist/plugins/access/index.d.ts.map +0 -1
- package/dist/plugins/access/types.d.ts +0 -15
- package/dist/plugins/access/types.d.ts.map +0 -1
- package/dist/plugins/additional-fields/client.d.ts +0 -93
- package/dist/plugins/additional-fields/client.d.ts.map +0 -1
- package/dist/plugins/admin/access/index.d.ts.map +0 -1
- package/dist/plugins/admin/access/statement.d.ts.map +0 -1
- package/dist/plugins/admin/admin.d.ts.map +0 -1
- package/dist/plugins/admin/call.d.ts +0 -23
- package/dist/plugins/admin/call.d.ts.map +0 -1
- package/dist/plugins/admin/client.d.ts +0 -43
- package/dist/plugins/admin/client.d.ts.map +0 -1
- package/dist/plugins/admin/error-codes.d.ts +0 -14
- package/dist/plugins/admin/error-codes.d.ts.map +0 -1
- package/dist/plugins/admin/has-permission.d.ts +0 -10
- package/dist/plugins/admin/has-permission.d.ts.map +0 -1
- package/dist/plugins/admin/index.d.ts.map +0 -1
- package/dist/plugins/anonymous/client.d.ts +0 -9
- package/dist/plugins/anonymous/client.d.ts.map +0 -1
- package/dist/plugins/anonymous/index.d.ts.map +0 -1
- package/dist/plugins/api-key/client.d.ts +0 -9
- package/dist/plugins/api-key/client.d.ts.map +0 -1
- package/dist/plugins/api-key/index.d.ts.map +0 -1
- package/dist/plugins/api-key/rate-limit.d.ts +0 -21
- package/dist/plugins/api-key/rate-limit.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/create-api-key.d.ts +0 -137
- package/dist/plugins/api-key/routes/create-api-key.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts +0 -40
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/delete-api-key.d.ts +0 -80
- package/dist/plugins/api-key/routes/delete-api-key.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/get-api-key.d.ts +0 -118
- package/dist/plugins/api-key/routes/get-api-key.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/index.d.ts +0 -709
- package/dist/plugins/api-key/routes/index.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/list-api-keys.d.ts +0 -108
- package/dist/plugins/api-key/routes/list-api-keys.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/update-api-key.d.ts +0 -135
- package/dist/plugins/api-key/routes/update-api-key.d.ts.map +0 -1
- package/dist/plugins/api-key/routes/verify-api-key.d.ts +0 -137
- package/dist/plugins/api-key/routes/verify-api-key.d.ts.map +0 -1
- package/dist/plugins/api-key/schema.d.ts +0 -189
- package/dist/plugins/api-key/schema.d.ts.map +0 -1
- package/dist/plugins/api-key/types.d.ts +0 -267
- package/dist/plugins/api-key/types.d.ts.map +0 -1
- package/dist/plugins/bearer/index.d.ts.map +0 -1
- package/dist/plugins/captcha/constants.d.ts +0 -8
- package/dist/plugins/captcha/constants.d.ts.map +0 -1
- package/dist/plugins/captcha/error-codes.d.ts +0 -7
- package/dist/plugins/captcha/error-codes.d.ts.map +0 -1
- package/dist/plugins/captcha/index.d.ts.map +0 -1
- package/dist/plugins/captcha/types.d.ts +0 -21
- package/dist/plugins/captcha/types.d.ts.map +0 -1
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts +0 -10
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts.map +0 -1
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts +0 -10
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts.map +0 -1
- package/dist/plugins/captcha/verify-handlers/index.d.ts +0 -3
- package/dist/plugins/captcha/verify-handlers/index.d.ts.map +0 -1
- package/dist/plugins/custom-session/client.d.ts +0 -12
- package/dist/plugins/custom-session/client.d.ts.map +0 -1
- package/dist/plugins/custom-session/index.d.ts.map +0 -1
- package/dist/plugins/email-otp/client.d.ts +0 -6
- package/dist/plugins/email-otp/client.d.ts.map +0 -1
- package/dist/plugins/email-otp/index.d.ts.map +0 -1
- package/dist/plugins/generic-oauth/client.d.ts +0 -6
- package/dist/plugins/generic-oauth/client.d.ts.map +0 -1
- package/dist/plugins/generic-oauth/index.d.ts.map +0 -1
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/jwt/adapter.d.ts +0 -23
- package/dist/plugins/jwt/adapter.d.ts.map +0 -1
- package/dist/plugins/jwt/client.d.ts +0 -6
- package/dist/plugins/jwt/client.d.ts.map +0 -1
- package/dist/plugins/jwt/index.d.ts.map +0 -1
- package/dist/plugins/jwt/schema.d.ts +0 -37
- package/dist/plugins/jwt/schema.d.ts.map +0 -1
- package/dist/plugins/jwt/utils.d.ts +0 -11
- package/dist/plugins/jwt/utils.d.ts.map +0 -1
- package/dist/plugins/magic-link/client.d.ts +0 -6
- package/dist/plugins/magic-link/client.d.ts.map +0 -1
- package/dist/plugins/magic-link/index.d.ts.map +0 -1
- package/dist/plugins/multi-session/client.d.ts +0 -10
- package/dist/plugins/multi-session/client.d.ts.map +0 -1
- package/dist/plugins/multi-session/index.d.ts.map +0 -1
- package/dist/plugins/oauth-proxy/index.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/authorize.d.ts +0 -4
- package/dist/plugins/oidc-provider/authorize.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/client.d.ts +0 -6
- package/dist/plugins/oidc-provider/client.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/index.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/schema.d.ts +0 -105
- package/dist/plugins/oidc-provider/schema.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/types.d.ts +0 -496
- package/dist/plugins/oidc-provider/types.d.ts.map +0 -1
- package/dist/plugins/oidc-provider/ui.d.ts +0 -9
- package/dist/plugins/oidc-provider/ui.d.ts.map +0 -1
- package/dist/plugins/one-tap/client.d.ts +0 -82
- package/dist/plugins/one-tap/client.d.ts.map +0 -1
- package/dist/plugins/one-tap/index.d.ts.map +0 -1
- package/dist/plugins/open-api/generator.d.ts +0 -101
- package/dist/plugins/open-api/generator.d.ts.map +0 -1
- package/dist/plugins/open-api/index.d.ts.map +0 -1
- package/dist/plugins/open-api/logo.d.ts +0 -2
- package/dist/plugins/open-api/logo.d.ts.map +0 -1
- package/dist/plugins/organization/access/index.d.ts +0 -2
- package/dist/plugins/organization/access/index.d.ts.map +0 -1
- package/dist/plugins/organization/access/statement.d.ts +0 -180
- package/dist/plugins/organization/access/statement.d.ts.map +0 -1
- package/dist/plugins/organization/adapter.d.ts +0 -291
- package/dist/plugins/organization/adapter.d.ts.map +0 -1
- package/dist/plugins/organization/call.d.ts +0 -41
- package/dist/plugins/organization/call.d.ts.map +0 -1
- package/dist/plugins/organization/client.d.ts +0 -334
- package/dist/plugins/organization/client.d.ts.map +0 -1
- package/dist/plugins/organization/error-codes.d.ts +0 -31
- package/dist/plugins/organization/error-codes.d.ts.map +0 -1
- package/dist/plugins/organization/has-permission.d.ts +0 -9
- package/dist/plugins/organization/has-permission.d.ts.map +0 -1
- package/dist/plugins/organization/index.d.ts.map +0 -1
- package/dist/plugins/organization/organization.d.ts.map +0 -1
- package/dist/plugins/organization/routes/crud-invites.d.ts +0 -2382
- package/dist/plugins/organization/routes/crud-invites.d.ts.map +0 -1
- package/dist/plugins/organization/routes/crud-members.d.ts +0 -578
- package/dist/plugins/organization/routes/crud-members.d.ts.map +0 -1
- package/dist/plugins/organization/routes/crud-org.d.ts +0 -793
- package/dist/plugins/organization/routes/crud-org.d.ts.map +0 -1
- package/dist/plugins/organization/routes/crud-team.d.ts +0 -348
- package/dist/plugins/organization/routes/crud-team.d.ts.map +0 -1
- package/dist/plugins/organization/schema.d.ts +0 -159
- package/dist/plugins/organization/schema.d.ts.map +0 -1
- package/dist/plugins/passkey/client.d.ts +0 -140
- package/dist/plugins/passkey/client.d.ts.map +0 -1
- package/dist/plugins/passkey/index.d.ts.map +0 -1
- package/dist/plugins/phone-number/client.d.ts +0 -10
- package/dist/plugins/phone-number/client.d.ts.map +0 -1
- package/dist/plugins/phone-number/index.d.ts.map +0 -1
- package/dist/plugins/sso/client.d.ts +0 -6
- package/dist/plugins/sso/client.d.ts.map +0 -1
- package/dist/plugins/sso/index.d.ts.map +0 -1
- package/dist/plugins/two-factor/backup-codes/index.d.ts +0 -348
- package/dist/plugins/two-factor/backup-codes/index.d.ts.map +0 -1
- package/dist/plugins/two-factor/client.d.ts +0 -29
- package/dist/plugins/two-factor/client.d.ts.map +0 -1
- package/dist/plugins/two-factor/constant.d.ts +0 -3
- package/dist/plugins/two-factor/constant.d.ts.map +0 -1
- package/dist/plugins/two-factor/error-code.d.ts +0 -9
- package/dist/plugins/two-factor/error-code.d.ts.map +0 -1
- package/dist/plugins/two-factor/index.d.ts.map +0 -1
- package/dist/plugins/two-factor/otp/index.d.ts +0 -352
- package/dist/plugins/two-factor/otp/index.d.ts.map +0 -1
- package/dist/plugins/two-factor/schema.d.ts +0 -36
- package/dist/plugins/two-factor/schema.d.ts.map +0 -1
- package/dist/plugins/two-factor/totp/index.d.ts +0 -367
- package/dist/plugins/two-factor/totp/index.d.ts.map +0 -1
- package/dist/plugins/two-factor/types.d.ts +0 -52
- package/dist/plugins/two-factor/types.d.ts.map +0 -1
- package/dist/plugins/two-factor/verify-middleware.d.ts +0 -76
- package/dist/plugins/two-factor/verify-middleware.d.ts.map +0 -1
- package/dist/plugins/username/client.d.ts +0 -6
- package/dist/plugins/username/client.d.ts.map +0 -1
- package/dist/plugins/username/index.d.ts.map +0 -1
- package/dist/plugins/username/schema.d.ts +0 -21
- package/dist/plugins/username/schema.d.ts.map +0 -1
- package/dist/social-providers/apple.d.ts +0 -93
- package/dist/social-providers/apple.d.ts.map +0 -1
- package/dist/social-providers/discord.d.ts +0 -101
- package/dist/social-providers/discord.d.ts.map +0 -1
- package/dist/social-providers/dropbox.d.ts +0 -44
- package/dist/social-providers/dropbox.d.ts.map +0 -1
- package/dist/social-providers/facebook.d.ts +0 -52
- package/dist/social-providers/facebook.d.ts.map +0 -1
- package/dist/social-providers/github.d.ts +0 -77
- package/dist/social-providers/github.d.ts.map +0 -1
- package/dist/social-providers/gitlab.d.ts +0 -76
- package/dist/social-providers/gitlab.d.ts.map +0 -1
- package/dist/social-providers/google.d.ts +0 -62
- package/dist/social-providers/google.d.ts.map +0 -1
- package/dist/social-providers/index.d.ts.map +0 -1
- package/dist/social-providers/linkedin.d.ts +0 -55
- package/dist/social-providers/linkedin.d.ts.map +0 -1
- package/dist/social-providers/microsoft-entra-id.d.ts +0 -56
- package/dist/social-providers/microsoft-entra-id.d.ts.map +0 -1
- package/dist/social-providers/reddit.d.ts +0 -40
- package/dist/social-providers/reddit.d.ts.map +0 -1
- package/dist/social-providers/roblox.d.ts +0 -48
- package/dist/social-providers/roblox.d.ts.map +0 -1
- package/dist/social-providers/spotify.d.ts +0 -39
- package/dist/social-providers/spotify.d.ts.map +0 -1
- package/dist/social-providers/tiktok.d.ts +0 -145
- package/dist/social-providers/tiktok.d.ts.map +0 -1
- package/dist/social-providers/twitch.d.ts +0 -50
- package/dist/social-providers/twitch.d.ts.map +0 -1
- package/dist/social-providers/twitter.d.ts +0 -119
- package/dist/social-providers/twitter.d.ts.map +0 -1
- package/dist/social-providers/vk.d.ts +0 -59
- package/dist/social-providers/vk.d.ts.map +0 -1
- package/dist/tsconfig.declarations.tsbuildinfo +0 -1
- package/dist/types/adapter.d.ts +0 -119
- package/dist/types/adapter.d.ts.map +0 -1
- package/dist/types/api.d.ts +0 -28
- package/dist/types/api.d.ts.map +0 -1
- package/dist/types/context.d.ts +0 -13
- package/dist/types/context.d.ts.map +0 -1
- package/dist/types/helper.d.ts +0 -32
- package/dist/types/helper.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/models.d.ts +0 -35
- package/dist/types/models.d.ts.map +0 -1
- package/dist/types/options.d.ts +0 -804
- package/dist/types/options.d.ts.map +0 -1
- package/dist/types/plugins.d.ts +0 -120
- package/dist/types/plugins.d.ts.map +0 -1
- package/dist/utils/boolean.d.ts +0 -2
- package/dist/utils/boolean.d.ts.map +0 -1
- package/dist/utils/callback-url.d.ts +0 -7
- package/dist/utils/callback-url.d.ts.map +0 -1
- package/dist/utils/clone.d.ts +0 -2
- package/dist/utils/clone.d.ts.map +0 -1
- package/dist/utils/constants.d.ts +0 -2
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/date.d.ts +0 -2
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/env.d.ts +0 -10
- package/dist/utils/env.d.ts.map +0 -1
- package/dist/utils/get-request-ip.d.ts +0 -3
- package/dist/utils/get-request-ip.d.ts.map +0 -1
- package/dist/utils/hide-metadata.d.ts +0 -4
- package/dist/utils/hide-metadata.d.ts.map +0 -1
- package/dist/utils/id.d.ts +0 -2
- package/dist/utils/id.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -7
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/json.d.ts.map +0 -1
- package/dist/utils/logger.d.ts +0 -15
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/merger.d.ts +0 -2
- package/dist/utils/merger.d.ts.map +0 -1
- package/dist/utils/middleware-response.d.ts +0 -9
- package/dist/utils/middleware-response.d.ts.map +0 -1
- package/dist/utils/misc.d.ts +0 -2
- package/dist/utils/misc.d.ts.map +0 -1
- package/dist/utils/password.d.ts +0 -7
- package/dist/utils/password.d.ts.map +0 -1
- package/dist/utils/plugin-helper.d.ts +0 -6
- package/dist/utils/plugin-helper.d.ts.map +0 -1
- package/dist/utils/shim.d.ts +0 -4
- package/dist/utils/shim.d.ts.map +0 -1
- package/dist/utils/time.d.ts +0 -29
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/url.d.ts +0 -6
- package/dist/utils/url.d.ts.map +0 -1
- package/dist/utils/wildcard.d.ts +0 -46
- package/dist/utils/wildcard.d.ts.map +0 -1
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BaQjPalT.cjs';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.cjs';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CJEKfv4g.cjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface DB {
|
|
3
11
|
[key: string]: any;
|
|
4
12
|
}
|
|
5
|
-
|
|
13
|
+
interface DrizzleAdapterConfig {
|
|
6
14
|
/**
|
|
7
15
|
* The schema object that defines the tables and fields
|
|
8
16
|
*/
|
|
@@ -18,7 +26,7 @@ export interface DrizzleAdapterConfig {
|
|
|
18
26
|
*/
|
|
19
27
|
usePlural?: boolean;
|
|
20
28
|
}
|
|
21
|
-
|
|
29
|
+
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => {
|
|
22
30
|
id: string;
|
|
23
31
|
create<T extends Record<string, any>, R = T>(data: {
|
|
24
32
|
model: string;
|
|
@@ -64,4 +72,5 @@ export declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (
|
|
|
64
72
|
}): Promise<any>;
|
|
65
73
|
options: DrizzleAdapterConfig;
|
|
66
74
|
};
|
|
67
|
-
|
|
75
|
+
|
|
76
|
+
export { type DB, type DrizzleAdapterConfig, drizzleAdapter };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.Y5QL3A6K.mjs';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.mjs';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.rjQjxKRY.mjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface DB {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface DrizzleAdapterConfig {
|
|
14
|
+
/**
|
|
15
|
+
* The schema object that defines the tables and fields
|
|
16
|
+
*/
|
|
17
|
+
schema?: Record<string, any>;
|
|
18
|
+
/**
|
|
19
|
+
* The database provider
|
|
20
|
+
*/
|
|
21
|
+
provider: "pg" | "mysql" | "sqlite";
|
|
22
|
+
/**
|
|
23
|
+
* If the table names in the schema are plural
|
|
24
|
+
* set this to true. For example, if the schema
|
|
25
|
+
* has an object with a key "users" instead of "user"
|
|
26
|
+
*/
|
|
27
|
+
usePlural?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => {
|
|
30
|
+
id: string;
|
|
31
|
+
create<T extends Record<string, any>, R = T>(data: {
|
|
32
|
+
model: string;
|
|
33
|
+
data: T;
|
|
34
|
+
select?: string[];
|
|
35
|
+
}): Promise<any>;
|
|
36
|
+
findOne<T>(data: {
|
|
37
|
+
model: string;
|
|
38
|
+
where: Where[];
|
|
39
|
+
select?: string[];
|
|
40
|
+
}): Promise<any>;
|
|
41
|
+
findMany<T>(data: {
|
|
42
|
+
model: string;
|
|
43
|
+
where?: Where[];
|
|
44
|
+
limit?: number;
|
|
45
|
+
sortBy?: {
|
|
46
|
+
field: string;
|
|
47
|
+
direction: "asc" | "desc";
|
|
48
|
+
};
|
|
49
|
+
offset?: number;
|
|
50
|
+
}): Promise<any[]>;
|
|
51
|
+
count(data: {
|
|
52
|
+
model: string;
|
|
53
|
+
where?: Where[];
|
|
54
|
+
}): Promise<any>;
|
|
55
|
+
update<T>(data: {
|
|
56
|
+
model: string;
|
|
57
|
+
where: Where[];
|
|
58
|
+
update: Record<string, any>;
|
|
59
|
+
}): Promise<any>;
|
|
60
|
+
updateMany(data: {
|
|
61
|
+
model: string;
|
|
62
|
+
where: Where[];
|
|
63
|
+
update: Record<string, any>;
|
|
64
|
+
}): Promise<any>;
|
|
65
|
+
delete<T>(data: {
|
|
66
|
+
model: string;
|
|
67
|
+
where: Where[];
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
deleteMany(data: {
|
|
70
|
+
model: string;
|
|
71
|
+
where: Where[];
|
|
72
|
+
}): Promise<any>;
|
|
73
|
+
options: DrizzleAdapterConfig;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export { type DB, type DrizzleAdapterConfig, drizzleAdapter };
|
|
@@ -1,2 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.yeQRREpo.js';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CLzgLt9r.js';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface DB {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
interface DrizzleAdapterConfig {
|
|
14
|
+
/**
|
|
15
|
+
* The schema object that defines the tables and fields
|
|
16
|
+
*/
|
|
17
|
+
schema?: Record<string, any>;
|
|
18
|
+
/**
|
|
19
|
+
* The database provider
|
|
20
|
+
*/
|
|
21
|
+
provider: "pg" | "mysql" | "sqlite";
|
|
22
|
+
/**
|
|
23
|
+
* If the table names in the schema are plural
|
|
24
|
+
* set this to true. For example, if the schema
|
|
25
|
+
* has an object with a key "users" instead of "user"
|
|
26
|
+
*/
|
|
27
|
+
usePlural?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare const drizzleAdapter: (db: DB, config: DrizzleAdapterConfig) => (options: BetterAuthOptions) => {
|
|
30
|
+
id: string;
|
|
31
|
+
create<T extends Record<string, any>, R = T>(data: {
|
|
32
|
+
model: string;
|
|
33
|
+
data: T;
|
|
34
|
+
select?: string[];
|
|
35
|
+
}): Promise<any>;
|
|
36
|
+
findOne<T>(data: {
|
|
37
|
+
model: string;
|
|
38
|
+
where: Where[];
|
|
39
|
+
select?: string[];
|
|
40
|
+
}): Promise<any>;
|
|
41
|
+
findMany<T>(data: {
|
|
42
|
+
model: string;
|
|
43
|
+
where?: Where[];
|
|
44
|
+
limit?: number;
|
|
45
|
+
sortBy?: {
|
|
46
|
+
field: string;
|
|
47
|
+
direction: "asc" | "desc";
|
|
48
|
+
};
|
|
49
|
+
offset?: number;
|
|
50
|
+
}): Promise<any[]>;
|
|
51
|
+
count(data: {
|
|
52
|
+
model: string;
|
|
53
|
+
where?: Where[];
|
|
54
|
+
}): Promise<any>;
|
|
55
|
+
update<T>(data: {
|
|
56
|
+
model: string;
|
|
57
|
+
where: Where[];
|
|
58
|
+
update: Record<string, any>;
|
|
59
|
+
}): Promise<any>;
|
|
60
|
+
updateMany(data: {
|
|
61
|
+
model: string;
|
|
62
|
+
where: Where[];
|
|
63
|
+
update: Record<string, any>;
|
|
64
|
+
}): Promise<any>;
|
|
65
|
+
delete<T>(data: {
|
|
66
|
+
model: string;
|
|
67
|
+
where: Where[];
|
|
68
|
+
}): Promise<void>;
|
|
69
|
+
deleteMany(data: {
|
|
70
|
+
model: string;
|
|
71
|
+
where: Where[];
|
|
72
|
+
}): Promise<any>;
|
|
73
|
+
options: DrizzleAdapterConfig;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export { type DB, type DrizzleAdapterConfig, drizzleAdapter };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Kysely } from 'kysely';
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.BaQjPalT.cjs';
|
|
3
|
+
import '../../shared/better-auth.DFk-nDjL.cjs';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CJEKfv4g.cjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
11
|
+
kysely: Kysely<any> | null;
|
|
12
|
+
databaseType: KyselyDatabaseType | null;
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
interface KyselyAdapterConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Database type.
|
|
18
|
+
*/
|
|
19
|
+
type?: KyselyDatabaseType;
|
|
20
|
+
}
|
|
21
|
+
declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConfig) => (opts: BetterAuthOptions) => {
|
|
22
|
+
id: string;
|
|
23
|
+
create<T extends Record<string, any>, R = T>(data: {
|
|
24
|
+
model: string;
|
|
25
|
+
data: T;
|
|
26
|
+
select?: string[];
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
findOne<T>(data: {
|
|
29
|
+
model: string;
|
|
30
|
+
where: Where[];
|
|
31
|
+
select?: string[];
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
findMany<T>(data: {
|
|
34
|
+
model: string;
|
|
35
|
+
where?: Where[];
|
|
36
|
+
limit?: number;
|
|
37
|
+
sortBy?: {
|
|
38
|
+
field: string;
|
|
39
|
+
direction: "asc" | "desc";
|
|
40
|
+
};
|
|
41
|
+
offset?: number;
|
|
42
|
+
}): Promise<any[]>;
|
|
43
|
+
update<T>(data: {
|
|
44
|
+
model: string;
|
|
45
|
+
where: Where[];
|
|
46
|
+
update: Record<string, any>;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
updateMany(data: {
|
|
49
|
+
model: string;
|
|
50
|
+
where: Where[];
|
|
51
|
+
update: Record<string, any>;
|
|
52
|
+
}): Promise<number>;
|
|
53
|
+
count(data: {
|
|
54
|
+
model: string;
|
|
55
|
+
where?: Where[];
|
|
56
|
+
}): Promise<number>;
|
|
57
|
+
delete<T>(data: {
|
|
58
|
+
model: string;
|
|
59
|
+
where: Where[];
|
|
60
|
+
}): Promise<void>;
|
|
61
|
+
deleteMany(data: {
|
|
62
|
+
model: string;
|
|
63
|
+
where: Where[];
|
|
64
|
+
}): Promise<number>;
|
|
65
|
+
options: KyselyAdapterConfig | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { KyselyDatabaseType, createKyselyAdapter, kyselyAdapter };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Kysely } from 'kysely';
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.Y5QL3A6K.mjs';
|
|
3
|
+
import '../../shared/better-auth.DFk-nDjL.mjs';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.rjQjxKRY.mjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
11
|
+
kysely: Kysely<any> | null;
|
|
12
|
+
databaseType: KyselyDatabaseType | null;
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
interface KyselyAdapterConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Database type.
|
|
18
|
+
*/
|
|
19
|
+
type?: KyselyDatabaseType;
|
|
20
|
+
}
|
|
21
|
+
declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConfig) => (opts: BetterAuthOptions) => {
|
|
22
|
+
id: string;
|
|
23
|
+
create<T extends Record<string, any>, R = T>(data: {
|
|
24
|
+
model: string;
|
|
25
|
+
data: T;
|
|
26
|
+
select?: string[];
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
findOne<T>(data: {
|
|
29
|
+
model: string;
|
|
30
|
+
where: Where[];
|
|
31
|
+
select?: string[];
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
findMany<T>(data: {
|
|
34
|
+
model: string;
|
|
35
|
+
where?: Where[];
|
|
36
|
+
limit?: number;
|
|
37
|
+
sortBy?: {
|
|
38
|
+
field: string;
|
|
39
|
+
direction: "asc" | "desc";
|
|
40
|
+
};
|
|
41
|
+
offset?: number;
|
|
42
|
+
}): Promise<any[]>;
|
|
43
|
+
update<T>(data: {
|
|
44
|
+
model: string;
|
|
45
|
+
where: Where[];
|
|
46
|
+
update: Record<string, any>;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
updateMany(data: {
|
|
49
|
+
model: string;
|
|
50
|
+
where: Where[];
|
|
51
|
+
update: Record<string, any>;
|
|
52
|
+
}): Promise<number>;
|
|
53
|
+
count(data: {
|
|
54
|
+
model: string;
|
|
55
|
+
where?: Where[];
|
|
56
|
+
}): Promise<number>;
|
|
57
|
+
delete<T>(data: {
|
|
58
|
+
model: string;
|
|
59
|
+
where: Where[];
|
|
60
|
+
}): Promise<void>;
|
|
61
|
+
deleteMany(data: {
|
|
62
|
+
model: string;
|
|
63
|
+
where: Where[];
|
|
64
|
+
}): Promise<number>;
|
|
65
|
+
options: KyselyAdapterConfig | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { KyselyDatabaseType, createKyselyAdapter, kyselyAdapter };
|
|
@@ -1,4 +1,68 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Kysely } from 'kysely';
|
|
2
|
+
import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.yeQRREpo.js';
|
|
3
|
+
import '../../shared/better-auth.DFk-nDjL.js';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CLzgLt9r.js';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{
|
|
11
|
+
kysely: Kysely<any> | null;
|
|
12
|
+
databaseType: KyselyDatabaseType | null;
|
|
13
|
+
}>;
|
|
14
|
+
|
|
15
|
+
interface KyselyAdapterConfig {
|
|
16
|
+
/**
|
|
17
|
+
* Database type.
|
|
18
|
+
*/
|
|
19
|
+
type?: KyselyDatabaseType;
|
|
20
|
+
}
|
|
21
|
+
declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConfig) => (opts: BetterAuthOptions) => {
|
|
22
|
+
id: string;
|
|
23
|
+
create<T extends Record<string, any>, R = T>(data: {
|
|
24
|
+
model: string;
|
|
25
|
+
data: T;
|
|
26
|
+
select?: string[];
|
|
27
|
+
}): Promise<any>;
|
|
28
|
+
findOne<T>(data: {
|
|
29
|
+
model: string;
|
|
30
|
+
where: Where[];
|
|
31
|
+
select?: string[];
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
findMany<T>(data: {
|
|
34
|
+
model: string;
|
|
35
|
+
where?: Where[];
|
|
36
|
+
limit?: number;
|
|
37
|
+
sortBy?: {
|
|
38
|
+
field: string;
|
|
39
|
+
direction: "asc" | "desc";
|
|
40
|
+
};
|
|
41
|
+
offset?: number;
|
|
42
|
+
}): Promise<any[]>;
|
|
43
|
+
update<T>(data: {
|
|
44
|
+
model: string;
|
|
45
|
+
where: Where[];
|
|
46
|
+
update: Record<string, any>;
|
|
47
|
+
}): Promise<any>;
|
|
48
|
+
updateMany(data: {
|
|
49
|
+
model: string;
|
|
50
|
+
where: Where[];
|
|
51
|
+
update: Record<string, any>;
|
|
52
|
+
}): Promise<number>;
|
|
53
|
+
count(data: {
|
|
54
|
+
model: string;
|
|
55
|
+
where?: Where[];
|
|
56
|
+
}): Promise<number>;
|
|
57
|
+
delete<T>(data: {
|
|
58
|
+
model: string;
|
|
59
|
+
where: Where[];
|
|
60
|
+
}): Promise<void>;
|
|
61
|
+
deleteMany(data: {
|
|
62
|
+
model: string;
|
|
63
|
+
where: Where[];
|
|
64
|
+
}): Promise<number>;
|
|
65
|
+
options: KyselyAdapterConfig | undefined;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { KyselyDatabaseType, createKyselyAdapter, kyselyAdapter };
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BaQjPalT.cjs';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.cjs';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CJEKfv4g.cjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface MemoryDB {
|
|
3
11
|
[key: string]: any[];
|
|
4
12
|
}
|
|
5
|
-
|
|
13
|
+
declare const memoryAdapter: (db: MemoryDB) => (options: BetterAuthOptions) => {
|
|
6
14
|
id: string;
|
|
7
15
|
create: <T extends Record<string, any>, R = T>({ model, data }: {
|
|
8
16
|
model: string;
|
|
@@ -47,4 +55,5 @@ export declare const memoryAdapter: (db: MemoryDB) => (options: BetterAuthOption
|
|
|
47
55
|
update: Record<string, any>;
|
|
48
56
|
}): any;
|
|
49
57
|
};
|
|
50
|
-
|
|
58
|
+
|
|
59
|
+
export { type MemoryDB, memoryAdapter };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.Y5QL3A6K.mjs';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.mjs';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.rjQjxKRY.mjs';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface MemoryDB {
|
|
11
|
+
[key: string]: any[];
|
|
12
|
+
}
|
|
13
|
+
declare const memoryAdapter: (db: MemoryDB) => (options: BetterAuthOptions) => {
|
|
14
|
+
id: string;
|
|
15
|
+
create: <T extends Record<string, any>, R = T>({ model, data }: {
|
|
16
|
+
model: string;
|
|
17
|
+
data: T;
|
|
18
|
+
select?: string[];
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
findOne: <T>({ model, where, select }: {
|
|
21
|
+
model: string;
|
|
22
|
+
where: Where[];
|
|
23
|
+
select?: string[];
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
findMany: <T>({ model, where, sortBy, limit, offset }: {
|
|
26
|
+
model: string;
|
|
27
|
+
where?: Where[];
|
|
28
|
+
limit?: number;
|
|
29
|
+
sortBy?: {
|
|
30
|
+
field: string;
|
|
31
|
+
direction: "asc" | "desc";
|
|
32
|
+
};
|
|
33
|
+
offset?: number;
|
|
34
|
+
}) => Promise<any[]>;
|
|
35
|
+
count: ({ model }: {
|
|
36
|
+
model: string;
|
|
37
|
+
where?: Where[];
|
|
38
|
+
}) => Promise<number>;
|
|
39
|
+
update: <T>({ model, where, update }: {
|
|
40
|
+
model: string;
|
|
41
|
+
where: Where[];
|
|
42
|
+
update: Record<string, any>;
|
|
43
|
+
}) => Promise<any>;
|
|
44
|
+
delete: <T>({ model, where }: {
|
|
45
|
+
model: string;
|
|
46
|
+
where: Where[];
|
|
47
|
+
}) => Promise<void>;
|
|
48
|
+
deleteMany: ({ model, where }: {
|
|
49
|
+
model: string;
|
|
50
|
+
where: Where[];
|
|
51
|
+
}) => Promise<number>;
|
|
52
|
+
updateMany(data: {
|
|
53
|
+
model: string;
|
|
54
|
+
where: Where[];
|
|
55
|
+
update: Record<string, any>;
|
|
56
|
+
}): any;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { type MemoryDB, memoryAdapter };
|
|
@@ -1,2 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.yeQRREpo.js';
|
|
2
|
+
import '../../shared/better-auth.DFk-nDjL.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import 'kysely';
|
|
5
|
+
import 'better-call';
|
|
6
|
+
import '../../shared/better-auth.CLzgLt9r.js';
|
|
7
|
+
import 'jose';
|
|
8
|
+
import 'better-sqlite3';
|
|
9
|
+
|
|
10
|
+
interface MemoryDB {
|
|
11
|
+
[key: string]: any[];
|
|
12
|
+
}
|
|
13
|
+
declare const memoryAdapter: (db: MemoryDB) => (options: BetterAuthOptions) => {
|
|
14
|
+
id: string;
|
|
15
|
+
create: <T extends Record<string, any>, R = T>({ model, data }: {
|
|
16
|
+
model: string;
|
|
17
|
+
data: T;
|
|
18
|
+
select?: string[];
|
|
19
|
+
}) => Promise<any>;
|
|
20
|
+
findOne: <T>({ model, where, select }: {
|
|
21
|
+
model: string;
|
|
22
|
+
where: Where[];
|
|
23
|
+
select?: string[];
|
|
24
|
+
}) => Promise<any>;
|
|
25
|
+
findMany: <T>({ model, where, sortBy, limit, offset }: {
|
|
26
|
+
model: string;
|
|
27
|
+
where?: Where[];
|
|
28
|
+
limit?: number;
|
|
29
|
+
sortBy?: {
|
|
30
|
+
field: string;
|
|
31
|
+
direction: "asc" | "desc";
|
|
32
|
+
};
|
|
33
|
+
offset?: number;
|
|
34
|
+
}) => Promise<any[]>;
|
|
35
|
+
count: ({ model }: {
|
|
36
|
+
model: string;
|
|
37
|
+
where?: Where[];
|
|
38
|
+
}) => Promise<number>;
|
|
39
|
+
update: <T>({ model, where, update }: {
|
|
40
|
+
model: string;
|
|
41
|
+
where: Where[];
|
|
42
|
+
update: Record<string, any>;
|
|
43
|
+
}) => Promise<any>;
|
|
44
|
+
delete: <T>({ model, where }: {
|
|
45
|
+
model: string;
|
|
46
|
+
where: Where[];
|
|
47
|
+
}) => Promise<void>;
|
|
48
|
+
deleteMany: ({ model, where }: {
|
|
49
|
+
model: string;
|
|
50
|
+
where: Where[];
|
|
51
|
+
}) => Promise<number>;
|
|
52
|
+
updateMany(data: {
|
|
53
|
+
model: string;
|
|
54
|
+
where: Where[];
|
|
55
|
+
update: Record<string, any>;
|
|
56
|
+
}): any;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { type MemoryDB, memoryAdapter };
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Db } from 'mongodb';
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.BaQjPalT.cjs';
|
|
3
|
+
import '../../shared/better-auth.DFk-nDjL.cjs';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'kysely';
|
|
6
|
+
import 'better-call';
|
|
7
|
+
import '../../shared/better-auth.CJEKfv4g.cjs';
|
|
8
|
+
import 'jose';
|
|
9
|
+
import 'better-sqlite3';
|
|
10
|
+
|
|
11
|
+
declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) => {
|
|
4
12
|
id: string;
|
|
5
13
|
create<T extends Record<string, any>, R = T>(data: {
|
|
6
14
|
model: string;
|
|
@@ -45,4 +53,5 @@ export declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) =>
|
|
|
45
53
|
where: Where[];
|
|
46
54
|
}): Promise<number>;
|
|
47
55
|
};
|
|
48
|
-
|
|
56
|
+
|
|
57
|
+
export { mongodbAdapter };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Db } from 'mongodb';
|
|
2
|
+
import { f as BetterAuthOptions, W as Where } from '../../shared/better-auth.Y5QL3A6K.mjs';
|
|
3
|
+
import '../../shared/better-auth.DFk-nDjL.mjs';
|
|
4
|
+
import 'zod';
|
|
5
|
+
import 'kysely';
|
|
6
|
+
import 'better-call';
|
|
7
|
+
import '../../shared/better-auth.rjQjxKRY.mjs';
|
|
8
|
+
import 'jose';
|
|
9
|
+
import 'better-sqlite3';
|
|
10
|
+
|
|
11
|
+
declare const mongodbAdapter: (db: Db) => (options: BetterAuthOptions) => {
|
|
11
12
|
id: string;
|
|
12
13
|
create<T extends Record<string, any>, R = T>(data: {
|
|
13
14
|
model: string;
|
|
@@ -29,6 +30,10 @@ export declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConf
|
|
|
29
30
|
};
|
|
30
31
|
offset?: number;
|
|
31
32
|
}): Promise<any[]>;
|
|
33
|
+
count(data: {
|
|
34
|
+
model: string;
|
|
35
|
+
where?: Where[];
|
|
36
|
+
}): Promise<number>;
|
|
32
37
|
update<T>(data: {
|
|
33
38
|
model: string;
|
|
34
39
|
where: Where[];
|
|
@@ -39,19 +44,14 @@ export declare const kyselyAdapter: (db: Kysely<any>, config?: KyselyAdapterConf
|
|
|
39
44
|
where: Where[];
|
|
40
45
|
update: Record<string, any>;
|
|
41
46
|
}): Promise<number>;
|
|
42
|
-
count(data: {
|
|
43
|
-
model: string;
|
|
44
|
-
where?: Where[];
|
|
45
|
-
}): Promise<number>;
|
|
46
47
|
delete<T>(data: {
|
|
47
48
|
model: string;
|
|
48
49
|
where: Where[];
|
|
49
|
-
}): Promise<
|
|
50
|
+
}): Promise<any>;
|
|
50
51
|
deleteMany(data: {
|
|
51
52
|
model: string;
|
|
52
53
|
where: Where[];
|
|
53
54
|
}): Promise<number>;
|
|
54
|
-
options: KyselyAdapterConfig | undefined;
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
|
|
57
|
+
export { mongodbAdapter };
|