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 batch of inputs */ export type ExecuteBatchPolicyWithInputRequestBody = { inputs: { [k: string]: components.Input; }; }; export type ExecuteBatchPolicyWithInputRequest = { /** * 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 batch of inputs */ requestBody: ExecuteBatchPolicyWithInputRequestBody; }; export type ExecuteBatchPolicyWithInputResponse = { httpMeta: components.HTTPMetadata; /** * All batched policy executions succeeded. * * @remarks * The server also returns 200 if the path refers to an undefined document. In this case, responses will be empty. */ batchSuccessfulPolicyEvaluation?: components.BatchSuccessfulPolicyEvaluation | undefined; /** * Mixed success and failures. */ batchMixedResults?: components.BatchMixedResults | undefined; headers: { [k: string]: Array; }; }; /** @internal */ export declare const ExecuteBatchPolicyWithInputRequestBody$inboundSchema: z.ZodType; /** @internal */ export type ExecuteBatchPolicyWithInputRequestBody$Outbound = { inputs: { [k: string]: components.Input$Outbound; }; }; /** @internal */ export declare const ExecuteBatchPolicyWithInputRequestBody$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 ExecuteBatchPolicyWithInputRequestBody$ { /** @deprecated use `ExecuteBatchPolicyWithInputRequestBody$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputRequestBody$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputRequestBody$Outbound` instead. */ type Outbound = ExecuteBatchPolicyWithInputRequestBody$Outbound; } export declare function executeBatchPolicyWithInputRequestBodyToJSON(executeBatchPolicyWithInputRequestBody: ExecuteBatchPolicyWithInputRequestBody): string; export declare function executeBatchPolicyWithInputRequestBodyFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExecuteBatchPolicyWithInputRequest$inboundSchema: z.ZodType; /** @internal */ export type ExecuteBatchPolicyWithInputRequest$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: ExecuteBatchPolicyWithInputRequestBody$Outbound; }; /** @internal */ export declare const ExecuteBatchPolicyWithInputRequest$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 ExecuteBatchPolicyWithInputRequest$ { /** @deprecated use `ExecuteBatchPolicyWithInputRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputRequest$Outbound` instead. */ type Outbound = ExecuteBatchPolicyWithInputRequest$Outbound; } export declare function executeBatchPolicyWithInputRequestToJSON(executeBatchPolicyWithInputRequest: ExecuteBatchPolicyWithInputRequest): string; export declare function executeBatchPolicyWithInputRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ExecuteBatchPolicyWithInputResponse$inboundSchema: z.ZodType; /** @internal */ export type ExecuteBatchPolicyWithInputResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; BatchSuccessfulPolicyEvaluation?: components.BatchSuccessfulPolicyEvaluation$Outbound | undefined; BatchMixedResults?: components.BatchMixedResults$Outbound | undefined; Headers: { [k: string]: Array; }; }; /** @internal */ export declare const ExecuteBatchPolicyWithInputResponse$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 ExecuteBatchPolicyWithInputResponse$ { /** @deprecated use `ExecuteBatchPolicyWithInputResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `ExecuteBatchPolicyWithInputResponse$Outbound` instead. */ type Outbound = ExecuteBatchPolicyWithInputResponse$Outbound; } export declare function executeBatchPolicyWithInputResponseToJSON(executeBatchPolicyWithInputResponse: ExecuteBatchPolicyWithInputResponse): string; export declare function executeBatchPolicyWithInputResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=executebatchpolicywithinput.d.ts.map