@ackplus/nest-auth 1.1.69-beta.8 → 1.1.69-beta.9

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.
@@ -5368,7 +5368,7 @@ export class OnboardingService {
5368
5368
  - Header mode (default): Returns new tokens in response body
5369
5369
  - Cookie mode: Sets new tokens in HTTP-only cookies and returns success message`,operationId:"AuthController_refreshToken",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthRefreshTokenRequestDto"}}}},responses:{200:{description:"Header mode: Returns message + tokens in body",content:{"application/json":{schema:{$ref:"#/components/schemas/AuthWithTokensResponseDto"}}}}},summary:"Refresh Token",tags:["Auth"]}},"/auth/mfa/challenge":{post:{operationId:"MfaController_challenge",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendMfaCodeRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaCodeSentResponseDto"}}}}},summary:"Send MFA code for setup/verification",tags:["Mfa"]}},"/auth/mfa/verify":{post:{description:`Verify multi-factor authentication. Response format depends on accessTokenType configuration:
5370
5370
  - Header mode (default): Returns tokens in response body
5371
- - Cookie mode: Sets tokens in HTTP-only cookies and returns success message`,operationId:"AuthController_verify2fa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerify2faRequestDto"}}}},responses:{200:{description:"Header mode: Returns message + tokens in body",content:{"application/json":{schema:{$ref:"#/components/schemas/Verify2faWithTokensResponseDto"}}}}},summary:"Verify MFA",tags:["Auth"]}},"/auth/logout":{post:{operationId:"AuthController_logout",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutResponseDto"}}}}},summary:"Logout",tags:["Auth"]}},"/auth/logout-all":{post:{operationId:"AuthController_logoutAll",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutAllResponseDto"}}}}},summary:"Logout All",tags:["Auth"]}},"/auth/switch-tenant":{post:{operationId:"AuthController_switchTenant",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSwitchTenantRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/AuthWithTokensResponseDto"}}}}},summary:"Switch Active Tenant",tags:["Auth"]}},"/auth/change-password":{post:{operationId:"AuthController_changePassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthChangePasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MessageResponseDto"}}}}},summary:"Change Password",tags:["Auth"]}},"/auth/forgot-password":{post:{operationId:"AuthController_forgotPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthForgotPasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetLinkSentResponseDto"}}}}},summary:"Forgot password",tags:["Auth"]}},"/auth/verify-forgot-password-otp":{post:{operationId:"AuthController_verifyForgotPasswordOtp",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyForgotPasswordOtpRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/VerifyOtpResponseDto"}}}}},summary:"Verify Forgot Password OTP and get reset token",tags:["Auth"]}},"/auth/reset-password":{post:{operationId:"AuthController_resetPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthResetPasswordWithTokenRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetResponseDto"}}}}},summary:"Reset password",tags:["Auth"]}},"/auth/client-config":{get:{description:"Public configuration for clients (tenant mode, auth methods, registration, MFA, etc.). No auth required.",operationId:"AuthController_getClientConfig",parameters:[],responses:{200:{description:"Client configuration"}},summary:"Client config",tags:["Auth"]}},"/auth/user":{get:{operationId:"AuthController_getUser",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/UserResponseDto"}}}}},summary:"Get Logged In User",tags:["Auth"]}},"/auth/verify-session":{get:{description:"Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.",operationId:"AuthController_verifySession",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{properties:{valid:{type:"boolean",example:!0},userId:{type:"string",example:"123e4567-e89b-12d3-a456-426614174000"},expiresAt:{type:"string",example:"2024-01-01T12:00:00.000Z"}}}}}}},summary:"Verify Session",tags:["Auth"]}},"/auth/send-email-verification":{post:{operationId:"AuthController_sendEmailVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendEmailVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerificationSentResponseDto"}}}}},summary:"Send email verification",tags:["Auth"]}},"/auth/verify-email":{post:{operationId:"AuthController_verifyEmail",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyEmailRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerifiedResponseDto"}}}}},summary:"Verify Email",tags:["Auth"]}},"/auth/callback/{provider}":{get:{description:"OAuth callback endpoint for SSO providers. Exchanges authorization code for access token and returns raw SSO user info. Returns HTML page that posts SSO data to parent window and auto-closes.",operationId:"AuthController_ssoCallback",parameters:[{name:"provider",required:!0,in:"path",schema:{type:"string"}}],responses:{200:{description:""}},summary:"SSO Callback",tags:["Auth"]}},"/auth/mfa/status":{get:{operationId:"MfaController_getStatus",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MfaStatusResponseDto"}}}}},summary:"Get MFA status for the current user",tags:["Mfa"]}},"/auth/mfa/toggle":{post:{operationId:"MfaController_toggleMfa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthToggleMfaRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaToggleResponseDto"}}}}},summary:"Enable or disable MFA for the current user",tags:["Mfa"]}},"/auth/mfa/devices":{get:{operationId:"MfaController_listDevices",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}}}}}},summary:"List registered MFA devices",tags:["Mfa"]}},"/auth/mfa/devices/{deviceId}":{delete:{operationId:"MfaController_removeDevice",parameters:[{name:"deviceId",required:!0,in:"path",schema:{type:"string"}}],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaDeviceRemovedResponseDto"}}}}},summary:"Remove a registered MFA device",tags:["Mfa"]}},"/auth/mfa/setup-totp":{post:{operationId:"MfaController_setupTotp",parameters:[],responses:{200:{description:""}},summary:"Setup TOTP Device",tags:["Mfa"]}},"/auth/mfa/verify-totp-setup":{post:{operationId:"MfaController_verifyTotpSetup",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyTotpSetupRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaDeviceVerifiedResponseDto"}}}}},summary:"Verify TOTP Setup",tags:["Mfa"]}},"/auth/mfa/generate-recovery-code":{post:{operationId:"MfaController_generateRecoveryCodes",parameters:[],responses:{200:{description:""}},summary:"Generate Recovery Codes",tags:["Mfa"]}},"/auth/mfa/reset-totp":{post:{operationId:"MfaController_resetTotp",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaResetResponseDto"}}}}},summary:"Reset TOTP Device",tags:["Mfa"]}}},yXt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"1.1.69-beta.8",contact:{}},vXt=[],OXt=[],SXt={securitySchemes:{bearer:{scheme:"bearer",bearerFormat:"JWT",type:"http"}},schemas:{NestAuthSignupRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0}},required:["password"]},UserResponseDto:{type:"object",properties:{id:{type:"string",description:"User unique identifier",example:"123e4567-e89b-12d3-a456-426614174000"},email:{type:"string",description:"User email address",example:"user@example.com"},phone:{type:"string",description:"User phone number",example:"+1234567890"},isVerified:{type:"boolean",description:"Email verification status",example:!0},isMfaEnabled:{type:"boolean",description:"Whether MFA is enabled for this user",example:!1},roles:{description:"User roles (role names)",example:["admin","user"],type:"array",items:{type:"string"}},permissions:{description:"User permissions (flattened from roles)",example:["read:users","write:users"],type:"array",items:{type:"string"}},metadata:{type:"object",description:"Additional user metadata",example:{firstName:"John",lastName:"Doe"}},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"tenant-123"},tenants:{description:"Tenants the user belongs to",type:"array",items:{type:"object"}},userAccesses:{description:"User access per tenant (includes roles)",type:"array",items:{type:"object"}}},required:["id","isVerified"]},AuthWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Success message (added by controller based on configuration)",example:"Login successful"},isRequiresMfa:{type:"boolean",description:"Whether multi-factor authentication is required",example:!1},mfaMethods:{type:"array",description:"Available MFA methods when isRequiresMfa is true",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},defaultMfaMethod:{type:"string",description:"Default/recommended MFA method",example:"email",enum:["email","sms","totp"]},user:{description:"User information",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]},trustToken:{type:"string",description:"Trust token for trusted device verification",example:"1234567890"}},required:["accessToken","refreshToken","isRequiresMfa"]},EmailCredentialsDto:{type:"object",properties:{email:{type:"string",description:"User email address",example:"user@example.com"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["email","password"]},PhoneCredentialsDto:{type:"object",properties:{phone:{type:"string",description:"User phone number",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["phone","password"]},SocialCredentialsDto:{type:"object",properties:{token:{type:"string",description:"OAuth token or ID token from social provider",example:"ya29.a0AfH6SMBx1234567890abcdefghijklmnop"}},required:["token"]},NestAuthLoginRequestDto:{type:"object",properties:{providerName:{type:"string",description:"Authentication provider name",example:"email",enum:["email","phone","google","facebook","apple","github"],default:"email"},credentials:{description:"Login credentials - type varies by provider",examples:{emailLogin:{summary:"Email Login",value:{email:"user@example.com",password:"SecurePass123!"}},phoneLogin:{summary:"Phone Login",value:{phone:"+1234567890",password:"SecurePass123!"}},socialLogin:{summary:"Social Login (Google/Facebook/etc)",value:{token:"ya29.a0AfH6SMBx...",type:"idToken"}}},oneOf:[{$ref:"#/components/schemas/EmailCredentialsDto"},{$ref:"#/components/schemas/PhoneCredentialsDto"},{$ref:"#/components/schemas/SocialCredentialsDto"}]},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0},createUserIfNotExists:{type:"boolean",description:"Auto-create user if not exists (for social auth)",default:!1}},required:["credentials"]},NestAuthRefreshTokenRequestDto:{type:"object",properties:{refreshToken:{type:"string",description:"Refresh token to obtain new access token",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCJ9.abc123"}},required:["refreshToken"]},NestAuthMfaCodeSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA code sent successfully"}},required:["message"]},NestAuthMFAMethodEnum:{type:"string",enum:["email","sms","totp"]},NestAuthVerify2faRequestDto:{type:"object",properties:{method:{description:"MFA method used",example:"totp",allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]},otp:{type:"string",description:"One-time password code",example:"123456",minLength:6,maxLength:8},trustDevice:{type:"boolean",description:"Whether to trust this device for future logins",example:!0}},required:["method","otp"]},Verify2faWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Verification success message (added by controller)",example:"2FA verification successful"},user:{description:"User information with roles and permissions",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]}},required:["accessToken","refreshToken"]},NestAuthLogoutResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out successfully"}},required:["message"]},NestAuthLogoutAllResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out from all devices"}},required:["message"]},NestAuthSwitchTenantRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID to switch into",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["tenantId"]},NestAuthChangePasswordRequestDto:{type:"object",properties:{currentPassword:{type:"string",description:"Current password",example:"DemoOwner1!",minLength:8},newPassword:{type:"string",description:"New password",example:"DemoOwner1!New",minLength:8}},required:["currentPassword","newPassword"]},MessageResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message"}},required:["message"]},NestAuthForgotPasswordRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthPasswordResetLinkSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"If your email is registered, you will receive a password reset link"}},required:["message"]},NestAuthVerifyForgotPasswordOtpRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},otp:{type:"string",description:"One-time password code received via email or SMS",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["otp"]},VerifyOtpResponseDto:{type:"object",properties:{message:{type:"string",description:"Success message"},resetToken:{type:"string",description:"Password reset token - use this to reset password"}},required:["message"]},NestAuthResetPasswordWithTokenRequestDto:{type:"object",properties:{token:{type:"string",description:"Password reset token (JWT) received after OTP verification",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoicGFzc3dvcmQtcmVzZXQifQ.xyz"},newPassword:{type:"string",description:"New password",example:"NewSecurePass123!",minLength:8}},required:["token","newPassword"]},NestAuthPasswordResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Password has been reset successfully"}},required:["message"]},NestAuthSendEmailVerificationRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthEmailVerificationSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Verification email sent"}},required:["message"]},NestAuthVerifyEmailRequestDto:{type:"object",properties:{otp:{type:"string",description:"One-time password code received via email",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["otp"]},NestAuthEmailVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Email verified successfully"}},required:["message"]},MfaDeviceDto:{type:"object",properties:{id:{type:"string",description:"Unique identifier of the MFA device",example:"4b3c9c9c-9a9d-4d1e-8d9f-123456789abc"},deviceName:{type:"string",description:"Friendly name of the registered device",example:"Work laptop"},method:{type:"string",description:"MFA method this device supports",enum:["email","sms","totp"],example:"totp"},lastUsedAt:{format:"date-time",type:"string",description:"Timestamp of when the device was last used",example:"2024-05-20T12:34:56.000Z"},verified:{type:"boolean",description:"Whether the device setup has been verified",example:!0},createdAt:{format:"date-time",type:"string",description:"Timestamp of when the device was registered",example:"2024-05-18T10:15:00.000Z"}},required:["id","deviceName","method","verified"]},MfaStatusResponseDto:{type:"object",properties:{isEnabled:{type:"boolean",description:"Whether MFA is currently enabled for the user",example:!0},verifiedMethods:{type:"array",description:"MFA methods the user has verified and can currently use (includes EMAIL/SMS if configured, and TOTP if user has verified device)",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},configuredMethods:{type:"array",description:"All MFA methods configured and available in the application (methods user can potentially set up)",example:["email","totp","sms"],items:{type:"string",enum:["email","sms","totp"]}},allowUserToggle:{type:"boolean",description:"Indicates if MFA toggling is allowed for the user",example:!0},allowMethodSelection:{type:"boolean",description:"Indicates if users can choose their preferred MFA method",example:!0},totpDevices:{description:"Registered TOTP devices for the user",type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}},hasRecoveryCode:{type:"boolean",description:"Whether a recovery code has been generated for the user",example:!1},required:{type:"boolean",description:"Whether MFA is required for all users. If true, users cannot disable MFA even if allowUserToggle is true",example:!1},canToggle:{type:"boolean",description:"Whether the user can toggle MFA. This is false if MFA is required (required=true) even if allowUserToggle is true",example:!0}},required:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode","required","canToggle"]},NestAuthToggleMfaRequestDto:{type:"object",properties:{enabled:{type:"boolean",description:"Whether MFA should be enabled for the current user",example:!0}},required:["enabled"]},NestAuthMfaToggleResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA enabled successfully"}},required:["message"]},NestAuthMfaDeviceRemovedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device removed successfully"}},required:["message"]},NestAuthSendMfaCodeRequestDto:{type:"object",properties:{method:{description:"MFA delivery method",example:"email",examples:{email:{value:"email",description:"Send OTP via email"},sms:{value:"sms",description:"Send OTP via SMS"},totp:{value:"totp",description:"Use authenticator app (TOTP)"}},allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]}},required:["method"]},NestAuthVerifyTotpSetupRequestDto:{type:"object",properties:{otp:{type:"string",description:"The TOTP code from authenticator app",example:"123456",minLength:6,maxLength:6},secret:{type:"string",description:"Secret key from TOTP setup",example:"JBSWY3DPEHPK3PXP"}},required:["otp","secret"]},NestAuthMfaDeviceVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device setup successfully"}},required:["message"]},NestAuthMfaResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA reset successfully"}},required:["message"]}}},xXt={openapi:gXt,paths:bXt,info:yXt,tags:vXt,servers:OXt,components:SXt},Uk=({content:e})=>_.jsx(jQt,{remarkPlugins:[A7],components:{code({node:t,inline:n,className:r,children:i,...o}){const a=/language-(\w+)/.exec(r||"");return!n&&a?_.jsx(KIe,{...o,style:uXt,language:a[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(i).replace(/\n$/,"")}):_.jsx("code",{...o,style:{backgroundColor:"var(--mui-palette-grey-200)",color:"var(--mui-palette-grey-800)",borderRadius:4,padding:"2px 4px",fontSize:"0.875rem",fontFamily:"monospace"},children:i})},table({children:t}){return _.jsx(Ke,{sx:{overflowX:"auto",my:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:_.jsx(Ke,{component:"table",sx:{minWidth:"100%",borderCollapse:"collapse","& tr":{borderBottom:"1px solid",borderColor:"divider"}},children:t})})},thead({children:t}){return _.jsx(Ke,{component:"thead",sx:{bgcolor:"grey.50"},children:t})},th({children:t}){return _.jsx(Ke,{component:"th",scope:"col",sx:{px:1.5,py:1.5,textAlign:"left",fontSize:"0.75rem",fontWeight:500,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:t})},td({children:t}){return _.jsx(Ke,{component:"td",sx:{px:1.5,py:1.5,whiteSpace:"nowrap",fontSize:"0.875rem",color:"text.secondary",borderTop:"1px solid",borderColor:"divider"},children:t})},a({href:t,children:n}){return _.jsx("a",{href:t,style:{color:"var(--mui-palette-primary-main)",textDecoration:"none"},className:"MuiTypography-root MuiLink-root",onMouseOver:r=>{r.currentTarget.style.textDecoration="underline"},onMouseOut:r=>{r.currentTarget.style.textDecoration="none"},target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return _.jsx(qe,{component:"h2",variant:"h5",sx:{fontWeight:700,mt:3,mb:1.5,pb:1,borderBottom:"1px solid",borderColor:"divider"},children:t})},h3({children:t}){return _.jsx(qe,{component:"h3",variant:"h6",sx:{fontWeight:600,mt:2,mb:1},children:t})},p({children:t}){return _.jsx(qe,{component:"p",sx:{color:"text.primary",lineHeight:1.6,mb:1.5},children:t})},ul({children:t}){return _.jsx(Ke,{component:"ul",sx:{listStyle:"disc",pl:2,mb:1.5,color:"text.primary","& li":{mb:.5}},children:t})},li({children:t}){return _.jsx(Ke,{component:"li",sx:{ml:1},children:t})},blockquote({children:t}){return _.jsx(Ke,{component:"blockquote",sx:{borderLeft:"4px solid",borderColor:"primary.main",pl:1.5,py:.5,my:1.5,bgcolor:"primary.50",color:"text.primary",fontStyle:"italic",borderRadius:"0 4px 4px 0"},children:t})}},children:e}),wXt=()=>{const[e,t]=U.useState(!1),[n,r]=U.useState(null),[i,o]=U.useState("api");U.useEffect(()=>{const l=xXt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const a=()=>{if(!n)return;const l=JSON.stringify(n,null,2),c=new Blob([l],{type:"application/json"}),u=URL.createObjectURL(c),d=document.createElement("a");d.href=u,d.download="nest-auth-api.json",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(u)},s=[{id:"api",label:"API Explorer",icon:rq},{id:"config",label:"Configuration",icon:xvt},{id:"examples",label:"Examples",icon:Lme},{id:"events",label:"Events",icon:Tvt},{id:"api-reference",label:"API Reference",icon:uvt},{id:"services",label:"Services",icon:Lme}];return _.jsxs(Ot,{spacing:3,children:[_.jsx(A1,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:i==="api"&&_.jsx(Mn,{variant:"outlined",color:"inherit",onClick:a,disabled:e,startIcon:_.jsx(ft,{component:gvt}),children:"Download JSON"})}),_.jsx(c3e,{value:i,onChange:(l,c)=>o(c),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider"},children:s.map(l=>_.jsx(a3e,{value:l.id,label:l.label,icon:_.jsx(ft,{component:l.icon,sx:{fontSize:16}}),iconPosition:"start"},l.id))}),i==="api"&&(e?_.jsx(Ti,{variant:"outlined",sx:{p:3,textAlign:"center"},children:_.jsxs(Jf,{severity:"warning",icon:_.jsx(ft,{component:ep,sx:{fontSize:20}}),sx:{textAlign:"left"},children:[_.jsx(qe,{variant:"subtitle2",gutterBottom:!0,children:"API Documentation Not Available"}),_.jsx(qe,{variant:"body2",children:"The OpenAPI specification file could not be loaded. Make sure the OpenAPI spec has been generated by running the build process."})]})}):_.jsxs(_.Fragment,{children:[_.jsxs(Jf,{severity:"info",icon:_.jsx(ft,{component:rq,sx:{fontSize:20}}),children:[_.jsx(qe,{variant:"subtitle2",gutterBottom:!0,children:"Interactive API Documentation"}),_.jsx(qe,{variant:"body2",children:'This documentation is auto-generated from the OpenAPI specification. You can test endpoints directly from this page. Click "Download JSON" to get the raw OpenAPI specification file for importing into Postman or other API tools.'})]}),n&&_.jsx(bzt,{spec:n})]})),i==="config"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:dXt})}),i==="examples"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:fXt})}),i==="events"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:pXt})}),i==="api-reference"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:hXt})}),i==="services"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:mXt})})]})},h0=({children:e,authenticated:t})=>t===null?_.jsx(Ke,{sx:{minHeight:"100vh",bgcolor:"grey.50",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsxs(Ke,{sx:{textAlign:"center"},children:[_.jsx(dg,{size:64,sx:{mb:2}}),_.jsx(qe,{color:"text.secondary",fontWeight:"medium",children:"Verifying authentication..."})]})}):t?_.jsx(_.Fragment,{children:e}):_.jsx(EO,{to:"/login",replace:!0}),EXt=()=>{const[e,t]=U.useState(null),[n,r]=U.useState(null),[i,o]=U.useState(!1),[a,s]=U.useState(null);U.useEffect(()=>{l()},[]);const l=async()=>{try{await dr.get("/me"),t(!0);const d=await dr.get("/config");r(d)}catch(d){console.error("Auth check failed:",d),t(!1);try{const f=await dr.get("/config");r(f)}catch(f){console.error("Failed to load config:",f),r({allowAdminManagement:!1})}}finally{o(!0)}},c=async d=>{s(null);try{await dr.post("/login",d),t(!0),await l()}catch(f){throw t(!1),s((f==null?void 0:f.message)||"Login failed"),f}},u=async()=>{try{await dr.post("/logout",{})}catch(d){console.error("Logout failed:",d)}t(!1)};return!i||n===null?_.jsx(Ke,{sx:{minHeight:"100vh",background:"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #e9d5ff 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsxs(Ke,{sx:{textAlign:"center"},children:[_.jsx(dg,{size:64,sx:{color:"primary.main",mb:2}}),_.jsx(qe,{color:"text.primary",fontWeight:"medium",variant:"h6",children:"Loading Nest Auth Dashboard..."}),_.jsx(qe,{color:"text.secondary",variant:"body2",sx:{mt:1},children:"Verifying authentication"})]})}):_.jsx(ovt,{children:_.jsx(svt,{children:_.jsx(nht,{children:_.jsxs(Gpt,{children:[_.jsx(fd,{path:"/login",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(uOt,{onLogin:c,error:a})}),_.jsx(fd,{path:"/dashboard",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(kUt,{})})})}),_.jsx(fd,{path:"/users",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(MUt,{})})})}),_.jsx(fd,{path:"/users/:id",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(GUt,{})})})}),_.jsx(fd,{path:"/roles",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(nzt,{})})})}),_.jsx(fd,{path:"/tenants",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(szt,{})})})}),_.jsx(fd,{path:"/permissions",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(mzt,{})})})}),_.jsx(fd,{path:"/api",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(wXt,{})})})}),n.allowAdminManagement&&_.jsx(fd,{path:"/admins",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(dzt,{})})})}),_.jsx(fd,{path:"/",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(EO,{to:"/login",replace:!0})}),_.jsx(fd,{path:"*",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(EO,{to:"/login",replace:!0})})]})})})})},kXt={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},_Xt={MuiAppBar:kXt},TXt={styleOverrides:{paper:({theme:e})=>({boxShadow:e.customShadows.dropdown})}},AXt={MuiAutocomplete:TXt},$Xt=["primary","secondary","info","success","warning","error"],CXt=e=>{const t=e.charAt(0).toLowerCase();return["a","c","f"].includes(t)?"primary":["e","d","h"].includes(t)?"secondary":["i","k","l"].includes(t)?"info":["m","n","p"].includes(t)?"success":["q","s","t"].includes(t)?"warning":["v","x","y"].includes(t)?"error":"default"},fve={colors:$Xt.map(e=>({props:({ownerState:t})=>t.color===e,style:({theme:t})=>({color:t.palette[e].contrastText,backgroundColor:t.palette[e].main})})),defaultColor:[{props:({ownerState:e})=>e.color==="default",style:({theme:e})=>({color:e.palette.text.secondary,backgroundColor:Gn(e.palette.grey[500],.5)})}]},IXt={variants:[...fve.defaultColor,...fve.colors],styleOverrides:{rounded:({theme:e})=>({borderRadius:(Number(e.shape.borderRadius)||1)*1.5}),colorDefault:({ownerState:e,theme:t})=>{const n=CXt(`${e.alt}`);return{...!!e.alt&&{...n!=="default"?{color:t.palette[n].contrastText,backgroundColor:t.palette[n].main}:{color:t.palette.text.secondary,backgroundColor:Gn(t.palette.grey[500],.1)}}}}}},RXt={defaultProps:{max:4},styleOverrides:{root:({ownerState:e})=>({justifyContent:"flex-end",...e.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${f0t.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:e})=>({fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}})}},PXt={MuiAvatar:IXt,MuiAvatarGroup:RXt},NXt={styleOverrides:{root:{},sizeSmall:{[`& .${Phe.root}`]:{height:12,width:12}},sizeLarge:{[`& .${Phe.root}`]:{height:18,width:18}}}},DXt={MuiButton:NXt},MXt={styleOverrides:{root:({theme:e})=>({position:"relative",boxShadow:e.customShadows.card,zIndex:0})}},LXt={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1.5,2,1.5),[e.breakpoints.down("md")]:{padding:e.spacing(2,2,.5)}}),action:{alignSelf:"center"}}},jXt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},FXt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},BXt={MuiCard:MXt,MuiCardHeader:LXt,MuiCardContent:jXt,MuiCardActions:FXt};function UXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function zXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function HXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}const VXt={defaultProps:{size:"small",icon:_.jsx(UXt,{}),checkedIcon:_.jsx(zXt,{}),indeterminateIcon:_.jsx(HXt,{})},styleOverrides:{root:({ownerState:e,theme:t})=>({padding:t.spacing(1),...e.color==="default"&&{[`&.${xS.checked}`]:{color:t.palette.text.primary}},[`&.${xS.disabled}`]:{color:t.palette.action.disabled}})}},qXt={MuiCheckbox:VXt},QXt={defaultProps:{onClick:()=>{}},variants:[{props:{size:"x-small"},style:{height:18,fontSize:"0.6875rem",px:.2}}]},WXt={MuiChip:QXt},$ie=["primary","secondary","info","success","warning","error"],JIe=["default","inherit"],GXt=["extended","outlinedExtended","softExtended"],pve=["circular","extended"],hve=["outlined","outlinedExtended"],mve=["soft","softExtended"],oO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&pve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:t.customShadows[e],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:e})=>pve.includes(e==null?void 0:e.variant)&&JIe.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:e.customShadows.z8,color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${hx.colorInherit}`]:{color:e.palette.common.white,backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.grey[700]},...e.palette.mode==="dark"&&{color:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[400]}}}})}]},aO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&hve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({color:t.palette[e].main,border:`solid 1px ${Gn(t.palette[e].main,.48)}`,"&:hover":{backgroundColor:Gn(t.palette[e].main,.08)}})})),base:[{props:({ownerState:e})=>hve.includes(e==null?void 0:e.variant),style:({theme:e})=>({boxShadow:"none",backgroundColor:"transparent",color:e.palette.text.secondary,border:`solid 1px ${Gn(e.palette.grey[500],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:e.palette.action.hover},[`&.${hx.colorInherit}`]:{color:e.palette.text.primary},[`&.${hx.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${e.palette.action.disabledBackground}`}})}]},sO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&mve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:"none",color:t.palette[e].dark,backgroundColor:Gn(t.palette[e].main,.16),"&:hover":{boxShadow:"none",backgroundColor:Gn(t.palette[e].main,.32)},...t.palette.mode==="dark"&&{color:t.palette[e].light}})})),base:[{props:({ownerState:e})=>mve.includes(e==null?void 0:e.variant)&&JIe.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:"none",color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${hx.colorInherit}`]:{color:e.palette.text.primary,backgroundColor:Gn(e.palette.grey[500],.08),"&:hover":{backgroundColor:Gn(e.palette.grey[500],.24)}}})}]},ZXt=[{props:({ownerState:e})=>GXt.includes(e==null?void 0:e.variant),style:({theme:e})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:e.spacing(1),padding:e.spacing(0,2),[`&.${hx.sizeSmall}`]:{height:36,minHeight:36,borderRadius:36/2,gap:e.spacing(.5),padding:e.spacing(0,1)},[`&.${hx.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})},{props:({ownerState:e})=>e.size==="x-small",style:({theme:e})=>({height:30,width:30,minHeight:30,borderRadius:30/2,gap:e.spacing(.5),padding:e.spacing(0,1)})}],XXt={defaultProps:{color:"primary"},variants:[...(oO==null?void 0:oO.base)??[],...(oO==null?void 0:oO.colors)??[],...(aO==null?void 0:aO.base)??[],...(aO==null?void 0:aO.colors)??[],...(sO==null?void 0:sO.base)??[],...(sO==null?void 0:sO.colors)??[],...ZXt],styleOverrides:{}},YXt={MuiFab:XXt},KXt={styleOverrides:{root:{boxShadow:"none"}}},JXt={MuiIconButton:KXt},eYt={styleOverrides:{root:({theme:e})=>({color:"inherit",minWidth:"auto",marginRight:e.spacing(2)})}},tYt={styleOverrides:{root:({theme:e})=>({minWidth:"auto",marginRight:e.spacing(2)})}},nYt={styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},rYt={defaultProps:{primaryTypographyProps:{typography:"subtitle2",color:"text.primary"},secondaryTypographyProps:{typography:"caption",color:"text.secondary"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},iYt={MuiListItemIcon:eYt,MuiListItemAvatar:tYt,MuiListItemButton:nYt,MuiListItemText:rYt},oYt={styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:e.spacing(.75,1),borderRadius:(Number(e.shape.borderRadius)||1)*.75,"&:not(:last-of-type)":{marginBottom:4},[`&.${_O.selected}`]:{fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`& .${xS.root}`]:{padding:e.spacing(.5),marginLeft:e.spacing(-.5),marginRight:e.spacing(.5)},[`&.${rr.option}[aria-selected="true"]`]:{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`&+.${YV.root}`]:{margin:e.spacing(.5,0)}})}},aYt={MuiMenuItem:oYt},sYt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:e})=>({borderColor:Gn(e.palette.grey[500],.16)})}},lYt={MuiPaper:sYt},cYt={defaultProps:{MenuProps:{PaperProps:{sx:e=>({maxHeight:250,transform:"translateY(4px)",boxShadow:e.customShadows.card})}}}},uYt={MuiSelect:cYt},dYt={styleOverrides:{}},fYt={MuiSvgIcon:dYt},gve={dark:'[data-mui-color-scheme="dark"] &'},pYt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:e,theme:t})=>({top:"unset",transform:"translateX(6px)",[`&.${oo.checked}`]:{[`& .${oo.thumb}`]:{...e.color==="default"&&{[gve.dark]:{color:t.palette.grey[800]}}},[`&+.${oo.track}`]:{opacity:1,...e.color==="default"&&{backgroundColor:t.palette.text.primary}}},[`&.${oo.disabled}`]:{[`& .${oo.thumb}`]:{opacity:1,[gve.dark]:{opacity:.48}},[`&+.${oo.track}`]:{opacity:.48}}}),track:({theme:e})=>({opacity:1,borderRadius:10,backgroundColor:Gn(e.palette.grey[500],.48)}),thumb:({theme:e})=>({color:e.palette.common.white}),sizeMedium:{[`& .${oo.track}`]:{height:20},[`& .${oo.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${oo.track}`]:{height:16},[`& .${oo.thumb}`]:{width:10,height:10}}}},hYt={MuiSwitch:pYt},mYt={styleOverrides:{root:({theme:e})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${Gn(e.palette.text.disabled,.4)} ${Gn(e.palette.text.disabled,.08)}`})}},gYt={styleOverrides:{root:({theme:e})=>({"--palette-TableCell-border":e.palette.divider})}},bYt={styleOverrides:{root:({theme:e})=>({[`&.${nq.selected}`]:{backgroundColor:Gn(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Gn(e.palette.primary.dark,.08)}},"&:last-of-type":{[`& .${l3e.root}`]:{borderColor:"transparent"}}})}},yYt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:e})=>({fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral}),stickyHeader:({theme:e})=>({backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:e})=>({paddingLeft:e.spacing(1)})}},vYt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:({theme:e})=>({width:"100%",[e.breakpoints.down("sm")]:{"& .MuiTablePagination-input":{marginRight:8}}}),toolbar:{height:64},actions:({theme:e})=>({marginRight:8,[e.breakpoints.down("md")]:{marginLeft:16}}),select:({theme:e})=>({paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},OYt={MuiTable:gYt,MuiTableRow:bYt,MuiTableCell:yYt,MuiTableContainer:mYt,MuiTablePagination:vYt},SYt={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`}),flexContainer:({ownerState:e,theme:t})=>({...e.variant!=="fullWidth"&&{gap:"24px",[t.breakpoints.up("sm")]:{gap:"40px"}}}),indicator:{backgroundColor:"currentColor"}}},xYt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:e})=>({opacity:1,minWidth:48,minHeight:48,padding:e.spacing(1,0),color:e.palette.text.secondary,fontWeight:e.typography.fontWeightMedium,lineHeight:e.typography.body2.lineHeight,[`&.${iu.selected}`]:{color:e.palette.text.primary,fontWeight:e.typography.fontWeightSemiBold}})}},wYt={MuiTabs:SYt,MuiTab:xYt},EYt={..._Xt,...PXt,...OYt,...wYt,...iYt,...aYt,...DXt,...lYt,...BXt,...qXt,...hYt,...fYt,...JXt,...uYt,...AXt,...YXt,...WXt},Ua={50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21",lighter:"#F9FAFB",light:"#DFE3E8",main:"#919EAB",dark:"#454F5B",darker:"#161C24",contrastText:"#FFFFFF"},e8e={lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},t8e={lighter:"#f3e8ff",light:"#94a3b8",main:"#64748b",dark:"#475569",darker:"#334155",contrastText:"#FFFFFF"},n8e={lighter:"#dbeafe",light:"#93c5fd",main:"#2563eb",dark:"#1d4ed8",darker:"#1e40af",contrastText:"#FFFFFF"},r8e={lighter:"#dcfce7",light:"#bbf7d0",main:"#16a34a",dark:"#15803d",darker:"#166534",contrastText:"#ffffff"},i8e={lighter:"#fef3c7",light:"#fde68a",main:"#ca8a04",dark:"#a16207",darker:"#854d0e",contrastText:"#1C252E"},o8e={lighter:"#fee2e2",light:"#fecaca",main:"#dc2626",dark:"#b91c1c",darker:"#991b1b",contrastText:"#FFFFFF"},zx={common:{black:"#000000",white:"#FFFFFF"},primary:e8e,secondary:t8e,info:n8e,success:r8e,warning:i8e,error:o8e,grey:Ua,divider:Gn(Ua[500],.2),action:{hover:Gn(Ua[500],.08),selected:Gn(Ua[500],.16),disabled:Gn(Ua[500],.8),disabledBackground:Gn(Ua[500],.24),focus:Gn(Ua[500],.24),hoverOpacity:.08,disabledOpacity:.48}},a8e={...zx,text:{primary:Ua[800],secondary:Ua[600],disabled:Ua[500]},background:{paper:"#FFFFFF",default:Gn(Ua[500],.2),neutral:"#F5F7FA"},action:{...zx.action,active:Ua[600]}},s8e={...zx,text:{primary:"#FFFFFF",secondary:Ua[500],disabled:Ua[600]},background:{paper:Ua[800],default:Ua[900],neutral:Gn(Ua[500],.12)},action:{...zx.action,active:Ua[500]}};function Cie(e){return e==="light"?a8e:s8e}const fc={light:{palette:a8e},dark:{palette:s8e}};function lO(e){return`0 8px 16px 0 ${Gn(e,.24)}`}function nW(e){const t=e==="light"?Ua[500]:zx.common.black;return{z1:`0 1px 2px 0 ${Gn(t,.16)}`,z4:`0 4px 8px 0 ${Gn(t,.16)}`,z8:`0 8px 16px 0 ${Gn(t,.16)}`,z12:`0 12px 24px -4px ${Gn(t,.16)}`,z16:`0 16px 32px -4px ${Gn(t,.16)}`,z20:`0 20px 40px -4px ${Gn(t,.16)}`,z24:`0 24px 48px 0 ${Gn(t,.16)}`,dialog:`-40px 40px 80px -8px ${Gn(zx.common.black,.24)}`,card:`0 0 2px 0 ${Gn(t,.2)}, 0 12px 24px -4px ${Gn(t,.12)}`,dropdown:`0 0 2px 0 ${Gn(t,.24)}, -20px 20px 40px -4px ${Gn(t,.24)}`,primary:lO(e8e.main),secondary:lO(t8e.main),info:lO(n8e.main),success:lO(r8e.main),warning:lO(i8e.main),error:lO(o8e.main)}}var hP={exports:{}};/**
5371
+ - Cookie mode: Sets tokens in HTTP-only cookies and returns success message`,operationId:"AuthController_verify2fa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerify2faRequestDto"}}}},responses:{200:{description:"Header mode: Returns message + tokens in body",content:{"application/json":{schema:{$ref:"#/components/schemas/Verify2faWithTokensResponseDto"}}}}},summary:"Verify MFA",tags:["Auth"]}},"/auth/logout":{post:{operationId:"AuthController_logout",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutResponseDto"}}}}},summary:"Logout",tags:["Auth"]}},"/auth/logout-all":{post:{operationId:"AuthController_logoutAll",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutAllResponseDto"}}}}},summary:"Logout All",tags:["Auth"]}},"/auth/switch-tenant":{post:{operationId:"AuthController_switchTenant",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSwitchTenantRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/AuthWithTokensResponseDto"}}}}},summary:"Switch Active Tenant",tags:["Auth"]}},"/auth/change-password":{post:{operationId:"AuthController_changePassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthChangePasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MessageResponseDto"}}}}},summary:"Change Password",tags:["Auth"]}},"/auth/forgot-password":{post:{operationId:"AuthController_forgotPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthForgotPasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetLinkSentResponseDto"}}}}},summary:"Forgot password",tags:["Auth"]}},"/auth/verify-forgot-password-otp":{post:{operationId:"AuthController_verifyForgotPasswordOtp",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyForgotPasswordOtpRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/VerifyOtpResponseDto"}}}}},summary:"Verify Forgot Password OTP and get reset token",tags:["Auth"]}},"/auth/reset-password":{post:{operationId:"AuthController_resetPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthResetPasswordWithTokenRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetResponseDto"}}}}},summary:"Reset password",tags:["Auth"]}},"/auth/client-config":{get:{description:"Public configuration for clients (tenant mode, auth methods, registration, MFA, etc.). No auth required.",operationId:"AuthController_getClientConfig",parameters:[],responses:{200:{description:"Client configuration"}},summary:"Client config",tags:["Auth"]}},"/auth/user":{get:{operationId:"AuthController_getUser",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/UserResponseDto"}}}}},summary:"Get Logged In User",tags:["Auth"]}},"/auth/verify-session":{get:{description:"Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.",operationId:"AuthController_verifySession",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{properties:{valid:{type:"boolean",example:!0},userId:{type:"string",example:"123e4567-e89b-12d3-a456-426614174000"},expiresAt:{type:"string",example:"2024-01-01T12:00:00.000Z"}}}}}}},summary:"Verify Session",tags:["Auth"]}},"/auth/send-email-verification":{post:{operationId:"AuthController_sendEmailVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendEmailVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerificationSentResponseDto"}}}}},summary:"Send email verification",tags:["Auth"]}},"/auth/verify-email":{post:{operationId:"AuthController_verifyEmail",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyEmailRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerifiedResponseDto"}}}}},summary:"Verify Email",tags:["Auth"]}},"/auth/callback/{provider}":{get:{description:"OAuth callback endpoint for SSO providers. Exchanges authorization code for access token and returns raw SSO user info. Returns HTML page that posts SSO data to parent window and auto-closes.",operationId:"AuthController_ssoCallback",parameters:[{name:"provider",required:!0,in:"path",schema:{type:"string"}}],responses:{200:{description:""}},summary:"SSO Callback",tags:["Auth"]}},"/auth/mfa/status":{get:{operationId:"MfaController_getStatus",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MfaStatusResponseDto"}}}}},summary:"Get MFA status for the current user",tags:["Mfa"]}},"/auth/mfa/toggle":{post:{operationId:"MfaController_toggleMfa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthToggleMfaRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaToggleResponseDto"}}}}},summary:"Enable or disable MFA for the current user",tags:["Mfa"]}},"/auth/mfa/devices":{get:{operationId:"MfaController_listDevices",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}}}}}},summary:"List registered MFA devices",tags:["Mfa"]}},"/auth/mfa/devices/{deviceId}":{delete:{operationId:"MfaController_removeDevice",parameters:[{name:"deviceId",required:!0,in:"path",schema:{type:"string"}}],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaDeviceRemovedResponseDto"}}}}},summary:"Remove a registered MFA device",tags:["Mfa"]}},"/auth/mfa/setup-totp":{post:{operationId:"MfaController_setupTotp",parameters:[],responses:{200:{description:""}},summary:"Setup TOTP Device",tags:["Mfa"]}},"/auth/mfa/verify-totp-setup":{post:{operationId:"MfaController_verifyTotpSetup",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyTotpSetupRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaDeviceVerifiedResponseDto"}}}}},summary:"Verify TOTP Setup",tags:["Mfa"]}},"/auth/mfa/generate-recovery-code":{post:{operationId:"MfaController_generateRecoveryCodes",parameters:[],responses:{200:{description:""}},summary:"Generate Recovery Codes",tags:["Mfa"]}},"/auth/mfa/reset-totp":{post:{operationId:"MfaController_resetTotp",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthMfaResetResponseDto"}}}}},summary:"Reset TOTP Device",tags:["Mfa"]}}},yXt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"1.1.69-beta.9",contact:{}},vXt=[],OXt=[],SXt={securitySchemes:{bearer:{scheme:"bearer",bearerFormat:"JWT",type:"http"}},schemas:{NestAuthSignupRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0}},required:["password"]},UserResponseDto:{type:"object",properties:{id:{type:"string",description:"User unique identifier",example:"123e4567-e89b-12d3-a456-426614174000"},email:{type:"string",description:"User email address",example:"user@example.com"},phone:{type:"string",description:"User phone number",example:"+1234567890"},isVerified:{type:"boolean",description:"Email verification status",example:!0},isMfaEnabled:{type:"boolean",description:"Whether MFA is enabled for this user",example:!1},roles:{description:"User roles (role names)",example:["admin","user"],type:"array",items:{type:"string"}},permissions:{description:"User permissions (flattened from roles)",example:["read:users","write:users"],type:"array",items:{type:"string"}},metadata:{type:"object",description:"Additional user metadata",example:{firstName:"John",lastName:"Doe"}},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"tenant-123"},tenants:{description:"Tenants the user belongs to",type:"array",items:{type:"object"}},userAccesses:{description:"User access per tenant (includes roles)",type:"array",items:{type:"object"}}},required:["id","isVerified"]},AuthWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Success message (added by controller based on configuration)",example:"Login successful"},isRequiresMfa:{type:"boolean",description:"Whether multi-factor authentication is required",example:!1},mfaMethods:{type:"array",description:"Available MFA methods when isRequiresMfa is true",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},defaultMfaMethod:{type:"string",description:"Default/recommended MFA method",example:"email",enum:["email","sms","totp"]},user:{description:"User information",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]},trustToken:{type:"string",description:"Trust token for trusted device verification",example:"1234567890"}},required:["accessToken","refreshToken","isRequiresMfa"]},EmailCredentialsDto:{type:"object",properties:{email:{type:"string",description:"User email address",example:"user@example.com"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["email","password"]},PhoneCredentialsDto:{type:"object",properties:{phone:{type:"string",description:"User phone number",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["phone","password"]},SocialCredentialsDto:{type:"object",properties:{token:{type:"string",description:"OAuth token or ID token from social provider",example:"ya29.a0AfH6SMBx1234567890abcdefghijklmnop"}},required:["token"]},NestAuthLoginRequestDto:{type:"object",properties:{providerName:{type:"string",description:"Authentication provider name",example:"email",enum:["email","phone","google","facebook","apple","github"],default:"email"},credentials:{description:"Login credentials - type varies by provider",examples:{emailLogin:{summary:"Email Login",value:{email:"user@example.com",password:"SecurePass123!"}},phoneLogin:{summary:"Phone Login",value:{phone:"+1234567890",password:"SecurePass123!"}},socialLogin:{summary:"Social Login (Google/Facebook/etc)",value:{token:"ya29.a0AfH6SMBx...",type:"idToken"}}},oneOf:[{$ref:"#/components/schemas/EmailCredentialsDto"},{$ref:"#/components/schemas/PhoneCredentialsDto"},{$ref:"#/components/schemas/SocialCredentialsDto"}]},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0},createUserIfNotExists:{type:"boolean",description:"Auto-create user if not exists (for social auth)",default:!1}},required:["credentials"]},NestAuthRefreshTokenRequestDto:{type:"object",properties:{refreshToken:{type:"string",description:"Refresh token to obtain new access token",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCJ9.abc123"}},required:["refreshToken"]},NestAuthMfaCodeSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA code sent successfully"}},required:["message"]},NestAuthMFAMethodEnum:{type:"string",enum:["email","sms","totp"]},NestAuthVerify2faRequestDto:{type:"object",properties:{method:{description:"MFA method used",example:"totp",allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]},otp:{type:"string",description:"One-time password code",example:"123456",minLength:6,maxLength:8},trustDevice:{type:"boolean",description:"Whether to trust this device for future logins",example:!0}},required:["method","otp"]},Verify2faWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Verification success message (added by controller)",example:"2FA verification successful"},user:{description:"User information with roles and permissions",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]}},required:["accessToken","refreshToken"]},NestAuthLogoutResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out successfully"}},required:["message"]},NestAuthLogoutAllResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out from all devices"}},required:["message"]},NestAuthSwitchTenantRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID to switch into",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["tenantId"]},NestAuthChangePasswordRequestDto:{type:"object",properties:{currentPassword:{type:"string",description:"Current password",example:"DemoOwner1!",minLength:8},newPassword:{type:"string",description:"New password",example:"DemoOwner1!New",minLength:8}},required:["currentPassword","newPassword"]},MessageResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message"}},required:["message"]},NestAuthForgotPasswordRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthPasswordResetLinkSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"If your email is registered, you will receive a password reset link"}},required:["message"]},NestAuthVerifyForgotPasswordOtpRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},otp:{type:"string",description:"One-time password code received via email or SMS",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["otp"]},VerifyOtpResponseDto:{type:"object",properties:{message:{type:"string",description:"Success message"},resetToken:{type:"string",description:"Password reset token - use this to reset password"}},required:["message"]},NestAuthResetPasswordWithTokenRequestDto:{type:"object",properties:{token:{type:"string",description:"Password reset token (JWT) received after OTP verification",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoicGFzc3dvcmQtcmVzZXQifQ.xyz"},newPassword:{type:"string",description:"New password",example:"NewSecurePass123!",minLength:8}},required:["token","newPassword"]},NestAuthPasswordResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Password has been reset successfully"}},required:["message"]},NestAuthSendEmailVerificationRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthEmailVerificationSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Verification email sent"}},required:["message"]},NestAuthVerifyEmailRequestDto:{type:"object",properties:{otp:{type:"string",description:"One-time password code received via email",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["otp"]},NestAuthEmailVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Email verified successfully"}},required:["message"]},MfaDeviceDto:{type:"object",properties:{id:{type:"string",description:"Unique identifier of the MFA device",example:"4b3c9c9c-9a9d-4d1e-8d9f-123456789abc"},deviceName:{type:"string",description:"Friendly name of the registered device",example:"Work laptop"},method:{type:"string",description:"MFA method this device supports",enum:["email","sms","totp"],example:"totp"},lastUsedAt:{format:"date-time",type:"string",description:"Timestamp of when the device was last used",example:"2024-05-20T12:34:56.000Z"},verified:{type:"boolean",description:"Whether the device setup has been verified",example:!0},createdAt:{format:"date-time",type:"string",description:"Timestamp of when the device was registered",example:"2024-05-18T10:15:00.000Z"}},required:["id","deviceName","method","verified"]},MfaStatusResponseDto:{type:"object",properties:{isEnabled:{type:"boolean",description:"Whether MFA is currently enabled for the user",example:!0},verifiedMethods:{type:"array",description:"MFA methods the user has verified and can currently use (includes EMAIL/SMS if configured, and TOTP if user has verified device)",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},configuredMethods:{type:"array",description:"All MFA methods configured and available in the application (methods user can potentially set up)",example:["email","totp","sms"],items:{type:"string",enum:["email","sms","totp"]}},allowUserToggle:{type:"boolean",description:"Indicates if MFA toggling is allowed for the user",example:!0},allowMethodSelection:{type:"boolean",description:"Indicates if users can choose their preferred MFA method",example:!0},totpDevices:{description:"Registered TOTP devices for the user",type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}},hasRecoveryCode:{type:"boolean",description:"Whether a recovery code has been generated for the user",example:!1},required:{type:"boolean",description:"Whether MFA is required for all users. If true, users cannot disable MFA even if allowUserToggle is true",example:!1},canToggle:{type:"boolean",description:"Whether the user can toggle MFA. This is false if MFA is required (required=true) even if allowUserToggle is true",example:!0}},required:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode","required","canToggle"]},NestAuthToggleMfaRequestDto:{type:"object",properties:{enabled:{type:"boolean",description:"Whether MFA should be enabled for the current user",example:!0}},required:["enabled"]},NestAuthMfaToggleResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA enabled successfully"}},required:["message"]},NestAuthMfaDeviceRemovedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device removed successfully"}},required:["message"]},NestAuthSendMfaCodeRequestDto:{type:"object",properties:{method:{description:"MFA delivery method",example:"email",examples:{email:{value:"email",description:"Send OTP via email"},sms:{value:"sms",description:"Send OTP via SMS"},totp:{value:"totp",description:"Use authenticator app (TOTP)"}},allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]}},required:["method"]},NestAuthVerifyTotpSetupRequestDto:{type:"object",properties:{otp:{type:"string",description:"The TOTP code from authenticator app",example:"123456",minLength:6,maxLength:6},secret:{type:"string",description:"Secret key from TOTP setup",example:"JBSWY3DPEHPK3PXP"}},required:["otp","secret"]},NestAuthMfaDeviceVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device setup successfully"}},required:["message"]},NestAuthMfaResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA reset successfully"}},required:["message"]}}},xXt={openapi:gXt,paths:bXt,info:yXt,tags:vXt,servers:OXt,components:SXt},Uk=({content:e})=>_.jsx(jQt,{remarkPlugins:[A7],components:{code({node:t,inline:n,className:r,children:i,...o}){const a=/language-(\w+)/.exec(r||"");return!n&&a?_.jsx(KIe,{...o,style:uXt,language:a[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(i).replace(/\n$/,"")}):_.jsx("code",{...o,style:{backgroundColor:"var(--mui-palette-grey-200)",color:"var(--mui-palette-grey-800)",borderRadius:4,padding:"2px 4px",fontSize:"0.875rem",fontFamily:"monospace"},children:i})},table({children:t}){return _.jsx(Ke,{sx:{overflowX:"auto",my:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:_.jsx(Ke,{component:"table",sx:{minWidth:"100%",borderCollapse:"collapse","& tr":{borderBottom:"1px solid",borderColor:"divider"}},children:t})})},thead({children:t}){return _.jsx(Ke,{component:"thead",sx:{bgcolor:"grey.50"},children:t})},th({children:t}){return _.jsx(Ke,{component:"th",scope:"col",sx:{px:1.5,py:1.5,textAlign:"left",fontSize:"0.75rem",fontWeight:500,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:t})},td({children:t}){return _.jsx(Ke,{component:"td",sx:{px:1.5,py:1.5,whiteSpace:"nowrap",fontSize:"0.875rem",color:"text.secondary",borderTop:"1px solid",borderColor:"divider"},children:t})},a({href:t,children:n}){return _.jsx("a",{href:t,style:{color:"var(--mui-palette-primary-main)",textDecoration:"none"},className:"MuiTypography-root MuiLink-root",onMouseOver:r=>{r.currentTarget.style.textDecoration="underline"},onMouseOut:r=>{r.currentTarget.style.textDecoration="none"},target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return _.jsx(qe,{component:"h2",variant:"h5",sx:{fontWeight:700,mt:3,mb:1.5,pb:1,borderBottom:"1px solid",borderColor:"divider"},children:t})},h3({children:t}){return _.jsx(qe,{component:"h3",variant:"h6",sx:{fontWeight:600,mt:2,mb:1},children:t})},p({children:t}){return _.jsx(qe,{component:"p",sx:{color:"text.primary",lineHeight:1.6,mb:1.5},children:t})},ul({children:t}){return _.jsx(Ke,{component:"ul",sx:{listStyle:"disc",pl:2,mb:1.5,color:"text.primary","& li":{mb:.5}},children:t})},li({children:t}){return _.jsx(Ke,{component:"li",sx:{ml:1},children:t})},blockquote({children:t}){return _.jsx(Ke,{component:"blockquote",sx:{borderLeft:"4px solid",borderColor:"primary.main",pl:1.5,py:.5,my:1.5,bgcolor:"primary.50",color:"text.primary",fontStyle:"italic",borderRadius:"0 4px 4px 0"},children:t})}},children:e}),wXt=()=>{const[e,t]=U.useState(!1),[n,r]=U.useState(null),[i,o]=U.useState("api");U.useEffect(()=>{const l=xXt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const a=()=>{if(!n)return;const l=JSON.stringify(n,null,2),c=new Blob([l],{type:"application/json"}),u=URL.createObjectURL(c),d=document.createElement("a");d.href=u,d.download="nest-auth-api.json",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(u)},s=[{id:"api",label:"API Explorer",icon:rq},{id:"config",label:"Configuration",icon:xvt},{id:"examples",label:"Examples",icon:Lme},{id:"events",label:"Events",icon:Tvt},{id:"api-reference",label:"API Reference",icon:uvt},{id:"services",label:"Services",icon:Lme}];return _.jsxs(Ot,{spacing:3,children:[_.jsx(A1,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:i==="api"&&_.jsx(Mn,{variant:"outlined",color:"inherit",onClick:a,disabled:e,startIcon:_.jsx(ft,{component:gvt}),children:"Download JSON"})}),_.jsx(c3e,{value:i,onChange:(l,c)=>o(c),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider"},children:s.map(l=>_.jsx(a3e,{value:l.id,label:l.label,icon:_.jsx(ft,{component:l.icon,sx:{fontSize:16}}),iconPosition:"start"},l.id))}),i==="api"&&(e?_.jsx(Ti,{variant:"outlined",sx:{p:3,textAlign:"center"},children:_.jsxs(Jf,{severity:"warning",icon:_.jsx(ft,{component:ep,sx:{fontSize:20}}),sx:{textAlign:"left"},children:[_.jsx(qe,{variant:"subtitle2",gutterBottom:!0,children:"API Documentation Not Available"}),_.jsx(qe,{variant:"body2",children:"The OpenAPI specification file could not be loaded. Make sure the OpenAPI spec has been generated by running the build process."})]})}):_.jsxs(_.Fragment,{children:[_.jsxs(Jf,{severity:"info",icon:_.jsx(ft,{component:rq,sx:{fontSize:20}}),children:[_.jsx(qe,{variant:"subtitle2",gutterBottom:!0,children:"Interactive API Documentation"}),_.jsx(qe,{variant:"body2",children:'This documentation is auto-generated from the OpenAPI specification. You can test endpoints directly from this page. Click "Download JSON" to get the raw OpenAPI specification file for importing into Postman or other API tools.'})]}),n&&_.jsx(bzt,{spec:n})]})),i==="config"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:dXt})}),i==="examples"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:fXt})}),i==="events"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:pXt})}),i==="api-reference"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:hXt})}),i==="services"&&_.jsx(Ti,{variant:"outlined",sx:{p:3},children:_.jsx(Uk,{content:mXt})})]})},h0=({children:e,authenticated:t})=>t===null?_.jsx(Ke,{sx:{minHeight:"100vh",bgcolor:"grey.50",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsxs(Ke,{sx:{textAlign:"center"},children:[_.jsx(dg,{size:64,sx:{mb:2}}),_.jsx(qe,{color:"text.secondary",fontWeight:"medium",children:"Verifying authentication..."})]})}):t?_.jsx(_.Fragment,{children:e}):_.jsx(EO,{to:"/login",replace:!0}),EXt=()=>{const[e,t]=U.useState(null),[n,r]=U.useState(null),[i,o]=U.useState(!1),[a,s]=U.useState(null);U.useEffect(()=>{l()},[]);const l=async()=>{try{await dr.get("/me"),t(!0);const d=await dr.get("/config");r(d)}catch(d){console.error("Auth check failed:",d),t(!1);try{const f=await dr.get("/config");r(f)}catch(f){console.error("Failed to load config:",f),r({allowAdminManagement:!1})}}finally{o(!0)}},c=async d=>{s(null);try{await dr.post("/login",d),t(!0),await l()}catch(f){throw t(!1),s((f==null?void 0:f.message)||"Login failed"),f}},u=async()=>{try{await dr.post("/logout",{})}catch(d){console.error("Logout failed:",d)}t(!1)};return!i||n===null?_.jsx(Ke,{sx:{minHeight:"100vh",background:"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #e9d5ff 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:_.jsxs(Ke,{sx:{textAlign:"center"},children:[_.jsx(dg,{size:64,sx:{color:"primary.main",mb:2}}),_.jsx(qe,{color:"text.primary",fontWeight:"medium",variant:"h6",children:"Loading Nest Auth Dashboard..."}),_.jsx(qe,{color:"text.secondary",variant:"body2",sx:{mt:1},children:"Verifying authentication"})]})}):_.jsx(ovt,{children:_.jsx(svt,{children:_.jsx(nht,{children:_.jsxs(Gpt,{children:[_.jsx(fd,{path:"/login",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(uOt,{onLogin:c,error:a})}),_.jsx(fd,{path:"/dashboard",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(kUt,{})})})}),_.jsx(fd,{path:"/users",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(MUt,{})})})}),_.jsx(fd,{path:"/users/:id",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(GUt,{})})})}),_.jsx(fd,{path:"/roles",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(nzt,{})})})}),_.jsx(fd,{path:"/tenants",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(szt,{})})})}),_.jsx(fd,{path:"/permissions",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(mzt,{})})})}),_.jsx(fd,{path:"/api",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(wXt,{})})})}),n.allowAdminManagement&&_.jsx(fd,{path:"/admins",element:_.jsx(h0,{authenticated:e,children:_.jsx(u0,{config:n,onLogout:u,children:_.jsx(dzt,{})})})}),_.jsx(fd,{path:"/",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(EO,{to:"/login",replace:!0})}),_.jsx(fd,{path:"*",element:e?_.jsx(EO,{to:"/dashboard",replace:!0}):_.jsx(EO,{to:"/login",replace:!0})})]})})})})},kXt={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},_Xt={MuiAppBar:kXt},TXt={styleOverrides:{paper:({theme:e})=>({boxShadow:e.customShadows.dropdown})}},AXt={MuiAutocomplete:TXt},$Xt=["primary","secondary","info","success","warning","error"],CXt=e=>{const t=e.charAt(0).toLowerCase();return["a","c","f"].includes(t)?"primary":["e","d","h"].includes(t)?"secondary":["i","k","l"].includes(t)?"info":["m","n","p"].includes(t)?"success":["q","s","t"].includes(t)?"warning":["v","x","y"].includes(t)?"error":"default"},fve={colors:$Xt.map(e=>({props:({ownerState:t})=>t.color===e,style:({theme:t})=>({color:t.palette[e].contrastText,backgroundColor:t.palette[e].main})})),defaultColor:[{props:({ownerState:e})=>e.color==="default",style:({theme:e})=>({color:e.palette.text.secondary,backgroundColor:Gn(e.palette.grey[500],.5)})}]},IXt={variants:[...fve.defaultColor,...fve.colors],styleOverrides:{rounded:({theme:e})=>({borderRadius:(Number(e.shape.borderRadius)||1)*1.5}),colorDefault:({ownerState:e,theme:t})=>{const n=CXt(`${e.alt}`);return{...!!e.alt&&{...n!=="default"?{color:t.palette[n].contrastText,backgroundColor:t.palette[n].main}:{color:t.palette.text.secondary,backgroundColor:Gn(t.palette.grey[500],.1)}}}}}},RXt={defaultProps:{max:4},styleOverrides:{root:({ownerState:e})=>({justifyContent:"flex-end",...e.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${f0t.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:e})=>({fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}})}},PXt={MuiAvatar:IXt,MuiAvatarGroup:RXt},NXt={styleOverrides:{root:{},sizeSmall:{[`& .${Phe.root}`]:{height:12,width:12}},sizeLarge:{[`& .${Phe.root}`]:{height:18,width:18}}}},DXt={MuiButton:NXt},MXt={styleOverrides:{root:({theme:e})=>({position:"relative",boxShadow:e.customShadows.card,zIndex:0})}},LXt={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1.5,2,1.5),[e.breakpoints.down("md")]:{padding:e.spacing(2,2,.5)}}),action:{alignSelf:"center"}}},jXt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},FXt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},BXt={MuiCard:MXt,MuiCardHeader:LXt,MuiCardContent:jXt,MuiCardActions:FXt};function UXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function zXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function HXt(e){return _.jsx(sx,{...e,children:_.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}const VXt={defaultProps:{size:"small",icon:_.jsx(UXt,{}),checkedIcon:_.jsx(zXt,{}),indeterminateIcon:_.jsx(HXt,{})},styleOverrides:{root:({ownerState:e,theme:t})=>({padding:t.spacing(1),...e.color==="default"&&{[`&.${xS.checked}`]:{color:t.palette.text.primary}},[`&.${xS.disabled}`]:{color:t.palette.action.disabled}})}},qXt={MuiCheckbox:VXt},QXt={defaultProps:{onClick:()=>{}},variants:[{props:{size:"x-small"},style:{height:18,fontSize:"0.6875rem",px:.2}}]},WXt={MuiChip:QXt},$ie=["primary","secondary","info","success","warning","error"],JIe=["default","inherit"],GXt=["extended","outlinedExtended","softExtended"],pve=["circular","extended"],hve=["outlined","outlinedExtended"],mve=["soft","softExtended"],oO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&pve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:t.customShadows[e],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:e})=>pve.includes(e==null?void 0:e.variant)&&JIe.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:e.customShadows.z8,color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${hx.colorInherit}`]:{color:e.palette.common.white,backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.grey[700]},...e.palette.mode==="dark"&&{color:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[400]}}}})}]},aO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&hve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({color:t.palette[e].main,border:`solid 1px ${Gn(t.palette[e].main,.48)}`,"&:hover":{backgroundColor:Gn(t.palette[e].main,.08)}})})),base:[{props:({ownerState:e})=>hve.includes(e==null?void 0:e.variant),style:({theme:e})=>({boxShadow:"none",backgroundColor:"transparent",color:e.palette.text.secondary,border:`solid 1px ${Gn(e.palette.grey[500],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:e.palette.action.hover},[`&.${hx.colorInherit}`]:{color:e.palette.text.primary},[`&.${hx.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${e.palette.action.disabledBackground}`}})}]},sO={colors:$ie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&mve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:"none",color:t.palette[e].dark,backgroundColor:Gn(t.palette[e].main,.16),"&:hover":{boxShadow:"none",backgroundColor:Gn(t.palette[e].main,.32)},...t.palette.mode==="dark"&&{color:t.palette[e].light}})})),base:[{props:({ownerState:e})=>mve.includes(e==null?void 0:e.variant)&&JIe.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:"none",color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${hx.colorInherit}`]:{color:e.palette.text.primary,backgroundColor:Gn(e.palette.grey[500],.08),"&:hover":{backgroundColor:Gn(e.palette.grey[500],.24)}}})}]},ZXt=[{props:({ownerState:e})=>GXt.includes(e==null?void 0:e.variant),style:({theme:e})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:e.spacing(1),padding:e.spacing(0,2),[`&.${hx.sizeSmall}`]:{height:36,minHeight:36,borderRadius:36/2,gap:e.spacing(.5),padding:e.spacing(0,1)},[`&.${hx.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})},{props:({ownerState:e})=>e.size==="x-small",style:({theme:e})=>({height:30,width:30,minHeight:30,borderRadius:30/2,gap:e.spacing(.5),padding:e.spacing(0,1)})}],XXt={defaultProps:{color:"primary"},variants:[...(oO==null?void 0:oO.base)??[],...(oO==null?void 0:oO.colors)??[],...(aO==null?void 0:aO.base)??[],...(aO==null?void 0:aO.colors)??[],...(sO==null?void 0:sO.base)??[],...(sO==null?void 0:sO.colors)??[],...ZXt],styleOverrides:{}},YXt={MuiFab:XXt},KXt={styleOverrides:{root:{boxShadow:"none"}}},JXt={MuiIconButton:KXt},eYt={styleOverrides:{root:({theme:e})=>({color:"inherit",minWidth:"auto",marginRight:e.spacing(2)})}},tYt={styleOverrides:{root:({theme:e})=>({minWidth:"auto",marginRight:e.spacing(2)})}},nYt={styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},rYt={defaultProps:{primaryTypographyProps:{typography:"subtitle2",color:"text.primary"},secondaryTypographyProps:{typography:"caption",color:"text.secondary"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},iYt={MuiListItemIcon:eYt,MuiListItemAvatar:tYt,MuiListItemButton:nYt,MuiListItemText:rYt},oYt={styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:e.spacing(.75,1),borderRadius:(Number(e.shape.borderRadius)||1)*.75,"&:not(:last-of-type)":{marginBottom:4},[`&.${_O.selected}`]:{fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`& .${xS.root}`]:{padding:e.spacing(.5),marginLeft:e.spacing(-.5),marginRight:e.spacing(.5)},[`&.${rr.option}[aria-selected="true"]`]:{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`&+.${YV.root}`]:{margin:e.spacing(.5,0)}})}},aYt={MuiMenuItem:oYt},sYt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:e})=>({borderColor:Gn(e.palette.grey[500],.16)})}},lYt={MuiPaper:sYt},cYt={defaultProps:{MenuProps:{PaperProps:{sx:e=>({maxHeight:250,transform:"translateY(4px)",boxShadow:e.customShadows.card})}}}},uYt={MuiSelect:cYt},dYt={styleOverrides:{}},fYt={MuiSvgIcon:dYt},gve={dark:'[data-mui-color-scheme="dark"] &'},pYt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:e,theme:t})=>({top:"unset",transform:"translateX(6px)",[`&.${oo.checked}`]:{[`& .${oo.thumb}`]:{...e.color==="default"&&{[gve.dark]:{color:t.palette.grey[800]}}},[`&+.${oo.track}`]:{opacity:1,...e.color==="default"&&{backgroundColor:t.palette.text.primary}}},[`&.${oo.disabled}`]:{[`& .${oo.thumb}`]:{opacity:1,[gve.dark]:{opacity:.48}},[`&+.${oo.track}`]:{opacity:.48}}}),track:({theme:e})=>({opacity:1,borderRadius:10,backgroundColor:Gn(e.palette.grey[500],.48)}),thumb:({theme:e})=>({color:e.palette.common.white}),sizeMedium:{[`& .${oo.track}`]:{height:20},[`& .${oo.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${oo.track}`]:{height:16},[`& .${oo.thumb}`]:{width:10,height:10}}}},hYt={MuiSwitch:pYt},mYt={styleOverrides:{root:({theme:e})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${Gn(e.palette.text.disabled,.4)} ${Gn(e.palette.text.disabled,.08)}`})}},gYt={styleOverrides:{root:({theme:e})=>({"--palette-TableCell-border":e.palette.divider})}},bYt={styleOverrides:{root:({theme:e})=>({[`&.${nq.selected}`]:{backgroundColor:Gn(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Gn(e.palette.primary.dark,.08)}},"&:last-of-type":{[`& .${l3e.root}`]:{borderColor:"transparent"}}})}},yYt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:e})=>({fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral}),stickyHeader:({theme:e})=>({backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:e})=>({paddingLeft:e.spacing(1)})}},vYt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:({theme:e})=>({width:"100%",[e.breakpoints.down("sm")]:{"& .MuiTablePagination-input":{marginRight:8}}}),toolbar:{height:64},actions:({theme:e})=>({marginRight:8,[e.breakpoints.down("md")]:{marginLeft:16}}),select:({theme:e})=>({paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},OYt={MuiTable:gYt,MuiTableRow:bYt,MuiTableCell:yYt,MuiTableContainer:mYt,MuiTablePagination:vYt},SYt={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`}),flexContainer:({ownerState:e,theme:t})=>({...e.variant!=="fullWidth"&&{gap:"24px",[t.breakpoints.up("sm")]:{gap:"40px"}}}),indicator:{backgroundColor:"currentColor"}}},xYt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:e})=>({opacity:1,minWidth:48,minHeight:48,padding:e.spacing(1,0),color:e.palette.text.secondary,fontWeight:e.typography.fontWeightMedium,lineHeight:e.typography.body2.lineHeight,[`&.${iu.selected}`]:{color:e.palette.text.primary,fontWeight:e.typography.fontWeightSemiBold}})}},wYt={MuiTabs:SYt,MuiTab:xYt},EYt={..._Xt,...PXt,...OYt,...wYt,...iYt,...aYt,...DXt,...lYt,...BXt,...qXt,...hYt,...fYt,...JXt,...uYt,...AXt,...YXt,...WXt},Ua={50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21",lighter:"#F9FAFB",light:"#DFE3E8",main:"#919EAB",dark:"#454F5B",darker:"#161C24",contrastText:"#FFFFFF"},e8e={lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},t8e={lighter:"#f3e8ff",light:"#94a3b8",main:"#64748b",dark:"#475569",darker:"#334155",contrastText:"#FFFFFF"},n8e={lighter:"#dbeafe",light:"#93c5fd",main:"#2563eb",dark:"#1d4ed8",darker:"#1e40af",contrastText:"#FFFFFF"},r8e={lighter:"#dcfce7",light:"#bbf7d0",main:"#16a34a",dark:"#15803d",darker:"#166534",contrastText:"#ffffff"},i8e={lighter:"#fef3c7",light:"#fde68a",main:"#ca8a04",dark:"#a16207",darker:"#854d0e",contrastText:"#1C252E"},o8e={lighter:"#fee2e2",light:"#fecaca",main:"#dc2626",dark:"#b91c1c",darker:"#991b1b",contrastText:"#FFFFFF"},zx={common:{black:"#000000",white:"#FFFFFF"},primary:e8e,secondary:t8e,info:n8e,success:r8e,warning:i8e,error:o8e,grey:Ua,divider:Gn(Ua[500],.2),action:{hover:Gn(Ua[500],.08),selected:Gn(Ua[500],.16),disabled:Gn(Ua[500],.8),disabledBackground:Gn(Ua[500],.24),focus:Gn(Ua[500],.24),hoverOpacity:.08,disabledOpacity:.48}},a8e={...zx,text:{primary:Ua[800],secondary:Ua[600],disabled:Ua[500]},background:{paper:"#FFFFFF",default:Gn(Ua[500],.2),neutral:"#F5F7FA"},action:{...zx.action,active:Ua[600]}},s8e={...zx,text:{primary:"#FFFFFF",secondary:Ua[500],disabled:Ua[600]},background:{paper:Ua[800],default:Ua[900],neutral:Gn(Ua[500],.12)},action:{...zx.action,active:Ua[500]}};function Cie(e){return e==="light"?a8e:s8e}const fc={light:{palette:a8e},dark:{palette:s8e}};function lO(e){return`0 8px 16px 0 ${Gn(e,.24)}`}function nW(e){const t=e==="light"?Ua[500]:zx.common.black;return{z1:`0 1px 2px 0 ${Gn(t,.16)}`,z4:`0 4px 8px 0 ${Gn(t,.16)}`,z8:`0 8px 16px 0 ${Gn(t,.16)}`,z12:`0 12px 24px -4px ${Gn(t,.16)}`,z16:`0 16px 32px -4px ${Gn(t,.16)}`,z20:`0 20px 40px -4px ${Gn(t,.16)}`,z24:`0 24px 48px 0 ${Gn(t,.16)}`,dialog:`-40px 40px 80px -8px ${Gn(zx.common.black,.24)}`,card:`0 0 2px 0 ${Gn(t,.2)}, 0 12px 24px -4px ${Gn(t,.12)}`,dropdown:`0 0 2px 0 ${Gn(t,.24)}, -20px 20px 40px -4px ${Gn(t,.24)}`,primary:lO(e8e.main),secondary:lO(t8e.main),info:lO(n8e.main),success:lO(r8e.main),warning:lO(i8e.main),error:lO(o8e.main)}}var hP={exports:{}};/**
5372
5372
  * @license
