import * as z from "zod"; export type GetNetworkPingRequest = { host: string; }; export declare const GetNetworkPingRequest$zodSchema: z.ZodType; /** * 服务繁忙。当服务器 Ping 请求过多时,会触发限流。前端可直接展示 `message` 字段。 * * @remarks * * ```json * { * "code": "SERVICE_BUSY", * "message": "Ping 服务正忙,请稍后再试。" * } * ``` */ export type GetNetworkPingTooManyRequestsResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetNetworkPingTooManyRequestsResponseBody$zodSchema: z.ZodType; /** * 请求失败,参数无效或目标不可达。前端可直接展示 `message` 字段。 * * @remarks * * **可能原因**: * - **无法解析主机**: `host` 参数是一个无效的域名或IP地址。 * ```json * { * "code": "INVALID_PARAMETER", * "message": "无法解析主机 '无效的主机名',请检查输入是否正确。" * } * ``` * - **Ping 超时**: 目标主机无法访问或被防火墙拦截。 * ```json * { * "code": "INVALID_PARAMETER", * "message": "对主机 '目标主机' 的 Ping 请求超时,目标可能不可达或防火墙已拦截。" * } * ``` */ export type GetNetworkPingBadRequestResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetNetworkPingBadRequestResponseBody$zodSchema: z.ZodType; /** * Ping 操作成功!返回延迟统计数据。 */ export type GetNetworkPingResponseBody = { avg?: number | undefined; host?: string | undefined; ip?: string | undefined; location?: string | undefined; max?: number | undefined; min?: number | undefined; }; export declare const GetNetworkPingResponseBody$zodSchema: z.ZodType; export type GetNetworkPingResponse = GetNetworkPingResponseBody | GetNetworkPingBadRequestResponseBody | GetNetworkPingTooManyRequestsResponseBody; export declare const GetNetworkPingResponse$zodSchema: z.ZodType; //# sourceMappingURL=getnetworkpingop.d.ts.map