UNPKG

n8n

Version:

n8n Workflow Automation Tool

39 lines (38 loc) 2.27 kB
import type { AxiosInstance, AxiosRequestConfig } from 'axios'; import type { MessageEventBusDestinationOptions, MessageEventBusDestinationWebhookParameterItem, MessageEventBusDestinationWebhookParameterOptions, MessageEventBusDestinationWebhookOptions } 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 { 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; axiosRequestOptions?: AxiosRequestConfig; axiosInstance: AxiosInstance; constructor(eventBusInstance: MessageEventBus, options: MessageEventBusDestinationWebhookOptions); private resolveRedirect; private resolveProxy; private buildAgentOptions; private buildAxiosSetting; matchDecryptedCredentialType(credentialType: string): Promise<import("n8n-workflow").ICredentialDataDecryptedObject | null | undefined>; generateAxiosOptions(): Promise<void>; serialize(): MessageEventBusDestinationWebhookOptions; static deserialize(eventBusInstance: MessageEventBus, data: MessageEventBusDestinationOptions): MessageEventBusDestinationWebhook | null; receiveFromEventBus(emitterPayload: MessageWithCallback): Promise<boolean>; }