n8n-nodes-base
Version:
Base nodes of n8n
37 lines (33 loc) • 1.16 kB
text/typescript
/**
* Airtop Node - Version 1.1
* Discriminator: resource=window, operation=takeScreenshot
*/
interface Credentials {
airtopApi: CredentialReference;
}
/** Take a screenshot of the current window */
export type AirtopV11WindowTakeScreenshotParams = {
resource: 'window';
operation: 'takeScreenshot';
/**
* 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<string> | 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<string> | PlaceholderValue;
/**
* Whether to output the image as a binary file instead of a base64 encoded string
* @default false
*/
outputImageAsBinary?: boolean | Expression<boolean>;
};
export type AirtopV11WindowTakeScreenshotNode = {
type: 'n8n-nodes-base.airtop';
version: 1.1;
credentials?: Credentials;
config: NodeConfig<AirtopV11WindowTakeScreenshotParams>;
};