n8n
Version:
n8n Workflow Automation Tool
39 lines (38 loc) • 2.34 kB
TypeScript
import type { OutboundHttp } from '@n8n/backend-network';
import type { MessageEventBusDestinationOptions, MessageEventBusDestinationWebhookParameterItem, MessageEventBusDestinationWebhookParameterOptions, MessageEventBusDestinationWebhookOptions, IHttpRequestOptions } from 'n8n-workflow';
import { CredentialsHelper } from '../../../credentials-helper';
import type { MessageEventBus, MessageWithCallback } from '../../../eventbus/message-event-bus/message-event-bus';
import { MessageEventBusDestination } from './message-event-bus-destination.ee';
export declare const isMessageEventBusDestinationWebhookOptions: (candidate: unknown) => candidate is MessageEventBusDestinationWebhookOptions;
export declare class MessageEventBusDestinationWebhook extends MessageEventBusDestination implements MessageEventBusDestinationWebhookOptions {
private readonly outboundHttp;
url: string;
responseCodeMustMatch: boolean;
expectedStatusCode: number;
method: string;
authentication: 'predefinedCredentialType' | 'genericCredentialType' | 'none';
sendQuery: boolean;
sendHeaders: boolean;
genericAuthType: string;
nodeCredentialType: string;
specifyHeaders: string;
specifyQuery: string;
jsonQuery: string;
jsonHeaders: string;
headerParameters: MessageEventBusDestinationWebhookParameterItem;
queryParameters: MessageEventBusDestinationWebhookParameterItem;
options: MessageEventBusDestinationWebhookParameterOptions;
sendPayload: boolean;
credentialsHelper?: CredentialsHelper;
requestOptions?: IHttpRequestOptions;
constructor(eventBusInstance: MessageEventBus, options: MessageEventBusDestinationWebhookOptions, outboundHttp: OutboundHttp);
private resolveRedirect;
private resolveProxy;
private buildAgentOptions;
private buildConnectionOptions;
matchDecryptedCredentialType(credentialType: string): Promise<import("n8n-workflow").ICredentialDataDecryptedObject | null | undefined>;
generateRequestOptions(): Promise<void>;
serialize(): MessageEventBusDestinationWebhookOptions;
static deserialize(eventBusInstance: MessageEventBus, data: MessageEventBusDestinationOptions, outboundHttp: OutboundHttp): MessageEventBusDestinationWebhook | null;
receiveFromEventBus(emitterPayload: MessageWithCallback): Promise<boolean>;
}