@ackplus/nest-auth 2.0.0-beta.22 → 2.0.0-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/admin-console/static/index.html +1 -1
- package/dist/lib/admin-console/static/nest-auth.json +1 -1
- package/dist/lib/request-context/request-context.js +2 -2
- package/dist/lib/request-context/request-context.js.map +1 -1
- package/package.json +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from './lib/role';
|
|
|
7
7
|
export * from './lib/permission';
|
|
8
8
|
export * from './lib/tenant';
|
|
9
9
|
export * from './lib/core';
|
|
10
|
-
export * from './lib/request-context
|
|
10
|
+
export * from './lib/request-context';
|
|
11
11
|
export type { IAuthModuleOptions, IAuthModuleAsyncOptions, IAuthModuleOptionsFactory, IDefaultTenantOptions, IAdminConsoleOptions, IPasswordlessOptions, } from './lib/core/interfaces/auth-module-options.interface';
|
|
12
12
|
export { AuthConfigService } from './lib/core/services/auth-config.service';
|
|
13
13
|
export { DebugLoggerService, DebugLogLevel } from './lib/core/services/debug-logger.service';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAG3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,sBAAsB,CAAC;AAGrC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAG3B,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EACV,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,qDAAqD,CAAC;AAG7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAG5E,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAC7F,YAAY,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAGnF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,cAAc,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ __exportStar(require("./lib/role"), exports);
|
|
|
24
24
|
__exportStar(require("./lib/permission"), exports);
|
|
25
25
|
__exportStar(require("./lib/tenant"), exports);
|
|
26
26
|
__exportStar(require("./lib/core"), exports);
|
|
27
|
-
__exportStar(require("./lib/request-context
|
|
27
|
+
__exportStar(require("./lib/request-context"), exports);
|
|
28
28
|
var auth_config_service_1 = require("./lib/core/services/auth-config.service");
|
|
29
29
|
Object.defineProperty(exports, "AuthConfigService", { enumerable: true, get: function () { return auth_config_service_1.AuthConfigService; } });
|
|
30
30
|
var debug_logger_service_1 = require("./lib/core/services/debug-logger.service");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAuC;AAEvC,uDAAqC;AAGrC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,6CAA2B;AAG3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAuC;AAEvC,uDAAqC;AAGrC,6CAA2B;AAC3B,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,6CAA2B;AAG3B,wDAAsC;AAatC,+EAA4E;AAAnE,wHAAA,iBAAiB,OAAA;AAG1B,iFAA6F;AAApF,0HAAA,kBAAkB,OAAA;AAAE,qHAAA,aAAa,OAAA;AAI1C,oFAAmF;AAA1E,sHAAA,iBAAiB,OAAA;AAG1B,qCAA+D;AAAtD,wGAAA,eAAe,OAAA;AAAE,wGAAA,eAAe,OAAA;AAGzC,+DAA6C"}
|
|
@@ -5441,7 +5441,7 @@ export class OnboardingService {
|
|
|
5441
5441
|
- Header mode (default): Returns new tokens in response body
|
|
5442
5442
|
- 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:
|
|
5443
5443
|
- Header mode (default): Returns tokens in response body
|
|
5444
|
-
- Cookie mode: Sets tokens in HTTP-only cookies and returns success message`,operationId:"AuthController_verify2fa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerify2faRequestDto"}}}},responses:{200:{description:"Header mode: Returns message + tokens in body",content:{"application/json":{schema:{$ref:"#/components/schemas/Verify2faWithTokensResponseDto"}}}}},summary:"Verify MFA",tags:["Auth"]}},"/auth/logout":{post:{operationId:"AuthController_logout",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutResponseDto"}}}}},summary:"Logout",tags:["Auth"]}},"/auth/logout-all":{post:{operationId:"AuthController_logoutAll",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutAllResponseDto"}}}}},summary:"Logout All",tags:["Auth"]}},"/auth/switch-tenant":{post:{operationId:"AuthController_switchTenant",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSwitchTenantRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/AuthWithTokensResponseDto"}}}}},summary:"Switch Active Tenant",tags:["Auth"]}},"/auth/me":{get:{operationId:"AuthController_sessionUserData",parameters:[],responses:{200:{description:"Current user data"}},summary:"Get Session User Data and menage extra user data from config",tags:["Auth"]}},"/auth/change-password":{post:{operationId:"AuthController_changePassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthChangePasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MessageResponseDto"}}}}},summary:"Change Password",tags:["Auth"]}},"/auth/forgot-password":{post:{operationId:"AuthController_forgotPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthForgotPasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetLinkSentResponseDto"}}}}},summary:"Forgot password",tags:["Auth"]}},"/auth/verify-forgot-password-otp":{post:{operationId:"AuthController_verifyForgotPasswordOtp",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyForgotPasswordOtpRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/VerifyOtpResponseDto"}}}}},summary:"Verify Forgot Password OTP and get reset token",tags:["Auth"]}},"/auth/reset-password":{post:{operationId:"AuthController_resetPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthResetPasswordWithTokenRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetResponseDto"}}}}},summary:"Reset password",tags:["Auth"]}},"/auth/client-config":{get:{description:"Public configuration for clients (tenant mode, auth methods, registration, MFA, etc.). No auth required.",operationId:"AuthController_getClientConfig",parameters:[],responses:{200:{description:"Client configuration"}},summary:"Client config",tags:["Auth"]}},"/auth/user":{get:{operationId:"AuthController_getUser",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/UserResponseDto"}}}}},summary:"Get Logged In User",tags:["Auth"]}},"/auth/verify-session":{get:{description:"Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.",operationId:"AuthController_verifySession",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{properties:{valid:{type:"boolean",example:!0},userId:{type:"string",example:"123e4567-e89b-12d3-a456-426614174000"},expiresAt:{type:"string",example:"2024-01-01T12:00:00.000Z"}}}}}}},summary:"Verify Session",tags:["Auth"]}},"/auth/send-email-verification":{post:{operationId:"AuthController_sendEmailVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendEmailVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerificationSentResponseDto"}}}}},summary:"Send email verification",tags:["Auth"]}},"/auth/verify-email":{post:{operationId:"AuthController_verifyEmail",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyEmailRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerifiedResponseDto"}}}}},summary:"Verify Email",tags:["Auth"]}},"/auth/send-phone-verification":{post:{operationId:"AuthController_sendPhoneVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendPhoneVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPhoneVerificationSentResponseDto"}}}}},summary:"Send phone verification (SMS OTP)",tags:["Auth"]}},"/auth/verify-phone":{post:{operationId:"AuthController_verifyPhone",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyPhoneRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPhoneVerifiedResponseDto"}}}}},summary:"Verify phone number with OTP",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"]}}},vYt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"2.0.0-beta.22",contact:{}},OYt=[],SYt=[],xYt={securitySchemes:{bearer:{scheme:"bearer",bearerFormat:"JWT",type:"http"}},schemas:{NestAuthSignupRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0}},required:["password"]},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"]},trustToken:{type:"string",description:"Trust token for trusted device verification",example:"1234567890"}},required:["accessToken","refreshToken","isRequiresMfa"]},EmailCredentialsDto:{type:"object",properties:{email:{type:"string",description:"User email address",example:"user@example.com"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["email","password"]},PhoneCredentialsDto:{type:"object",properties:{phone:{type:"string",description:"User phone number",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["phone","password"]},SocialCredentialsDto:{type:"object",properties:{token:{type:"string",description:"OAuth token or ID token from social provider",example:"ya29.a0AfH6SMBx1234567890abcdefghijklmnop"}},required:["token"]},PasswordlessOtpCredentialsDto:{type:"object",properties:{identifier:{type:"string",description:"Email or phone (same value as in send request)",example:"user@example.com"},channels:{type:"array",description:"Channel(s) to try in order. Use both when the client is unsure whether `identifier` is email or phone.",example:["email","sms"],items:{type:"string",enum:["email","sms"]}},code:{type:"string",description:"One-time code from email or SMS",example:"123456"}},required:["identifier","channels","code"]},NestAuthLoginRequestDto:{type:"object",properties:{providerName:{type:"string",description:"Authentication provider name",example:"email",enum:["email","phone","passwordless","google","facebook","apple","github"],default:"email"},credentials:{description:"Login credentials - type varies by provider",examples:{emailLogin:{summary:"Email + password",value:{email:"user@example.com",password:"SecurePass123!"}},phoneLogin:{summary:"Phone + password",value:{phone:"+1234567890",password:"SecurePass123!"}},passwordlessOtp:{summary:"Passwordless OTP — set providerName to passwordless (after POST /auth/passwordless/send)",value:{providerName:"passwordless",credentials:{identifier:"user@example.com",channels:["email","sms"],code:"123456"}}},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"},{$ref:"#/components/schemas/PasswordlessOtpCredentialsDto"}]},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0},createUserIfNotExists:{type:"boolean",description:"Auto-create user if not exists (for social auth)",default:!1}},required:["credentials"]},NestAuthPasswordlessSendRequestDto:{type:"object",properties:{identifier:{type:"string",description:"Email or phone (per `channel`)",example:"user@example.com"},channel:{type:"string",enum:["email","sms"]},tenantId:{type:"string"}},required:["identifier","channel"]},MessageResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message"}},required:["message"]},NestAuthRefreshTokenRequestDto:{type:"object",properties:{refreshToken:{type:"string",description:"Refresh token to obtain new access token",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCJ9.abc123"}}},NestAuthMfaCodeSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA code sent successfully"}},required:["message"]},NestAuthMFAMethodEnum:{type:"string",enum:["email","sms","totp"]},NestAuthVerify2faRequestDto:{type:"object",properties:{method:{description:"MFA method used",example:"totp",allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]},otp:{type:"string",description:"One-time password code",example:"123456",minLength:6,maxLength:8},trustDevice:{type:"boolean",description:"Whether to trust this device for future logins",example:!0}},required:["method","otp"]},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"},emailVerifiedAt:{format:"date-time",type:"string",description:"Email verification status",example:!0},phoneVerifiedAt:{format:"date-time",type:"string",description:"Phone 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","emailVerifiedAt","phoneVerifiedAt"]},Verify2faWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Verification success message (added by controller)",example:"2FA verification successful"},user:{description:"User information with roles and permissions",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]}},required:["accessToken","refreshToken"]},NestAuthLogoutResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out successfully"}},required:["message"]},NestAuthLogoutAllResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out from all devices"}},required:["message"]},NestAuthSwitchTenantRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID to switch into",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["tenantId"]},NestAuthChangePasswordRequestDto:{type:"object",properties:{currentPassword:{type:"string",description:"Current password",example:"DemoOwner1!",minLength:8},newPassword:{type:"string",description:"New password",example:"DemoOwner1!New",minLength:8}},required:["currentPassword","newPassword"]},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"},code:{type:"string",description:"Verification or magic-link code (matches OTP entity `code`)",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["code"]},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:{code:{type:"string",description:"Verification 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:["code"]},NestAuthEmailVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Email verified successfully"}},required:["message"]},NestAuthSendPhoneVerificationRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthPhoneVerificationSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Verification SMS sent"}},required:["message"]},NestAuthVerifyPhoneRequestDto:{type:"object",properties:{code:{type:"string",description:"Verification code received via SMS (matches OTP entity `code`)",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["code"]},NestAuthPhoneVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Phone verified successfully"}},required:["message"]},MfaDeviceDto:{type:"object",properties:{id:{type:"string",description:"Unique identifier of the MFA device",example:"4b3c9c9c-9a9d-4d1e-8d9f-123456789abc"},deviceName:{type:"string",description:"Friendly name of the registered device",example:"Work laptop"},method:{type:"string",description:"MFA method this device supports",enum:["email","sms","totp"],example:"totp"},lastUsedAt:{format:"date-time",type:"string",description:"Timestamp of when the device was last used",example:"2024-05-20T12:34:56.000Z"},verified:{type:"boolean",description:"Whether the device setup has been verified",example:!0},createdAt:{format:"date-time",type:"string",description:"Timestamp of when the device was registered",example:"2024-05-18T10:15:00.000Z"}},required:["id","deviceName","method","verified"]},MfaStatusResponseDto:{type:"object",properties:{isEnabled:{type:"boolean",description:"Whether MFA is currently enabled for the user",example:!0},verifiedMethods:{type:"array",description:"MFA methods the user has verified and can currently use (includes EMAIL/SMS if configured, and TOTP if user has verified device)",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},configuredMethods:{type:"array",description:"All MFA methods configured and available in the application (methods user can potentially set up)",example:["email","totp","sms"],items:{type:"string",enum:["email","sms","totp"]}},allowUserToggle:{type:"boolean",description:"Indicates if MFA toggling is allowed for the user",example:!0},allowMethodSelection:{type:"boolean",description:"Indicates if users can choose their preferred MFA method",example:!0},totpDevices:{description:"Registered TOTP devices for the user",type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}},hasRecoveryCode:{type:"boolean",description:"Whether a recovery code has been generated for the user",example:!1},required:{type:"boolean",description:"Whether MFA is required for all users. If true, users cannot disable MFA even if allowUserToggle is true",example:!1},canToggle:{type:"boolean",description:"Whether the user can toggle MFA. This is false if MFA is required (required=true) even if allowUserToggle is true",example:!0}},required:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode","required","canToggle"]},NestAuthToggleMfaRequestDto:{type:"object",properties:{enabled:{type:"boolean",description:"Whether MFA should be enabled for the current user",example:!0}},required:["enabled"]},NestAuthMfaToggleResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA enabled successfully"}},required:["message"]},NestAuthMfaDeviceRemovedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device removed successfully"}},required:["message"]},NestAuthSendMfaCodeRequestDto:{type:"object",properties:{method:{description:"MFA delivery method",example:"email",examples:{email:{value:"email",description:"Send OTP via email"},sms:{value:"sms",description:"Send OTP via SMS"},totp:{value:"totp",description:"Use authenticator app (TOTP)"}},allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]}},required:["method"]},NestAuthVerifyTotpSetupRequestDto:{type:"object",properties:{otp:{type:"string",description:"The TOTP code from authenticator app",example:"123456",minLength:6,maxLength:6},secret:{type:"string",description:"Secret key from TOTP setup",example:"JBSWY3DPEHPK3PXP"}},required:["otp","secret"]},NestAuthMfaDeviceVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device setup successfully"}},required:["message"]},NestAuthMfaResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA reset successfully"}},required:["message"]}}},wYt={openapi:bYt,paths:yYt,info:vYt,tags:OYt,servers:SYt,components:xYt},Wk=({content:e})=>E.jsx(FWt,{remarkPlugins:[H7],components:{code({node:t,inline:n,className:r,children:i,...o}){const a=/language-(\w+)/.exec(r||"");return!n&&a?E.jsx(A8e,{...o,style:dYt,language:a[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(i).replace(/\n$/,"")}):E.jsx("code",{...o,style:{backgroundColor:"var(--mui-palette-grey-200)",color:"var(--mui-palette-grey-800)",borderRadius:4,padding:"2px 4px",fontSize:"0.875rem",fontFamily:"monospace"},children:i})},table({children:t}){return E.jsx(Xe,{sx:{overflowX:"auto",my:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:E.jsx(Xe,{component:"table",sx:{minWidth:"100%",borderCollapse:"collapse","& tr":{borderBottom:"1px solid",borderColor:"divider"}},children:t})})},thead({children:t}){return E.jsx(Xe,{component:"thead",sx:{bgcolor:"grey.50"},children:t})},th({children:t}){return E.jsx(Xe,{component:"th",scope:"col",sx:{px:1.5,py:1.5,textAlign:"left",fontSize:"0.75rem",fontWeight:500,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:t})},td({children:t}){return E.jsx(Xe,{component:"td",sx:{px:1.5,py:1.5,whiteSpace:"nowrap",fontSize:"0.875rem",color:"text.secondary",borderTop:"1px solid",borderColor:"divider"},children:t})},a({href:t,children:n}){return E.jsx("a",{href:t,style:{color:"var(--mui-palette-primary-main)",textDecoration:"none"},className:"MuiTypography-root MuiLink-root",onMouseOver:r=>{r.currentTarget.style.textDecoration="underline"},onMouseOut:r=>{r.currentTarget.style.textDecoration="none"},target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return E.jsx(ze,{component:"h2",variant:"h5",sx:{fontWeight:700,mt:3,mb:1.5,pb:1,borderBottom:"1px solid",borderColor:"divider"},children:t})},h3({children:t}){return E.jsx(ze,{component:"h3",variant:"h6",sx:{fontWeight:600,mt:2,mb:1},children:t})},p({children:t}){return E.jsx(ze,{component:"p",sx:{color:"text.primary",lineHeight:1.6,mb:1.5},children:t})},ul({children:t}){return E.jsx(Xe,{component:"ul",sx:{listStyle:"disc",pl:2,mb:1.5,color:"text.primary","& li":{mb:.5}},children:t})},li({children:t}){return E.jsx(Xe,{component:"li",sx:{ml:1},children:t})},blockquote({children:t}){return E.jsx(Xe,{component:"blockquote",sx:{borderLeft:"4px solid",borderColor:"primary.main",pl:1.5,py:.5,my:1.5,bgcolor:"primary.50",color:"text.primary",fontStyle:"italic",borderRadius:"0 4px 4px 0"},children:t})}},children:e}),EYt=()=>{const[e,t]=F.useState(!1),[n,r]=F.useState(null),[i,o]=F.useState("api");F.useEffect(()=>{const l=wYt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const a=()=>{if(!n)return;const l=JSON.stringify(n,null,2),c=new Blob([l],{type:"application/json"}),u=URL.createObjectURL(c),d=document.createElement("a");d.href=u,d.download="nest-auth-api.json",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(u)},s=[{id:"api",label:"API Explorer",icon:wq},{id:"config",label:"Configuration",icon:v2t},{id:"examples",label:"Examples",icon:Gme},{id:"events",label:"Events",icon:_2t},{id:"api-reference",label:"API Reference",icon:s2t},{id:"services",label:"Services",icon:Gme}];return E.jsxs(Ot,{spacing:3,children:[E.jsx(I1,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:i==="api"&&E.jsx(mn,{variant:"outlined",color:"inherit",onClick:a,disabled:e,startIcon:E.jsx(ht,{component:p2t}),children:"Download JSON"})}),E.jsx(k3e,{value:i,onChange:(l,c)=>o(c),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider"},children:s.map(l=>E.jsx(x3e,{value:l.id,label:l.label,icon:E.jsx(ht,{component:l.icon,sx:{fontSize:16}}),iconPosition:"start"},l.id))}),i==="api"&&(e?E.jsx(hi,{variant:"outlined",sx:{p:3,textAlign:"center"},children:E.jsxs(Xa,{severity:"warning",icon:E.jsx(ht,{component:e2,sx:{fontSize:20}}),sx:{textAlign:"left"},children:[E.jsx(ze,{variant:"subtitle2",gutterBottom:!0,children:"API Documentation Not Available"}),E.jsx(ze,{variant:"body2",children:"The OpenAPI specification file could not be loaded. Make sure the OpenAPI spec has been generated by running the build process."})]})}):E.jsxs(E.Fragment,{children:[E.jsxs(Xa,{severity:"info",icon:E.jsx(ht,{component:wq,sx:{fontSize:20}}),children:[E.jsx(ze,{variant:"subtitle2",gutterBottom:!0,children:"Interactive API Documentation"}),E.jsx(ze,{variant:"body2",children:'This documentation is auto-generated from the OpenAPI specification. You can test endpoints directly from this page. Click "Download JSON" to get the raw OpenAPI specification file for importing into Postman or other API tools.'})]}),n&&E.jsx(yHt,{spec:n})]})),i==="config"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:fYt})}),i==="examples"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:pYt})}),i==="events"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:hYt})}),i==="api-reference"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:mYt})}),i==="services"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:gYt})})]})},S0=({children:e,authenticated:t})=>t===null?E.jsx(Xe,{sx:{minHeight:"100vh",bgcolor:"grey.50",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs(Xe,{sx:{textAlign:"center"},children:[E.jsx(Vh,{size:64,sx:{mb:2}}),E.jsx(ze,{color:"text.secondary",fontWeight:"medium",children:"Verifying authentication..."})]})}):t?E.jsx(E.Fragment,{children:e}):E.jsx(AO,{to:"/login",replace:!0}),kYt=()=>{const[e,t]=F.useState(null),[n,r]=F.useState(null),[i,o]=F.useState(!1),[a,s]=F.useState(null);F.useEffect(()=>{l()},[]);const l=async()=>{try{await fr.get("/me"),t(!0);const d=await fr.get("/config");r(d)}catch(d){const f=d instanceof U4e?d.status:void 0;f===401||f===403||console.error("Auth check failed:",d),t(!1);try{const h=await fr.get("/config");r(h)}catch(h){console.error("Failed to load config:",h),r({allowAdminManagement:!1})}}finally{o(!0)}},c=async d=>{s(null);try{await fr.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 fr.post("/logout",{})}catch(d){console.error("Logout failed:",d)}t(!1)};return!i||n===null?E.jsx(Xe,{sx:{minHeight:"100vh",background:"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #e9d5ff 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs(Xe,{sx:{textAlign:"center"},children:[E.jsx(Vh,{size:64,sx:{color:"primary.main",mb:2}}),E.jsx(ze,{color:"text.primary",fontWeight:"medium",variant:"h6",children:"Loading Nest Auth Dashboard..."}),E.jsx(ze,{color:"text.secondary",variant:"body2",sx:{mt:1},children:"Verifying authentication"})]})}):E.jsx(n2t,{children:E.jsx(i2t,{children:E.jsx(Rht,{children:E.jsxs(Eht,{children:[E.jsx(yd,{path:"/login",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(oSt,{onLogin:c,error:a})}),E.jsx(yd,{path:"/dashboard",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(Ozt,{})})})}),E.jsx(yd,{path:"/users",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(_zt,{})})})}),E.jsx(yd,{path:"/users/:id",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(Qzt,{})})})}),E.jsx(yd,{path:"/roles",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(eHt,{})})})}),E.jsx(yd,{path:"/tenants",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(rHt,{})})})}),E.jsx(yd,{path:"/permissions",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(hHt,{})})})}),E.jsx(yd,{path:"/api",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(EYt,{})})})}),n.allowAdminManagement&&E.jsx(yd,{path:"/admins",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(sHt,{})})})}),E.jsx(yd,{path:"/",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(AO,{to:"/login",replace:!0})}),E.jsx(yd,{path:"*",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(AO,{to:"/login",replace:!0})})]})})})})},_Yt={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},TYt={MuiAppBar:_Yt},AYt={styleOverrides:{paper:({theme:e})=>({boxShadow:e.customShadows.dropdown})}},$Yt={MuiAutocomplete:AYt},CYt=["primary","secondary","info","success","warning","error"],IYt=e=>{const t=e.charAt(0).toLowerCase();return["a","c","f"].includes(t)?"primary":["e","d","h"].includes(t)?"secondary":["i","k","l"].includes(t)?"info":["m","n","p"].includes(t)?"success":["q","s","t"].includes(t)?"warning":["v","x","y"].includes(t)?"error":"default"},_ve={colors:CYt.map(e=>({props:({ownerState:t})=>t.color===e,style:({theme:t})=>({color:t.palette[e].contrastText,backgroundColor:t.palette[e].main})})),defaultColor:[{props:({ownerState:e})=>e.color==="default",style:({theme:e})=>({color:e.palette.text.secondary,backgroundColor:Zn(e.palette.grey[500],.5)})}]},RYt={variants:[..._ve.defaultColor,..._ve.colors],styleOverrides:{rounded:({theme:e})=>({borderRadius:(Number(e.shape.borderRadius)||1)*1.5}),colorDefault:({ownerState:e,theme:t})=>{const n=IYt(`${e.alt}`);return{...!!e.alt&&{...n!=="default"?{color:t.palette[n].contrastText,backgroundColor:t.palette[n].main}:{color:t.palette.text.secondary,backgroundColor:Zn(t.palette.grey[500],.1)}}}}}},PYt={defaultProps:{max:4},styleOverrides:{root:({ownerState:e})=>({justifyContent:"flex-end",...e.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${F0t.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:e})=>({fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}})}},NYt={MuiAvatar:RYt,MuiAvatarGroup:PYt},DYt={styleOverrides:{root:{},sizeSmall:{[`& .${Ghe.root}`]:{height:12,width:12}},sizeLarge:{[`& .${Ghe.root}`]:{height:18,width:18}}}},MYt={MuiButton:DYt},LYt={styleOverrides:{root:({theme:e})=>({position:"relative",boxShadow:e.customShadows.card,zIndex:0})}},jYt={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1.5,2,1.5),[e.breakpoints.down("md")]:{padding:e.spacing(2,2,.5)}}),action:{alignSelf:"center"}}},FYt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},BYt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},UYt={MuiCard:LYt,MuiCardHeader:jYt,MuiCardContent:FYt,MuiCardActions:BYt};function zYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function HYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function VYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}const qYt={defaultProps:{size:"small",icon:E.jsx(zYt,{}),checkedIcon:E.jsx(HYt,{}),indeterminateIcon:E.jsx(VYt,{})},styleOverrides:{root:({ownerState:e,theme:t})=>({padding:t.spacing(1),...e.color==="default"&&{[`&.${_S.checked}`]:{color:t.palette.text.primary}},[`&.${_S.disabled}`]:{color:t.palette.action.disabled}})}},QYt={MuiCheckbox:qYt},WYt={defaultProps:{onClick:()=>{}},variants:[{props:{size:"x-small"},style:{height:18,fontSize:"0.6875rem",px:.2}}]},GYt={MuiChip:WYt},Vie=["primary","secondary","info","success","warning","error"],$8e=["default","inherit"],ZYt=["extended","outlinedExtended","softExtended"],Tve=["circular","extended"],Ave=["outlined","outlinedExtended"],$ve=["soft","softExtended"],cO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&Tve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:t.customShadows[e],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:e})=>Tve.includes(e==null?void 0:e.variant)&&$8e.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:e.customShadows.z8,color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${Ox.colorInherit}`]:{color:e.palette.common.white,backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.grey[700]},...e.palette.mode==="dark"&&{color:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[400]}}}})}]},uO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&Ave.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({color:t.palette[e].main,border:`solid 1px ${Zn(t.palette[e].main,.48)}`,"&:hover":{backgroundColor:Zn(t.palette[e].main,.08)}})})),base:[{props:({ownerState:e})=>Ave.includes(e==null?void 0:e.variant),style:({theme:e})=>({boxShadow:"none",backgroundColor:"transparent",color:e.palette.text.secondary,border:`solid 1px ${Zn(e.palette.grey[500],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:e.palette.action.hover},[`&.${Ox.colorInherit}`]:{color:e.palette.text.primary},[`&.${Ox.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${e.palette.action.disabledBackground}`}})}]},dO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&$ve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:"none",color:t.palette[e].dark,backgroundColor:Zn(t.palette[e].main,.16),"&:hover":{boxShadow:"none",backgroundColor:Zn(t.palette[e].main,.32)},...t.palette.mode==="dark"&&{color:t.palette[e].light}})})),base:[{props:({ownerState:e})=>$ve.includes(e==null?void 0:e.variant)&&$8e.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:"none",color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${Ox.colorInherit}`]:{color:e.palette.text.primary,backgroundColor:Zn(e.palette.grey[500],.08),"&:hover":{backgroundColor:Zn(e.palette.grey[500],.24)}}})}]},XYt=[{props:({ownerState:e})=>ZYt.includes(e==null?void 0:e.variant),style:({theme:e})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:e.spacing(1),padding:e.spacing(0,2),[`&.${Ox.sizeSmall}`]:{height:36,minHeight:36,borderRadius:36/2,gap:e.spacing(.5),padding:e.spacing(0,1)},[`&.${Ox.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})},{props:({ownerState:e})=>e.size==="x-small",style:({theme:e})=>({height:30,width:30,minHeight:30,borderRadius:30/2,gap:e.spacing(.5),padding:e.spacing(0,1)})}],YYt={defaultProps:{color:"primary"},variants:[...(cO==null?void 0:cO.base)??[],...(cO==null?void 0:cO.colors)??[],...(uO==null?void 0:uO.base)??[],...(uO==null?void 0:uO.colors)??[],...(dO==null?void 0:dO.base)??[],...(dO==null?void 0:dO.colors)??[],...XYt],styleOverrides:{}},KYt={MuiFab:YYt},JYt={styleOverrides:{root:{boxShadow:"none"}}},eKt={MuiIconButton:JYt},tKt={styleOverrides:{root:({theme:e})=>({color:"inherit",minWidth:"auto",marginRight:e.spacing(2)})}},nKt={styleOverrides:{root:({theme:e})=>({minWidth:"auto",marginRight:e.spacing(2)})}},rKt={styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},iKt={defaultProps:{primaryTypographyProps:{typography:"subtitle2",color:"text.primary"},secondaryTypographyProps:{typography:"caption",color:"text.secondary"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},oKt={MuiListItemIcon:tKt,MuiListItemAvatar:nKt,MuiListItemButton:rKt,MuiListItemText:iKt},aKt={styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:e.spacing(.75,1),borderRadius:(Number(e.shape.borderRadius)||1)*.75,"&:not(:last-of-type)":{marginBottom:4},[`&.${CO.selected}`]:{fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`& .${_S.root}`]:{padding:e.spacing(.5),marginLeft:e.spacing(-.5),marginRight:e.spacing(.5)},[`&.${rr.option}[aria-selected="true"]`]:{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`&+.${pq.root}`]:{margin:e.spacing(.5,0)}})}},sKt={MuiMenuItem:aKt},lKt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:e})=>({borderColor:Zn(e.palette.grey[500],.16)})}},cKt={MuiPaper:lKt},uKt={defaultProps:{MenuProps:{PaperProps:{sx:e=>({maxHeight:250,transform:"translateY(4px)",boxShadow:e.customShadows.card})}}}},dKt={MuiSelect:uKt},fKt={styleOverrides:{}},pKt={MuiSvgIcon:fKt},Cve={dark:'[data-mui-color-scheme="dark"] &'},hKt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:e,theme:t})=>({top:"unset",transform:"translateX(6px)",[`&.${lo.checked}`]:{[`& .${lo.thumb}`]:{...e.color==="default"&&{[Cve.dark]:{color:t.palette.grey[800]}}},[`&+.${lo.track}`]:{opacity:1,...e.color==="default"&&{backgroundColor:t.palette.text.primary}}},[`&.${lo.disabled}`]:{[`& .${lo.thumb}`]:{opacity:1,[Cve.dark]:{opacity:.48}},[`&+.${lo.track}`]:{opacity:.48}}}),track:({theme:e})=>({opacity:1,borderRadius:10,backgroundColor:Zn(e.palette.grey[500],.48)}),thumb:({theme:e})=>({color:e.palette.common.white}),sizeMedium:{[`& .${lo.track}`]:{height:20},[`& .${lo.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${lo.track}`]:{height:16},[`& .${lo.thumb}`]:{width:10,height:10}}}},mKt={MuiSwitch:hKt},gKt={styleOverrides:{root:({theme:e})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${Zn(e.palette.text.disabled,.4)} ${Zn(e.palette.text.disabled,.08)}`})}},bKt={styleOverrides:{root:({theme:e})=>({"--palette-TableCell-border":e.palette.divider})}},yKt={styleOverrides:{root:({theme:e})=>({[`&.${xq.selected}`]:{backgroundColor:Zn(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Zn(e.palette.primary.dark,.08)}},"&:last-of-type":{[`& .${E3e.root}`]:{borderColor:"transparent"}}})}},vKt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:e})=>({fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral}),stickyHeader:({theme:e})=>({backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:e})=>({paddingLeft:e.spacing(1)})}},OKt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:({theme:e})=>({width:"100%",[e.breakpoints.down("sm")]:{"& .MuiTablePagination-input":{marginRight:8}}}),toolbar:{height:64},actions:({theme:e})=>({marginRight:8,[e.breakpoints.down("md")]:{marginLeft:16}}),select:({theme:e})=>({paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},SKt={MuiTable:bKt,MuiTableRow:yKt,MuiTableCell:vKt,MuiTableContainer:gKt,MuiTablePagination:OKt},xKt={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`}),flexContainer:({ownerState:e,theme:t})=>({...e.variant!=="fullWidth"&&{gap:"24px",[t.breakpoints.up("sm")]:{gap:"40px"}}}),indicator:{backgroundColor:"currentColor"}}},wKt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:e})=>({opacity:1,minWidth:48,minHeight:48,padding:e.spacing(1,0),color:e.palette.text.secondary,fontWeight:e.typography.fontWeightMedium,lineHeight:e.typography.body2.lineHeight,[`&.${uu.selected}`]:{color:e.palette.text.primary,fontWeight:e.typography.fontWeightSemiBold}})}},EKt={MuiTabs:xKt,MuiTab:wKt},kKt={...TYt,...NYt,...SKt,...EKt,...oKt,...sKt,...MYt,...cKt,...UYt,...QYt,...mKt,...pKt,...eKt,...dKt,...$Yt,...KYt,...GYt},Va={50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21",lighter:"#F9FAFB",light:"#DFE3E8",main:"#919EAB",dark:"#454F5B",darker:"#161C24",contrastText:"#FFFFFF"},C8e={lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},I8e={lighter:"#f3e8ff",light:"#94a3b8",main:"#64748b",dark:"#475569",darker:"#334155",contrastText:"#FFFFFF"},R8e={lighter:"#dbeafe",light:"#93c5fd",main:"#2563eb",dark:"#1d4ed8",darker:"#1e40af",contrastText:"#FFFFFF"},P8e={lighter:"#dcfce7",light:"#bbf7d0",main:"#16a34a",dark:"#15803d",darker:"#166534",contrastText:"#ffffff"},N8e={lighter:"#fef3c7",light:"#fde68a",main:"#ca8a04",dark:"#a16207",darker:"#854d0e",contrastText:"#1C252E"},D8e={lighter:"#fee2e2",light:"#fecaca",main:"#dc2626",dark:"#b91c1c",darker:"#991b1b",contrastText:"#FFFFFF"},Qx={common:{black:"#000000",white:"#FFFFFF"},primary:C8e,secondary:I8e,info:R8e,success:P8e,warning:N8e,error:D8e,grey:Va,divider:Zn(Va[500],.2),action:{hover:Zn(Va[500],.08),selected:Zn(Va[500],.16),disabled:Zn(Va[500],.8),disabledBackground:Zn(Va[500],.24),focus:Zn(Va[500],.24),hoverOpacity:.08,disabledOpacity:.48}},M8e={...Qx,text:{primary:Va[800],secondary:Va[600],disabled:Va[500]},background:{paper:"#FFFFFF",default:Zn(Va[500],.2),neutral:"#F5F7FA"},action:{...Qx.action,active:Va[600]}},L8e={...Qx,text:{primary:"#FFFFFF",secondary:Va[500],disabled:Va[600]},background:{paper:Va[800],default:Va[900],neutral:Zn(Va[500],.12)},action:{...Qx.action,active:Va[500]}};function qie(e){return e==="light"?M8e:L8e}const vc={light:{palette:M8e},dark:{palette:L8e}};function fO(e){return`0 8px 16px 0 ${Zn(e,.24)}`}function SW(e){const t=e==="light"?Va[500]:Qx.common.black;return{z1:`0 1px 2px 0 ${Zn(t,.16)}`,z4:`0 4px 8px 0 ${Zn(t,.16)}`,z8:`0 8px 16px 0 ${Zn(t,.16)}`,z12:`0 12px 24px -4px ${Zn(t,.16)}`,z16:`0 16px 32px -4px ${Zn(t,.16)}`,z20:`0 20px 40px -4px ${Zn(t,.16)}`,z24:`0 24px 48px 0 ${Zn(t,.16)}`,dialog:`-40px 40px 80px -8px ${Zn(Qx.common.black,.24)}`,card:`0 0 2px 0 ${Zn(t,.2)}, 0 12px 24px -4px ${Zn(t,.12)}`,dropdown:`0 0 2px 0 ${Zn(t,.24)}, -20px 20px 40px -4px ${Zn(t,.24)}`,primary:fO(C8e.main),secondary:fO(I8e.main),info:fO(R8e.main),success:fO(P8e.main),warning:fO(N8e.main),error:fO(D8e.main)}}function WU(e){const t=TKt.find(r=>r.name===e);return{palette:{primary:Go.omit(t,["name"])},customShadows:{primary:`0 8px 16px 0 ${Zn(`${t==null?void 0:t.main}`,.24)}`}}}const _Kt=qie("light"),TKt=[{name:"default",lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:_Kt.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"},{name:"green",lighter:"#D8F5E3",light:"#73D13D",main:"#52C41A",dark:"#389E0D",darker:"#237804",contrastText:"#FFFFFF"},{name:"pink",lighter:"#FFE7F1",light:"#FF85C0",main:"#FF1744",dark:"#C2185B",darker:"#880E4F",contrastText:"#FFFFFF"},{name:"indigo",lighter:"#E8EAF6",light:"#7986CB",main:"#3F51B5",dark:"#303F9F",darker:"#1A237E",contrastText:"#FFFFFF"},{name:"teal",lighter:"#E0F2F1",light:"#4DB6AC",main:"#009688",dark:"#00695C",darker:"#004D40",contrastText:"#FFFFFF"}];function AKt(e,t){const n={...e&&t==="light"&&{palette:{background:{default:qie(t).grey[100]}}}},r={...e&&{MuiCard:{styleOverrides:{root:{boxShadow:SW(t).z4}}}}};return{theme:n,components:r}}const j8e=qie("light"),$Kt=j8e.grey[500],CKt=j8e.common.black;function Ive(e){const t=Zn(e,.2),n=Zn(e,.14),r=Zn(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${n},0px 1px 3px 0px ${r}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${n},0px 1px 5px 0px ${r}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${n},0px 1px 8px 0px ${r}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${n},0px 1px 10px 0px ${r}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${n},0px 1px 14px 0px ${r}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${n},0px 1px 18px 0px ${r}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${n},0px 2px 16px 1px ${r}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${n},0px 3px 14px 2px ${r}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${n},0px 3px 16px 2px ${r}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${n},0px 4px 18px 3px ${r}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${n},0px 4px 20px 3px ${r}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${n},0px 5px 22px 4px ${r}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${n},0px 5px 24px 4px ${r}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${n},0px 5px 26px 4px ${r}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${n},0px 6px 28px 5px ${r}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${n},0px 6px 30px 5px ${r}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${n},0px 6px 32px 5px ${r}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${n},0px 7px 34px 6px ${r}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${n},0px 7px 36px 6px ${r}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${n},0px 8px 38px 7px ${r}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${n},0px 8px 40px 7px ${r}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${n},0px 8px 42px 7px ${r}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${n},0px 9px 44px 8px ${r}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${n},0px 9px 46px 8px ${r}`]}function IKt(e){return Ive(e==="light"?$Kt:CKt)}function al(e){return`${e/16}rem`}function pO({sm:e,md:t,lg:n}){return{...e?{"@media (min-width:600px)":{fontSize:al(e)}}:{},...t?{"@media (min-width:900px)":{fontSize:al(t)}}:{},...n?{"@media (min-width:1200px)":{fontSize:al(n)}}:{}}}const Yb={fontFamily:'"Inter", "Public Sans", "Roboto", "Helvetica", "Arial", sans-serif',fontSecondaryFamily:"Public Sans",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:al(40),...pO({sm:36,md:42,lg:48})},h2:{fontWeight:800,lineHeight:64/48,fontSize:al(32),...pO({sm:32,md:36,lg:40})},h3:{fontWeight:700,lineHeight:1.5,fontSize:al(24),...pO({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:al(20),...pO({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:al(18),...pO({sm:19,md:20,lg:20})},h6:{fontWeight:600,lineHeight:28/18,fontSize:al(17),...pO({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:al(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:al(14)},body1:{lineHeight:1.5,fontSize:al(16)},body2:{lineHeight:22/14,fontSize:al(14)},caption:{lineHeight:1.5,fontSize:al(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:al(12),textTransform:"uppercase"},button:{fontWeight:600,lineHeight:24/14,fontSize:al(14),textTransform:"none"}};function RKt(e,t){const[n,r]=F.useState(t);F.useEffect(()=>{const s=PKt(e);s&&r(l=>({...l,...s}))},[e]);const i=F.useCallback(s=>{r(l=>(NKt(e,{...l,...s}),{...l,...s}))},[e]),o=F.useCallback((s,l)=>{i({[s]:l})},[i]),a=F.useCallback(()=>{DKt(e),r(t)},[t,e]);return{state:n,update:o,reset:a}}const PKt=e=>{let t=null;try{const n=window.localStorage.getItem(e);n&&(t=JSON.parse(n))}catch(n){console.error(n)}return t},NKt=(e,t)=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}},DKt=e=>{try{window.localStorage.removeItem(e)}catch(t){console.error(t)}},MKt="settings",xW={colorScheme:"light",contrast:"default",navLayout:"vertical",primaryColor:"default",navColor:"integrate",compactLayout:!1},F8e=F.createContext({});function LKt({children:e,defaultSettings:t}){const{state:n,update:r,reset:i}=RKt(MKt,{...xW,...t}),[o,a]=F.useState(!1),s=F.useCallback(()=>{a(f=>!f)},[]),l=F.useCallback(()=>{a(!1)},[]),c=F.useCallback(f=>{console.info("Direction change by language:",f)},[]),u=!G3(n,{...xW,...t}),d=F.useMemo(()=>({...n,onUpdate:r,onChangeDirectionByLang:c,canReset:u,onReset:i,open:o,onToggle:s,onClose:l}),[i,r,n,u,o,l,s,c]);return E.jsx(F8e.Provider,{value:d,children:e})}const jKt=()=>{const e=F.useContext(F8e);if(!e)throw new Error("useSettingsContext must be use inside SettingsProvider");return e};function FKt({children:e}){const t=jKt(),n=AKt(t.contrast==="bold",t.colorScheme),r=F.useMemo(()=>({colorSchemes:vc,shadows:IKt(t.colorScheme),customShadows:SW(t.colorScheme),shape:{borderRadius:t.compactLayout?4:8},components:{...kKt,...n.components},typography:{...Yb,...t.compactLayout&&{h1:{...Yb.h1,fontSize:"2rem"},h2:{...Yb.h2,fontSize:"1.75rem"},h3:{...Yb.h3,fontSize:"1.5rem"},h4:{...Yb.h4,fontSize:"1.25rem"},h5:{...Yb.h5,fontSize:"1.125rem"},h6:{...Yb.h6,fontSize:"1rem"}}},cssVarPrefix:""}),[t.colorScheme,t.contrast,t.compactLayout,n]),i=F.useMemo(()=>{var s,l,c,u,d,f,p,h,m;return{...r,colorSchemes:{...vc,light:{palette:{...(s=vc==null?void 0:vc.light)==null?void 0:s.palette,...WU(t.primaryColor).palette,...(l=n.theme)==null?void 0:l.palette,background:{...(u=(c=vc==null?void 0:vc.light)==null?void 0:c.palette)==null?void 0:u.background,...(f=(d=n.theme)==null?void 0:d.palette)==null?void 0:f.background}}},dark:{palette:{...(p=vc==null?void 0:vc.dark)==null?void 0:p.palette,...WU(t.primaryColor).palette,...t.contrast==="bold"&&{background:{...(m=(h=vc==null?void 0:vc.dark)==null?void 0:h.palette)==null?void 0:m.background,default:"#0a0a0a",paper:"#1a1a1a"}}}}},customShadows:{...SW(t.colorScheme),...WU(t.primaryColor).customShadows},components:{...r.components,...t.compactLayout&&{MuiCard:{styleOverrides:{root:{padding:"12px"}}},MuiButton:{styleOverrides:{root:{minHeight:"32px",padding:"6px 12px"}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputBase-root":{minHeight:"36px"}}}}}}}},[t,r,n]),o=hM(i),a={modeStorageKey:"theme-mode",defaultMode:xW.colorScheme};return E.jsxs(gpt,{theme:o,defaultMode:a.defaultMode,modeStorageKey:a.modeStorageKey,children:[E.jsx(x1t,{}),E.jsx(C4e,{styles:{"*":{"::-webkit-scrollbar":{width:5,height:4}," ::-webkit-scrollbar-track":{background:o.palette.grey[50]},"::-webkit-scrollbar-thumb":{background:o.palette.grey[300],borderRadius:12},"::-webkit-scrollbar-thumb:hover":{background:o.palette.grey[400]}},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},body:{a:{textDecoration:"none",color:"inherit"},...t.compactLayout&&{"& .MuiContainer-root":{paddingTop:"8px !important",paddingBottom:"8px !important"},"& .MuiStack-root":{gap:"8px !important"},"& .MuiBox-root":{padding:"8px"}}}}}),e]})}const Rve=document.getElementById("root");Rve&&GH.createRoot(Rve).render(E.jsx(Te.StrictMode,{children:E.jsx(LKt,{children:E.jsx(FKt,{children:E.jsx(kYt,{})})})}));/**
|
|
5444
|
+
- Cookie mode: Sets tokens in HTTP-only cookies and returns success message`,operationId:"AuthController_verify2fa",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerify2faRequestDto"}}}},responses:{200:{description:"Header mode: Returns message + tokens in body",content:{"application/json":{schema:{$ref:"#/components/schemas/Verify2faWithTokensResponseDto"}}}}},summary:"Verify MFA",tags:["Auth"]}},"/auth/logout":{post:{operationId:"AuthController_logout",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutResponseDto"}}}}},summary:"Logout",tags:["Auth"]}},"/auth/logout-all":{post:{operationId:"AuthController_logoutAll",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthLogoutAllResponseDto"}}}}},summary:"Logout All",tags:["Auth"]}},"/auth/switch-tenant":{post:{operationId:"AuthController_switchTenant",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSwitchTenantRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/AuthWithTokensResponseDto"}}}}},summary:"Switch Active Tenant",tags:["Auth"]}},"/auth/me":{get:{operationId:"AuthController_sessionUserData",parameters:[],responses:{200:{description:"Current user data"}},summary:"Get Session User Data and menage extra user data from config",tags:["Auth"]}},"/auth/change-password":{post:{operationId:"AuthController_changePassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthChangePasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/MessageResponseDto"}}}}},summary:"Change Password",tags:["Auth"]}},"/auth/forgot-password":{post:{operationId:"AuthController_forgotPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthForgotPasswordRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetLinkSentResponseDto"}}}}},summary:"Forgot password",tags:["Auth"]}},"/auth/verify-forgot-password-otp":{post:{operationId:"AuthController_verifyForgotPasswordOtp",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyForgotPasswordOtpRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/VerifyOtpResponseDto"}}}}},summary:"Verify Forgot Password OTP and get reset token",tags:["Auth"]}},"/auth/reset-password":{post:{operationId:"AuthController_resetPassword",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthResetPasswordWithTokenRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPasswordResetResponseDto"}}}}},summary:"Reset password",tags:["Auth"]}},"/auth/client-config":{get:{description:"Public configuration for clients (tenant mode, auth methods, registration, MFA, etc.). No auth required.",operationId:"AuthController_getClientConfig",parameters:[],responses:{200:{description:"Client configuration"}},summary:"Client config",tags:["Auth"]}},"/auth/user":{get:{operationId:"AuthController_getUser",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/UserResponseDto"}}}}},summary:"Get Logged In User",tags:["Auth"]}},"/auth/verify-session":{get:{description:"Lightweight endpoint to verify if the current session is valid. Returns minimal information without fetching full user data.",operationId:"AuthController_verifySession",parameters:[],responses:{200:{description:"",content:{"application/json":{schema:{properties:{valid:{type:"boolean",example:!0},userId:{type:"string",example:"123e4567-e89b-12d3-a456-426614174000"},expiresAt:{type:"string",example:"2024-01-01T12:00:00.000Z"}}}}}}},summary:"Verify Session",tags:["Auth"]}},"/auth/send-email-verification":{post:{operationId:"AuthController_sendEmailVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendEmailVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerificationSentResponseDto"}}}}},summary:"Send email verification",tags:["Auth"]}},"/auth/verify-email":{post:{operationId:"AuthController_verifyEmail",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyEmailRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthEmailVerifiedResponseDto"}}}}},summary:"Verify Email",tags:["Auth"]}},"/auth/send-phone-verification":{post:{operationId:"AuthController_sendPhoneVerification",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthSendPhoneVerificationRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPhoneVerificationSentResponseDto"}}}}},summary:"Send phone verification (SMS OTP)",tags:["Auth"]}},"/auth/verify-phone":{post:{operationId:"AuthController_verifyPhone",parameters:[],requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthVerifyPhoneRequestDto"}}}},responses:{200:{description:"",content:{"application/json":{schema:{$ref:"#/components/schemas/NestAuthPhoneVerifiedResponseDto"}}}}},summary:"Verify phone number with OTP",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"]}}},vYt={title:"@ackplus/nest-auth API",description:"OpenAPI specification generated from the Nest Auth module",version:"2.0.0-beta.25",contact:{}},OYt=[],SYt=[],xYt={securitySchemes:{bearer:{scheme:"bearer",bearerFormat:"JWT",type:"http"}},schemas:{NestAuthSignupRequestDto:{type:"object",properties:{email:{type:"string",description:"User email address (required if phone not provided)",example:"user@example.com"},phone:{type:"string",description:"User phone number (required if email not provided)",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0}},required:["password"]},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"]},trustToken:{type:"string",description:"Trust token for trusted device verification",example:"1234567890"}},required:["accessToken","refreshToken","isRequiresMfa"]},EmailCredentialsDto:{type:"object",properties:{email:{type:"string",description:"User email address",example:"user@example.com"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["email","password"]},PhoneCredentialsDto:{type:"object",properties:{phone:{type:"string",description:"User phone number",example:"+1234567890"},password:{type:"string",description:"User password",example:"SecurePass123!",minLength:8}},required:["phone","password"]},SocialCredentialsDto:{type:"object",properties:{token:{type:"string",description:"OAuth token or ID token from social provider",example:"ya29.a0AfH6SMBx1234567890abcdefghijklmnop"}},required:["token"]},PasswordlessOtpCredentialsDto:{type:"object",properties:{identifier:{type:"string",description:"Email or phone (same value as in send request)",example:"user@example.com"},channels:{type:"array",description:"Channel(s) to try in order. Use both when the client is unsure whether `identifier` is email or phone.",example:["email","sms"],items:{type:"string",enum:["email","sms"]}},code:{type:"string",description:"One-time code from email or SMS",example:"123456"}},required:["identifier","channels","code"]},NestAuthLoginRequestDto:{type:"object",properties:{providerName:{type:"string",description:"Authentication provider name",example:"email",enum:["email","phone","passwordless","google","facebook","apple","github"],default:"email"},credentials:{description:"Login credentials - type varies by provider",examples:{emailLogin:{summary:"Email + password",value:{email:"user@example.com",password:"SecurePass123!"}},phoneLogin:{summary:"Phone + password",value:{phone:"+1234567890",password:"SecurePass123!"}},passwordlessOtp:{summary:"Passwordless OTP — set providerName to passwordless (after POST /auth/passwordless/send)",value:{providerName:"passwordless",credentials:{identifier:"user@example.com",channels:["email","sms"],code:"123456"}}},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"},{$ref:"#/components/schemas/PasswordlessOtpCredentialsDto"}]},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"},guard:{type:"string",description:"Guard context (e.g. admin, web, vendor) for isolation. Deprecated: use client",example:"admin",deprecated:!0},createUserIfNotExists:{type:"boolean",description:"Auto-create user if not exists (for social auth)",default:!1}},required:["credentials"]},NestAuthPasswordlessSendRequestDto:{type:"object",properties:{identifier:{type:"string",description:"Email or phone (per `channel`)",example:"user@example.com"},channel:{type:"string",enum:["email","sms"]},tenantId:{type:"string"}},required:["identifier","channel"]},MessageResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message"}},required:["message"]},NestAuthRefreshTokenRequestDto:{type:"object",properties:{refreshToken:{type:"string",description:"Refresh token to obtain new access token",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCJ9.abc123"}}},NestAuthMfaCodeSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA code sent successfully"}},required:["message"]},NestAuthMFAMethodEnum:{type:"string",enum:["email","sms","totp"]},NestAuthVerify2faRequestDto:{type:"object",properties:{method:{description:"MFA method used",example:"totp",allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]},otp:{type:"string",description:"One-time password code",example:"123456",minLength:6,maxLength:8},trustDevice:{type:"boolean",description:"Whether to trust this device for future logins",example:!0}},required:["method","otp"]},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"},emailVerifiedAt:{format:"date-time",type:"string",description:"Email verification status",example:!0},phoneVerifiedAt:{format:"date-time",type:"string",description:"Phone 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","emailVerifiedAt","phoneVerifiedAt"]},Verify2faWithTokensResponseDto:{type:"object",properties:{accessToken:{type:"string",description:"JWT access token (short-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJpYXQiOjE2OTk5OTk5OTksImV4cCI6MTY5OTk5OTk5OX0.xyz"},refreshToken:{type:"string",description:"JWT refresh token (long-lived)",example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMjMiLCJ0eXBlIjoicmVmcmVzaCIsImlhdCI6MTY5OTk5OTk5OX0.abc"},message:{type:"string",description:"Verification success message (added by controller)",example:"2FA verification successful"},user:{description:"User information with roles and permissions",allOf:[{$ref:"#/components/schemas/UserResponseDto"}]}},required:["accessToken","refreshToken"]},NestAuthLogoutResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out successfully"}},required:["message"]},NestAuthLogoutAllResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Logged out from all devices"}},required:["message"]},NestAuthSwitchTenantRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID to switch into",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["tenantId"]},NestAuthChangePasswordRequestDto:{type:"object",properties:{currentPassword:{type:"string",description:"Current password",example:"DemoOwner1!",minLength:8},newPassword:{type:"string",description:"New password",example:"DemoOwner1!New",minLength:8}},required:["currentPassword","newPassword"]},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"},code:{type:"string",description:"Verification or magic-link code (matches OTP entity `code`)",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["code"]},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:{code:{type:"string",description:"Verification 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:["code"]},NestAuthEmailVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Email verified successfully"}},required:["message"]},NestAuthSendPhoneVerificationRequestDto:{type:"object",properties:{tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}}},NestAuthPhoneVerificationSentResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Verification SMS sent"}},required:["message"]},NestAuthVerifyPhoneRequestDto:{type:"object",properties:{code:{type:"string",description:"Verification code received via SMS (matches OTP entity `code`)",example:"123456",minLength:6,maxLength:8},tenantId:{type:"string",description:"Tenant ID for multi-tenant applications",example:"123e4567-e89b-12d3-a456-426614174000"}},required:["code"]},NestAuthPhoneVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Phone verified successfully"}},required:["message"]},MfaDeviceDto:{type:"object",properties:{id:{type:"string",description:"Unique identifier of the MFA device",example:"4b3c9c9c-9a9d-4d1e-8d9f-123456789abc"},deviceName:{type:"string",description:"Friendly name of the registered device",example:"Work laptop"},method:{type:"string",description:"MFA method this device supports",enum:["email","sms","totp"],example:"totp"},lastUsedAt:{format:"date-time",type:"string",description:"Timestamp of when the device was last used",example:"2024-05-20T12:34:56.000Z"},verified:{type:"boolean",description:"Whether the device setup has been verified",example:!0},createdAt:{format:"date-time",type:"string",description:"Timestamp of when the device was registered",example:"2024-05-18T10:15:00.000Z"}},required:["id","deviceName","method","verified"]},MfaStatusResponseDto:{type:"object",properties:{isEnabled:{type:"boolean",description:"Whether MFA is currently enabled for the user",example:!0},verifiedMethods:{type:"array",description:"MFA methods the user has verified and can currently use (includes EMAIL/SMS if configured, and TOTP if user has verified device)",example:["email","totp"],items:{type:"string",enum:["email","sms","totp"]}},configuredMethods:{type:"array",description:"All MFA methods configured and available in the application (methods user can potentially set up)",example:["email","totp","sms"],items:{type:"string",enum:["email","sms","totp"]}},allowUserToggle:{type:"boolean",description:"Indicates if MFA toggling is allowed for the user",example:!0},allowMethodSelection:{type:"boolean",description:"Indicates if users can choose their preferred MFA method",example:!0},totpDevices:{description:"Registered TOTP devices for the user",type:"array",items:{$ref:"#/components/schemas/MfaDeviceDto"}},hasRecoveryCode:{type:"boolean",description:"Whether a recovery code has been generated for the user",example:!1},required:{type:"boolean",description:"Whether MFA is required for all users. If true, users cannot disable MFA even if allowUserToggle is true",example:!1},canToggle:{type:"boolean",description:"Whether the user can toggle MFA. This is false if MFA is required (required=true) even if allowUserToggle is true",example:!0}},required:["isEnabled","verifiedMethods","configuredMethods","allowUserToggle","allowMethodSelection","totpDevices","hasRecoveryCode","required","canToggle"]},NestAuthToggleMfaRequestDto:{type:"object",properties:{enabled:{type:"boolean",description:"Whether MFA should be enabled for the current user",example:!0}},required:["enabled"]},NestAuthMfaToggleResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA enabled successfully"}},required:["message"]},NestAuthMfaDeviceRemovedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device removed successfully"}},required:["message"]},NestAuthSendMfaCodeRequestDto:{type:"object",properties:{method:{description:"MFA delivery method",example:"email",examples:{email:{value:"email",description:"Send OTP via email"},sms:{value:"sms",description:"Send OTP via SMS"},totp:{value:"totp",description:"Use authenticator app (TOTP)"}},allOf:[{$ref:"#/components/schemas/NestAuthMFAMethodEnum"}]}},required:["method"]},NestAuthVerifyTotpSetupRequestDto:{type:"object",properties:{otp:{type:"string",description:"The TOTP code from authenticator app",example:"123456",minLength:6,maxLength:6},secret:{type:"string",description:"Secret key from TOTP setup",example:"JBSWY3DPEHPK3PXP"}},required:["otp","secret"]},NestAuthMfaDeviceVerifiedResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"Device setup successfully"}},required:["message"]},NestAuthMfaResetResponseDto:{type:"object",properties:{message:{type:"string",description:"Response message",example:"MFA reset successfully"}},required:["message"]}}},wYt={openapi:bYt,paths:yYt,info:vYt,tags:OYt,servers:SYt,components:xYt},Wk=({content:e})=>E.jsx(FWt,{remarkPlugins:[H7],components:{code({node:t,inline:n,className:r,children:i,...o}){const a=/language-(\w+)/.exec(r||"");return!n&&a?E.jsx(A8e,{...o,style:dYt,language:a[1],PreTag:"div",customStyle:{margin:0,borderRadius:"0.5rem",fontSize:"0.875rem"},children:String(i).replace(/\n$/,"")}):E.jsx("code",{...o,style:{backgroundColor:"var(--mui-palette-grey-200)",color:"var(--mui-palette-grey-800)",borderRadius:4,padding:"2px 4px",fontSize:"0.875rem",fontFamily:"monospace"},children:i})},table({children:t}){return E.jsx(Xe,{sx:{overflowX:"auto",my:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:E.jsx(Xe,{component:"table",sx:{minWidth:"100%",borderCollapse:"collapse","& tr":{borderBottom:"1px solid",borderColor:"divider"}},children:t})})},thead({children:t}){return E.jsx(Xe,{component:"thead",sx:{bgcolor:"grey.50"},children:t})},th({children:t}){return E.jsx(Xe,{component:"th",scope:"col",sx:{px:1.5,py:1.5,textAlign:"left",fontSize:"0.75rem",fontWeight:500,color:"text.secondary",textTransform:"uppercase",letterSpacing:"0.05em"},children:t})},td({children:t}){return E.jsx(Xe,{component:"td",sx:{px:1.5,py:1.5,whiteSpace:"nowrap",fontSize:"0.875rem",color:"text.secondary",borderTop:"1px solid",borderColor:"divider"},children:t})},a({href:t,children:n}){return E.jsx("a",{href:t,style:{color:"var(--mui-palette-primary-main)",textDecoration:"none"},className:"MuiTypography-root MuiLink-root",onMouseOver:r=>{r.currentTarget.style.textDecoration="underline"},onMouseOut:r=>{r.currentTarget.style.textDecoration="none"},target:"_blank",rel:"noopener noreferrer",children:n})},h2({children:t}){return E.jsx(ze,{component:"h2",variant:"h5",sx:{fontWeight:700,mt:3,mb:1.5,pb:1,borderBottom:"1px solid",borderColor:"divider"},children:t})},h3({children:t}){return E.jsx(ze,{component:"h3",variant:"h6",sx:{fontWeight:600,mt:2,mb:1},children:t})},p({children:t}){return E.jsx(ze,{component:"p",sx:{color:"text.primary",lineHeight:1.6,mb:1.5},children:t})},ul({children:t}){return E.jsx(Xe,{component:"ul",sx:{listStyle:"disc",pl:2,mb:1.5,color:"text.primary","& li":{mb:.5}},children:t})},li({children:t}){return E.jsx(Xe,{component:"li",sx:{ml:1},children:t})},blockquote({children:t}){return E.jsx(Xe,{component:"blockquote",sx:{borderLeft:"4px solid",borderColor:"primary.main",pl:1.5,py:.5,my:1.5,bgcolor:"primary.50",color:"text.primary",fontStyle:"italic",borderRadius:"0 4px 4px 0"},children:t})}},children:e}),EYt=()=>{const[e,t]=F.useState(!1),[n,r]=F.useState(null),[i,o]=F.useState("api");F.useEffect(()=>{const l=wYt||{};!l||!l.paths||Object.keys(l.paths||{}).length===0?t(!0):r(l)},[]);const a=()=>{if(!n)return;const l=JSON.stringify(n,null,2),c=new Blob([l],{type:"application/json"}),u=URL.createObjectURL(c),d=document.createElement("a");d.href=u,d.download="nest-auth-api.json",document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(u)},s=[{id:"api",label:"API Explorer",icon:wq},{id:"config",label:"Configuration",icon:v2t},{id:"examples",label:"Examples",icon:Gme},{id:"events",label:"Events",icon:_2t},{id:"api-reference",label:"API Reference",icon:s2t},{id:"services",label:"Services",icon:Gme}];return E.jsxs(Ot,{spacing:3,children:[E.jsx(I1,{title:"API Documentation",description:"Comprehensive guide and interactive API documentation.",action:i==="api"&&E.jsx(mn,{variant:"outlined",color:"inherit",onClick:a,disabled:e,startIcon:E.jsx(ht,{component:p2t}),children:"Download JSON"})}),E.jsx(k3e,{value:i,onChange:(l,c)=>o(c),variant:"scrollable",scrollButtons:"auto",sx:{borderBottom:1,borderColor:"divider"},children:s.map(l=>E.jsx(x3e,{value:l.id,label:l.label,icon:E.jsx(ht,{component:l.icon,sx:{fontSize:16}}),iconPosition:"start"},l.id))}),i==="api"&&(e?E.jsx(hi,{variant:"outlined",sx:{p:3,textAlign:"center"},children:E.jsxs(Xa,{severity:"warning",icon:E.jsx(ht,{component:e2,sx:{fontSize:20}}),sx:{textAlign:"left"},children:[E.jsx(ze,{variant:"subtitle2",gutterBottom:!0,children:"API Documentation Not Available"}),E.jsx(ze,{variant:"body2",children:"The OpenAPI specification file could not be loaded. Make sure the OpenAPI spec has been generated by running the build process."})]})}):E.jsxs(E.Fragment,{children:[E.jsxs(Xa,{severity:"info",icon:E.jsx(ht,{component:wq,sx:{fontSize:20}}),children:[E.jsx(ze,{variant:"subtitle2",gutterBottom:!0,children:"Interactive API Documentation"}),E.jsx(ze,{variant:"body2",children:'This documentation is auto-generated from the OpenAPI specification. You can test endpoints directly from this page. Click "Download JSON" to get the raw OpenAPI specification file for importing into Postman or other API tools.'})]}),n&&E.jsx(yHt,{spec:n})]})),i==="config"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:fYt})}),i==="examples"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:pYt})}),i==="events"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:hYt})}),i==="api-reference"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:mYt})}),i==="services"&&E.jsx(hi,{variant:"outlined",sx:{p:3},children:E.jsx(Wk,{content:gYt})})]})},S0=({children:e,authenticated:t})=>t===null?E.jsx(Xe,{sx:{minHeight:"100vh",bgcolor:"grey.50",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs(Xe,{sx:{textAlign:"center"},children:[E.jsx(Vh,{size:64,sx:{mb:2}}),E.jsx(ze,{color:"text.secondary",fontWeight:"medium",children:"Verifying authentication..."})]})}):t?E.jsx(E.Fragment,{children:e}):E.jsx(AO,{to:"/login",replace:!0}),kYt=()=>{const[e,t]=F.useState(null),[n,r]=F.useState(null),[i,o]=F.useState(!1),[a,s]=F.useState(null);F.useEffect(()=>{l()},[]);const l=async()=>{try{await fr.get("/me"),t(!0);const d=await fr.get("/config");r(d)}catch(d){const f=d instanceof U4e?d.status:void 0;f===401||f===403||console.error("Auth check failed:",d),t(!1);try{const h=await fr.get("/config");r(h)}catch(h){console.error("Failed to load config:",h),r({allowAdminManagement:!1})}}finally{o(!0)}},c=async d=>{s(null);try{await fr.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 fr.post("/logout",{})}catch(d){console.error("Logout failed:",d)}t(!1)};return!i||n===null?E.jsx(Xe,{sx:{minHeight:"100vh",background:"linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #e9d5ff 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:E.jsxs(Xe,{sx:{textAlign:"center"},children:[E.jsx(Vh,{size:64,sx:{color:"primary.main",mb:2}}),E.jsx(ze,{color:"text.primary",fontWeight:"medium",variant:"h6",children:"Loading Nest Auth Dashboard..."}),E.jsx(ze,{color:"text.secondary",variant:"body2",sx:{mt:1},children:"Verifying authentication"})]})}):E.jsx(n2t,{children:E.jsx(i2t,{children:E.jsx(Rht,{children:E.jsxs(Eht,{children:[E.jsx(yd,{path:"/login",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(oSt,{onLogin:c,error:a})}),E.jsx(yd,{path:"/dashboard",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(Ozt,{})})})}),E.jsx(yd,{path:"/users",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(_zt,{})})})}),E.jsx(yd,{path:"/users/:id",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(Qzt,{})})})}),E.jsx(yd,{path:"/roles",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(eHt,{})})})}),E.jsx(yd,{path:"/tenants",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(rHt,{})})})}),E.jsx(yd,{path:"/permissions",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(hHt,{})})})}),E.jsx(yd,{path:"/api",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(EYt,{})})})}),n.allowAdminManagement&&E.jsx(yd,{path:"/admins",element:E.jsx(S0,{authenticated:e,children:E.jsx(y0,{config:n,onLogout:u,children:E.jsx(sHt,{})})})}),E.jsx(yd,{path:"/",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(AO,{to:"/login",replace:!0})}),E.jsx(yd,{path:"*",element:e?E.jsx(AO,{to:"/dashboard",replace:!0}):E.jsx(AO,{to:"/login",replace:!0})})]})})})})},_Yt={defaultProps:{color:"transparent"},styleOverrides:{root:{boxShadow:"none"}}},TYt={MuiAppBar:_Yt},AYt={styleOverrides:{paper:({theme:e})=>({boxShadow:e.customShadows.dropdown})}},$Yt={MuiAutocomplete:AYt},CYt=["primary","secondary","info","success","warning","error"],IYt=e=>{const t=e.charAt(0).toLowerCase();return["a","c","f"].includes(t)?"primary":["e","d","h"].includes(t)?"secondary":["i","k","l"].includes(t)?"info":["m","n","p"].includes(t)?"success":["q","s","t"].includes(t)?"warning":["v","x","y"].includes(t)?"error":"default"},_ve={colors:CYt.map(e=>({props:({ownerState:t})=>t.color===e,style:({theme:t})=>({color:t.palette[e].contrastText,backgroundColor:t.palette[e].main})})),defaultColor:[{props:({ownerState:e})=>e.color==="default",style:({theme:e})=>({color:e.palette.text.secondary,backgroundColor:Zn(e.palette.grey[500],.5)})}]},RYt={variants:[..._ve.defaultColor,..._ve.colors],styleOverrides:{rounded:({theme:e})=>({borderRadius:(Number(e.shape.borderRadius)||1)*1.5}),colorDefault:({ownerState:e,theme:t})=>{const n=IYt(`${e.alt}`);return{...!!e.alt&&{...n!=="default"?{color:t.palette[n].contrastText,backgroundColor:t.palette[n].main}:{color:t.palette.text.secondary,backgroundColor:Zn(t.palette.grey[500],.1)}}}}}},PYt={defaultProps:{max:4},styleOverrides:{root:({ownerState:e})=>({justifyContent:"flex-end",...e.variant==="compact"&&{width:40,height:40,position:"relative",[`& .${F0t.avatar}`]:{margin:0,width:28,height:28,position:"absolute","&:first-of-type":{left:0,bottom:0,zIndex:9},"&:last-of-type":{top:0,right:0}}}}),avatar:({theme:e})=>({fontSize:16,fontWeight:e.typography.fontWeightSemiBold,"&:first-of-type":{fontSize:12,color:e.palette.primary.dark,backgroundColor:e.palette.primary.lighter}})}},NYt={MuiAvatar:RYt,MuiAvatarGroup:PYt},DYt={styleOverrides:{root:{},sizeSmall:{[`& .${Ghe.root}`]:{height:12,width:12}},sizeLarge:{[`& .${Ghe.root}`]:{height:18,width:18}}}},MYt={MuiButton:DYt},LYt={styleOverrides:{root:({theme:e})=>({position:"relative",boxShadow:e.customShadows.card,zIndex:0})}},jYt={defaultProps:{titleTypographyProps:{variant:"h6"},subheaderTypographyProps:{variant:"body2",marginTop:"4px"}},styleOverrides:{root:({theme:e})=>({padding:e.spacing(1.5,2,1.5),[e.breakpoints.down("md")]:{padding:e.spacing(2,2,.5)}}),action:{alignSelf:"center"}}},FYt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},BYt={styleOverrides:{root:({theme:e})=>({padding:e.spacing(2),[e.breakpoints.down("md")]:{padding:e.spacing(2)}})}},UYt={MuiCard:LYt,MuiCardHeader:jYt,MuiCardContent:FYt,MuiCardActions:BYt};function zYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17.9 2.318A5 5 0 0 1 22.895 7.1l.005.217v10a5 5 0 0 1-4.783 4.995l-.217.005h-10a5 5 0 0 1-4.995-4.783l-.005-.217v-10a5 5 0 0 1 4.783-4.996l.217-.004h10Zm-.5 1.5h-9a4 4 0 0 0-4 4v9a4 4 0 0 0 4 4h9a4 4 0 0 0 4-4v-9a4 4 0 0 0-4-4Z"})})}function HYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm-1.625 7.255-4.13 4.13-1.75-1.75a.881.881 0 0 0-1.24 0c-.34.34-.34.89 0 1.24l2.38 2.37c.17.17.39.25.61.25.23 0 .45-.08.62-.25l4.75-4.75c.34-.34.34-.89 0-1.24a.881.881 0 0 0-1.24 0Z"})})}function VYt(e){return E.jsx(px,{...e,children:E.jsx("path",{d:"M17,2 C19.7614,2 22,4.23858 22,7 L22,7 L22,17 C22,19.7614 19.7614,22 17,22 L17,22 L7,22 C4.23858,22 2,19.7614 2,17 L2,17 L2,7 C2,4.23858 4.23858,2 7,2 L7,2 Z M15,11 L9,11 C8.44772,11 8,11.4477 8,12 C8,12.5523 8.44772,13 9,13 L15,13 C15.5523,13 16,12.5523 16,12 C16,11.4477 15.5523,11 15,11 Z"})})}const qYt={defaultProps:{size:"small",icon:E.jsx(zYt,{}),checkedIcon:E.jsx(HYt,{}),indeterminateIcon:E.jsx(VYt,{})},styleOverrides:{root:({ownerState:e,theme:t})=>({padding:t.spacing(1),...e.color==="default"&&{[`&.${_S.checked}`]:{color:t.palette.text.primary}},[`&.${_S.disabled}`]:{color:t.palette.action.disabled}})}},QYt={MuiCheckbox:qYt},WYt={defaultProps:{onClick:()=>{}},variants:[{props:{size:"x-small"},style:{height:18,fontSize:"0.6875rem",px:.2}}]},GYt={MuiChip:WYt},Vie=["primary","secondary","info","success","warning","error"],$8e=["default","inherit"],ZYt=["extended","outlinedExtended","softExtended"],Tve=["circular","extended"],Ave=["outlined","outlinedExtended"],$ve=["soft","softExtended"],cO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&Tve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:t.customShadows[e],"&:hover":{boxShadow:"none"}})})),base:[{props:({ownerState:e})=>Tve.includes(e==null?void 0:e.variant)&&$8e.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:e.customShadows.z8,color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${Ox.colorInherit}`]:{color:e.palette.common.white,backgroundColor:e.palette.text.primary,"&:hover":{backgroundColor:e.palette.grey[700]},...e.palette.mode==="dark"&&{color:e.palette.grey[800],"&:hover":{backgroundColor:e.palette.grey[400]}}}})}]},uO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&Ave.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({color:t.palette[e].main,border:`solid 1px ${Zn(t.palette[e].main,.48)}`,"&:hover":{backgroundColor:Zn(t.palette[e].main,.08)}})})),base:[{props:({ownerState:e})=>Ave.includes(e==null?void 0:e.variant),style:({theme:e})=>({boxShadow:"none",backgroundColor:"transparent",color:e.palette.text.secondary,border:`solid 1px ${Zn(e.palette.grey[500],.32)}`,"&:hover":{borderColor:"currentColor",boxShadow:"0 0 0 0.75px currentColor",backgroundColor:e.palette.action.hover},[`&.${Ox.colorInherit}`]:{color:e.palette.text.primary},[`&.${Ox.disabled}`]:{backgroundColor:"transparent",border:`1px solid ${e.palette.action.disabledBackground}`}})}]},dO={colors:Vie.map(e=>({props:({ownerState:t})=>!(t!=null&&t.disabled)&&$ve.includes(t==null?void 0:t.variant)&&t.color===e,style:({theme:t})=>({boxShadow:"none",color:t.palette[e].dark,backgroundColor:Zn(t.palette[e].main,.16),"&:hover":{boxShadow:"none",backgroundColor:Zn(t.palette[e].main,.32)},...t.palette.mode==="dark"&&{color:t.palette[e].light}})})),base:[{props:({ownerState:e})=>$ve.includes(e==null?void 0:e.variant)&&$8e.includes(e==null?void 0:e.color),style:({theme:e})=>({boxShadow:"none",color:e.palette.grey[800],backgroundColor:e.palette.grey[300],"&:hover":{boxShadow:"none",backgroundColor:e.palette.grey[400]},[`&.${Ox.colorInherit}`]:{color:e.palette.text.primary,backgroundColor:Zn(e.palette.grey[500],.08),"&:hover":{backgroundColor:Zn(e.palette.grey[500],.24)}}})}]},XYt=[{props:({ownerState:e})=>ZYt.includes(e==null?void 0:e.variant),style:({theme:e})=>({height:48,width:"auto",minHeight:48,borderRadius:48/2,gap:e.spacing(1),padding:e.spacing(0,2),[`&.${Ox.sizeSmall}`]:{height:36,minHeight:36,borderRadius:36/2,gap:e.spacing(.5),padding:e.spacing(0,1)},[`&.${Ox.sizeMedium}`]:{height:40,minHeight:40,borderRadius:40/2}})},{props:({ownerState:e})=>e.size==="x-small",style:({theme:e})=>({height:30,width:30,minHeight:30,borderRadius:30/2,gap:e.spacing(.5),padding:e.spacing(0,1)})}],YYt={defaultProps:{color:"primary"},variants:[...(cO==null?void 0:cO.base)??[],...(cO==null?void 0:cO.colors)??[],...(uO==null?void 0:uO.base)??[],...(uO==null?void 0:uO.colors)??[],...(dO==null?void 0:dO.base)??[],...(dO==null?void 0:dO.colors)??[],...XYt],styleOverrides:{}},KYt={MuiFab:YYt},JYt={styleOverrides:{root:{boxShadow:"none"}}},eKt={MuiIconButton:JYt},tKt={styleOverrides:{root:({theme:e})=>({color:"inherit",minWidth:"auto",marginRight:e.spacing(2)})}},nKt={styleOverrides:{root:({theme:e})=>({minWidth:"auto",marginRight:e.spacing(2)})}},rKt={styleOverrides:{root:({theme:e})=>({color:e.palette.text.primary})}},iKt={defaultProps:{primaryTypographyProps:{typography:"subtitle2",color:"text.primary"},secondaryTypographyProps:{typography:"caption",color:"text.secondary"}},styleOverrides:{root:{margin:0},multiline:{margin:0}}},oKt={MuiListItemIcon:tKt,MuiListItemAvatar:nKt,MuiListItemButton:rKt,MuiListItemText:iKt},aKt={styleOverrides:{root:({theme:e})=>({...e.typography.body2,padding:e.spacing(.75,1),borderRadius:(Number(e.shape.borderRadius)||1)*.75,"&:not(:last-of-type)":{marginBottom:4},[`&.${CO.selected}`]:{fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`& .${_S.root}`]:{padding:e.spacing(.5),marginLeft:e.spacing(-.5),marginRight:e.spacing(.5)},[`&.${rr.option}[aria-selected="true"]`]:{backgroundColor:e.palette.action.selected,"&:hover":{backgroundColor:e.palette.action.hover}},[`&+.${pq.root}`]:{margin:e.spacing(.5,0)}})}},sKt={MuiMenuItem:aKt},lKt={defaultProps:{elevation:0},styleOverrides:{root:{backgroundImage:"none"},outlined:({theme:e})=>({borderColor:Zn(e.palette.grey[500],.16)})}},cKt={MuiPaper:lKt},uKt={defaultProps:{MenuProps:{PaperProps:{sx:e=>({maxHeight:250,transform:"translateY(4px)",boxShadow:e.customShadows.card})}}}},dKt={MuiSelect:uKt},fKt={styleOverrides:{}},pKt={MuiSvgIcon:fKt},Cve={dark:'[data-mui-color-scheme="dark"] &'},hKt={styleOverrides:{root:{alignItems:"center"},switchBase:({ownerState:e,theme:t})=>({top:"unset",transform:"translateX(6px)",[`&.${lo.checked}`]:{[`& .${lo.thumb}`]:{...e.color==="default"&&{[Cve.dark]:{color:t.palette.grey[800]}}},[`&+.${lo.track}`]:{opacity:1,...e.color==="default"&&{backgroundColor:t.palette.text.primary}}},[`&.${lo.disabled}`]:{[`& .${lo.thumb}`]:{opacity:1,[Cve.dark]:{opacity:.48}},[`&+.${lo.track}`]:{opacity:.48}}}),track:({theme:e})=>({opacity:1,borderRadius:10,backgroundColor:Zn(e.palette.grey[500],.48)}),thumb:({theme:e})=>({color:e.palette.common.white}),sizeMedium:{[`& .${lo.track}`]:{height:20},[`& .${lo.thumb}`]:{width:14,height:14}},sizeSmall:{[`& .${lo.track}`]:{height:16},[`& .${lo.thumb}`]:{width:10,height:10}}}},mKt={MuiSwitch:hKt},gKt={styleOverrides:{root:({theme:e})=>({position:"relative",scrollbarWidth:"thin",scrollbarColor:`${Zn(e.palette.text.disabled,.4)} ${Zn(e.palette.text.disabled,.08)}`})}},bKt={styleOverrides:{root:({theme:e})=>({"--palette-TableCell-border":e.palette.divider})}},yKt={styleOverrides:{root:({theme:e})=>({[`&.${xq.selected}`]:{backgroundColor:Zn(e.palette.primary.dark,.04),"&:hover":{backgroundColor:Zn(e.palette.primary.dark,.08)}},"&:last-of-type":{[`& .${E3e.root}`]:{borderColor:"transparent"}}})}},vKt={styleOverrides:{root:{borderBottomStyle:"dashed"},head:({theme:e})=>({fontSize:14,color:e.palette.text.secondary,fontWeight:e.typography.fontWeightSemiBold,backgroundColor:e.palette.background.neutral}),stickyHeader:({theme:e})=>({backgroundColor:e.palette.background.paper,backgroundImage:`linear-gradient(to bottom, ${e.palette.background.neutral} 0%, ${e.palette.background.neutral} 100%)`}),paddingCheckbox:({theme:e})=>({paddingLeft:e.spacing(1)})}},OKt={defaultProps:{backIconButtonProps:{size:"small"},nextIconButtonProps:{size:"small"}},styleOverrides:{root:({theme:e})=>({width:"100%",[e.breakpoints.down("sm")]:{"& .MuiTablePagination-input":{marginRight:8}}}),toolbar:{height:64},actions:({theme:e})=>({marginRight:8,[e.breakpoints.down("md")]:{marginLeft:16}}),select:({theme:e})=>({paddingLeft:8,"&:focus":{borderRadius:e.shape.borderRadius}}),selectIcon:{right:4,width:16,height:16,top:"calc(50% - 8px)"}}},SKt={MuiTable:bKt,MuiTableRow:yKt,MuiTableCell:vKt,MuiTableContainer:gKt,MuiTablePagination:OKt},xKt={defaultProps:{textColor:"inherit",variant:"scrollable",allowScrollButtonsMobile:!0},styleOverrides:{root:({theme:e})=>({borderBottom:`1px solid ${e.palette.divider}`}),flexContainer:({ownerState:e,theme:t})=>({...e.variant!=="fullWidth"&&{gap:"24px",[t.breakpoints.up("sm")]:{gap:"40px"}}}),indicator:{backgroundColor:"currentColor"}}},wKt={defaultProps:{disableRipple:!0,iconPosition:"start"},styleOverrides:{root:({theme:e})=>({opacity:1,minWidth:48,minHeight:48,padding:e.spacing(1,0),color:e.palette.text.secondary,fontWeight:e.typography.fontWeightMedium,lineHeight:e.typography.body2.lineHeight,[`&.${uu.selected}`]:{color:e.palette.text.primary,fontWeight:e.typography.fontWeightSemiBold}})}},EKt={MuiTabs:xKt,MuiTab:wKt},kKt={...TYt,...NYt,...SKt,...EKt,...oKt,...sKt,...MYt,...cKt,...UYt,...QYt,...mKt,...pKt,...eKt,...dKt,...$Yt,...KYt,...GYt},Va={50:"#FCFDFD",100:"#F9FAFB",200:"#F4F6F8",300:"#DFE3E8",400:"#C4CDD5",500:"#919EAB",600:"#637381",700:"#454F5B",800:"#1C252E",900:"#141A21",lighter:"#F9FAFB",light:"#DFE3E8",main:"#919EAB",dark:"#454F5B",darker:"#161C24",contrastText:"#FFFFFF"},C8e={lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},I8e={lighter:"#f3e8ff",light:"#94a3b8",main:"#64748b",dark:"#475569",darker:"#334155",contrastText:"#FFFFFF"},R8e={lighter:"#dbeafe",light:"#93c5fd",main:"#2563eb",dark:"#1d4ed8",darker:"#1e40af",contrastText:"#FFFFFF"},P8e={lighter:"#dcfce7",light:"#bbf7d0",main:"#16a34a",dark:"#15803d",darker:"#166534",contrastText:"#ffffff"},N8e={lighter:"#fef3c7",light:"#fde68a",main:"#ca8a04",dark:"#a16207",darker:"#854d0e",contrastText:"#1C252E"},D8e={lighter:"#fee2e2",light:"#fecaca",main:"#dc2626",dark:"#b91c1c",darker:"#991b1b",contrastText:"#FFFFFF"},Qx={common:{black:"#000000",white:"#FFFFFF"},primary:C8e,secondary:I8e,info:R8e,success:P8e,warning:N8e,error:D8e,grey:Va,divider:Zn(Va[500],.2),action:{hover:Zn(Va[500],.08),selected:Zn(Va[500],.16),disabled:Zn(Va[500],.8),disabledBackground:Zn(Va[500],.24),focus:Zn(Va[500],.24),hoverOpacity:.08,disabledOpacity:.48}},M8e={...Qx,text:{primary:Va[800],secondary:Va[600],disabled:Va[500]},background:{paper:"#FFFFFF",default:Zn(Va[500],.2),neutral:"#F5F7FA"},action:{...Qx.action,active:Va[600]}},L8e={...Qx,text:{primary:"#FFFFFF",secondary:Va[500],disabled:Va[600]},background:{paper:Va[800],default:Va[900],neutral:Zn(Va[500],.12)},action:{...Qx.action,active:Va[500]}};function qie(e){return e==="light"?M8e:L8e}const vc={light:{palette:M8e},dark:{palette:L8e}};function fO(e){return`0 8px 16px 0 ${Zn(e,.24)}`}function SW(e){const t=e==="light"?Va[500]:Qx.common.black;return{z1:`0 1px 2px 0 ${Zn(t,.16)}`,z4:`0 4px 8px 0 ${Zn(t,.16)}`,z8:`0 8px 16px 0 ${Zn(t,.16)}`,z12:`0 12px 24px -4px ${Zn(t,.16)}`,z16:`0 16px 32px -4px ${Zn(t,.16)}`,z20:`0 20px 40px -4px ${Zn(t,.16)}`,z24:`0 24px 48px 0 ${Zn(t,.16)}`,dialog:`-40px 40px 80px -8px ${Zn(Qx.common.black,.24)}`,card:`0 0 2px 0 ${Zn(t,.2)}, 0 12px 24px -4px ${Zn(t,.12)}`,dropdown:`0 0 2px 0 ${Zn(t,.24)}, -20px 20px 40px -4px ${Zn(t,.24)}`,primary:fO(C8e.main),secondary:fO(I8e.main),info:fO(R8e.main),success:fO(P8e.main),warning:fO(N8e.main),error:fO(D8e.main)}}function WU(e){const t=TKt.find(r=>r.name===e);return{palette:{primary:Go.omit(t,["name"])},customShadows:{primary:`0 8px 16px 0 ${Zn(`${t==null?void 0:t.main}`,.24)}`}}}const _Kt=qie("light"),TKt=[{name:"default",lighter:"#e0f2fe",light:"#38bdf8",main:"#0284c7",dark:"#0369a1",darker:"#0c4a6e",contrastText:"#FFFFFF"},{name:"cyan",lighter:"#CCF4FE",light:"#68CDF9",main:"#078DEE",dark:"#0351AB",darker:"#012972",contrastText:"#FFFFFF"},{name:"purple",lighter:"#EBD6FD",light:"#B985F4",main:"#7635dc",dark:"#431A9E",darker:"#200A69",contrastText:"#FFFFFF"},{name:"blue",lighter:"#D1E9FC",light:"#76B0F1",main:"#2065D1",dark:"#103996",darker:"#061B64",contrastText:"#FFFFFF"},{name:"orange",lighter:"#FEF4D4",light:"#FED680",main:"#fda92d",dark:"#B66816",darker:"#793908",contrastText:_Kt.grey[800]},{name:"red",lighter:"#FFE3D5",light:"#FFC1AC",main:"#FF3030",dark:"#B71833",darker:"#7A0930",contrastText:"#FFFFFF"},{name:"green",lighter:"#D8F5E3",light:"#73D13D",main:"#52C41A",dark:"#389E0D",darker:"#237804",contrastText:"#FFFFFF"},{name:"pink",lighter:"#FFE7F1",light:"#FF85C0",main:"#FF1744",dark:"#C2185B",darker:"#880E4F",contrastText:"#FFFFFF"},{name:"indigo",lighter:"#E8EAF6",light:"#7986CB",main:"#3F51B5",dark:"#303F9F",darker:"#1A237E",contrastText:"#FFFFFF"},{name:"teal",lighter:"#E0F2F1",light:"#4DB6AC",main:"#009688",dark:"#00695C",darker:"#004D40",contrastText:"#FFFFFF"}];function AKt(e,t){const n={...e&&t==="light"&&{palette:{background:{default:qie(t).grey[100]}}}},r={...e&&{MuiCard:{styleOverrides:{root:{boxShadow:SW(t).z4}}}}};return{theme:n,components:r}}const j8e=qie("light"),$Kt=j8e.grey[500],CKt=j8e.common.black;function Ive(e){const t=Zn(e,.2),n=Zn(e,.14),r=Zn(e,.12);return["none",`0px 2px 1px -1px ${t},0px 1px 1px 0px ${n},0px 1px 3px 0px ${r}`,`0px 3px 1px -2px ${t},0px 2px 2px 0px ${n},0px 1px 5px 0px ${r}`,`0px 3px 3px -2px ${t},0px 3px 4px 0px ${n},0px 1px 8px 0px ${r}`,`0px 2px 4px -1px ${t},0px 4px 5px 0px ${n},0px 1px 10px 0px ${r}`,`0px 3px 5px -1px ${t},0px 5px 8px 0px ${n},0px 1px 14px 0px ${r}`,`0px 3px 5px -1px ${t},0px 6px 10px 0px ${n},0px 1px 18px 0px ${r}`,`0px 4px 5px -2px ${t},0px 7px 10px 1px ${n},0px 2px 16px 1px ${r}`,`0px 5px 5px -3px ${t},0px 8px 10px 1px ${n},0px 3px 14px 2px ${r}`,`0px 5px 6px -3px ${t},0px 9px 12px 1px ${n},0px 3px 16px 2px ${r}`,`0px 6px 6px -3px ${t},0px 10px 14px 1px ${n},0px 4px 18px 3px ${r}`,`0px 6px 7px -4px ${t},0px 11px 15px 1px ${n},0px 4px 20px 3px ${r}`,`0px 7px 8px -4px ${t},0px 12px 17px 2px ${n},0px 5px 22px 4px ${r}`,`0px 7px 8px -4px ${t},0px 13px 19px 2px ${n},0px 5px 24px 4px ${r}`,`0px 7px 9px -4px ${t},0px 14px 21px 2px ${n},0px 5px 26px 4px ${r}`,`0px 8px 9px -5px ${t},0px 15px 22px 2px ${n},0px 6px 28px 5px ${r}`,`0px 8px 10px -5px ${t},0px 16px 24px 2px ${n},0px 6px 30px 5px ${r}`,`0px 8px 11px -5px ${t},0px 17px 26px 2px ${n},0px 6px 32px 5px ${r}`,`0px 9px 11px -5px ${t},0px 18px 28px 2px ${n},0px 7px 34px 6px ${r}`,`0px 9px 12px -6px ${t},0px 19px 29px 2px ${n},0px 7px 36px 6px ${r}`,`0px 10px 13px -6px ${t},0px 20px 31px 3px ${n},0px 8px 38px 7px ${r}`,`0px 10px 13px -6px ${t},0px 21px 33px 3px ${n},0px 8px 40px 7px ${r}`,`0px 10px 14px -6px ${t},0px 22px 35px 3px ${n},0px 8px 42px 7px ${r}`,`0px 11px 14px -7px ${t},0px 23px 36px 3px ${n},0px 9px 44px 8px ${r}`,`0px 11px 15px -7px ${t},0px 24px 38px 3px ${n},0px 9px 46px 8px ${r}`]}function IKt(e){return Ive(e==="light"?$Kt:CKt)}function al(e){return`${e/16}rem`}function pO({sm:e,md:t,lg:n}){return{...e?{"@media (min-width:600px)":{fontSize:al(e)}}:{},...t?{"@media (min-width:900px)":{fontSize:al(t)}}:{},...n?{"@media (min-width:1200px)":{fontSize:al(n)}}:{}}}const Yb={fontFamily:'"Inter", "Public Sans", "Roboto", "Helvetica", "Arial", sans-serif',fontSecondaryFamily:"Public Sans",fontWeightRegular:400,fontWeightMedium:500,fontWeightSemiBold:600,fontWeightBold:700,h1:{fontWeight:800,lineHeight:80/64,fontSize:al(40),...pO({sm:36,md:42,lg:48})},h2:{fontWeight:800,lineHeight:64/48,fontSize:al(32),...pO({sm:32,md:36,lg:40})},h3:{fontWeight:700,lineHeight:1.5,fontSize:al(24),...pO({sm:26,md:30,lg:32})},h4:{fontWeight:700,lineHeight:1.5,fontSize:al(20),...pO({sm:20,md:24,lg:24})},h5:{fontWeight:700,lineHeight:1.5,fontSize:al(18),...pO({sm:19,md:20,lg:20})},h6:{fontWeight:600,lineHeight:28/18,fontSize:al(17),...pO({sm:18,md:18,lg:18})},subtitle1:{fontWeight:600,lineHeight:1.5,fontSize:al(16)},subtitle2:{fontWeight:600,lineHeight:22/14,fontSize:al(14)},body1:{lineHeight:1.5,fontSize:al(16)},body2:{lineHeight:22/14,fontSize:al(14)},caption:{lineHeight:1.5,fontSize:al(12)},overline:{fontWeight:700,lineHeight:1.5,fontSize:al(12),textTransform:"uppercase"},button:{fontWeight:600,lineHeight:24/14,fontSize:al(14),textTransform:"none"}};function RKt(e,t){const[n,r]=F.useState(t);F.useEffect(()=>{const s=PKt(e);s&&r(l=>({...l,...s}))},[e]);const i=F.useCallback(s=>{r(l=>(NKt(e,{...l,...s}),{...l,...s}))},[e]),o=F.useCallback((s,l)=>{i({[s]:l})},[i]),a=F.useCallback(()=>{DKt(e),r(t)},[t,e]);return{state:n,update:o,reset:a}}const PKt=e=>{let t=null;try{const n=window.localStorage.getItem(e);n&&(t=JSON.parse(n))}catch(n){console.error(n)}return t},NKt=(e,t)=>{try{window.localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error(n)}},DKt=e=>{try{window.localStorage.removeItem(e)}catch(t){console.error(t)}},MKt="settings",xW={colorScheme:"light",contrast:"default",navLayout:"vertical",primaryColor:"default",navColor:"integrate",compactLayout:!1},F8e=F.createContext({});function LKt({children:e,defaultSettings:t}){const{state:n,update:r,reset:i}=RKt(MKt,{...xW,...t}),[o,a]=F.useState(!1),s=F.useCallback(()=>{a(f=>!f)},[]),l=F.useCallback(()=>{a(!1)},[]),c=F.useCallback(f=>{console.info("Direction change by language:",f)},[]),u=!G3(n,{...xW,...t}),d=F.useMemo(()=>({...n,onUpdate:r,onChangeDirectionByLang:c,canReset:u,onReset:i,open:o,onToggle:s,onClose:l}),[i,r,n,u,o,l,s,c]);return E.jsx(F8e.Provider,{value:d,children:e})}const jKt=()=>{const e=F.useContext(F8e);if(!e)throw new Error("useSettingsContext must be use inside SettingsProvider");return e};function FKt({children:e}){const t=jKt(),n=AKt(t.contrast==="bold",t.colorScheme),r=F.useMemo(()=>({colorSchemes:vc,shadows:IKt(t.colorScheme),customShadows:SW(t.colorScheme),shape:{borderRadius:t.compactLayout?4:8},components:{...kKt,...n.components},typography:{...Yb,...t.compactLayout&&{h1:{...Yb.h1,fontSize:"2rem"},h2:{...Yb.h2,fontSize:"1.75rem"},h3:{...Yb.h3,fontSize:"1.5rem"},h4:{...Yb.h4,fontSize:"1.25rem"},h5:{...Yb.h5,fontSize:"1.125rem"},h6:{...Yb.h6,fontSize:"1rem"}}},cssVarPrefix:""}),[t.colorScheme,t.contrast,t.compactLayout,n]),i=F.useMemo(()=>{var s,l,c,u,d,f,p,h,m;return{...r,colorSchemes:{...vc,light:{palette:{...(s=vc==null?void 0:vc.light)==null?void 0:s.palette,...WU(t.primaryColor).palette,...(l=n.theme)==null?void 0:l.palette,background:{...(u=(c=vc==null?void 0:vc.light)==null?void 0:c.palette)==null?void 0:u.background,...(f=(d=n.theme)==null?void 0:d.palette)==null?void 0:f.background}}},dark:{palette:{...(p=vc==null?void 0:vc.dark)==null?void 0:p.palette,...WU(t.primaryColor).palette,...t.contrast==="bold"&&{background:{...(m=(h=vc==null?void 0:vc.dark)==null?void 0:h.palette)==null?void 0:m.background,default:"#0a0a0a",paper:"#1a1a1a"}}}}},customShadows:{...SW(t.colorScheme),...WU(t.primaryColor).customShadows},components:{...r.components,...t.compactLayout&&{MuiCard:{styleOverrides:{root:{padding:"12px"}}},MuiButton:{styleOverrides:{root:{minHeight:"32px",padding:"6px 12px"}}},MuiTextField:{styleOverrides:{root:{"& .MuiInputBase-root":{minHeight:"36px"}}}}}}}},[t,r,n]),o=hM(i),a={modeStorageKey:"theme-mode",defaultMode:xW.colorScheme};return E.jsxs(gpt,{theme:o,defaultMode:a.defaultMode,modeStorageKey:a.modeStorageKey,children:[E.jsx(x1t,{}),E.jsx(C4e,{styles:{"*":{"::-webkit-scrollbar":{width:5,height:4}," ::-webkit-scrollbar-track":{background:o.palette.grey[50]},"::-webkit-scrollbar-thumb":{background:o.palette.grey[300],borderRadius:12},"::-webkit-scrollbar-thumb:hover":{background:o.palette.grey[400]}},input:{"&[type=number]":{MozAppearance:"textfield","&::-webkit-outer-spin-button":{margin:0,WebkitAppearance:"none"},"&::-webkit-inner-spin-button":{margin:0,WebkitAppearance:"none"}}},body:{a:{textDecoration:"none",color:"inherit"},...t.compactLayout&&{"& .MuiContainer-root":{paddingTop:"8px !important",paddingBottom:"8px !important"},"& .MuiStack-root":{gap:"8px !important"},"& .MuiBox-root":{padding:"8px"}}}}}),e]})}const Rve=document.getElementById("root");Rve&&GH.createRoot(Rve).render(E.jsx(Te.StrictMode,{children:E.jsx(LKt,{children:E.jsx(FKt,{children:E.jsx(kYt,{})})})}));/**
|
|
5445
5445
|
* @vue/shared v3.5.26
|
|
5446
5446
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5447
5447
|
* @license MIT
|
|
@@ -65,11 +65,11 @@ class RequestContext {
|
|
|
65
65
|
}
|
|
66
66
|
static getJwtTokenPayload() {
|
|
67
67
|
const request = RequestContext.currentRequest();
|
|
68
|
-
if (!request['user']) {
|
|
68
|
+
if (!request?.['user']) {
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
71
|
return {
|
|
72
|
-
id: request['user']
|
|
72
|
+
id: request['user']?.sub,
|
|
73
73
|
...request['user']
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-context.js","sourceRoot":"","sources":["../../../src/lib/request-context/request-context.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAGhD,4EAAyE;AACzE,qCAAiD;AACjD,8DAA4D;AAE5D,MAAa,cAAc;IAEf,MAAM,CAAC,OAAO,GAAG,IAAI,+BAAiB,EAAkB,CAAC;IAExD,EAAE,CAAS;IAEpB,OAAO,CAAU;IAEjB,QAAQ,CAAW;IAEnB,YAAY,OAAgB,EAAE,QAAkB;QAC5C,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,MAAM,CAChB,OAAgB,EAChB,QAAkB,EAClB,IAAgB;QAEhB,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACtD,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAC7C,CAAC;IAEM,MAAM,CAAC,cAAc;QACxB,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;QAChD,OAAO,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,eAAe;QACzB,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAgD;QAClF,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,uCAAkB,CAAC,OAAO,CAAC;YAC5C,GAAG,WAAW;YACd,KAAK,EAAE;gBACH,GAAI,WAAW,EAAE,KAAgB;gBACjC,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,IAAI,IAAA,gBAAM,GAAE;aAC/C;SACJ,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,aAAa;QACvB,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,WAA0C;QACtE,MAAM,MAAM,GAAG,cAAc,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,0BAAY,CAAC,OAAO,CAAC;YACpC,GAAG,WAAW;YACd,KAAK,EAAE;gBACH,GAAG,WAAW,EAAE,KAAK;gBACrB,EAAE,EAAE,MAAM;aACb;SACJ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,kBAAkB;QAC5B,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"request-context.js","sourceRoot":"","sources":["../../../src/lib/request-context/request-context.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAGhD,4EAAyE;AACzE,qCAAiD;AACjD,8DAA4D;AAE5D,MAAa,cAAc;IAEf,MAAM,CAAC,OAAO,GAAG,IAAI,+BAAiB,EAAkB,CAAC;IAExD,EAAE,CAAS;IAEpB,OAAO,CAAU;IAEjB,QAAQ,CAAW;IAEnB,YAAY,OAAgB,EAAE,QAAkB;QAC5C,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,MAAM,CAChB,OAAgB,EAChB,QAAkB,EAClB,IAAgB;QAEhB,MAAM,OAAO,GAAG,IAAI,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACtD,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAC7C,CAAC;IAEM,MAAM,CAAC,cAAc;QACxB,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC;QAChD,OAAO,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1D,CAAC;IAEM,MAAM,CAAC,eAAe;QACzB,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IACnD,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,WAAgD;QAClF,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,uCAAkB,CAAC,OAAO,CAAC;YAC5C,GAAG,WAAW;YACd,KAAK,EAAE;gBACH,GAAI,WAAW,EAAE,KAAgB;gBACjC,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,IAAI,IAAA,gBAAM,GAAE;aAC/C;SACJ,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,aAAa;QACvB,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3C,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,WAA0C;QACtE,MAAM,MAAM,GAAG,cAAc,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,MAAM,IAAI,GAAG,MAAM,0BAAY,CAAC,OAAO,CAAC;YACpC,GAAG,WAAW;YACd,KAAK,EAAE;gBACH,GAAG,WAAW,EAAE,KAAK;gBACrB,EAAE,EAAE,MAAM;aACb;SACJ,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,kBAAkB;QAC5B,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO;YACH,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,GAAG;YACxB,GAAG,OAAO,CAAC,MAAM,CAAC;SACF,CAAC;IACzB,CAAC;IAEM,MAAM,CAAC,cAAc;QACxB,MAAM,OAAO,GAAG,cAAc,CAAC,cAAc,EAAE,CAAC;QAChD,OAAO,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/C,CAAC;IAEM,MAAM,CAAC,aAAa;QACvB,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,aAAa,EAAE;YAChC,SAAS,EAAE,IAAI,CAAC,YAAY,EAAE;YAC9B,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;SAC7B,CAAC;IACN,CAAC;IAEO,MAAM,CAAC,aAAa;QACxB,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,gBAAgB,CAAC;QAC5B,CAAC;QACD,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC;QAC7D,IAAI,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAChC,OAAO,SAAS,CAAC;QACrB,CAAC;aAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACzC,OAAO,KAAK,CAAC;QACjB,CAAC;aAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YACrC,OAAO,OAAO,CAAC;QACnB,CAAC;aAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YACvC,OAAO,SAAS,CAAC;QACrB,CAAC;aAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;YACpE,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAEO,MAAM,CAAC,UAAU;QACrB,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,SAAS,CAAC;QAG7D,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAClE,OAAO,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAChC,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;YAChE,OAAO,QAAQ,CAAC;QACpB,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,MAAM,CAAC;QAClB,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,OAAO,OAAO,CAAC;QACnB,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;YAC/D,OAAO,mBAAmB,CAAC;QAC/B,CAAC;QAED,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9B,OAAO,OAAO,CAAC;QACnB,CAAC;QAED,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAEO,MAAM,CAAC,YAAY;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACtC,IAAI,OAAO,EAAE,CAAC;YACV,OAAO,OAAO,CAAC,EAAE;gBACb,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE;gBAC9C,OAAO,CAAC,UAAU,CAAC,aAAa;gBAChC,SAAS,CAAC;QAClB,CAAC;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;;AAvKL,wCAwKC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ackplus/nest-auth",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.25",
|
|
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": "2.0.0-beta.
|
|
42
|
+
"@ackplus/nest-auth-contracts": "2.0.0-beta.25"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@nestjs/common": "^10 || ^11",
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"class-transformer": "^0.5.1",
|
|
52
52
|
"class-validator": "^0.14.1",
|
|
53
53
|
"express": "^4 || ^5",
|
|
54
|
-
"moment": "^2.29.0",
|
|
55
54
|
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
56
55
|
"rxjs": "^7.8.0",
|
|
57
56
|
"typeorm": "^0.3.21"
|
|
@@ -90,7 +89,6 @@
|
|
|
90
89
|
"express": "^4.21.2",
|
|
91
90
|
"fb": "^2.0.0",
|
|
92
91
|
"google-auth-library": "^9.0.0",
|
|
93
|
-
"moment": "^2.29.0",
|
|
94
92
|
"reflect-metadata": "^0.1.13",
|
|
95
93
|
"rxjs": "^7.8.0",
|
|
96
94
|
"sql.js": "^1.13.0",
|