import { InferOptionSchema, InferPluginContext, InferPluginErrorCodes, InferPluginIDs } from "../types/plugins.mjs"; import { HIDE_METADATA } from "../utils/hide-metadata.mjs"; import { AccessControl, ArrayElement, ExactRoleStatements, Role, RoleAuthorizeRequest, RoleInput, RoleStatements, Statements, SubArray, Subset } from "./access/types.mjs"; import { AuthorizeResponse, createAccessControl, role } from "./access/access.mjs"; import "./access/index.mjs"; import { OrganizationOptions } from "./organization/types.mjs"; import { InferInvitation, InferMember, InferOrganization, InferOrganizationRolesFromOption, InferOrganizationZodRolesFromOption, InferTeam, Invitation, InvitationInput, InvitationStatus, Member, MemberInput, Organization, OrganizationInput, OrganizationRole, OrganizationSchema, Team, TeamInput, TeamMember, TeamMemberInput, defaultRolesSchema, invitationSchema, invitationStatus, memberSchema, organizationRoleSchema, organizationSchema, roleSchema, teamMemberSchema, teamSchema } from "./organization/schema.mjs"; import { getOrgAdapter } from "./organization/adapter.mjs"; import { AdminOptions, InferAdminRolesFromOption, SessionWithImpersonatedBy, UserWithRole } from "./admin/types.mjs"; import { admin } from "./admin/admin.mjs"; import "./admin/index.mjs"; import { AnonymousOptions, AnonymousSession, UserWithAnonymous } from "./anonymous/types.mjs"; import { anonymous } from "./anonymous/index.mjs"; import { BearerOptions, bearer } from "./bearer/index.mjs"; import { BaseCaptchaOptions, BotIdVerification, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider, ValidateRequestContext, VercelBotIdOptions } from "./captcha/types.mjs"; import { captcha } from "./captcha/index.mjs"; import { CustomSessionPluginOptions, customSession } from "./custom-session/index.mjs"; import { TimeString, ms, sec } from "../utils/time.mjs"; import { DeviceCode } from "./device-authorization/schema.mjs"; import { DeviceCodeRedemptionAuthorization, DeviceCodeRedemptionResult, redeemDeviceCode } from "./device-authorization/routes.mjs"; import { DeviceAuthorizationGrant, DeviceAuthorizationGrantAuthorization, DeviceAuthorizationOptions, DeviceAuthorizationPluginOptions, DeviceAuthorizationRequest, deviceAuthorization, deviceAuthorizationOptionsSchema } from "./device-authorization/index.mjs"; import { EmailOTPOptions } from "./email-otp/types.mjs"; import { emailOTP } from "./email-otp/index.mjs"; import { GenericOAuthConfig, GenericOAuthOptions, GenericOAuthUserInfo } from "./generic-oauth/types.mjs"; import { Auth0Options, auth0 } from "./generic-oauth/providers/auth0.mjs"; import { GumroadOptions, gumroad } from "./generic-oauth/providers/gumroad.mjs"; import { HubSpotOptions, hubspot } from "./generic-oauth/providers/hubspot.mjs"; import { KeycloakOptions, keycloak } from "./generic-oauth/providers/keycloak.mjs"; import { LineOptions, line } from "./generic-oauth/providers/line.mjs"; import { MicrosoftEntraIdOptions, microsoftEntraId } from "./generic-oauth/providers/microsoft-entra-id.mjs"; import { OktaOptions, okta } from "./generic-oauth/providers/okta.mjs"; import { PatreonOptions, patreon } from "./generic-oauth/providers/patreon.mjs"; import { SlackOptions, slack } from "./generic-oauth/providers/slack.mjs"; import { YandexOptions, yandex } from "./generic-oauth/providers/yandex.mjs"; import { BaseOAuthProviderOptions, genericOAuth } from "./generic-oauth/index.mjs"; import { HaveIBeenPwnedOptions, haveIBeenPwned, isPasswordCompromised } from "./haveibeenpwned/index.mjs"; import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions, ResolvedSigningKey } from "./jwt/types.mjs"; import { getJwtToken, resolveSigningKey, signJWT } from "./jwt/sign.mjs"; import { createJwk, generateExportedKeyPair, toExpJWT } from "./jwt/utils.mjs"; import { verifyJWT } from "./jwt/verify.mjs"; import { jwt } from "./jwt/index.mjs"; import { LastLoginMethodOptions, lastLoginMethod } from "./last-login-method/index.mjs"; import { MagicLinkOptions, magicLink } from "./magic-link/index.mjs"; import { MULTI_SESSION_ERROR_CODES } from "./multi-session/error-codes.mjs"; import { MultiSessionConfig, multiSession } from "./multi-session/index.mjs"; import { OAUTH_POPUP_DATA_ELEMENT_ID, OAUTH_POPUP_MESSAGE_TYPE, POPUP_MARKER_COOKIE } from "./oauth-popup/constants.mjs"; import { OAUTH_POPUP_ERROR_CODES } from "./oauth-popup/error-codes.mjs"; import { OAuthPopupData, OAuthPopupMessage } from "./oauth-popup/types.mjs"; import { OAUTH_POPUP_COMPLETE_SCRIPT, OAUTH_POPUP_SCRIPT_CSP_HASH, oauthPopup } from "./oauth-popup/index.mjs"; import { OAuthProxyOptions, oAuthProxy } from "./oauth-proxy/index.mjs"; import { OneTapOptions, oneTap } from "./one-tap/index.mjs"; import { OneTimeTokenOptions, oneTimeToken } from "./one-time-token/index.mjs"; import { FieldSchema, OpenAPIModelSchema, OpenAPIParameter, OpenAPISchema, Path, generator } from "./open-api/generator.mjs"; import { OpenAPIOptions, openAPI } from "./open-api/index.mjs"; import { PhoneNumberOptions, UserWithPhoneNumber } from "./phone-number/types.mjs"; import "./organization/index.mjs"; import { phoneNumber } from "./phone-number/index.mjs"; import { LoginResult, TestAuthOptions, TestCookie, TestHelpers, TestUtilsOptions } from "./test-utils/types.mjs"; import { SIWEPluginOptions, siwe } from "./siwe/index.mjs"; import { BackupCodeOptions, backupCode2fa, encodeBackupCodes, generateBackupCodes, getBackupCodes, verifyBackupCode } from "./two-factor/backup-codes/index.mjs"; import { OTPOptions, otp2fa } from "./two-factor/otp/index.mjs"; import { TOTPOptions, totp2fa } from "./two-factor/totp/index.mjs"; import { TwoFactorOptions, TwoFactorProvider, TwoFactorTable, UserWithTwoFactor } from "./two-factor/types.mjs"; import { TWO_FACTOR_ERROR_CODES } from "./two-factor/error-code.mjs"; import { twoFactorClient } from "./two-factor/client.mjs"; import { testUtils } from "./test-utils/index.mjs"; import { USERNAME_ERROR_CODES } from "./username/error-codes.mjs"; import { twoFactor } from "./two-factor/index.mjs"; import { hasPermission } from "./organization/has-permission.mjs"; import { parseRoles } from "./organization/roles.mjs"; import { DefaultOrganizationPlugin, DynamicAccessControlEndpoints, OrganizationCreator, OrganizationEndpoints, OrganizationPlugin, TeamEndpoints, organization } from "./organization/organization.mjs"; import { UsernameOptions, UsernamePlugin, UsernamePluginWithoutDisplayUsername, username } from "./username/index.mjs"; export { AccessControl, type AdminOptions, type AnonymousOptions, type AnonymousSession, ArrayElement, type Auth0Options, AuthorizeResponse, type BackupCodeOptions, type BaseCaptchaOptions, BaseOAuthProviderOptions, BearerOptions, type BotIdVerification, type CaptchaFoxOptions, type CaptchaOptions, type CloudflareTurnstileOptions, CustomSessionPluginOptions, DefaultOrganizationPlugin, DeviceAuthorizationGrant, DeviceAuthorizationGrantAuthorization, DeviceAuthorizationOptions, DeviceAuthorizationPluginOptions, DeviceAuthorizationRequest, type DeviceCode, type DeviceCodeRedemptionAuthorization, type DeviceCodeRedemptionResult, DynamicAccessControlEndpoints, MULTI_SESSION_ERROR_CODES as ERROR_CODES, type EmailOTPOptions, ExactRoleStatements, type FieldSchema, type GenericOAuthConfig, type GenericOAuthOptions, type GenericOAuthUserInfo, type GoogleRecaptchaOptions, type GumroadOptions, type HCaptchaOptions, HIDE_METADATA, HaveIBeenPwnedOptions, type HubSpotOptions, type InferAdminRolesFromOption, type InferInvitation, type InferMember, InferOptionSchema, type InferOrganization, type InferOrganizationRolesFromOption, type InferOrganizationZodRolesFromOption, InferPluginContext, InferPluginErrorCodes, InferPluginIDs, type InferTeam, type Invitation, type InvitationInput, type InvitationStatus, type JWKOptions, type JWSAlgorithms, type Jwk, type JwtOptions, type KeycloakOptions, LastLoginMethodOptions, type LineOptions, type LoginResult, MagicLinkOptions, type Member, type MemberInput, type MicrosoftEntraIdOptions, MultiSessionConfig, OAUTH_POPUP_COMPLETE_SCRIPT, OAUTH_POPUP_DATA_ELEMENT_ID, OAUTH_POPUP_ERROR_CODES, OAUTH_POPUP_MESSAGE_TYPE, OAUTH_POPUP_SCRIPT_CSP_HASH, type OAuthPopupData, type OAuthPopupMessage, OAuthProxyOptions, type OTPOptions, type OktaOptions, OneTapOptions, OneTimeTokenOptions, type OpenAPIModelSchema, OpenAPIOptions, type OpenAPIParameter, type OpenAPISchema, type Organization, OrganizationCreator, OrganizationEndpoints, type OrganizationInput, type OrganizationOptions, OrganizationPlugin, type OrganizationRole, type OrganizationSchema, POPUP_MARKER_COOKIE, type Path, type PatreonOptions, type PhoneNumberOptions, type Provider, type ResolvedSigningKey, Role, RoleAuthorizeRequest, RoleInput, RoleStatements, SIWEPluginOptions, type SessionWithImpersonatedBy, type SlackOptions, Statements, SubArray, Subset, type TOTPOptions, TWO_FACTOR_ERROR_CODES, type Team, TeamEndpoints, type TeamInput, type TeamMember, type TeamMemberInput, type TestAuthOptions, type TestCookie, type TestHelpers, type TestUtilsOptions, type TimeString, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, USERNAME_ERROR_CODES, type UserWithAnonymous, type UserWithPhoneNumber, type UserWithRole, UserWithTwoFactor, UsernameOptions, UsernamePlugin, UsernamePluginWithoutDisplayUsername, type ValidateRequestContext, type VercelBotIdOptions, type YandexOptions, admin, anonymous, auth0, type backupCode2fa, bearer, captcha, createAccessControl, createJwk, customSession, type defaultRolesSchema, deviceAuthorization, deviceAuthorizationOptionsSchema, emailOTP, type encodeBackupCodes, type generateBackupCodes, generateExportedKeyPair, type generator, genericOAuth, type getBackupCodes, getJwtToken, getOrgAdapter, gumroad, hasPermission, haveIBeenPwned, hubspot, type invitationSchema, type invitationStatus, isPasswordCompromised, jwt, keycloak, lastLoginMethod, line, magicLink, type memberSchema, microsoftEntraId, type ms, multiSession, oAuthProxy, oauthPopup, okta, oneTap, oneTimeToken, openAPI, organization, type organizationRoleSchema, type organizationSchema, type otp2fa, parseRoles, patreon, phoneNumber, redeemDeviceCode, resolveSigningKey, role, type roleSchema, type sec, signJWT, siwe, slack, type teamMemberSchema, type teamSchema, testUtils, toExpJWT, type totp2fa, twoFactor, twoFactorClient, username, type verifyBackupCode, verifyJWT, yandex };