@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
@@ -1,9 +1,40 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-weather-triggers.d.ts
4
- declare const OpenweatherApiGetWeatherTriggersInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGetWeatherTriggersOutput: z.ZodTypeAny;
6
- declare const openweatherApiGetWeatherTriggers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGetWeatherTriggersInput: z.ZodObject<{
5
+ triggers: z.ZodArray<z.ZodObject<{
6
+ type: z.ZodString;
7
+ value: z.ZodUnion<readonly [z.ZodNumber, z.ZodArray<z.ZodNumber>]>;
8
+ location: z.ZodObject<{
9
+ lat: z.ZodNumber;
10
+ lon: z.ZodNumber;
11
+ }, z.core.$strip>;
12
+ condition: z.ZodEnum<{
13
+ ">": ">";
14
+ "<": "<";
15
+ "=": "=";
16
+ between: "between";
17
+ }>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ declare const OpenweatherApiGetWeatherTriggersOutput: z.ZodObject<{
21
+ triggers: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodNullable<z.ZodString>;
23
+ status: z.ZodNullable<z.ZodString>;
24
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ declare const openweatherApiGetWeatherTriggers: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ triggers: {
29
+ type: string;
30
+ value: number | number[];
31
+ location: {
32
+ lat: number;
33
+ lon: number;
34
+ };
35
+ condition: ">" | "<" | "=" | "between";
36
+ }[];
37
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
38
  //#endregion
8
39
  export { openweatherApiGetWeatherTriggers };
9
40
  //# sourceMappingURL=get-weather-triggers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-weather-triggers.d.mts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAUgD;AAAA,cAMzF,sCAAA,EAAwC,CAAA,CAAE,UAEO;AAAA,cAEjD,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-weather-triggers.d.mts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
@@ -16,8 +16,8 @@ const OpenweatherApiGetWeatherTriggersInput = z.object({ triggers: z.array(z.obj
16
16
  ]).describe("Condition operator: '>', '<', '=', or 'between'")
17
17
  }).describe("Definition of a single weather trigger condition.")).describe("List of weather trigger definitions") }).describe("Request to manage and retrieve weather triggers. Provide a list of trigger definitions.");
18
18
  const OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({
19
- id: z.string().describe("Unique ID of the trigger"),
20
- status: z.string().describe("Trigger operation status, e.g., 'created' or 'error'"),
19
+ id: z.string().describe("Unique ID of the trigger").nullable(),
20
+ status: z.string().describe("Trigger operation status, e.g., 'created' or 'error'").nullable(),
21
21
  details: z.record(z.string(), z.unknown()).describe("Additional details or error information for the trigger")
22
22
  }).describe("Result for a single trigger operation.");
23
23
  const openweatherApiGetWeatherTriggers = action("OPENWEATHER_API_GET_WEATHER_TRIGGERS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-weather-triggers.mjs","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherTriggersInput: z.ZodTypeAny = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique ID of the trigger\"),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\"),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput: z.ZodTypeAny = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO,EAC1E,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,UAAU,EAAE,OAAO;EACnB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACvD,WAAW,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC1G,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,qCAAqC,EAChH,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,6DAA2E,EAAE,OAAO;CACxF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAClF,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkE,EAAE,OAAO,EAC3E,UAAU,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,oCAAoC,EAC7H,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-weather-triggers.mjs","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherTriggersInput = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({\n id: z.string().describe(\"Unique ID of the trigger\").nullable(),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\").nullable(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO,EAC5D,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,UAAU,EAAE,OAAO;EACnB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACvD,WAAW,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC1G,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,qCAAqC,EAChH,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC/G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,oCAAoC,EAC7H,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -20,45 +20,45 @@ const OpenweatherApiGet5DayForecastInput = zod.z.object({
20
20
  ]).describe("Units of measurement (standard, metric, imperial)").optional()
21
21
  }).describe("Specify location and output options for 5-day, 3-hour forecast.");
