/** * Airtop Node - Version 1.1 * Discriminator: resource=extraction, operation=scrape */ interface Credentials { airtopApi: CredentialReference; } /** Scrape a page and return the data as markdown */ export type AirtopV11ExtractionScrapeParams = { resource: 'extraction'; operation: 'scrape'; /** * Choose between creating a new session or using an existing one * @default existing */ sessionMode?: 'new' | 'existing' | Expression; /** * The ID of the <a href="https://docs.airtop.ai/guides/how-to/creating-a-session" target="_blank">Session</a> to use * @displayOptions.show { sessionMode: ["existing"] } * @default ={{ $json["sessionId"] }} */ sessionId?: string | Expression | PlaceholderValue; /** * The ID of the <a href="https://docs.airtop.ai/guides/how-to/creating-a-session#windows" target="_blank">Window</a> to use * @displayOptions.show { sessionMode: ["existing"] } * @default ={{ $json["windowId"] }} */ windowId?: string | Expression | PlaceholderValue; /** * URL to load in the window * @displayOptions.show { sessionMode: ["new"] } */ url?: string | Expression | PlaceholderValue; /** * The name of the Airtop profile to load or create * @hint <a href="https://docs.airtop.ai/guides/how-to/saving-a-profile" target="_blank">Learn more</a> about Airtop profiles * @displayOptions.show { sessionMode: ["new"] } */ profileName?: string | Expression | PlaceholderValue; /** * Whether to terminate the session after the operation is complete. When disabled, you must manually terminate the session. By default, idle sessions timeout after 10 minutes * @displayOptions.show { sessionMode: ["new"] } * @default true */ autoTerminateSession?: boolean | Expression; }; export type AirtopV11ExtractionScrapeOutput = { data?: { modelResponse?: { scrapedContent?: { contentType?: string; text?: string; }; title?: string; }; }; meta?: { requestId?: string; status?: string; usage?: { credits?: number; id?: string; }; }; sessionId?: string; windowId?: string; }; export type AirtopV11ExtractionScrapeNode = { type: 'n8n-nodes-base.airtop'; version: 1.1; credentials?: Credentials; config: NodeConfig; output?: Items; };