/** * Respond to Webhook Node - Version 1.3 * Returns data for Webhook */ export interface RespondToWebhookV13Params { /** * The data that should be returned * @default firstIncomingItem */ respondWith?: 'allIncomingItems' | 'binary' | 'firstIncomingItem' | 'json' | 'jwt' | 'noData' | 'redirect' | 'text'; /** * The URL to redirect to * @displayOptions.show { respondWith: ["redirect"] } */ redirectURL?: string | Expression | PlaceholderValue; /** * The HTTP response JSON data * @displayOptions.show { respondWith: ["json", "text"] } */ responseBody?: IDataObject | string | Expression; /** * The payload to include in the JWT token * @displayOptions.show { respondWith: ["jwt"] } */ payload?: IDataObject | string | Expression; /** * Response Data Source * @displayOptions.show { respondWith: ["binary"] } * @default automatically */ responseDataSource?: 'automatically' | 'set' | Expression; /** * The name of the node input field with the binary data * @displayOptions.show { respondWith: ["binary"], responseDataSource: ["set"] } * @default data */ inputFieldName?: string | Expression | PlaceholderValue; options?: { /** The HTTP response code to return. Defaults to 200. * @default 200 */ responseCode?: number | Expression; /** Add headers to the webhook response * @default {} */ responseHeaders?: { /** Entries */ entries?: Array<{ /** Name of the header */ name?: string | Expression | PlaceholderValue; /** Value of the header */ value?: string | Expression | PlaceholderValue; }>; }; /** The name of the response field to put all items in * @displayOptions.show { /respondWith: ["allIncomingItems", "firstIncomingItem"] } */ responseKey?: string | Expression | PlaceholderValue; /** Whether to enable streaming to the response * @displayOptions.show { /respondWith: ["allIncomingItems", "firstIncomingItem", "text", "json", "jwt"] } * @default true */ enableStreaming?: boolean | Expression; }; } export interface RespondToWebhookV13Credentials { jwtAuth: CredentialReference; } interface RespondToWebhookV13NodeBase { type: 'n8n-nodes-base.respondToWebhook'; version: 1.3; credentials?: RespondToWebhookV13Credentials; } export type RespondToWebhookV13ParamsNode = RespondToWebhookV13NodeBase & { config: NodeConfig; }; export type RespondToWebhookV13Node = RespondToWebhookV13ParamsNode;