22
22
  const OpenweatherApiGet5DayForecast_CityCoordSchema = zod.z.object({
23
- lat: zod.z.number().describe("Latitude"),
24
- lon: zod.z.number().describe("Longitude")
23
+ lat: zod.z.number().describe("Latitude").nullable(),
24
+ lon: zod.z.number().describe("Longitude").nullable()
25
25
  });
26
26
  const OpenweatherApiGet5DayForecast_CityInfoSchema = zod.z.object({
27
- id: zod.z.number().int().describe("City ID"),
28
- name: zod.z.string().describe("City name"),
27
+ id: zod.z.number().int().describe("City ID").nullable(),
28
+ name: zod.z.string().describe("City name").nullable(),
29
29
  coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),
30
- sunset: zod.z.number().int().describe("Sunset time (Unix UTC)"),
31
- country: zod.z.string().describe("Country code (ISO 3166)"),
32
- sunrise: zod.z.number().int().describe("Sunrise time (Unix UTC)"),
33
- timezone: zod.z.number().int().describe("Shift in seconds from UTC")
30
+ sunset: zod.z.number().int().describe("Sunset time (Unix UTC)").nullable(),
31
+ country: zod.z.string().describe("Country code (ISO 3166)").nullable(),
32
+ sunrise: zod.z.number().int().describe("Sunrise time (Unix UTC)").nullable(),
33
+ timezone: zod.z.number().int().describe("Shift in seconds from UTC").nullable()
34
34
  });
35
- const OpenweatherApiGet5DayForecast_SysInfoSchema = zod.z.object({ pod: zod.z.enum(["d", "n"]).describe("Part of day: d=day, n=night") });
35
+ const OpenweatherApiGet5DayForecast_SysInfoSchema = zod.z.object({ pod: zod.z.enum(["d", "n"]).describe("Part of day: d=day, n=night").nullable() });
36
36
  const OpenweatherApiGet5DayForecast_ForecastMainSchema = zod.z.object({
37
- temp: zod.z.number().describe("Temperature"),
37
+ temp: zod.z.number().describe("Temperature").nullable(),
38
38
  temp_kf: zod.z.number().describe("Temperature variance").nullable().optional(),
39
- humidity: zod.z.number().int().describe("Humidity percentage"),
40
- pressure: zod.z.number().int().describe("Atmospheric pressure (hPa)"),
41
- temp_max: zod.z.number().describe("Maximum temperature at the moment"),
42
- temp_min: zod.z.number().describe("Minimum temperature at the moment"),
39
+ humidity: zod.z.number().int().describe("Humidity percentage").nullable(),
40
+ pressure: zod.z.number().int().describe("Atmospheric pressure (hPa)").nullable(),
41
+ temp_max: zod.z.number().describe("Maximum temperature at the moment").nullable(),
42
+ temp_min: zod.z.number().describe("Minimum temperature at the moment").nullable(),
43
43
  sea_level: zod.z.number().int().describe("Atmospheric pressure at sea level (hPa)").nullable().optional(),
44
- feels_like: zod.z.number().describe("Human perception of temperature"),
44
+ feels_like: zod.z.number().describe("Human perception of temperature").nullable(),
45
45
  grnd_level: zod.z.number().int().describe("Atmospheric pressure at ground level (hPa)").nullable().optional()
46
46
  });
47
- const OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = zod.z.object({ "3h": zod.z.number().describe("Volume for last 3 hours") }).describe("Rain or snow volume for last 3 hours");
47
+ const OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = zod.z.object({ "3h": zod.z.number().describe("Volume for last 3 hours").nullable() }).describe("Rain or snow volume for last 3 hours");
48
48
  const OpenweatherApiGet5DayForecast_WindSchema = zod.z.object({
49
- deg: zod.z.number().int().describe("Wind direction in degrees"),
49
+ deg: zod.z.number().int().describe("Wind direction in degrees").nullable(),
50
50
  gust: zod.z.number().describe("Wind gust speed").nullable().optional(),
51
- speed: zod.z.number().describe("Wind speed")
51
+ speed: zod.z.number().describe("Wind speed").nullable()
52
52
  });
