better-auth 1.2.0-beta.9 → 1.2.1-beta.1
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 +67 -0
- package/dist/adapters/drizzle-adapter/drizzle-adapter.d.ts.map +1 -0
- package/dist/adapters/drizzle-adapter/index.cjs +285 -0
- package/dist/adapters/drizzle-adapter/index.d.ts +2 -0
- package/dist/adapters/drizzle-adapter/index.d.ts.map +1 -0
- package/dist/adapters/drizzle-adapter/index.mjs +283 -0
- package/dist/adapters/kysely-adapter/dialect.d.ts +8 -0
- package/dist/adapters/kysely-adapter/dialect.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/index.cjs +29 -0
- package/dist/adapters/kysely-adapter/index.d.ts +4 -0
- package/dist/adapters/kysely-adapter/index.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/index.mjs +22 -0
- package/dist/adapters/kysely-adapter/kysely-adapter.d.ts +57 -0
- package/dist/adapters/kysely-adapter/kysely-adapter.d.ts.map +1 -0
- package/dist/adapters/kysely-adapter/types.d.ts +2 -0
- package/dist/adapters/kysely-adapter/types.d.ts.map +1 -0
- package/dist/adapters/memory-adapter/index.cjs +28 -0
- package/dist/adapters/memory-adapter/index.d.ts +2 -0
- package/dist/adapters/memory-adapter/index.d.ts.map +1 -0
- package/dist/adapters/memory-adapter/index.mjs +22 -0
- package/dist/adapters/memory-adapter/memory-adapter.d.ts +50 -0
- package/dist/adapters/memory-adapter/memory-adapter.d.ts.map +1 -0
- package/dist/adapters/mongodb-adapter/index.cjs +282 -0
- package/dist/adapters/mongodb-adapter/index.d.ts +2 -0
- package/dist/adapters/mongodb-adapter/index.d.ts.map +1 -0
- package/dist/adapters/mongodb-adapter/index.mjs +280 -0
- package/dist/adapters/mongodb-adapter/mongodb-adapter.d.ts +48 -0
- package/dist/adapters/mongodb-adapter/mongodb-adapter.d.ts.map +1 -0
- package/dist/adapters/prisma-adapter/index.cjs +254 -0
- package/dist/adapters/prisma-adapter/index.d.ts +2 -0
- package/dist/adapters/prisma-adapter/index.d.ts.map +1 -0
- package/dist/adapters/prisma-adapter/index.mjs +252 -0
- package/dist/adapters/prisma-adapter/prisma-adapter.d.ts +57 -0
- package/dist/adapters/prisma-adapter/prisma-adapter.d.ts.map +1 -0
- package/dist/adapters/test.cjs +18 -6
- package/dist/adapters/test.d.ts +4 -12
- package/dist/adapters/test.d.ts.map +1 -0
- package/dist/adapters/test.mjs +439 -0
- package/dist/adapters/utils.d.ts +3 -0
- package/dist/adapters/utils.d.ts.map +1 -0
- package/dist/api/call.d.ts +1143 -0
- package/dist/api/call.d.ts.map +1 -0
- package/dist/api/index.cjs +788 -0
- package/dist/api/index.d.ts +7145 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.mjs +745 -0
- package/dist/api/middlewares/index.d.ts +2 -0
- package/dist/api/middlewares/index.d.ts.map +1 -0
- package/dist/api/middlewares/origin-check.d.ts +24 -0
- package/dist/api/middlewares/origin-check.d.ts.map +1 -0
- package/dist/api/rate-limiter/index.d.ts +7 -0
- package/dist/api/rate-limiter/index.d.ts.map +1 -0
- package/dist/api/routes/account.d.ts +283 -0
- package/dist/api/routes/account.d.ts.map +1 -0
- package/dist/api/routes/callback.d.ts +84 -0
- package/dist/api/routes/callback.d.ts.map +1 -0
- package/dist/api/routes/email-verification.d.ts +205 -0
- package/dist/api/routes/email-verification.d.ts.map +1 -0
- package/dist/api/routes/error.d.ts +46 -0
- package/dist/api/routes/error.d.ts.map +1 -0
- package/dist/api/routes/forget-password.d.ts +221 -0
- package/dist/api/routes/forget-password.d.ts.map +1 -0
- package/dist/api/routes/index.d.ts +12 -0
- package/dist/api/routes/index.d.ts.map +1 -0
- package/dist/api/routes/ok.d.ts +55 -0
- package/dist/api/routes/ok.d.ts.map +1 -0
- package/dist/api/routes/session.d.ts +606 -0
- package/dist/api/routes/session.d.ts.map +1 -0
- package/dist/api/routes/sign-in.d.ts +329 -0
- package/dist/api/routes/sign-in.d.ts.map +1 -0
- package/dist/api/routes/sign-out.d.ts +55 -0
- package/dist/api/routes/sign-out.d.ts.map +1 -0
- package/dist/api/routes/sign-up.d.ts +768 -0
- package/dist/api/routes/sign-up.d.ts.map +1 -0
- package/dist/api/routes/update-user.d.ts +1160 -0
- package/dist/api/routes/update-user.d.ts.map +1 -0
- package/dist/api/to-auth-endpoints.d.ts +4 -0
- package/dist/api/to-auth-endpoints.d.ts.map +1 -0
- package/dist/auth.d.ts +3590 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/client/config.d.ts +74 -0
- package/dist/client/config.d.ts.map +1 -0
- package/dist/client/fetch-plugins.d.ts +8 -0
- package/dist/client/fetch-plugins.d.ts.map +1 -0
- package/dist/client/index.cjs +51 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.mjs +47 -0
- package/dist/client/parser.d.ts +13 -0
- package/dist/client/parser.d.ts.map +1 -0
- package/dist/client/path-to-object.d.ts +63 -0
- package/dist/client/path-to-object.d.ts.map +1 -0
- package/dist/client/plugins/index.cjs +569 -0
- package/dist/client/plugins/index.d.ts +21 -0
- package/dist/client/plugins/index.d.ts.map +1 -0
- package/dist/client/plugins/index.mjs +548 -0
- package/dist/client/plugins/infer-plugin.d.ts +12 -0
- package/dist/client/plugins/infer-plugin.d.ts.map +1 -0
- package/dist/client/proxy.d.ts +9 -0
- package/dist/client/proxy.d.ts.map +1 -0
- package/dist/client/query.d.ts +14 -0
- package/dist/client/query.d.ts.map +1 -0
- package/dist/client/react/index.cjs +65 -0
- package/dist/client/react/index.d.ts +113 -0
- package/dist/client/react/index.d.ts.map +1 -0
- package/dist/client/react/index.mjs +61 -0
- package/dist/client/react/react-store.d.ts +21 -0
- package/dist/client/react/react-store.d.ts.map +1 -0
- package/dist/client/session-atom.d.ts +16 -0
- package/dist/client/session-atom.d.ts.map +1 -0
- package/dist/client/solid/index.cjs +58 -0
- package/dist/client/solid/index.d.ts +106 -0
- package/dist/client/solid/index.d.ts.map +1 -0
- package/dist/client/solid/index.mjs +56 -0
- package/dist/client/solid/solid-store.d.ts +10 -0
- package/dist/client/solid/solid-store.d.ts.map +1 -0
- package/dist/client/svelte/index.cjs +42 -0
- package/dist/client/svelte/index.d.ts +111 -0
- package/dist/client/svelte/index.d.ts.map +1 -0
- package/dist/client/svelte/index.mjs +40 -0
- package/dist/client/test-plugin.d.ts +130 -0
- package/dist/client/test-plugin.d.ts.map +1 -0
- package/dist/client/types.d.ts +79 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/vanilla.d.ts +110 -0
- package/dist/client/vanilla.d.ts.map +1 -0
- package/dist/client/vue/index.cjs +87 -0
- package/dist/client/vue/index.d.ts +134 -0
- package/dist/client/vue/index.d.ts.map +1 -0
- package/dist/client/vue/index.mjs +85 -0
- package/dist/client/vue/vue-store.d.ts +5 -0
- package/dist/client/vue/vue-store.d.ts.map +1 -0
- package/dist/cookies/check-cookies.d.ts +5 -0
- package/dist/cookies/check-cookies.d.ts.map +1 -0
- package/dist/cookies/cookie-utils.d.ts +17 -0
- package/dist/cookies/cookie-utils.d.ts.map +1 -0
- package/dist/cookies/index.cjs +392 -0
- package/dist/cookies/index.d.ts +51 -0
- package/dist/cookies/index.d.ts.map +1 -0
- package/dist/cookies/index.mjs +381 -0
- package/dist/crypto/buffer.d.ts +5 -0
- package/dist/crypto/buffer.d.ts.map +1 -0
- package/dist/crypto/hash.d.ts +3 -0
- package/dist/crypto/hash.d.ts.map +1 -0
- package/dist/crypto/index.cjs +57 -0
- package/dist/crypto/index.d.ts +16 -0
- package/dist/crypto/index.d.ts.map +1 -0
- package/dist/crypto/index.mjs +48 -0
- package/dist/crypto/jwt.d.ts +2 -0
- package/dist/crypto/jwt.d.ts.map +1 -0
- package/dist/crypto/password.d.ts +6 -0
- package/dist/crypto/password.d.ts.map +1 -0
- package/dist/crypto/random.d.ts +2 -0
- package/dist/crypto/random.d.ts.map +1 -0
- package/dist/db/field.d.ts +148 -0
- package/dist/db/field.d.ts.map +1 -0
- package/dist/db/get-migration.d.ts +19 -0
- package/dist/db/get-migration.d.ts.map +1 -0
- package/dist/db/get-schema.d.ts +7 -0
- package/dist/db/get-schema.d.ts.map +1 -0
- package/dist/db/get-tables.d.ts +23 -0
- package/dist/db/get-tables.d.ts.map +1 -0
- package/dist/db/index.cjs +99 -0
- package/dist/db/index.d.ts +10 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.mjs +72 -0
- package/dist/db/internal-adapter.d.ts +219 -0
- package/dist/db/internal-adapter.d.ts.map +1 -0
- package/dist/db/schema.d.ts +216 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/to-zod.d.ts +4 -0
- package/dist/db/to-zod.d.ts.map +1 -0
- package/dist/db/utils.d.ts +6 -0
- package/dist/db/utils.d.ts.map +1 -0
- package/dist/db/with-hooks.d.ts +19 -0
- package/dist/db/with-hooks.d.ts.map +1 -0
- package/dist/error/codes.d.ts +26 -0
- package/dist/error/codes.d.ts.map +1 -0
- package/dist/error/index.d.ts +7 -0
- package/dist/error/index.d.ts.map +1 -0
- package/dist/index.cjs +95 -134
- package/dist/index.d.ts +7 -26
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +249 -0
- package/dist/init.d.ts +71 -0
- package/dist/init.d.ts.map +1 -0
- package/dist/integrations/next-js.cjs +101 -0
- package/dist/integrations/next-js.d.ts +24 -0
- package/dist/integrations/next-js.d.ts.map +1 -0
- package/dist/integrations/next-js.mjs +98 -0
- package/dist/integrations/node.cjs +23 -0
- package/dist/integrations/node.d.ts +7 -0
- package/dist/integrations/node.d.ts.map +1 -0
- package/dist/integrations/node.mjs +20 -0
- package/dist/integrations/solid-start.cjs +13 -0
- package/dist/integrations/solid-start.d.ts +11 -0
- package/dist/integrations/solid-start.d.ts.map +1 -0
- package/dist/integrations/solid-start.mjs +11 -0
- package/dist/integrations/svelte-kit.cjs +37 -0
- package/dist/integrations/svelte-kit.d.ts +20 -0
- package/dist/integrations/svelte-kit.d.ts.map +1 -0
- package/dist/integrations/svelte-kit.mjs +33 -0
- package/dist/oauth2/create-authorization-url.d.ts +14 -0
- package/dist/oauth2/create-authorization-url.d.ts.map +1 -0
- package/dist/oauth2/index.cjs +30 -0
- package/dist/oauth2/index.d.ts +6 -0
- package/dist/oauth2/index.d.ts.map +1 -0
- package/dist/oauth2/index.mjs +18 -0
- package/dist/oauth2/link-account.d.ts +40 -0
- package/dist/oauth2/link-account.d.ts.map +1 -0
- package/dist/oauth2/state.d.ts +20 -0
- package/dist/oauth2/state.d.ts.map +1 -0
- package/dist/oauth2/types.d.ts +112 -0
- package/dist/oauth2/types.d.ts.map +1 -0
- package/dist/oauth2/utils.d.ts +4 -0
- package/dist/oauth2/utils.d.ts.map +1 -0
- package/dist/oauth2/validate-authorization-code.d.ts +12 -0
- package/dist/oauth2/validate-authorization-code.d.ts.map +1 -0
- package/dist/plugins/access/access.d.ts +26 -0
- package/dist/plugins/access/access.d.ts.map +1 -0
- package/dist/plugins/access/index.cjs +72 -0
- package/dist/plugins/access/index.d.ts +3 -0
- package/dist/plugins/access/index.d.ts.map +1 -0
- package/dist/plugins/access/index.mjs +69 -0
- package/dist/plugins/access/types.d.ts +15 -0
- package/dist/plugins/access/types.d.ts.map +1 -0
- package/dist/plugins/additional-fields/client.d.ts +93 -0
- package/dist/plugins/additional-fields/client.d.ts.map +1 -0
- package/dist/plugins/admin/access/index.cjs +28 -0
- package/dist/plugins/admin/access/index.d.ts +2 -0
- package/dist/plugins/admin/access/index.d.ts.map +1 -0
- package/dist/plugins/admin/access/index.mjs +22 -0
- package/dist/plugins/admin/access/statement.d.ts +111 -0
- package/dist/plugins/admin/access/statement.d.ts.map +1 -0
- package/dist/plugins/admin/admin.d.ts +1390 -0
- package/dist/plugins/admin/admin.d.ts.map +1 -0
- package/dist/plugins/admin/call.d.ts +23 -0
- package/dist/plugins/admin/call.d.ts.map +1 -0
- package/dist/plugins/admin/client.d.ts +43 -0
- package/dist/plugins/admin/client.d.ts.map +1 -0
- package/dist/plugins/admin/error-codes.d.ts +14 -0
- package/dist/plugins/admin/error-codes.d.ts.map +1 -0
- package/dist/plugins/admin/has-permission.d.ts +10 -0
- package/dist/plugins/admin/has-permission.d.ts.map +1 -0
- package/dist/plugins/admin/index.cjs +44 -0
- package/dist/plugins/admin/index.d.ts +2 -0
- package/dist/plugins/admin/index.d.ts.map +1 -0
- package/dist/plugins/admin/index.mjs +38 -0
- package/dist/plugins/anonymous/client.d.ts +9 -0
- package/dist/plugins/anonymous/client.d.ts.map +1 -0
- package/dist/plugins/anonymous/index.cjs +186 -0
- package/dist/plugins/anonymous/index.d.ts +152 -0
- package/dist/plugins/anonymous/index.d.ts.map +1 -0
- package/dist/plugins/anonymous/index.mjs +184 -0
- package/dist/plugins/api-key/client.d.ts +9 -0
- package/dist/plugins/api-key/client.d.ts.map +1 -0
- package/dist/plugins/api-key/index.d.ts +873 -0
- package/dist/plugins/api-key/index.d.ts.map +1 -0
- package/dist/plugins/api-key/rate-limit.d.ts +21 -0
- package/dist/plugins/api-key/rate-limit.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/create-api-key.d.ts +137 -0
- package/dist/plugins/api-key/routes/create-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts +40 -0
- package/dist/plugins/api-key/routes/delete-all-expired-api-keys.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/delete-api-key.d.ts +80 -0
- package/dist/plugins/api-key/routes/delete-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/get-api-key.d.ts +118 -0
- package/dist/plugins/api-key/routes/get-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/index.d.ts +709 -0
- package/dist/plugins/api-key/routes/index.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/list-api-keys.d.ts +108 -0
- package/dist/plugins/api-key/routes/list-api-keys.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/update-api-key.d.ts +135 -0
- package/dist/plugins/api-key/routes/update-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/routes/verify-api-key.d.ts +137 -0
- package/dist/plugins/api-key/routes/verify-api-key.d.ts.map +1 -0
- package/dist/plugins/api-key/schema.d.ts +189 -0
- package/dist/plugins/api-key/schema.d.ts.map +1 -0
- package/dist/plugins/api-key/types.d.ts +267 -0
- package/dist/plugins/api-key/types.d.ts.map +1 -0
- package/dist/plugins/bearer/index.cjs +120 -0
- package/dist/plugins/bearer/index.d.ts +48 -0
- package/dist/plugins/bearer/index.d.ts.map +1 -0
- package/dist/plugins/bearer/index.mjs +118 -0
- package/dist/plugins/captcha/constants.d.ts +8 -0
- package/dist/plugins/captcha/constants.d.ts.map +1 -0
- package/dist/plugins/captcha/error-codes.d.ts +7 -0
- package/dist/plugins/captcha/error-codes.d.ts.map +1 -0
- package/dist/plugins/captcha/index.cjs +134 -0
- package/dist/plugins/captcha/index.d.ts +14 -0
- package/dist/plugins/captcha/index.d.ts.map +1 -0
- package/dist/plugins/captcha/index.mjs +132 -0
- package/dist/plugins/captcha/types.d.ts +21 -0
- package/dist/plugins/captcha/types.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts +10 -0
- package/dist/plugins/captcha/verify-handlers/cloudflare-turnstile.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts +10 -0
- package/dist/plugins/captcha/verify-handlers/google-recaptcha.d.ts.map +1 -0
- package/dist/plugins/captcha/verify-handlers/index.d.ts +3 -0
- package/dist/plugins/captcha/verify-handlers/index.d.ts.map +1 -0
- package/dist/plugins/custom-session/client.d.ts +12 -0
- package/dist/plugins/custom-session/client.d.ts.map +1 -0
- package/dist/plugins/custom-session/index.cjs +76 -0
- package/dist/plugins/custom-session/index.d.ts +58 -0
- package/dist/plugins/custom-session/index.d.ts.map +1 -0
- package/dist/plugins/custom-session/index.mjs +74 -0
- package/dist/plugins/email-otp/client.d.ts +6 -0
- package/dist/plugins/email-otp/client.d.ts.map +1 -0
- package/dist/plugins/email-otp/index.cjs +707 -0
- package/dist/plugins/email-otp/index.d.ts +606 -0
- package/dist/plugins/email-otp/index.d.ts.map +1 -0
- package/dist/plugins/email-otp/index.mjs +705 -0
- package/dist/plugins/generic-oauth/client.d.ts +6 -0
- package/dist/plugins/generic-oauth/client.d.ts.map +1 -0
- package/dist/plugins/generic-oauth/index.cjs +542 -0
- package/dist/plugins/generic-oauth/index.d.ts +354 -0
- package/dist/plugins/generic-oauth/index.d.ts.map +1 -0
- package/dist/plugins/generic-oauth/index.mjs +540 -0
- package/dist/plugins/index.cjs +1396 -0
- package/dist/plugins/index.d.ts +23 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.mjs +1371 -0
- package/dist/plugins/jwt/adapter.d.ts +23 -0
- package/dist/plugins/jwt/adapter.d.ts.map +1 -0
- package/dist/plugins/jwt/client.d.ts +6 -0
- package/dist/plugins/jwt/client.d.ts.map +1 -0
- package/dist/plugins/jwt/index.cjs +282 -0
- package/dist/plugins/jwt/index.d.ts +277 -0
- package/dist/plugins/jwt/index.d.ts.map +1 -0
- package/dist/plugins/jwt/index.mjs +280 -0
- package/dist/plugins/jwt/schema.d.ts +37 -0
- package/dist/plugins/jwt/schema.d.ts.map +1 -0
- package/dist/plugins/jwt/utils.d.ts +11 -0
- package/dist/plugins/jwt/utils.d.ts.map +1 -0
- package/dist/plugins/magic-link/client.d.ts +6 -0
- package/dist/plugins/magic-link/client.d.ts.map +1 -0
- package/dist/plugins/magic-link/index.cjs +242 -0
- package/dist/plugins/magic-link/index.d.ts +218 -0
- package/dist/plugins/magic-link/index.d.ts.map +1 -0
- package/dist/plugins/magic-link/index.mjs +240 -0
- package/dist/plugins/multi-session/client.d.ts +10 -0
- package/dist/plugins/multi-session/client.d.ts.map +1 -0
- package/dist/plugins/multi-session/index.cjs +274 -0
- package/dist/plugins/multi-session/index.d.ts +257 -0
- package/dist/plugins/multi-session/index.d.ts.map +1 -0
- package/dist/plugins/multi-session/index.mjs +272 -0
- package/dist/plugins/oauth-proxy/index.cjs +174 -0
- package/dist/plugins/oauth-proxy/index.d.ts +134 -0
- package/dist/plugins/oauth-proxy/index.d.ts.map +1 -0
- package/dist/plugins/oauth-proxy/index.mjs +172 -0
- package/dist/plugins/oidc-provider/authorize.d.ts +4 -0
- package/dist/plugins/oidc-provider/authorize.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/client.d.ts +6 -0
- package/dist/plugins/oidc-provider/client.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/index.cjs +1039 -0
- package/dist/plugins/oidc-provider/index.d.ts +483 -0
- package/dist/plugins/oidc-provider/index.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/index.mjs +1037 -0
- package/dist/plugins/oidc-provider/schema.d.ts +105 -0
- package/dist/plugins/oidc-provider/schema.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/types.d.ts +496 -0
- package/dist/plugins/oidc-provider/types.d.ts.map +1 -0
- package/dist/plugins/oidc-provider/ui.d.ts +9 -0
- package/dist/plugins/oidc-provider/ui.d.ts.map +1 -0
- package/dist/plugins/one-tap/client.d.ts +82 -0
- package/dist/plugins/one-tap/client.d.ts.map +1 -0
- package/dist/plugins/one-tap/index.cjs +197 -0
- package/dist/plugins/one-tap/index.d.ts +114 -0
- package/dist/plugins/one-tap/index.d.ts.map +1 -0
- package/dist/plugins/one-tap/index.mjs +195 -0
- package/dist/plugins/open-api/generator.d.ts +101 -0
- package/dist/plugins/open-api/generator.d.ts.map +1 -0
- package/dist/plugins/open-api/index.cjs +480 -0
- package/dist/plugins/open-api/index.d.ts +152 -0
- package/dist/plugins/open-api/index.d.ts.map +1 -0
- package/dist/plugins/open-api/index.mjs +478 -0
- package/dist/plugins/open-api/logo.d.ts +2 -0
- package/dist/plugins/open-api/logo.d.ts.map +1 -0
- package/dist/plugins/organization/access/index.d.ts +2 -0
- package/dist/plugins/organization/access/index.d.ts.map +1 -0
- package/dist/plugins/organization/access/statement.d.ts +211 -0
- package/dist/plugins/organization/access/statement.d.ts.map +1 -0
- package/dist/plugins/organization/adapter.d.ts +291 -0
- package/dist/plugins/organization/adapter.d.ts.map +1 -0
- package/dist/plugins/organization/call.d.ts +41 -0
- package/dist/plugins/organization/call.d.ts.map +1 -0
- package/dist/plugins/organization/client.d.ts +370 -0
- package/dist/plugins/organization/client.d.ts.map +1 -0
- package/dist/plugins/organization/error-codes.d.ts +34 -0
- package/dist/plugins/organization/error-codes.d.ts.map +1 -0
- package/dist/plugins/organization/has-permission.d.ts +9 -0
- package/dist/plugins/organization/has-permission.d.ts.map +1 -0
- package/dist/plugins/organization/index.cjs +44 -0
- package/dist/plugins/organization/index.d.ts +2 -0
- package/dist/plugins/organization/index.d.ts.map +1 -0
- package/dist/plugins/organization/index.mjs +38 -0
- package/dist/plugins/organization/organization.d.ts +6764 -0
- package/dist/plugins/organization/organization.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-invites.d.ts +2382 -0
- package/dist/plugins/organization/routes/crud-invites.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-members.d.ts +578 -0
- package/dist/plugins/organization/routes/crud-members.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-org.d.ts +793 -0
- package/dist/plugins/organization/routes/crud-org.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-team.d.ts +333 -0
- package/dist/plugins/organization/routes/crud-team.d.ts.map +1 -0
- package/dist/plugins/organization/schema.d.ts +159 -0
- package/dist/plugins/organization/schema.d.ts.map +1 -0
- package/dist/plugins/passkey/client.d.ts +140 -0
- package/dist/plugins/passkey/client.d.ts.map +1 -0
- package/dist/plugins/passkey/index.cjs +831 -0
- package/dist/plugins/passkey/index.d.ts +847 -0
- package/dist/plugins/passkey/index.d.ts.map +1 -0
- package/dist/plugins/passkey/index.mjs +829 -0
- package/dist/plugins/phone-number/client.d.ts +10 -0
- package/dist/plugins/phone-number/client.d.ts.map +1 -0
- package/dist/plugins/phone-number/index.cjs +605 -0
- package/dist/plugins/phone-number/index.d.ts +477 -0
- package/dist/plugins/phone-number/index.d.ts.map +1 -0
- package/dist/plugins/phone-number/index.mjs +603 -0
- package/dist/plugins/sso/client.d.ts +6 -0
- package/dist/plugins/sso/client.d.ts.map +1 -0
- package/dist/plugins/sso/index.cjs +582 -0
- package/dist/plugins/sso/index.d.ts +490 -0
- package/dist/plugins/sso/index.d.ts.map +1 -0
- package/dist/plugins/sso/index.mjs +580 -0
- package/dist/plugins/two-factor/backup-codes/index.d.ts +348 -0
- package/dist/plugins/two-factor/backup-codes/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/client.d.ts +29 -0
- package/dist/plugins/two-factor/client.d.ts.map +1 -0
- package/dist/plugins/two-factor/constant.d.ts +3 -0
- package/dist/plugins/two-factor/constant.d.ts.map +1 -0
- package/dist/plugins/two-factor/error-code.d.ts +9 -0
- package/dist/plugins/two-factor/error-code.d.ts.map +1 -0
- package/dist/plugins/two-factor/index.cjs +982 -0
- package/dist/plugins/two-factor/index.d.ts +1199 -0
- package/dist/plugins/two-factor/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/index.mjs +979 -0
- package/dist/plugins/two-factor/otp/index.d.ts +352 -0
- package/dist/plugins/two-factor/otp/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/schema.d.ts +36 -0
- package/dist/plugins/two-factor/schema.d.ts.map +1 -0
- package/dist/plugins/two-factor/totp/index.d.ts +367 -0
- package/dist/plugins/two-factor/totp/index.d.ts.map +1 -0
- package/dist/plugins/two-factor/types.d.ts +52 -0
- package/dist/plugins/two-factor/types.d.ts.map +1 -0
- package/dist/plugins/two-factor/verify-middleware.d.ts +76 -0
- package/dist/plugins/two-factor/verify-middleware.d.ts.map +1 -0
- package/dist/plugins/username/client.d.ts +6 -0
- package/dist/plugins/username/client.d.ts.map +1 -0
- package/dist/plugins/username/index.cjs +302 -0
- package/dist/plugins/username/index.d.ts +166 -0
- package/dist/plugins/username/index.d.ts.map +1 -0
- package/dist/plugins/username/index.mjs +300 -0
- package/dist/plugins/username/schema.d.ts +21 -0
- package/dist/plugins/username/schema.d.ts.map +1 -0
- package/dist/shared/better-auth.0TC26uRi.mjs +16 -0
- package/dist/shared/better-auth.8zoxzg-F.mjs +40 -0
- package/dist/shared/better-auth.ANpbi45u.cjs +22 -0
- package/dist/shared/better-auth.B4Qoxdgc.mjs +10 -0
- package/dist/shared/better-auth.B5NYxGA3.mjs +1126 -0
- package/dist/shared/better-auth.BBVHlTCJ.mjs +140 -0
- package/dist/shared/better-auth.BEphVDyL.cjs +251 -0
- package/dist/shared/better-auth.BG6vHVNT.cjs +30 -0
- package/dist/shared/better-auth.BIdFil5c.mjs +2966 -0
- package/dist/shared/better-auth.BLDOwz3i.cjs +7 -0
- package/dist/shared/better-auth.BMYo0QR-.cjs +10 -0
- package/dist/shared/better-auth.BUPPRXfK.mjs +7 -0
- package/dist/shared/better-auth.BXzrqpD0.mjs +89 -0
- package/dist/shared/better-auth.BcoSd9tC.mjs +10 -0
- package/dist/shared/better-auth.Bg6iw3ig.cjs +9 -0
- package/dist/shared/better-auth.BgkOX1Ei.cjs +36 -0
- package/dist/shared/better-auth.BopGaOCJ.mjs +1072 -0
- package/dist/shared/better-auth.BrIKGZsn.cjs +351 -0
- package/dist/shared/better-auth.BsGMIUYy.cjs +144 -0
- package/dist/shared/better-auth.BtJHz7JQ.mjs +21 -0
- package/dist/shared/better-auth.Bu00Fnap.mjs +349 -0
- package/dist/shared/better-auth.BxQKO8VP.cjs +2399 -0
- package/dist/shared/better-auth.C1-vpKly.cjs +12 -0
- package/dist/shared/better-auth.C1hdVENX.cjs +7 -0
- package/dist/shared/better-auth.C24Bzw4w.mjs +174 -0
- package/dist/shared/better-auth.C9_rxJsh.cjs +41 -0
- package/dist/shared/better-auth.CDXNofOe.cjs +44 -0
- package/dist/shared/better-auth.CHh0hgk_.cjs +3007 -0
- package/dist/shared/better-auth.CHyZMcYK.cjs +190 -0
- package/dist/shared/better-auth.CKg1f8vU.cjs +1135 -0
- package/dist/shared/better-auth.CQvoVIBD.mjs +81 -0
- package/dist/shared/better-auth.CUdxApHl.cjs +18 -0
- package/dist/shared/better-auth.CW6D9eSx.mjs +5 -0
- package/dist/shared/better-auth.CYeOI8C-.cjs +12 -0
- package/dist/shared/better-auth.CZu6g_Il.cjs +92 -0
- package/dist/shared/better-auth.C_Zl7Etp.cjs +83 -0
- package/dist/shared/better-auth.Cytp8fGy.cjs +200 -0
- package/dist/shared/better-auth.D-2CmEwz.mjs +5 -0
- package/dist/shared/better-auth.D3mtHEZg.cjs +23 -0
- package/dist/shared/better-auth.D7syfoJW.mjs +133 -0
- package/dist/shared/better-auth.D8LeJoj0.mjs +173 -0
- package/dist/shared/better-auth.DDEbWX-S.mjs +8 -0
- package/dist/shared/better-auth.DH3YjMQH.mjs +55 -0
- package/dist/shared/better-auth.DMLPzZdQ.cjs +23 -0
- package/dist/shared/better-auth.DNqtHmvg.cjs +22 -0
- package/dist/shared/better-auth.DORkW_Ge.mjs +249 -0
- package/dist/shared/better-auth.DOX3pFKZ.mjs +34 -0
- package/dist/shared/better-auth.DQI8AD7d.mjs +20 -0
- package/dist/shared/better-auth.DQRQ_nOW.cjs +1074 -0
- package/dist/shared/better-auth.DZnoWLte.cjs +175 -0
- package/dist/shared/better-auth.D_yrCdEQ.mjs +59 -0
- package/dist/shared/better-auth.DdjqxOIu.cjs +139 -0
- package/dist/shared/better-auth.Ddw8bVyV.mjs +35 -0
- package/dist/shared/better-auth.DdzSJf-n.mjs +19 -0
- package/dist/shared/better-auth.DhsGZ30Q.cjs +126 -0
- package/dist/shared/better-auth.DiSjtgs9.cjs +45 -0
- package/dist/shared/better-auth.DnER2-iT.cjs +37 -0
- package/dist/shared/better-auth.DssCybTk.cjs +64 -0
- package/dist/shared/better-auth.Duk7IG0N.mjs +34 -0
- package/dist/shared/better-auth.GpOOav9x.cjs +60 -0
- package/dist/shared/better-auth.HHZU10im.mjs +405 -0
- package/dist/shared/better-auth.OT3XFeFk.mjs +48 -0
- package/dist/shared/better-auth.YUF6P-PB.cjs +52 -0
- package/dist/shared/better-auth.YwDQhoPc.mjs +41 -0
- package/dist/shared/better-auth.cd8Jd_oV.mjs +197 -0
- package/dist/shared/better-auth.ffWeg50w.mjs +124 -0
- package/dist/shared/better-auth.fsvwNeUx.mjs +28 -0
- package/dist/shared/better-auth.lwzD09PV.cjs +408 -0
- package/dist/shared/better-auth.tB5eU6EY.mjs +21 -0
- package/dist/shared/better-auth.zU1oq-gb.mjs +2373 -0
- package/dist/social-providers/apple.d.ts +93 -0
- package/dist/social-providers/apple.d.ts.map +1 -0
- package/dist/social-providers/discord.d.ts +101 -0
- package/dist/social-providers/discord.d.ts.map +1 -0
- package/dist/social-providers/dropbox.d.ts +44 -0
- package/dist/social-providers/dropbox.d.ts.map +1 -0
- package/dist/social-providers/facebook.d.ts +52 -0
- package/dist/social-providers/facebook.d.ts.map +1 -0
- package/dist/social-providers/github.d.ts +77 -0
- package/dist/social-providers/github.d.ts.map +1 -0
- package/dist/social-providers/gitlab.d.ts +76 -0
- package/dist/social-providers/gitlab.d.ts.map +1 -0
- package/dist/social-providers/google.d.ts +62 -0
- package/dist/social-providers/google.d.ts.map +1 -0
- package/dist/social-providers/index.cjs +1220 -0
- package/dist/social-providers/index.d.ts +477 -0
- package/dist/social-providers/index.d.ts.map +1 -0
- package/dist/social-providers/index.mjs +1198 -0
- package/dist/social-providers/linkedin.d.ts +55 -0
- package/dist/social-providers/linkedin.d.ts.map +1 -0
- package/dist/social-providers/microsoft-entra-id.d.ts +56 -0
- package/dist/social-providers/microsoft-entra-id.d.ts.map +1 -0
- package/dist/social-providers/reddit.d.ts +40 -0
- package/dist/social-providers/reddit.d.ts.map +1 -0
- package/dist/social-providers/roblox.d.ts +48 -0
- package/dist/social-providers/roblox.d.ts.map +1 -0
- package/dist/social-providers/spotify.d.ts +39 -0
- package/dist/social-providers/spotify.d.ts.map +1 -0
- package/dist/social-providers/tiktok.d.ts +145 -0
- package/dist/social-providers/tiktok.d.ts.map +1 -0
- package/dist/social-providers/twitch.d.ts +50 -0
- package/dist/social-providers/twitch.d.ts.map +1 -0
- package/dist/social-providers/twitter.d.ts +119 -0
- package/dist/social-providers/twitter.d.ts.map +1 -0
- package/dist/social-providers/vk.d.ts +59 -0
- package/dist/social-providers/vk.d.ts.map +1 -0
- package/dist/tsconfig.declarations.tsbuildinfo +1 -0
- package/dist/types/adapter.d.ts +119 -0
- package/dist/types/adapter.d.ts.map +1 -0
- package/dist/types/api.d.ts +28 -0
- package/dist/types/api.d.ts.map +1 -0
- package/dist/types/context.d.ts +13 -0
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/helper.d.ts +32 -0
- package/dist/types/helper.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/models.d.ts +35 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/options.d.ts +804 -0
- package/dist/types/options.d.ts.map +1 -0
- package/dist/types/plugins.d.ts +120 -0
- package/dist/types/plugins.d.ts.map +1 -0
- package/dist/utils/boolean.d.ts +2 -0
- package/dist/utils/boolean.d.ts.map +1 -0
- package/dist/utils/callback-url.d.ts +7 -0
- package/dist/utils/callback-url.d.ts.map +1 -0
- package/dist/utils/clone.d.ts +2 -0
- package/dist/utils/clone.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/date.d.ts +2 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/env.d.ts +10 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/get-request-ip.d.ts +3 -0
- package/dist/utils/get-request-ip.d.ts.map +1 -0
- package/dist/utils/hide-metadata.d.ts +4 -0
- package/dist/utils/hide-metadata.d.ts.map +1 -0
- package/dist/utils/id.d.ts +2 -0
- package/dist/utils/id.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/json.d.ts +2 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +15 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/merger.d.ts +2 -0
- package/dist/utils/merger.d.ts.map +1 -0
- package/dist/utils/middleware-response.d.ts +9 -0
- package/dist/utils/middleware-response.d.ts.map +1 -0
- package/dist/utils/misc.d.ts +2 -0
- package/dist/utils/misc.d.ts.map +1 -0
- package/dist/utils/password.d.ts +7 -0
- package/dist/utils/password.d.ts.map +1 -0
- package/dist/utils/plugin-helper.d.ts +6 -0
- package/dist/utils/plugin-helper.d.ts.map +1 -0
- package/dist/utils/shim.d.ts +4 -0
- package/dist/utils/shim.d.ts.map +1 -0
- package/dist/utils/time.d.ts +29 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/url.d.ts +6 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/wildcard.d.ts +46 -0
- package/dist/utils/wildcard.d.ts.map +1 -0
- package/package.json +228 -213
- package/dist/adapters/drizzle.cjs +0 -274
- package/dist/adapters/drizzle.d.cts +0 -76
- package/dist/adapters/drizzle.d.ts +0 -76
- package/dist/adapters/drizzle.js +0 -272
- package/dist/adapters/kysely.cjs +0 -24
- package/dist/adapters/kysely.d.cts +0 -68
- package/dist/adapters/kysely.d.ts +0 -68
- package/dist/adapters/kysely.js +0 -11
- package/dist/adapters/memory.cjs +0 -20
- package/dist/adapters/memory.d.cts +0 -59
- package/dist/adapters/memory.d.ts +0 -59
- package/dist/adapters/memory.js +0 -11
- package/dist/adapters/mongodb.cjs +0 -273
- package/dist/adapters/mongodb.d.cts +0 -57
- package/dist/adapters/mongodb.d.ts +0 -57
- package/dist/adapters/mongodb.js +0 -271
- package/dist/adapters/prisma.cjs +0 -244
- package/dist/adapters/prisma.d.cts +0 -65
- package/dist/adapters/prisma.d.ts +0 -65
- package/dist/adapters/prisma.js +0 -242
- package/dist/adapters/test.d.cts +0 -16
- package/dist/adapters/test.js +0 -427
- package/dist/api.cjs +0 -179
- package/dist/api.d.cts +0 -8
- package/dist/api.d.ts +0 -8
- package/dist/api.js +0 -14
- package/dist/auth-BLwS7t0V.d.cts +0 -17474
- package/dist/auth-C42JqOR9.d.ts +0 -17474
- package/dist/chunk-2F3IX7O2.js +0 -272
- package/dist/chunk-2HPSCSV7.cjs +0 -8
- package/dist/chunk-2X5G64P2.cjs +0 -81
- package/dist/chunk-2Z6CVQHH.cjs +0 -82
- package/dist/chunk-3XTQSPPA.js +0 -6
- package/dist/chunk-45RBYQKI.cjs +0 -277
- package/dist/chunk-4KMR5H5T.js +0 -43
- package/dist/chunk-4WCY4Y5J.js +0 -173
- package/dist/chunk-52TDJNDX.js +0 -569
- package/dist/chunk-53IPO2PJ.js +0 -22
- package/dist/chunk-5AZFOKWY.cjs +0 -176
- package/dist/chunk-5ECP2UE2.cjs +0 -155
- package/dist/chunk-5G6XUCMS.js +0 -2178
- package/dist/chunk-5KTUVZ3H.cjs +0 -144
- package/dist/chunk-5RR5WN52.cjs +0 -274
- package/dist/chunk-6AFMN526.cjs +0 -45
- package/dist/chunk-7KKMYVNZ.js +0 -42
- package/dist/chunk-B5UCLTPZ.cjs +0 -223
- package/dist/chunk-BZOIXJ2Q.js +0 -89
- package/dist/chunk-CCKQSGIR.cjs +0 -8
- package/dist/chunk-CF7NIEGH.cjs +0 -38
- package/dist/chunk-CG2CK6HR.js +0 -1043
- package/dist/chunk-DBPOZRMS.js +0 -96
- package/dist/chunk-DURU7ZRA.cjs +0 -1045
- package/dist/chunk-EHFDU6IF.cjs +0 -45
- package/dist/chunk-EQYRCOOF.js +0 -1926
- package/dist/chunk-FURNA6HY.js +0 -6
- package/dist/chunk-G2LZ73E2.cjs +0 -106
- package/dist/chunk-GBLEGHZW.js +0 -72
- package/dist/chunk-GSEEAIRZ.cjs +0 -978
- package/dist/chunk-GYDUPG7X.js +0 -36
- package/dist/chunk-H74YRRNV.cjs +0 -92
- package/dist/chunk-HUDPJXOF.cjs +0 -655
- package/dist/chunk-HVHN3Y2L.js +0 -126
- package/dist/chunk-HZBNUY7E.js +0 -206
- package/dist/chunk-IQUHEVLH.js +0 -976
- package/dist/chunk-IUGQVFPG.cjs +0 -207
- package/dist/chunk-J6VNT2T4.js +0 -841
- package/dist/chunk-JDAHD767.cjs +0 -1134
- package/dist/chunk-JEYF2ARX.js +0 -21
- package/dist/chunk-JUPDDQC4.cjs +0 -23
- package/dist/chunk-K6WRBJAV.cjs +0 -45
- package/dist/chunk-KAR56MJZ.cjs +0 -1942
- package/dist/chunk-KIQWU6Z4.cjs +0 -278
- package/dist/chunk-KLDFBLYL.js +0 -85
- package/dist/chunk-MKNDCNWD.cjs +0 -91
- package/dist/chunk-N7UWN6ND.cjs +0 -3632
- package/dist/chunk-OA7Z7IZT.cjs +0 -24
- package/dist/chunk-PEZRSDZS.cjs +0 -23
- package/dist/chunk-QKCLO6S5.js +0 -142
- package/dist/chunk-QLKU77BF.js +0 -653
- package/dist/chunk-QNLSMTXF.cjs +0 -432
- package/dist/chunk-QQGRNAM2.js +0 -430
- package/dist/chunk-QQGZ3XGI.js +0 -346
- package/dist/chunk-QUVBQTGS.js +0 -274
- package/dist/chunk-R42K7GPF.js +0 -132
- package/dist/chunk-S5UORXJH.cjs +0 -65
- package/dist/chunk-SCXZXQTZ.js +0 -3583
- package/dist/chunk-SMZIOWVN.cjs +0 -843
- package/dist/chunk-ST2CQ4A2.js +0 -205
- package/dist/chunk-SVC7H7K4.cjs +0 -138
- package/dist/chunk-TODG5RSV.js +0 -1113
- package/dist/chunk-TOKZL3ZI.js +0 -42
- package/dist/chunk-TQQSPPNA.js +0 -41
- package/dist/chunk-TZ34QTAV.js +0 -275
- package/dist/chunk-U44XLDNH.cjs +0 -571
- package/dist/chunk-U4I57HJ4.cjs +0 -129
- package/dist/chunk-UNWCXKMP.js +0 -20
- package/dist/chunk-UZNKBUDH.cjs +0 -244
- package/dist/chunk-V6HE2MP7.cjs +0 -356
- package/dist/chunk-VXYIYABQ.cjs +0 -46
- package/dist/chunk-WD65CNWK.cjs +0 -2180
- package/dist/chunk-WLOSPOQJ.cjs +0 -157
- package/dist/chunk-WMXBA6LX.js +0 -11
- package/dist/chunk-XFCIANZX.js +0 -60
- package/dist/chunk-XREMX2NV.js +0 -242
- package/dist/chunk-YHW4KODD.js +0 -155
- package/dist/chunk-ZBKCS3KP.cjs +0 -13
- package/dist/chunk-ZDYKAJ67.js +0 -512
- package/dist/chunk-ZFUBVSZD.js +0 -79
- package/dist/chunk-ZKMUJOIP.js +0 -153
- package/dist/chunk-ZUUQ3FFY.cjs +0 -514
- package/dist/client/plugins.cjs +0 -379
- package/dist/client/plugins.d.cts +0 -434
- package/dist/client/plugins.d.ts +0 -434
- package/dist/client/plugins.js +0 -350
- package/dist/client.cjs +0 -24
- package/dist/client.d.cts +0 -138
- package/dist/client.d.ts +0 -138
- package/dist/client.js +0 -7
- package/dist/cookies.cjs +0 -46
- package/dist/cookies.d.cts +0 -8
- package/dist/cookies.d.ts +0 -8
- package/dist/cookies.js +0 -5
- package/dist/crypto.cjs +0 -42
- package/dist/crypto.d.cts +0 -30
- package/dist/crypto.d.ts +0 -30
- package/dist/crypto.js +0 -1
- package/dist/db.cjs +0 -120
- package/dist/db.d.cts +0 -56
- package/dist/db.d.ts +0 -56
- package/dist/db.js +0 -11
- package/dist/helper-Bi8FQwDD.d.cts +0 -34
- package/dist/helper-Bi8FQwDD.d.ts +0 -34
- package/dist/hide-metadata-DEHJp1rk.d.cts +0 -5
- package/dist/hide-metadata-DEHJp1rk.d.ts +0 -5
- package/dist/index-Bszx4yMW.d.cts +0 -7755
- package/dist/index-BuRgaJZR.d.cts +0 -1500
- package/dist/index-DbIhOM3X.d.ts +0 -7755
- package/dist/index-moQjyfmm.d.ts +0 -1500
- package/dist/index.d.cts +0 -26
- package/dist/index.js +0 -218
- package/dist/next-js.cjs +0 -97
- package/dist/next-js.d.cts +0 -34
- package/dist/next-js.d.ts +0 -34
- package/dist/next-js.js +0 -94
- package/dist/node.cjs +0 -24
- package/dist/node.d.cts +0 -17
- package/dist/node.d.ts +0 -17
- package/dist/node.js +0 -21
- package/dist/oauth2.cjs +0 -37
- package/dist/oauth2.d.cts +0 -39
- package/dist/oauth2.d.ts +0 -39
- package/dist/oauth2.js +0 -4
- package/dist/plugins/access.cjs +0 -38
- package/dist/plugins/access.d.cts +0 -176
- package/dist/plugins/access.d.ts +0 -176
- package/dist/plugins/access.js +0 -1
- package/dist/plugins/admin.cjs +0 -26
- package/dist/plugins/admin.d.cts +0 -1324
- package/dist/plugins/admin.d.ts +0 -1324
- package/dist/plugins/admin.js +0 -17
- package/dist/plugins/anonymous.cjs +0 -24
- package/dist/plugins/anonymous.d.cts +0 -160
- package/dist/plugins/anonymous.d.ts +0 -160
- package/dist/plugins/anonymous.js +0 -15
- package/dist/plugins/bearer.cjs +0 -24
- package/dist/plugins/bearer.d.cts +0 -57
- package/dist/plugins/bearer.d.ts +0 -57
- package/dist/plugins/bearer.js +0 -15
- package/dist/plugins/custom-session.cjs +0 -24
- package/dist/plugins/custom-session.d.cts +0 -66
- package/dist/plugins/custom-session.d.ts +0 -66
- package/dist/plugins/custom-session.js +0 -15
- package/dist/plugins/email-otp.cjs +0 -25
- package/dist/plugins/email-otp.d.cts +0 -608
- package/dist/plugins/email-otp.d.ts +0 -608
- package/dist/plugins/email-otp.js +0 -16
- package/dist/plugins/generic-oauth.cjs +0 -24
- package/dist/plugins/generic-oauth.d.cts +0 -356
- package/dist/plugins/generic-oauth.d.ts +0 -356
- package/dist/plugins/generic-oauth.js +0 -15
- package/dist/plugins/jwt.cjs +0 -24
- package/dist/plugins/jwt.d.cts +0 -303
- package/dist/plugins/jwt.d.ts +0 -303
- package/dist/plugins/jwt.js +0 -15
- package/dist/plugins/magic-link.cjs +0 -24
- package/dist/plugins/magic-link.d.cts +0 -220
- package/dist/plugins/magic-link.d.ts +0 -220
- package/dist/plugins/magic-link.js +0 -15
- package/dist/plugins/multi-session.cjs +0 -24
- package/dist/plugins/multi-session.d.cts +0 -265
- package/dist/plugins/multi-session.d.ts +0 -265
- package/dist/plugins/multi-session.js +0 -15
- package/dist/plugins/oidc-provider.cjs +0 -24
- package/dist/plugins/oidc-provider.d.cts +0 -962
- package/dist/plugins/oidc-provider.d.ts +0 -962
- package/dist/plugins/oidc-provider.js +0 -15
- package/dist/plugins/one-tap.cjs +0 -24
- package/dist/plugins/one-tap.d.cts +0 -116
- package/dist/plugins/one-tap.d.ts +0 -116
- package/dist/plugins/one-tap.js +0 -15
- package/dist/plugins/open-api.cjs +0 -26
- package/dist/plugins/open-api.d.cts +0 -218
- package/dist/plugins/open-api.d.ts +0 -218
- package/dist/plugins/open-api.js +0 -17
- package/dist/plugins/organization.cjs +0 -26
- package/dist/plugins/organization.d.cts +0 -10
- package/dist/plugins/organization.d.ts +0 -10
- package/dist/plugins/organization.js +0 -17
- package/dist/plugins/passkey.cjs +0 -812
- package/dist/plugins/passkey.d.cts +0 -964
- package/dist/plugins/passkey.d.ts +0 -964
- package/dist/plugins/passkey.js +0 -802
- package/dist/plugins/phone-number.cjs +0 -24
- package/dist/plugins/phone-number.d.cts +0 -483
- package/dist/plugins/phone-number.d.ts +0 -483
- package/dist/plugins/phone-number.js +0 -15
- package/dist/plugins/sso.cjs +0 -563
- package/dist/plugins/sso.d.cts +0 -492
- package/dist/plugins/sso.d.ts +0 -492
- package/dist/plugins/sso.js +0 -561
- package/dist/plugins/two-factor.cjs +0 -31
- package/dist/plugins/two-factor.d.cts +0 -1394
- package/dist/plugins/two-factor.d.ts +0 -1394
- package/dist/plugins/two-factor.js +0 -18
- package/dist/plugins/username.cjs +0 -25
- package/dist/plugins/username.d.cts +0 -194
- package/dist/plugins/username.d.ts +0 -194
- package/dist/plugins/username.js +0 -16
- package/dist/plugins.cjs +0 -132
- package/dist/plugins.d.cts +0 -162
- package/dist/plugins.d.ts +0 -162
- package/dist/plugins.js +0 -39
- package/dist/react.cjs +0 -64
- package/dist/react.d.cts +0 -140
- package/dist/react.d.ts +0 -140
- package/dist/react.js +0 -60
- package/dist/social.cjs +0 -93
- package/dist/social.d.cts +0 -4
- package/dist/social.d.ts +0 -4
- package/dist/social.js +0 -8
- package/dist/solid-start.cjs +0 -14
- package/dist/solid-start.d.cts +0 -12
- package/dist/solid-start.d.ts +0 -12
- package/dist/solid-start.js +0 -12
- package/dist/solid.cjs +0 -56
- package/dist/solid.d.cts +0 -115
- package/dist/solid.d.ts +0 -115
- package/dist/solid.js +0 -54
- package/dist/state-BlQHfd32.d.ts +0 -22
- package/dist/state-lA7cG1Em.d.cts +0 -22
- package/dist/svelte-kit.cjs +0 -38
- package/dist/svelte-kit.d.cts +0 -29
- package/dist/svelte-kit.d.ts +0 -29
- package/dist/svelte-kit.js +0 -34
- package/dist/svelte.cjs +0 -40
- package/dist/svelte.d.cts +0 -120
- package/dist/svelte.d.ts +0 -120
- package/dist/svelte.js +0 -38
- package/dist/types.cjs +0 -4
- package/dist/types.d.cts +0 -138
- package/dist/types.d.ts +0 -138
- package/dist/types.js +0 -1
- package/dist/vue.cjs +0 -85
- package/dist/vue.d.cts +0 -143
- package/dist/vue.d.ts +0 -143
- package/dist/vue.js +0 -83
- /package/dist/{chunk-NIMYOIVU.cjs → types/index.cjs} +0 -0
- /package/dist/{chunk-SK6Y2YH6.js → types/index.mjs} +0 -0
package/dist/cookies.cjs
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkV6HE2MP7_cjs = require('./chunk-V6HE2MP7.cjs');
|
|
4
|
-
require('./chunk-OA7Z7IZT.cjs');
|
|
5
|
-
require('./chunk-2HPSCSV7.cjs');
|
|
6
|
-
require('./chunk-VXYIYABQ.cjs');
|
|
7
|
-
require('./chunk-PEZRSDZS.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "createCookieGetter", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkV6HE2MP7_cjs.createCookieGetter; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "deleteSessionCookie", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkV6HE2MP7_cjs.deleteSessionCookie; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "getCookieCache", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkV6HE2MP7_cjs.getCookieCache; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "getCookies", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkV6HE2MP7_cjs.getCookies; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "getSessionCookie", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunkV6HE2MP7_cjs.getSessionCookie; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "parseCookies", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkV6HE2MP7_cjs.parseCookies; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "parseSetCookieHeader", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkV6HE2MP7_cjs.parseSetCookieHeader; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "setCookieCache", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkV6HE2MP7_cjs.setCookieCache; }
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(exports, "setSessionCookie", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunkV6HE2MP7_cjs.setSessionCookie; }
|
|
46
|
-
});
|
package/dist/cookies.d.cts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import 'better-call';
|
|
2
|
-
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-BLwS7t0V.cjs';
|
|
3
|
-
import 'zod';
|
|
4
|
-
import 'kysely';
|
|
5
|
-
import './helper-Bi8FQwDD.cjs';
|
|
6
|
-
import './index-BuRgaJZR.cjs';
|
|
7
|
-
import 'jose';
|
|
8
|
-
import 'better-sqlite3';
|
package/dist/cookies.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import 'better-call';
|
|
2
|
-
export { L as BetterAuthCookies, T as EligibleCookies, E as createCookieGetter, P as deleteSessionCookie, Y as getCookieCache, J as getCookies, X as getSessionCookie, Q as parseCookies, Z as parseSetCookieHeader, N as setCookieCache, O as setSessionCookie } from './auth-C42JqOR9.js';
|
|
3
|
-
import 'zod';
|
|
4
|
-
import 'kysely';
|
|
5
|
-
import './helper-Bi8FQwDD.js';
|
|
6
|
-
import './index-moQjyfmm.js';
|
|
7
|
-
import 'jose';
|
|
8
|
-
import 'better-sqlite3';
|
package/dist/cookies.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { createCookieGetter, deleteSessionCookie, getCookieCache, getCookies, getSessionCookie, parseCookies, parseSetCookieHeader, setCookieCache, setSessionCookie } from './chunk-QQGZ3XGI.js';
|
|
2
|
-
import './chunk-53IPO2PJ.js';
|
|
3
|
-
import './chunk-FURNA6HY.js';
|
|
4
|
-
import './chunk-TQQSPPNA.js';
|
|
5
|
-
import './chunk-UNWCXKMP.js';
|
package/dist/crypto.cjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkG2LZ73E2_cjs = require('./chunk-G2LZ73E2.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "compareHash", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () { return chunkG2LZ73E2_cjs.compareHash; }
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(exports, "constantTimeEqual", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunkG2LZ73E2_cjs.constantTimeEqual; }
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "generateRandomString", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function () { return chunkG2LZ73E2_cjs.generateRandomString; }
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports, "hashPassword", {
|
|
20
|
-
enumerable: true,
|
|
21
|
-
get: function () { return chunkG2LZ73E2_cjs.hashPassword; }
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, "hashToBase64", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () { return chunkG2LZ73E2_cjs.hashToBase64; }
|
|
26
|
-
});
|
|
27
|
-
Object.defineProperty(exports, "signJWT", {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () { return chunkG2LZ73E2_cjs.signJWT; }
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(exports, "symmetricDecrypt", {
|
|
32
|
-
enumerable: true,
|
|
33
|
-
get: function () { return chunkG2LZ73E2_cjs.symmetricDecrypt; }
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "symmetricEncrypt", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkG2LZ73E2_cjs.symmetricEncrypt; }
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(exports, "verifyPassword", {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () { return chunkG2LZ73E2_cjs.verifyPassword; }
|
|
42
|
-
});
|
package/dist/crypto.d.cts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compare two buffers in constant time.
|
|
3
|
-
*/
|
|
4
|
-
declare function constantTimeEqual(a: ArrayBuffer | Uint8Array, b: ArrayBuffer | Uint8Array): boolean;
|
|
5
|
-
|
|
6
|
-
declare function hashToBase64(data: string | ArrayBuffer): Promise<string>;
|
|
7
|
-
declare function compareHash(data: string | ArrayBuffer, hash: string): Promise<boolean>;
|
|
8
|
-
|
|
9
|
-
declare function signJWT(payload: any, secret: string, expiresIn?: number): Promise<string>;
|
|
10
|
-
|
|
11
|
-
declare const hashPassword: (password: string) => Promise<string>;
|
|
12
|
-
declare const verifyPassword: ({ hash, password, }: {
|
|
13
|
-
hash: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}) => Promise<boolean>;
|
|
16
|
-
|
|
17
|
-
declare const generateRandomString: <SubA extends "a-z" | "A-Z" | "0-9" | "-_">(length: number, alphabet?: SubA | undefined, ...arg_1: SubA[]) => string;
|
|
18
|
-
|
|
19
|
-
type SymmetricEncryptOptions = {
|
|
20
|
-
key: string;
|
|
21
|
-
data: string;
|
|
22
|
-
};
|
|
23
|
-
declare const symmetricEncrypt: ({ key, data, }: SymmetricEncryptOptions) => Promise<string>;
|
|
24
|
-
type SymmetricDecryptOptions = {
|
|
25
|
-
key: string;
|
|
26
|
-
data: string;
|
|
27
|
-
};
|
|
28
|
-
declare const symmetricDecrypt: ({ key, data, }: SymmetricDecryptOptions) => Promise<string>;
|
|
29
|
-
|
|
30
|
-
export { type SymmetricDecryptOptions, type SymmetricEncryptOptions, compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword };
|
package/dist/crypto.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Compare two buffers in constant time.
|
|
3
|
-
*/
|
|
4
|
-
declare function constantTimeEqual(a: ArrayBuffer | Uint8Array, b: ArrayBuffer | Uint8Array): boolean;
|
|
5
|
-
|
|
6
|
-
declare function hashToBase64(data: string | ArrayBuffer): Promise<string>;
|
|
7
|
-
declare function compareHash(data: string | ArrayBuffer, hash: string): Promise<boolean>;
|
|
8
|
-
|
|
9
|
-
declare function signJWT(payload: any, secret: string, expiresIn?: number): Promise<string>;
|
|
10
|
-
|
|
11
|
-
declare const hashPassword: (password: string) => Promise<string>;
|
|
12
|
-
declare const verifyPassword: ({ hash, password, }: {
|
|
13
|
-
hash: string;
|
|
14
|
-
password: string;
|
|
15
|
-
}) => Promise<boolean>;
|
|
16
|
-
|
|
17
|
-
declare const generateRandomString: <SubA extends "a-z" | "A-Z" | "0-9" | "-_">(length: number, alphabet?: SubA | undefined, ...arg_1: SubA[]) => string;
|
|
18
|
-
|
|
19
|
-
type SymmetricEncryptOptions = {
|
|
20
|
-
key: string;
|
|
21
|
-
data: string;
|
|
22
|
-
};
|
|
23
|
-
declare const symmetricEncrypt: ({ key, data, }: SymmetricEncryptOptions) => Promise<string>;
|
|
24
|
-
type SymmetricDecryptOptions = {
|
|
25
|
-
key: string;
|
|
26
|
-
data: string;
|
|
27
|
-
};
|
|
28
|
-
declare const symmetricDecrypt: ({ key, data, }: SymmetricDecryptOptions) => Promise<string>;
|
|
29
|
-
|
|
30
|
-
export { type SymmetricDecryptOptions, type SymmetricEncryptOptions, compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword };
|
package/dist/crypto.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { compareHash, constantTimeEqual, generateRandomString, hashPassword, hashToBase64, signJWT, symmetricDecrypt, symmetricEncrypt, verifyPassword } from './chunk-DBPOZRMS.js';
|
package/dist/db.cjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKAR56MJZ_cjs = require('./chunk-KAR56MJZ.cjs');
|
|
4
|
-
var chunkB5UCLTPZ_cjs = require('./chunk-B5UCLTPZ.cjs');
|
|
5
|
-
require('./chunk-H74YRRNV.cjs');
|
|
6
|
-
require('./chunk-2Z6CVQHH.cjs');
|
|
7
|
-
require('./chunk-NIMYOIVU.cjs');
|
|
8
|
-
require('./chunk-CCKQSGIR.cjs');
|
|
9
|
-
require('./chunk-G2LZ73E2.cjs');
|
|
10
|
-
require('./chunk-OA7Z7IZT.cjs');
|
|
11
|
-
require('./chunk-2HPSCSV7.cjs');
|
|
12
|
-
require('./chunk-VXYIYABQ.cjs');
|
|
13
|
-
require('./chunk-PEZRSDZS.cjs');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Object.defineProperty(exports, "convertFromDB", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return chunkKAR56MJZ_cjs.convertFromDB; }
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "convertToDB", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return chunkKAR56MJZ_cjs.convertToDB; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "createFieldAttribute", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return chunkKAR56MJZ_cjs.createFieldAttribute; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "createInternalAdapter", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return chunkKAR56MJZ_cjs.createInternalAdapter; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "getAdapter", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return chunkKAR56MJZ_cjs.getAdapter; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "getAuthTables", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return chunkKAR56MJZ_cjs.getAuthTables; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "getMigrations", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return chunkKAR56MJZ_cjs.getMigrations; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "getSchema", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunkKAR56MJZ_cjs.getSchema; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "getWithHooks", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return chunkKAR56MJZ_cjs.getWithHooks; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "matchType", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return chunkKAR56MJZ_cjs.matchType; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "toZodSchema", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return chunkKAR56MJZ_cjs.toZodSchema; }
|
|
60
|
-
});
|
|
61
|
-
Object.defineProperty(exports, "accountSchema", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return chunkB5UCLTPZ_cjs.accountSchema; }
|
|
64
|
-
});
|
|
65
|
-
Object.defineProperty(exports, "getAllFields", {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () { return chunkB5UCLTPZ_cjs.getAllFields; }
|
|
68
|
-
});
|
|
69
|
-
Object.defineProperty(exports, "mergeSchema", {
|
|
70
|
-
enumerable: true,
|
|
71
|
-
get: function () { return chunkB5UCLTPZ_cjs.mergeSchema; }
|
|
72
|
-
});
|
|
73
|
-
Object.defineProperty(exports, "parseAccountInput", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseAccountInput; }
|
|
76
|
-
});
|
|
77
|
-
Object.defineProperty(exports, "parseAccountOutput", {
|
|
78
|
-
enumerable: true,
|
|
79
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseAccountOutput; }
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(exports, "parseAdditionalUserInput", {
|
|
82
|
-
enumerable: true,
|
|
83
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseAdditionalUserInput; }
|
|
84
|
-
});
|
|
85
|
-
Object.defineProperty(exports, "parseInputData", {
|
|
86
|
-
enumerable: true,
|
|
87
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseInputData; }
|
|
88
|
-
});
|
|
89
|
-
Object.defineProperty(exports, "parseOutputData", {
|
|
90
|
-
enumerable: true,
|
|
91
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseOutputData; }
|
|
92
|
-
});
|
|
93
|
-
Object.defineProperty(exports, "parseSessionInput", {
|
|
94
|
-
enumerable: true,
|
|
95
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseSessionInput; }
|
|
96
|
-
});
|
|
97
|
-
Object.defineProperty(exports, "parseSessionOutput", {
|
|
98
|
-
enumerable: true,
|
|
99
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseSessionOutput; }
|
|
100
|
-
});
|
|
101
|
-
Object.defineProperty(exports, "parseUserInput", {
|
|
102
|
-
enumerable: true,
|
|
103
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseUserInput; }
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(exports, "parseUserOutput", {
|
|
106
|
-
enumerable: true,
|
|
107
|
-
get: function () { return chunkB5UCLTPZ_cjs.parseUserOutput; }
|
|
108
|
-
});
|
|
109
|
-
Object.defineProperty(exports, "sessionSchema", {
|
|
110
|
-
enumerable: true,
|
|
111
|
-
get: function () { return chunkB5UCLTPZ_cjs.sessionSchema; }
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(exports, "userSchema", {
|
|
114
|
-
enumerable: true,
|
|
115
|
-
get: function () { return chunkB5UCLTPZ_cjs.userSchema; }
|
|
116
|
-
});
|
|
117
|
-
Object.defineProperty(exports, "verificationSchema", {
|
|
118
|
-
enumerable: true,
|
|
119
|
-
get: function () { return chunkB5UCLTPZ_cjs.verificationSchema; }
|
|
120
|
-
});
|
package/dist/db.d.cts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-BLwS7t0V.cjs';
|
|
2
|
-
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-BLwS7t0V.cjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import 'kysely';
|
|
5
|
-
import 'better-call';
|
|
6
|
-
import './helper-Bi8FQwDD.cjs';
|
|
7
|
-
import './index-BuRgaJZR.cjs';
|
|
8
|
-
import 'jose';
|
|
9
|
-
import 'better-sqlite3';
|
|
10
|
-
|
|
11
|
-
declare function getWithHooks(adapter: Adapter, ctx: {
|
|
12
|
-
options: BetterAuthOptions;
|
|
13
|
-
hooks: Exclude<BetterAuthOptions["databaseHooks"], undefined>[];
|
|
14
|
-
}): {
|
|
15
|
-
createWithHooks: <T extends Record<string, any>>(data: T, model: "session" | "user" | "account" | "verification", customCreateFn?: {
|
|
16
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
17
|
-
executeMainFn?: boolean;
|
|
18
|
-
}) => Promise<any>;
|
|
19
|
-
updateWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "session" | "user" | "account" | "verification", customUpdateFn?: {
|
|
20
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
21
|
-
executeMainFn?: boolean;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
updateManyWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "session" | "user" | "account" | "verification", customUpdateFn?: {
|
|
24
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
25
|
-
executeMainFn?: boolean;
|
|
26
|
-
}) => Promise<any>;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
30
|
-
|
|
31
|
-
declare function getAdapter(options: BetterAuthOptions): Promise<Adapter>;
|
|
32
|
-
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T): T;
|
|
33
|
-
declare function convertFromDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T | null): T | null;
|
|
34
|
-
|
|
35
|
-
declare function matchType(columnDataType: string, fieldType: FieldType, dbType: KyselyDatabaseType): boolean;
|
|
36
|
-
declare function getMigrations(config: BetterAuthOptions): Promise<{
|
|
37
|
-
toBeCreated: {
|
|
38
|
-
table: string;
|
|
39
|
-
fields: Record<string, FieldAttribute>;
|
|
40
|
-
order: number;
|
|
41
|
-
}[];
|
|
42
|
-
toBeAdded: {
|
|
43
|
-
table: string;
|
|
44
|
-
fields: Record<string, FieldAttribute>;
|
|
45
|
-
order: number;
|
|
46
|
-
}[];
|
|
47
|
-
runMigrations: () => Promise<void>;
|
|
48
|
-
compileMigrations: () => Promise<string>;
|
|
49
|
-
}>;
|
|
50
|
-
|
|
51
|
-
declare function getSchema(config: BetterAuthOptions): Record<string, {
|
|
52
|
-
fields: Record<string, FieldAttribute>;
|
|
53
|
-
order: number;
|
|
54
|
-
}>;
|
|
55
|
-
|
|
56
|
-
export { FieldAttribute, FieldType, convertFromDB, convertToDB, getAdapter, getMigrations, getSchema, getWithHooks, matchType, toZodSchema };
|
package/dist/db.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { A as Adapter, B as BetterAuthOptions, W as Where, a5 as FieldAttribute, a6 as FieldType, K as KyselyDatabaseType } from './auth-C42JqOR9.js';
|
|
2
|
-
export { ai as BetterAuthDbSchema, a9 as FieldAttributeConfig, ah as InferFieldsFromOptions, ag as InferFieldsFromPlugins, ad as InferFieldsInput, ae as InferFieldsInputClient, ac as InferFieldsOutput, ab as InferValueType, a8 as InternalAdapter, af as PluginFieldAttribute, ak as accountSchema, aa as createFieldAttribute, a7 as createInternalAdapter, ap as getAllFields, aj as getAuthTables, ay as mergeSchema, aw as parseAccountInput, ar as parseAccountOutput, av as parseAdditionalUserInput, at as parseInputData, ao as parseOutputData, ax as parseSessionInput, as as parseSessionOutput, au as parseUserInput, aq as parseUserOutput, am as sessionSchema, al as userSchema, an as verificationSchema } from './auth-C42JqOR9.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import 'kysely';
|
|
5
|
-
import 'better-call';
|
|
6
|
-
import './helper-Bi8FQwDD.js';
|
|
7
|
-
import './index-moQjyfmm.js';
|
|
8
|
-
import 'jose';
|
|
9
|
-
import 'better-sqlite3';
|
|
10
|
-
|
|
11
|
-
declare function getWithHooks(adapter: Adapter, ctx: {
|
|
12
|
-
options: BetterAuthOptions;
|
|
13
|
-
hooks: Exclude<BetterAuthOptions["databaseHooks"], undefined>[];
|
|
14
|
-
}): {
|
|
15
|
-
createWithHooks: <T extends Record<string, any>>(data: T, model: "session" | "user" | "account" | "verification", customCreateFn?: {
|
|
16
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
17
|
-
executeMainFn?: boolean;
|
|
18
|
-
}) => Promise<any>;
|
|
19
|
-
updateWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "session" | "user" | "account" | "verification", customUpdateFn?: {
|
|
20
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
21
|
-
executeMainFn?: boolean;
|
|
22
|
-
}) => Promise<any>;
|
|
23
|
-
updateManyWithHooks: <T extends Record<string, any>>(data: any, where: Where[], model: "session" | "user" | "account" | "verification", customUpdateFn?: {
|
|
24
|
-
fn: (data: Record<string, any>) => void | Promise<any>;
|
|
25
|
-
executeMainFn?: boolean;
|
|
26
|
-
}) => Promise<any>;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
declare function toZodSchema(fields: Record<string, FieldAttribute>): z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
30
|
-
|
|
31
|
-
declare function getAdapter(options: BetterAuthOptions): Promise<Adapter>;
|
|
32
|
-
declare function convertToDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T): T;
|
|
33
|
-
declare function convertFromDB<T extends Record<string, any>>(fields: Record<string, FieldAttribute>, values: T | null): T | null;
|
|
34
|
-
|
|
35
|
-
declare function matchType(columnDataType: string, fieldType: FieldType, dbType: KyselyDatabaseType): boolean;
|
|
36
|
-
declare function getMigrations(config: BetterAuthOptions): Promise<{
|
|
37
|
-
toBeCreated: {
|
|
38
|
-
table: string;
|
|
39
|
-
fields: Record<string, FieldAttribute>;
|
|
40
|
-
order: number;
|
|
41
|
-
}[];
|
|
42
|
-
toBeAdded: {
|
|
43
|
-
table: string;
|
|
44
|
-
fields: Record<string, FieldAttribute>;
|
|
45
|
-
order: number;
|
|
46
|
-
}[];
|
|
47
|
-
runMigrations: () => Promise<void>;
|
|
48
|
-
compileMigrations: () => Promise<string>;
|
|
49
|
-
}>;
|
|
50
|
-
|
|
51
|
-
declare function getSchema(config: BetterAuthOptions): Record<string, {
|
|
52
|
-
fields: Record<string, FieldAttribute>;
|
|
53
|
-
order: number;
|
|
54
|
-
}>;
|
|
55
|
-
|
|
56
|
-
export { FieldAttribute, FieldType, convertFromDB, convertToDB, getAdapter, getMigrations, getSchema, getWithHooks, matchType, toZodSchema };
|
package/dist/db.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { convertFromDB, convertToDB, createFieldAttribute, createInternalAdapter, getAdapter, getAuthTables, getMigrations, getSchema, getWithHooks, matchType, toZodSchema } from './chunk-EQYRCOOF.js';
|
|
2
|
-
export { accountSchema, getAllFields, mergeSchema, parseAccountInput, parseAccountOutput, parseAdditionalUserInput, parseInputData, parseOutputData, parseSessionInput, parseSessionOutput, parseUserInput, parseUserOutput, sessionSchema, userSchema, verificationSchema } from './chunk-HZBNUY7E.js';
|
|
3
|
-
import './chunk-KLDFBLYL.js';
|
|
4
|
-
import './chunk-ZFUBVSZD.js';
|
|
5
|
-
import './chunk-SK6Y2YH6.js';
|
|
6
|
-
import './chunk-3XTQSPPA.js';
|
|
7
|
-
import './chunk-DBPOZRMS.js';
|
|
8
|
-
import './chunk-53IPO2PJ.js';
|
|
9
|
-
import './chunk-FURNA6HY.js';
|
|
10
|
-
import './chunk-TQQSPPNA.js';
|
|
11
|
-
import './chunk-UNWCXKMP.js';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Primitive } from 'zod';
|
|
2
|
-
|
|
3
|
-
type LiteralString = "" | (string & Record<never, never>);
|
|
4
|
-
type LiteralNumber = 0 | (number & Record<never, never>);
|
|
5
|
-
type OmitId<T extends {
|
|
6
|
-
id: unknown;
|
|
7
|
-
}> = Omit<T, "id">;
|
|
8
|
-
type Prettify<T> = Omit<T, never>;
|
|
9
|
-
type PreserveJSDoc<T> = {
|
|
10
|
-
[K in keyof T]: T[K];
|
|
11
|
-
} & {};
|
|
12
|
-
type PrettifyDeep<T> = {
|
|
13
|
-
[K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? T[K] extends Array<any> ? T[K] : T[K] extends Date ? T[K] : PrettifyDeep<T[K]> : T[K];
|
|
14
|
-
} & {};
|
|
15
|
-
type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
|
|
16
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
17
|
-
type RequiredKeysOf<BaseType extends object> = Exclude<{
|
|
18
|
-
[Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]> ? Key : never;
|
|
19
|
-
}[keyof BaseType], undefined>;
|
|
20
|
-
type HasRequiredKeys<BaseType extends object> = RequiredKeysOf<BaseType> extends never ? false : true;
|
|
21
|
-
type WithoutEmpty<T> = T extends T ? ({} extends T ? never : T) : never;
|
|
22
|
-
type StripEmptyObjects<T> = T extends {
|
|
23
|
-
[K in keyof T]: never;
|
|
24
|
-
} ? never : T extends object ? {
|
|
25
|
-
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
26
|
-
} : T;
|
|
27
|
-
type DeepPartial<T> = T extends Function ? T : T extends object ? {
|
|
28
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
-
} : T;
|
|
30
|
-
type Expand<T> = T extends infer O ? {
|
|
31
|
-
[K in keyof O]: O[K];
|
|
32
|
-
} : never;
|
|
33
|
-
|
|
34
|
-
export type { DeepPartial as D, Expand as E, HasRequiredKeys as H, LiteralString as L, OmitId as O, PrettifyDeep as P, RequiredKeysOf as R, StripEmptyObjects as S, UnionToIntersection as U, WithoutEmpty as W, LiteralNumber as a, Prettify as b, PreserveJSDoc as c, LiteralUnion as d };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Primitive } from 'zod';
|
|
2
|
-
|
|
3
|
-
type LiteralString = "" | (string & Record<never, never>);
|
|
4
|
-
type LiteralNumber = 0 | (number & Record<never, never>);
|
|
5
|
-
type OmitId<T extends {
|
|
6
|
-
id: unknown;
|
|
7
|
-
}> = Omit<T, "id">;
|
|
8
|
-
type Prettify<T> = Omit<T, never>;
|
|
9
|
-
type PreserveJSDoc<T> = {
|
|
10
|
-
[K in keyof T]: T[K];
|
|
11
|
-
} & {};
|
|
12
|
-
type PrettifyDeep<T> = {
|
|
13
|
-
[K in keyof T]: T[K] extends (...args: any[]) => any ? T[K] : T[K] extends object ? T[K] extends Array<any> ? T[K] : T[K] extends Date ? T[K] : PrettifyDeep<T[K]> : T[K];
|
|
14
|
-
} & {};
|
|
15
|
-
type LiteralUnion<LiteralType, BaseType extends Primitive> = LiteralType | (BaseType & Record<never, never>);
|
|
16
|
-
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
17
|
-
type RequiredKeysOf<BaseType extends object> = Exclude<{
|
|
18
|
-
[Key in keyof BaseType]: BaseType extends Record<Key, BaseType[Key]> ? Key : never;
|
|
19
|
-
}[keyof BaseType], undefined>;
|
|
20
|
-
type HasRequiredKeys<BaseType extends object> = RequiredKeysOf<BaseType> extends never ? false : true;
|
|
21
|
-
type WithoutEmpty<T> = T extends T ? ({} extends T ? never : T) : never;
|
|
22
|
-
type StripEmptyObjects<T> = T extends {
|
|
23
|
-
[K in keyof T]: never;
|
|
24
|
-
} ? never : T extends object ? {
|
|
25
|
-
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
26
|
-
} : T;
|
|
27
|
-
type DeepPartial<T> = T extends Function ? T : T extends object ? {
|
|
28
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
-
} : T;
|
|
30
|
-
type Expand<T> = T extends infer O ? {
|
|
31
|
-
[K in keyof O]: O[K];
|
|
32
|
-
} : never;
|
|
33
|
-
|
|
34
|
-
export type { DeepPartial as D, Expand as E, HasRequiredKeys as H, LiteralString as L, OmitId as O, PrettifyDeep as P, RequiredKeysOf as R, StripEmptyObjects as S, UnionToIntersection as U, WithoutEmpty as W, LiteralNumber as a, Prettify as b, PreserveJSDoc as c, LiteralUnion as d };
|