← Files DefuddleARCHIVED FILE

skills/defuddle-web-content/references/source/src/types/extractors.ts

785 Bytes · Oct 5, 2026 · 18:35 UTC

↓ Download file

export interface ConversationMessage {
	author: string;
	content: string;
	timestamp?: string;
	metadata?: {
		role: string;
		[key: string]: string;
	};
}

export interface ConversationMetadata {
	title: string;
	site: string;
	url: string;
	messageCount: number;
	description?: string;
}

export interface Footnote {
	url: string;
	text: string;
}

export interface ExtractorVariables {
	[key: string]: string;
}

export interface ExtractedContent {
	title?: string;
	author?: string;
	published?: string;
	content?: string;
	contentHtml?: string;
	variables?: ExtractorVariables;
}

export interface ExtractorResult {
	content: string;
	contentHtml: string;
	contentSelector?: string;
	extractedContent?: {
		[key: string]: string;
	};
	variables?: {
		[key: string]: string;
	};
} 

SHA-256: 670267bc5c63dfa7b3643ce1ae86a3775427606bf9b36dd10d7387668c12b58e