/** * Airtop Node - Version 1.1 * Discriminator: resource=interaction, operation=click */ interface Credentials { airtopApi: CredentialReference; } /** Execute a click on an element given a description */ export type AirtopV11InteractionClickParams = { resource: 'interaction'; operation: 'click'; /** * The ID of the <a href="https://docs.airtop.ai/guides/how-to/creating-a-session" target="_blank">Session</a> to use * @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 * @default ={{ $json["windowId"] }} */ windowId?: string | Expression | PlaceholderValue; /** * A specific description of the element to execute the interaction on */ elementDescription?: string | Expression | PlaceholderValue; /** * The type of click to perform. Defaults to left click. * @default click */ clickType?: 'click' | 'doubleClick' | 'rightClick' | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Defines the strategy for visual analysis of the current window * @default auto */ visualScope?: 'auto' | 'viewport' | 'page' | 'scan' | Expression; /** The condition to wait for the navigation to complete after an interaction (click, type or hover). Defaults to 'Fully Loaded'. * @default load */ waitForNavigation?: 'load' | 'domcontentloaded' | 'networkidle0' | 'networkidle2' | Expression; }; }; export type AirtopV11InteractionClickOutput = { data?: { modelResponse?: string; }; meta?: { actionId?: string; requestId?: string; status?: string; usage?: { credits?: number; id?: string; }; }; sessionId?: string; warnings?: Array<{ message?: string; }>; windowId?: string; }; export type AirtopV11InteractionClickNode = { type: 'n8n-nodes-base.airtop'; version: 1.1; credentials?: Credentials; config: NodeConfig; output?: Items; };