@keystrokehq/openweather_api 0.1.0 → 0.1.2

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.
Files changed (167) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/delete-weather-station.cjs +1 -1
  4. package/dist/actions/delete-weather-station.cjs.map +1 -1
  5. package/dist/actions/delete-weather-station.d.cts +9 -3
  6. package/dist/actions/delete-weather-station.d.cts.map +1 -1
  7. package/dist/actions/delete-weather-station.d.mts +9 -3
  8. package/dist/actions/delete-weather-station.d.mts.map +1 -1
  9. package/dist/actions/delete-weather-station.mjs +1 -1
  10. package/dist/actions/delete-weather-station.mjs.map +1 -1
  11. package/dist/actions/get-air-pollution-current.cjs +12 -12
  12. package/dist/actions/get-air-pollution-current.cjs.map +1 -1
  13. package/dist/actions/get-air-pollution-current.d.cts +30 -3
  14. package/dist/actions/get-air-pollution-current.d.cts.map +1 -1
  15. package/dist/actions/get-air-pollution-current.d.mts +30 -3
  16. package/dist/actions/get-air-pollution-current.d.mts.map +1 -1
  17. package/dist/actions/get-air-pollution-current.mjs +12 -12
  18. package/dist/actions/get-air-pollution-current.mjs.map +1 -1
  19. package/dist/actions/get-air-pollution-forecast.cjs +12 -12
  20. package/dist/actions/get-air-pollution-forecast.cjs.map +1 -1
  21. package/dist/actions/get-air-pollution-forecast.d.cts +30 -3
  22. package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -1
  23. package/dist/actions/get-air-pollution-forecast.d.mts +30 -3
  24. package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -1
  25. package/dist/actions/get-air-pollution-forecast.mjs +12 -12
  26. package/dist/actions/get-air-pollution-forecast.mjs.map +1 -1
  27. package/dist/actions/get-air-pollution-history.cjs +10 -10
  28. package/dist/actions/get-air-pollution-history.cjs.map +1 -1
  29. package/dist/actions/get-air-pollution-history.d.cts +31 -3
  30. package/dist/actions/get-air-pollution-history.d.cts.map +1 -1
  31. package/dist/actions/get-air-pollution-history.d.mts +31 -3
  32. package/dist/actions/get-air-pollution-history.d.mts.map +1 -1
  33. package/dist/actions/get-air-pollution-history.mjs +10 -10
  34. package/dist/actions/get-air-pollution-history.mjs.map +1 -1
  35. package/dist/actions/get-circle-city-weather.cjs +21 -21
  36. package/dist/actions/get-circle-city-weather.cjs.map +1 -1
  37. package/dist/actions/get-circle-city-weather.d.cts +75 -3
  38. package/dist/actions/get-circle-city-weather.d.cts.map +1 -1
  39. package/dist/actions/get-circle-city-weather.d.mts +75 -3
  40. package/dist/actions/get-circle-city-weather.d.mts.map +1 -1
  41. package/dist/actions/get-circle-city-weather.mjs +21 -21
  42. package/dist/actions/get-circle-city-weather.mjs.map +1 -1
  43. package/dist/actions/get-current-weather.cjs +24 -24
  44. package/dist/actions/get-current-weather.cjs.map +1 -1
  45. package/dist/actions/get-current-weather.d.cts +74 -3
  46. package/dist/actions/get-current-weather.d.cts.map +1 -1
  47. package/dist/actions/get-current-weather.d.mts +74 -3
  48. package/dist/actions/get-current-weather.d.mts.map +1 -1
  49. package/dist/actions/get-current-weather.mjs +24 -24
  50. package/dist/actions/get-current-weather.mjs.map +1 -1
  51. package/dist/actions/get-geocoding-by-zip.cjs +5 -5
  52. package/dist/actions/get-geocoding-by-zip.cjs.map +1 -1
  53. package/dist/actions/get-geocoding-by-zip.d.cts +13 -3
  54. package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -1
  55. package/dist/actions/get-geocoding-by-zip.d.mts +13 -3
  56. package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -1
  57. package/dist/actions/get-geocoding-by-zip.mjs +5 -5
  58. package/dist/actions/get-geocoding-by-zip.mjs.map +1 -1
  59. package/dist/actions/get-geocoding-direct.cjs.map +1 -1
  60. package/dist/actions/get-geocoding-direct.d.cts +9 -3
  61. package/dist/actions/get-geocoding-direct.d.cts.map +1 -1
  62. package/dist/actions/get-geocoding-direct.d.mts +9 -3
  63. package/dist/actions/get-geocoding-direct.d.mts.map +1 -1
  64. package/dist/actions/get-geocoding-direct.mjs.map +1 -1
  65. package/dist/actions/get-geocoding-reverse.cjs.map +1 -1
  66. package/dist/actions/get-geocoding-reverse.d.cts +11 -3
  67. package/dist/actions/get-geocoding-reverse.d.cts.map +1 -1
  68. package/dist/actions/get-geocoding-reverse.d.mts +11 -3
  69. package/dist/actions/get-geocoding-reverse.d.mts.map +1 -1
  70. package/dist/actions/get-geocoding-reverse.mjs.map +1 -1
  71. package/dist/actions/get-station-measurements.cjs.map +1 -1
  72. package/dist/actions/get-station-measurements.d.cts +30 -3
  73. package/dist/actions/get-station-measurements.d.cts.map +1 -1
  74. package/dist/actions/get-station-measurements.d.mts +30 -3
  75. package/dist/actions/get-station-measurements.d.mts.map +1 -1
  76. package/dist/actions/get-station-measurements.mjs.map +1 -1
  77. package/dist/actions/get-uv-index-forecast.cjs.map +1 -1
  78. package/dist/actions/get-uv-index-forecast.d.cts +11 -3
  79. package/dist/actions/get-uv-index-forecast.d.cts.map +1 -1
  80. package/dist/actions/get-uv-index-forecast.d.mts +11 -3
  81. package/dist/actions/get-uv-index-forecast.d.mts.map +1 -1
  82. package/dist/actions/get-uv-index-forecast.mjs.map +1 -1
  83. package/dist/actions/get-uv-index-history.cjs +5 -5
  84. package/dist/actions/get-uv-index-history.cjs.map +1 -1
  85. package/dist/actions/get-uv-index-history.d.cts +21 -3
  86. package/dist/actions/get-uv-index-history.d.cts.map +1 -1
  87. package/dist/actions/get-uv-index-history.d.mts +21 -3
  88. package/dist/actions/get-uv-index-history.d.mts.map +1 -1
  89. package/dist/actions/get-uv-index-history.mjs +5 -5
  90. package/dist/actions/get-uv-index-history.mjs.map +1 -1
  91. package/dist/actions/get-uv-index.cjs +5 -5
  92. package/dist/actions/get-uv-index.cjs.map +1 -1
  93. package/dist/actions/get-uv-index.d.cts +15 -3
  94. package/dist/actions/get-uv-index.d.cts.map +1 -1
  95. package/dist/actions/get-uv-index.d.mts +15 -3
  96. package/dist/actions/get-uv-index.d.mts.map +1 -1
  97. package/dist/actions/get-uv-index.mjs +5 -5
  98. package/dist/actions/get-uv-index.mjs.map +1 -1
  99. package/dist/actions/get-weather-map-tile.cjs +1 -1
  100. package/dist/actions/get-weather-map-tile.cjs.map +1 -1
  101. package/dist/actions/get-weather-map-tile.d.cts +40 -3
  102. package/dist/actions/get-weather-map-tile.d.cts.map +1 -1
  103. package/dist/actions/get-weather-map-tile.d.mts +40 -3
  104. package/dist/actions/get-weather-map-tile.d.mts.map +1 -1
  105. package/dist/actions/get-weather-map-tile.mjs +1 -1
  106. package/dist/actions/get-weather-map-tile.mjs.map +1 -1
  107. package/dist/actions/get-weather-station.cjs +6 -6
  108. package/dist/actions/get-weather-station.cjs.map +1 -1
  109. package/dist/actions/get-weather-station.d.cts +17 -3
  110. package/dist/actions/get-weather-station.d.cts.map +1 -1
  111. package/dist/actions/get-weather-station.d.mts +17 -3
  112. package/dist/actions/get-weather-station.d.mts.map +1 -1
  113. package/dist/actions/get-weather-station.mjs +6 -6
  114. package/dist/actions/get-weather-station.mjs.map +1 -1
  115. package/dist/actions/get-weather-stations.cjs +6 -6
  116. package/dist/actions/get-weather-stations.cjs.map +1 -1
  117. package/dist/actions/get-weather-stations.d.cts +15 -3
  118. package/dist/actions/get-weather-stations.d.cts.map +1 -1
  119. package/dist/actions/get-weather-stations.d.mts +15 -3
  120. package/dist/actions/get-weather-stations.d.mts.map +1 -1
  121. package/dist/actions/get-weather-stations.mjs +6 -6
  122. package/dist/actions/get-weather-stations.mjs.map +1 -1
  123. package/dist/actions/get-weather-triggers.cjs +2 -2
  124. package/dist/actions/get-weather-triggers.cjs.map +1 -1
  125. package/dist/actions/get-weather-triggers.d.cts +34 -3
  126. package/dist/actions/get-weather-triggers.d.cts.map +1 -1
  127. package/dist/actions/get-weather-triggers.d.mts +34 -3
  128. package/dist/actions/get-weather-triggers.d.mts.map +1 -1
  129. package/dist/actions/get-weather-triggers.mjs +2 -2
  130. package/dist/actions/get-weather-triggers.mjs.map +1 -1
  131. package/dist/actions/get5-day-forecast.cjs +28 -28
  132. package/dist/actions/get5-day-forecast.cjs.map +1 -1
  133. package/dist/actions/get5-day-forecast.d.cts +88 -3
  134. package/dist/actions/get5-day-forecast.d.cts.map +1 -1
  135. package/dist/actions/get5-day-forecast.d.mts +88 -3
  136. package/dist/actions/get5-day-forecast.d.mts.map +1 -1
  137. package/dist/actions/get5-day-forecast.mjs +28 -28
  138. package/dist/actions/get5-day-forecast.mjs.map +1 -1
  139. package/dist/actions/post-add-weather-station.cjs +7 -7
  140. package/dist/actions/post-add-weather-station.cjs.map +1 -1
  141. package/dist/actions/post-add-weather-station.d.cts +27 -3
  142. package/dist/actions/post-add-weather-station.d.cts.map +1 -1
  143. package/dist/actions/post-add-weather-station.d.mts +27 -3
  144. package/dist/actions/post-add-weather-station.d.mts.map +1 -1
  145. package/dist/actions/post-add-weather-station.mjs +7 -7
  146. package/dist/actions/post-add-weather-station.mjs.map +1 -1
  147. package/dist/actions/post-submit-station-measurements.cjs.map +1 -1
  148. package/dist/actions/post-submit-station-measurements.d.cts +30 -3
  149. package/dist/actions/post-submit-station-measurements.d.cts.map +1 -1
  150. package/dist/actions/post-submit-station-measurements.d.mts +30 -3
  151. package/dist/actions/post-submit-station-measurements.d.mts.map +1 -1
  152. package/dist/actions/post-submit-station-measurements.mjs.map +1 -1
  153. package/dist/actions/update-weather-station.cjs +3 -3
  154. package/dist/actions/update-weather-station.cjs.map +1 -1
  155. package/dist/actions/update-weather-station.d.cts +26 -3
  156. package/dist/actions/update-weather-station.d.cts.map +1 -1
  157. package/dist/actions/update-weather-station.d.mts +26 -3
  158. package/dist/actions/update-weather-station.d.mts.map +1 -1
  159. package/dist/actions/update-weather-station.mjs +3 -3
  160. package/dist/actions/update-weather-station.mjs.map +1 -1
  161. package/dist/catalog.cjs +7 -1
  162. package/dist/catalog.cjs.map +1 -1
  163. package/dist/catalog.d.cts +8 -0
  164. package/dist/catalog.d.mts +8 -0
  165. package/dist/catalog.mjs +7 -1
  166. package/dist/catalog.mjs.map +1 -1
  167. package/package.json +2 -2
