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.
27 lines (26 loc) • 702 B
TypeScript
export type Assignment = {
[topic: string]: number[];
};
export type MemberAssignment = {
memberId: string;
assignment: Assignment;
};
type SyncGroupRequest = {
groupId: string;
generationId: number;
memberId: string;
groupInstanceId: string | null;
protocolType: string | null;
protocolName: string | null;
assignments: MemberAssignment[];
};
type SyncGroupResponse = {
throttleTimeMs: number;
errorCode: number;
protocolType: string | null;
protocolName: string | null;
assignment: Assignment;
tags: Record<number, Buffer>;
};
export declare const SYNC_GROUP: import("../utils/api").Api<SyncGroupRequest, SyncGroupResponse>;
export {};