@keystrokehq/openweather_api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/delete-weather-station.cjs +16 -0
- package/dist/actions/delete-weather-station.cjs.map +1 -0
- package/dist/actions/delete-weather-station.d.cts +9 -0
- package/dist/actions/delete-weather-station.d.cts.map +1 -0
- package/dist/actions/delete-weather-station.d.mts +9 -0
- package/dist/actions/delete-weather-station.d.mts.map +1 -0
- package/dist/actions/delete-weather-station.mjs +13 -0
- package/dist/actions/delete-weather-station.mjs.map +1 -0
- package/dist/actions/get-air-pollution-current.cjs +42 -0
- package/dist/actions/get-air-pollution-current.cjs.map +1 -0
- package/dist/actions/get-air-pollution-current.d.cts +9 -0
- package/dist/actions/get-air-pollution-current.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-current.d.mts +9 -0
- package/dist/actions/get-air-pollution-current.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-current.mjs +41 -0
- package/dist/actions/get-air-pollution-current.mjs.map +1 -0
- package/dist/actions/get-air-pollution-forecast.cjs +42 -0
- package/dist/actions/get-air-pollution-forecast.cjs.map +1 -0
- package/dist/actions/get-air-pollution-forecast.d.cts +9 -0
- package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-forecast.d.mts +9 -0
- package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-forecast.mjs +41 -0
- package/dist/actions/get-air-pollution-forecast.mjs.map +1 -0
- package/dist/actions/get-air-pollution-history.cjs +40 -0
- package/dist/actions/get-air-pollution-history.cjs.map +1 -0
- package/dist/actions/get-air-pollution-history.d.cts +9 -0
- package/dist/actions/get-air-pollution-history.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-history.d.mts +9 -0
- package/dist/actions/get-air-pollution-history.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-history.mjs +39 -0
- package/dist/actions/get-air-pollution-history.mjs.map +1 -0
- package/dist/actions/get-circle-city-weather.cjs +85 -0
- package/dist/actions/get-circle-city-weather.cjs.map +1 -0
- package/dist/actions/get-circle-city-weather.d.cts +9 -0
- package/dist/actions/get-circle-city-weather.d.cts.map +1 -0
- package/dist/actions/get-circle-city-weather.d.mts +9 -0
- package/dist/actions/get-circle-city-weather.d.mts.map +1 -0
- package/dist/actions/get-circle-city-weather.mjs +84 -0
- package/dist/actions/get-circle-city-weather.mjs.map +1 -0
- package/dist/actions/get-current-weather.cjs +85 -0
- package/dist/actions/get-current-weather.cjs.map +1 -0
- package/dist/actions/get-current-weather.d.cts +9 -0
- package/dist/actions/get-current-weather.d.cts.map +1 -0
- package/dist/actions/get-current-weather.d.mts +9 -0
- package/dist/actions/get-current-weather.d.mts.map +1 -0
- package/dist/actions/get-current-weather.mjs +84 -0
- package/dist/actions/get-current-weather.mjs.map +1 -0
- package/dist/actions/get-geocoding-by-zip.cjs +22 -0
- package/dist/actions/get-geocoding-by-zip.cjs.map +1 -0
- package/dist/actions/get-geocoding-by-zip.d.cts +9 -0
- package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -0
- package/dist/actions/get-geocoding-by-zip.d.mts +9 -0
- package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -0
- package/dist/actions/get-geocoding-by-zip.mjs +19 -0
- package/dist/actions/get-geocoding-by-zip.mjs.map +1 -0
- package/dist/actions/get-geocoding-direct.cjs +19 -0
- package/dist/actions/get-geocoding-direct.cjs.map +1 -0
- package/dist/actions/get-geocoding-direct.d.cts +9 -0
- package/dist/actions/get-geocoding-direct.d.cts.map +1 -0
- package/dist/actions/get-geocoding-direct.d.mts +9 -0
- package/dist/actions/get-geocoding-direct.d.mts.map +1 -0
- package/dist/actions/get-geocoding-direct.mjs +16 -0
- package/dist/actions/get-geocoding-direct.mjs.map +1 -0
- package/dist/actions/get-geocoding-reverse.cjs +20 -0
- package/dist/actions/get-geocoding-reverse.cjs.map +1 -0
- package/dist/actions/get-geocoding-reverse.d.cts +9 -0
- package/dist/actions/get-geocoding-reverse.d.cts.map +1 -0
- package/dist/actions/get-geocoding-reverse.d.mts +9 -0
- package/dist/actions/get-geocoding-reverse.d.mts.map +1 -0
- package/dist/actions/get-geocoding-reverse.mjs +17 -0
- package/dist/actions/get-geocoding-reverse.mjs.map +1 -0
- package/dist/actions/get-station-measurements.cjs +36 -0
- package/dist/actions/get-station-measurements.cjs.map +1 -0
- package/dist/actions/get-station-measurements.d.cts +9 -0
- package/dist/actions/get-station-measurements.d.cts.map +1 -0
- package/dist/actions/get-station-measurements.d.mts +9 -0
- package/dist/actions/get-station-measurements.d.mts.map +1 -0
- package/dist/actions/get-station-measurements.mjs +35 -0
- package/dist/actions/get-station-measurements.mjs.map +1 -0
- package/dist/actions/get-uv-index-forecast.cjs +20 -0
- package/dist/actions/get-uv-index-forecast.cjs.map +1 -0
- package/dist/actions/get-uv-index-forecast.d.cts +9 -0
- package/dist/actions/get-uv-index-forecast.d.cts.map +1 -0
- package/dist/actions/get-uv-index-forecast.d.mts +9 -0
- package/dist/actions/get-uv-index-forecast.d.mts.map +1 -0
- package/dist/actions/get-uv-index-forecast.mjs +17 -0
- package/dist/actions/get-uv-index-forecast.mjs.map +1 -0
- package/dist/actions/get-uv-index-history.cjs +28 -0
- package/dist/actions/get-uv-index-history.cjs.map +1 -0
- package/dist/actions/get-uv-index-history.d.cts +9 -0
- package/dist/actions/get-uv-index-history.d.cts.map +1 -0
- package/dist/actions/get-uv-index-history.d.mts +9 -0
- package/dist/actions/get-uv-index-history.d.mts.map +1 -0
- package/dist/actions/get-uv-index-history.mjs +27 -0
- package/dist/actions/get-uv-index-history.mjs.map +1 -0
- package/dist/actions/get-uv-index.cjs +25 -0
- package/dist/actions/get-uv-index.cjs.map +1 -0
- package/dist/actions/get-uv-index.d.cts +9 -0
- package/dist/actions/get-uv-index.d.cts.map +1 -0
- package/dist/actions/get-uv-index.d.mts +9 -0
- package/dist/actions/get-uv-index.d.mts.map +1 -0
- package/dist/actions/get-uv-index.mjs +22 -0
- package/dist/actions/get-uv-index.mjs.map +1 -0
- package/dist/actions/get-weather-map-tile.cjs +39 -0
- package/dist/actions/get-weather-map-tile.cjs.map +1 -0
- package/dist/actions/get-weather-map-tile.d.cts +9 -0
- package/dist/actions/get-weather-map-tile.d.cts.map +1 -0
- package/dist/actions/get-weather-map-tile.d.mts +9 -0
- package/dist/actions/get-weather-map-tile.d.mts.map +1 -0
- package/dist/actions/get-weather-map-tile.mjs +36 -0
- package/dist/actions/get-weather-map-tile.mjs.map +1 -0
- package/dist/actions/get-weather-station.cjs +26 -0
- package/dist/actions/get-weather-station.cjs.map +1 -0
- package/dist/actions/get-weather-station.d.cts +9 -0
- package/dist/actions/get-weather-station.d.cts.map +1 -0
- package/dist/actions/get-weather-station.d.mts +9 -0
- package/dist/actions/get-weather-station.d.mts.map +1 -0
- package/dist/actions/get-weather-station.mjs +23 -0
- package/dist/actions/get-weather-station.mjs.map +1 -0
- package/dist/actions/get-weather-stations.cjs +27 -0
- package/dist/actions/get-weather-stations.cjs.map +1 -0
- package/dist/actions/get-weather-stations.d.cts +9 -0
- package/dist/actions/get-weather-stations.d.cts.map +1 -0
- package/dist/actions/get-weather-stations.d.mts +9 -0
- package/dist/actions/get-weather-stations.d.mts.map +1 -0
- package/dist/actions/get-weather-stations.mjs +26 -0
- package/dist/actions/get-weather-stations.mjs.map +1 -0
- package/dist/actions/get-weather-triggers.cjs +34 -0
- package/dist/actions/get-weather-triggers.cjs.map +1 -0
- package/dist/actions/get-weather-triggers.d.cts +9 -0
- package/dist/actions/get-weather-triggers.d.cts.map +1 -0
- package/dist/actions/get-weather-triggers.d.mts +9 -0
- package/dist/actions/get-weather-triggers.d.mts.map +1 -0
- package/dist/actions/get-weather-triggers.mjs +33 -0
- package/dist/actions/get-weather-triggers.mjs.map +1 -0
- package/dist/actions/get5-day-forecast.cjs +90 -0
- package/dist/actions/get5-day-forecast.cjs.map +1 -0
- package/dist/actions/get5-day-forecast.d.cts +9 -0
- package/dist/actions/get5-day-forecast.d.cts.map +1 -0
- package/dist/actions/get5-day-forecast.d.mts +9 -0
- package/dist/actions/get5-day-forecast.d.mts.map +1 -0
- package/dist/actions/get5-day-forecast.mjs +89 -0
- package/dist/actions/get5-day-forecast.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/post-add-weather-station.cjs +34 -0
- package/dist/actions/post-add-weather-station.cjs.map +1 -0
- package/dist/actions/post-add-weather-station.d.cts +9 -0
- package/dist/actions/post-add-weather-station.d.cts.map +1 -0
- package/dist/actions/post-add-weather-station.d.mts +9 -0
- package/dist/actions/post-add-weather-station.d.mts.map +1 -0
- package/dist/actions/post-add-weather-station.mjs +31 -0
- package/dist/actions/post-add-weather-station.mjs.map +1 -0
- package/dist/actions/post-submit-station-measurements.cjs +29 -0
- package/dist/actions/post-submit-station-measurements.cjs.map +1 -0
- package/dist/actions/post-submit-station-measurements.d.cts +9 -0
- package/dist/actions/post-submit-station-measurements.d.cts.map +1 -0
- package/dist/actions/post-submit-station-measurements.d.mts +9 -0
- package/dist/actions/post-submit-station-measurements.d.mts.map +1 -0
- package/dist/actions/post-submit-station-measurements.mjs +26 -0
- package/dist/actions/post-submit-station-measurements.mjs.map +1 -0
- package/dist/actions/update-weather-station.cjs +32 -0
- package/dist/actions/update-weather-station.cjs.map +1 -0
- package/dist/actions/update-weather-station.d.cts +9 -0
- package/dist/actions/update-weather-station.d.cts.map +1 -0
- package/dist/actions/update-weather-station.d.mts +9 -0
- package/dist/actions/update-weather-station.d.mts.map +1 -0
- package/dist/actions/update-weather-station.mjs +29 -0
- package/dist/actions/update-weather-station.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get5-day-forecast.ts
|
|
4
|
+
const OpenweatherApiGet5DayForecastInput = z.object({
|
|
5
|
+
q: z.string().describe("City name and optional country code, e.g. 'London,uk'").optional(),
|
|
6
|
+
id: z.number().int().describe("OpenWeatherMap city ID").optional(),
|
|
7
|
+
lat: z.number().describe("Latitude in degrees").optional(),
|
|
8
|
+
lon: z.number().describe("Longitude in degrees").optional(),
|
|
9
|
+
zip: z.string().describe("Zip code with country code, e.g. '94040,us'").optional(),
|
|
10
|
+
lang: z.string().describe("Language code (ISO 639-1)").optional(),
|
|
11
|
+
mode: z.enum([
|
|
12
|
+
"json",
|
|
13
|
+
"xml",
|
|
14
|
+
"html"
|
|
15
|
+
]).describe("Response format").optional(),
|
|
16
|
+
units: z.enum([
|
|
17
|
+
"standard",
|
|
18
|
+
"metric",
|
|
19
|
+
"imperial"
|
|
20
|
+
]).describe("Units of measurement (standard, metric, imperial)").optional()
|
|
21
|
+
}).describe("Specify location and output options for 5-day, 3-hour forecast.");
|
|
22
|
+
const OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({
|
|
23
|
+
lat: z.number().describe("Latitude"),
|
|
24
|
+
lon: z.number().describe("Longitude")
|
|
25
|
+
});
|
|
26
|
+
const OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({
|
|
27
|
+
id: z.number().int().describe("City ID"),
|
|
28
|
+
name: z.string().describe("City name"),
|
|
29
|
+
coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),
|
|
30
|
+
sunset: z.number().int().describe("Sunset time (Unix UTC)"),
|
|
31
|
+
country: z.string().describe("Country code (ISO 3166)"),
|
|
32
|
+
sunrise: z.number().int().describe("Sunrise time (Unix UTC)"),
|
|
33
|
+
timezone: z.number().int().describe("Shift in seconds from UTC")
|
|
34
|
+
});
|
|
35
|
+
const OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({ pod: z.enum(["d", "n"]).describe("Part of day: d=day, n=night") });
|
|
36
|
+
const OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({
|
|
37
|
+
temp: z.number().describe("Temperature"),
|
|
38
|
+
temp_kf: z.number().describe("Temperature variance").nullable().optional(),
|
|
39
|
+
humidity: z.number().int().describe("Humidity percentage"),
|
|
40
|
+
pressure: z.number().int().describe("Atmospheric pressure (hPa)"),
|
|
41
|
+
temp_max: z.number().describe("Maximum temperature at the moment"),
|
|
42
|
+
temp_min: z.number().describe("Minimum temperature at the moment"),
|
|
43
|
+
sea_level: z.number().int().describe("Atmospheric pressure at sea level (hPa)").nullable().optional(),
|
|
44
|
+
feels_like: z.number().describe("Human perception of temperature"),
|
|
45
|
+
grnd_level: z.number().int().describe("Atmospheric pressure at ground level (hPa)").nullable().optional()
|
|
46
|
+
});
|
|
47
|
+
const OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({ "3h": z.number().describe("Volume for last 3 hours") }).describe("Rain or snow volume for last 3 hours");
|
|
48
|
+
const OpenweatherApiGet5DayForecast_WindSchema = z.object({
|
|
49
|
+
deg: z.number().int().describe("Wind direction in degrees"),
|
|
50
|
+
gust: z.number().describe("Wind gust speed").nullable().optional(),
|
|
51
|
+
speed: z.number().describe("Wind speed")
|
|
52
|
+
});
|
|
53
|
+
const OpenweatherApiGet5DayForecast_CloudsSchema = z.object({ all: z.number().int().describe("Cloudiness percentage") });
|
|
54
|
+
const OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({
|
|
55
|
+
id: z.number().int().describe("Weather condition ID"),
|
|
56
|
+
icon: z.string().describe("Weather icon ID"),
|
|
57
|
+
main: z.string().describe("Group of weather parameters"),
|
|
58
|
+
description: z.string().describe("Weather condition within the group")
|
|
59
|
+
});
|
|
60
|
+
const OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({
|
|
61
|
+
dt: z.number().int().describe("Forecast time (Unix UTC)"),
|
|
62
|
+
pop: z.number().describe("Probability of precipitation").nullable().optional(),
|
|
63
|
+
sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),
|
|
64
|
+
main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),
|
|
65
|
+
rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),
|
|
66
|
+
snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),
|
|
67
|
+
wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),
|
|
68
|
+
clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),
|
|
69
|
+
dt_txt: z.string().describe("Forecast time as text"),
|
|
70
|
+
weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),
|
|
71
|
+
visibility: z.number().int().describe("Visibility in meters").nullable().optional()
|
|
72
|
+
});
|
|
73
|
+
const openweatherApiGet5DayForecast = action("OPENWEATHER_API_GET5_DAY_FORECAST", {
|
|
74
|
+
slug: "openweather_api-get5-day-forecast",
|
|
75
|
+
name: "Get 5 Day Forecast",
|
|
76
|
+
description: "Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.",
|
|
77
|
+
input: OpenweatherApiGet5DayForecastInput,
|
|
78
|
+
output: z.object({
|
|
79
|
+
cnt: z.number().int().describe("Number of timestamps returned"),
|
|
80
|
+
cod: z.string().describe("Internal response code"),
|
|
81
|
+
city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),
|
|
82
|
+
list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe("Array of forecast data"),
|
|
83
|
+
message: z.number().describe("Internal parameter")
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
//#endregion
|
|
87
|
+
export { openweatherApiGet5DayForecast };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=get5-day-forecast.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get5-day-forecast.mjs","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lon: z.number().describe(\"Longitude\"),\n});\nconst OpenweatherApiGet5DayForecast_CityInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"City ID\"),\n name: z.string().describe(\"City name\"),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\"),\n country: z.string().describe(\"Country code (ISO 3166)\"),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\"),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\"),\n});\nconst OpenweatherApiGet5DayForecast_SysInfoSchema: z.ZodTypeAny = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema: z.ZodTypeAny = z.object({\n temp: z.number().describe(\"Temperature\"),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\"),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\"),\n temp_max: z.number().describe(\"Maximum temperature at the moment\"),\n temp_min: z.number().describe(\"Minimum temperature at the moment\"),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\"),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema: z.ZodTypeAny = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\"),\n}).describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema: z.ZodTypeAny = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\"),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\"),\n});\nconst OpenweatherApiGet5DayForecast_CloudsSchema: z.ZodTypeAny = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\"),\n});\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Weather condition ID\"),\n icon: z.string().describe(\"Weather icon ID\"),\n main: z.string().describe(\"Group of weather parameters\"),\n description: z.string().describe(\"Weather condition within the group\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\"),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\"),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\nexport const OpenweatherApiGet5DayForecastOutput: z.ZodTypeAny = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\"),\n cod: z.string().describe(\"Internal response code\"),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\"),\n});\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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AC,CAAC,SAAS,wBAAwB;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_delete_weather_station = require("./delete-weather-station.cjs");
|
|
3
|
+
const require_get_air_pollution_current = require("./get-air-pollution-current.cjs");
|
|
4
|
+
const require_get_air_pollution_forecast = require("./get-air-pollution-forecast.cjs");
|
|
5
|
+
const require_get_air_pollution_history = require("./get-air-pollution-history.cjs");
|
|
6
|
+
const require_get_circle_city_weather = require("./get-circle-city-weather.cjs");
|
|
7
|
+
const require_get_current_weather = require("./get-current-weather.cjs");
|
|
8
|
+
const require_get_geocoding_by_zip = require("./get-geocoding-by-zip.cjs");
|
|
9
|
+
const require_get_geocoding_direct = require("./get-geocoding-direct.cjs");
|
|
10
|
+
const require_get_geocoding_reverse = require("./get-geocoding-reverse.cjs");
|
|
11
|
+
const require_get_station_measurements = require("./get-station-measurements.cjs");
|
|
12
|
+
const require_get_uv_index = require("./get-uv-index.cjs");
|
|
13
|
+
const require_get_uv_index_forecast = require("./get-uv-index-forecast.cjs");
|
|
14
|
+
const require_get_uv_index_history = require("./get-uv-index-history.cjs");
|
|
15
|
+
const require_get_weather_map_tile = require("./get-weather-map-tile.cjs");
|
|
16
|
+
const require_get_weather_station = require("./get-weather-station.cjs");
|
|
17
|
+
const require_get_weather_stations = require("./get-weather-stations.cjs");
|
|
18
|
+
const require_get_weather_triggers = require("./get-weather-triggers.cjs");
|
|
19
|
+
const require_get5_day_forecast = require("./get5-day-forecast.cjs");
|
|
20
|
+
const require_post_add_weather_station = require("./post-add-weather-station.cjs");
|
|
21
|
+
const require_post_submit_station_measurements = require("./post-submit-station-measurements.cjs");
|
|
22
|
+
const require_update_weather_station = require("./update-weather-station.cjs");
|
|
23
|
+
exports.openweatherApiDeleteWeatherStation = require_delete_weather_station.openweatherApiDeleteWeatherStation;
|
|
24
|
+
exports.openweatherApiGet5DayForecast = require_get5_day_forecast.openweatherApiGet5DayForecast;
|
|
25
|
+
exports.openweatherApiGetAirPollutionCurrent = require_get_air_pollution_current.openweatherApiGetAirPollutionCurrent;
|
|
26
|
+
exports.openweatherApiGetAirPollutionForecast = require_get_air_pollution_forecast.openweatherApiGetAirPollutionForecast;
|
|
27
|
+
exports.openweatherApiGetAirPollutionHistory = require_get_air_pollution_history.openweatherApiGetAirPollutionHistory;
|
|
28
|
+
exports.openweatherApiGetCircleCityWeather = require_get_circle_city_weather.openweatherApiGetCircleCityWeather;
|
|
29
|
+
exports.openweatherApiGetCurrentWeather = require_get_current_weather.openweatherApiGetCurrentWeather;
|
|
30
|
+
exports.openweatherApiGetGeocodingByZip = require_get_geocoding_by_zip.openweatherApiGetGeocodingByZip;
|
|
31
|
+
exports.openweatherApiGetGeocodingDirect = require_get_geocoding_direct.openweatherApiGetGeocodingDirect;
|
|
32
|
+
exports.openweatherApiGetGeocodingReverse = require_get_geocoding_reverse.openweatherApiGetGeocodingReverse;
|
|
33
|
+
exports.openweatherApiGetStationMeasurements = require_get_station_measurements.openweatherApiGetStationMeasurements;
|
|
34
|
+
exports.openweatherApiGetUvIndex = require_get_uv_index.openweatherApiGetUvIndex;
|
|
35
|
+
exports.openweatherApiGetUvIndexForecast = require_get_uv_index_forecast.openweatherApiGetUvIndexForecast;
|
|
36
|
+
exports.openweatherApiGetUvIndexHistory = require_get_uv_index_history.openweatherApiGetUvIndexHistory;
|
|
37
|
+
exports.openweatherApiGetWeatherMapTile = require_get_weather_map_tile.openweatherApiGetWeatherMapTile;
|
|
38
|
+
exports.openweatherApiGetWeatherStation = require_get_weather_station.openweatherApiGetWeatherStation;
|
|
39
|
+
exports.openweatherApiGetWeatherStations = require_get_weather_stations.openweatherApiGetWeatherStations;
|
|
40
|
+
exports.openweatherApiGetWeatherTriggers = require_get_weather_triggers.openweatherApiGetWeatherTriggers;
|
|
41
|
+
exports.openweatherApiPostAddWeatherStation = require_post_add_weather_station.openweatherApiPostAddWeatherStation;
|
|
42
|
+
exports.openweatherApiPostSubmitStationMeasurements = require_post_submit_station_measurements.openweatherApiPostSubmitStationMeasurements;
|
|
43
|
+
exports.openweatherApiUpdateWeatherStation = require_update_weather_station.openweatherApiUpdateWeatherStation;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { openweatherApiDeleteWeatherStation } from "./delete-weather-station.cjs";
|
|
2
|
+
import { openweatherApiGetAirPollutionCurrent } from "./get-air-pollution-current.cjs";
|
|
3
|
+
import { openweatherApiGetAirPollutionForecast } from "./get-air-pollution-forecast.cjs";
|
|
4
|
+
import { openweatherApiGetAirPollutionHistory } from "./get-air-pollution-history.cjs";
|
|
5
|
+
import { openweatherApiGetCircleCityWeather } from "./get-circle-city-weather.cjs";
|
|
6
|
+
import { openweatherApiGetCurrentWeather } from "./get-current-weather.cjs";
|
|
7
|
+
import { openweatherApiGetGeocodingByZip } from "./get-geocoding-by-zip.cjs";
|
|
8
|
+
import { openweatherApiGetGeocodingDirect } from "./get-geocoding-direct.cjs";
|
|
9
|
+
import { openweatherApiGetGeocodingReverse } from "./get-geocoding-reverse.cjs";
|
|
10
|
+
import { openweatherApiGetStationMeasurements } from "./get-station-measurements.cjs";
|
|
11
|
+
import { openweatherApiGetUvIndex } from "./get-uv-index.cjs";
|
|
12
|
+
import { openweatherApiGetUvIndexForecast } from "./get-uv-index-forecast.cjs";
|
|
13
|
+
import { openweatherApiGetUvIndexHistory } from "./get-uv-index-history.cjs";
|
|
14
|
+
import { openweatherApiGetWeatherMapTile } from "./get-weather-map-tile.cjs";
|
|
15
|
+
import { openweatherApiGetWeatherStation } from "./get-weather-station.cjs";
|
|
16
|
+
import { openweatherApiGetWeatherStations } from "./get-weather-stations.cjs";
|
|
17
|
+
import { openweatherApiGetWeatherTriggers } from "./get-weather-triggers.cjs";
|
|
18
|
+
import { openweatherApiGet5DayForecast } from "./get5-day-forecast.cjs";
|
|
19
|
+
import { openweatherApiPostAddWeatherStation } from "./post-add-weather-station.cjs";
|
|
20
|
+
import { openweatherApiPostSubmitStationMeasurements } from "./post-submit-station-measurements.cjs";
|
|
21
|
+
import { openweatherApiUpdateWeatherStation } from "./update-weather-station.cjs";
|
|
22
|
+
export { openweatherApiDeleteWeatherStation, openweatherApiGet5DayForecast, openweatherApiGetAirPollutionCurrent, openweatherApiGetAirPollutionForecast, openweatherApiGetAirPollutionHistory, openweatherApiGetCircleCityWeather, openweatherApiGetCurrentWeather, openweatherApiGetGeocodingByZip, openweatherApiGetGeocodingDirect, openweatherApiGetGeocodingReverse, openweatherApiGetStationMeasurements, openweatherApiGetUvIndex, openweatherApiGetUvIndexForecast, openweatherApiGetUvIndexHistory, openweatherApiGetWeatherMapTile, openweatherApiGetWeatherStation, openweatherApiGetWeatherStations, openweatherApiGetWeatherTriggers, openweatherApiPostAddWeatherStation, openweatherApiPostSubmitStationMeasurements, openweatherApiUpdateWeatherStation };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { openweatherApiDeleteWeatherStation } from "./delete-weather-station.mjs";
|
|
2
|
+
import { openweatherApiGetAirPollutionCurrent } from "./get-air-pollution-current.mjs";
|
|
3
|
+
import { openweatherApiGetAirPollutionForecast } from "./get-air-pollution-forecast.mjs";
|
|
4
|
+
import { openweatherApiGetAirPollutionHistory } from "./get-air-pollution-history.mjs";
|
|
5
|
+
import { openweatherApiGetCircleCityWeather } from "./get-circle-city-weather.mjs";
|
|
6
|
+
import { openweatherApiGetCurrentWeather } from "./get-current-weather.mjs";
|
|
7
|
+
import { openweatherApiGetGeocodingByZip } from "./get-geocoding-by-zip.mjs";
|
|
8
|
+
import { openweatherApiGetGeocodingDirect } from "./get-geocoding-direct.mjs";
|
|
9
|
+
import { openweatherApiGetGeocodingReverse } from "./get-geocoding-reverse.mjs";
|
|
10
|
+
import { openweatherApiGetStationMeasurements } from "./get-station-measurements.mjs";
|
|
11
|
+
import { openweatherApiGetUvIndex } from "./get-uv-index.mjs";
|
|
12
|
+
import { openweatherApiGetUvIndexForecast } from "./get-uv-index-forecast.mjs";
|
|
13
|
+
import { openweatherApiGetUvIndexHistory } from "./get-uv-index-history.mjs";
|
|
14
|
+
import { openweatherApiGetWeatherMapTile } from "./get-weather-map-tile.mjs";
|
|
15
|
+
import { openweatherApiGetWeatherStation } from "./get-weather-station.mjs";
|
|
16
|
+
import { openweatherApiGetWeatherStations } from "./get-weather-stations.mjs";
|
|
17
|
+
import { openweatherApiGetWeatherTriggers } from "./get-weather-triggers.mjs";
|
|
18
|
+
import { openweatherApiGet5DayForecast } from "./get5-day-forecast.mjs";
|
|
19
|
+
import { openweatherApiPostAddWeatherStation } from "./post-add-weather-station.mjs";
|
|
20
|
+
import { openweatherApiPostSubmitStationMeasurements } from "./post-submit-station-measurements.mjs";
|
|
21
|
+
import { openweatherApiUpdateWeatherStation } from "./update-weather-station.mjs";
|
|
22
|
+
export { openweatherApiDeleteWeatherStation, openweatherApiGet5DayForecast, openweatherApiGetAirPollutionCurrent, openweatherApiGetAirPollutionForecast, openweatherApiGetAirPollutionHistory, openweatherApiGetCircleCityWeather, openweatherApiGetCurrentWeather, openweatherApiGetGeocodingByZip, openweatherApiGetGeocodingDirect, openweatherApiGetGeocodingReverse, openweatherApiGetStationMeasurements, openweatherApiGetUvIndex, openweatherApiGetUvIndexForecast, openweatherApiGetUvIndexHistory, openweatherApiGetWeatherMapTile, openweatherApiGetWeatherStation, openweatherApiGetWeatherStations, openweatherApiGetWeatherTriggers, openweatherApiPostAddWeatherStation, openweatherApiPostSubmitStationMeasurements, openweatherApiUpdateWeatherStation };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { openweatherApiDeleteWeatherStation } from "./delete-weather-station.mjs";
|
|
2
|
+
import { openweatherApiGetAirPollutionCurrent } from "./get-air-pollution-current.mjs";
|
|
3
|
+
import { openweatherApiGetAirPollutionForecast } from "./get-air-pollution-forecast.mjs";
|
|
4
|
+
import { openweatherApiGetAirPollutionHistory } from "./get-air-pollution-history.mjs";
|
|
5
|
+
import { openweatherApiGetCircleCityWeather } from "./get-circle-city-weather.mjs";
|
|
6
|
+
import { openweatherApiGetCurrentWeather } from "./get-current-weather.mjs";
|
|
7
|
+
import { openweatherApiGetGeocodingByZip } from "./get-geocoding-by-zip.mjs";
|
|
8
|
+
import { openweatherApiGetGeocodingDirect } from "./get-geocoding-direct.mjs";
|
|
9
|
+
import { openweatherApiGetGeocodingReverse } from "./get-geocoding-reverse.mjs";
|
|
10
|
+
import { openweatherApiGetStationMeasurements } from "./get-station-measurements.mjs";
|
|
11
|
+
import { openweatherApiGetUvIndex } from "./get-uv-index.mjs";
|
|
12
|
+
import { openweatherApiGetUvIndexForecast } from "./get-uv-index-forecast.mjs";
|
|
13
|
+
import { openweatherApiGetUvIndexHistory } from "./get-uv-index-history.mjs";
|
|
14
|
+
import { openweatherApiGetWeatherMapTile } from "./get-weather-map-tile.mjs";
|
|
15
|
+
import { openweatherApiGetWeatherStation } from "./get-weather-station.mjs";
|
|
16
|
+
import { openweatherApiGetWeatherStations } from "./get-weather-stations.mjs";
|
|
17
|
+
import { openweatherApiGetWeatherTriggers } from "./get-weather-triggers.mjs";
|
|
18
|
+
import { openweatherApiGet5DayForecast } from "./get5-day-forecast.mjs";
|
|
19
|
+
import { openweatherApiPostAddWeatherStation } from "./post-add-weather-station.mjs";
|
|
20
|
+
import { openweatherApiPostSubmitStationMeasurements } from "./post-submit-station-measurements.mjs";
|
|
21
|
+
import { openweatherApiUpdateWeatherStation } from "./update-weather-station.mjs";
|
|
22
|
+
export { openweatherApiDeleteWeatherStation, openweatherApiGet5DayForecast, openweatherApiGetAirPollutionCurrent, openweatherApiGetAirPollutionForecast, openweatherApiGetAirPollutionHistory, openweatherApiGetCircleCityWeather, openweatherApiGetCurrentWeather, openweatherApiGetGeocodingByZip, openweatherApiGetGeocodingDirect, openweatherApiGetGeocodingReverse, openweatherApiGetStationMeasurements, openweatherApiGetUvIndex, openweatherApiGetUvIndexForecast, openweatherApiGetUvIndexHistory, openweatherApiGetWeatherMapTile, openweatherApiGetWeatherStation, openweatherApiGetWeatherStations, openweatherApiGetWeatherTriggers, openweatherApiPostAddWeatherStation, openweatherApiPostSubmitStationMeasurements, openweatherApiUpdateWeatherStation };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/post-add-weather-station.ts
|
|
4
|
+
const OpenweatherApiPostAddWeatherStationInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Station name"),
|
|
6
|
+
altitude: zod.z.number().describe("Station altitude in meters above sea level"),
|
|
7
|
+
latitude: zod.z.number().describe("Station latitude, range -90 to 90 degrees"),
|
|
8
|
+
longitude: zod.z.number().describe("Station longitude, range -180 to 180 degrees"),
|
|
9
|
+
external_id: zod.z.string().describe("External station ID (your own reference)")
|
|
10
|
+
}).describe("Request parameters to add a new weather station. Provide external_id, name, geographic coordinates, and altitude.");
|
|
11
|
+
const OpenweatherApiPostAddWeatherStationOutput = zod.z.object({
|
|
12
|
+
ID: zod.z.string().describe("Internal OpenWeather station ID"),
|
|
13
|
+
name: zod.z.string().describe("Station name"),
|
|
14
|
+
rank: zod.z.number().int().describe("Station rank").nullable().optional(),
|
|
15
|
+
user_id: zod.z.string().describe("User ID that owns the station").nullable().optional(),
|
|
16
|
+
altitude: zod.z.number().describe("Station altitude in meters"),
|
|
17
|
+
latitude: zod.z.number().describe("Station latitude"),
|
|
18
|
+
longitude: zod.z.number().describe("Station longitude"),
|
|
19
|
+
created_at: zod.z.string().describe("ISO datetime when station was created"),
|
|
20
|
+
updated_at: zod.z.string().describe("ISO datetime when station was last updated").nullable().optional(),
|
|
21
|
+
external_id: zod.z.string().describe("Provided external station ID"),
|
|
22
|
+
source_type: zod.z.number().int().describe("Source type identifier").nullable().optional()
|
|
23
|
+
}).describe("Response schema for added weather station.");
|
|
24
|
+
const openweatherApiPostAddWeatherStation = require_action.action("OPENWEATHER_API_POST_ADD_WEATHER_STATION", {
|
|
25
|
+
slug: "openweather_api-post-add-weather-station",
|
|
26
|
+
name: "Add Weather Station",
|
|
27
|
+
description: "Tool to add a new weather station to your account. Use when you need to register a station before sending custom data.",
|
|
28
|
+
input: OpenweatherApiPostAddWeatherStationInput,
|
|
29
|
+
output: OpenweatherApiPostAddWeatherStationOutput
|
|
30
|
+
});
|
|
31
|
+
//#endregion
|
|
32
|
+
exports.openweatherApiPostAddWeatherStation = openweatherApiPostAddWeatherStation;
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=post-add-weather-station.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/post-add-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiPostAddWeatherStationInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Station name\"),\n altitude: z.number().describe(\"Station altitude in meters above sea level\"),\n latitude: z.number().describe(\"Station latitude, range -90 to 90 degrees\"),\n longitude: z.number().describe(\"Station longitude, range -180 to 180 degrees\"),\n external_id: z.string().describe(\"External station ID (your own reference)\"),\n}).describe(\"Request parameters to add a new weather station. Provide external_id, name, geographic coordinates, and altitude.\");\nexport const OpenweatherApiPostAddWeatherStationOutput: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\"),\n name: z.string().describe(\"Station name\"),\n rank: z.number().int().describe(\"Station rank\").nullable().optional(),\n user_id: z.string().describe(\"User ID that owns the station\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude in meters\"),\n latitude: z.number().describe(\"Station latitude\"),\n longitude: z.number().describe(\"Station longitude\"),\n created_at: z.string().describe(\"ISO datetime when station was created\"),\n updated_at: z.string().describe(\"ISO datetime when station was last updated\").nullable().optional(),\n external_id: z.string().describe(\"Provided external station ID\"),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).describe(\"Response schema for added weather station.\");\n\nexport const openweatherApiPostAddWeatherStation = action(\"OPENWEATHER_API_POST_ADD_WEATHER_STATION\", {\n slug: \"openweather_api-post-add-weather-station\",\n name: \"Add Weather Station\",\n description: \"Tool to add a new weather station to your account. Use when you need to register a station before sending custom data.\",\n input: OpenweatherApiPostAddWeatherStationInput,\n output: OpenweatherApiPostAddWeatherStationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAC7E,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAC/H,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;CACxC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC1D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAChD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAClD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-add-weather-station.d.ts
|
|
4
|
+
declare const OpenweatherApiPostAddWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiPostAddWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiPostAddWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiPostAddWeatherStation };
|
|
9
|
+
//# sourceMappingURL=post-add-weather-station.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.d.cts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAMuE;AAAA,cACnH,yCAAA,EAA2C,CAAA,CAAE,UAYD;AAAA,cAE5C,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-add-weather-station.d.ts
|
|
4
|
+
declare const OpenweatherApiPostAddWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiPostAddWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiPostAddWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiPostAddWeatherStation };
|
|
9
|
+
//# sourceMappingURL=post-add-weather-station.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.d.mts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAMuE;AAAA,cACnH,yCAAA,EAA2C,CAAA,CAAE,UAYD;AAAA,cAE5C,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const openweatherApiPostAddWeatherStation = action("OPENWEATHER_API_POST_ADD_WEATHER_STATION", {
|
|
4
|
+
slug: "openweather_api-post-add-weather-station",
|
|
5
|
+
name: "Add Weather Station",
|
|
6
|
+
description: "Tool to add a new weather station to your account. Use when you need to register a station before sending custom data.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Station name"),
|
|
9
|
+
altitude: z.number().describe("Station altitude in meters above sea level"),
|
|
10
|
+
latitude: z.number().describe("Station latitude, range -90 to 90 degrees"),
|
|
11
|
+
longitude: z.number().describe("Station longitude, range -180 to 180 degrees"),
|
|
12
|
+
external_id: z.string().describe("External station ID (your own reference)")
|
|
13
|
+
}).describe("Request parameters to add a new weather station. Provide external_id, name, geographic coordinates, and altitude."),
|
|
14
|
+
output: z.object({
|
|
15
|
+
ID: z.string().describe("Internal OpenWeather station ID"),
|
|
16
|
+
name: z.string().describe("Station name"),
|
|
17
|
+
rank: z.number().int().describe("Station rank").nullable().optional(),
|
|
18
|
+
user_id: z.string().describe("User ID that owns the station").nullable().optional(),
|
|
19
|
+
altitude: z.number().describe("Station altitude in meters"),
|
|
20
|
+
latitude: z.number().describe("Station latitude"),
|
|
21
|
+
longitude: z.number().describe("Station longitude"),
|
|
22
|
+
created_at: z.string().describe("ISO datetime when station was created"),
|
|
23
|
+
updated_at: z.string().describe("ISO datetime when station was last updated").nullable().optional(),
|
|
24
|
+
external_id: z.string().describe("Provided external station ID"),
|
|
25
|
+
source_type: z.number().int().describe("Source type identifier").nullable().optional()
|
|
26
|
+
}).describe("Response schema for added weather station.")
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { openweatherApiPostAddWeatherStation };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=post-add-weather-station.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.mjs","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiPostAddWeatherStationInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Station name\"),\n altitude: z.number().describe(\"Station altitude in meters above sea level\"),\n latitude: z.number().describe(\"Station latitude, range -90 to 90 degrees\"),\n longitude: z.number().describe(\"Station longitude, range -180 to 180 degrees\"),\n external_id: z.string().describe(\"External station ID (your own reference)\"),\n}).describe(\"Request parameters to add a new weather station. Provide external_id, name, geographic coordinates, and altitude.\");\nexport const OpenweatherApiPostAddWeatherStationOutput: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\"),\n name: z.string().describe(\"Station name\"),\n rank: z.number().int().describe(\"Station rank\").nullable().optional(),\n user_id: z.string().describe(\"User ID that owns the station\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude in meters\"),\n latitude: z.number().describe(\"Station latitude\"),\n longitude: z.number().describe(\"Station longitude\"),\n created_at: z.string().describe(\"ISO datetime when station was created\"),\n updated_at: z.string().describe(\"ISO datetime when station was last updated\").nullable().optional(),\n external_id: z.string().describe(\"Provided external station ID\"),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).describe(\"Response schema for added weather station.\");\n\nexport const openweatherApiPostAddWeatherStation = action(\"OPENWEATHER_API_POST_ADD_WEATHER_STATION\", {\n slug: \"openweather_api-post-add-weather-station\",\n name: \"Add Weather Station\",\n description: \"Tool to add a new weather station to your account. Use when you need to register a station before sending custom data.\",\n input: OpenweatherApiPostAddWeatherStationInput,\n output: OpenweatherApiPostAddWeatherStationOutput,\n});\n"],"mappings":";;AAyBA,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBoE,EAAE,OAAO;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACxC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAC7E,CAAC,CAAC,CAAC,SAAS,mHAmBH;CACP,QAnBqE,EAAE,OAAO;EAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACxC,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC1D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;EAChD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAClD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/post-submit-station-measurements.ts
|
|
4
|
+
const OpenweatherApiPostSubmitStationMeasurementsInput = zod.z.object({ measurements: zod.z.array(zod.z.object({
|
|
5
|
+
dt: zod.z.number().int().describe("Time of measurement as Unix timestamp (seconds since epoch)"),
|
|
6
|
+
rain_1h: zod.z.number().describe("Rainfall in the last hour in mm").optional(),
|
|
7
|
+
humidity: zod.z.number().describe("Relative humidity in %").optional(),
|
|
8
|
+
pressure: zod.z.number().describe("Atmospheric pressure in hPa").optional(),
|
|
9
|
+
wind_deg: zod.z.number().int().describe("Wind direction in degrees (0-360)").optional(),
|
|
10
|
+
wind_gust: zod.z.number().describe("Maximum wind gust speed in m/s").optional(),
|
|
11
|
+
station_id: zod.z.string().describe("Internal station ID (obtained from adding a station)"),
|
|
12
|
+
wind_speed: zod.z.number().describe("Wind speed in m/s").optional(),
|
|
13
|
+
temperature: zod.z.number().describe("Air temperature in Celsius").optional()
|
|
14
|
+
}).describe("A single weather measurement from a station.")).describe("Array of measurement objects to submit") }).describe("Request parameters to submit weather measurements from one or more stations.");
|
|
15
|
+
const OpenweatherApiPostSubmitStationMeasurementsOutput = zod.z.object({
|
|
16
|
+
message: zod.z.string().default("Measurements submitted successfully").describe("Status message").nullable().optional(),
|
|
17
|
+
success: zod.z.boolean().default(true).describe("Indicates successful submission of measurements").nullable().optional()
|
|
18
|
+
}).describe("Response schema for submitted measurements. API returns HTTP 204 with no content body on success.");
|
|
19
|
+
const openweatherApiPostSubmitStationMeasurements = require_action.action("OPENWEATHER_API_POST_SUBMIT_STATION_MEASUREMENTS", {
|
|
20
|
+
slug: "openweather_api-post-submit-station-measurements",
|
|
21
|
+
name: "Submit Station Measurements",
|
|
22
|
+
description: "Tool to submit weather measurements from a registered station. Use when you need to send temperature, wind, pressure, humidity, or precipitation data for a station.",
|
|
23
|
+
input: OpenweatherApiPostSubmitStationMeasurementsInput,
|
|
24
|
+
output: OpenweatherApiPostSubmitStationMeasurementsOutput
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
exports.openweatherApiPostSubmitStationMeasurements = openweatherApiPostSubmitStationMeasurements;
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=post-submit-station-measurements.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.cjs","names":["z","action"],"sources":["../../src/actions/post-submit-station-measurements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiPostSubmitStationMeasurementsInput: z.ZodTypeAny = z.object({\n measurements: z.array(z.object({\n dt: z.number().int().describe(\"Time of measurement as Unix timestamp (seconds since epoch)\"),\n rain_1h: z.number().describe(\"Rainfall in the last hour in mm\").optional(),\n humidity: z.number().describe(\"Relative humidity in %\").optional(),\n pressure: z.number().describe(\"Atmospheric pressure in hPa\").optional(),\n wind_deg: z.number().int().describe(\"Wind direction in degrees (0-360)\").optional(),\n wind_gust: z.number().describe(\"Maximum wind gust speed in m/s\").optional(),\n station_id: z.string().describe(\"Internal station ID (obtained from adding a station)\"),\n wind_speed: z.number().describe(\"Wind speed in m/s\").optional(),\n temperature: z.number().describe(\"Air temperature in Celsius\").optional(),\n}).describe(\"A single weather measurement from a station.\")).describe(\"Array of measurement objects to submit\"),\n}).describe(\"Request parameters to submit weather measurements from one or more stations.\");\nexport const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Measurements submitted successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates successful submission of measurements\").nullable().optional(),\n}).describe(\"Response schema for submitted measurements. API returns HTTP 204 with no content body on success.\");\n\nexport const openweatherApiPostSubmitStationMeasurements = action(\"OPENWEATHER_API_POST_SUBMIT_STATION_MEASUREMENTS\", {\n slug: \"openweather_api-post-submit-station-measurements\",\n name: \"Submit Station Measurements\",\n description: \"Tool to submit weather measurements from a registered station. Use when you need to send temperature, wind, pressure, humidity, or precipitation data for a station.\",\n input: OpenweatherApiPostSubmitStationMeasurementsInput,\n output: OpenweatherApiPostSubmitStationMeasurementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mDAAiEA,IAAAA,EAAE,OAAO,EACrF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC/B,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC9D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,wCAAwC,EAC9G,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,oDAAkEA,IAAAA,EAAE,OAAO;CACtF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,qCAAqC,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,mGAAmG;AAE/G,MAAa,8CAA8CC,eAAAA,OAAO,oDAAoD;CACpH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-submit-station-measurements.d.ts
|
|
4
|
+
declare const OpenweatherApiPostSubmitStationMeasurementsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiPostSubmitStationMeasurements: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiPostSubmitStationMeasurements };
|
|
9
|
+
//# sourceMappingURL=post-submit-station-measurements.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.d.cts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":";;;cAIa,gDAAA,EAAkD,CAAA,CAAE,UAY0B;AAAA,cAC9E,iDAAA,EAAmD,CAAA,CAAE,UAG8C;AAAA,cAEnG,2CAAA,gCAA2C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-submit-station-measurements.d.ts
|
|
4
|
+
declare const OpenweatherApiPostSubmitStationMeasurementsInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiPostSubmitStationMeasurements: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiPostSubmitStationMeasurements };
|
|
9
|
+
//# sourceMappingURL=post-submit-station-measurements.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.d.mts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":";;;cAIa,gDAAA,EAAkD,CAAA,CAAE,UAY0B;AAAA,cAC9E,iDAAA,EAAmD,CAAA,CAAE,UAG8C;AAAA,cAEnG,2CAAA,gCAA2C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const openweatherApiPostSubmitStationMeasurements = action("OPENWEATHER_API_POST_SUBMIT_STATION_MEASUREMENTS", {
|
|
4
|
+
slug: "openweather_api-post-submit-station-measurements",
|
|
5
|
+
name: "Submit Station Measurements",
|
|
6
|
+
description: "Tool to submit weather measurements from a registered station. Use when you need to send temperature, wind, pressure, humidity, or precipitation data for a station.",
|
|
7
|
+
input: z.object({ measurements: z.array(z.object({
|
|
8
|
+
dt: z.number().int().describe("Time of measurement as Unix timestamp (seconds since epoch)"),
|
|
9
|
+
rain_1h: z.number().describe("Rainfall in the last hour in mm").optional(),
|
|
10
|
+
humidity: z.number().describe("Relative humidity in %").optional(),
|
|
11
|
+
pressure: z.number().describe("Atmospheric pressure in hPa").optional(),
|
|
12
|
+
wind_deg: z.number().int().describe("Wind direction in degrees (0-360)").optional(),
|
|
13
|
+
wind_gust: z.number().describe("Maximum wind gust speed in m/s").optional(),
|
|
14
|
+
station_id: z.string().describe("Internal station ID (obtained from adding a station)"),
|
|
15
|
+
wind_speed: z.number().describe("Wind speed in m/s").optional(),
|
|
16
|
+
temperature: z.number().describe("Air temperature in Celsius").optional()
|
|
17
|
+
}).describe("A single weather measurement from a station.")).describe("Array of measurement objects to submit") }).describe("Request parameters to submit weather measurements from one or more stations."),
|
|
18
|
+
output: z.object({
|
|
19
|
+
message: z.string().default("Measurements submitted successfully").describe("Status message").nullable().optional(),
|
|
20
|
+
success: z.boolean().default(true).describe("Indicates successful submission of measurements").nullable().optional()
|
|
21
|
+
}).describe("Response schema for submitted measurements. API returns HTTP 204 with no content body on success.")
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
export { openweatherApiPostSubmitStationMeasurements };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=post-submit-station-measurements.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.mjs","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiPostSubmitStationMeasurementsInput: z.ZodTypeAny = z.object({\n measurements: z.array(z.object({\n dt: z.number().int().describe(\"Time of measurement as Unix timestamp (seconds since epoch)\"),\n rain_1h: z.number().describe(\"Rainfall in the last hour in mm\").optional(),\n humidity: z.number().describe(\"Relative humidity in %\").optional(),\n pressure: z.number().describe(\"Atmospheric pressure in hPa\").optional(),\n wind_deg: z.number().int().describe(\"Wind direction in degrees (0-360)\").optional(),\n wind_gust: z.number().describe(\"Maximum wind gust speed in m/s\").optional(),\n station_id: z.string().describe(\"Internal station ID (obtained from adding a station)\"),\n wind_speed: z.number().describe(\"Wind speed in m/s\").optional(),\n temperature: z.number().describe(\"Air temperature in Celsius\").optional(),\n}).describe(\"A single weather measurement from a station.\")).describe(\"Array of measurement objects to submit\"),\n}).describe(\"Request parameters to submit weather measurements from one or more stations.\");\nexport const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Measurements submitted successfully\").describe(\"Status message\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates successful submission of measurements\").nullable().optional(),\n}).describe(\"Response schema for submitted measurements. API returns HTTP 204 with no content body on success.\");\n\nexport const openweatherApiPostSubmitStationMeasurements = action(\"OPENWEATHER_API_POST_SUBMIT_STATION_MEASUREMENTS\", {\n slug: \"openweather_api-post-submit-station-measurements\",\n name: \"Submit Station Measurements\",\n description: \"Tool to submit weather measurements from a registered station. Use when you need to send temperature, wind, pressure, humidity, or precipitation data for a station.\",\n input: OpenweatherApiPostSubmitStationMeasurementsInput,\n output: OpenweatherApiPostSubmitStationMeasurementsOutput,\n});\n"],"mappings":";;AAsBA,MAAa,8CAA8C,OAAO,oDAAoD;CACpH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtB4E,EAAE,OAAO,EACrF,cAAc,EAAE,MAAM,EAAE,OAAO;EAC/B,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACjE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC9D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,wCAAwC,EAC9G,CAAC,CAAC,CAAC,SAAS,8EAUH;CACP,QAV6E,EAAE,OAAO;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,qCAAqC,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,mGAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/update-weather-station.ts
|
|
4
|
+
const OpenweatherApiUpdateWeatherStationInput = zod.z.object({
|
|
5
|
+
name: zod.z.string().describe("Human-readable name for the station").optional(),
|
|
6
|
+
altitude: zod.z.number().describe("Altitude of the station above sea level in meters").optional(),
|
|
7
|
+
latitude: zod.z.number().describe("Latitude of the station in degrees, between -90 and 90"),
|
|
8
|
+
longitude: zod.z.number().describe("Longitude of the station in degrees, between -180 and 180"),
|
|
9
|
+
station_id: zod.z.string().describe("Unique identifier of the weather station to update"),
|
|
10
|
+
external_id: zod.z.string().describe("Custom user-provided external identifier for the station").optional()
|
|
11
|
+
}).describe("Request parameters to update an existing weather station. Provide the station_id path parameter and at least the latitude and longitude for location.");
|
|
12
|
+
const OpenweatherApiUpdateWeatherStationOutput = zod.z.object({
|
|
13
|
+
ID: zod.z.string().describe("Station identifier"),
|
|
14
|
+
name: zod.z.string().describe("Station name").nullable().optional(),
|
|
15
|
+
altitude: zod.z.number().describe("Altitude of the station above sea level in meters").nullable().optional(),
|
|
16
|
+
latitude: zod.z.number().describe("Latitude of the station in degrees"),
|
|
17
|
+
longitude: zod.z.number().describe("Longitude of the station in degrees"),
|
|
18
|
+
created_at: zod.z.string().describe("ISO datetime when station was created").nullable().optional(),
|
|
19
|
+
updated_at: zod.z.string().describe("ISO datetime when station was last updated").nullable().optional(),
|
|
20
|
+
external_id: zod.z.string().describe("Custom user-provided external identifier").nullable().optional()
|
|
21
|
+
}).describe("Response schema for the updated weather station.");
|
|
22
|
+
const openweatherApiUpdateWeatherStation = require_action.action("OPENWEATHER_API_UPDATE_WEATHER_STATION", {
|
|
23
|
+
slug: "openweather_api-update-weather-station",
|
|
24
|
+
name: "Update Weather Station",
|
|
25
|
+
description: "Tool to update weather station details. Use when you need to modify the name, location, or external ID of an existing station.",
|
|
26
|
+
input: OpenweatherApiUpdateWeatherStationInput,
|
|
27
|
+
output: OpenweatherApiUpdateWeatherStationOutput
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
exports.openweatherApiUpdateWeatherStation = openweatherApiUpdateWeatherStation;
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=update-weather-station.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/update-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiUpdateWeatherStationInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Human-readable name for the station\").optional(),\n altitude: z.number().describe(\"Altitude of the station above sea level in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the station in degrees, between -90 and 90\"),\n longitude: z.number().describe(\"Longitude of the station in degrees, between -180 and 180\"),\n station_id: z.string().describe(\"Unique identifier of the weather station to update\"),\n external_id: z.string().describe(\"Custom user-provided external identifier for the station\").optional(),\n}).describe(\"Request parameters to update an existing weather station. Provide the station_id path parameter and at least the latitude and longitude for location.\");\nexport const OpenweatherApiUpdateWeatherStationOutput: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Station identifier\"),\n name: z.string().describe(\"Station name\").nullable().optional(),\n altitude: z.number().describe(\"Altitude of the station above sea level in meters\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the station in degrees\"),\n longitude: z.number().describe(\"Longitude of the station in degrees\"),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO datetime when station was last updated\").nullable().optional(),\n external_id: z.string().describe(\"Custom user-provided external identifier\").nullable().optional(),\n}).describe(\"Response schema for the updated weather station.\");\n\nexport const openweatherApiUpdateWeatherStation = action(\"OPENWEATHER_API_UPDATE_WEATHER_STATION\", {\n slug: \"openweather_api-update-weather-station\",\n name: \"Update Weather Station\",\n description: \"Tool to update weather station details. Use when you need to modify the name, location, or external ID of an existing station.\",\n input: OpenweatherApiUpdateWeatherStationInput,\n output: OpenweatherApiUpdateWeatherStationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAAwDA,IAAAA,EAAE,OAAO;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC5F,UAAUA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|
4
|
+
declare const OpenweatherApiUpdateWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiUpdateWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiUpdateWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiUpdateWeatherStation };
|
|
9
|
+
//# sourceMappingURL=update-weather-station.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-weather-station.d.cts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO4G;AAAA,cACvJ,wCAAA,EAA0C,CAAA,CAAE,UASM;AAAA,cAElD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/update-weather-station.d.ts
|
|
4
|
+
declare const OpenweatherApiUpdateWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiUpdateWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiUpdateWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiUpdateWeatherStation };
|
|
9
|
+
//# sourceMappingURL=update-weather-station.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-weather-station.d.mts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAO4G;AAAA,cACvJ,wCAAA,EAA0C,CAAA,CAAE,UASM;AAAA,cAElD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const openweatherApiUpdateWeatherStation = action("OPENWEATHER_API_UPDATE_WEATHER_STATION", {
|
|
4
|
+
slug: "openweather_api-update-weather-station",
|
|
5
|
+
name: "Update Weather Station",
|
|
6
|
+
description: "Tool to update weather station details. Use when you need to modify the name, location, or external ID of an existing station.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
name: z.string().describe("Human-readable name for the station").optional(),
|
|
9
|
+
altitude: z.number().describe("Altitude of the station above sea level in meters").optional(),
|
|
10
|
+
latitude: z.number().describe("Latitude of the station in degrees, between -90 and 90"),
|
|
11
|
+
longitude: z.number().describe("Longitude of the station in degrees, between -180 and 180"),
|
|
12
|
+
station_id: z.string().describe("Unique identifier of the weather station to update"),
|
|
13
|
+
external_id: z.string().describe("Custom user-provided external identifier for the station").optional()
|
|
14
|
+
}).describe("Request parameters to update an existing weather station. Provide the station_id path parameter and at least the latitude and longitude for location."),
|
|
15
|
+
output: z.object({
|
|
16
|
+
ID: z.string().describe("Station identifier"),
|
|
17
|
+
name: z.string().describe("Station name").nullable().optional(),
|
|
18
|
+
altitude: z.number().describe("Altitude of the station above sea level in meters").nullable().optional(),
|
|
19
|
+
latitude: z.number().describe("Latitude of the station in degrees"),
|
|
20
|
+
longitude: z.number().describe("Longitude of the station in degrees"),
|
|
21
|
+
created_at: z.string().describe("ISO datetime when station was created").nullable().optional(),
|
|
22
|
+
updated_at: z.string().describe("ISO datetime when station was last updated").nullable().optional(),
|
|
23
|
+
external_id: z.string().describe("Custom user-provided external identifier").nullable().optional()
|
|
24
|
+
}).describe("Response schema for the updated weather station.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { openweatherApiUpdateWeatherStation };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=update-weather-station.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-weather-station.mjs","names":[],"sources":["../../src/actions/update-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiUpdateWeatherStationInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Human-readable name for the station\").optional(),\n altitude: z.number().describe(\"Altitude of the station above sea level in meters\").optional(),\n latitude: z.number().describe(\"Latitude of the station in degrees, between -90 and 90\"),\n longitude: z.number().describe(\"Longitude of the station in degrees, between -180 and 180\"),\n station_id: z.string().describe(\"Unique identifier of the weather station to update\"),\n external_id: z.string().describe(\"Custom user-provided external identifier for the station\").optional(),\n}).describe(\"Request parameters to update an existing weather station. Provide the station_id path parameter and at least the latitude and longitude for location.\");\nexport const OpenweatherApiUpdateWeatherStationOutput: z.ZodTypeAny = z.object({\n ID: z.string().describe(\"Station identifier\"),\n name: z.string().describe(\"Station name\").nullable().optional(),\n altitude: z.number().describe(\"Altitude of the station above sea level in meters\").nullable().optional(),\n latitude: z.number().describe(\"Latitude of the station in degrees\"),\n longitude: z.number().describe(\"Longitude of the station in degrees\"),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO datetime when station was last updated\").nullable().optional(),\n external_id: z.string().describe(\"Custom user-provided external identifier\").nullable().optional(),\n}).describe(\"Response schema for the updated weather station.\");\n\nexport const openweatherApiUpdateWeatherStation = action(\"OPENWEATHER_API_UPDATE_WEATHER_STATION\", {\n slug: \"openweather_api-update-weather-station\",\n name: \"Update Weather Station\",\n description: \"Tool to update weather station details. Use when you need to modify the name, location, or external ID of an existing station.\",\n input: OpenweatherApiUpdateWeatherStationInput,\n output: OpenweatherApiUpdateWeatherStationOutput,\n});\n"],"mappings":";;AAuBA,MAAa,qCAAqC,OAAO,0C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ources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const openweatherApi = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,kBAAA,uCAAA,CAAA,CAAA,UAAA,CAA2B;CACtC,MAAM;CACN,MAAM;AACR,CAAC"}
|