better-auth 1.2.0-beta.16 → 1.2.0-beta.19
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 +98 -101
- 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 +271 -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 +269 -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 +180 -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 +334 -0
- package/dist/plugins/organization/client.d.ts.map +1 -0
- package/dist/plugins/organization/error-codes.d.ts +31 -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 +789 -0
- package/dist/plugins/organization/routes/crud-org.d.ts.map +1 -0
- package/dist/plugins/organization/routes/crud-team.d.ts +348 -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.0YzTc-oD.mjs +349 -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.BsGMIUYy.cjs +144 -0
- package/dist/shared/better-auth.BtJHz7JQ.mjs +21 -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.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.CuZPmFi8.mjs +30 -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.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.Ffl9CCnn.mjs +2293 -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.am4QbDex.cjs +37 -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.sN5DUs9C.cjs +351 -0
- package/dist/shared/better-auth.tB5eU6EY.mjs +21 -0
- package/dist/shared/better-auth.uUYJdWSr.cjs +2319 -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 +1217 -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 +1195 -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 +794 -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 +220 -218
- 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-B79moDlX.d.cts +0 -17513
- package/dist/auth-Kwau5-bb.d.ts +0 -17513
- package/dist/chunk-24JP47BJ.cjs +0 -514
- package/dist/chunk-2HPSCSV7.cjs +0 -8
- package/dist/chunk-2NRCW4MM.cjs +0 -276
- package/dist/chunk-36B4OZI7.cjs +0 -108
- package/dist/chunk-3XTQSPPA.js +0 -6
- package/dist/chunk-3YL6DMDX.cjs +0 -579
- package/dist/chunk-42QFDXM5.js +0 -168
- package/dist/chunk-4O3PNNJ5.js +0 -22
- package/dist/chunk-4YAPAKAB.cjs +0 -73
- package/dist/chunk-53IPO2PJ.js +0 -22
- package/dist/chunk-5ILVRGRP.cjs +0 -1066
- package/dist/chunk-6AFMN526.cjs +0 -45
- package/dist/chunk-6YBMZW4E.js +0 -274
- package/dist/chunk-74IS7WMH.js +0 -89
- package/dist/chunk-7KKMYVNZ.js +0 -42
- package/dist/chunk-7T4E7I7S.cjs +0 -1084
- package/dist/chunk-BAFWUSRZ.cjs +0 -277
- package/dist/chunk-BVPUB4ND.cjs +0 -2225
- package/dist/chunk-CAT6XI46.js +0 -275
- package/dist/chunk-CCKQSGIR.cjs +0 -8
- package/dist/chunk-CDEGAT2X.cjs +0 -38
- package/dist/chunk-CF7NIEGH.cjs +0 -38
- package/dist/chunk-COHCMRZR.cjs +0 -448
- package/dist/chunk-CWVCOYJV.cjs +0 -28
- package/dist/chunk-DINP2XPU.js +0 -677
- package/dist/chunk-DMXPQ4IV.js +0 -98
- package/dist/chunk-EHFDU6IF.cjs +0 -45
- package/dist/chunk-ENJOFIER.js +0 -212
- package/dist/chunk-EORFSCDW.cjs +0 -91
- package/dist/chunk-FDBO3FVG.cjs +0 -1135
- package/dist/chunk-FURNA6HY.js +0 -6
- package/dist/chunk-GBOJH32L.cjs +0 -82
- package/dist/chunk-GEW4G4Y7.cjs +0 -1007
- package/dist/chunk-GYDUPG7X.js +0 -36
- package/dist/chunk-H74YRRNV.cjs +0 -92
- package/dist/chunk-HC2USFT2.cjs +0 -214
- package/dist/chunk-HVHN3Y2L.js +0 -126
- package/dist/chunk-IGDRZOHV.js +0 -134
- package/dist/chunk-IX6WCVID.cjs +0 -1971
- package/dist/chunk-J6F3TU5V.js +0 -1082
- package/dist/chunk-JEYF2ARX.js +0 -21
- package/dist/chunk-JOH6QBAP.cjs +0 -362
- package/dist/chunk-JUPDDQC4.cjs +0 -23
- package/dist/chunk-KEQSKZI2.js +0 -239
- package/dist/chunk-KIQWU6Z4.cjs +0 -278
- package/dist/chunk-KLDFBLYL.js +0 -85
- package/dist/chunk-LJJIONSX.cjs +0 -45
- package/dist/chunk-LKPN4Y5Z.js +0 -31
- package/dist/chunk-M5XMVH2M.js +0 -1114
- package/dist/chunk-NC57F4RJ.cjs +0 -3703
- package/dist/chunk-NSBXOWUM.js +0 -1064
- package/dist/chunk-NTBGYF7H.cjs +0 -241
- package/dist/chunk-OA7Z7IZT.cjs +0 -24
- package/dist/chunk-PEZRSDZS.cjs +0 -23
- package/dist/chunk-Q4E77C7B.js +0 -1005
- package/dist/chunk-Q4XYQ7DC.js +0 -156
- package/dist/chunk-QUVBQTGS.js +0 -274
- package/dist/chunk-R42K7GPF.js +0 -132
- package/dist/chunk-REY76NPL.cjs +0 -136
- package/dist/chunk-RJUH2LYP.js +0 -577
- package/dist/chunk-RXJOBUFI.js +0 -43
- package/dist/chunk-S5UORXJH.cjs +0 -65
- package/dist/chunk-SENLFMI2.js +0 -142
- package/dist/chunk-SVC7H7K4.cjs +0 -138
- package/dist/chunk-TBGNSOTL.js +0 -1955
- package/dist/chunk-THOAPE5K.js +0 -70
- package/dist/chunk-TJWK22XS.js +0 -446
- package/dist/chunk-TOKZL3ZI.js +0 -42
- package/dist/chunk-TOSIKQ2I.cjs +0 -144
- package/dist/chunk-TQQSPPNA.js +0 -41
- package/dist/chunk-U4I57HJ4.cjs +0 -129
- package/dist/chunk-UNWCXKMP.js +0 -20
- package/dist/chunk-UQC2FUXC.cjs +0 -224
- package/dist/chunk-VOUL66AG.js +0 -512
- package/dist/chunk-VXYIYABQ.cjs +0 -46
- package/dist/chunk-WBFH3ZYN.js +0 -352
- package/dist/chunk-WMXBA6LX.js +0 -11
- package/dist/chunk-WVVF7K6P.js +0 -79
- package/dist/chunk-WZ6OIVJK.js +0 -207
- package/dist/chunk-X3J3BWQR.js +0 -2223
- package/dist/chunk-XDMVO6BH.cjs +0 -170
- package/dist/chunk-XFCIANZX.js +0 -60
- package/dist/chunk-XRF73UDB.js +0 -3654
- package/dist/chunk-Y64QYLA4.cjs +0 -158
- package/dist/chunk-Y6QT4U6Z.cjs +0 -679
- package/dist/chunk-ZBKCS3KP.cjs +0 -13
- package/dist/client/plugins.cjs +0 -572
- package/dist/client/plugins.d.cts +0 -758
- package/dist/client/plugins.d.ts +0 -758
- package/dist/client/plugins.js +0 -549
- 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-DFk-nDjL.d.cts +0 -29
- package/dist/helper-DFk-nDjL.d.ts +0 -29
- package/dist/hide-metadata-DEHJp1rk.d.cts +0 -5
- package/dist/hide-metadata-DEHJp1rk.d.ts +0 -5
- package/dist/index-BKfxieJM.d.ts +0 -1500
- package/dist/index-Bo3yOPaO.d.cts +0 -1500
- package/dist/index-CpB6VxxI.d.ts +0 -5116
- package/dist/index-UqpJkXzo.d.cts +0 -5116
- package/dist/index.d.cts +0 -26
- package/dist/index.js +0 -217
- package/dist/next-js.cjs +0 -100
- package/dist/next-js.d.cts +0 -34
- package/dist/next-js.d.ts +0 -34
- package/dist/next-js.js +0 -97
- 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 -15
- package/dist/plugins/access.d.cts +0 -42
- package/dist/plugins/access.d.ts +0 -42
- package/dist/plugins/access.js +0 -2
- package/dist/plugins/admin/access.cjs +0 -28
- package/dist/plugins/admin/access.d.cts +0 -116
- package/dist/plugins/admin/access.d.ts +0 -116
- package/dist/plugins/admin/access.js +0 -3
- package/dist/plugins/admin.cjs +0 -28
- package/dist/plugins/admin.d.cts +0 -1398
- package/dist/plugins/admin.d.ts +0 -1398
- package/dist/plugins/admin.js +0 -19
- 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/captcha.cjs +0 -10
- package/dist/plugins/captcha.d.cts +0 -21
- package/dist/plugins/captcha.d.ts +0 -21
- package/dist/plugins/captcha.js +0 -1
- 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 -615
- package/dist/plugins/email-otp.d.ts +0 -615
- 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 -977
- package/dist/plugins/oidc-provider.d.ts +0 -977
- 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 -260
- package/dist/plugins/open-api.d.ts +0 -260
- package/dist/plugins/open-api.js +0 -17
- package/dist/plugins/organization.cjs +0 -27
- package/dist/plugins/organization.d.cts +0 -10
- package/dist/plugins/organization.d.ts +0 -10
- package/dist/plugins/organization.js +0 -18
- package/dist/plugins/passkey.cjs +0 -799
- package/dist/plugins/passkey.d.cts +0 -833
- package/dist/plugins/passkey.d.ts +0 -833
- package/dist/plugins/passkey.js +0 -797
- 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 -566
- package/dist/plugins/sso.d.cts +0 -496
- package/dist/plugins/sso.d.ts +0 -496
- package/dist/plugins/sso.js +0 -564
- 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 -139
- package/dist/plugins.d.cts +0 -164
- package/dist/plugins.d.ts +0 -164
- package/dist/plugins.js +0 -42
- 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-C7IUhB_Z.d.cts +0 -22
- package/dist/state-D32_8TuF.d.ts +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 -137
- package/dist/types.d.ts +0 -137
- 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
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { OrganizationOptions } from "../organization";
|
|
3
|
+
import type { InferInvitation, InferMember, Organization, Team } from "../schema";
|
|
4
|
+
export declare const createOrganization: {
|
|
5
|
+
<C extends [{
|
|
6
|
+
body: {
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
metadata?: Record<string, any> | undefined;
|
|
10
|
+
userId?: string | undefined;
|
|
11
|
+
logo?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
method?: "POST" | undefined;
|
|
14
|
+
query?: Record<string, any> | undefined;
|
|
15
|
+
params?: Record<string, any> | undefined;
|
|
16
|
+
request?: Request | undefined;
|
|
17
|
+
headers?: HeadersInit | undefined;
|
|
18
|
+
asResponse?: boolean | undefined;
|
|
19
|
+
returnHeaders?: boolean | undefined;
|
|
20
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
21
|
+
path?: string | undefined;
|
|
22
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
23
|
+
asResponse: true;
|
|
24
|
+
}] ? Response : C extends [{
|
|
25
|
+
returnHeaders: true;
|
|
26
|
+
}] ? {
|
|
27
|
+
headers: Headers;
|
|
28
|
+
response: {
|
|
29
|
+
metadata: any;
|
|
30
|
+
members: {
|
|
31
|
+
user: {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
email: string;
|
|
35
|
+
image: string | null | undefined;
|
|
36
|
+
};
|
|
37
|
+
userId: string;
|
|
38
|
+
organizationId: string;
|
|
39
|
+
role: string;
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
createdAt?: Date | undefined;
|
|
42
|
+
teamId?: string | undefined;
|
|
43
|
+
}[];
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
slug: string;
|
|
48
|
+
logo?: string | null | undefined;
|
|
49
|
+
} | null;
|
|
50
|
+
} : {
|
|
51
|
+
metadata: any;
|
|
52
|
+
members: {
|
|
53
|
+
user: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
email: string;
|
|
57
|
+
image: string | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
userId: string;
|
|
60
|
+
organizationId: string;
|
|
61
|
+
role: string;
|
|
62
|
+
id?: string | undefined;
|
|
63
|
+
createdAt?: Date | undefined;
|
|
64
|
+
teamId?: string | undefined;
|
|
65
|
+
}[];
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
createdAt: Date;
|
|
69
|
+
slug: string;
|
|
70
|
+
logo?: string | null | undefined;
|
|
71
|
+
} | null>;
|
|
72
|
+
options: {
|
|
73
|
+
method: "POST";
|
|
74
|
+
body: z.ZodObject<{
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
slug: z.ZodString;
|
|
77
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
79
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
name: string;
|
|
82
|
+
slug: string;
|
|
83
|
+
metadata?: Record<string, any> | undefined;
|
|
84
|
+
userId?: string | undefined;
|
|
85
|
+
logo?: string | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
name: string;
|
|
88
|
+
slug: string;
|
|
89
|
+
metadata?: Record<string, any> | undefined;
|
|
90
|
+
userId?: string | undefined;
|
|
91
|
+
logo?: string | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
use: ((inputContext: {
|
|
94
|
+
body?: any;
|
|
95
|
+
query?: Record<string, any> | undefined;
|
|
96
|
+
request?: Request | undefined;
|
|
97
|
+
headers?: Headers | undefined;
|
|
98
|
+
asResponse?: boolean | undefined;
|
|
99
|
+
returnHeaders?: boolean | undefined;
|
|
100
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
101
|
+
}) => Promise<{
|
|
102
|
+
orgOptions: OrganizationOptions;
|
|
103
|
+
roles: typeof import("../access").defaultRoles & {
|
|
104
|
+
[key: string]: import("../../access").Role<{}>;
|
|
105
|
+
};
|
|
106
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
107
|
+
session: import("../../..").Session & {
|
|
108
|
+
activeOrganizationId?: string;
|
|
109
|
+
};
|
|
110
|
+
user: import("../../..").User;
|
|
111
|
+
}>;
|
|
112
|
+
}>)[];
|
|
113
|
+
metadata: {
|
|
114
|
+
openapi: {
|
|
115
|
+
description: string;
|
|
116
|
+
responses: {
|
|
117
|
+
"200": {
|
|
118
|
+
description: string;
|
|
119
|
+
content: {
|
|
120
|
+
"application/json": {
|
|
121
|
+
schema: {
|
|
122
|
+
type: "object";
|
|
123
|
+
description: string;
|
|
124
|
+
$ref: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
} & {
|
|
133
|
+
use: any[];
|
|
134
|
+
};
|
|
135
|
+
path: "/organization/create";
|
|
136
|
+
};
|
|
137
|
+
export declare const checkOrganizationSlug: {
|
|
138
|
+
<C extends [{
|
|
139
|
+
body: {
|
|
140
|
+
slug: string;
|
|
141
|
+
};
|
|
142
|
+
method?: "POST" | undefined;
|
|
143
|
+
query?: Record<string, any> | undefined;
|
|
144
|
+
params?: Record<string, any> | undefined;
|
|
145
|
+
request?: Request | undefined;
|
|
146
|
+
headers?: HeadersInit | undefined;
|
|
147
|
+
asResponse?: boolean | undefined;
|
|
148
|
+
returnHeaders?: boolean | undefined;
|
|
149
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
150
|
+
path?: string | undefined;
|
|
151
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
152
|
+
asResponse: true;
|
|
153
|
+
}] ? Response : C extends [{
|
|
154
|
+
returnHeaders: true;
|
|
155
|
+
}] ? {
|
|
156
|
+
headers: Headers;
|
|
157
|
+
response: {
|
|
158
|
+
status: boolean;
|
|
159
|
+
};
|
|
160
|
+
} : {
|
|
161
|
+
status: boolean;
|
|
162
|
+
}>;
|
|
163
|
+
options: {
|
|
164
|
+
method: "POST";
|
|
165
|
+
body: z.ZodObject<{
|
|
166
|
+
slug: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
slug: string;
|
|
169
|
+
}, {
|
|
170
|
+
slug: string;
|
|
171
|
+
}>;
|
|
172
|
+
use: (((inputContext: {
|
|
173
|
+
body?: any;
|
|
174
|
+
query?: Record<string, any> | undefined;
|
|
175
|
+
request?: Request | undefined;
|
|
176
|
+
headers?: Headers | undefined;
|
|
177
|
+
asResponse?: boolean | undefined;
|
|
178
|
+
returnHeaders?: boolean | undefined;
|
|
179
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
180
|
+
}) => Promise<{
|
|
181
|
+
session: {
|
|
182
|
+
session: Record<string, any> & {
|
|
183
|
+
id: string;
|
|
184
|
+
createdAt: Date;
|
|
185
|
+
updatedAt: Date;
|
|
186
|
+
userId: string;
|
|
187
|
+
expiresAt: Date;
|
|
188
|
+
token: string;
|
|
189
|
+
ipAddress?: string | null | undefined;
|
|
190
|
+
userAgent?: string | null | undefined;
|
|
191
|
+
};
|
|
192
|
+
user: Record<string, any> & {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
email: string;
|
|
196
|
+
emailVerified: boolean;
|
|
197
|
+
createdAt: Date;
|
|
198
|
+
updatedAt: Date;
|
|
199
|
+
image?: string | null | undefined;
|
|
200
|
+
};
|
|
201
|
+
} | null;
|
|
202
|
+
}>) | ((inputContext: {
|
|
203
|
+
body?: any;
|
|
204
|
+
query?: Record<string, any> | undefined;
|
|
205
|
+
request?: Request | undefined;
|
|
206
|
+
headers?: Headers | undefined;
|
|
207
|
+
asResponse?: boolean | undefined;
|
|
208
|
+
returnHeaders?: boolean | undefined;
|
|
209
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
210
|
+
}) => Promise<{
|
|
211
|
+
orgOptions: OrganizationOptions;
|
|
212
|
+
roles: typeof import("../access").defaultRoles & {
|
|
213
|
+
[key: string]: import("../../access").Role<{}>;
|
|
214
|
+
};
|
|
215
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
216
|
+
session: import("../../..").Session & {
|
|
217
|
+
activeOrganizationId?: string;
|
|
218
|
+
};
|
|
219
|
+
user: import("../../..").User;
|
|
220
|
+
}>;
|
|
221
|
+
}>))[];
|
|
222
|
+
} & {
|
|
223
|
+
use: any[];
|
|
224
|
+
};
|
|
225
|
+
path: "/organization/check-slug";
|
|
226
|
+
};
|
|
227
|
+
export declare const updateOrganization: {
|
|
228
|
+
<C extends [{
|
|
229
|
+
body: {
|
|
230
|
+
data: {
|
|
231
|
+
metadata?: Record<string, any> | undefined;
|
|
232
|
+
name?: string | undefined;
|
|
233
|
+
slug?: string | undefined;
|
|
234
|
+
logo?: string | undefined;
|
|
235
|
+
};
|
|
236
|
+
organizationId?: string | undefined;
|
|
237
|
+
};
|
|
238
|
+
headers: HeadersInit;
|
|
239
|
+
method?: "POST" | undefined;
|
|
240
|
+
query?: Record<string, any> | undefined;
|
|
241
|
+
params?: Record<string, any> | undefined;
|
|
242
|
+
request?: Request | undefined;
|
|
243
|
+
asResponse?: boolean | undefined;
|
|
244
|
+
returnHeaders?: boolean | undefined;
|
|
245
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
246
|
+
path?: string | undefined;
|
|
247
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
248
|
+
asResponse: true;
|
|
249
|
+
}] ? Response : C extends [{
|
|
250
|
+
returnHeaders: true;
|
|
251
|
+
}] ? {
|
|
252
|
+
headers: Headers;
|
|
253
|
+
response: {
|
|
254
|
+
metadata: Record<string, any> | undefined;
|
|
255
|
+
id: string;
|
|
256
|
+
name: string;
|
|
257
|
+
createdAt: Date;
|
|
258
|
+
slug: string;
|
|
259
|
+
logo?: string | null | undefined;
|
|
260
|
+
} | null;
|
|
261
|
+
} : {
|
|
262
|
+
metadata: Record<string, any> | undefined;
|
|
263
|
+
id: string;
|
|
264
|
+
name: string;
|
|
265
|
+
createdAt: Date;
|
|
266
|
+
slug: string;
|
|
267
|
+
logo?: string | null | undefined;
|
|
268
|
+
} | null>;
|
|
269
|
+
options: {
|
|
270
|
+
method: "POST";
|
|
271
|
+
body: z.ZodObject<{
|
|
272
|
+
data: z.ZodObject<{
|
|
273
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
274
|
+
slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
275
|
+
logo: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
276
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
metadata?: Record<string, any> | undefined;
|
|
279
|
+
name?: string | undefined;
|
|
280
|
+
slug?: string | undefined;
|
|
281
|
+
logo?: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
metadata?: Record<string, any> | undefined;
|
|
284
|
+
name?: string | undefined;
|
|
285
|
+
slug?: string | undefined;
|
|
286
|
+
logo?: string | undefined;
|
|
287
|
+
}>;
|
|
288
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
data: {
|
|
291
|
+
metadata?: Record<string, any> | undefined;
|
|
292
|
+
name?: string | undefined;
|
|
293
|
+
slug?: string | undefined;
|
|
294
|
+
logo?: string | undefined;
|
|
295
|
+
};
|
|
296
|
+
organizationId?: string | undefined;
|
|
297
|
+
}, {
|
|
298
|
+
data: {
|
|
299
|
+
metadata?: Record<string, any> | undefined;
|
|
300
|
+
name?: string | undefined;
|
|
301
|
+
slug?: string | undefined;
|
|
302
|
+
logo?: string | undefined;
|
|
303
|
+
};
|
|
304
|
+
organizationId?: string | undefined;
|
|
305
|
+
}>;
|
|
306
|
+
requireHeaders: true;
|
|
307
|
+
use: ((inputContext: {
|
|
308
|
+
body?: any;
|
|
309
|
+
query?: Record<string, any> | undefined;
|
|
310
|
+
request?: Request | undefined;
|
|
311
|
+
headers?: Headers | undefined;
|
|
312
|
+
asResponse?: boolean | undefined;
|
|
313
|
+
returnHeaders?: boolean | undefined;
|
|
314
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
315
|
+
}) => Promise<{
|
|
316
|
+
orgOptions: OrganizationOptions;
|
|
317
|
+
roles: typeof import("../access").defaultRoles & {
|
|
318
|
+
[key: string]: import("../../access").Role<{}>;
|
|
319
|
+
};
|
|
320
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
321
|
+
session: import("../../..").Session & {
|
|
322
|
+
activeOrganizationId?: string;
|
|
323
|
+
};
|
|
324
|
+
user: import("../../..").User;
|
|
325
|
+
}>;
|
|
326
|
+
}>)[];
|
|
327
|
+
metadata: {
|
|
328
|
+
openapi: {
|
|
329
|
+
description: string;
|
|
330
|
+
responses: {
|
|
331
|
+
"200": {
|
|
332
|
+
description: string;
|
|
333
|
+
content: {
|
|
334
|
+
"application/json": {
|
|
335
|
+
schema: {
|
|
336
|
+
type: "object";
|
|
337
|
+
description: string;
|
|
338
|
+
$ref: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
} & {
|
|
347
|
+
use: any[];
|
|
348
|
+
};
|
|
349
|
+
path: "/organization/update";
|
|
350
|
+
};
|
|
351
|
+
export declare const deleteOrganization: {
|
|
352
|
+
<C extends [{
|
|
353
|
+
body: {
|
|
354
|
+
organizationId: string;
|
|
355
|
+
};
|
|
356
|
+
headers: HeadersInit;
|
|
357
|
+
method?: "POST" | undefined;
|
|
358
|
+
query?: Record<string, any> | undefined;
|
|
359
|
+
params?: Record<string, any> | undefined;
|
|
360
|
+
request?: Request | undefined;
|
|
361
|
+
asResponse?: boolean | undefined;
|
|
362
|
+
returnHeaders?: boolean | undefined;
|
|
363
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
364
|
+
path?: string | undefined;
|
|
365
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
366
|
+
asResponse: true;
|
|
367
|
+
}] ? Response : C extends [{
|
|
368
|
+
returnHeaders: true;
|
|
369
|
+
}] ? {
|
|
370
|
+
headers: Headers;
|
|
371
|
+
response: Organization | null;
|
|
372
|
+
} : Organization | null>;
|
|
373
|
+
options: {
|
|
374
|
+
method: "POST";
|
|
375
|
+
body: z.ZodObject<{
|
|
376
|
+
organizationId: z.ZodString;
|
|
377
|
+
}, "strip", z.ZodTypeAny, {
|
|
378
|
+
organizationId: string;
|
|
379
|
+
}, {
|
|
380
|
+
organizationId: string;
|
|
381
|
+
}>;
|
|
382
|
+
requireHeaders: true;
|
|
383
|
+
use: ((inputContext: {
|
|
384
|
+
body?: any;
|
|
385
|
+
query?: Record<string, any> | undefined;
|
|
386
|
+
request?: Request | undefined;
|
|
387
|
+
headers?: Headers | undefined;
|
|
388
|
+
asResponse?: boolean | undefined;
|
|
389
|
+
returnHeaders?: boolean | undefined;
|
|
390
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
391
|
+
}) => Promise<{
|
|
392
|
+
orgOptions: OrganizationOptions;
|
|
393
|
+
roles: typeof import("../access").defaultRoles & {
|
|
394
|
+
[key: string]: import("../../access").Role<{}>;
|
|
395
|
+
};
|
|
396
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
397
|
+
session: import("../../..").Session & {
|
|
398
|
+
activeOrganizationId?: string;
|
|
399
|
+
};
|
|
400
|
+
user: import("../../..").User;
|
|
401
|
+
}>;
|
|
402
|
+
}>)[];
|
|
403
|
+
metadata: {
|
|
404
|
+
openapi: {
|
|
405
|
+
description: string;
|
|
406
|
+
responses: {
|
|
407
|
+
"200": {
|
|
408
|
+
description: string;
|
|
409
|
+
content: {
|
|
410
|
+
"application/json": {
|
|
411
|
+
schema: {
|
|
412
|
+
type: "string";
|
|
413
|
+
description: string;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
} & {
|
|
422
|
+
use: any[];
|
|
423
|
+
};
|
|
424
|
+
path: "/organization/delete";
|
|
425
|
+
};
|
|
426
|
+
export declare const getFullOrganization: <O extends OrganizationOptions>() => {
|
|
427
|
+
<C extends [{
|
|
428
|
+
headers: HeadersInit;
|
|
429
|
+
body?: undefined;
|
|
430
|
+
method?: "GET" | undefined;
|
|
431
|
+
query?: {
|
|
432
|
+
organizationId?: string | undefined;
|
|
433
|
+
organizationSlug?: string | undefined;
|
|
434
|
+
} | undefined;
|
|
435
|
+
params?: Record<string, any> | undefined;
|
|
436
|
+
request?: Request | undefined;
|
|
437
|
+
asResponse?: boolean | undefined;
|
|
438
|
+
returnHeaders?: boolean | undefined;
|
|
439
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
440
|
+
path?: string | undefined;
|
|
441
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
442
|
+
asResponse: true;
|
|
443
|
+
}] ? Response : C extends [{
|
|
444
|
+
returnHeaders: true;
|
|
445
|
+
}] ? {
|
|
446
|
+
headers: Headers;
|
|
447
|
+
response: (O["teams"] extends {
|
|
448
|
+
enabled: true;
|
|
449
|
+
} ? {
|
|
450
|
+
members: InferMember<O>[];
|
|
451
|
+
invitations: InferInvitation<O>[];
|
|
452
|
+
teams: Team[];
|
|
453
|
+
} & {
|
|
454
|
+
id: string;
|
|
455
|
+
name: string;
|
|
456
|
+
createdAt: Date;
|
|
457
|
+
slug: string;
|
|
458
|
+
metadata?: any;
|
|
459
|
+
logo?: string | null | undefined;
|
|
460
|
+
} & Record<string, any> : {
|
|
461
|
+
members: InferMember<O>[];
|
|
462
|
+
invitations: InferInvitation<O>[];
|
|
463
|
+
} & {
|
|
464
|
+
id: string;
|
|
465
|
+
name: string;
|
|
466
|
+
createdAt: Date;
|
|
467
|
+
slug: string;
|
|
468
|
+
metadata?: any;
|
|
469
|
+
logo?: string | null | undefined;
|
|
470
|
+
} & Record<string, any>) | null;
|
|
471
|
+
} : (O["teams"] extends {
|
|
472
|
+
enabled: true;
|
|
473
|
+
} ? {
|
|
474
|
+
members: InferMember<O>[];
|
|
475
|
+
invitations: InferInvitation<O>[];
|
|
476
|
+
teams: Team[];
|
|
477
|
+
} & {
|
|
478
|
+
id: string;
|
|
479
|
+
name: string;
|
|
480
|
+
createdAt: Date;
|
|
481
|
+
slug: string;
|
|
482
|
+
metadata?: any;
|
|
483
|
+
logo?: string | null | undefined;
|
|
484
|
+
} & Record<string, any> : {
|
|
485
|
+
members: InferMember<O>[];
|
|
486
|
+
invitations: InferInvitation<O>[];
|
|
487
|
+
} & {
|
|
488
|
+
id: string;
|
|
489
|
+
name: string;
|
|
490
|
+
createdAt: Date;
|
|
491
|
+
slug: string;
|
|
492
|
+
metadata?: any;
|
|
493
|
+
logo?: string | null | undefined;
|
|
494
|
+
} & Record<string, any>) | null>;
|
|
495
|
+
options: {
|
|
496
|
+
method: "GET";
|
|
497
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
498
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
499
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
organizationId?: string | undefined;
|
|
502
|
+
organizationSlug?: string | undefined;
|
|
503
|
+
}, {
|
|
504
|
+
organizationId?: string | undefined;
|
|
505
|
+
organizationSlug?: string | undefined;
|
|
506
|
+
}>>;
|
|
507
|
+
requireHeaders: true;
|
|
508
|
+
use: (((inputContext: {
|
|
509
|
+
body?: any;
|
|
510
|
+
query?: Record<string, any> | undefined;
|
|
511
|
+
request?: Request | undefined;
|
|
512
|
+
headers?: Headers | undefined;
|
|
513
|
+
asResponse?: boolean | undefined;
|
|
514
|
+
returnHeaders?: boolean | undefined;
|
|
515
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
516
|
+
}) => Promise<{
|
|
517
|
+
orgOptions: OrganizationOptions;
|
|
518
|
+
roles: typeof import("../access").defaultRoles & {
|
|
519
|
+
[key: string]: import("../../access").Role<{}>;
|
|
520
|
+
};
|
|
521
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
522
|
+
session: import("../../..").Session & {
|
|
523
|
+
activeOrganizationId?: string;
|
|
524
|
+
};
|
|
525
|
+
user: import("../../..").User;
|
|
526
|
+
}>;
|
|
527
|
+
}>) | ((inputContext: {
|
|
528
|
+
body?: any;
|
|
529
|
+
query?: Record<string, any> | undefined;
|
|
530
|
+
request?: Request | undefined;
|
|
531
|
+
headers?: Headers | undefined;
|
|
532
|
+
asResponse?: boolean | undefined;
|
|
533
|
+
returnHeaders?: boolean | undefined;
|
|
534
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
535
|
+
}) => Promise<{
|
|
536
|
+
session: {
|
|
537
|
+
session: import("../../..").Session & {
|
|
538
|
+
activeOrganizationId?: string;
|
|
539
|
+
};
|
|
540
|
+
user: import("../../..").User;
|
|
541
|
+
};
|
|
542
|
+
}>))[];
|
|
543
|
+
metadata: {
|
|
544
|
+
openapi: {
|
|
545
|
+
description: string;
|
|
546
|
+
responses: {
|
|
547
|
+
"200": {
|
|
548
|
+
description: string;
|
|
549
|
+
content: {
|
|
550
|
+
"application/json": {
|
|
551
|
+
schema: {
|
|
552
|
+
type: "object";
|
|
553
|
+
description: string;
|
|
554
|
+
$ref: string;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
};
|
|
562
|
+
} & {
|
|
563
|
+
use: any[];
|
|
564
|
+
};
|
|
565
|
+
path: "/organization/get-full-organization";
|
|
566
|
+
};
|
|
567
|
+
export declare const setActiveOrganization: <O extends OrganizationOptions>() => {
|
|
568
|
+
<C extends [{
|
|
569
|
+
body: {
|
|
570
|
+
organizationId?: string | null | undefined;
|
|
571
|
+
organizationSlug?: string | undefined;
|
|
572
|
+
};
|
|
573
|
+
method?: "POST" | undefined;
|
|
574
|
+
query?: Record<string, any> | undefined;
|
|
575
|
+
params?: Record<string, any> | undefined;
|
|
576
|
+
request?: Request | undefined;
|
|
577
|
+
headers?: HeadersInit | undefined;
|
|
578
|
+
asResponse?: boolean | undefined;
|
|
579
|
+
returnHeaders?: boolean | undefined;
|
|
580
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
581
|
+
path?: string | undefined;
|
|
582
|
+
}]>(...inputCtx: C): Promise<C extends [{
|
|
583
|
+
asResponse: true;
|
|
584
|
+
}] ? Response : C extends [{
|
|
585
|
+
returnHeaders: true;
|
|
586
|
+
}] ? {
|
|
587
|
+
headers: Headers;
|
|
588
|
+
response: (O["teams"] extends {
|
|
589
|
+
enabled: true;
|
|
590
|
+
} ? {
|
|
591
|
+
members: InferMember<O>[];
|
|
592
|
+
invitations: InferInvitation<O>[];
|
|
593
|
+
teams: Team[];
|
|
594
|
+
} & {
|
|
595
|
+
id: string;
|
|
596
|
+
name: string;
|
|
597
|
+
createdAt: Date;
|
|
598
|
+
slug: string;
|
|
599
|
+
metadata?: any;
|
|
600
|
+
logo?: string | null | undefined;
|
|
601
|
+
} & Record<string, any> : {
|
|
602
|
+
members: InferMember<O>[];
|
|
603
|
+
invitations: InferInvitation<O>[];
|
|
604
|
+
} & {
|
|
605
|
+
id: string;
|
|
606
|
+
name: string;
|
|
607
|
+
createdAt: Date;
|
|
608
|
+
slug: string;
|
|
609
|
+
metadata?: any;
|
|
610
|
+
logo?: string | null | undefined;
|
|
611
|
+
} & Record<string, any>) | null;
|
|
612
|
+
} : (O["teams"] extends {
|
|
613
|
+
enabled: true;
|
|
614
|
+
} ? {
|
|
615
|
+
members: InferMember<O>[];
|
|
616
|
+
invitations: InferInvitation<O>[];
|
|
617
|
+
teams: Team[];
|
|
618
|
+
} & {
|
|
619
|
+
id: string;
|
|
620
|
+
name: string;
|
|
621
|
+
createdAt: Date;
|
|
622
|
+
slug: string;
|
|
623
|
+
metadata?: any;
|
|
624
|
+
logo?: string | null | undefined;
|
|
625
|
+
} & Record<string, any> : {
|
|
626
|
+
members: InferMember<O>[];
|
|
627
|
+
invitations: InferInvitation<O>[];
|
|
628
|
+
} & {
|
|
629
|
+
id: string;
|
|
630
|
+
name: string;
|
|
631
|
+
createdAt: Date;
|
|
632
|
+
slug: string;
|
|
633
|
+
metadata?: any;
|
|
634
|
+
logo?: string | null | undefined;
|
|
635
|
+
} & Record<string, any>) | null>;
|
|
636
|
+
options: {
|
|
637
|
+
method: "POST";
|
|
638
|
+
body: z.ZodObject<{
|
|
639
|
+
organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
640
|
+
organizationSlug: z.ZodOptional<z.ZodString>;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
organizationId?: string | null | undefined;
|
|
643
|
+
organizationSlug?: string | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
organizationId?: string | null | undefined;
|
|
646
|
+
organizationSlug?: string | undefined;
|
|
647
|
+
}>;
|
|
648
|
+
use: (((inputContext: {
|
|
649
|
+
body?: any;
|
|
650
|
+
query?: Record<string, any> | undefined;
|
|
651
|
+
request?: Request | undefined;
|
|
652
|
+
headers?: Headers | undefined;
|
|
653
|
+
asResponse?: boolean | undefined;
|
|
654
|
+
returnHeaders?: boolean | undefined;
|
|
655
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
656
|
+
}) => Promise<{
|
|
657
|
+
orgOptions: OrganizationOptions;
|
|
658
|
+
roles: typeof import("../access").defaultRoles & {
|
|
659
|
+
[key: string]: import("../../access").Role<{}>;
|
|
660
|
+
};
|
|
661
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
662
|
+
session: import("../../..").Session & {
|
|
663
|
+
activeOrganizationId?: string;
|
|
664
|
+
};
|
|
665
|
+
user: import("../../..").User;
|
|
666
|
+
}>;
|
|
667
|
+
}>) | ((inputContext: {
|
|
668
|
+
body?: any;
|
|
669
|
+
query?: Record<string, any> | undefined;
|
|
670
|
+
request?: Request | undefined;
|
|
671
|
+
headers?: Headers | undefined;
|
|
672
|
+
asResponse?: boolean | undefined;
|
|
673
|
+
returnHeaders?: boolean | undefined;
|
|
674
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
675
|
+
}) => Promise<{
|
|
676
|
+
session: {
|
|
677
|
+
session: import("../../..").Session & {
|
|
678
|
+
activeOrganizationId?: string;
|
|
679
|
+
};
|
|
680
|
+
user: import("../../..").User;
|
|
681
|
+
};
|
|
682
|
+
}>))[];
|
|
683
|
+
metadata: {
|
|
684
|
+
openapi: {
|
|
685
|
+
description: string;
|
|
686
|
+
responses: {
|
|
687
|
+
"200": {
|
|
688
|
+
description: string;
|
|
689
|
+
content: {
|
|
690
|
+
"application/json": {
|
|
691
|
+
schema: {
|
|
692
|
+
type: "object";
|
|
693
|
+
description: string;
|
|
694
|
+
$ref: string;
|
|
695
|
+
};
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
} & {
|
|
703
|
+
use: any[];
|
|
704
|
+
};
|
|
705
|
+
path: "/organization/set-active";
|
|
706
|
+
};
|
|
707
|
+
export declare const listOrganizations: {
|
|
708
|
+
<C extends [({
|
|
709
|
+
body?: undefined;
|
|
710
|
+
method?: "GET" | undefined;
|
|
711
|
+
query?: Record<string, any> | undefined;
|
|
712
|
+
params?: Record<string, any> | undefined;
|
|
713
|
+
request?: Request | undefined;
|
|
714
|
+
headers?: HeadersInit | undefined;
|
|
715
|
+
asResponse?: boolean | undefined;
|
|
716
|
+
returnHeaders?: boolean | undefined;
|
|
717
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
718
|
+
path?: string | undefined;
|
|
719
|
+
} | undefined)?]>(...inputCtx: C): Promise<C extends [{
|
|
720
|
+
asResponse: true;
|
|
721
|
+
}] ? Response : C extends [{
|
|
722
|
+
returnHeaders: true;
|
|
723
|
+
}] ? {
|
|
724
|
+
headers: Headers;
|
|
725
|
+
response: Organization[];
|
|
726
|
+
} : Organization[]>;
|
|
727
|
+
options: {
|
|
728
|
+
method: "GET";
|
|
729
|
+
use: (((inputContext: {
|
|
730
|
+
body?: any;
|
|
731
|
+
query?: Record<string, any> | undefined;
|
|
732
|
+
request?: Request | undefined;
|
|
733
|
+
headers?: Headers | undefined;
|
|
734
|
+
asResponse?: boolean | undefined;
|
|
735
|
+
returnHeaders?: boolean | undefined;
|
|
736
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
737
|
+
}) => Promise<{
|
|
738
|
+
orgOptions: OrganizationOptions;
|
|
739
|
+
roles: typeof import("../access").defaultRoles & {
|
|
740
|
+
[key: string]: import("../../access").Role<{}>;
|
|
741
|
+
};
|
|
742
|
+
getSession: (context: import("../../..").GenericEndpointContext) => Promise<{
|
|
743
|
+
session: import("../../..").Session & {
|
|
744
|
+
activeOrganizationId?: string;
|
|
745
|
+
};
|
|
746
|
+
user: import("../../..").User;
|
|
747
|
+
}>;
|
|
748
|
+
}>) | ((inputContext: {
|
|
749
|
+
body?: any;
|
|
750
|
+
query?: Record<string, any> | undefined;
|
|
751
|
+
request?: Request | undefined;
|
|
752
|
+
headers?: Headers | undefined;
|
|
753
|
+
asResponse?: boolean | undefined;
|
|
754
|
+
returnHeaders?: boolean | undefined;
|
|
755
|
+
use?: import("better-call").Middleware[] | undefined;
|
|
756
|
+
}) => Promise<{
|
|
757
|
+
session: {
|
|
758
|
+
session: import("../../..").Session & {
|
|
759
|
+
activeOrganizationId?: string;
|
|
760
|
+
};
|
|
761
|
+
user: import("../../..").User;
|
|
762
|
+
};
|
|
763
|
+
}>))[];
|
|
764
|
+
metadata: {
|
|
765
|
+
openapi: {
|
|
766
|
+
description: string;
|
|
767
|
+
responses: {
|
|
768
|
+
"200": {
|
|
769
|
+
description: string;
|
|
770
|
+
content: {
|
|
771
|
+
"application/json": {
|
|
772
|
+
schema: {
|
|
773
|
+
type: "array";
|
|
774
|
+
items: {
|
|
775
|
+
$ref: string;
|
|
776
|
+
};
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
};
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
};
|
|
783
|
+
};
|
|
784
|
+
} & {
|
|
785
|
+
use: any[];
|
|
786
|
+
};
|
|
787
|
+
path: "/organization/list";
|
|
788
|
+
};
|
|
789
|
+
//# sourceMappingURL=crud-org.d.ts.map
|