import { Entity } from "../../../common"; import { Company } from "../../company/entities/company"; /** * AiConnection Entity Type * * One node = one link in a fallback chain. A chain is identified by * `(connectionType, companyId | null)` and ordered by `position`. */ export type AiConnection = Entity & { name: string; connectionType: string; provider: string; position: number; enabled: boolean; model?: string; url?: string; apiKey?: string; region?: string; instance?: string; apiVersion?: string; googleCredentialsBase64?: string; allowFallbacks?: boolean; reasoningEffort?: string; maxOutputTokens?: number; dimensions?: number; inputCostPer1MTokens?: number; outputCostPer1MTokens?: number; cachedInputCostPer1MTokens?: number; costPerMinute?: number; costPerPage?: number; directUrl?: string; language?: string; directFormat?: string; directProvider?: string; /** Computed — id of the CONFIGURES target; absent = global chain. */ companyId?: string; company?: Company; }; /** * AiConnection Entity Descriptor * * Single source of truth for the AiConnection entity configuration. * Auto-generates mapper, serialiser, constraints, and indexes. */ export declare const AiConnectionDescriptor: import("../../../common").EntityDescriptor; export type AiConnectionDescriptorType = typeof AiConnectionDescriptor; //# sourceMappingURL=ai-connection.d.ts.map