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, CaptchaFoxOptions, CaptchaOptions, CloudflareTurnstileOptions, GoogleRecaptchaOptions, HCaptchaOptions, Provider } 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 { DeviceAuthorizationOptions, deviceAuthorization, deviceAuthorizationOptionsSchema } from "./device-authorization/index.mjs"; import { EmailOTPOptions } from "./email-otp/types.mjs"; import { emailOTP } from "./email-otp/index.mjs"; import { GenericOAuthConfig, GenericOAuthOptions } 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 } from "./haveibeenpwned/index.mjs"; import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "./jwt/types.mjs"; import { getJwtToken, 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 { AuthorizationQuery, Client, CodeVerificationValue, OAuthAccessToken, OIDCMetadata, OIDCOptions, TokenBody } from "./oidc-provider/types.mjs"; import { getClient, getMetadata, oidcProvider } from "./oidc-provider/index.mjs"; import { getMCPProtectedResourceMetadata, getMCPProviderMetadata, mcp, oAuthDiscoveryMetadata, oAuthProtectedResourceMetadata, withMcpAuth } from "./mcp/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 { phoneNumber } from "./phone-number/index.mjs"; import { SIWEPluginOptions, siwe } from "./siwe/index.mjs"; import { LoginResult, TestCookie, TestHelpers, TestUtilsOptions } from "./test-utils/types.mjs"; import { testUtils } from "./test-utils/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 { twoFactor } from "./two-factor/index.mjs"; import { USERNAME_ERROR_CODES } from "./username/error-codes.mjs"; import { UsernameOptions, username } from "./username/index.mjs"; import { hasPermission } from "./organization/has-permission.mjs"; import { DefaultOrganizationPlugin, DynamicAccessControlEndpoints, OrganizationCreator, OrganizationEndpoints, OrganizationPlugin, TeamEndpoints, organization, parseRoles } from "./organization/organization.mjs"; import "./organization/index.mjs"; export { AccessControl, type AdminOptions, type AnonymousOptions, type AnonymousSession, ArrayElement, type Auth0Options, type AuthorizationQuery, AuthorizeResponse, type BackupCodeOptions, type BaseCaptchaOptions, BaseOAuthProviderOptions, BearerOptions, type CaptchaFoxOptions, type CaptchaOptions, type Client, type CloudflareTurnstileOptions, type CodeVerificationValue, CustomSessionPluginOptions, DefaultOrganizationPlugin, DeviceAuthorizationOptions, DynamicAccessControlEndpoints, MULTI_SESSION_ERROR_CODES as ERROR_CODES, type EmailOTPOptions, ExactRoleStatements, type FieldSchema, type GenericOAuthConfig, type GenericOAuthOptions, 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 OAuthAccessToken, type OAuthPopupData, type OAuthPopupMessage, OAuthProxyOptions, type OIDCMetadata, type OIDCOptions, 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, 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 TestCookie, type TestHelpers, type TestUtilsOptions, type TimeString, type TokenBody, TwoFactorOptions, TwoFactorProvider, TwoFactorTable, USERNAME_ERROR_CODES, type UserWithAnonymous, type UserWithPhoneNumber, type UserWithRole, UserWithTwoFactor, UsernameOptions, 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, getClient, getJwtToken, getMCPProtectedResourceMetadata, getMCPProviderMetadata, getMetadata, getOrgAdapter, gumroad, hasPermission, haveIBeenPwned, hubspot, type invitationSchema, type invitationStatus, jwt, keycloak, lastLoginMethod, line, magicLink, mcp, type memberSchema, microsoftEntraId, type ms, multiSession, oAuthDiscoveryMetadata, oAuthProtectedResourceMetadata, oAuthProxy, oauthPopup, oidcProvider, okta, oneTap, oneTimeToken, openAPI, organization, type organizationRoleSchema, type organizationSchema, type otp2fa, parseRoles, patreon, phoneNumber, role, type roleSchema, type sec, signJWT, siwe, slack, type teamMemberSchema, type teamSchema, testUtils, toExpJWT, type totp2fa, twoFactor, twoFactorClient, username, type verifyBackupCode, verifyJWT, withMcpAuth, yandex };