5373
5373
  * Lodash <https://lodash.com/>
5374
5374
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -730,7 +730,7 @@
730
730
  "info": {
731
731
  "title": "@ackplus/nest-auth API",
732
732
  "description": "OpenAPI specification generated from the Nest Auth module",
733
- "version": "1.1.69-beta.8",
733
+ "version": "1.1.69-beta.9",
734
734
  "contact": {}
735
735
  },
736
736
  "tags": [],
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/auth/services/auth.service.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAQ/D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAkB,MAAM,8BAA8B,CAAC;AASrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,kBAAk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AO,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMnF,oBAAoB,CACtB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,GAAG,EACZ,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,EACrD,aAAa,EAAE,OAAO,EACtB,UAAU,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,eAAe,CAAC;YAsFb,kBAAkB;CAgBnC"}
@@ -252,15 +252,12 @@ let AuthService = class AuthService {
252
252
  code: auth_constants_1.ERROR_CODES.ACCOUNT_INACTIVE,
253
253
  });
254
254
  }
255
+ user = await this.getUserWithRolesAndPermissions(user.id);
255
256
  if (this.authConfig.loginHooks?.onLogin) {
256
257
  this.debugLogger.debug('Applying loginHooks.onLogin hook', 'AuthService', { userId: user.id });
257
258
  const request = request_context_1.RequestContext.currentRequest();
258
- const modifiedUser = await this.authConfig.loginHooks.onLogin(user, input, { request, provider });
259
- if (modifiedUser) {
260
- user = modifiedUser;
261
- }
259
+ await this.authConfig.loginHooks.onLogin(user, input, { request, provider });
262
260
  }