53
- const OpenweatherApiGet5DayForecast_CloudsSchema = zod.z.object({ all: zod.z.number().int().describe("Cloudiness percentage") });
53
+ const OpenweatherApiGet5DayForecast_CloudsSchema = zod.z.object({ all: zod.z.number().int().describe("Cloudiness percentage").nullable() });
54
54
  const OpenweatherApiGet5DayForecast_WeatherConditionSchema = zod.z.object({
55
- id: zod.z.number().int().describe("Weather condition ID"),
56
- icon: zod.z.string().describe("Weather icon ID"),
57
- main: zod.z.string().describe("Group of weather parameters"),
58
- description: zod.z.string().describe("Weather condition within the group")
55
+ id: zod.z.number().int().describe("Weather condition ID").nullable(),
56
+ icon: zod.z.string().describe("Weather icon ID").nullable(),
57
+ main: zod.z.string().describe("Group of weather parameters").nullable(),
58
+ description: zod.z.string().describe("Weather condition within the group").nullable()
59
59
  });
60
60
  const OpenweatherApiGet5DayForecast_ForecastItemSchema = zod.z.object({
61
- dt: zod.z.number().int().describe("Forecast time (Unix UTC)"),
61
+ dt: zod.z.number().int().describe("Forecast time (Unix UTC)").nullable(),
62
62
  pop: zod.z.number().describe("Probability of precipitation").nullable().optional(),
63
63
  sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),
64
64
  main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),
@@ -66,16 +66,16 @@ const OpenweatherApiGet5DayForecast_ForecastItemSchema = zod.z.object({
66
66
  snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),
67
67
  wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),
68
68
  clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),
69
- dt_txt: zod.z.string().describe("Forecast time as text"),
69
+ dt_txt: zod.z.string().describe("Forecast time as text").nullable(),
70
70
  weather: zod.z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),
71
71
  visibility: zod.z.number().int().describe("Visibility in meters").nullable().optional()
72
72
  });
73
73
  const OpenweatherApiGet5DayForecastOutput = zod.z.object({
74
- cnt: zod.z.number().int().describe("Number of timestamps returned"),
75
- cod: zod.z.string().describe("Internal response code"),
74
+ cnt: zod.z.number().int().describe("Number of timestamps returned").nullable(),
75
+ cod: zod.z.string().describe("Internal response code").nullable(),
76
76
  city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),
77
77
  list: zod.z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe("Array of forecast data"),
78
- message: zod.z.number().describe("Internal parameter")
78
+ message: zod.z.number().describe("Internal parameter").nullable()
79
79
  });
