import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */ export declare const GetNetworkIpinfoSource: { readonly Commercial: "commercial"; }; /** * 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */ export type GetNetworkIpinfoSource = ClosedEnum; export declare const GetNetworkIpinfoSource$zodSchema: z.ZodEnum<{ commercial: "commercial"; }>; export type GetNetworkIpinfoRequest = { ip: string; source?: GetNetworkIpinfoSource | undefined; }; export declare const GetNetworkIpinfoRequest$zodSchema: z.ZodType; export type GetNetworkIpinfoInternalServerErrorDetails = {}; export declare const GetNetworkIpinfoInternalServerErrorDetails$zodSchema: z.ZodType; /** * 服务器内部错误。IP查询服务可能遇到了问题。 */ export type GetNetworkIpinfoInternalServerErrorResponseBody = { code?: string | undefined; details?: GetNetworkIpinfoInternalServerErrorDetails | undefined; message?: string | undefined; }; export declare const GetNetworkIpinfoInternalServerErrorResponseBody$zodSchema: z.ZodType; export type GetNetworkIpinfoNotFoundDetails = {}; export declare const GetNetworkIpinfoNotFoundDetails$zodSchema: z.ZodType; /** * 信息未找到。这通常意味着你查询的是一个内网IP地址(如 192.168.x.x)或一个未分配的公网IP地址,我们的数据库中没有它的信息。 */ export type GetNetworkIpinfoNotFoundResponseBody = { code?: string | undefined; details?: GetNetworkIpinfoNotFoundDetails | undefined; message?: string | undefined; }; export declare const GetNetworkIpinfoNotFoundResponseBody$zodSchema: z.ZodType; export type GetNetworkIpinfoBadRequestDetails = {}; export declare const GetNetworkIpinfoBadRequestDetails$zodSchema: z.ZodType; /** * IP地址参数无效。请检查 `ip` 参数是否提供,以及它是否是一个合法的公网IP地址。 */ export type GetNetworkIpinfoBadRequestResponseBody = { code?: string | undefined; details?: GetNetworkIpinfoBadRequestDetails | undefined; message?: string | undefined; }; export declare const GetNetworkIpinfoBadRequestResponseBody$zodSchema: z.ZodType; /** * 查询成功!返回该IP地址的详细地理和网络信息。 */ export type GetNetworkIpinfoResponseBody = { ip?: string | undefined; region?: string | undefined; isp?: string | undefined; llc?: string | undefined; asn?: string | undefined; latitude?: number | undefined; longitude?: number | undefined; beginip?: string | undefined; endip?: string | undefined; district?: string | undefined; }; export declare const GetNetworkIpinfoResponseBody$zodSchema: z.ZodType; export type GetNetworkIpinfoResponse = GetNetworkIpinfoResponseBody | GetNetworkIpinfoBadRequestResponseBody | GetNetworkIpinfoNotFoundResponseBody | GetNetworkIpinfoInternalServerErrorResponseBody; export declare const GetNetworkIpinfoResponse$zodSchema: z.ZodType; //# sourceMappingURL=getnetworkipinfoop.d.ts.map