263
- user = await this.getUserWithRolesAndPermissions(user.id);
264
261
  await this.ensureTenantAccess(user, tenantId, createUserIfNotExists);
265
262
  let isRequiresMfa = false;
266
263
  let isTrusted = false;
@@ -1 +1 @@
1
- {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/lib/auth/services/auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAIwB;AACxB,2CAAwC;AACxC,6CAAmD;AACnD,qCAAqC;AACrC,iEAA+D;AAC/D,yDAM8B;AAC9B,+CAA2C;AAC3C,iEAA6D;AAC7D,yDAAsD;AACtD,4FAAuF;AACvF,2EAAuE;AAKvE,sEAAqF;AAErF,2EAAsE;AACtE,yEAAmE;AACnE,+EAAyE;AACzE,iFAA2E;AAC3E,iEAA4D;AAC5D,yEAAmE;AAEnE,uGAAiG;AACjG,yEAAqE;AAC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,CAAA;IAqB9B,YAAA,IAAA,eAAM,EAAC,iDAAgC,CAAC,CAAA;qCApBR,oBAAU;QAEJ,4DAA2B;QAErC,wBAAU;QAEN,+CAAqB;QAEzB,wBAAU;QAER,6BAAa;QAEZ,8BAAa;QAEf,yCAAkB;QAEZ,uCAAiB;QAEvB,0BAAW;GAxBpC,WAAW,CA20BvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ackplus/nest-auth",
3
- "version": "1.1.69-beta.8",
3
+ "version": "1.1.69-beta.9",
4
4
  "description": "Powerful CRUD operations for NestJS with TypeORM - automatic REST endpoints, advanced filtering, relations, pagination, and more",
5
5
  "type": "commonjs",
6
6
  "main": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "qrcode": "^1.5.0",
40
40
  "qs": "^6.11.2",
41
41
  "speakeasy": "^2.0.0",
42
- "@ackplus/nest-auth-contracts": "1.1.69-beta.8"
42
+ "@ackplus/nest-auth-contracts": "1.1.69-beta.9"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@nestjs/common": "^10 || ^11",