/** * Kafka Node - Version 1 * Sends messages to a Kafka topic */ export interface KafkaV1Params { /** * Name of the queue of topic to publish to */ topic?: string | Expression | PlaceholderValue; /** * Whether to send the data the node receives as JSON to Kafka * @default true */ sendInputData?: boolean | Expression; /** * The message to be sent * @displayOptions.show { sendInputData: [false] } */ message?: string | Expression | PlaceholderValue; jsonParameters?: boolean | Expression; /** * Whether to use Confluent Schema Registry * @default false */ useSchemaRegistry?: boolean | Expression; /** * URL of the schema registry * @displayOptions.show { useSchemaRegistry: [true] } */ schemaRegistryUrl?: string | Expression | PlaceholderValue; /** * Whether to use a message key * @default false */ useKey?: boolean | Expression; /** * The message key * @displayOptions.show { useKey: [true] } */ key?: string | Expression | PlaceholderValue; /** * Namespace and Name of Schema in Schema Registry (namespace.name) * @displayOptions.show { useSchemaRegistry: [true] } */ eventName?: string | Expression | PlaceholderValue; /** * Headers * @displayOptions.show { jsonParameters: [false] } * @default {} */ headersUi?: { /** Header */ headerValues?: Array<{ /** Key */ key?: string | Expression | PlaceholderValue; /** Value */ value?: string | Expression | PlaceholderValue; }>; }; /** * Header parameters as JSON (flat object) * @displayOptions.show { jsonParameters: [true] } */ headerParametersJson?: IDataObject | string | Expression; options?: { /** Whether or not producer must wait for acknowledgement from all replicas * @default false */ acks?: boolean | Expression; /** Whether to send the data in a compressed format using the GZIP codec * @default false */ compression?: boolean | Expression; /** The time to await a response in ms * @default 30000 */ timeout?: number | Expression; }; } export interface KafkaV1Credentials { kafka: CredentialReference; } interface KafkaV1NodeBase { type: 'n8n-nodes-base.kafka'; version: 1; credentials?: KafkaV1Credentials; } export type KafkaV1ParamsNode = KafkaV1NodeBase & { config: NodeConfig; }; export type KafkaV1Node = KafkaV1ParamsNode;