import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */ export declare const GetNetworkMyipSource: { readonly Commercial: "commercial"; }; /** * 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */ export type GetNetworkMyipSource = ClosedEnum; export declare const GetNetworkMyipSource$zodSchema: z.ZodEnum<{ commercial: "commercial"; }>; export type GetNetworkMyipRequest = { source?: GetNetworkMyipSource | undefined; }; export declare const GetNetworkMyipRequest$zodSchema: z.ZodType; export type GetNetworkMyipInternalServerErrorDetails = {}; export declare const GetNetworkMyipInternalServerErrorDetails$zodSchema: z.ZodType; /** * 服务器内部错误。在查询IP归属地信息时发生错误。 */ export type GetNetworkMyipInternalServerErrorResponseBody = { code?: string | undefined; details?: GetNetworkMyipInternalServerErrorDetails | undefined; message?: string | undefined; }; export declare const GetNetworkMyipInternalServerErrorResponseBody$zodSchema: z.ZodType; export type GetNetworkMyipBadRequestDetails = {}; export declare const GetNetworkMyipBadRequestDetails$zodSchema: z.ZodType; /** * 无法获取有效的客户端IP。这在一些特殊的网络环境下可能发生,例如通过了复杂的代理。 */ export type GetNetworkMyipBadRequestResponseBody = { code?: string | undefined; details?: GetNetworkMyipBadRequestDetails | undefined; message?: string | undefined; }; export declare const GetNetworkMyipBadRequestResponseBody$zodSchema: z.ZodType; /** * 查询成功!返回你的客户端IP的详细信息。 */ export type GetNetworkMyipResponseBody = { 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 GetNetworkMyipResponseBody$zodSchema: z.ZodType; export type GetNetworkMyipResponse = GetNetworkMyipResponseBody | GetNetworkMyipBadRequestResponseBody | GetNetworkMyipInternalServerErrorResponseBody; export declare const GetNetworkMyipResponse$zodSchema: z.ZodType; //# sourceMappingURL=getnetworkmyipop.d.ts.map