@ackplus/nest-auth 1.1.34 → 1.1.35

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.
@@ -1142,32 +1142,6 @@ NestAuthModule.forRoot({
1142
1142
  }
1143
1143
  \`\`\`
1144
1144
 
1145
- ---
1146
-
1147
- ## Client Config Customization
1148
-
1149
- ### clientConfig.factory
1150
- - **Type**: \`Function\`
1151
- - **Description**: Customize the \`/auth/client-config\` response
1152
-
1153
- \`\`\`typescript
1154
- {
1155
- clientConfig: {
1156
- factory: async (defaultConfig, context) => {
1157
- return {
1158
- ...defaultConfig,
1159
- customField: 'value',
1160
- features: {
1161
- socialLogin: true,
1162
- biometrics: false,
1163
- },
1164
- };
1165
- },
1166
- },
1167
- }
1168
- \`\`\`
1169
-
1170
- ---
1171
1145
 
1172
1146
  ## Debug Configuration
1173
1147
 
@@ -5238,7 +5212,7 @@ export class OnboardingService {
5238
5212
  - Header mode (default): Returns new tokens in response body
5239
5213
  - 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:
5240
5214
  - Header mode (default): Returns tokens in response body
5241
- - 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/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/AuthWithTokensResponseDto"}}}}},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/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/client-config":{get:{description:"Returns backend configuration for frontend clients. Includes enabled auth methods, registration settings, MFA options, tenant configuration, and SSO providers. Can be customized via clientConfig.factory in AuthModuleOptions.",operationId:"AuthController_getClientConfig",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/ClientConfigResponseDto"}}}}},summary:"Get Client Configuration",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"]}}},uSt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"1.1.34",contact:{}},dSt=[],fSt=[],pSt={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"}},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"}},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"}]}},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"},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},rememberDevice:{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"}},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"]},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"]},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"]},EmailAuthConfigDto:{type:"object",properties:{enabled:{type:"boolean",example:!0}},required:["enabled"]},PhoneAuthConfigDto:{type:"object",properties:{enabled:{type:"boolean",example:!1}},required:["enabled"]},RegistrationConfigDto:{type:"object",properties:{enabled:{type:"boolean",example:!0,description:"Whether user registration is enabled"},requireInvitation:{type:"boolean",example:!1,description:"Whether registration requires an invitation"},collectProfileFields:{type:"array",description:"Additional profile fields to collect during registration",items:{type:"object",properties:{id:{type:"string"},label:{type:"string"},required:{type:"boolean"},type:{type:"string",enum:["text","email","phone","select","checkbox","password"]},placeholder:{type:"string"},options:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}}}}}},required:["enabled"]},MfaConfigDto:{type:"object",properties:{enabled:{type:"boolean",example:!0},methods:{example:["email","totp"],type:"array",items:{type:"array"}},allowUserToggle:{type:"boolean",example:!0},allowMethodSelection:{type:"boolean",example:!0}},required:["enabled"]},TenantOptionDto:{type:"object",properties:{id:{type:"string"},name:{type:"string"},slug:{type:"string"},isActive:{type:"boolean"},metadata:{type:"object"}},required:["id","name","slug","isActive"]},TenantsConfigDto:{type:"object",properties:{mode:{type:"string",example:"single",enum:["single","multi"]},defaultTenantId:{type:"string",nullable:!0},options:{type:"array",items:{$ref:"#/components/schemas/TenantOptionDto"}}},required:["mode"]},SsoProviderConfigDto:{type:"object",properties:{id:{type:"string"},name:{type:"string"},logoUrl:{type:"string"},authorizationUrl:{type:"string"},clientId:{type:"string"},hint:{type:"string"}},required:["id","name"]},SsoConfigDto:{type:"object",properties:{enabled:{type:"boolean",example:!1},providers:{type:"array",items:{$ref:"#/components/schemas/SsoProviderConfigDto"}}},required:["enabled"]},UiConfigDto:{type:"object",properties:{brandName:{type:"string"},brandColor:{type:"string"},logoUrl:{type:"string"},backgroundImageUrl:{type:"string"}}},ClientConfigResponseDto:{type:"object",properties:{emailAuth:{$ref:"#/components/schemas/EmailAuthConfigDto"},phoneAuth:{$ref:"#/components/schemas/PhoneAuthConfigDto"},registration:{$ref:"#/components/schemas/RegistrationConfigDto"},mfa:{$ref:"#/components/schemas/MfaConfigDto"},tenants:{$ref:"#/components/schemas/TenantsConfigDto"},sso:{$ref:"#/components/schemas/SsoConfigDto"},ui:{$ref:"#/components/schemas/UiConfigDto"}},required:["emailAuth","phoneAuth","registration","mfa","tenants","sso"]},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:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode"]},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"]}}},mSt={openapi:lSt,paths:cSt,info:uSt,tags:dSt,servers:fSt,components:pSt},B2=({content:e})=>T.jsx(Cyt,{remarkPlugins:[MC],components:{code({node:t,inline:n,className:r,children:a,...i}){const o=/language-(\w+)/.exec(r||"");return!n&&o?T.jsx(Ive,{...i,style:nSt,language:o[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(a).replace(/\n$/,"")}):T.jsx("code",{...i,className:`${r} bg-gray-100 text-gray-800 rounded px-1 py-0.5 text-sm font-mono`,children:a})},table({children:t}){return T.jsx("div",{className:"overflow-x-auto my-4 border border-gray-200 rounded-lg",children:T.jsx("table",{className:"min-w-full divide-y divide-gray-200",children:t})})},thead({children:t}){return T.jsx("thead",{className:"bg-gray-50",children:t})},th({children:t}){return T.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:t})},td({children:t}){return T.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 border-t border-gray-200",children:t})},a({href:t,children:n}){return T.jsx("a",{href:t,className:"text-primary-600 hover:text-primary-800 hover:underline",target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return T.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-8 mb-4 pb-2 border-b border-gray-200",children:t})},h3({children:t}){return T.jsx("h3",{className:"text-xl font-semibold text-gray-900 mt-6 mb-3",children:t})},p({children:t}){return T.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:t})},ul({children:t}){return T.jsx("ul",{className:"list-disc list-inside space-y-1 mb-4 text-gray-700",children:t})},li({children:t}){return T.jsx("li",{className:"ml-4",children:t})},blockquote({children:t}){return T.jsx("blockquote",{className:"border-l-4 border-primary-500 pl-4 py-1 my-4 bg-primary-50 text-gray-700 italic rounded-r",children:t})}},children:e}),hSt=()=>{const[e,t]=te.useState(!1),[n,r]=te.useState(null),[a,i]=te.useState("api");te.useEffect(()=>{const l=mSt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const o=()=>{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:d7},{id:"config",label:"Configuration",icon:TFe},{id:"examples",label:"Examples",icon:YJ},{id:"events",label:"Events",icon:NFe},{id:"api-reference",label:"API Reference",icon:bFe},{id:"services",label:"Services",icon:YJ}];return T.jsxs("div",{className:"space-y-6",children:[T.jsx(Iv,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:a==="api"&&T.jsxs("button",{onClick:o,className:"btn-secondary flex items-center gap-2",disabled:e,children:[T.jsx(wFe,{className:"w-4 h-4"}),"Download JSON"]})}),T.jsx("div",{className:"border-b border-gray-200",children:T.jsx("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:s.map(l=>{const c=l.icon;return T.jsxs("button",{onClick:()=>i(l.id),className:`
5215
+ - 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/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/AuthWithTokensResponseDto"}}}}},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/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"]}}},uSt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"1.1.35",contact:{}},dSt=[],fSt=[],pSt={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"}},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"}},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"}]}},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"},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},rememberDevice:{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"}},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"]},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"]},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:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode"]},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"]}}},mSt={openapi:lSt,paths:cSt,info:uSt,tags:dSt,servers:fSt,components:pSt},B2=({content:e})=>T.jsx(Cyt,{remarkPlugins:[MC],components:{code({node:t,inline:n,className:r,children:a,...i}){const o=/language-(\w+)/.exec(r||"");return!n&&o?T.jsx(Ive,{...i,style:nSt,language:o[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(a).replace(/\n$/,"")}):T.jsx("code",{...i,className:`${r} bg-gray-100 text-gray-800 rounded px-1 py-0.5 text-sm font-mono`,children:a})},table({children:t}){return T.jsx("div",{className:"overflow-x-auto my-4 border border-gray-200 rounded-lg",children:T.jsx("table",{className:"min-w-full divide-y divide-gray-200",children:t})})},thead({children:t}){return T.jsx("thead",{className:"bg-gray-50",children:t})},th({children:t}){return T.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:t})},td({children:t}){return T.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 border-t border-gray-200",children:t})},a({href:t,children:n}){return T.jsx("a",{href:t,className:"text-primary-600 hover:text-primary-800 hover:underline",target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return T.jsx("h2",{className:"text-2xl font-bold text-gray-900 mt-8 mb-4 pb-2 border-b border-gray-200",children:t})},h3({children:t}){return T.jsx("h3",{className:"text-xl font-semibold text-gray-900 mt-6 mb-3",children:t})},p({children:t}){return T.jsx("p",{className:"text-gray-700 leading-relaxed mb-4",children:t})},ul({children:t}){return T.jsx("ul",{className:"list-disc list-inside space-y-1 mb-4 text-gray-700",children:t})},li({children:t}){return T.jsx("li",{className:"ml-4",children:t})},blockquote({children:t}){return T.jsx("blockquote",{className:"border-l-4 border-primary-500 pl-4 py-1 my-4 bg-primary-50 text-gray-700 italic rounded-r",children:t})}},children:e}),hSt=()=>{const[e,t]=te.useState(!1),[n,r]=te.useState(null),[a,i]=te.useState("api");te.useEffect(()=>{const l=mSt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const o=()=>{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:d7},{id:"config",label:"Configuration",icon:TFe},{id:"examples",label:"Examples",icon:YJ},{id:"events",label:"Events",icon:NFe},{id:"api-reference",label:"API Reference",icon:bFe},{id:"services",label:"Services",icon:YJ}];return T.jsxs("div",{className:"space-y-6",children:[T.jsx(Iv,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:a==="api"&&T.jsxs("button",{onClick:o,className:"btn-secondary flex items-center gap-2",disabled:e,children:[T.jsx(wFe,{className:"w-4 h-4"}),"Download JSON"]})}),T.jsx("div",{className:"border-b border-gray-200",children:T.jsx("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:s.map(l=>{const c=l.icon;return T.jsxs("button",{onClick:()=>i(l.id),className:`
5242
5216
  whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm flex items-center gap-2 transition-colors
5243
5217
  ${a===l.id?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}
5244
5218
  `,children:[T.jsx(c,{className:"w-4 h-4"}),l.label]},l.id)})})}),a==="api"&&(e?T.jsx("div",{className:"card",children:T.jsx("div",{className:"p-6 text-center",children:T.jsxs("div",{className:"p-4 bg-amber-50 border border-amber-200 rounded-lg flex items-start gap-3 mb-4",children:[T.jsx(Sf,{className:"w-5 h-5 text-amber-600 flex-shrink-0 mt-0.5"}),T.jsxs("div",{className:"text-left",children:[T.jsx("p",{className:"font-semibold text-amber-900 mb-1",children:"API Documentation Not Available"}),T.jsx("p",{className:"text-sm text-amber-800",children:"The OpenAPI specification file could not be loaded. Make sure the OpenAPI spec has been generated by running the build process."})]})]})})}):T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"card bg-blue-50 border-blue-200",children:T.jsxs("div",{className:"p-4 flex items-start gap-3",children:[T.jsx(d7,{className:"w-5 h-5 text-blue-600 flex-shrink-0 mt-0.5"}),T.jsxs("div",{className:"flex-1",children:[T.jsx("p",{className:"text-sm font-medium text-blue-900 mb-1",children:"Interactive API Documentation"}),T.jsx("p",{className:"text-sm text-blue-800",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&&T.jsx(c0t,{spec:n})]})),a==="config"&&T.jsx("div",{className:"card p-8",children:T.jsx("div",{className:"prose prose-blue max-w-none",children:T.jsx(B2,{content:rSt})})}),a==="examples"&&T.jsx("div",{className:"card p-8",children:T.jsx("div",{className:"prose prose-blue max-w-none",children:T.jsx(B2,{content:aSt})})}),a==="events"&&T.jsx("div",{className:"card p-8",children:T.jsx("div",{className:"prose prose-blue max-w-none",children:T.jsx(B2,{content:iSt})})}),a==="api-reference"&&T.jsx("div",{className:"card p-8",children:T.jsx("div",{className:"prose prose-blue max-w-none",children:T.jsx(B2,{content:oSt})})}),a==="services"&&T.jsx("div",{className:"card p-8",children:T.jsx("div",{className:"prose prose-blue max-w-none",children:T.jsx(B2,{content:sSt})})})]})},bh=({children:e,authenticated:t})=>t===null?T.jsx("div",{className:"min-h-screen bg-gray-50 flex items-center justify-center",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-4 border-primary-600 mx-auto mb-4"}),T.jsx("p",{className:"text-gray-600 font-medium",children:"Verifying authentication..."})]})}):t?T.jsx(T.Fragment,{children:e}):T.jsx(p1,{to:"/login",replace:!0}),gSt=()=>{const[e,t]=te.useState(null),[n,r]=te.useState(null),[a,i]=te.useState(!1),[o,s]=te.useState(null);te.useEffect(()=>{l()},[]);const l=async()=>{try{await cn.get("/me"),t(!0);const d=await cn.get("/config");r(d)}catch(d){console.error("Auth check failed:",d),t(!1);try{const f=await cn.get("/config");r(f)}catch(f){console.error("Failed to load config:",f),r({allowAdminManagement:!1})}}finally{i(!0)}},c=async d=>{s(null);try{await cn.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 cn.post("/logout",{})}catch(d){console.error("Logout failed:",d)}t(!1)};return!a||n===null?T.jsx("div",{className:"min-h-screen bg-gradient-to-br from-primary-50 via-blue-50 to-purple-50 flex items-center justify-center",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-primary-600 rounded-full mb-4 shadow-lg",children:T.jsxs("svg",{className:"w-8 h-8 text-white animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[T.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),T.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),T.jsx("p",{className:"text-gray-700 font-medium text-lg",children:"Loading Nest Auth Dashboard..."}),T.jsx("p",{className:"text-gray-500 text-sm mt-2",children:"Verifying authentication"})]})}):T.jsx(mFe,{children:T.jsx(iFe,{children:T.jsxs(Yje,{children:[T.jsx(dc,{path:"/login",element:e?T.jsx(p1,{to:"/dashboard",replace:!0}):T.jsx(cBe,{onLogin:c,error:o})}),T.jsx(dc,{path:"/dashboard",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(Rht,{})})})}),T.jsx(dc,{path:"/users",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(zht,{})})})}),T.jsx(dc,{path:"/roles",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(Qht,{})})})}),T.jsx(dc,{path:"/tenants",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(Yht,{})})})}),T.jsx(dc,{path:"/permissions",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(i0t,{})})})}),T.jsx(dc,{path:"/api",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(hSt,{})})})}),n.allowAdminManagement&&T.jsx(dc,{path:"/admins",element:T.jsx(bh,{authenticated:e,children:T.jsx(dh,{config:n,onLogout:u,children:T.jsx(t0t,{})})})}),T.jsx(dc,{path:"/",element:e?T.jsx(p1,{to:"/dashboard",replace:!0}):T.jsx(p1,{to:"/login",replace:!0})}),T.jsx(dc,{path:"*",element:e?T.jsx(p1,{to:"/dashboard",replace:!0}):T.jsx(p1,{to:"/login",replace:!0})})]})})})},kie=document.getElementById("root");kie&&mD.createRoot(kie).render(T.jsx(fe.StrictMode,{children:T.jsx(gSt,{})}));/**
@@ -459,29 +459,6 @@
459
459
  ]
460
460
  }
461
461
  },
462
- "/auth/client-config": {
463
- "get": {
464
- "description": "Returns backend configuration for frontend clients. Includes enabled auth methods, registration settings, MFA options, tenant configuration, and SSO providers. Can be customized via clientConfig.factory in AuthModuleOptions.",
465
- "operationId": "AuthController_getClientConfig",
466
- "parameters": [],
467
- "responses": {
468
- "200": {
469
- "description": "",
470
- "content": {
471
- "application/json": {
472
- "schema": {
473
- "$ref": "#/components/schemas/ClientConfigResponseDto"
474
- }
475
- }
476
- }
477
- }
478
- },
479
- "summary": "Get Client Configuration",
480
- "tags": [
481
- "Auth"
482
- ]
483
- }
484
- },
485
462
  "/auth/callback/{provider}": {
486
463
  "get": {
487
464
  "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.",
@@ -705,7 +682,7 @@
705
682
  "info": {
706
683
  "title": "@ackplus/nest-auth API",
707
684
  "description": "OpenAPI specification generated from the Nest Auth module",
708
- "version": "1.1.34",
685
+ "version": "1.1.35",
709
686
  "contact": {}
710
687
  },
711
688
  "tags": [],
@@ -1306,272 +1283,6 @@
1306
1283
  "message"
1307
1284
  ]
1308
1285
  },
1309
- "EmailAuthConfigDto": {
1310
- "type": "object",
1311
- "properties": {
1312
- "enabled": {
1313
- "type": "boolean",
1314
- "example": true
1315
- }
1316
- },
1317
- "required": [
1318
- "enabled"
1319
- ]
1320
- },
1321
- "PhoneAuthConfigDto": {
1322
- "type": "object",
1323
- "properties": {
1324
- "enabled": {
1325
- "type": "boolean",
1326
- "example": false
1327
- }
1328
- },
1329
- "required": [
1330
- "enabled"
1331
- ]
1332
- },
1333
- "RegistrationConfigDto": {
1334
- "type": "object",
1335
- "properties": {
1336
- "enabled": {
1337
- "type": "boolean",
1338
- "example": true,
1339
- "description": "Whether user registration is enabled"
1340
- },
1341
- "requireInvitation": {
1342
- "type": "boolean",
1343
- "example": false,
1344
- "description": "Whether registration requires an invitation"
1345
- },
1346
- "collectProfileFields": {
1347
- "type": "array",
1348
- "description": "Additional profile fields to collect during registration",
1349
- "items": {
1350
- "type": "object",
1351
- "properties": {
1352
- "id": {
1353
- "type": "string"
1354
- },
1355
- "label": {
1356
- "type": "string"
1357
- },
1358
- "required": {
1359
- "type": "boolean"
1360
- },
1361
- "type": {
1362
- "type": "string",
1363
- "enum": [
1364
- "text",
1365
- "email",
1366
- "phone",
1367
- "select",
1368
- "checkbox",
1369
- "password"
1370
- ]
1371
- },
1372
- "placeholder": {
1373
- "type": "string"
1374
- },
1375
- "options": {
1376
- "type": "array",
1377
- "items": {
1378
- "type": "object",
1379
- "properties": {
1380
- "label": {
1381
- "type": "string"
1382
- },
1383
- "value": {
1384
- "type": "string"
1385
- }
1386
- }
1387
- }
1388
- }
1389
- }
1390
- }
1391
- }
1392
- },
1393
- "required": [
1394
- "enabled"
1395
- ]
1396
- },
1397
- "MfaConfigDto": {
1398
- "type": "object",
1399
- "properties": {
1400
- "enabled": {
1401
- "type": "boolean",
1402
- "example": true
1403
- },
1404
- "methods": {
1405
- "example": [
1406
- "email",
1407
- "totp"
1408
- ],
1409
- "type": "array",
1410
- "items": {
1411
- "type": "array"
1412
- }
1413
- },
1414
- "allowUserToggle": {
1415
- "type": "boolean",
1416
- "example": true
1417
- },
1418
- "allowMethodSelection": {
1419
- "type": "boolean",
1420
- "example": true
1421
- }
1422
- },
1423
- "required": [
1424
- "enabled"
1425
- ]
1426
- },
1427
- "TenantOptionDto": {
1428
- "type": "object",
1429
- "properties": {
1430
- "id": {
1431
- "type": "string"
1432
- },
1433
- "name": {
1434
- "type": "string"
1435
- },
1436
- "slug": {
1437
- "type": "string"
1438
- },
1439
- "isActive": {
1440
- "type": "boolean"
1441
- },
1442
- "metadata": {
1443
- "type": "object"
1444
- }
1445
- },
1446
- "required": [
1447
- "id",
1448
- "name",
1449
- "slug",
1450
- "isActive"
1451
- ]
1452
- },
1453
- "TenantsConfigDto": {
1454
- "type": "object",
1455
- "properties": {
1456
- "mode": {
1457
- "type": "string",
1458
- "example": "single",
1459
- "enum": [
1460
- "single",
1461
- "multi"
1462
- ]
1463
- },
1464
- "defaultTenantId": {
1465
- "type": "string",
1466
- "nullable": true
1467
- },
1468
- "options": {
1469
- "type": "array",
1470
- "items": {
1471
- "$ref": "#/components/schemas/TenantOptionDto"
1472
- }
1473
- }
1474
- },
1475
- "required": [
1476
- "mode"
1477
- ]
1478
- },
1479
- "SsoProviderConfigDto": {
1480
- "type": "object",
1481
- "properties": {
1482
- "id": {
1483
- "type": "string"
1484
- },
1485
- "name": {
1486
- "type": "string"
1487
- },
1488
- "logoUrl": {
1489
- "type": "string"
1490
- },
1491
- "authorizationUrl": {
1492
- "type": "string"
1493
- },
1494
- "clientId": {
1495
- "type": "string"
1496
- },
1497
- "hint": {
1498
- "type": "string"
1499
- }
1500
- },
1501
- "required": [
1502
- "id",
1503
- "name"
1504
- ]
1505
- },
1506
- "SsoConfigDto": {
1507
- "type": "object",
1508
- "properties": {
1509
- "enabled": {
1510
- "type": "boolean",
1511
- "example": false
1512
- },
1513
- "providers": {
1514
- "type": "array",
1515
- "items": {
1516
- "$ref": "#/components/schemas/SsoProviderConfigDto"
1517
- }
1518
- }
1519
- },
1520
- "required": [
1521
- "enabled"
1522
- ]
1523
- },
1524
- "UiConfigDto": {
1525
- "type": "object",
1526
- "properties": {
1527
- "brandName": {
1528
- "type": "string"
1529
- },
1530
- "brandColor": {
1531
- "type": "string"
1532
- },
1533
- "logoUrl": {
1534
- "type": "string"
1535
- },
1536
- "backgroundImageUrl": {
1537
- "type": "string"
1538
- }
1539
- }
1540
- },
1541
- "ClientConfigResponseDto": {
1542
- "type": "object",
1543
- "properties": {
1544
- "emailAuth": {
1545
- "$ref": "#/components/schemas/EmailAuthConfigDto"
1546
- },
1547
- "phoneAuth": {
1548
- "$ref": "#/components/schemas/PhoneAuthConfigDto"
1549
- },
1550
- "registration": {
1551
- "$ref": "#/components/schemas/RegistrationConfigDto"
1552
- },
1553
- "mfa": {
1554
- "$ref": "#/components/schemas/MfaConfigDto"
1555
- },
1556
- "tenants": {
1557
- "$ref": "#/components/schemas/TenantsConfigDto"
1558
- },
1559
- "sso": {
1560
- "$ref": "#/components/schemas/SsoConfigDto"
1561
- },
1562
- "ui": {
1563
- "$ref": "#/components/schemas/UiConfigDto"
1564
- }
1565
- },
1566
- "required": [
1567
- "emailAuth",
1568
- "phoneAuth",
1569
- "registration",
1570
- "mfa",
1571
- "tenants",
1572
- "sso"
1573
- ]
1574
- },
1575
1286
  "MfaDeviceDto": {
1576
1287
  "type": "object",
1577
1288
  "properties": {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/auth.module.ts"],"names":[],"mappings":"AAyBA,qBAsCa,UAAU;CACtB"}
1
+ {"version":3,"file":"auth.module.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/auth.module.ts"],"names":[],"mappings":"AAwBA,qBAoCa,UAAU;CACtB"}
@@ -10,7 +10,6 @@ exports.AuthModule = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
11
  const auth_service_1 = require("./services/auth.service");
12
12
  const mfa_service_1 = require("./services/mfa.service");
13
- const client_config_service_1 = require("./services/client-config.service");
14
13
  const auth_guard_1 = require("./guards/auth.guard");
15
14
  const token_response_interceptor_1 = require("./interceptors/token-response.interceptor");
16
15
  const auth_controller_1 = require("./controllers/auth.controller");
@@ -55,7 +54,6 @@ exports.AuthModule = AuthModule = __decorate([
55
54
  providers: [
56
55
  auth_service_1.AuthService,
57
56
  mfa_service_1.MfaService,
58
- client_config_service_1.ClientConfigService,
59
57
  auth_guard_1.NestAuthAuthGuard,
60
58
  token_response_interceptor_1.TokenResponseInterceptor,
61
59
  auth_session_event_listener_service_1.AuthSessionEventListener,
@@ -68,7 +66,6 @@ exports.AuthModule = AuthModule = __decorate([
68
66
  password_service_1.PasswordService,
69
67
  verification_service_1.VerificationService,
70
68
  mfa_service_1.MfaService,
71
- client_config_service_1.ClientConfigService,
72
69
  auth_guard_1.NestAuthAuthGuard,
73
70
  token_response_interceptor_1.TokenResponseInterceptor,
74
71
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/lib/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,0DAAsD;AACtD,wDAAoD;AACpD,4EAAuE;AACvE,oDAAwD;AACxD,0FAAqF;AACrF,mEAA+D;AAC/D,iEAA6D;AAC7D,wGAA0F;AAC1F,sEAAoE;AACpE,6CAAgD;AAChD,8DAA4D;AAC5D,kEAA8D;AAC9D,0EAAsE;AACtE,sDAAoD;AACpD,oEAAiE;AACjE,0EAAuE;AACvE,4EAAyE;AACzE,yDAA2D;AAC3D,qDAAiD;AACjD,qDAAiD;AACjD,8DAA0D;AAC1D,2DAAuD;AACvD,qDAAiD;AAwC1C,IAAM,UAAU,GAAhB,MAAM,UAAU;CACtB,CAAA;AADY,gCAAU;qBAAV,UAAU;IAtCtB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,kCAAkB;YAClB,uBAAa,CAAC,UAAU,CAAC;gBACrB,0BAAY;gBACZ,wBAAW;gBACX,qCAAiB;gBACjB,qCAAiB;gBACjB,kCAAgB;gBAChB,6CAAqB;aACxB,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;YAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;SAC/B;QACD,SAAS,EAAE;YACP,0BAAW;YACX,wBAAU;YACV,2CAAmB;YACnB,8BAAiB;YACjB,qDAAwB;YACxB,8DAAwB;YACxB,kCAAe;YACf,0CAAmB;SACtB;QACD,WAAW,EAAE,CAAC,gCAAc,EAAE,8BAAa,CAAC;QAC5C,OAAO,EAAE;YACL,0BAAW;YACX,kCAAe;YACf,0CAAmB;YACnB,wBAAU;YACV,2CAAmB;YACnB,8BAAiB;YACjB,qDAAwB;SAC3B;KACJ,CAAC;GACW,UAAU,CACtB"}
1
+ {"version":3,"file":"auth.module.js","sourceRoot":"","sources":["../../../src/lib/auth/auth.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,0DAAsD;AACtD,wDAAoD;AACpD,oDAAwD;AACxD,0FAAqF;AACrF,mEAA+D;AAC/D,iEAA6D;AAC7D,wGAA0F;AAC1F,sEAAoE;AACpE,6CAAgD;AAChD,8DAA4D;AAC5D,kEAA8D;AAC9D,0EAAsE;AACtE,sDAAoD;AACpD,oEAAiE;AACjE,0EAAuE;AACvE,4EAAyE;AACzE,yDAA2D;AAC3D,qDAAiD;AACjD,qDAAiD;AACjD,8DAA0D;AAC1D,2DAAuD;AACvD,qDAAiD;AAsC1C,IAAM,UAAU,GAAhB,MAAM,UAAU;CACtB,CAAA;AADY,gCAAU;qBAAV,UAAU;IApCtB,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE;YACL,kCAAkB;YAClB,uBAAa,CAAC,UAAU,CAAC;gBACrB,0BAAY;gBACZ,wBAAW;gBACX,qCAAiB;gBACjB,qCAAiB;gBACjB,kCAAgB;gBAChB,6CAAqB;aACxB,CAAC;YACF,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;YAC/B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;SAC/B;QACD,SAAS,EAAE;YACP,0BAAW;YACX,wBAAU;YACV,8BAAiB;YACjB,qDAAwB;YACxB,8DAAwB;YACxB,kCAAe;YACf,0CAAmB;SACtB;QACD,WAAW,EAAE,CAAC,gCAAc,EAAE,8BAAa,CAAC;QAC5C,OAAO,EAAE;YACL,0BAAW;YACX,kCAAe;YACf,0CAAmB;YACnB,wBAAU;YACV,8BAAiB;YACjB,qDAAwB;SAC3B;KACJ,CAAC;GACW,UAAU,CACtB"}
@@ -14,23 +14,20 @@ import { VerifyOtpResponseDto } from '../dto/responses/verify-otp.response.dto';
14
14
  import { NestAuthChangePasswordRequestDto } from '../dto/requests/change-password.request.dto';
15
15
  import { NestAuthSendEmailVerificationRequestDto } from '../dto/requests/send-email-verification.request.dto';
16
16
  import { NestAuthVerifyEmailRequestDto } from '../dto/requests/verify-email.request.dto';
17
- import { ClientConfigService } from '../services/client-config.service';
18
- import { ClientConfigResponseDto } from '../dto/responses/client-config.response.dto';
19
17
  import { PasswordService } from '../services/password.service';
20
18
  import { VerificationService } from '../services/verification.service';
21
19
  export declare class AuthController {
22
20
  private readonly authService;
23
21
  private readonly passwordService;
24
22
  private readonly verificationService;
25
- private readonly clientConfigService;
26
- constructor(authService: AuthService, passwordService: PasswordService, verificationService: VerificationService, clientConfigService: ClientConfigService);
23
+ constructor(authService: AuthService, passwordService: PasswordService, verificationService: VerificationService);
27
24
  signup(input: NestAuthSignupRequestDto): Promise<AuthWithTokensResponseDto>;
28
25
  login(input: NestAuthLoginRequestDto): Promise<AuthWithTokensResponseDto>;
29
26
  refreshToken(input: NestAuthRefreshTokenRequestDto): Promise<AuthWithTokensResponseDto>;
30
27
  send2faCode(method: NestAuthMFAMethodEnum): Promise<NestAuthMfaCodeSentResponseDto>;
31
28
  verify2fa(input: NestAuthVerify2faRequestDto): Promise<Verify2faWithTokensResponseDto>;
32
29
  logout(res: Response, req: Request): Promise<NestAuthLogoutResponseDto>;
33
- logoutAll(): Promise<NestAuthLogoutAllResponseDto>;
30
+ logoutAll(res: Response): Promise<NestAuthLogoutAllResponseDto>;
34
31
  changePassword(input: NestAuthChangePasswordRequestDto): Promise<AuthWithTokensResponseDto>;
35
32
  forgotPassword(input: NestAuthForgotPasswordRequestDto): Promise<NestAuthPasswordResetLinkSentResponseDto>;
36
33
  verifyForgotPasswordOtp(input: NestAuthVerifyForgotPasswordOtpRequestDto): Promise<VerifyOtpResponseDto>;
@@ -43,7 +40,6 @@ export declare class AuthController {
43
40
  }>;
44
41
  sendEmailVerification(input: NestAuthSendEmailVerificationRequestDto): Promise<NestAuthEmailVerificationSentResponseDto>;
45
42
  verifyEmail(input: NestAuthVerifyEmailRequestDto): Promise<NestAuthEmailVerifiedResponseDto>;
46
- getClientConfig(): Promise<ClientConfigResponseDto>;
47
43
  ssoCallback(provider: string, data: any, res: Response): Promise<void>;
48
44
  }
49
45
  //# sourceMappingURL=auth.controller.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../../../src/lib/auth/controllers/auth.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,yBAAyB,EAAmB,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEhI,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EACH,yBAAyB,EACzB,4BAA4B,EAC5B,wCAAwC,EACxC,gCAAgC,EAChC,wCAA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AAS,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAgB/F,WAAW,CAAiB,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAsBnG,SAAS,CAAS,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAc9F,MAAM,CAA6B,GAAG,EAAE,QAAQ,EAAS,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAwB1G,SAAS,CAA6B,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,4BAA4B,CAAC;IAqB3F,cAAc,CAAS,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAanG,cAAc,CAAS,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,wCAAwC,CAAC;IAUlH,uBAAuB,CAAS,KAAK,EAAE,yCAAyC,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAShH,aAAa,CAAS,KAAK,EAAE,wCAAwC,GAAG,OAAO,CAAC,gCAAgC,CAAC;IASjH,OAAO;IAoBP,aAAa;;;;;IAgBb,qBAAqB,CAAS,KAAK,EAAE,uCAAuC,GAAG,OAAO,CAAC,wCAAwC,CAAC;IAWhI,WAAW,CAAS,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAUpG,WAAW,CACM,QAAQ,EAAE,MAAM,EAC1B,IAAI,EAAE,GAAG,EACX,GAAG,EAAE,QAAQ;CA6F3B"}
@@ -35,8 +35,6 @@ const verify_otp_response_dto_1 = require("../dto/responses/verify-otp.response.
35
35
  const change_password_request_dto_1 = require("../dto/requests/change-password.request.dto");
36
36
  const send_email_verification_request_dto_1 = require("../dto/requests/send-email-verification.request.dto");
37
37
  const verify_email_request_dto_1 = require("../dto/requests/verify-email.request.dto");
38
- const client_config_service_1 = require("../services/client-config.service");
39
- const client_config_response_dto_1 = require("../dto/responses/client-config.response.dto");
40
38
  const auth_constants_1 = require("../../auth.constants");
41
39
  const common_2 = require("@nestjs/common");
42
40
  const password_service_1 = require("../services/password.service");
@@ -48,12 +46,10 @@ let AuthController = class AuthController {
48
46
  authService;
49
47
  passwordService;
50
48
  verificationService;
51
- clientConfigService;
52
- constructor(authService, passwordService, verificationService, clientConfigService) {
49
+ constructor(authService, passwordService, verificationService) {
53
50
  this.authService = authService;
54
51
  this.passwordService = passwordService;
55
52
  this.verificationService = verificationService;
56
- this.clientConfigService = clientConfigService;
57
53
  }
58
54
  async signup(input) {
59
55
  const response = await this.authService.signup(input);
@@ -100,16 +96,18 @@ let AuthController = class AuthController {
100
96
  }
101
97
  catch (e) {
102
98
  }
103
- res.clearCookie(auth_constants_1.ACCESS_TOKEN_COOKIE_NAME);
104
- res.clearCookie(auth_constants_1.REFRESH_TOKEN_COOKIE_NAME);
99
+ res.clearCookie(auth_constants_1.ACCESS_TOKEN_COOKIE_NAME, { path: '/' });
100
+ res.clearCookie(auth_constants_1.REFRESH_TOKEN_COOKIE_NAME, { path: '/' });
105
101
  return { message: 'Logged out successfully' };
106
102
  }
107
- async logoutAll() {
103
+ async logoutAll(res) {
108
104
  const user = request_context_1.RequestContext.currentUser();
109
105
  if (!user) {
110
106
  throw new common_1.UnauthorizedException('User not found');
111
107
  }
112
108
  await this.authService.logoutAll(user.id);
109
+ res.clearCookie(auth_constants_1.ACCESS_TOKEN_COOKIE_NAME, { path: '/' });
110
+ res.clearCookie(auth_constants_1.REFRESH_TOKEN_COOKIE_NAME, { path: '/' });
113
111
  return { message: 'Logged out from all devices successfully' };
114
112
  }
115
113
  async changePassword(input) {
@@ -150,9 +148,6 @@ let AuthController = class AuthController {
150
148
  await this.verificationService.verifyEmail(input);
151
149
  return { message: 'Email verified successfully' };
152
150
  }
153
- async getClientConfig() {
154
- return await this.clientConfigService.getClientConfig();
155
- }
156
151
  async ssoCallback(provider, data, res) {
157
152
  const jsonData = JSON.stringify(data);
158
153
  const escapedData = jsonData.replace(/</g, '\\u003c').replace(/>/g, '\\u003e');
@@ -345,8 +340,9 @@ __decorate([
345
340
  (0, common_1.Post)('logout-all'),
346
341
  (0, core_1.SkipMfa)(),
347
342
  (0, common_1.UseGuards)(auth_guard_1.NestAuthAuthGuard),
343
+ __param(0, (0, common_1.Res)({ passthrough: true })),
348
344
  __metadata("design:type", Function),
349
- __metadata("design:paramtypes", []),
345
+ __metadata("design:paramtypes", [Object]),
350
346
  __metadata("design:returntype", Promise)
351
347
  ], AuthController.prototype, "logoutAll", null);
352
348
  __decorate([
@@ -449,18 +445,6 @@ __decorate([
449
445
  __metadata("design:paramtypes", [verify_email_request_dto_1.NestAuthVerifyEmailRequestDto]),
450
446
  __metadata("design:returntype", Promise)
451
447
  ], AuthController.prototype, "verifyEmail", null);
452
- __decorate([
453
- (0, swagger_2.ApiOperation)({
454
- summary: 'Get Client Configuration',
455
- description: 'Returns backend configuration for frontend clients. Includes enabled auth methods, registration settings, MFA options, tenant configuration, and SSO providers. Can be customized via clientConfig.factory in AuthModuleOptions.',
456
- }),
457
- (0, swagger_1.ApiResponse)({ status: 200, type: client_config_response_dto_1.ClientConfigResponseDto }),
458
- (0, common_1.HttpCode)(200),
459
- (0, common_1.Get)('client-config'),
460
- __metadata("design:type", Function),
461
- __metadata("design:paramtypes", []),
462
- __metadata("design:returntype", Promise)
463
- ], AuthController.prototype, "getClientConfig", null);
464
448
  __decorate([
465
449
  (0, swagger_2.ApiOperation)({
466
450
  summary: 'SSO Callback',
@@ -479,7 +463,6 @@ exports.AuthController = AuthController = __decorate([
479
463
  (0, common_2.UseFilters)(auth_exception_filter_1.AuthExceptionFilter),
480
464
  __metadata("design:paramtypes", [auth_service_1.AuthService,
481
465
  password_service_1.PasswordService,
482
- verification_service_1.VerificationService,
483
- client_config_service_1.ClientConfigService])
466
+ verification_service_1.VerificationService])
484
467
  ], AuthController);
485
468
  //# sourceMappingURL=auth.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/lib/au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GAAG,EAAE,IAAI,EAAE,oDAAuB,EAAE,CAAC;IAC3D,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACb,IAAA,YAAG,EAAC,eAAe,CAAC;;;;qDAGpB;AAOK;IALL,IAAA,sBAAY,EAAC;QACV,OAAO,EAAE,cAAc;QACvB,WAAW,EAAE,iMAAiM;KACjN,CAAC;IACD,IAAA,YAAG,EAAC,oBAAoB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iDA2FT;yBAhWQ,cAAc;IAF1B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,mBAAU,EAAC,2CAAmB,CAAC;qCAGM,0BAAW;QACP,kCAAe;QACX,0CAAmB;QACnB,2CAAmB;GALpD,cAAc,CAkW1B"}
1
+ {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/lib/auth/controllers/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAiI;AACjI,2DAAuD;AACvD,mFAAqF;AACrF,yFAA2F;AAE3F,6CAA8C;AAC9C,6CAA+C;AAC/C,0EAAgI;AAChI,wFAAkF;AAClF,2EAA8E;AAC9E,4FAQqD;AACrD,yEAA4E;AAC5E,2EAAuE;AACvE,qCAAqC;AACrC,sEAAqE;AACrE,6FAA+F;AAC/F,qDAAyD;AACzD,mHAAmH;AACnH,iHAAiH;AACjH,sFAAgF;AAChF,6FAA+F;AAC/F,6GAA8G;AAC9G,uFAAyF;AACzF,yDAA2F;AAI3F,2CAA6D;AAC7D,mEAA+D;AAC/D,2EAAuE;AACvE,2FAAsF;AACtF,4EAAuE;AAEvE,yEAA4D;AAIrD,IAAM,cAAc,GAApB,MAAM,cAAc;IAEF;IACA;IACA;IAHrB,YACqB,WAAwB,EACxB,eAAgC,EAChC,mBAAwC;QAFxC,gBAAW,GAAX,WAAW,CAAa;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AC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,qEAAwC,EAAE,CAAC;IAC5E,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACb,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,cAAO,GAAE;IACT,IAAA,kBAAS,EAAC,8BAAiB,CAAC;IACA,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAQ,6EAAuC;;2DAGjF;AAQK;IANL,IAAA,sBAAY,EAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IACzC,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,6DAAgC,EAAE,CAAC;IACpE,IAAA,iBAAQ,EAAC,GAAG,CAAC;IACb,IAAA,aAAI,EAAC,cAAc,CAAC;IACpB,IAAA,cAAO,GAAE;IACT,IAAA,kBAAS,EAAC,8BAAiB,CAAC;IACV,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAQ,wDAA6B;;iDAG7D;AAOK;IALL,IAAA,sBAAY,EAAC;QACV,OAAO,EAAE,cAAc;QACvB,WAAW,EAAE,iMAAiM;KACjN,CAAC;IACD,IAAA,YAAG,EAAC,oBAAoB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,UAAU,CAAC,CAAA;IACjB,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,YAAG,GAAE,CAAA;;;;iDA2FT;yBA3VQ,cAAc;IAF1B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAClB,IAAA,mBAAU,EAAC,2CAAmB,CAAC;qCAGM,0BAAW;QACP,kCAAe;QACX,0CAAmB;GAJpD,cAAc,CA6V1B"}
@@ -1,5 +1,5 @@
1
1
  import { IRegistrationCollectProfileField } from '../../../core/interfaces/auth-module-options.interface';
2
- import { IEmailAuthConfig, IPhoneAuthConfig, IRegistrationConfig, IMfaConfig, ITenantOption, ITenantsConfig, ISsoProviderConfig, ISsoConfig, IUiConfig, IClientConfigResponse } from '@ackplus/nest-auth-contracts';
2
+ import { IEmailAuthConfig, IPhoneAuthConfig, IRegistrationConfig, IMfaConfig, ITenantOption, ITenantsConfig, ISsoProviderConfig, ISsoConfig, IUiConfig } from '@ackplus/nest-auth-contracts';
3
3
  export declare class EmailAuthConfigDto implements IEmailAuthConfig {
4
4
  enabled: boolean;
5
5
  }
@@ -47,13 +47,4 @@ export declare class UiConfigDto implements IUiConfig {
47
47
  logoUrl?: string;
48
48
  backgroundImageUrl?: string;
49
49
  }
50
- export declare class ClientConfigResponseDto implements IClientConfigResponse {
51
- emailAuth: EmailAuthConfigDto;
52
- phoneAuth: PhoneAuthConfigDto;
53
- registration: RegistrationConfigDto;
54
- mfa: MfaConfigDto;
55
- tenants: TenantsConfigDto;
56
- sso: SsoConfigDto;
57
- ui?: UiConfigDto;
58
- }
59
50
  //# sourceMappingURL=client-config.response.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-config.response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/lib/auth/dto/responses/client-config.response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wDAAwD,CAAC;AAC1G,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,qBAAqB,EACxB,MAAM,8BAA8B,CAAC;AAEtC,qBAAa,kBAAmB,YAAW,gBAAgB;IAEvD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,kBAAmB,YAAW,gBAAgB;IAEvD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,qBAAsB,YAAW,mBAAmB;IAE7D,OAAO,EAAE,OAAO,CAAC;IAGjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IA0B5B,oBAAoB,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CAClE;AAED,qBAAa,YAAa,YAAW,UAAU;I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,qBAAqB,CAAC;IAGpC,GAAG,EAAE,YAAY,CAAC;IAGlB,OAAO,EAAE,gBAAgB,CAAC;IAG1B,GAAG,EAAE,YAAY,CAAC;IAGlB,EAAE,CAAC,EAAE,WAAW,CAAC;CACpB"}
1
+ {"version":3,"file":"client-config.response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/lib/auth/dto/responses/client-config.response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gCAAgC,EAAE,MAAM,wDAAwD,CAAC;AAC1G,OAAO,EACH,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,SAAS,EACZ,MAAM,8BAA8B,CAAC;AAEtC,qBAAa,kBAAmB,YAAW,gBAAgB;IAEvD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,kBAAmB,YAAW,gBAAgB;IAEvD,OAAO,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,qBAAsB,YAAW,mBAAmB;IAE7D,OAAO,EAAE,OAAO,CAAC;IAGjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IA0B5B,oBAAoB,CAAC,EAAE,KAAK,CAAC,gCAAgC,CAAC,CAAC;CAClE;AAED,qBAAa,YAAa,YAAW,UAAU;IAE3C,OAAO,EAAE,OAAO,CAAC;IAGjB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;IAGhB,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,qBAAa,eAAgB,YAAW,aAAa;IAEjD,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,OAAO,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,qBAAa,gBAAiB,YAAW,cAAc;IAEnD,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IAGzB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAG/B,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,qBAAa,oBAAqB,YAAW,kBAAkB;IAE3D,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,YAAa,YAAW,UAAU;IAE3C,OAAO,EAAE,OAAO,CAAC;IAGjB,SAAS,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACtC;AAED,qBAAa,WAAY,YAAW,SAAS;IAEzC,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ClientConfigResponseDto = exports.UiConfigDto = exports.SsoConfigDto = exports.SsoProviderConfigDto = exports.TenantsConfigDto = exports.TenantOptionDto = exports.MfaConfigDto = exports.RegistrationConfigDto = exports.PhoneAuthConfigDto = exports.EmailAuthConfigDto = void 0;
12
+ exports.UiConfigDto = exports.SsoConfigDto = exports.SsoProviderConfigDto = exports.TenantsConfigDto = exports.TenantOptionDto = exports.MfaConfigDto = exports.RegistrationConfigDto = exports.PhoneAuthConfigDto = exports.EmailAuthConfigDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  class EmailAuthConfigDto {
15
15
  enabled;
@@ -206,42 +206,4 @@ __decorate([
206
206
  (0, swagger_1.ApiPropertyOptional)(),
207
207
  __metadata("design:type", String)
208
208
  ], UiConfigDto.prototype, "backgroundImageUrl", void 0);
209
- class ClientConfigResponseDto {
210
- emailAuth;
211
- phoneAuth;
212
- registration;
213
- mfa;
214
- tenants;
215
- sso;
216
- ui;
217
- }
218
- exports.ClientConfigResponseDto = ClientConfigResponseDto;
219
- __decorate([
220
- (0, swagger_1.ApiProperty)({ type: EmailAuthConfigDto }),
221
- __metadata("design:type", EmailAuthConfigDto)
222
- ], ClientConfigResponseDto.prototype, "emailAuth", void 0);
223
- __decorate([
224
- (0, swagger_1.ApiProperty)({ type: PhoneAuthConfigDto }),
225
- __metadata("design:type", PhoneAuthConfigDto)
226
- ], ClientConfigResponseDto.prototype, "phoneAuth", void 0);
227
- __decorate([
228
- (0, swagger_1.ApiProperty)({ type: RegistrationConfigDto }),
229
- __metadata("design:type", RegistrationConfigDto)
230
- ], ClientConfigResponseDto.prototype, "registration", void 0);
231
- __decorate([
232
- (0, swagger_1.ApiProperty)({ type: MfaConfigDto }),
233
- __metadata("design:type", MfaConfigDto)
234
- ], ClientConfigResponseDto.prototype, "mfa", void 0);
235
- __decorate([
236
- (0, swagger_1.ApiProperty)({ type: TenantsConfigDto }),
237
- __metadata("design:type", TenantsConfigDto)
238
- ], ClientConfigResponseDto.prototype, "tenants", void 0);
239
- __decorate([
240
- (0, swagger_1.ApiProperty)({ type: SsoConfigDto }),
241
- __metadata("design:type", SsoConfigDto)
242
- ], ClientConfigResponseDto.prototype, "sso", void 0);
243
- __decorate([
244
- (0, swagger_1.ApiPropertyOptional)({ type: UiConfigDto }),
245
- __metadata("design:type", UiConfigDto)
246
- ], ClientConfigResponseDto.prototype, "ui", void 0);
247
209
  //# sourceMappingURL=client-config.response.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-config.response.dto.js","sourceRoot":"","sources":["../../../../../src/lib/auth/dto/responses/client-config.response.dto.ts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,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BAC/B,kBAAkB;0DAAC;AAG9B;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;8BAC/B,kBAAkB;0DAAC;AAG9B;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,CAAC;8BAC/B,qBAAqB;6DAAC;AAGpC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC/B,YAAY;oDAAC;AAGlB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAC/B,gBAAgB;wDAAC;AAG1B;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC/B,YAAY;oDAAC;AAGlB;IADC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BACtC,WAAW;mDAAC"}
1
+ {"version":3,"file":"client-config.response.dto.js","sourceRoot":"","sources":["../../../../../src/lib/auth/dto/responses/client-config.response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AAcnE,MAAa,kBAAkB;IAE3B,OAAO,CAAU;CACpB;AAHD,gDAGC;AADG;IADC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;mDACd;AAGrB,MAAa,kBAAkB;IAE3B,OAAO,CAAU;CACpB;AAHD,gDAGC;AADG;IADC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;mDACf;AAGrB,MAAa,qBAAqB;IAE9B,OAAO,CAAU;IAGjB,iBAAiB,CAAW;IA0B5B,oBAAoB,CAA2C;CAClE;AAhCD,sDAgCC;AA9BG;IADC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;sDACnE;AAGjB;IADC,IAAA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CAAU;IAGjB,SAAS,CAA0B;CACtC;AAND,oCAMC;AAJG;IADC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;6CACf;AAGjB;IADC,IAAA,6BAAmB,EAAC,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC;;+CACnB;AAGvC,MAAa,WAAW;IAEpB,SAAS,CAAU;IAGnB,UAAU,CAAU;IAGpB,OAAO,CAAU;IAGjB,kBAAkB,CAAU;CAC/B;AAZD,kCAYC;AAVG;IADC,IAAA,6BAAmB,GAAE;;8CACH;AAGnB;IADC,IAAA,6BAAmB,GAAE;;+CACF;AAGpB;IADC,IAAA,6BAAmB,GAAE;;4CACL;AAGjB;IADC,IAAA,6BAAmB,GAAE;;uDACM"}
@@ -11,7 +11,6 @@ export * from './events/user-registered.event';
11
11
  export * from './events/two-factor-code-sent.event';
12
12
  export * from './services/auth.service';
13
13
  export * from './services/mfa.service';
14
- export * from './services/client-config.service';
15
14
  export * from './controllers/auth.controller';
16
15
  export * from './controllers/mfa.controller';
17
16
  export * from './dto/requests/login.request.dto';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/auth/index.ts"],"names":[],"mappings":"AACA,cAAc,qBAAqB,CAAC;AAIpC,cAAc,2CAA2C,CAAC;AAG1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AAGpD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AAGjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAG7C,cAAc,kCAA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AAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,4CAA4C,CAAC;AAG3D,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC"}
@@ -27,7 +27,6 @@ __exportStar(require("./events/user-registered.event"), exports);
27
27
  __exportStar(require("./events/two-factor-code-sent.event"), exports);
28
28
  __exportStar(require("./services/auth.service"), exports);
29
29
  __exportStar(require("./services/mfa.service"), exports);
30
- __exportStar(require("./services/client-config.service"), exports);
31
30
  __exportStar(require("./controllers/auth.controller"), exports);
32
31
  __exportStar(require("./controllers/mfa.controller"), exports);
33
32
  __exportStar(require("./dto/requests/login.request.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,sDAAoC;AAIpC,4EAA0D;AAG1D,gEAA8C;AAC9C,4DAA0C;AAC1C,0EAAwD;AACxD,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,oEAAkD;AAClD,iEAA+C;AAC/C,sEAAoD;AAGpD,0DAAwC;AACxC,yDAAuC;AACvC,mEAAiD;AAGjD,gEAA8C;AAC9C,+DAA6C;AAG7C,mEAAiD;AACjD,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAC3D,uFAAqE;AACrE,wFAAsE;AACtE,2EAAyD;AACzD,6EAA2D;AAC3D,wEAAsD;AACtD,2EAAyD;AACzD,wEAAsD;AACtD,+EAA6D;AAC7D,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAG3D,wDAAsC;AACtC,+DAA6C;AAC7C,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,sDAAoC;AAIpC,4EAA0D;AAG1D,gEAA8C;AAC9C,4DAA0C;AAC1C,0EAAwD;AACxD,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,oEAAkD;AAClD,iEAA+C;AAC/C,sEAAoD;AAGpD,0DAAwC;AACxC,yDAAuC;AAGvC,gEAA8C;AAC9C,+DAA6C;AAG7C,mEAAiD;AACjD,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAC3D,uFAAqE;AACrE,wFAAsE;AACtE,2EAAyD;AACzD,6EAA2D;AAC3D,wEAAsD;AACtD,2EAAyD;AACzD,wEAAsD;AACtD,+EAA6D;AAC7D,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAG3D,wDAAsC;AACtC,+DAA6C;AAC7C,mEAAiD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ackplus/nest-auth",
3
- "version": "1.1.34",
3
+ "version": "1.1.35",
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.34"
42
+ "@ackplus/nest-auth-contracts": "1.1.35"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@nestjs/common": "^10 || ^11",
@@ -1,12 +0,0 @@
1
- import { AuthConfigService } from '../../core/services/auth-config.service';
2
- import { TenantService } from '../../tenant/services/tenant.service';
3
- import { ClientConfigResponseDto } from '../dto/responses/client-config.response.dto';
4
- export declare class ClientConfigService {
5
- private readonly authConfig;
6
- private readonly tenantService;
7
- constructor(authConfig: AuthConfigService, tenantService: TenantService);
8
- getClientConfig(): Promise<ClientConfigResponseDto>;
9
- private fetchTenants;
10
- private resolveDefaultTenantId;
11
- }
12
- //# sourceMappingURL=client-config.service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-config.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/auth/services/client-config.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAEtF,qBACa,mBAAmB;IAExB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa;gBADb,UAAU,EAAE,iBAAiB,EAC7B,aAAa,EAAE,aAAa;IAG3C,eAAe,IAAI,OAAO,CAAC,uBAAuB,CAAC;YA4G3C,YAAY;YAoBZ,sBAAsB;CAcvC"}
@@ -1,157 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ClientConfigService = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const auth_config_service_1 = require("../../core/services/auth-config.service");
15
- const tenant_service_1 = require("../../tenant/services/tenant.service");
16
- let ClientConfigService = class ClientConfigService {
17
- authConfig;
18
- tenantService;
19
- constructor(authConfig, tenantService) {
20
- this.authConfig = authConfig;
21
- this.tenantService = tenantService;
22
- }
23
- async getClientConfig() {
24
- const config = this.authConfig.getConfig();
25
- const tenants = await this.fetchTenants();
26
- const defaultTenantId = await this.resolveDefaultTenantId(config.defaultTenant);
27
- const ssoProviders = [];
28
- if (config.google) {
29
- const googleAuthUrl = new URL('https://accounts.google.com/o/oauth2/v2/auth');
30
- googleAuthUrl.searchParams.set('client_id', config.google.clientId);
31
- googleAuthUrl.searchParams.set('redirect_uri', config.google.redirectUri);
32
- googleAuthUrl.searchParams.set('response_type', 'code');
33
- googleAuthUrl.searchParams.set('scope', 'openid email profile');
34
- googleAuthUrl.searchParams.set('access_type', 'offline');
35
- googleAuthUrl.searchParams.set('prompt', 'consent');
36
- ssoProviders.push({
37
- id: 'google',
38
- name: 'Google',
39
- logoUrl: 'https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/google.svg',
40
- hint: 'Sign in with Google',
41
- clientId: config.google.clientId,
42
- authorizationUrl: googleAuthUrl.toString(),
43
- });
44
- }
45
- if (config.facebook) {
46
- const facebookAuthUrl = new URL('https://www.facebook.com/v18.0/dialog/oauth');
47
- facebookAuthUrl.searchParams.set('client_id', config.facebook.appId);
48
- facebookAuthUrl.searchParams.set('redirect_uri', config.facebook.redirectUri);
49
- facebookAuthUrl.searchParams.set('scope', 'email');
50
- facebookAuthUrl.searchParams.set('response_type', 'code');
51
- ssoProviders.push({
52
- id: 'facebook',
53
- name: 'Facebook',
54
- logoUrl: 'https://www.gstatic.com/firebasejs/ui/2.0.0/images/auth/facebook.svg',
55
- hint: 'Sign in with Facebook',
56
- clientId: config.facebook.appId,
57
- authorizationUrl: facebookAuthUrl.toString(),
58
- });
59
- }
60
- if (config.apple) {
61
- ssoProviders.push({
62
- id: 'apple',
63
- name: 'Apple',
64
- logoUrl: undefined,
65
- hint: 'Sign in with Apple',
66
- });
67
- }
68
- if (config.github) {
69
- const githubAuthUrl = new URL('https://github.com/login/oauth/authorize');
70
- githubAuthUrl.searchParams.set('client_id', config.github.clientId);
71
- githubAuthUrl.searchParams.set('redirect_uri', config.github.redirectUri);
72
- githubAuthUrl.searchParams.set('scope', 'user:email');
73
- githubAuthUrl.searchParams.set('response_type', 'code');
74
- ssoProviders.push({
75
- id: 'github',
76
- name: 'GitHub',
77
- logoUrl: 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png',
78
- hint: 'Sign in with GitHub',
79
- clientId: config.github.clientId,
80
- authorizationUrl: githubAuthUrl.toString(),
81
- });
82
- }
83
- const defaultConfig = {
84
- emailAuth: {
85
- enabled: config.emailAuth?.enabled ?? false,
86
- },
87
- phoneAuth: {
88
- enabled: config.phoneAuth?.enabled ?? false,
89
- },
90
- registration: {
91
- enabled: config.registration?.enabled !== false,
92
- requireInvitation: config.registration?.requireInvitation ?? false,
93
- collectProfileFields: config.registration?.collectProfileFields,
94
- },
95
- mfa: {
96
- enabled: config.mfa?.enabled ?? false,
97
- methods: config.mfa?.methods?.map((m) => m.toString()) ?? [],
98
- allowUserToggle: config.mfa?.allowUserToggle ?? true,
99
- allowMethodSelection: config.mfa?.allowMethodSelection ?? true,
100
- },
101
- tenants: {
102
- mode: config.defaultTenant ? 'single' : 'multi',
103
- defaultTenantId,
104
- options: tenants,
105
- },
106
- sso: {
107
- enabled: Boolean(config.google || config.facebook || config.apple || config.github),
108
- providers: ssoProviders,
109
- },
110
- };
111
- if (config.clientConfig?.factory) {
112
- const customized = await config.clientConfig.factory(defaultConfig, {
113
- configService: this.authConfig,
114
- tenantService: this.tenantService,
115
- });
116
- return customized ?? defaultConfig;
117
- }
118
- return defaultConfig;
119
- }
120
- async fetchTenants() {
121
- try {
122
- const tenants = await this.tenantService.getTenants({
123
- select: ['id', 'name', 'slug', 'metadata', 'isActive'],
124
- order: { name: 'ASC' },
125
- });
126
- return tenants.map((tenant) => ({
127
- id: tenant.id,
128
- name: tenant.name,
129
- slug: tenant.slug,
130
- metadata: tenant.metadata ?? {},
131
- isActive: tenant.isActive,
132
- }));
133
- }
134
- catch (error) {
135
- return [];
136
- }
137
- }
138
- async resolveDefaultTenantId(options) {
139
- if (!options?.slug) {
140
- return null;
141
- }
142
- try {
143
- const tenant = await this.tenantService.getTenantBySlug(options.slug);
144
- return tenant?.id ?? null;
145
- }
146
- catch (error) {
147
- return null;
148
- }
149
- }
150
- };
151
- exports.ClientConfigService = ClientConfigService;
152
- exports.ClientConfigService = ClientConfigService = __decorate([
153
- (0, common_1.Injectable)(),
154
- __metadata("design:paramtypes", [auth_config_service_1.AuthConfigService,
155
- tenant_service_1.TenantService])
156
- ], ClientConfigService);
157
- //# sourceMappingURL=client-config.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client-config.service.js","sourceRoot":"","sources":["../../../../src/lib/auth/services/client-config.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iFAA4E;AAC5E,yEAAqE;AAI9D,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAEP;IACA;IAFrB,YACqB,UAA6B,EAC7B,aAA4B;QAD5B,eAAU,GAAV,UAAU,CAAmB;QAC7B,kBAAa,GAAb,aAAa,CAAe;IAC7C,CAAC;IAEL,KAAK,CAAC,eAAe;QACjB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC;QAC3C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC1C,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;QAGhF,MAAM,YAAY,GAAG,EAAE,CAAC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