80
80
  const openweatherApiGet5DayForecast = require_action.action("OPENWEATHER_API_GET5_DAY_FORECAST", {
81
81
  slug: "openweather_api-get5-day-forecast",
@@ -1 +1 @@
1
- {"version":3,"file":"get5-day-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lon: z.number().describe(\"Longitude\"),\n});\nconst OpenweatherApiGet5DayForecast_CityInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"City ID\"),\n name: z.string().describe(\"City name\"),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\"),\n country: z.string().describe(\"Country code (ISO 3166)\"),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\"),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\"),\n});\nconst OpenweatherApiGet5DayForecast_SysInfoSchema: z.ZodTypeAny = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema: z.ZodTypeAny = z.object({\n temp: z.number().describe(\"Temperature\"),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\"),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\"),\n temp_max: z.number().describe(\"Maximum temperature at the moment\"),\n temp_min: z.number().describe(\"Minimum temperature at the moment\"),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\"),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema: z.ZodTypeAny = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\"),\n}).describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema: z.ZodTypeAny = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\"),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\"),\n});\nconst OpenweatherApiGet5DayForecast_CloudsSchema: z.ZodTypeAny = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\"),\n});\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Weather condition ID\"),\n icon: z.string().describe(\"Weather icon ID\"),\n main: z.string().describe(\"Group of weather parameters\"),\n description: z.string().describe(\"Weather condition within the group\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\"),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\"),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\nexport const OpenweatherApiGet5DayForecastOutput: z.ZodTypeAny = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\"),\n cod: z.string().describe(\"Internal response code\"),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\"),\n});\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;CACnC,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AACtC,CAAC;AACD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI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CAAC,SAAS;CAClF,MAAM,wDAAwD,SAAS,CAAC,CAAC,SAAS;CAClF,MAAM,yCAAyC,SAAS;CACxD,QAAQ,2CAA2C,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAASA,IAAAA,EAAE,MAAM,oDAAoD;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC;AACD,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACjD,MAAM,6CAA6C,SAAS;CAC5D,MAAMA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,wBAAwB;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AACnD,CAAC;AAED,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get5-day-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n});\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACjD,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,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AAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,94 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get5-day-forecast.d.ts
4
- declare const OpenweatherApiGet5DayForecastInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGet5DayForecastOutput: z.ZodTypeAny;
6
- declare const openweatherApiGet5DayForecast: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGet5DayForecastInput: 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
+ mode: z.ZodOptional<z.ZodEnum<{
12
+ json: "json";
13
+ xml: "xml";
14
+ html: "html";
15
+ }>>;
16
+ units: z.ZodOptional<z.ZodEnum<{
17
+ standard: "standard";
18
+ metric: "metric";
19
+ imperial: "imperial";
20
+ }>>;
21
+ }, z.core.$strip>;
22
+ declare const OpenweatherApiGet5DayForecastOutput: z.ZodObject<{
23
+ cnt: z.ZodNullable<z.ZodNumber>;
24
+ cod: z.ZodNullable<z.ZodString>;
25
+ city: z.ZodNullable<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodNumber>;
27
+ name: z.ZodNullable<z.ZodString>;
28
+ coord: z.ZodNullable<z.ZodObject<{
29
+ lat: z.ZodNullable<z.ZodNumber>;
30
+ lon: z.ZodNullable<z.ZodNumber>;
31
+ }, z.core.$strip>>;
32
+ sunset: z.ZodNullable<z.ZodNumber>;
33
+ country: z.ZodNullable<z.ZodString>;
34
+ sunrise: z.ZodNullable<z.ZodNumber>;
35
+ timezone: z.ZodNullable<z.ZodNumber>;
36
+ }, z.core.$strip>>;
37
+ list: z.ZodArray<z.ZodObject<{
38
+ dt: z.ZodNullable<z.ZodNumber>;
39
+ pop: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ sys: z.ZodNullable<z.ZodObject<{
41
+ pod: z.ZodNullable<z.ZodEnum<{
42
+ d: "d";
43
+ n: "n";
44
+ }>>;
45
+ }, z.core.$strip>>;
46
+ main: z.ZodNullable<z.ZodObject<{
47
+ temp: z.ZodNullable<z.ZodNumber>;
48
+ temp_kf: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ humidity: z.ZodNullable<z.ZodNumber>;
50
+ pressure: z.ZodNullable<z.ZodNumber>;
51
+ temp_max: z.ZodNullable<z.ZodNumber>;
52
+ temp_min: z.ZodNullable<z.ZodNumber>;
53
+ sea_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ feels_like: z.ZodNullable<z.ZodNumber>;
55
+ grnd_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ }, z.core.$strip>>;
57
+ rain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
+ "3h": z.ZodNullable<z.ZodNumber>;
59
+ }, z.core.$strip>>>;
60
+ snow: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ "3h": z.ZodNullable<z.ZodNumber>;
62
+ }, z.core.$strip>>>;
63
+ wind: z.ZodNullable<z.ZodObject<{
64
+ deg: z.ZodNullable<z.ZodNumber>;
65
+ gust: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ speed: z.ZodNullable<z.ZodNumber>;
67
+ }, z.core.$strip>>;
68
+ clouds: z.ZodNullable<z.ZodObject<{
69
+ all: z.ZodNullable<z.ZodNumber>;
70
+ }, z.core.$strip>>;
71
+ dt_txt: z.ZodNullable<z.ZodString>;
72
+ weather: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodNullable<z.ZodNumber>;
74
+ icon: z.ZodNullable<z.ZodString>;
75
+ main: z.ZodNullable<z.ZodString>;
76
+ description: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>;
78
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ }, z.core.$strip>>;
80
+ message: z.ZodNullable<z.ZodNumber>;
81
+ }, z.core.$strip>;
82
+ declare const openweatherApiGet5DayForecast: import("@keystrokehq/action").WorkflowActionDefinition<{
83
+ q?: string | undefined;
84
+ id?: number | undefined;
85
+ lat?: number | undefined;
86
+ lon?: number | undefined;
87
+ zip?: string | undefined;
88
+ lang?: string | undefined;
89
+ mode?: "json" | "xml" | "html" | undefined;
90
+ units?: "standard" | "metric" | "imperial" | undefined;
91
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
92
  //#endregion
8
93
  export { openweatherApiGet5DayForecast };
9
94
  //# sourceMappingURL=get5-day-forecast.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get5-day-forecast.d.cts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAS2B;AAAA,cA0DjE,mCAAA,EAAqC,CAAA,CAAE,UAMlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get5-day-forecast.d.cts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmElC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA"}
@@ -1,9 +1,94 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get5-day-forecast.d.ts
4
- declare const OpenweatherApiGet5DayForecastInput: z.ZodTypeAny;
5
- declare const OpenweatherApiGet5DayForecastOutput: z.ZodTypeAny;
6
- declare const openweatherApiGet5DayForecast: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const OpenweatherApiGet5DayForecastInput: 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
+ mode: z.ZodOptional<z.ZodEnum<{
12
+ json: "json";
13
+ xml: "xml";
14
+ html: "html";
15
+ }>>;
16
+ units: z.ZodOptional<z.ZodEnum<{
17
+ standard: "standard";
18
+ metric: "metric";
19
+ imperial: "imperial";
20
+ }>>;
21
+ }, z.core.$strip>;
22
+ declare const OpenweatherApiGet5DayForecastOutput: z.ZodObject<{
23
+ cnt: z.ZodNullable<z.ZodNumber>;
24
+ cod: z.ZodNullable<z.ZodString>;
25
+ city: z.ZodNullable<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodNumber>;
27
+ name: z.ZodNullable<z.ZodString>;
28
+ coord: z.ZodNullable<z.ZodObject<{
29
+ lat: z.ZodNullable<z.ZodNumber>;
30
+ lon: z.ZodNullable<z.ZodNumber>;
31
+ }, z.core.$strip>>;
32
+ sunset: z.ZodNullable<z.ZodNumber>;
33
+ country: z.ZodNullable<z.ZodString>;
34
+ sunrise: z.ZodNullable<z.ZodNumber>;
35
+ timezone: z.ZodNullable<z.ZodNumber>;
36
+ }, z.core.$strip>>;
37
+ list: z.ZodArray<z.ZodObject<{
38
+ dt: z.ZodNullable<z.ZodNumber>;
39
+ pop: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
40
+ sys: z.ZodNullable<z.ZodObject<{
41
+ pod: z.ZodNullable<z.ZodEnum<{
42
+ d: "d";
43
+ n: "n";
44
+ }>>;
45
+ }, z.core.$strip>>;
46
+ main: z.ZodNullable<z.ZodObject<{
47
+ temp: z.ZodNullable<z.ZodNumber>;
48
+ temp_kf: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ humidity: z.ZodNullable<z.ZodNumber>;
50
+ pressure: z.ZodNullable<z.ZodNumber>;
51
+ temp_max: z.ZodNullable<z.ZodNumber>;
52
+ temp_min: z.ZodNullable<z.ZodNumber>;
53
+ sea_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
54
+ feels_like: z.ZodNullable<z.ZodNumber>;
55
+ grnd_level: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
56
+ }, z.core.$strip>>;
57
+ rain: z.ZodOptional<z.ZodNullable<z.ZodObject<{
58
+ "3h": z.ZodNullable<z.ZodNumber>;
59
+ }, z.core.$strip>>>;
60
+ snow: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ "3h": z.ZodNullable<z.ZodNumber>;
62
+ }, z.core.$strip>>>;
63
+ wind: z.ZodNullable<z.ZodObject<{
64
+ deg: z.ZodNullable<z.ZodNumber>;
65
+ gust: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
66
+ speed: z.ZodNullable<z.ZodNumber>;
67
+ }, z.core.$strip>>;
68
+ clouds: z.ZodNullable<z.ZodObject<{
69
+ all: z.ZodNullable<z.ZodNumber>;
70
+ }, z.core.$strip>>;
71
+ dt_txt: z.ZodNullable<z.ZodString>;
72
+ weather: z.ZodArray<z.ZodObject<{
73
+ id: z.ZodNullable<z.ZodNumber>;
74
+ icon: z.ZodNullable<z.ZodString>;
75
+ main: z.ZodNullable<z.ZodString>;
76
+ description: z.ZodNullable<z.ZodString>;
77
+ }, z.core.$strip>>;
78
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ }, z.core.$strip>>;
80
+ message: z.ZodNullable<z.ZodNumber>;
81
+ }, z.core.$strip>;
82
+ declare const openweatherApiGet5DayForecast: import("@keystrokehq/action").WorkflowActionDefinition<{
83
+ q?: string | undefined;
84
+ id?: number | undefined;
85
+ lat?: number | undefined;
86
+ lon?: number | undefined;
87
+ zip?: string | undefined;
88
+ lang?: string | undefined;
89
+ mode?: "json" | "xml" | "html" | undefined;
90
+ units?: "standard" | "metric" | "imperial" | undefined;
91
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
92
  //#endregion
8
93
  export { openweatherApiGet5DayForecast };
9
94
  //# sourceMappingURL=get5-day-forecast.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get5-day-forecast.d.mts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAS2B;AAAA,cA0DjE,mCAAA,EAAqC,CAAA,CAAE,UAMlD;AAAA,cAEW,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get5-day-forecast.d.mts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmElC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,gCAA6B,wBAAA"}
@@ -20,45 +20,45 @@ const OpenweatherApiGet5DayForecastInput = z.object({
20
20
  ]).describe("Units of measurement (standard, metric, imperial)").optional()
21
21
  }).describe("Specify location and output options for 5-day, 3-hour forecast.");
