Files
gt-ai-os-community/packages/utils/dist/validation.d.ts
HackWeasel 310491a557 GT AI OS Community v2.0.33 - Add NVIDIA NIM and Nemotron agents
- Updated python_coding_microproject.csv to use NVIDIA NIM Kimi K2
- Updated kali_linux_shell_simulator.csv to use NVIDIA NIM Kimi K2
  - Made more general-purpose (flexible targets, expanded tools)
- Added nemotron-mini-agent.csv for fast local inference via Ollama
- Added nemotron-agent.csv for advanced reasoning via Ollama
- Added wiki page: Projects for NVIDIA NIMs and Nemotron
2025-12-12 17:47:14 -05:00

54 lines
1.3 KiB
TypeScript

import { TenantCreateRequest, ChatRequest, DocumentUploadRequest } from '@gt2/types';
/**
* Validate email format
*/
export declare function isValidEmail(email: string): boolean;
/**
* Validate domain name format
*/
export declare function isValidDomain(domain: string): boolean;
/**
* Validate password strength
*/
export declare function isValidPassword(password: string): {
valid: boolean;
errors: string[];
};
/**
* Validate tenant creation request
*/
export declare function validateTenantCreateRequest(request: TenantCreateRequest): {
valid: boolean;
errors: string[];
};
/**
* Validate chat request
*/
export declare function validateChatRequest(request: ChatRequest): {
valid: boolean;
errors: string[];
};
/**
* Validate file upload request
*/
export declare function validateDocumentUpload(request: DocumentUploadRequest): {
valid: boolean;
errors: string[];
};
/**
* Sanitize string input to prevent injection attacks
*/
export declare function sanitizeString(input: string): string;
/**
* Validate UUID format
*/
export declare function isValidUUID(uuid: string): boolean;
/**
* Validate pagination parameters
*/
export declare function validatePagination(page?: number, limit?: number): {
page: number;
limit: number;
errors: string[];
};