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"; export type ExecutePolicyRequest = { /** * 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; /** * If parameter is `true`, response will formatted for humans. */ pretty?: boolean | undefined; /** * If parameter is true, response will include build/version info in addition to the result. */ provenance?: 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; /** * Treat built-in function call errors as fatal and return an error immediately. */ strictBuiltinErrors?: boolean | undefined; }; export type ExecutePolicyResponse = { httpMeta: components.HTTPMetadata; /** * Success. * * @remarks * The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property. */ successfulPolicyResponse?: components.SuccessfulPolicyResponse | undefined; headers: { [k: string]: Array; }; }; /** @internal */ export declare const ExecutePolicyRequest$inboundSchema: z.ZodType; /** @internal */ export type ExecutePolicyRequest$Outbound = { path: string; "Accept-Encoding"?: string | undefined; pretty?: boolean | undefined; provenance?: boolean | undefined; explain?: string | undefined; metrics?: boolean | undefined; instrument?: boolean | undefined; "strict-builtin-errors"?: boolean | undefined; }; /** @internal */ export declare const ExecutePolicyRequest$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 ExecutePolicyRequest$ { /** @deprecated use `ExecutePolicyRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyRequest$Outbound` instead. */ type Outbound = ExecutePolicyRequest$Outbound; } export declare function executePolicyRequestToJSON(executePolicyRequest: ExecutePolicyRequest): string; export declare function executePolicyRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExecutePolicyResponse$inboundSchema: z.ZodType; /** @internal */ export type ExecutePolicyResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; SuccessfulPolicyResponse?: components.SuccessfulPolicyResponse$Outbound | undefined; Headers: { [k: string]: Array; }; }; /** @internal */ export declare const ExecutePolicyResponse$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 ExecutePolicyResponse$ { /** @deprecated use `ExecutePolicyResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyResponse$Outbound` instead. */ type Outbound = ExecutePolicyResponse$Outbound; } export declare function executePolicyResponseToJSON(executePolicyResponse: ExecutePolicyResponse): string; export declare function executePolicyResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=executepolicy.d.ts.map