@keystrokehq/openweather_api 0.1.5 → 0.1.6
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/delete-weather-station.cjs +1 -0
- package/dist/actions/delete-weather-station.cjs.map +1 -1
- package/dist/actions/delete-weather-station.d.cts +3 -15
- package/dist/actions/delete-weather-station.d.cts.map +1 -1
- package/dist/actions/delete-weather-station.d.mts +3 -15
- package/dist/actions/delete-weather-station.d.mts.map +1 -1
- package/dist/actions/delete-weather-station.mjs +1 -0
- package/dist/actions/delete-weather-station.mjs.map +1 -1
- package/dist/actions/get-air-pollution-current.cjs +1 -0
- package/dist/actions/get-air-pollution-current.cjs.map +1 -1
- package/dist/actions/get-air-pollution-current.d.cts +3 -16
- package/dist/actions/get-air-pollution-current.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-current.d.mts +3 -16
- package/dist/actions/get-air-pollution-current.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-current.mjs +1 -0
- package/dist/actions/get-air-pollution-current.mjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.cjs +1 -0
- package/dist/actions/get-air-pollution-forecast.cjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.d.cts +3 -16
- package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-forecast.d.mts +3 -16
- package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-forecast.mjs +1 -0
- package/dist/actions/get-air-pollution-forecast.mjs.map +1 -1
- package/dist/actions/get-air-pollution-history.cjs +1 -0
- package/dist/actions/get-air-pollution-history.cjs.map +1 -1
- package/dist/actions/get-air-pollution-history.d.cts +3 -18
- package/dist/actions/get-air-pollution-history.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-history.d.mts +3 -18
- package/dist/actions/get-air-pollution-history.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-history.mjs +1 -0
- package/dist/actions/get-air-pollution-history.mjs.map +1 -1
- package/dist/actions/get-circle-city-weather.cjs +1 -0
- package/dist/actions/get-circle-city-weather.cjs.map +1 -1
- package/dist/actions/get-circle-city-weather.d.cts +3 -20
- package/dist/actions/get-circle-city-weather.d.cts.map +1 -1
- package/dist/actions/get-circle-city-weather.d.mts +3 -20
- package/dist/actions/get-circle-city-weather.d.mts.map +1 -1
- package/dist/actions/get-circle-city-weather.mjs +1 -0
- package/dist/actions/get-circle-city-weather.mjs.map +1 -1
- package/dist/actions/get-current-weather.cjs +1 -0
- package/dist/actions/get-current-weather.cjs.map +1 -1
- package/dist/actions/get-current-weather.d.cts +3 -21
- package/dist/actions/get-current-weather.d.cts.map +1 -1
- package/dist/actions/get-current-weather.d.mts +3 -21
- package/dist/actions/get-current-weather.d.mts.map +1 -1
- package/dist/actions/get-current-weather.mjs +1 -0
- package/dist/actions/get-current-weather.mjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.cjs +1 -0
- package/dist/actions/get-geocoding-by-zip.cjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.d.cts +3 -15
- package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -1
- package/dist/actions/get-geocoding-by-zip.d.mts +3 -15
- package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -1
- package/dist/actions/get-geocoding-by-zip.mjs +1 -0
- package/dist/actions/get-geocoding-by-zip.mjs.map +1 -1
- package/dist/actions/get-geocoding-direct.cjs +1 -0
- package/dist/actions/get-geocoding-direct.cjs.map +1 -1
- package/dist/actions/get-geocoding-direct.d.cts +3 -16
- package/dist/actions/get-geocoding-direct.d.cts.map +1 -1
- package/dist/actions/get-geocoding-direct.d.mts +3 -16
- package/dist/actions/get-geocoding-direct.d.mts.map +1 -1
- package/dist/actions/get-geocoding-direct.mjs +1 -0
- package/dist/actions/get-geocoding-direct.mjs.map +1 -1
- package/dist/actions/get-geocoding-reverse.cjs +1 -0
- package/dist/actions/get-geocoding-reverse.cjs.map +1 -1
- package/dist/actions/get-geocoding-reverse.d.cts +3 -17
- package/dist/actions/get-geocoding-reverse.d.cts.map +1 -1
- package/dist/actions/get-geocoding-reverse.d.mts +3 -17
- package/dist/actions/get-geocoding-reverse.d.mts.map +1 -1
- package/dist/actions/get-geocoding-reverse.mjs +1 -0
- package/dist/actions/get-geocoding-reverse.mjs.map +1 -1
- package/dist/actions/get-station-measurements.cjs +1 -0
- package/dist/actions/get-station-measurements.cjs.map +1 -1
- package/dist/actions/get-station-measurements.d.cts +3 -19
- package/dist/actions/get-station-measurements.d.cts.map +1 -1
- package/dist/actions/get-station-measurements.d.mts +3 -19
- package/dist/actions/get-station-measurements.d.mts.map +1 -1
- package/dist/actions/get-station-measurements.mjs +1 -0
- package/dist/actions/get-station-measurements.mjs.map +1 -1
- package/dist/actions/get-uv-index-forecast.cjs +1 -0
- package/dist/actions/get-uv-index-forecast.cjs.map +1 -1
- package/dist/actions/get-uv-index-forecast.d.cts +3 -17
- package/dist/actions/get-uv-index-forecast.d.cts.map +1 -1
- package/dist/actions/get-uv-index-forecast.d.mts +3 -17
- package/dist/actions/get-uv-index-forecast.d.mts.map +1 -1
- package/dist/actions/get-uv-index-forecast.mjs +1 -0
- package/dist/actions/get-uv-index-forecast.mjs.map +1 -1
- package/dist/actions/get-uv-index-history.cjs +1 -0
- package/dist/actions/get-uv-index-history.cjs.map +1 -1
- package/dist/actions/get-uv-index-history.d.cts +3 -18
- package/dist/actions/get-uv-index-history.d.cts.map +1 -1
- package/dist/actions/get-uv-index-history.d.mts +3 -18
- package/dist/actions/get-uv-index-history.d.mts.map +1 -1
- package/dist/actions/get-uv-index-history.mjs +1 -0
- package/dist/actions/get-uv-index-history.mjs.map +1 -1
- package/dist/actions/get-uv-index.cjs +1 -0
- package/dist/actions/get-uv-index.cjs.map +1 -1
- package/dist/actions/get-uv-index.d.cts +3 -16
- package/dist/actions/get-uv-index.d.cts.map +1 -1
- package/dist/actions/get-uv-index.d.mts +3 -16
- package/dist/actions/get-uv-index.d.mts.map +1 -1
- package/dist/actions/get-uv-index.mjs +1 -0
- package/dist/actions/get-uv-index.mjs.map +1 -1
- package/dist/actions/get-weather-map-tile.cjs +1 -0
- package/dist/actions/get-weather-map-tile.cjs.map +1 -1
- package/dist/actions/get-weather-map-tile.d.cts +3 -25
- package/dist/actions/get-weather-map-tile.d.cts.map +1 -1
- package/dist/actions/get-weather-map-tile.d.mts +3 -25
- package/dist/actions/get-weather-map-tile.d.mts.map +1 -1
- package/dist/actions/get-weather-map-tile.mjs +1 -0
- package/dist/actions/get-weather-map-tile.mjs.map +1 -1
- package/dist/actions/get-weather-station.cjs +1 -0
- package/dist/actions/get-weather-station.cjs.map +1 -1
- package/dist/actions/get-weather-station.d.cts +3 -15
- package/dist/actions/get-weather-station.d.cts.map +1 -1
- package/dist/actions/get-weather-station.d.mts +3 -15
- package/dist/actions/get-weather-station.d.mts.map +1 -1
- package/dist/actions/get-weather-station.mjs +1 -0
- package/dist/actions/get-weather-station.mjs.map +1 -1
- package/dist/actions/get-weather-stations.cjs +1 -0
- package/dist/actions/get-weather-stations.cjs.map +1 -1
- package/dist/actions/get-weather-stations.d.cts +3 -13
- package/dist/actions/get-weather-stations.d.cts.map +1 -1
- package/dist/actions/get-weather-stations.d.mts +3 -13
- package/dist/actions/get-weather-stations.d.mts.map +1 -1
- package/dist/actions/get-weather-stations.mjs +1 -0
- package/dist/actions/get-weather-stations.mjs.map +1 -1
- package/dist/actions/get-weather-triggers.cjs +1 -0
- package/dist/actions/get-weather-triggers.cjs.map +1 -1
- package/dist/actions/get-weather-triggers.d.cts +3 -24
- package/dist/actions/get-weather-triggers.d.cts.map +1 -1
- package/dist/actions/get-weather-triggers.d.mts +3 -24
- package/dist/actions/get-weather-triggers.d.mts.map +1 -1
- package/dist/actions/get-weather-triggers.mjs +1 -0
- package/dist/actions/get-weather-triggers.mjs.map +1 -1
- package/dist/actions/get5-day-forecast.cjs +1 -0
- package/dist/actions/get5-day-forecast.cjs.map +1 -1
- package/dist/actions/get5-day-forecast.d.cts +3 -22
- package/dist/actions/get5-day-forecast.d.cts.map +1 -1
- package/dist/actions/get5-day-forecast.d.mts +3 -22
- package/dist/actions/get5-day-forecast.d.mts.map +1 -1
- package/dist/actions/get5-day-forecast.mjs +1 -0
- package/dist/actions/get5-day-forecast.mjs.map +1 -1
- package/dist/actions/post-add-weather-station.cjs +1 -0
- package/dist/actions/post-add-weather-station.cjs.map +1 -1
- package/dist/actions/post-add-weather-station.d.cts +3 -19
- package/dist/actions/post-add-weather-station.d.cts.map +1 -1
- package/dist/actions/post-add-weather-station.d.mts +3 -19
- package/dist/actions/post-add-weather-station.d.mts.map +1 -1
- package/dist/actions/post-add-weather-station.mjs +1 -0
- package/dist/actions/post-add-weather-station.mjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.cjs +1 -0
- package/dist/actions/post-submit-station-measurements.cjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.d.cts +3 -26
- package/dist/actions/post-submit-station-measurements.d.cts.map +1 -1
- package/dist/actions/post-submit-station-measurements.d.mts +3 -26
- package/dist/actions/post-submit-station-measurements.d.mts.map +1 -1
- package/dist/actions/post-submit-station-measurements.mjs +1 -0
- package/dist/actions/post-submit-station-measurements.mjs.map +1 -1
- package/dist/actions/update-weather-station.cjs +1 -0
- package/dist/actions/update-weather-station.cjs.map +1 -1
- package/dist/actions/update-weather-station.d.cts +3 -20
- package/dist/actions/update-weather-station.d.cts.map +1 -1
- package/dist/actions/update-weather-station.d.mts +3 -20
- package/dist/actions/update-weather-station.d.mts.map +1 -1
- package/dist/actions/update-weather-station.mjs +1 -0
- package/dist/actions/update-weather-station.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get5-day-forecast.d.ts
|
|
@@ -79,28 +81,7 @@ declare const OpenweatherApiGet5DayForecastOutput: z.ZodObject<{
|
|
|
79
81
|
}, z.core.$loose>>;
|
|
80
82
|
message: z.ZodNullable<z.ZodNumber>;
|
|
81
83
|
}, z.core.$loose>;
|
|
82
|
-
declare const openweatherApiGet5DayForecast:
|
|
83
|
-
q?: string | undefined;
|
|
84
|
-
id?: number | undefined;
|
|
85
|
-
lat?: number | undefined;
|
|
86
|
-
lon?: number | undefined;
|
|
87
|
-
zip?: string | undefined;
|
|
88
|
-
lang?: string | undefined;
|
|
89
|
-
mode?: "json" | "xml" | "html" | undefined;
|
|
90
|
-
units?: "standard" | "metric" | "imperial" | undefined;
|
|
91
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
92
|
-
connectionId: z.ZodString;
|
|
93
|
-
entityId: z.ZodString;
|
|
94
|
-
instanceId: z.ZodString;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
generic_api_key: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
98
|
-
connectionId: z.ZodString;
|
|
99
|
-
entityId: z.ZodString;
|
|
100
|
-
instanceId: z.ZodString;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
generic_api_key: z.ZodString;
|
|
103
|
-
}, z.core.$strip>>]>;
|
|
84
|
+
declare const openweatherApiGet5DayForecast: AppAction<typeof OpenweatherApiGet5DayForecastInput, typeof OpenweatherApiGet5DayForecastOutput, typeof openweatherApi.credential>;
|
|
104
85
|
//#endregion
|
|
105
86
|
export { openweatherApiGet5DayForecast };
|
|
106
87
|
//# sourceMappingURL=get5-day-forecast.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get5-day-forecast.d.mts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get5-day-forecast.d.mts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmElC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +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.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.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\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\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).passthrough().describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\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\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"get5-day-forecast.mjs","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGet5DayForecastInput = 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.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\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\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).passthrough().describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\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\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n}).passthrough();\n\nexport const openweatherApiGet5DayForecast: AppAction<\n typeof OpenweatherApiGet5DayForecastInput,\n typeof OpenweatherApiGet5DayForecastOutput,\n typeof openweatherApi.credential\n> = 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":"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"}
|
|
@@ -1 +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.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.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\").nullable(),\n name: z.string().describe(\"Station name\").nullable(),\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\").nullable(),\n latitude: z.number().describe(\"Station latitude\").nullable(),\n longitude: z.number().describe(\"Station longitude\").nullable(),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable(),\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\").nullable(),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/post-add-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiPostAddWeatherStationInput = 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.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\").nullable(),\n name: z.string().describe(\"Station name\").nullable(),\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\").nullable(),\n latitude: z.number().describe(\"Station latitude\").nullable(),\n longitude: z.number().describe(\"Station longitude\").nullable(),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable(),\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\").nullable(),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).passthrough().describe(\"Response schema for added weather station.\");\n\nexport const openweatherApiPostAddWeatherStation: AppAction<\n typeof OpenweatherApiPostAddWeatherStationInput,\n typeof OpenweatherApiPostAddWeatherStationOutput,\n typeof openweatherApi.credential\n> = 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":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;CACnD,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,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/post-add-weather-station.d.ts
|
|
@@ -21,25 +23,7 @@ declare const OpenweatherApiPostAddWeatherStationOutput: z.ZodObject<{
|
|
|
21
23
|
external_id: z.ZodNullable<z.ZodString>;
|
|
22
24
|
source_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const openweatherApiPostAddWeatherStation:
|
|
25
|
-
name: string;
|
|
26
|
-
altitude: number;
|
|
27
|
-
latitude: number;
|
|
28
|
-
longitude: number;
|
|
29
|
-
external_id: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const openweatherApiPostAddWeatherStation: AppAction<typeof OpenweatherApiPostAddWeatherStationInput, typeof OpenweatherApiPostAddWeatherStationOutput, typeof openweatherApi.credential>;
|
|
43
27
|
//#endregion
|
|
44
28
|
export { openweatherApiPostAddWeatherStation };
|
|
45
29
|
//# sourceMappingURL=post-add-weather-station.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-add-weather-station.d.cts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.d.cts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;cAOxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/post-add-weather-station.d.ts
|
|
@@ -21,25 +23,7 @@ declare const OpenweatherApiPostAddWeatherStationOutput: z.ZodObject<{
|
|
|
21
23
|
external_id: z.ZodNullable<z.ZodString>;
|
|
22
24
|
source_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const openweatherApiPostAddWeatherStation:
|
|
25
|
-
name: string;
|
|
26
|
-
altitude: number;
|
|
27
|
-
latitude: number;
|
|
28
|
-
longitude: number;
|
|
29
|
-
external_id: string;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
37
|
-
connectionId: z.ZodString;
|
|
38
|
-
entityId: z.ZodString;
|
|
39
|
-
instanceId: z.ZodString;
|
|
40
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
26
|
+
declare const openweatherApiPostAddWeatherStation: AppAction<typeof OpenweatherApiPostAddWeatherStationInput, typeof OpenweatherApiPostAddWeatherStationOutput, typeof openweatherApi.credential>;
|
|
43
27
|
//#endregion
|
|
44
28
|
export { openweatherApiPostAddWeatherStation };
|
|
45
29
|
//# sourceMappingURL=post-add-weather-station.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-add-weather-station.d.mts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.d.mts","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;cAOxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +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.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.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\").nullable(),\n name: z.string().describe(\"Station name\").nullable(),\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\").nullable(),\n latitude: z.number().describe(\"Station latitude\").nullable(),\n longitude: z.number().describe(\"Station longitude\").nullable(),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable(),\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\").nullable(),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"post-add-weather-station.mjs","names":[],"sources":["../../src/actions/post-add-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiPostAddWeatherStationInput = 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.object({\n ID: z.string().describe(\"Internal OpenWeather station ID\").nullable(),\n name: z.string().describe(\"Station name\").nullable(),\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\").nullable(),\n latitude: z.number().describe(\"Station latitude\").nullable(),\n longitude: z.number().describe(\"Station longitude\").nullable(),\n created_at: z.string().describe(\"ISO datetime when station was created\").nullable(),\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\").nullable(),\n source_type: z.number().int().describe(\"Source type identifier\").nullable().optional(),\n}).passthrough().describe(\"Response schema for added weather station.\");\n\nexport const openweatherApiPostAddWeatherStation: AppAction<\n typeof OpenweatherApiPostAddWeatherStationInput,\n typeof OpenweatherApiPostAddWeatherStationOutput,\n typeof openweatherApi.credential\n> = 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":";;;AA2BA,MAAa,sCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7BsD,EAAE,OAAO;EAC/D,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,mHAuBH;CACP,QAvBuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;EACnD,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,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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}).passthrough().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.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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.cjs","names":["z","action"],"sources":["../../src/actions/post-submit-station-measurements.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiPostSubmitStationMeasurementsInput = 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}).passthrough().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.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}).passthrough().describe(\"Response schema for submitted measurements. API returns HTTP 204 with no content body on success.\");\n\nexport const openweatherApiPostSubmitStationMeasurements: AppAction<\n typeof OpenweatherApiPostSubmitStationMeasurementsInput,\n typeof OpenweatherApiPostSubmitStationMeasurementsOutput,\n typeof openweatherApi.credential\n> = 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":";;;;AAMA,MAAa,mDAAmDA,IAAAA,EAAE,OAAO,EACvE,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,YAAY,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,wCAAwC,EAC5H,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAa,oDAAoDA,IAAAA,EAAE,OAAO;CACxE,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,YAAY,CAAC,CAAC,SAAS,mGAAmG;AAE7H,MAAa,8CAITC,eAAAA,OAAO,oDAAoD;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/post-submit-station-measurements.d.ts
|
|
@@ -18,32 +20,7 @@ declare const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodObject<{
|
|
|
18
20
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
19
21
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const openweatherApiPostSubmitStationMeasurements:
|
|
22
|
-
measurements: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
dt: number;
|
|
25
|
-
station_id: string;
|
|
26
|
-
rain_1h?: number | undefined;
|
|
27
|
-
humidity?: number | undefined;
|
|
28
|
-
pressure?: number | undefined;
|
|
29
|
-
wind_deg?: number | undefined;
|
|
30
|
-
wind_gust?: number | undefined;
|
|
31
|
-
wind_speed?: number | undefined;
|
|
32
|
-
temperature?: number | undefined;
|
|
33
|
-
}[];
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const openweatherApiPostSubmitStationMeasurements: AppAction<typeof OpenweatherApiPostSubmitStationMeasurementsInput, typeof OpenweatherApiPostSubmitStationMeasurementsOutput, typeof openweatherApi.credential>;
|
|
47
24
|
//#endregion
|
|
48
25
|
export { openweatherApiPostSubmitStationMeasurements };
|
|
49
26
|
//# sourceMappingURL=post-submit-station-measurements.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-submit-station-measurements.d.cts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.d.cts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":";;;;;cAMa,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAahD,iDAAA,EAAiD,CAAA,CAAA,SAAA;;;;cAKjD,2CAAA,EAA6C,SAAA,QACjD,gDAAA,SACA,iDAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/post-submit-station-measurements.d.ts
|
|
@@ -18,32 +20,7 @@ declare const OpenweatherApiPostSubmitStationMeasurementsOutput: z.ZodObject<{
|
|
|
18
20
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
19
21
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const openweatherApiPostSubmitStationMeasurements:
|
|
22
|
-
measurements: {
|
|
23
|
-
[x: string]: unknown;
|
|
24
|
-
dt: number;
|
|
25
|
-
station_id: string;
|
|
26
|
-
rain_1h?: number | undefined;
|
|
27
|
-
humidity?: number | undefined;
|
|
28
|
-
pressure?: number | undefined;
|
|
29
|
-
wind_deg?: number | undefined;
|
|
30
|
-
wind_gust?: number | undefined;
|
|
31
|
-
wind_speed?: number | undefined;
|
|
32
|
-
temperature?: number | undefined;
|
|
33
|
-
}[];
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
generic_api_key: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
23
|
+
declare const openweatherApiPostSubmitStationMeasurements: AppAction<typeof OpenweatherApiPostSubmitStationMeasurementsInput, typeof OpenweatherApiPostSubmitStationMeasurementsOutput, typeof openweatherApi.credential>;
|
|
47
24
|
//#endregion
|
|
48
25
|
export { openweatherApiPostSubmitStationMeasurements };
|
|
49
26
|
//# sourceMappingURL=post-submit-station-measurements.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-submit-station-measurements.d.mts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.d.mts","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"mappings":";;;;;cAMa,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAahD,iDAAA,EAAiD,CAAA,CAAA,SAAA;;;;cAKjD,2CAAA,EAA6C,SAAA,QACjD,gDAAA,SACA,iDAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +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.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}).passthrough().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.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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"post-submit-station-measurements.mjs","names":[],"sources":["../../src/actions/post-submit-station-measurements.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiPostSubmitStationMeasurementsInput = 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}).passthrough().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.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}).passthrough().describe(\"Response schema for submitted measurements. API returns HTTP 204 with no content body on success.\");\n\nexport const openweatherApiPostSubmitStationMeasurements: AppAction<\n typeof OpenweatherApiPostSubmitStationMeasurementsInput,\n typeof OpenweatherApiPostSubmitStationMeasurementsOutput,\n typeof openweatherApi.credential\n> = 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":";;;AAwBA,MAAa,8CAIT,OAAO,oDAAoD;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1B8D,EAAE,OAAO,EACvE,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,YAAY,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,CAAC,SAAS,wCAAwC,EAC5H,CAAC,CAAC,CAAC,SAAS,8EAcH;CACP,QAd+D,EAAE,OAAO;EACxE,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,YAAY,CAAC,CAAC,SAAS,mGAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n ID: z.string().describe(\"Station identifier\").nullable(),\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\").nullable(),\n longitude: z.number().describe(\"Longitude of the station in degrees\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/update-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiUpdateWeatherStationInput = 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.object({\n ID: z.string().describe(\"Station identifier\").nullable(),\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\").nullable(),\n longitude: z.number().describe(\"Longitude of the station in degrees\").nullable(),\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}).passthrough().describe(\"Response schema for the updated weather station.\");\n\nexport const openweatherApiUpdateWeatherStation: AppAction<\n typeof OpenweatherApiUpdateWeatherStationInput,\n typeof OpenweatherApiUpdateWeatherStationOutput,\n typeof openweatherApi.credential\n> = 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":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,uJAAuJ;AACnK,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,qCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-weather-station.d.ts
|
|
@@ -19,26 +21,7 @@ declare const OpenweatherApiUpdateWeatherStationOutput: z.ZodObject<{
|
|
|
19
21
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const openweatherApiUpdateWeatherStation:
|
|
23
|
-
latitude: number;
|
|
24
|
-
longitude: number;
|
|
25
|
-
station_id: string;
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
altitude?: number | undefined;
|
|
28
|
-
external_id?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const openweatherApiUpdateWeatherStation: AppAction<typeof OpenweatherApiUpdateWeatherStationInput, typeof OpenweatherApiUpdateWeatherStationOutput, typeof openweatherApi.credential>;
|
|
42
25
|
//#endregion
|
|
43
26
|
export { openweatherApiUpdateWeatherStation };
|
|
44
27
|
//# sourceMappingURL=update-weather-station.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-weather-station.d.cts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-weather-station.d.cts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAQvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAWxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-weather-station.d.ts
|
|
@@ -19,26 +21,7 @@ declare const OpenweatherApiUpdateWeatherStationOutput: z.ZodObject<{
|
|
|
19
21
|
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
22
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const openweatherApiUpdateWeatherStation:
|
|
23
|
-
latitude: number;
|
|
24
|
-
longitude: number;
|
|
25
|
-
station_id: string;
|
|
26
|
-
name?: string | undefined;
|
|
27
|
-
altitude?: number | undefined;
|
|
28
|
-
external_id?: string | undefined;
|
|
29
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
generic_api_key: z.ZodString;
|
|
41
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const openweatherApiUpdateWeatherStation: AppAction<typeof OpenweatherApiUpdateWeatherStationInput, typeof OpenweatherApiUpdateWeatherStationOutput, typeof openweatherApi.credential>;
|
|
42
25
|
//#endregion
|
|
43
26
|
export { openweatherApiUpdateWeatherStation };
|
|
44
27
|
//# sourceMappingURL=update-weather-station.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-weather-station.d.mts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-weather-station.d.mts","names":[],"sources":["../../src/actions/update-weather-station.ts"],"mappings":";;;;;cAMa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAQvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAWxC,kCAAA,EAAoC,SAAA,QACxC,uCAAA,SACA,wCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +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.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.object({\n ID: z.string().describe(\"Station identifier\").nullable(),\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\").nullable(),\n longitude: z.number().describe(\"Longitude of the station in degrees\").nullable(),\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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"update-weather-station.mjs","names":[],"sources":["../../src/actions/update-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiUpdateWeatherStationInput = 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.object({\n ID: z.string().describe(\"Station identifier\").nullable(),\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\").nullable(),\n longitude: z.number().describe(\"Longitude of the station in degrees\").nullable(),\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}).passthrough().describe(\"Response schema for the updated weather station.\");\n\nexport const openweatherApiUpdateWeatherStation: AppAction<\n typeof OpenweatherApiUpdateWeatherStationInput,\n typeof OpenweatherApiUpdateWeatherStationOutput,\n typeof openweatherApi.credential\n> = 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":";;;AAyBA,MAAa,qCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC5F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,uJAoBH;CACP,QApBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const openweatherApi = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "openweather_api",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.openweatherApi = openweatherApi;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const openweatherApi = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const openweatherApi: KeystrokeApp<\"openweather_api\", typeof credential> = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,kBAAA,GAAA,2BAAA,UAAA,CAA+E;CAC1F,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const openweatherApi: KeystrokeApp<"openweather_api", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { openweatherApi };
|
|
13
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,cAAA,EAAgB,YAAY,2BAA2B,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const openweatherApi: KeystrokeApp<"openweather_api", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { openweatherApi };
|
|
13
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,cAAA,EAAgB,YAAY,2BAA2B,UAAA"}
|
package/dist/app.mjs
CHANGED
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const openweatherApi = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n credential
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const openweatherApi: KeystrokeApp<\"openweather_api\", typeof credential> = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,iBAAqE,UAAU;CAC1F,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|