22
22
  const OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({
23
- lat: z.number().describe("Latitude"),
24
- lon: z.number().describe("Longitude")
23
+ lat: z.number().describe("Latitude").nullable(),
24
+ lon: z.number().describe("Longitude").nullable()
25
25
  });
26
26
  const OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({
27
- id: z.number().int().describe("City ID"),
28
- name: z.string().describe("City name"),
27
+ id: z.number().int().describe("City ID").nullable(),
28
+ name: z.string().describe("City name").nullable(),
29
29
  coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),
30
- sunset: z.number().int().describe("Sunset time (Unix UTC)"),
31
- country: z.string().describe("Country code (ISO 3166)"),
32
- sunrise: z.number().int().describe("Sunrise time (Unix UTC)"),
33
- timezone: z.number().int().describe("Shift in seconds from UTC")
30
+ sunset: z.number().int().describe("Sunset time (Unix UTC)").nullable(),
31
+ country: z.string().describe("Country code (ISO 3166)").nullable(),
32
+ sunrise: z.number().int().describe("Sunrise time (Unix UTC)").nullable(),
33
+ timezone: z.number().int().describe("Shift in seconds from UTC").nullable()
34
34
  });
35
- const OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({ pod: z.enum(["d", "n"]).describe("Part of day: d=day, n=night") });
35
+ const OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({ pod: z.enum(["d", "n"]).describe("Part of day: d=day, n=night").nullable() });
36
36
  const OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({
37
- temp: z.number().describe("Temperature"),
37
+ temp: z.number().describe("Temperature").nullable(),
38
38
  temp_kf: z.number().describe("Temperature variance").nullable().optional(),
39
- humidity: z.number().int().describe("Humidity percentage"),
40
- pressure: z.number().int().describe("Atmospheric pressure (hPa)"),
41
- temp_max: z.number().describe("Maximum temperature at the moment"),
42
- temp_min: z.number().describe("Minimum temperature at the moment"),
39
+ humidity: z.number().int().describe("Humidity percentage").nullable(),
40
+ pressure: z.number().int().describe("Atmospheric pressure (hPa)").nullable(),
41
+ temp_max: z.number().describe("Maximum temperature at the moment").nullable(),
42
+ temp_min: z.number().describe("Minimum temperature at the moment").nullable(),
43
43
  sea_level: z.number().int().describe("Atmospheric pressure at sea level (hPa)").nullable().optional(),
44
- feels_like: z.number().describe("Human perception of temperature"),
44
+ feels_like: z.number().describe("Human perception of temperature").nullable(),
45
45
  grnd_level: z.number().int().describe("Atmospheric pressure at ground level (hPa)").nullable().optional()
46
46
  });
