import * as z from "zod"; import { Result as SafeParseResult } from "../../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Provenance, Provenance$Outbound } from "./provenance.js"; import { Result, Result$Outbound } from "./result.js"; /** * 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. */ export type SuccessfulPolicyResponse = { /** * The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted. */ result?: Result | undefined; /** * If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps. */ metrics?: { [k: string]: any; } | undefined; /** * If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes. */ decisionId?: string | undefined; /** * Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. */ provenance?: Provenance | undefined; }; /** @internal */ export declare const SuccessfulPolicyResponse$inboundSchema: z.ZodType; /** @internal */ export type SuccessfulPolicyResponse$Outbound = { result?: Result$Outbound | undefined; metrics?: { [k: string]: any; } | undefined; decision_id?: string | undefined; provenance?: Provenance$Outbound | undefined; }; /** @internal */ export declare const SuccessfulPolicyResponse$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 SuccessfulPolicyResponse$ { /** @deprecated use `SuccessfulPolicyResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `SuccessfulPolicyResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `SuccessfulPolicyResponse$Outbound` instead. */ type Outbound = SuccessfulPolicyResponse$Outbound; } export declare function successfulPolicyResponseToJSON(successfulPolicyResponse: SuccessfulPolicyResponse): string; export declare function successfulPolicyResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=successfulpolicyresponse.d.ts.map