export interface SourceColumnMock { type: string; size: number | null; primary_key: boolean; unique_constraint: boolean; } export interface SourceMetadataMock { tables: Record; }>; } export declare function makeSchemasWire(): { schemas: string[]; }; export declare function makeMetadataWire(schema?: string): { tables: { orders: { cdcReady: boolean; columns: { id: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; customer_id: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; total: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; status: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; created_at: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; }; }; customers: { cdcReady: boolean; columns: { id: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; name: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; email: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; }; }; products: { cdcReady: boolean; columns: { id: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; name: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; description: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; price: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; weight: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; }; }; }; } | { tables: Record; }; /** * Builds a V2 `PipelineSourceSchemaResponse` wire body. * Uses snake_case field names as expected by the SDK inbound schema * (`cdc_ready`, `primary_key`, `unique_constraint`). * * @param schemasFilter - Optional comma-separated schema names to include. * When omitted, all fixture schemas are returned. */ export declare function makeV2SchemasWire(schemasFilter?: string): { schemas: { [k: string]: { tables: { [k: string]: { cdc_ready: boolean; columns: Record; }; }; }; }; }; /** * Builds a V2 `PipelineSourceSchemaResponse` mock body, respecting the same * override priority as the V1 routes: explicit `sourceMetadata` first, * `sourceTableRows` second, fixture data as the default. */ export declare function makeV2SchemasBody(state: { sourceMetadata?: Record; sourceTableRows?: Array<{ name: string; columns?: number; }>; }, schemasFilter?: string): { schemas: { [k: string]: { tables: { [k: string]: { cdc_ready: boolean; columns: Record; }; }; }; }; }; /** * Per-source variant of {@link makeV2SchemasBody}. e2e overrides keep their * existing (source-agnostic) behavior; otherwise the source is resolved to its * default schema so the unfiltered schemas list and the per-schema metadata are * scoped to that one source. */ interface V2SchemasBodyOptions { schemasFilter?: string; sourceType?: string; } export declare function makeV2SchemasBodyForSource(state: { sourceMetadata?: Record; sourceMetadataBySource?: Record>; sourceTableRows?: Array<{ name: string; columns?: number; }>; }, sourceName: string, { schemasFilter, sourceType }?: V2SchemasBodyOptions): { schemas: { [k: string]: { tables: { [k: string]: { cdc_ready: boolean; columns: Record; }; }; }; }; } | { schemas: { [k: string]: { tables: { [k: string]: { cdc_ready: boolean; columns: { CUSTOMER_ID: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; EMAIL: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; IS_ACTIVE: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; CREATED_AT: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; PROFILE: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; } | { EVENT_ID: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; EVENT_TYPE: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; EVENT_DATE: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; EVENT_TIME: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; PAYLOAD: { type: string; size: number; primary_key: boolean; unique_constraint: boolean; }; }; }; }; }; }; }; export {};