2026-04-14-8 auth and commercial

This commit is contained in:
Hamza-Ayed
2026-04-14 20:14:48 +03:00
parent be7dcc2652
commit f5b3f9f790
430 changed files with 6074 additions and 751 deletions
+20
View File
@@ -0,0 +1,20 @@
import { Repository } from 'typeorm';
import { ApiKey } from './entities/api-key.entity';
import { Tenant } from './entities/tenant.entity';
import { RedisService } from '../common/redis.service';
export declare class AuthService {
private readonly apiKeyRepository;
private readonly tenantRepository;
private readonly redisService;
private readonly logger;
constructor(apiKeyRepository: Repository<ApiKey>, tenantRepository: Repository<Tenant>, redisService: RedisService);
validateApiKey(key: string, origin?: string, referer?: string): Promise<{
tenant: Tenant;
apiKey: ApiKey;
rateLimit: number;
}>;
private validateRestrictions;
private isDomainAllowed;
hashSecret(secret: string): string;
seedDefaultKey(name: string, email: string, keyString: string): Promise<void>;
}