@tinybirdco/mockingbird
Version:
107 lines • 3.14 kB
TypeScript
import { z } from "zod";
import { Row } from "../types";
import { BaseGenerator } from "./BaseGenerator";
declare const confluentCloudKafkaConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
schema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
type: z.ZodString;
params: z.ZodOptional<z.ZodAny>;
count: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: string;
count?: number | undefined;
params?: any;
}, {
type: string;
count?: number | undefined;
params?: any;
}>>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>, Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>>;
eps: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
logs: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, {
restEndpoint: z.ZodString;
clusterId: z.ZodString;
topic: z.ZodString;
apiKey: z.ZodString;
apiSecret: z.ZodString;
headers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">>;
key: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"BINARY">;
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "BINARY";
data: string;
}, {
type: "BINARY";
data: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"JSON">;
data: z.ZodRecord<z.ZodString, z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "JSON";
data: Record<string, string>;
}, {
type: "JSON";
data: Record<string, string>;
}>]>>;
}>, "strip", z.ZodTypeAny, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
eps: number;
limit: number;
apiKey: string;
restEndpoint: string;
clusterId: string;
topic: string;
apiSecret: string;
logs?: boolean | undefined;
key?: {
type: "BINARY";
data: string;
} | {
type: "JSON";
data: Record<string, string>;
} | undefined;
headers?: Record<string, string>[] | undefined;
}, {
schema: Record<string, {
type: string;
count?: number | undefined;
params?: any;
}>;
apiKey: string;
restEndpoint: string;
clusterId: string;
topic: string;
apiSecret: string;
eps?: number | undefined;
limit?: number | undefined;
logs?: boolean | undefined;
key?: {
type: "BINARY";
data: string;
} | {
type: "JSON";
data: Record<string, string>;
} | undefined;
headers?: Record<string, string>[] | undefined;
}>;
export type ConfluentCloudKafkaConfig = z.infer<typeof confluentCloudKafkaConfigSchema>;
export declare class ConfluentCloudKafkaGenerator extends BaseGenerator<ConfluentCloudKafkaConfig> {
readonly token: string;
constructor(config: ConfluentCloudKafkaConfig);
sendData(rows: Row[]): Promise<void>;
}
export {};
//# sourceMappingURL=ConfluentCloudKafkaGenerator.d.ts.map