import { Jid } from '../../../types/tags.js'; import { ConnectionState } from '../../../types/webhooks.js'; import '../../../types/messages.js'; interface Setting { id: string; rejectCall: boolean; msgCall: string; groupsIgnore: boolean; alwaysOnline: boolean; readMessages: boolean; readStatus: boolean; syncFullHistory: boolean; wavoipToken: string; createdAt: string; updatedAt: string; instanceId: string; } interface Count { Message: number; Contact: number; Chat: number; } interface InstanceDetails { id: string; name: string; connectionStatus: ConnectionState; ownerJid: Jid; profileName: string; profilePicUrl: string | null; profileStatus?: string; integration: string; number: string | null; businessId: string | null; token: string; clientName: string; disconnectionReasonCode: string | number | null; disconnectionObject: unknown | null; disconnectionAt: string | null; createdAt: string; updatedAt: string; Chatwoot: unknown | null; Proxy: unknown | null; Rabbitmq: unknown | null; Nats: unknown | null; Sqs: unknown | null; Websocket: unknown | null; Setting: Setting | null; _count: Count; } type FetchAllResponse = InstanceDetails[]; interface FetchAllRequest { instanceName?: string; } export type { Count, FetchAllRequest, FetchAllResponse, InstanceDetails, Setting };