@@ -17,18 +17,18 @@ const OpenweatherApiGetCurrentWeatherInput = zod.z.object({
17
17
  const OpenweatherApiGetCurrentWeather_SysInfoSchema = zod.z.object({
18
18
  id: zod.z.number().int().describe("Internal city/system ID").nullable().optional(),
19
19
  type: zod.z.number().int().describe("Internal parameter").nullable().optional(),
20
- sunset: zod.z.number().int().describe("Sunset time (Unix UTC)"),
21
- country: zod.z.string().describe("Country code (ISO 3166)"),
22
- sunrise: zod.z.number().int().describe("Sunrise time (Unix UTC)")
20
+ sunset: zod.z.number().int().describe("Sunset time (Unix UTC)").nullable(),
21
+ country: zod.z.string().describe("Country code (ISO 3166)").nullable(),
22
+ sunrise: zod.z.number().int().describe("Sunrise time (Unix UTC)").nullable()
23
23
  });
24
24
  const OpenweatherApiGetCurrentWeather_MainInfoSchema = zod.z.object({
25
- temp: zod.z.number().describe("Temperature"),
26
- humidity: zod.z.number().int().describe("Humidity percentage"),
27
- pressure: zod.z.number().int().describe("Atmospheric pressure (hPa)"),
28
- temp_max: zod.z.number().describe("Maximum temperature at the moment"),
29
- temp_min: zod.z.number().describe("Minimum temperature at the moment"),
25
+ temp: zod.z.number().describe("Temperature").nullable(),
26
+ humidity: zod.z.number().int().describe("Humidity percentage").nullable(),
27
+ pressure: zod.z.number().int().describe("Atmospheric pressure (hPa)").nullable(),
28
+ temp_max: zod.z.number().describe("Maximum temperature at the moment").nullable(),
29
+ temp_min: zod.z.number().describe("Minimum temperature at the moment").nullable(),
30
30
  sea_level: zod.z.number().int().describe("Sea level pressure (hPa)").nullable().optional(),
31
- feels_like: zod.z.number().describe("Human perception of temperature"),
31
+ feels_like: zod.z.number().describe("Human perception of temperature").nullable(),
32
32
  grnd_level: zod.z.number().int().describe("Ground level pressure (hPa)").nullable().optional()
33
33
  });
34
34
  const OpenweatherApiGetCurrentWeather_RainSchema = zod.z.object({
@@ -40,36 +40,36 @@ const OpenweatherApiGetCurrentWeather_SnowSchema = zod.z.object({
40
40
  "3h": zod.z.number().describe("Snow volume for the last 3 hours").nullable().optional()
41
41
  });
42
42
  const OpenweatherApiGetCurrentWeather_WindSchema = zod.z.object({
43
- deg: zod.z.number().int().describe("Wind direction, degrees"),
43
+ deg: zod.z.number().int().describe("Wind direction, degrees").nullable(),
44
44
  gust: zod.z.number().describe("Wind gust speed").nullable().optional(),
45
- speed: zod.z.number().describe("Wind speed")
45
+ speed: zod.z.number().describe("Wind speed").nullable()
46
46
  });
47
47
  const OpenweatherApiGetCurrentWeather_CoordSchema = zod.z.object({
48
- lat: zod.z.number().describe("Latitude"),
49
- lon: zod.z.number().describe("Longitude")
48
+ lat: zod.z.number().describe("Latitude").nullable(),
49
+ lon: zod.z.number().describe("Longitude").nullable()
50
50
  });
51
- const OpenweatherApiGetCurrentWeather_CloudsSchema = zod.z.object({ all: zod.z.number().int().describe("Cloudiness percentage") });
51
+ const OpenweatherApiGetCurrentWeather_CloudsSchema = zod.z.object({ all: zod.z.number().int().describe("Cloudiness percentage").nullable() });
52
52
  const OpenweatherApiGetCurrentWeather_WeatherItemSchema = zod.z.object({
53
- id: zod.z.number().int().describe("Weather condition ID"),
54
- icon: zod.z.string().describe("Weather icon ID"),
55
- main: zod.z.string().describe("Group of weather parameters, e.g., Rain, Snow"),
56
- description: zod.z.string().describe("Weather condition description")
53
+ id: zod.z.number().int().describe("Weather condition ID").nullable(),
54
+ icon: zod.z.string().describe("Weather icon ID").nullable(),
55
+ main: zod.z.string().describe("Group of weather parameters, e.g., Rain, Snow").nullable(),
56
+ description: zod.z.string().describe("Weather condition description").nullable()
57
57
  });
58
58
  const OpenweatherApiGetCurrentWeatherOutput = zod.z.object({
59
- dt: zod.z.number().int().describe("Time of data calculation (Unix UTC)"),
60
- id: zod.z.number().int().describe("City ID"),
61
- cod: zod.z.number().int().describe("Internal response code"),
59
+ dt: zod.z.number().int().describe("Time of data calculation (Unix UTC)").nullable(),
60
+ id: zod.z.number().int().describe("City ID").nullable(),
61
+ cod: zod.z.number().int().describe("Internal response code").nullable(),
62
62
  sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),
63
- base: zod.z.string().describe("Internal parameter"),
63
+ base: zod.z.string().describe("Internal parameter").nullable(),
64
64
  main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),
65
- name: zod.z.string().describe("City name"),
65
+ name: zod.z.string().describe("City name").nullable(),
66
66
  rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),
67
67
  snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),
68
68
  wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),
69
69
  coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),