47
- const OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({ "3h": z.number().describe("Volume for last 3 hours") }).describe("Rain or snow volume for last 3 hours");
47
+ const OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({ "3h": z.number().describe("Volume for last 3 hours").nullable() }).describe("Rain or snow volume for last 3 hours");
48
48
  const OpenweatherApiGet5DayForecast_WindSchema = z.object({
49
- deg: z.number().int().describe("Wind direction in degrees"),
49
+ deg: z.number().int().describe("Wind direction in degrees").nullable(),
50
50
  gust: z.number().describe("Wind gust speed").nullable().optional(),
51
- speed: z.number().describe("Wind speed")
51
+ speed: z.number().describe("Wind speed").nullable()
52
52
  });
53
- const OpenweatherApiGet5DayForecast_CloudsSchema = z.object({ all: z.number().int().describe("Cloudiness percentage") });
53
+ const OpenweatherApiGet5DayForecast_CloudsSchema = z.object({ all: z.number().int().describe("Cloudiness percentage").nullable() });
54
54
  const OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({
55
- id: z.number().int().describe("Weather condition ID"),
56
- icon: z.string().describe("Weather icon ID"),
57
- main: z.string().describe("Group of weather parameters"),
58
- description: z.string().describe("Weather condition within the group")
55
+ id: z.number().int().describe("Weather condition ID").nullable(),
56
+ icon: z.string().describe("Weather icon ID").nullable(),
57
+ main: z.string().describe("Group of weather parameters").nullable(),
58
+ description: z.string().describe("Weather condition within the group").nullable()
59
59
  });
