import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 返回语言。`zh` 返回中文(默认),`en` 返回英文。城市名翻译覆盖 7000+ 城市。生活指数(`indices`)目前仅支持中文。 */ export declare const Lang: { readonly Zh: "zh"; readonly En: "en"; }; /** * 返回语言。`zh` 返回中文(默认),`en` 返回英文。城市名翻译覆盖 7000+ 城市。生活指数(`indices`)目前仅支持中文。 */ export type Lang = ClosedEnum; export declare const Lang$zodSchema: z.ZodEnum<{ zh: "zh"; en: "en"; }>; export type GetMiscWeatherRequest = { city?: string | undefined; adcode?: string | undefined; extended?: boolean | undefined; forecast?: boolean | undefined; hourly?: boolean | undefined; minutely?: boolean | undefined; indices?: boolean | undefined; lang?: Lang | undefined; }; export declare const GetMiscWeatherRequest$zodSchema: z.ZodType; /** * 天气服务暂时不可用。 */ export type GetMiscWeatherServiceUnavailableResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetMiscWeatherServiceUnavailableResponseBody$zodSchema: z.ZodType; /** * 服务器内部错误。 */ export type GetMiscWeatherInternalServerErrorResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetMiscWeatherInternalServerErrorResponseBody$zodSchema: z.ZodType; /** * 城市未找到。 */ export type GetMiscWeatherNotFoundResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetMiscWeatherNotFoundResponseBody$zodSchema: z.ZodType; /** * 参数无效。常见原因:`adcode` 格式非法、`lang` 非法(仅支持 zh/en)、参数值类型错误或参数组合无效。 */ export type GetMiscWeatherBadRequestResponseBody = { code?: string | undefined; message?: string | undefined; }; export declare const GetMiscWeatherBadRequestResponseBody$zodSchema: z.ZodType; /** * 空气污染物分项数据(extended=true 时返回,部分数据源可能不返回) */ export type AirPollutants = { pm25?: number | undefined; pm10?: number | undefined; o3?: number | undefined; no2?: number | undefined; so2?: number | undefined; co?: number | undefined; }; export declare const AirPollutants$zodSchema: z.ZodType; export type Forecast = { date?: string | undefined; week?: string | undefined; temp_max?: number | undefined; temp_min?: number | undefined; weather_day?: string | undefined; weather_night?: string | undefined; wind_dir_day?: string | undefined; wind_dir_night?: string | undefined; wind_scale_day?: string | undefined; wind_scale_night?: string | undefined; wind_speed_day?: number | undefined; humidity?: number | undefined; precip?: number | undefined; visibility?: number | undefined; uv_index?: number | undefined; sunrise?: string | undefined; sunset?: string | undefined; }; export declare const Forecast$zodSchema: z.ZodType; export type HourlyForecast = { time?: string | undefined; temperature?: number | undefined; weather?: string | undefined; wind_direction?: string | undefined; wind_speed?: number | undefined; wind_scale?: string | undefined; humidity?: number | undefined; precip?: number | undefined; pressure?: number | undefined; cloud?: number | undefined; feels_like?: number | undefined; dew_point?: number | undefined; visibility?: number | undefined; pop?: number | undefined; uv_index?: number | undefined; }; export declare const HourlyForecast$zodSchema: z.ZodType; export type GetMiscWeatherData = { time?: string | undefined; precip?: number | undefined; type?: string | undefined; }; export declare const GetMiscWeatherData$zodSchema: z.ZodType; /** * 分钟级降水预报(minutely=true 时返回,仅国内城市可用) */ export type MinutelyPrecip = { summary?: string | undefined; update_time?: string | undefined; data?: Array | undefined; }; export declare const MinutelyPrecip$zodSchema: z.ZodType; /** * 穿衣指数 */ export type Clothing = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Clothing$zodSchema: z.ZodType; /** * 紫外线指数 */ export type Uv = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Uv$zodSchema: z.ZodType; /** * 洗车指数 */ export type CarWash = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const CarWash$zodSchema: z.ZodType; /** * 晾晒指数 */ export type Drying = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Drying$zodSchema: z.ZodType; /** * 空调开启指数 */ export type AirConditioner = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const AirConditioner$zodSchema: z.ZodType; /** * 感冒指数 */ export type ColdRisk = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const ColdRisk$zodSchema: z.ZodType; /** * 运动指数 */ export type Exercise = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Exercise$zodSchema: z.ZodType; /** * 舒适度指数 */ export type Comfort = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Comfort$zodSchema: z.ZodType; /** * 出行指数 */ export type Travel = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Travel$zodSchema: z.ZodType; /** * 钓鱼指数 */ export type Fishing = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Fishing$zodSchema: z.ZodType; /** * 过敏指数 */ export type Allergy = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Allergy$zodSchema: z.ZodType; /** * 防晒指数 */ export type Sunscreen = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Sunscreen$zodSchema: z.ZodType; /** * 心情指数 */ export type Mood = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Mood$zodSchema: z.ZodType; /** * 啤酒指数 */ export type Beer = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Beer$zodSchema: z.ZodType; /** * 雨伞指数 */ export type Umbrella = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Umbrella$zodSchema: z.ZodType; /** * 交通指数 */ export type Traffic = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Traffic$zodSchema: z.ZodType; /** * 空气净化器指数 */ export type AirPurifier = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const AirPurifier$zodSchema: z.ZodType; /** * 花粉扩散指数 */ export type Pollen = { level?: string | undefined; brief?: string | undefined; advice?: string | undefined; }; export declare const Pollen$zodSchema: z.ZodType; /** * 18项生活指数(indices=true 时返回),每项包含 level(等级名称)、brief(简短描述)、advice(详细建议) */ export type LifeIndices = { clothing?: Clothing | undefined; uv?: Uv | undefined; car_wash?: CarWash | undefined; drying?: Drying | undefined; air_conditioner?: AirConditioner | undefined; cold_risk?: ColdRisk | undefined; exercise?: Exercise | undefined; comfort?: Comfort | undefined; travel?: Travel | undefined; fishing?: Fishing | undefined; allergy?: Allergy | undefined; sunscreen?: Sunscreen | undefined; mood?: Mood | undefined; beer?: Beer | undefined; umbrella?: Umbrella | undefined; traffic?: Traffic | undefined; air_purifier?: AirPurifier | undefined; pollen?: Pollen | undefined; }; export declare const LifeIndices$zodSchema: z.ZodType; /** * 查询成功!返回该地区的实时天气信息。 */ export type GetMiscWeatherResponseBody = { province?: string | undefined; city?: string | undefined; adcode?: string | undefined; weather?: string | undefined; temperature?: number | undefined; wind_direction?: string | undefined; wind_power?: string | undefined; humidity?: number | undefined; report_time?: string | undefined; feels_like?: number | undefined; visibility?: number | undefined; pressure?: number | undefined; uv?: number | undefined; precipitation?: number | undefined; cloud?: number | undefined; aqi?: number | undefined; aqi_level?: number | undefined; aqi_category?: string | undefined; aqi_primary?: string | undefined; air_pollutants?: AirPollutants | undefined; temp_max?: number | undefined; temp_min?: number | undefined; forecast?: Array | undefined; hourly_forecast?: Array | undefined; minutely_precip?: MinutelyPrecip | undefined; life_indices?: LifeIndices | undefined; }; export declare const GetMiscWeatherResponseBody$zodSchema: z.ZodType; export type GetMiscWeatherResponse = GetMiscWeatherResponseBody | GetMiscWeatherBadRequestResponseBody | GetMiscWeatherNotFoundResponseBody | GetMiscWeatherInternalServerErrorResponseBody | GetMiscWeatherServiceUnavailableResponseBody; export declare const GetMiscWeatherResponse$zodSchema: z.ZodType; //# sourceMappingURL=getmiscweatherop.d.ts.map