UNPKG

kafka-ts

Version:

**KafkaTS** is a Apache Kafka client library for Node.js. It provides both a low-level API for communicating directly with the Apache Kafka cluster and high-level APIs for publishing and subscribing to Kafka topics.

41 lines (40 loc) 1.08 kB
type CreateTopicsRequest = { topics: { name: string; numPartitions?: number; replicationFactor?: number; assignments?: { partitionIndex: number; brokerIds: number[]; }[]; configs?: { name: string; value: string | null; }[]; }[]; timeoutMs?: number; validateOnly?: boolean; }; type CreateTopicsResponse = { throttleTimeMs: number; topics: { name: string; _topicId: string; errorCode: number; errorMessage: string | null; _numPartitions: number; _replicationFactor: number; configs: { name: string; value: string | null; readOnly: boolean; configSource: number; isSensitive: boolean; tags: Record<number, Buffer>; }[]; tags: Record<number, Buffer>; }[]; tags: Record<number, Buffer>; }; export declare const CREATE_TOPICS: import("../utils/api").Api<CreateTopicsRequest, CreateTopicsResponse>; export {};