- 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
54 lines
1.3 KiB
TypeScript
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[];
|
|
};
|