@keystrokehq/openweather_api 0.1.4 → 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.
Files changed (181) 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 -0
  4. package/dist/actions/delete-weather-station.cjs.map +1 -1
  5. package/dist/actions/delete-weather-station.d.cts +3 -3
  6. package/dist/actions/delete-weather-station.d.cts.map +1 -1
  7. package/dist/actions/delete-weather-station.d.mts +3 -3
  8. package/dist/actions/delete-weather-station.d.mts.map +1 -1
  9. package/dist/actions/delete-weather-station.mjs +1 -0
  10. package/dist/actions/delete-weather-station.mjs.map +1 -1
  11. package/dist/actions/get-air-pollution-current.cjs +1 -0
  12. package/dist/actions/get-air-pollution-current.cjs.map +1 -1
  13. package/dist/actions/get-air-pollution-current.d.cts +3 -4
  14. package/dist/actions/get-air-pollution-current.d.cts.map +1 -1
  15. package/dist/actions/get-air-pollution-current.d.mts +3 -4
  16. package/dist/actions/get-air-pollution-current.d.mts.map +1 -1
  17. package/dist/actions/get-air-pollution-current.mjs +1 -0
  18. package/dist/actions/get-air-pollution-current.mjs.map +1 -1
  19. package/dist/actions/get-air-pollution-forecast.cjs +1 -0
  20. package/dist/actions/get-air-pollution-forecast.cjs.map +1 -1
  21. package/dist/actions/get-air-pollution-forecast.d.cts +3 -4
  22. package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -1
  23. package/dist/actions/get-air-pollution-forecast.d.mts +3 -4
  24. package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -1
  25. package/dist/actions/get-air-pollution-forecast.mjs +1 -0
  26. package/dist/actions/get-air-pollution-forecast.mjs.map +1 -1
  27. package/dist/actions/get-air-pollution-history.cjs +1 -0
  28. package/dist/actions/get-air-pollution-history.cjs.map +1 -1
  29. package/dist/actions/get-air-pollution-history.d.cts +3 -6
  30. package/dist/actions/get-air-pollution-history.d.cts.map +1 -1
  31. package/dist/actions/get-air-pollution-history.d.mts +3 -6
  32. package/dist/actions/get-air-pollution-history.d.mts.map +1 -1
  33. package/dist/actions/get-air-pollution-history.mjs +1 -0
  34. package/dist/actions/get-air-pollution-history.mjs.map +1 -1
  35. package/dist/actions/get-circle-city-weather.cjs +1 -0
  36. package/dist/actions/get-circle-city-weather.cjs.map +1 -1
  37. package/dist/actions/get-circle-city-weather.d.cts +3 -8
  38. package/dist/actions/get-circle-city-weather.d.cts.map +1 -1
  39. package/dist/actions/get-circle-city-weather.d.mts +3 -8
  40. package/dist/actions/get-circle-city-weather.d.mts.map +1 -1
  41. package/dist/actions/get-circle-city-weather.mjs +1 -0
  42. package/dist/actions/get-circle-city-weather.mjs.map +1 -1
  43. package/dist/actions/get-current-weather.cjs +1 -0
  44. package/dist/actions/get-current-weather.cjs.map +1 -1
  45. package/dist/actions/get-current-weather.d.cts +3 -9
  46. package/dist/actions/get-current-weather.d.cts.map +1 -1
  47. package/dist/actions/get-current-weather.d.mts +3 -9
  48. package/dist/actions/get-current-weather.d.mts.map +1 -1
  49. package/dist/actions/get-current-weather.mjs +1 -0
  50. package/dist/actions/get-current-weather.mjs.map +1 -1
  51. package/dist/actions/get-geocoding-by-zip.cjs +1 -0
  52. package/dist/actions/get-geocoding-by-zip.cjs.map +1 -1
  53. package/dist/actions/get-geocoding-by-zip.d.cts +3 -3
  54. package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -1
  55. package/dist/actions/get-geocoding-by-zip.d.mts +3 -3
  56. package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -1
  57. package/dist/actions/get-geocoding-by-zip.mjs +1 -0
  58. package/dist/actions/get-geocoding-by-zip.mjs.map +1 -1
  59. package/dist/actions/get-geocoding-direct.cjs +1 -0
  60. package/dist/actions/get-geocoding-direct.cjs.map +1 -1
  61. package/dist/actions/get-geocoding-direct.d.cts +3 -4
  62. package/dist/actions/get-geocoding-direct.d.cts.map +1 -1
  63. package/dist/actions/get-geocoding-direct.d.mts +3 -4
  64. package/dist/actions/get-geocoding-direct.d.mts.map +1 -1
  65. package/dist/actions/get-geocoding-direct.mjs +1 -0
  66. package/dist/actions/get-geocoding-direct.mjs.map +1 -1
  67. package/dist/actions/get-geocoding-reverse.cjs +1 -0
  68. package/dist/actions/get-geocoding-reverse.cjs.map +1 -1
  69. package/dist/actions/get-geocoding-reverse.d.cts +3 -5
  70. package/dist/actions/get-geocoding-reverse.d.cts.map +1 -1
  71. package/dist/actions/get-geocoding-reverse.d.mts +3 -5
  72. package/dist/actions/get-geocoding-reverse.d.mts.map +1 -1
  73. package/dist/actions/get-geocoding-reverse.mjs +1 -0
  74. package/dist/actions/get-geocoding-reverse.mjs.map +1 -1
  75. package/dist/actions/get-station-measurements.cjs +1 -0
  76. package/dist/actions/get-station-measurements.cjs.map +1 -1
  77. package/dist/actions/get-station-measurements.d.cts +4 -8
  78. package/dist/actions/get-station-measurements.d.cts.map +1 -1
  79. package/dist/actions/get-station-measurements.d.mts +4 -8
  80. package/dist/actions/get-station-measurements.d.mts.map +1 -1
  81. package/dist/actions/get-station-measurements.mjs +1 -0
  82. package/dist/actions/get-station-measurements.mjs.map +1 -1
  83. package/dist/actions/get-uv-index-forecast.cjs +1 -0
  84. package/dist/actions/get-uv-index-forecast.cjs.map +1 -1
  85. package/dist/actions/get-uv-index-forecast.d.cts +3 -5
  86. package/dist/actions/get-uv-index-forecast.d.cts.map +1 -1
  87. package/dist/actions/get-uv-index-forecast.d.mts +3 -5
  88. package/dist/actions/get-uv-index-forecast.d.mts.map +1 -1
  89. package/dist/actions/get-uv-index-forecast.mjs +1 -0
  90. package/dist/actions/get-uv-index-forecast.mjs.map +1 -1
  91. package/dist/actions/get-uv-index-history.cjs +1 -0
  92. package/dist/actions/get-uv-index-history.cjs.map +1 -1
  93. package/dist/actions/get-uv-index-history.d.cts +3 -6
  94. package/dist/actions/get-uv-index-history.d.cts.map +1 -1
  95. package/dist/actions/get-uv-index-history.d.mts +3 -6
  96. package/dist/actions/get-uv-index-history.d.mts.map +1 -1
  97. package/dist/actions/get-uv-index-history.mjs +1 -0
  98. package/dist/actions/get-uv-index-history.mjs.map +1 -1
  99. package/dist/actions/get-uv-index.cjs +1 -0
  100. package/dist/actions/get-uv-index.cjs.map +1 -1
  101. package/dist/actions/get-uv-index.d.cts +3 -4
  102. package/dist/actions/get-uv-index.d.cts.map +1 -1
  103. package/dist/actions/get-uv-index.d.mts +3 -4
  104. package/dist/actions/get-uv-index.d.mts.map +1 -1
  105. package/dist/actions/get-uv-index.mjs +1 -0
  106. package/dist/actions/get-uv-index.mjs.map +1 -1
  107. package/dist/actions/get-weather-map-tile.cjs +1 -0
  108. package/dist/actions/get-weather-map-tile.cjs.map +1 -1
  109. package/dist/actions/get-weather-map-tile.d.cts +4 -14
  110. package/dist/actions/get-weather-map-tile.d.cts.map +1 -1
  111. package/dist/actions/get-weather-map-tile.d.mts +4 -14
  112. package/dist/actions/get-weather-map-tile.d.mts.map +1 -1
  113. package/dist/actions/get-weather-map-tile.mjs +1 -0
  114. package/dist/actions/get-weather-map-tile.mjs.map +1 -1
  115. package/dist/actions/get-weather-station.cjs +1 -0
  116. package/dist/actions/get-weather-station.cjs.map +1 -1
  117. package/dist/actions/get-weather-station.d.cts +3 -3
  118. package/dist/actions/get-weather-station.d.cts.map +1 -1
  119. package/dist/actions/get-weather-station.d.mts +3 -3
  120. package/dist/actions/get-weather-station.d.mts.map +1 -1
  121. package/dist/actions/get-weather-station.mjs +1 -0
  122. package/dist/actions/get-weather-station.mjs.map +1 -1
  123. package/dist/actions/get-weather-stations.cjs +1 -0
  124. package/dist/actions/get-weather-stations.cjs.map +1 -1
  125. package/dist/actions/get-weather-stations.d.cts +3 -1
  126. package/dist/actions/get-weather-stations.d.cts.map +1 -1
  127. package/dist/actions/get-weather-stations.d.mts +3 -1
  128. package/dist/actions/get-weather-stations.d.mts.map +1 -1
  129. package/dist/actions/get-weather-stations.mjs +1 -0
  130. package/dist/actions/get-weather-stations.mjs.map +1 -1
  131. package/dist/actions/get-weather-triggers.cjs +1 -0
  132. package/dist/actions/get-weather-triggers.cjs.map +1 -1
  133. package/dist/actions/get-weather-triggers.d.cts +3 -12
  134. package/dist/actions/get-weather-triggers.d.cts.map +1 -1
  135. package/dist/actions/get-weather-triggers.d.mts +3 -12
  136. package/dist/actions/get-weather-triggers.d.mts.map +1 -1
  137. package/dist/actions/get-weather-triggers.mjs +1 -0
  138. package/dist/actions/get-weather-triggers.mjs.map +1 -1
  139. package/dist/actions/get5-day-forecast.cjs +1 -0
  140. package/dist/actions/get5-day-forecast.cjs.map +1 -1
  141. package/dist/actions/get5-day-forecast.d.cts +3 -10
  142. package/dist/actions/get5-day-forecast.d.cts.map +1 -1
  143. package/dist/actions/get5-day-forecast.d.mts +3 -10
  144. package/dist/actions/get5-day-forecast.d.mts.map +1 -1
  145. package/dist/actions/get5-day-forecast.mjs +1 -0
  146. package/dist/actions/get5-day-forecast.mjs.map +1 -1
  147. package/dist/actions/post-add-weather-station.cjs +1 -0
  148. package/dist/actions/post-add-weather-station.cjs.map +1 -1
  149. package/dist/actions/post-add-weather-station.d.cts +3 -7
  150. package/dist/actions/post-add-weather-station.d.cts.map +1 -1
  151. package/dist/actions/post-add-weather-station.d.mts +3 -7
  152. package/dist/actions/post-add-weather-station.d.mts.map +1 -1
  153. package/dist/actions/post-add-weather-station.mjs +1 -0
  154. package/dist/actions/post-add-weather-station.mjs.map +1 -1
  155. package/dist/actions/post-submit-station-measurements.cjs +1 -0
  156. package/dist/actions/post-submit-station-measurements.cjs.map +1 -1
  157. package/dist/actions/post-submit-station-measurements.d.cts +3 -14
  158. package/dist/actions/post-submit-station-measurements.d.cts.map +1 -1
  159. package/dist/actions/post-submit-station-measurements.d.mts +3 -14
  160. package/dist/actions/post-submit-station-measurements.d.mts.map +1 -1
  161. package/dist/actions/post-submit-station-measurements.mjs +1 -0
  162. package/dist/actions/post-submit-station-measurements.mjs.map +1 -1
  163. package/dist/actions/update-weather-station.cjs +1 -0
  164. package/dist/actions/update-weather-station.cjs.map +1 -1
  165. package/dist/actions/update-weather-station.d.cts +3 -8
  166. package/dist/actions/update-weather-station.d.cts.map +1 -1
  167. package/dist/actions/update-weather-station.d.mts +3 -8
  168. package/dist/actions/update-weather-station.d.mts.map +1 -1
  169. package/dist/actions/update-weather-station.mjs +1 -0
  170. package/dist/actions/update-weather-station.mjs.map +1 -1
  171. package/dist/app.cjs +5 -2
  172. package/dist/app.cjs.map +1 -1
  173. package/dist/app.d.cts +7 -1
  174. package/dist/app.d.cts.map +1 -1
  175. package/dist/app.d.mts +7 -1
  176. package/dist/app.d.mts.map +1 -1
  177. package/dist/app.mjs +3 -2
  178. package/dist/app.mjs.map +1 -1
  179. package/dist/index.d.cts +1 -1
  180. package/dist/index.d.mts +1 -1
  181. package/package.json +2 -2
