import type { PhAiToolDescriptor } from "@powerhousedao/shared/document-model"; export interface ConnectorField { name: string; label: string; required: boolean; description?: string; secret: boolean; } export interface ConnectorDetail { connectorId: string; pieceName: string; displayName: string; description: string; version: string; authType: string; /** False for auth kinds the runtime cannot execute yet (OIDC). */ supported: boolean; /** OAUTH2: a person finishes it by signing in from the connection editor. */ signIn?: "oauth2"; fields: ConnectorField[]; actions: string[]; triggers: string[]; } /** * Stage one of connector discovery: the catalog, optionally narrowed to a * case-insensitive substring match on name, display name, or description, * capped at {@link MAX_CONNECTORS}. Full auth/action/trigger detail is * fetched only for the surviving entries (stage two). */ export declare function getConnectors(query?: string): Promise<{ total: number; matches: number; truncated: boolean; connectors: ConnectorDetail[]; }>; export interface ConnectionDetail { id: string; name: string; connectorId: string; authType: string; status: string; accountLabel: string | null; /** Required secret fields with no stored ref, by auth property name. */ missingSecrets: string[]; /** Required config fields with no value, by auth property name. */ missingConfig: string[]; } /** * Every connection document with its credential state compared against the * piece's auth plan. Only field names and opaque refs are surfaced; secret * values never do. */ export declare function getConnections(): Promise<{ connections: ConnectionDetail[]; }>; export declare const getConnectorsTool: PhAiToolDescriptor; export declare const getConnectionsTool: PhAiToolDescriptor; export declare const checkConnectionTool: PhAiToolDescriptor; /** Tool descriptors the host app offers the AI assistant. */ export declare const aiTools: PhAiToolDescriptor[]; //# sourceMappingURL=tools.d.ts.map