70
70
  clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),
71
71
  weather: zod.z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),
72
- timezone: zod.z.number().int().describe("Shift in seconds from UTC"),
72
+ timezone: zod.z.number().int().describe("Shift in seconds from UTC").nullable(),
73
73
  visibility: zod.z.number().int().describe("Visibility in meters").nullable().optional()
74
74
  });
75
75
  const openweatherApiGetCurrentWeather = require_action.action("OPENWEATHER_API_GET_CURRENT_WEATHER", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-weather.cjs","names":["z","action"],"sources":["../../src/actions/get-current-weather.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetCurrentWeatherInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"City name, state code and country code, e.g., 'London,uk'\").optional(),\n id: z.number().int().describe(\"City ID, e.g., 2172797\").optional(),\n lat: z.number().describe(\"Geographic coordinate latitude, e.g., 35.0\").optional(),\n lon: z.number().describe(\"Geographic coordinate longitude, e.g., 139.0\").optional(),\n zip: z.string().describe(\"Zip code and country code, e.g., '94040,us'\").optional(),\n lang: z.string().describe(\"Language for the response (ISO 639-1 code, e.g., 'en')\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement. 'standard' (default), 'metric', or 'imperial'\").optional(),\n}).describe(\"Request parameters to retrieve current weather data.\\nProvide exactly one location identifier: city name (q), city ID, geographic coordinates (lat & lon), or zip code.\");\nconst OpenweatherApiGetCurrentWeather_SysInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal city/system ID\").nullable().optional(),\n type: z.number().int().describe(\"Internal parameter\").nullable().optional(),\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});\nconst OpenweatherApiGetCurrentWeather_MainInfoSchema: z.ZodTypeAny = z.object({\n temp: z.number().describe(\"Temperature\"),\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(\"Sea level pressure (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\"),\n grnd_level: z.number().int().describe(\"Ground level pressure (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_RainSchema: z.ZodTypeAny = z.object({\n \"1h\": z.number().describe(\"Rain volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Rain volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_SnowSchema: z.ZodTypeAny = z.object({\n \"1h\": z.number().describe(\"Snow volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Snow volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_WindSchema: z.ZodTypeAny = z.object({\n deg: z.number().int().describe(\"Wind direction, degrees\"),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\"),\n});\nconst OpenweatherApiGetCurrentWeather_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lon: z.number().describe(\"Longitude\"),\n});\nconst OpenweatherApiGetCurrentWeather_CloudsSchema: z.ZodTypeAny = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\"),\n});\nconst OpenweatherApiGetCurrentWeather_WeatherItemSchema: 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, e.g., Rain, Snow\"),\n description: z.string().describe(\"Weather condition description\"),\n});\nexport const OpenweatherApiGetCurrentWeatherOutput: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of data calculation (Unix UTC)\"),\n id: z.number().int().describe(\"City ID\"),\n cod: z.number().int().describe(\"Internal response code\"),\n sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),\n base: z.string().describe(\"Internal parameter\"),\n main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),\n name: z.string().describe(\"City name\"),\n rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),\n snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),\n wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),\n coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),\n clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),\n weather: z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\"),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\n\nexport const openweatherApiGetCurrentWeather = action(\"OPENWEATHER_API_GET_CURRENT_WEATHER\", {\n slug: \"openweather_api-get-current-weather\",\n name: \"Get Current Weather\",\n description: \"Tool to retrieve current weather data for a location. Use when you need up-to-the-minute weather info. Exactly one location identifier must be provided per call: either `q`, `id`, `zip`, or the pair `lat`+`lon`. Passing multiple identifiers causes errors or ambiguous matches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AAO,CAAC,CAAC,SAAS,WAAW;CACrC,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,2CAA2C,SAAS;CAC1D,OAAO,4CAA4C,SAAS;CAC5D,QAAQ,6CAA6C,SAAS;CAC9D,SAASA,IAAAA,EAAE,MAAM,iDAAiD;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-current-weather.cjs","names":["z","action"],"sources":["../../src/actions/get-current-weather.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetCurrentWeatherInput = z.object({\n q: z.string().describe(\"City name, state code and country code, e.g., 'London,uk'\").optional(),\n id: z.number().int().describe(\"City ID, e.g., 2172797\").optional(),\n lat: z.number().describe(\"Geographic coordinate latitude, e.g., 35.0\").optional(),\n lon: z.number().describe(\"Geographic coordinate longitude, e.g., 139.0\").optional(),\n zip: z.string().describe(\"Zip code and country code, e.g., '94040,us'\").optional(),\n lang: z.string().describe(\"Language for the response (ISO 639-1 code, e.g., 'en')\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement. 'standard' (default), 'metric', or 'imperial'\").optional(),\n}).describe(\"Request parameters to retrieve current weather data.\\nProvide exactly one location identifier: city name (q), city ID, geographic coordinates (lat & lon), or zip code.\");\nconst OpenweatherApiGetCurrentWeather_SysInfoSchema = z.object({\n id: z.number().int().describe(\"Internal city/system ID\").nullable().optional(),\n type: z.number().int().describe(\"Internal parameter\").nullable().optional(),\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});\nconst OpenweatherApiGetCurrentWeather_MainInfoSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\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(\"Sea level pressure (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Ground level pressure (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_RainSchema = z.object({\n \"1h\": z.number().describe(\"Rain volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Rain volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_SnowSchema = z.object({\n \"1h\": z.number().describe(\"Snow volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Snow volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction, degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_WeatherItemSchema = 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, e.g., Rain, Snow\").nullable(),\n description: z.string().describe(\"Weather condition description\").nullable(),\n});\nexport const OpenweatherApiGetCurrentWeatherOutput = z.object({\n dt: z.number().int().describe(\"Time of data calculation (Unix UTC)\").nullable(),\n id: z.number().int().describe(\"City ID\").nullable(),\n cod: z.number().int().describe(\"Internal response code\").nullable(),\n sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),\n base: z.string().describe(\"Internal parameter\").nullable(),\n main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),\n name: z.string().describe(\"City name\").nullable(),\n rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),\n snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),\n wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),\n coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),\n clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),\n weather: z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\n\nexport const openweatherApiGetCurrentWeather = action(\"OPENWEATHER_API_GET_CURRENT_WEATHER\", {\n slug: \"openweather_api-get-current-weather\",\n name: \"Get Current Weather\",\n description: \"Tool to retrieve current weather data for a location. Use when you need up-to-the-minute weather info. Exactly one location identifier must be provided per call: either `q`, `id`, `zip`, or the pair `lat`+`lon`. Passing multiple identifiers causes errors or ambiguous matches.\",\n input: OpenweatherApiGetCurrentWeatherInput,\n output: OpenweatherApiGetCurrentWeatherOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7F,IAAIA,IAAAA,EAAE,O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AC,CAAC,SAAS;CAClE,KAAK,8CAA8C,SAAS;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,MAAM,+CAA+C,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;CAChD,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,2CAA2C,SAAS;CAC1D,OAAO,4CAA4C,SAAS;CAC5D,QAAQ,6CAA6C,SAAS;CAC9D,SAASA,IAAAA,EAAE,MAAM,iDAAiD;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,80 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-current-weather.d.ts
4
- declare const OpenweatherApiGetCurrentWeatherInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetCurrentWeatherOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetCurrentWeather: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetCurrentWeatherInput: z.ZodObject<{
5
+ q: z.ZodOptional<z.ZodString>;
6
+ id: z.ZodOptional<z.ZodNumber>;
7
+ lat: z.ZodOptional<z.ZodNumber>;
8
+ lon: z.ZodOptional<z.ZodNumber>;
9
+ zip: z.ZodOptional<z.ZodString>;
10
+ lang: z.ZodOptional<z.ZodString>;
11
+ units: z.ZodOptional<z.ZodEnum<{
12
+ standard: "standard";
13
+ metric: "metric";
14
+ imperial: "imperial";
15
+ }>>;
16
+ }, z.core.$strip>;
17
+ declare const OpenweatherApiGetCurrentWeatherOutput: z.ZodObject<{
18
+ dt: z.ZodNullable<z.ZodNumber>;
19
+ id: z.ZodNullable<z.ZodNumber>;
20
+ cod: z.ZodNullable<z.ZodNumber>;
21
+ sys: z.ZodNullable<z.ZodObject<{
22
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ sunset: z.ZodNullable<z.ZodNumber>;
25
+ country: z.ZodNullable<z.ZodString>;
26
+ sunrise: z.ZodNullable<z.ZodNumber>;
27
+ }, z.core.$strip>>;
28
+ base: z.ZodNullable<z.ZodString>;
29
+ main: z.ZodNullable<z.ZodObject<{
30
+ temp: z.ZodNullable<z.ZodNumber>;
31
+ humidity: z.ZodNullable<z.ZodNumber>;
32
+ pressure: z.ZodNullable<z.ZodNumber>;
33
+ temp_max: z.ZodNullable<z.ZodNumber>;
34
+ temp_min: z.ZodNullable<z.ZodNumber>;
35
+ sea_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ feels_like: z.ZodNullable<z.ZodNumber>;
37
+ grnd_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ }, z.core.$strip>>;
39
+ name: z.ZodNullable<z.ZodString>;
40
+ rain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ "1h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ "3h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ }, z.core.$strip>>>;
44
+ snow: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ "1h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ "3h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ }, z.core.$strip>>>;
48
+ wind: z.ZodNullable<z.ZodObject<{
49
+ deg: z.ZodNullable<z.ZodNumber>;
50
+ gust: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ speed: z.ZodNullable<z.ZodNumber>;
52
+ }, z.core.$strip>>;
53
+ coord: z.ZodNullable<z.ZodObject<{
54
+ lat: z.ZodNullable<z.ZodNumber>;
55
+ lon: z.ZodNullable<z.ZodNumber>;
56
+ }, z.core.$strip>>;
57
+ clouds: z.ZodNullable<z.ZodObject<{
58
+ all: z.ZodNullable<z.ZodNumber>;
59
+ }, z.core.$strip>>;
60
+ weather: z.ZodArray<z.ZodObject<{
61
+ id: z.ZodNullable<z.ZodNumber>;
62
+ icon: z.ZodNullable<z.ZodString>;
63
+ main: z.ZodNullable<z.ZodString>;
64
+ description: z.ZodNullable<z.ZodString>;
65
+ }, z.core.$strip>>;
66
+ timezone: z.ZodNullable<z.ZodNumber>;
67
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ }, z.core.$strip>;
69
+ declare const openweatherApiGetCurrentWeather: import("@keystrokehq/action").WorkflowActionDefinition<{
70
+ q?: string | undefined;
71
+ id?: number | undefined;
72
+ lat?: number | undefined;
73
+ lon?: number | undefined;
74
+ zip?: string | undefined;
75
+ lang?: string | undefined;
76
+ units?: "standard" | "metric" | "imperial" | undefined;
77
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
78
  //#endregion
8
79
  export { openweatherApiGetCurrentWeather };
9
80
  //# sourceMappingURL=get-current-weather.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-weather.d.cts","names":[],"sources":["../../src/actions/get-current-weather.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAQiI;AAAA,cA4CzK,qCAAA,EAAuC,CAAA,CAAE,UAgBpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-current-weather.d.cts","names":[],"sources":["../../src/actions/get-current-weather.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAoDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,80 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-current-weather.d.ts
4
- declare const OpenweatherApiGetCurrentWeatherInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetCurrentWeatherOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetCurrentWeather: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetCurrentWeatherInput: z.ZodObject<{
5
+ q: z.ZodOptional<z.ZodString>;
6
+ id: z.ZodOptional<z.ZodNumber>;
7
+ lat: z.ZodOptional<z.ZodNumber>;
8
+ lon: z.ZodOptional<z.ZodNumber>;
9
+ zip: z.ZodOptional<z.ZodString>;
10
+ lang: z.ZodOptional<z.ZodString>;
11
+ units: z.ZodOptional<z.ZodEnum<{
12
+ standard: "standard";
13
+ metric: "metric";
14
+ imperial: "imperial";
15
+ }>>;
16
+ }, z.core.$strip>;
17
+ declare const OpenweatherApiGetCurrentWeatherOutput: z.ZodObject<{
18
+ dt: z.ZodNullable<z.ZodNumber>;
19
+ id: z.ZodNullable<z.ZodNumber>;
20
+ cod: z.ZodNullable<z.ZodNumber>;
21
+ sys: z.ZodNullable<z.ZodObject<{
22
+ id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ sunset: z.ZodNullable<z.ZodNumber>;
25
+ country: z.ZodNullable<z.ZodString>;
26
+ sunrise: z.ZodNullable<z.ZodNumber>;
27
+ }, z.core.$strip>>;
28
+ base: z.ZodNullable<z.ZodString>;
29
+ main: z.ZodNullable<z.ZodObject<{
30
+ temp: z.ZodNullable<z.ZodNumber>;
31
+ humidity: z.ZodNullable<z.ZodNumber>;
32
+ pressure: z.ZodNullable<z.ZodNumber>;
33
+ temp_max: z.ZodNullable<z.ZodNumber>;
34
+ temp_min: z.ZodNullable<z.ZodNumber>;
35
+ sea_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
+ feels_like: z.ZodNullable<z.ZodNumber>;
37
+ grnd_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
38
+ }, z.core.$strip>>;
39
+ name: z.ZodNullable<z.ZodString>;
40
+ rain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ "1h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ "3h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
+ }, z.core.$strip>>>;
44
+ snow: z.ZodOptional<z.ZodNullable<z.ZodObject<{
45
+ "1h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ "3h": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ }, z.core.$strip>>>;
48
+ wind: z.ZodNullable<z.ZodObject<{
49
+ deg: z.ZodNullable<z.ZodNumber>;
50
+ gust: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ speed: z.ZodNullable<z.ZodNumber>;
52
+ }, z.core.$strip>>;
53
+ coord: z.ZodNullable<z.ZodObject<{
54
+ lat: z.ZodNullable<z.ZodNumber>;
55
+ lon: z.ZodNullable<z.ZodNumber>;
56
+ }, z.core.$strip>>;
57
+ clouds: z.ZodNullable<z.ZodObject<{
58
+ all: z.ZodNullable<z.ZodNumber>;
59
+ }, z.core.$strip>>;
60
+ weather: z.ZodArray<z.ZodObject<{
61
+ id: z.ZodNullable<z.ZodNumber>;
62
+ icon: z.ZodNullable<z.ZodString>;
63
+ main: z.ZodNullable<z.ZodString>;
64
+ description: z.ZodNullable<z.ZodString>;
65
+ }, z.core.$strip>>;
66
+ timezone: z.ZodNullable<z.ZodNumber>;
67
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
68
+ }, z.core.$strip>;
69
+ declare const openweatherApiGetCurrentWeather: import("@keystrokehq/action").WorkflowActionDefinition<{
70
+ q?: string | undefined;
71
+ id?: number | undefined;
72
+ lat?: number | undefined;
73
+ lon?: number | undefined;
74
+ zip?: string | undefined;
75
+ lang?: string | undefined;
76
+ units?: "standard" | "metric" | "imperial" | undefined;
77
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
78
  //#endregion
8
79
  export { openweatherApiGetCurrentWeather };
9
80
  //# sourceMappingURL=get-current-weather.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-weather.d.mts","names":[],"sources":["../../src/actions/get-current-weather.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAQiI;AAAA,cA4CzK,qCAAA,EAAuC,CAAA,CAAE,UAgBpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-current-weather.d.mts","names":[],"sources":["../../src/actions/get-current-weather.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAoDpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBrC,+BAAA,gCAA+B,wBAAA"}
@@ -17,18 +17,18 @@ const OpenweatherApiGetCurrentWeatherInput = z.object({
17
17
  const OpenweatherApiGetCurrentWeather_SysInfoSchema = z.object({
18
18
  id: z.number().int().describe("Internal city/system ID").nullable().optional(),
19
19
  type: z.number().int().describe("Internal parameter").nullable().optional(),
20
- sunset: z.number().int().describe("Sunset time (Unix UTC)"),
21
- country: z.string().describe("Country code (ISO 3166)"),
22
- sunrise: z.number().int().describe("Sunrise time (Unix UTC)")
20
+ sunset: z.number().int().describe("Sunset time (Unix UTC)").nullable(),
21
+ country: z.string().describe("Country code (ISO 3166)").nullable(),
22
+ sunrise: z.number().int().describe("Sunrise time (Unix UTC)").nullable()
23
23
  });
24
24
  const OpenweatherApiGetCurrentWeather_MainInfoSchema = z.object({
25
- temp: z.number().describe("Temperature"),
26
- humidity: z.number().int().describe("Humidity percentage"),
27
- pressure: z.number().int().describe("Atmospheric pressure (hPa)"),
28
- temp_max: z.number().describe("Maximum temperature at the moment"),
29
- temp_min: z.number().describe("Minimum temperature at the moment"),
25
+ temp: z.number().describe("Temperature").nullable(),
26
+ humidity: z.number().int().describe("Humidity percentage").nullable(),
27
+ pressure: z.number().int().describe("Atmospheric pressure (hPa)").nullable(),
28
+ temp_max: z.number().describe("Maximum temperature at the moment").nullable(),
29
+ temp_min: z.number().describe("Minimum temperature at the moment").nullable(),
30
30
  sea_level: z.number().int().describe("Sea level pressure (hPa)").nullable().optional(),
31
- feels_like: z.number().describe("Human perception of temperature"),
31
+ feels_like: z.number().describe("Human perception of temperature").nullable(),
32
32
  grnd_level: z.number().int().describe("Ground level pressure (hPa)").nullable().optional()
33
33
  });
34
34
  const OpenweatherApiGetCurrentWeather_RainSchema = z.object({
@@ -40,20 +40,20 @@ const OpenweatherApiGetCurrentWeather_SnowSchema = z.object({
40
40
  "3h": z.number().describe("Snow volume for the last 3 hours").nullable().optional()
41
41
  });
42
42
  const OpenweatherApiGetCurrentWeather_WindSchema = z.object({
43
- deg: z.number().int().describe("Wind direction, degrees"),
43
+ deg: z.number().int().describe("Wind direction, degrees").nullable(),
44
44
  gust: z.number().describe("Wind gust speed").nullable().optional(),
45
- speed: z.number().describe("Wind speed")
45
+ speed: z.number().describe("Wind speed").nullable()
46
46
  });
47
47
  const OpenweatherApiGetCurrentWeather_CoordSchema = z.object({
48
- lat: z.number().describe("Latitude"),
49
- lon: z.number().describe("Longitude")
48
+ lat: z.number().describe("Latitude").nullable(),
49
+ lon: z.number().describe("Longitude").nullable()
50
50
  });
51
- const OpenweatherApiGetCurrentWeather_CloudsSchema = z.object({ all: z.number().int().describe("Cloudiness percentage") });
51
+ const OpenweatherApiGetCurrentWeather_CloudsSchema = z.object({ all: z.number().int().describe("Cloudiness percentage").nullable() });
52
52
  const OpenweatherApiGetCurrentWeather_WeatherItemSchema = z.object({
53
- id: z.number().int().describe("Weather condition ID"),
54
- icon: z.string().describe("Weather icon ID"),
55
- main: z.string().describe("Group of weather parameters, e.g., Rain, Snow"),
56
- description: z.string().describe("Weather condition description")
53
+ id: z.number().int().describe("Weather condition ID").nullable(),
54
+ icon: z.string().describe("Weather icon ID").nullable(),
55
+ main: z.string().describe("Group of weather parameters, e.g., Rain, Snow").nullable(),
56
+ description: z.string().describe("Weather condition description").nullable()
57
57
  });
58
58
  const openweatherApiGetCurrentWeather = action("OPENWEATHER_API_GET_CURRENT_WEATHER", {
59
59
  slug: "openweather_api-get-current-weather",
@@ -61,20 +61,20 @@ const openweatherApiGetCurrentWeather = action("OPENWEATHER_API_GET_CURRENT_WEAT
61
61
  description: "Tool to retrieve current weather data for a location. Use when you need up-to-the-minute weather info. Exactly one location identifier must be provided per call: either `q`, `id`, `zip`, or the pair `lat`+`lon`. Passing multiple identifiers causes errors or ambiguous matches.",
62
62
  input: OpenweatherApiGetCurrentWeatherInput,
63
63
  output: z.object({
64
- dt: z.number().int().describe("Time of data calculation (Unix UTC)"),
65
- id: z.number().int().describe("City ID"),
66
- cod: z.number().int().describe("Internal response code"),
64
+ dt: z.number().int().describe("Time of data calculation (Unix UTC)").nullable(),
65
+ id: z.number().int().describe("City ID").nullable(),
66
+ cod: z.number().int().describe("Internal response code").nullable(),
67
67
  sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),
68
- base: z.string().describe("Internal parameter"),
68
+ base: z.string().describe("Internal parameter").nullable(),
69
69
  main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),
70
- name: z.string().describe("City name"),
70
+ name: z.string().describe("City name").nullable(),
71
71
  rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),
72
72
  snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),
73
73
  wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),
74
74
  coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),
75
75
  clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),
76
76
  weather: z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),
77
- timezone: z.number().int().describe("Shift in seconds from UTC"),
77
+ timezone: z.number().int().describe("Shift in seconds from UTC").nullable(),
78
78
  visibility: z.number().int().describe("Visibility in meters").nullable().optional()
79
79
  })
80
80
  });
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-weather.mjs","names":[],"sources":["../../src/actions/get-current-weather.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetCurrentWeatherInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"City name, state code and country code, e.g., 'London,uk'\").optional(),\n id: z.number().int().describe(\"City ID, e.g., 2172797\").optional(),\n lat: z.number().describe(\"Geographic coordinate latitude, e.g., 35.0\").optional(),\n lon: z.number().describe(\"Geographic coordinate longitude, e.g., 139.0\").optional(),\n zip: z.string().describe(\"Zip code and country code, e.g., '94040,us'\").optional(),\n lang: z.string().describe(\"Language for the response (ISO 639-1 code, e.g., 'en')\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement. 'standard' (default), 'metric', or 'imperial'\").optional(),\n}).describe(\"Request parameters to retrieve current weather data.\\nProvide exactly one location identifier: city name (q), city ID, geographic coordinates (lat & lon), or zip code.\");\nconst OpenweatherApiGetCurrentWeather_SysInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Internal city/system ID\").nullable().optional(),\n type: z.number().int().describe(\"Internal parameter\").nullable().optional(),\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});\nconst OpenweatherApiGetCurrentWeather_MainInfoSchema: z.ZodTypeAny = z.object({\n temp: z.number().describe(\"Temperature\"),\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(\"Sea level pressure (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\"),\n grnd_level: z.number().int().describe(\"Ground level pressure (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_RainSchema: z.ZodTypeAny = z.object({\n \"1h\": z.number().describe(\"Rain volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Rain volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_SnowSchema: z.ZodTypeAny = z.object({\n \"1h\": z.number().describe(\"Snow volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Snow volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_WindSchema: z.ZodTypeAny = z.object({\n deg: z.number().int().describe(\"Wind direction, degrees\"),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\"),\n});\nconst OpenweatherApiGetCurrentWeather_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lon: z.number().describe(\"Longitude\"),\n});\nconst OpenweatherApiGetCurrentWeather_CloudsSchema: z.ZodTypeAny = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\"),\n});\nconst OpenweatherApiGetCurrentWeather_WeatherItemSchema: 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, e.g., Rain, Snow\"),\n description: z.string().describe(\"Weather condition description\"),\n});\nexport const OpenweatherApiGetCurrentWeatherOutput: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of data calculation (Unix UTC)\"),\n id: z.number().int().describe(\"City ID\"),\n cod: z.number().int().describe(\"Internal response code\"),\n sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),\n base: z.string().describe(\"Internal parameter\"),\n main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),\n name: z.string().describe(\"City name\"),\n rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),\n snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),\n wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),\n coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),\n clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),\n weather: z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\"),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\n\nexport const openweatherApiGetCurrentWeather = action(\"OPENWEATHER_API_GET_CURRENT_WEATHER\", {\n slug: \"openweather_api-get-current-weather\",\n name: \"Get Current Weather\",\n description: \"Tool to retrieve current weather data for a location. Use when you need up-to-the-minute weather info. Exactly one location identifier must be provided per call: either `q`, `id`, `zip`, or the pair `lat`+`lon`. Passing multiple identifiers causes errors or ambiguous matches.\",\n input: OpenweatherApiGetCurrentWeatherInput,\n output: OpenweatherApiGetCurrentWeatherOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACzE,GAAG,EAA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names":[],"sources":["../../src/actions/get-current-weather.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetCurrentWeatherInput = z.object({\n q: z.string().describe(\"City name, state code and country code, e.g., 'London,uk'\").optional(),\n id: z.number().int().describe(\"City ID, e.g., 2172797\").optional(),\n lat: z.number().describe(\"Geographic coordinate latitude, e.g., 35.0\").optional(),\n lon: z.number().describe(\"Geographic coordinate longitude, e.g., 139.0\").optional(),\n zip: z.string().describe(\"Zip code and country code, e.g., '94040,us'\").optional(),\n lang: z.string().describe(\"Language for the response (ISO 639-1 code, e.g., 'en')\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement. 'standard' (default), 'metric', or 'imperial'\").optional(),\n}).describe(\"Request parameters to retrieve current weather data.\\nProvide exactly one location identifier: city name (q), city ID, geographic coordinates (lat & lon), or zip code.\");\nconst OpenweatherApiGetCurrentWeather_SysInfoSchema = z.object({\n id: z.number().int().describe(\"Internal city/system ID\").nullable().optional(),\n type: z.number().int().describe(\"Internal parameter\").nullable().optional(),\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});\nconst OpenweatherApiGetCurrentWeather_MainInfoSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\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(\"Sea level pressure (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Ground level pressure (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_RainSchema = z.object({\n \"1h\": z.number().describe(\"Rain volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Rain volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_SnowSchema = z.object({\n \"1h\": z.number().describe(\"Snow volume for the last 1 hour\").nullable().optional(),\n \"3h\": z.number().describe(\"Snow volume for the last 3 hours\").nullable().optional(),\n});\nconst OpenweatherApiGetCurrentWeather_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction, degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n});\nconst OpenweatherApiGetCurrentWeather_WeatherItemSchema = 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, e.g., Rain, Snow\").nullable(),\n description: z.string().describe(\"Weather condition description\").nullable(),\n});\nexport const OpenweatherApiGetCurrentWeatherOutput = z.object({\n dt: z.number().int().describe(\"Time of data calculation (Unix UTC)\").nullable(),\n id: z.number().int().describe(\"City ID\").nullable(),\n cod: z.number().int().describe(\"Internal response code\").nullable(),\n sys: OpenweatherApiGetCurrentWeather_SysInfoSchema.nullable(),\n base: z.string().describe(\"Internal parameter\").nullable(),\n main: OpenweatherApiGetCurrentWeather_MainInfoSchema.nullable(),\n name: z.string().describe(\"City name\").nullable(),\n rain: OpenweatherApiGetCurrentWeather_RainSchema.nullable().optional(),\n snow: OpenweatherApiGetCurrentWeather_SnowSchema.nullable().optional(),\n wind: OpenweatherApiGetCurrentWeather_WindSchema.nullable(),\n coord: OpenweatherApiGetCurrentWeather_CoordSchema.nullable(),\n clouds: OpenweatherApiGetCurrentWeather_CloudsSchema.nullable(),\n weather: z.array(OpenweatherApiGetCurrentWeather_WeatherItemSchema),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\n\nexport const openweatherApiGetCurrentWeather = action(\"OPENWEATHER_API_GET_CURRENT_WEATHER\", {\n slug: \"openweather_api-get-current-weather\",\n name: \"Get Current Weather\",\n description: \"Tool to retrieve current weather data for a location. Use when you need up-to-the-minute weather info. Exactly one location identifier must be provided per call: either `q`, `id`, `zip`, or the pair `lat`+`lon`. Passing multiple identifiers causes errors or ambiguous matches.\",\n input: OpenweatherApiGetCurrentWeatherInput,\n output: OpenweatherApiGetCurrentWeatherOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC7F,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAClF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC7F,OAAO,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AAC7I,CAAC,CAAC,CAAC,SAAS,yKAAyK;AACrL,MAAM,gDAAgD,EAAE,OAAO;CAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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CAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAvBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC9E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,SAAS,CAAC,CAAC,SAAS;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAClE,KAAK,8CAA8C,SAAS;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EACzD,MAAM,+CAA+C,SAAS;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;EAChD,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACrE,MAAM,2CAA2C,SAAS,CAAC,CAAC,SAAS;EACrE,MAAM,2CAA2C,SAAS;EAC1D,OAAO,4CAA4C,SAAS;EAC5D,QAAQ,6CAA6C,SAAS;EAC9D,SAAS,EAAE,MAAM,iDAAiD;EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,CAOU;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/get-geocoding-by-zip.ts
4
4
  const OpenweatherApiGetGeocodingByZipInput = zod.z.object({ zip: zod.z.string().describe("Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').") }).describe("Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates.");
5
5
  const OpenweatherApiGetGeocodingByZipOutput = zod.z.object({
6
- lat: zod.z.number().describe("Latitude of the centroid of found zip/post code"),
7
- lon: zod.z.number().describe("Longitude of the centroid of found zip/post code"),
8
- zip: zod.z.string().describe("Specified zip/post code from the request"),
9
- name: zod.z.string().describe("Name of the found area"),
10
- country: zod.z.string().describe("Country code of the found zip/post code")
6
+ lat: zod.z.number().describe("Latitude of the centroid of found zip/post code").nullable(),
7
+ lon: zod.z.number().describe("Longitude of the centroid of found zip/post code").nullable(),
8
+ zip: zod.z.string().describe("Specified zip/post code from the request").nullable(),
9
+ name: zod.z.string().describe("Name of the found area").nullable(),
10
+ country: zod.z.string().describe("Country code of the found zip/post code").nullable()
11
11
  }).describe("Response containing geographic coordinates and location information for the specified zip/post code.");
12
12
  const openweatherApiGetGeocodingByZip = require_action.action("OPENWEATHER_API_GET_GEOCODING_BY_ZIP", {
13
13
  slug: "openweather_api-get-geocoding-by-zip",
@@ -1 +1 @@
1
- {"version":3,"file":"get-geocoding-by-zip.cjs","names":["z","action"],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingByZipInput: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').\"),\n}).describe(\"Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates.\");\nexport const OpenweatherApiGetGeocodingByZipOutput: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the centroid of found zip/post code\"),\n lon: z.number().describe(\"Longitude of the centroid of found zip/post code\"),\n zip: z.string().describe(\"Specified zip/post code from the request\"),\n name: z.string().describe(\"Name of the found area\"),\n country: z.string().describe(\"Country code of the found zip/post code\"),\n}).describe(\"Response containing geographic coordinates and location information for the specified zip/post code.\");\n\nexport const openweatherApiGetGeocodingByZip = action(\"OPENWEATHER_API_GET_GEOCODING_BY_ZIP\", {\n slug: \"openweather_api-get-geocoding-by-zip\",\n name: \"Get Geocoding by Zip Code\",\n description: \"Tool to convert zip/post code into geographic coordinates. Use when you need latitude and longitude for a specific postal code.\",\n input: OpenweatherApiGetGeocodingByZipInput,\n output: OpenweatherApiGetGeocodingByZipOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO,EACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EACxI,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC3E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AACxE,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAElH,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-geocoding-by-zip.cjs","names":["z","action"],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingByZipInput = z.object({\n zip: z.string().describe(\"Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').\"),\n}).describe(\"Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates.\");\nexport const OpenweatherApiGetGeocodingByZipOutput = z.object({\n lat: z.number().describe(\"Latitude of the centroid of found zip/post code\").nullable(),\n lon: z.number().describe(\"Longitude of the centroid of found zip/post code\").nullable(),\n zip: z.string().describe(\"Specified zip/post code from the request\").nullable(),\n name: z.string().describe(\"Name of the found area\").nullable(),\n country: z.string().describe(\"Country code of the found zip/post code\").nullable(),\n}).describe(\"Response containing geographic coordinates and location information for the specified zip/post code.\");\n\nexport const openweatherApiGetGeocodingByZip = action(\"OPENWEATHER_API_GET_GEOCODING_BY_ZIP\", {\n slug: \"openweather_api-get-geocoding-by-zip\",\n name: \"Get Geocoding by Zip Code\",\n description: \"Tool to convert zip/post code into geographic coordinates. Use when you need latitude and longitude for a specific postal code.\",\n input: OpenweatherApiGetGeocodingByZipInput,\n output: OpenweatherApiGetGeocodingByZipOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EACxI,CAAC,CAAC,CAAC,SAAS,wGAAwG;AACpH,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACtF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,sGAAsG;AAElH,MAAa,kCAAkCC,eAAAA,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-geocoding-by-zip.d.ts
4
- declare const OpenweatherApiGetGeocodingByZipInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetGeocodingByZipOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetGeocodingByZip: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetGeocodingByZipInput: z.ZodObject<{
5
+ zip: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OpenweatherApiGetGeocodingByZipOutput: z.ZodObject<{
8
+ lat: z.ZodNullable<z.ZodNumber>;
9
+ lon: z.ZodNullable<z.ZodNumber>;
10
+ zip: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ country: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const openweatherApiGetGeocodingByZip: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ zip: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { openweatherApiGetGeocodingByZip };
9
19
  //# sourceMappingURL=get-geocoding-by-zip.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-geocoding-by-zip.d.cts","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEgE;AAAA,cACxG,qCAAA,EAAuC,CAAA,CAAE,UAM6D;AAAA,cAEtG,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-geocoding-by-zip.d.cts","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAQrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-geocoding-by-zip.d.ts
4
- declare const OpenweatherApiGetGeocodingByZipInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetGeocodingByZipOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetGeocodingByZip: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetGeocodingByZipInput: z.ZodObject<{
5
+ zip: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const OpenweatherApiGetGeocodingByZipOutput: z.ZodObject<{
8
+ lat: z.ZodNullable<z.ZodNumber>;
9
+ lon: z.ZodNullable<z.ZodNumber>;
10
+ zip: z.ZodNullable<z.ZodString>;
11
+ name: z.ZodNullable<z.ZodString>;
12
+ country: z.ZodNullable<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const openweatherApiGetGeocodingByZip: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ zip: string;
16
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { openweatherApiGetGeocodingByZip };
9
19
  //# sourceMappingURL=get-geocoding-by-zip.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-geocoding-by-zip.d.mts","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAEgE;AAAA,cACxG,qCAAA,EAAuC,CAAA,CAAE,UAM6D;AAAA,cAEtG,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-geocoding-by-zip.d.mts","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;cAQrC,+BAAA,gCAA+B,wBAAA"}
@@ -6,11 +6,11 @@ const openweatherApiGetGeocodingByZip = action("OPENWEATHER_API_GET_GEOCODING_BY
6
6
  description: "Tool to convert zip/post code into geographic coordinates. Use when you need latitude and longitude for a specific postal code.",
7
7
  input: z.object({ zip: z.string().describe("Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').") }).describe("Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates."),
8
8
  output: z.object({
9
- lat: z.number().describe("Latitude of the centroid of found zip/post code"),
10
- lon: z.number().describe("Longitude of the centroid of found zip/post code"),
11
- zip: z.string().describe("Specified zip/post code from the request"),
12
- name: z.string().describe("Name of the found area"),
13
- country: z.string().describe("Country code of the found zip/post code")
9
+ lat: z.number().describe("Latitude of the centroid of found zip/post code").nullable(),
10
+ lon: z.number().describe("Longitude of the centroid of found zip/post code").nullable(),
11
+ zip: z.string().describe("Specified zip/post code from the request").nullable(),
12
+ name: z.string().describe("Name of the found area").nullable(),
13
+ country: z.string().describe("Country code of the found zip/post code").nullable()
14
14
  }).describe("Response containing geographic coordinates and location information for the specified zip/post code.")
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-geocoding-by-zip.mjs","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingByZipInput: z.ZodTypeAny = z.object({\n zip: z.string().describe(\"Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').\"),\n}).describe(\"Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates.\");\nexport const OpenweatherApiGetGeocodingByZipOutput: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the centroid of found zip/post code\"),\n lon: z.number().describe(\"Longitude of the centroid of found zip/post code\"),\n zip: z.string().describe(\"Specified zip/post code from the request\"),\n name: z.string().describe(\"Name of the found area\"),\n country: z.string().describe(\"Country code of the found zip/post code\"),\n}).describe(\"Response containing geographic coordinates and location information for the specified zip/post code.\");\n\nexport const openweatherApiGetGeocodingByZip = action(\"OPENWEATHER_API_GET_GEOCODING_BY_ZIP\", {\n slug: \"openweather_api-get-geocoding-by-zip\",\n name: \"Get Geocoding by Zip Code\",\n description: \"Tool to convert zip/post code into geographic coordinates. Use when you need latitude and longitude for a specific postal code.\",\n input: OpenweatherApiGetGeocodingByZipInput,\n output: OpenweatherApiGetGeocodingByZipOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfgE,EAAE,OAAO,EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EACxI,CAAC,CAAC,CAAC,SAAS,wGAaH;CACP,QAbiE,EAAE,OAAO;EAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;EAC3E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACxE,CAAC,CAAC,CAAC,SAAS,sGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-geocoding-by-zip.mjs","names":[],"sources":["../../src/actions/get-geocoding-by-zip.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingByZipInput = z.object({\n zip: z.string().describe(\"Zip/post code and country code divided by comma. Use ISO 3166 country codes (e.g., '10001,US' or 'E14,GB').\"),\n}).describe(\"Request parameters for geocoding by zip/post code to convert postal codes into geographic coordinates.\");\nexport const OpenweatherApiGetGeocodingByZipOutput = z.object({\n lat: z.number().describe(\"Latitude of the centroid of found zip/post code\").nullable(),\n lon: z.number().describe(\"Longitude of the centroid of found zip/post code\").nullable(),\n zip: z.string().describe(\"Specified zip/post code from the request\").nullable(),\n name: z.string().describe(\"Name of the found area\").nullable(),\n country: z.string().describe(\"Country code of the found zip/post code\").nullable(),\n}).describe(\"Response containing geographic coordinates and location information for the specified zip/post code.\");\n\nexport const openweatherApiGetGeocodingByZip = action(\"OPENWEATHER_API_GET_GEOCODING_BY_ZIP\", {\n slug: \"openweather_api-get-geocoding-by-zip\",\n name: \"Get Geocoding by Zip Code\",\n description: \"Tool to convert zip/post code into geographic coordinates. Use when you need latitude and longitude for a specific postal code.\",\n input: OpenweatherApiGetGeocodingByZipInput,\n output: OpenweatherApiGetGeocodingByZipOutput,\n});\n"],"mappings":";;AAeA,MAAa,kCAAkC,OAAO,wCAAwC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO,EAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EACxI,CAAC,CAAC,CAAC,SAAS,wGAaH;CACP,QAbmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACtF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,sGAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-geocoding-direct.cjs","names":["z","action"],"sources":["../../src/actions/get-geocoding-direct.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingDirectInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Location query including city name, state code and country code separated by commas (e.g., 'London,UK'). Ambiguous queries can return multiple mismatched locations; use the full three-part format 'city,state_code,country_code' (e.g., 'Springfield,IL,US') and verify the returned country/region before using coordinates downstream.\"),\n limit: z.number().int().default(5).describe(\"Number of results to return (1 to 5). Defaults to 5. Use 1 only for unambiguous locations; for ambiguous queries review all returned results to select the correct match.\").optional(),\n}).describe(\"Request parameters for direct geocoding: location name to coordinates.\");\nexport const OpenweatherApiGetGeocodingDirectOutput: z.ZodTypeAny = z.unknown();\n\nexport const openweatherApiGetGeocodingDirect = action(\"OPENWEATHER_API_GET_GEOCODING_DIRECT\", {\n slug: \"openweather_api-get-geocoding-direct\",\n name: \"Get Direct Geocoding\",\n description: \"Tool to convert a location name into geographic coordinates. Use when you need latitude and longitude for a given location after confirming the precise name.\",\n input: OpenweatherApiGetGeocodingDirectInput,\n output: OpenweatherApiGetGeocodingDirectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsDA,IAAAA,EAAE,OAAO;CAC1E,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4UAA4U;CACnW,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;AACpO,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,yCAAuDA,IAAAA,EAAE,QAAQ;AAE9E,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-geocoding-direct.cjs","names":["z","action"],"sources":["../../src/actions/get-geocoding-direct.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetGeocodingDirectInput = z.object({\n q: z.string().describe(\"Location query including city name, state code and country code separated by commas (e.g., 'London,UK'). Ambiguous queries can return multiple mismatched locations; use the full three-part format 'city,state_code,country_code' (e.g., 'Springfield,IL,US') and verify the returned country/region before using coordinates downstream.\"),\n limit: z.number().int().default(5).describe(\"Number of results to return (1 to 5). Defaults to 5. Use 1 only for unambiguous locations; for ambiguous queries review all returned results to select the correct match.\").optional(),\n}).describe(\"Request parameters for direct geocoding: location name to coordinates.\");\nexport const OpenweatherApiGetGeocodingDirectOutput = z.unknown();\n\nexport const openweatherApiGetGeocodingDirect = action(\"OPENWEATHER_API_GET_GEOCODING_DIRECT\", {\n slug: \"openweather_api-get-geocoding-direct\",\n name: \"Get Direct Geocoding\",\n description: \"Tool to convert a location name into geographic coordinates. Use when you need latitude and longitude for a given location after confirming the precise name.\",\n input: OpenweatherApiGetGeocodingDirectInput,\n output: OpenweatherApiGetGeocodingDirectOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4UAA4U;CACnW,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;AACpO,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,yCAAyCA,IAAAA,EAAE,QAAQ;AAEhE,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,15 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-geocoding-direct.d.ts
4
- declare const OpenweatherApiGetGeocodingDirectInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetGeocodingDirectOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetGeocodingDirect: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetGeocodingDirectInput: z.ZodObject<{
5
+ q: z.ZodString;
6
+ limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ }, z.core.$strip>;
8
+ declare const OpenweatherApiGetGeocodingDirectOutput: z.ZodUnknown;
9
+ declare const openweatherApiGetGeocodingDirect: import("@keystrokehq/action").WorkflowActionDefinition<{
10
+ q: string;
11
+ limit?: number | undefined;
12
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
13
  //#endregion
8
14
  export { openweatherApiGetGeocodingDirect };
9
15
  //# sourceMappingURL=get-geocoding-direct.d.cts.map