omninexus-ai / types.ts
aditya9708's picture
Auto-deploy from AI Studio
e4c7604 verified
Raw History Blame Contribute Delete
1.36 kB
export enum AppView {
LANDING = 'LANDING',
EXPLORER = 'EXPLORER',
CREATE = 'CREATE',
TOOL_EXECUTION = 'TOOL_EXECUTION',
DASHBOARD = 'DASHBOARD',
PRICING = 'PRICING',
ADMIN_PANEL = 'ADMIN_PANEL',
ADMIN_LOGIN = 'ADMIN_LOGIN'
}
export interface Tool {
id: string;
name: string;
description: string;
category: 'Text' | 'Image' | 'Video' | 'Voice' | 'Agent';
icon: string;
gradient: string;
author: string;
usageCount: number;
epc?: number; // Earnings per click/run in INR
isUserCreated?: boolean;
isVerified?: boolean;
status?: 'hot' | 'new' | 'stable';
}
export interface ChatMessage {
id: string;
role: 'user' | 'assistant';
text: string;
timestamp: number;
groundingLinks?: Array<{ title: string; uri: string }>;
}
export interface GeneratedImage {
id: string;
url: string;
prompt: string;
timestamp: number;
}
export interface GeneratedVideo {
id: string;
url: string;
prompt: string;
status: 'completed' | 'processing' | 'failed';
timestamp: number;
}
export interface AffiliateStats {
referralCode: string;
totalReferrals: number;
referralEarnings: number;
conversionRate: string;
}
export interface GlobalStats {
totalUsers: number;
activeNodes: number;
totalPlatformRevenue: number;
totalRuns: number;
serverStatus: 'online' | 'under_load' | 'maintenance';
}