@@ -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":";;;AAIA,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,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,14 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const openweatherApiUpdateWeatherStation: AppAction<typeof OpenweatherApiUpdateWeatherStationInput, typeof OpenweatherApiUpdateWeatherStationOutput, typeof openweatherApi.credential>;
30
25
  //#endregion
31
26
  export { openweatherApiUpdateWeatherStation };
32
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":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAQvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAWxC,kCAAA,gCAAkC,wBAAA"}
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,14 +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: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const openweatherApiUpdateWeatherStation: AppAction<typeof OpenweatherApiUpdateWeatherStationInput, typeof OpenweatherApiUpdateWeatherStationOutput, typeof openweatherApi.credential>;
30
25
  //#endregion
31
26
  export { openweatherApiUpdateWeatherStation };
32
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":";;;cAIa,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;;;;cAQvC,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;cAWxC,kCAAA,gCAAkC,wBAAA"}
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,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const openweatherApiUpdateWeatherStation = action("OPENWEATHER_API_UPDATE_WEATHER_STATION", {
@@ -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":";;AAuBA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBqD,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,uJAgBH;CACP,QAhBsD,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,kDAOhB;AACV,CAAC"}
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,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const openweatherApi = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const openweatherApi = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "openweather_api",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.openweatherApi = openweatherApi;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const openweatherApi = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,kBAAA,uCAAA,CAAA,CAAA,UAAA,CAA2B;CACtC,MAAM;CACN,MAAM;AACR,CAAC"}
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,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const openweatherApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const openweatherApi: KeystrokeApp<"openweather_api", typeof credential>;
3
9
  //#endregion
4
10
  export { openweatherApi };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,cAAA,6BAAc,GAAA,+BAAA,UAAA"}
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,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const openweatherApi: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const openweatherApi: KeystrokeApp<"openweather_api", typeof credential>;
3
9
  //#endregion
4
10
  export { openweatherApi };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,cAAA,6BAAc,GAAA,+BAAA,UAAA"}
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
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const openweatherApi = defineApp({
4
4
  slug: "openweather_api",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { openweatherApi };
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\";\n\nexport const openweatherApi = defineApp({\n slug: \"openweather_api\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,iBAAiB,UAAU;CACtC,MAAM;CACN,MAAM;AACR,CAAC"}
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"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { openweatherApi } from "./app.cjs";
1
2
  import { openweatherApiDeleteWeatherStation } from "./actions/delete-weather-station.cjs";
2
3
  import { openweatherApiGetAirPollutionCurrent } from "./actions/get-air-pollution-current.cjs";
3
4
  import { openweatherApiGetAirPollutionForecast } from "./actions/get-air-pollution-forecast.cjs";
@@ -19,6 +20,5 @@ import { openweatherApiGet5DayForecast } from "./actions/get5-day-forecast.cjs";
19
20
  import { openweatherApiPostAddWeatherStation } from "./actions/post-add-weather-station.cjs";
20
21
  import { openweatherApiPostSubmitStationMeasurements } from "./actions/post-submit-station-measurements.cjs";
21
22
  import { openweatherApiUpdateWeatherStation } from "./actions/update-weather-station.cjs";
22
- import { openweatherApi } from "./app.cjs";
23
23
  import { openweatherApiCatalog } from "./catalog.cjs";
24
24
  export { openweatherApi, openweatherApiCatalog, openweatherApiDeleteWeatherStation, openweatherApiGet5DayForecast, openweatherApiGetAirPollutionCurrent, openweatherApiGetAirPollutionForecast, openweatherApiGetAirPollutionHistory, openweatherApiGetCircleCityWeather, openweatherApiGetCurrentWeather, openweatherApiGetGeocodingByZip, openweatherApiGetGeocodingDirect, openweatherApiGetGeocodingReverse, openweatherApiGetStationMeasurements, openweatherApiGetUvIndex, openweatherApiGetUvIndexForecast, openweatherApiGetUvIndexHistory, openweatherApiGetWeatherMapTile, openweatherApiGetWeatherStation, openweatherApiGetWeatherStations, openweatherApiGetWeatherTriggers, openweatherApiPostAddWeatherStation, openweatherApiPostSubmitStationMeasurements, openweatherApiUpdateWeatherStation };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { openweatherApi } from "./app.mjs";
1
2
  import { openweatherApiDeleteWeatherStation } from "./actions/delete-weather-station.mjs";
2
3
  import { openweatherApiGetAirPollutionCurrent } from "./actions/get-air-pollution-current.mjs";
3
4
  import { openweatherApiGetAirPollutionForecast } from "./actions/get-air-pollution-forecast.mjs";
@@ -19,6 +20,5 @@ import { openweatherApiGet5DayForecast } from "./actions/get5-day-forecast.mjs";
19
20
  import { openweatherApiPostAddWeatherStation } from "./actions/post-add-weather-station.mjs";
20
21
  import { openweatherApiPostSubmitStationMeasurements } from "./actions/post-submit-station-measurements.mjs";
21
22
  import { openweatherApiUpdateWeatherStation } from "./actions/update-weather-station.mjs";
22
- import { openweatherApi } from "./app.mjs";
23
23
  import { openweatherApiCatalog } from "./catalog.mjs";
24
24
  export { openweatherApi, openweatherApiCatalog, openweatherApiDeleteWeatherStation, openweatherApiGet5DayForecast, openweatherApiGetAirPollutionCurrent, openweatherApiGetAirPollutionForecast, openweatherApiGetAirPollutionHistory, openweatherApiGetCircleCityWeather, openweatherApiGetCurrentWeather, openweatherApiGetGeocodingByZip, openweatherApiGetGeocodingDirect, openweatherApiGetGeocodingReverse, openweatherApiGetStationMeasurements, openweatherApiGetUvIndex, openweatherApiGetUvIndexForecast, openweatherApiGetUvIndexHistory, openweatherApiGetWeatherMapTile, openweatherApiGetWeatherStation, openweatherApiGetWeatherStations, openweatherApiGetWeatherTriggers, openweatherApiPostAddWeatherStation, openweatherApiPostSubmitStationMeasurements, openweatherApiUpdateWeatherStation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/openweather_api",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {