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.
36 lines (35 loc) • 902 B
TypeScript
type JoinGroupRequest = {
groupId: string;
sessionTimeoutMs: number;
rebalanceTimeoutMs: number;
memberId: string;
groupInstanceId: string | null;
protocolType: string;
protocols: {
name: string;
metadata: {
version: number;
topics: string[];
};
}[];
reason: string | null;
};
type JoinGroupResponse = {
throttleTimeMs: number;
errorCode: number;
generationId: number;
protocolType: string | null;
protocolName: string | null;
leader: string;
skipAssignment: boolean;
memberId: string;
members: {
memberId: string;
groupInstanceId: string | null;
metadata: Buffer;
tags: Record<number, Buffer>;
}[];
tags: Record<number, Buffer>;
};
export declare const JOIN_GROUP: import("../utils/api").Api<JoinGroupRequest, JoinGroupResponse>;
export {};