60
60
  const OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({
61
- dt: z.number().int().describe("Forecast time (Unix UTC)"),
61
+ dt: z.number().int().describe("Forecast time (Unix UTC)").nullable(),
62
62
  pop: z.number().describe("Probability of precipitation").nullable().optional(),
63
63
  sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),
64
64
  main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),
@@ -66,7 +66,7 @@ const OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({
66
66
  snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),
67
67
  wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),
68
68
  clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),
69
- dt_txt: z.string().describe("Forecast time as text"),
69
+ dt_txt: z.string().describe("Forecast time as text").nullable(),
70
70
  weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),
71
71
  visibility: z.number().int().describe("Visibility in meters").nullable().optional()
72
72
  });
@@ -76,11 +76,11 @@ const openweatherApiGet5DayForecast = action("OPENWEATHER_API_GET5_DAY_FORECAST"
76
76
  description: "Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.",
77
77
  input: OpenweatherApiGet5DayForecastInput,
78
78
  output: z.object({
79
- cnt: z.number().int().describe("Number of timestamps returned"),
80
- cod: z.string().describe("Internal response code"),
79
+ cnt: z.number().int().describe("Number of timestamps returned").nullable(),
80
+ cod: z.string().describe("Internal response code").nullable(),
81
81
  city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),
82
82
  list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe("Array of forecast data"),
83
- message: z.number().describe("Internal parameter")
83
+ message: z.number().describe("Internal parameter").nullable()
84
84
  })
85
85
  });
