import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The query, input, and other settings for partial evaluation. */ export type CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody = { /** * Additional options to use during partial evaluation. Only the disableInlining option is currently supported in OPA. Enterprise OPA may support additional options. */ options?: components.CompileOptions | undefined; /** * The terms to treat as unknown during partial evaluation. */ unknowns?: Array | undefined; /** * Arbitrary JSON used within your policies by accessing `input` */ input?: components.Input | undefined; }; export type CompileQueryWithPartialEvaluationRequest = { /** * The path separator is used to access values inside object and array documents. If the path indexes into an array, the server will attempt to convert the array index to an integer. If the path element cannot be converted to an integer, the server will respond with 404. */ path?: string | undefined; /** * Indicates the server should respond with a gzip encoded body. The server will send the compressed response only if its length is above `server.encoding.gzip.min_length` value. See the configuration section */ acceptEncoding?: components.GzipAcceptEncoding | undefined; /** * Indicates that the request body is gzip encoded */ contentEncoding?: components.GzipContentEncoding | undefined; /** * If parameter is `true`, response will formatted for humans. */ pretty?: boolean | undefined; /** * Return query explanation in addition to result. */ explain?: components.Explain | undefined; /** * Return query performance metrics in addition to result. */ metrics?: boolean | undefined; /** * Instrument query evaluation and return a superset of performance metrics in addition to result. */ instrument?: boolean | undefined; /** * The query, input, and other settings for partial evaluation. */ requestBody: CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody; }; export type CompileQueryWithPartialEvaluationResponse = { httpMeta: components.HTTPMetadata; /** * Successful response */ compileResultJSON?: components.CompileResultJSON | undefined; /** * Successful response */ compileResultMultitarget?: components.CompileResultMultitarget | undefined; /** * Successful response */ compileResultUCAST?: components.CompileResultUCAST | undefined; /** * Successful response */ compileResultSQL?: components.CompileResultSQL | undefined; }; /** @internal */ export declare const CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$inboundSchema: z.ZodType; /** @internal */ export type CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$Outbound = { options?: components.CompileOptions$Outbound | undefined; unknowns?: Array | undefined; input?: components.Input$Outbound | undefined; }; /** @internal */ export declare const CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$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 CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$ { /** @deprecated use `CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$Outbound` instead. */ type Outbound = CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$Outbound; } export declare function compileQueryWithPartialEvaluationRequestApplicationJSONRequestBodyToJSON(compileQueryWithPartialEvaluationRequestApplicationJSONRequestBody: CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody): string; export declare function compileQueryWithPartialEvaluationRequestApplicationJSONRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompileQueryWithPartialEvaluationRequest$inboundSchema: z.ZodType; /** @internal */ export type CompileQueryWithPartialEvaluationRequest$Outbound = { path: string; "Accept-Encoding"?: string | undefined; "Content-Encoding"?: string | undefined; pretty?: boolean | undefined; explain?: string | undefined; metrics?: boolean | undefined; instrument?: boolean | undefined; RequestBody: CompileQueryWithPartialEvaluationRequestApplicationJSONRequestBody$Outbound; }; /** @internal */ export declare const CompileQueryWithPartialEvaluationRequest$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 CompileQueryWithPartialEvaluationRequest$ { /** @deprecated use `CompileQueryWithPartialEvaluationRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationRequest$Outbound` instead. */ type Outbound = CompileQueryWithPartialEvaluationRequest$Outbound; } export declare function compileQueryWithPartialEvaluationRequestToJSON(compileQueryWithPartialEvaluationRequest: CompileQueryWithPartialEvaluationRequest): string; export declare function compileQueryWithPartialEvaluationRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CompileQueryWithPartialEvaluationResponse$inboundSchema: z.ZodType; /** @internal */ export type CompileQueryWithPartialEvaluationResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; CompileResultJSON?: components.CompileResultJSON$Outbound | undefined; CompileResultMultitarget?: components.CompileResultMultitarget$Outbound | undefined; CompileResultUCAST?: components.CompileResultUCAST$Outbound | undefined; CompileResultSQL?: components.CompileResultSQL$Outbound | undefined; }; /** @internal */ export declare const CompileQueryWithPartialEvaluationResponse$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 CompileQueryWithPartialEvaluationResponse$ { /** @deprecated use `CompileQueryWithPartialEvaluationResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CompileQueryWithPartialEvaluationResponse$Outbound` instead. */ type Outbound = CompileQueryWithPartialEvaluationResponse$Outbound; } export declare function compileQueryWithPartialEvaluationResponseToJSON(compileQueryWithPartialEvaluationResponse: CompileQueryWithPartialEvaluationResponse): string; export declare function compileQueryWithPartialEvaluationResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=compilequerywithpartialevaluation.d.ts.map