55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import type { EnvConfig as BaseEnvConfig } from '@clawd/auth-runtime';
|
|
|
|
/**
|
|
* Query expansion result from LLM or rule-based logic
|
|
*/
|
|
export interface ExpansionResult {
|
|
ok: boolean;
|
|
error: string;
|
|
expandedQueries: string[];
|
|
primaryQuery: string;
|
|
expansionSource: 'llm' | 'rule' | 'raw_query' | '';
|
|
}
|
|
|
|
/**
|
|
* Start workflow response from /ecom/cold-outreach/run-flow
|
|
*/
|
|
export interface WorkflowStartResponse {
|
|
workflowId?: string;
|
|
workflow_id?: string;
|
|
id?: string;
|
|
error?: string;
|
|
message?: string;
|
|
}
|
|
|
|
/**
|
|
* Final output matching output_schema.json
|
|
*/
|
|
export interface OutputResult {
|
|
status: 'success' | 'failed';
|
|
error: string | null;
|
|
inputQuery: string;
|
|
expandedQueries: string[];
|
|
primaryQuery: string;
|
|
expansionStatus: 'success' | 'failed';
|
|
expansionSource: 'llm' | 'rule' | 'raw_query' | '';
|
|
expansionError: string | null;
|
|
usedFallbackQuery: boolean;
|
|
runId: string;
|
|
workflowId: string;
|
|
workflowStatus: string;
|
|
billingReserveStatus: string;
|
|
billingFinalizeStatus: string;
|
|
businessesCount: number;
|
|
contactsCount: number;
|
|
uniqueContactDomains: number;
|
|
}
|
|
|
|
/**
|
|
* Client-finder specific environment configuration
|
|
* Extends the shared auth config with skill-specific fields
|
|
*/
|
|
export interface EnvConfig extends BaseEnvConfig {
|
|
queryExpansionJson: string;
|
|
}
|