86
86
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get5-day-forecast.mjs","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lon: z.number().describe(\"Longitude\"),\n});\nconst OpenweatherApiGet5DayForecast_CityInfoSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"City ID\"),\n name: z.string().describe(\"City name\"),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\"),\n country: z.string().describe(\"Country code (ISO 3166)\"),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\"),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\"),\n});\nconst OpenweatherApiGet5DayForecast_SysInfoSchema: z.ZodTypeAny = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema: z.ZodTypeAny = z.object({\n temp: z.number().describe(\"Temperature\"),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\"),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\"),\n temp_max: z.number().describe(\"Maximum temperature at the moment\"),\n temp_min: z.number().describe(\"Minimum temperature at the moment\"),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\"),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema: z.ZodTypeAny = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\"),\n}).describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema: z.ZodTypeAny = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\"),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\"),\n});\nconst OpenweatherApiGet5DayForecast_CloudsSchema: z.ZodTypeAny = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\"),\n});\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Weather condition ID\"),\n icon: z.string().describe(\"Weather icon ID\"),\n main: z.string().describe(\"Group of weather parameters\"),\n description: z.string().describe(\"Weather condition within the group\"),\n});\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\"),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\"),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\nexport const OpenweatherApiGet5DayForecastOutput: z.ZodTypeAny = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\"),\n cod: z.string().describe(\"Internal response code\"),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\"),\n});\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAA8D,EAAE,OAAO;CAC3E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU;CACnC,KAAK,EAAE,OA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uB;CACnD,SAAS,EAAE,MAAM,oDAAoD;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC;AASD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb+D,EAAE,OAAO;EACxE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B;EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACjD,MAAM,6CAA6C,SAAS;EAC5D,MAAM,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,wBAAwB;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACnD,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get5-day-forecast.mjs","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n});\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n});\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n});\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n});\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,GAA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AAS,EAAE,MAAM,oDAAoD;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC;AASD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiD,EAAE,OAAO;EAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC5D,MAAM,6CAA6C,SAAS;EAC5D,MAAM,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,wBAAwB;EACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC9D,CAOU;AACV,CAAC"}
@@ -9,16 +9,16 @@ const OpenweatherApiPostAddWeatherStationInput = zod.z.object({
9
9
  external_id: zod.z.string().describe("External station ID (your own reference)")
10
10
  }).describe("Request parameters to add a new weather station. Provide external_id, name, geographic coordinates, and altitude.");
11
11
  const OpenweatherApiPostAddWeatherStationOutput = zod.z.object({
12
- ID: zod.z.string().describe("Internal OpenWeather station ID"),
13
- name: zod.z.string().describe("Station name"),
12
+ ID: zod.z.string().describe("Internal OpenWeather station ID").nullable(),
13
+ name: zod.z.string().describe("Station name").nullable(),
14
14
  rank: zod.z.number().int().describe("Station rank").nullable().optional(),
15
15
  user_id: zod.z.string().describe("User ID that owns the station").nullable().optional(),
16
- altitude: zod.z.number().describe("Station altitude in meters"),
17
- latitude: zod.z.number().describe("Station latitude"),
18
- longitude: zod.z.number().describe("Station longitude"),
19
- created_at: zod.z.string().describe("ISO datetime when station was created"),
16
+ altitude: zod.z.number().describe("Station altitude in meters").nullable(),
17
+ latitude: zod.z.number().describe("Station latitude").nullable(),
18
+ longitude: zod.z.number().describe("Station longitude").nullable(),
19
+ created_at: zod.z.string().describe("ISO datetime when station was created").nullable(),
20
20
  updated_at: zod.z.string().describe("ISO datetime when station was last updated").nullable().optional(),
21
- external_id: zod.z.string().describe("Provided external station ID"),
21
+ external_id: zod.z.string().describe("Provided external station ID").nullable(),
22
22
  source_type: zod.z.number().int().describe("Source type identifier").nullable().optional()
23
23
  }).describe("Response schema for added weather station.");
24
24
  const openweatherApiPostAddWeatherStation = require_action.action("OPENWEATHER_API_POST_ADD_WEATHER_STATION", {