import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { MaskingRule, MaskingRule$Outbound } from "./maskingrule.js"; /** * The partially evaluated result of the query as SQL. */ export type CompileResultSQLResult = { /** * String representing the SQL equivalent of the conditions under which the query is true. */ query?: string | undefined; /** * Column masking functions, where the key is the column name, and the value describes which masking function to use. */ masks?: { [k: string]: { [k: string]: MaskingRule; }; } | undefined; additionalProperties?: { [k: string]: any; }; }; /** * The partially evaluated result of the query, in SQL format. Result will be empty if the query is never true. */ export type CompileResultSQL = { /** * The partially evaluated result of the query as SQL. */ result?: CompileResultSQLResult | undefined; }; /** @internal */ export declare const CompileResultSQLResult$inboundSchema: z.ZodType; /** @internal */ export type CompileResultSQLResult$Outbound = { query?: string | undefined; masks?: { [k: string]: { [k: string]: MaskingRule$Outbound; }; } | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const CompileResultSQLResult$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompileResultSQLResult$ { /** @deprecated use `CompileResultSQLResult$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileResultSQLResult$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileResultSQLResult$Outbound` instead. */ type Outbound = CompileResultSQLResult$Outbound; } export declare function compileResultSQLResultToJSON(compileResultSQLResult: CompileResultSQLResult): string; export declare function compileResultSQLResultFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompileResultSQL$inboundSchema: z.ZodType; /** @internal */ export type CompileResultSQL$Outbound = { result?: CompileResultSQLResult$Outbound | undefined; }; /** @internal */ export declare const CompileResultSQL$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CompileResultSQL$ { /** @deprecated use `CompileResultSQL$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileResultSQL$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileResultSQL$Outbound` instead. */ type Outbound = CompileResultSQL$Outbound; } export declare function compileResultSQLToJSON(compileResultSQL: CompileResultSQL): string; export declare function compileResultSQLFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=compileresultsql.d.ts.map