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 HealthRequest = { /** * Boolean parameter to account for bundle activation status in response. This includes any discovery bundles or bundles defined in the loaded discovery configuration. */ bundles?: boolean | undefined; /** * Boolean parameter to account for plugin status in response. */ plugins?: boolean | undefined; /** * String parameter to exclude a plugin from status checks. Can be added multiple times. Does nothing if plugins is not true. This parameter is useful for special use cases where a plugin depends on the server being fully initialized before it can fully initialize itself. */ excludePlugin?: Array | undefined; }; export type HealthResponse = { httpMeta: components.HTTPMetadata; /** * OPA service is healthy. If the bundles option is specified then all configured bundles have been activated. If the plugins option is specified then all plugins are in an OK state. */ healthyServer?: components.HealthyServer | undefined; }; /** @internal */ export declare const HealthRequest$inboundSchema: z.ZodType; /** @internal */ export type HealthRequest$Outbound = { bundles: boolean; plugins: boolean; "exclude-plugin"?: Array | undefined; }; /** @internal */ export declare const HealthRequest$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 HealthRequest$ { /** @deprecated use `HealthRequest$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `HealthRequest$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `HealthRequest$Outbound` instead. */ type Outbound = HealthRequest$Outbound; } export declare function healthRequestToJSON(healthRequest: HealthRequest): string; export declare function healthRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const HealthResponse$inboundSchema: z.ZodType; /** @internal */ export type HealthResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; HealthyServer?: components.HealthyServer$Outbound | undefined; }; /** @internal */ export declare const HealthResponse$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 HealthResponse$ { /** @deprecated use `HealthResponse$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `HealthResponse$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `HealthResponse$Outbound` instead. */ type Outbound = HealthResponse$Outbound; } export declare function healthResponseToJSON(healthResponse: HealthResponse): string; export declare function healthResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=health.d.ts.map