n8n-nodes-base
Version:
Base nodes of n8n
35 lines • 1.86 kB
TypeScript
import type { IWebhookFunctions, INodeExecutionData, IDataObject, ICredentialDataDecryptedObject, INode } from 'n8n-workflow';
export type WebhookParameters = {
httpMethod: string | string[];
responseMode: string;
responseData: string;
responseCode?: number;
options?: {
responseData?: string;
responseCode?: {
values?: {
responseCode: number;
customCode?: number;
};
};
noResponseBody?: boolean;
};
};
export declare const getResponseCode: (parameters: WebhookParameters) => number;
export declare const getResponseData: (parameters: WebhookParameters) => string | undefined;
export declare const configuredOutputs: (parameters: WebhookParameters) => {
type: string;
displayName: string;
}[];
export declare const setupOutputConnection: (ctx: IWebhookFunctions, method: string, additionalData: {
jwtPayload?: IDataObject;
}) => (outputData: INodeExecutionData) => INodeExecutionData[][];
export declare const isIpAllowed: (allowlist: string | string[] | undefined, ips: string[], ip?: string) => boolean;
export declare const checkResponseModeConfiguration: (context: IWebhookFunctions) => void;
export declare function validateWebhookAuthentication(ctx: IWebhookFunctions, authPropertyName: string): Promise<IDataObject | undefined>;
export declare function handleFormData(context: IWebhookFunctions, prepareOutput: (data: INodeExecutionData) => INodeExecutionData[][]): Promise<{
workflowData: INodeExecutionData[][];
}>;
export declare function generateFormPostBasicAuthToken(context: IWebhookFunctions, authPropertyName: string): Promise<string | undefined>;
export declare function generateBasicAuthToken(node: INode, credentials: ICredentialDataDecryptedObject | undefined): string | undefined;
//# sourceMappingURL=utils.d.ts.map