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 input document */ export type ExecutePolicyWithInputRequestBody = { /** * Arbitrary JSON used within your policies by accessing `input` */ input: components.Input; }; export type ExecutePolicyWithInputRequest = { /** * 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 that the request body is gzip encoded */ contentEncoding?: components.GzipContentEncoding | 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; /** * The input document */ requestBody: ExecutePolicyWithInputRequestBody; }; export type ExecutePolicyWithInputResponse = { 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 ExecutePolicyWithInputRequestBody$inboundSchema: z.ZodType; /** @internal */ export type ExecutePolicyWithInputRequestBody$Outbound = { input: components.Input$Outbound; }; /** @internal */ export declare const ExecutePolicyWithInputRequestBody$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 ExecutePolicyWithInputRequestBody$ { /** @deprecated use `ExecutePolicyWithInputRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputRequestBody$Outbound` instead. */ type Outbound = ExecutePolicyWithInputRequestBody$Outbound; } export declare function executePolicyWithInputRequestBodyToJSON(executePolicyWithInputRequestBody: ExecutePolicyWithInputRequestBody): string; export declare function executePolicyWithInputRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExecutePolicyWithInputRequest$inboundSchema: z.ZodType; /** @internal */ export type ExecutePolicyWithInputRequest$Outbound = { path: string; "Content-Encoding"?: string | undefined; "Accept-Encoding"?: string | undefined; pretty?: boolean | undefined; provenance?: boolean | undefined; explain?: string | undefined; metrics?: boolean | undefined; instrument?: boolean | undefined; "strict-builtin-errors"?: boolean | undefined; RequestBody: ExecutePolicyWithInputRequestBody$Outbound; }; /** @internal */ export declare const ExecutePolicyWithInputRequest$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 ExecutePolicyWithInputRequest$ { /** @deprecated use `ExecutePolicyWithInputRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputRequest$Outbound` instead. */ type Outbound = ExecutePolicyWithInputRequest$Outbound; } export declare function executePolicyWithInputRequestToJSON(executePolicyWithInputRequest: ExecutePolicyWithInputRequest): string; export declare function executePolicyWithInputRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExecutePolicyWithInputResponse$inboundSchema: z.ZodType; /** @internal */ export type ExecutePolicyWithInputResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; SuccessfulPolicyResponse?: components.SuccessfulPolicyResponse$Outbound | undefined; Headers: { [k: string]: Array; }; }; /** @internal */ export declare const ExecutePolicyWithInputResponse$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 ExecutePolicyWithInputResponse$ { /** @deprecated use `ExecutePolicyWithInputResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecutePolicyWithInputResponse$Outbound` instead. */ type Outbound = ExecutePolicyWithInputResponse$Outbound; } export declare function executePolicyWithInputResponseToJSON(executePolicyWithInputResponse: ExecutePolicyWithInputResponse): string; export declare function executePolicyWithInputResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=executepolicywithinput.d.ts.map