- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
62 lines
1.7 KiB
TypeScript
62 lines
1.7 KiB
TypeScript
import { z } from 'zod';
|
|
declare const loginSchema: z.ZodObject<{
|
|
email: z.ZodString;
|
|
password: z.ZodString;
|
|
}, "strip", z.ZodTypeAny, {
|
|
email?: string;
|
|
password?: string;
|
|
}, {
|
|
email?: string;
|
|
password?: string;
|
|
}>;
|
|
declare const registerSchema: z.ZodObject<{
|
|
email: z.ZodString;
|
|
name: z.ZodString;
|
|
password: z.ZodString;
|
|
organizationName: z.ZodOptional<z.ZodString>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
email?: string;
|
|
password?: string;
|
|
name?: string;
|
|
organizationName?: string;
|
|
}, {
|
|
email?: string;
|
|
password?: string;
|
|
name?: string;
|
|
organizationName?: string;
|
|
}>;
|
|
export interface AuthUser {
|
|
id: string;
|
|
email: string;
|
|
name: string;
|
|
memberships: Array<{
|
|
orgId: string;
|
|
role: string;
|
|
organization: {
|
|
name: string;
|
|
plan: string;
|
|
};
|
|
}>;
|
|
}
|
|
export interface AuthResult {
|
|
user: AuthUser;
|
|
token: string;
|
|
}
|
|
export declare class AuthService {
|
|
private readonly JWT_SECRET;
|
|
private readonly JWT_EXPIRES_IN;
|
|
hashPassword(password: string): Promise<string>;
|
|
verifyPassword(hash: string, password: string): Promise<boolean>;
|
|
generateToken(userId: string, email: string): string;
|
|
verifyToken(token: string): {
|
|
userId: string;
|
|
email: string;
|
|
};
|
|
login(data: z.infer<typeof loginSchema>): Promise<AuthResult>;
|
|
register(data: z.infer<typeof registerSchema>): Promise<AuthUser>;
|
|
getUserById(userId: string): Promise<AuthUser | null>;
|
|
hasOrgAccess(userId: string, orgId: string): Promise<boolean>;
|
|
getUserRole(userId: string, orgId: string): Promise<string | null>;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=auth.service.d.ts.map
|