@keystrokehq/openweather_api 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/delete-weather-station.cjs +1 -1
- package/dist/actions/delete-weather-station.cjs.map +1 -1
- package/dist/actions/delete-weather-station.d.cts +1 -1
- package/dist/actions/delete-weather-station.d.mts +1 -1
- package/dist/actions/delete-weather-station.mjs +1 -1
- package/dist/actions/delete-weather-station.mjs.map +1 -1
- package/dist/actions/get-air-pollution-current.cjs +5 -5
- package/dist/actions/get-air-pollution-current.cjs.map +1 -1
- package/dist/actions/get-air-pollution-current.d.cts +5 -5
- package/dist/actions/get-air-pollution-current.d.mts +5 -5
- package/dist/actions/get-air-pollution-current.mjs +5 -5
- package/dist/actions/get-air-pollution-current.mjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.cjs +5 -5
- package/dist/actions/get-air-pollution-forecast.cjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.d.cts +5 -5
- package/dist/actions/get-air-pollution-forecast.d.mts +5 -5
- package/dist/actions/get-air-pollution-forecast.mjs +5 -5
- package/dist/actions/get-air-pollution-forecast.mjs.map +1 -1
- package/dist/actions/get-air-pollution-history.cjs +5 -5
- package/dist/actions/get-air-pollution-history.cjs.map +1 -1
- package/dist/actions/get-air-pollution-history.d.cts +5 -5
- package/dist/actions/get-air-pollution-history.d.mts +5 -5
- package/dist/actions/get-air-pollution-history.mjs +5 -5
- package/dist/actions/get-air-pollution-history.mjs.map +1 -1
- package/dist/actions/get-circle-city-weather.cjs +10 -10
- package/dist/actions/get-circle-city-weather.cjs.map +1 -1
- package/dist/actions/get-circle-city-weather.d.cts +10 -10
- package/dist/actions/get-circle-city-weather.d.mts +10 -10
- package/dist/actions/get-circle-city-weather.mjs +10 -10
- package/dist/actions/get-circle-city-weather.mjs.map +1 -1
- package/dist/actions/get-current-weather.cjs +9 -9
- package/dist/actions/get-current-weather.cjs.map +1 -1
- package/dist/actions/get-current-weather.d.cts +9 -9
- package/dist/actions/get-current-weather.d.mts +9 -9
- package/dist/actions/get-current-weather.mjs +9 -9
- package/dist/actions/get-current-weather.mjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.cjs +1 -1
- package/dist/actions/get-geocoding-by-zip.cjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.d.cts +1 -1
- package/dist/actions/get-geocoding-by-zip.d.mts +1 -1
- package/dist/actions/get-geocoding-by-zip.mjs +1 -1
- package/dist/actions/get-geocoding-by-zip.mjs.map +1 -1
- package/dist/actions/get-station-measurements.cjs +2 -2
- package/dist/actions/get-station-measurements.cjs.map +1 -1
- package/dist/actions/get-station-measurements.d.cts +2 -2
- package/dist/actions/get-station-measurements.d.mts +2 -2
- package/dist/actions/get-station-measurements.mjs +2 -2
- package/dist/actions/get-station-measurements.mjs.map +1 -1
- package/dist/actions/get-uv-index-history.cjs +2 -2
- package/dist/actions/get-uv-index-history.cjs.map +1 -1
- package/dist/actions/get-uv-index-history.d.cts +2 -2
- package/dist/actions/get-uv-index-history.d.mts +2 -2
- package/dist/actions/get-uv-index-history.mjs +2 -2
- package/dist/actions/get-uv-index-history.mjs.map +1 -1
- package/dist/actions/get-uv-index.cjs +1 -1
- package/dist/actions/get-uv-index.cjs.map +1 -1
- package/dist/actions/get-uv-index.d.cts +1 -1
- package/dist/actions/get-uv-index.d.mts +1 -1
- package/dist/actions/get-uv-index.mjs +1 -1
- package/dist/actions/get-uv-index.mjs.map +1 -1
- package/dist/actions/get-weather-map-tile.cjs +1 -1
- package/dist/actions/get-weather-map-tile.cjs.map +1 -1
- package/dist/actions/get-weather-map-tile.d.cts +5 -5
- package/dist/actions/get-weather-map-tile.d.mts +5 -5
- package/dist/actions/get-weather-map-tile.mjs +1 -1
- package/dist/actions/get-weather-map-tile.mjs.map +1 -1
- package/dist/actions/get-weather-station.cjs +1 -1
- package/dist/actions/get-weather-station.cjs.map +1 -1
- package/dist/actions/get-weather-station.d.cts +1 -1
- package/dist/actions/get-weather-station.d.mts +1 -1
- package/dist/actions/get-weather-station.mjs +1 -1
- package/dist/actions/get-weather-station.mjs.map +1 -1
- package/dist/actions/get-weather-stations.cjs +2 -2
- package/dist/actions/get-weather-stations.cjs.map +1 -1
- package/dist/actions/get-weather-stations.d.cts +2 -2
- package/dist/actions/get-weather-stations.d.mts +2 -2
- package/dist/actions/get-weather-stations.mjs +2 -2
- package/dist/actions/get-weather-stations.mjs.map +1 -1
- package/dist/actions/get-weather-triggers.cjs +3 -3
- package/dist/actions/get-weather-triggers.cjs.map +1 -1
- package/dist/actions/get-weather-triggers.d.cts +4 -3
- package/dist/actions/get-weather-triggers.d.mts +4 -3
- package/dist/actions/get-weather-triggers.mjs +3 -3
- package/dist/actions/get-weather-triggers.mjs.map +1 -1
- package/dist/actions/get5-day-forecast.cjs +10 -10
- package/dist/actions/get5-day-forecast.cjs.map +1 -1
- package/dist/actions/get5-day-forecast.d.cts +11 -11
- package/dist/actions/get5-day-forecast.d.mts +11 -11
- package/dist/actions/get5-day-forecast.mjs +10 -10
- package/dist/actions/get5-day-forecast.mjs.map +1 -1
- package/dist/actions/post-add-weather-station.cjs +1 -1
- package/dist/actions/post-add-weather-station.cjs.map +1 -1
- package/dist/actions/post-add-weather-station.d.cts +1 -1
- package/dist/actions/post-add-weather-station.d.mts +1 -1
- package/dist/actions/post-add-weather-station.mjs +1 -1
- package/dist/actions/post-add-weather-station.mjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.cjs +2 -2
- package/dist/actions/post-submit-station-measurements.cjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.d.cts +3 -2
- package/dist/actions/post-submit-station-measurements.d.mts +3 -2
- package/dist/actions/post-submit-station-measurements.mjs +2 -2
- package/dist/actions/post-submit-station-measurements.mjs.map +1 -1
- package/dist/actions/update-weather-station.cjs +1 -1
- package/dist/actions/update-weather-station.cjs.map +1 -1
- package/dist/actions/update-weather-station.d.cts +1 -1
- package/dist/actions/update-weather-station.d.mts +1 -1
- package/dist/actions/update-weather-station.mjs +1 -1
- package/dist/actions/update-weather-station.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-weather-station.ts
|
|
4
4
|
const OpenweatherApiDeleteWeatherStationInput = zod.z.object({ station_id: zod.z.string().describe("The unique ID of the weather station to delete.") }).describe("Path parameter for deleting a weather station.");
|
|
5
|
-
const OpenweatherApiDeleteWeatherStationOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message of successful deletion.").nullable() }).describe("Response schema for deleting a weather station.");
|
|
5
|
+
const OpenweatherApiDeleteWeatherStationOutput = zod.z.object({ message: zod.z.string().describe("Confirmation message of successful deletion.").nullable() }).passthrough().describe("Response schema for deleting a weather station.");
|
|
6
6
|
const openweatherApiDeleteWeatherStation = require_action.action("OPENWEATHER_API_DELETE_WEATHER_STATION", {
|
|
7
7
|
slug: "openweather_api-delete-weather-station",
|
|
8
8
|
name: "Delete Weather Station",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/delete-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiDeleteWeatherStationInput = z.object({\n station_id: z.string().describe(\"The unique ID of the weather station to delete.\"),\n}).describe(\"Path parameter for deleting a weather station.\");\nexport const OpenweatherApiDeleteWeatherStationOutput = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\").nullable(),\n}).describe(\"Response schema for deleting a weather station.\");\n\nexport const openweatherApiDeleteWeatherStation = action(\"OPENWEATHER_API_DELETE_WEATHER_STATION\", {\n slug: \"openweather_api-delete-weather-station\",\n name: \"Delete Weather Station\",\n description: \"Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.\",\n input: OpenweatherApiDeleteWeatherStationInput,\n output: OpenweatherApiDeleteWeatherStationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,SAAS,iDAAiD;
|
|
1
|
+
{"version":3,"file":"delete-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/delete-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiDeleteWeatherStationInput = z.object({\n station_id: z.string().describe(\"The unique ID of the weather station to delete.\"),\n}).describe(\"Path parameter for deleting a weather station.\");\nexport const OpenweatherApiDeleteWeatherStationOutput = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\").nullable(),\n}).passthrough().describe(\"Response schema for deleting a weather station.\");\n\nexport const openweatherApiDeleteWeatherStation = action(\"OPENWEATHER_API_DELETE_WEATHER_STATION\", {\n slug: \"openweather_api-delete-weather-station\",\n name: \"Delete Weather Station\",\n description: \"Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.\",\n input: OpenweatherApiDeleteWeatherStationInput,\n output: OpenweatherApiDeleteWeatherStationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const OpenweatherApiDeleteWeatherStationInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const OpenweatherApiDeleteWeatherStationOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const openweatherApiDeleteWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
station_id: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const OpenweatherApiDeleteWeatherStationInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const OpenweatherApiDeleteWeatherStationOutput: z.ZodObject<{
|
|
8
8
|
message: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const openweatherApiDeleteWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
station_id: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const openweatherApiDeleteWeatherStation = action("OPENWEATHER_API_DELETE_WEATHE
|
|
|
5
5
|
name: "Delete Weather Station",
|
|
6
6
|
description: "Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.",
|
|
7
7
|
input: z.object({ station_id: z.string().describe("The unique ID of the weather station to delete.") }).describe("Path parameter for deleting a weather station."),
|
|
8
|
-
output: z.object({ message: z.string().describe("Confirmation message of successful deletion.").nullable() }).describe("Response schema for deleting a weather station.")
|
|
8
|
+
output: z.object({ message: z.string().describe("Confirmation message of successful deletion.").nullable() }).passthrough().describe("Response schema for deleting a weather station.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { openweatherApiDeleteWeatherStation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-weather-station.mjs","names":[],"sources":["../../src/actions/delete-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiDeleteWeatherStationInput = z.object({\n station_id: z.string().describe(\"The unique ID of the weather station to delete.\"),\n}).describe(\"Path parameter for deleting a weather station.\");\nexport const OpenweatherApiDeleteWeatherStationOutput = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\").nullable(),\n}).describe(\"Response schema for deleting a weather station.\");\n\nexport const openweatherApiDeleteWeatherStation = action(\"OPENWEATHER_API_DELETE_WEATHER_STATION\", {\n slug: \"openweather_api-delete-weather-station\",\n name: \"Delete Weather Station\",\n description: \"Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.\",\n input: OpenweatherApiDeleteWeatherStationInput,\n output: OpenweatherApiDeleteWeatherStationOutput,\n});\n"],"mappings":";;AAWA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"delete-weather-station.mjs","names":[],"sources":["../../src/actions/delete-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiDeleteWeatherStationInput = z.object({\n station_id: z.string().describe(\"The unique ID of the weather station to delete.\"),\n}).describe(\"Path parameter for deleting a weather station.\");\nexport const OpenweatherApiDeleteWeatherStationOutput = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\").nullable(),\n}).passthrough().describe(\"Response schema for deleting a weather station.\");\n\nexport const openweatherApiDeleteWeatherStation = action(\"OPENWEATHER_API_DELETE_WEATHER_STATION\", {\n slug: \"openweather_api-delete-weather-station\",\n name: \"Delete Weather Station\",\n description: \"Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.\",\n input: OpenweatherApiDeleteWeatherStationInput,\n output: OpenweatherApiDeleteWeatherStationOutput,\n});\n"],"mappings":";;AAWA,MAAa,qCAAqC,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,EACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const OpenweatherApiGetAirPollutionCurrentInput = zod.z.object({
|
|
|
5
5
|
lat: zod.z.number().describe("Latitude of the location, between -90 and 90"),
|
|
6
6
|
lon: zod.z.number().describe("Longitude of the location, between -180 and 180")
|
|
7
7
|
});
|
|
8
|
-
const OpenweatherApiGetAirPollutionCurrent_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)").nullable() });
|
|
8
|
+
const OpenweatherApiGetAirPollutionCurrent_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)").nullable() }).passthrough();
|
|
9
9
|
const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = zod.z.object({
|
|
10
10
|
co: zod.z.number().describe("CO concentration, μg/m3").nullable(),
|
|
11
11
|
no: zod.z.number().describe("Nitric oxide concentration, μg/m3").nullable(),
|
|
@@ -15,20 +15,20 @@ const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = zod.z.object({
|
|
|
15
15
|
so2: zod.z.number().describe("Sulphur dioxide concentration, μg/m3").nullable(),
|
|
16
16
|
pm10: zod.z.number().describe("Particulate matter <10 μm, μg/m3").nullable(),
|
|
17
17
|
pm2_5: zod.z.number().describe("Particulate matter <2.5 μm, μg/m3").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const OpenweatherApiGetAirPollutionCurrent_DataPointSchema = zod.z.object({
|
|
20
20
|
dt: zod.z.number().int().describe("Time of data calculation, UNIX UTC timestamp").nullable(),
|
|
21
21
|
main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),
|
|
22
22
|
components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OpenweatherApiGetAirPollutionCurrent_CoordSchema = zod.z.object({
|
|
25
25
|
lat: zod.z.number().describe("Latitude of the location").nullable(),
|
|
26
26
|
lon: zod.z.number().describe("Longitude of the location").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const OpenweatherApiGetAirPollutionCurrentOutput = zod.z.object({
|
|
29
29
|
list: zod.z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe("Array of air quality measurements"),
|
|
30
30
|
coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const openweatherApiGetAirPollutionCurrent = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT", {
|
|
33
33
|
slug: "openweather_api-get-air-pollution-current",
|
|
34
34
|
name: "Get Current Air Pollution Data",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-current.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-current.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionCurrentInput = z.object({\n lat: z.number().describe(\"Latitude of the location, between -90 and 90\"),\n lon: z.number().describe(\"Longitude of the location, between -180 and 180\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\").nullable(),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration, μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\").nullable(),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\").nullable(),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n});\nexport const OpenweatherApiGetAirPollutionCurrentOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe(\"Array of air quality measurements\"),\n coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable(),\n});\n\nexport const openweatherApiGetAirPollutionCurrent = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT\", {\n slug: \"openweather_api-get-air-pollution-current\",\n name: \"Get Current Air Pollution Data\",\n description: \"Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.\",\n input: OpenweatherApiGetAirPollutionCurrentInput,\n output: OpenweatherApiGetAirPollutionCurrentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AAC5E,CAAC;AACD,MAAM,kDAAkDA,IAAAA,EAAE,OAAO,EAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-air-pollution-current.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-current.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionCurrentInput = z.object({\n lat: z.number().describe(\"Latitude of the location, between -90 and 90\"),\n lon: z.number().describe(\"Longitude of the location, between -180 and 180\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\").nullable(),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration, μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\").nullable(),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\").nullable(),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionCurrentOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe(\"Array of air quality measurements\"),\n coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable(),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionCurrent = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT\", {\n slug: \"openweather_api-get-air-pollution-current\",\n name: \"Get Current Air Pollution Data\",\n description: \"Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.\",\n input: OpenweatherApiGetAirPollutionCurrentInput,\n output: OpenweatherApiGetAirPollutionCurrentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC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SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,mCAAmC;CAChH,OAAO,iDAAiD,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodObject<{
|
|
|
10
10
|
dt: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
main: z.ZodNullable<z.ZodObject<{
|
|
12
12
|
aqi: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
components: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
co: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -20,13 +20,13 @@ declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodObject<{
|
|
|
20
20
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
coord: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const openweatherApiGetAirPollutionCurrent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
lat: number;
|
|
32
32
|
lon: number;
|
|
@@ -10,7 +10,7 @@ declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodObject<{
|
|
|
10
10
|
dt: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
main: z.ZodNullable<z.ZodObject<{
|
|
12
12
|
aqi: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
components: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
co: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -20,13 +20,13 @@ declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodObject<{
|
|
|
20
20
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
coord: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const openweatherApiGetAirPollutionCurrent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
lat: number;
|
|
32
32
|
lon: number;
|
|
@@ -5,7 +5,7 @@ const OpenweatherApiGetAirPollutionCurrentInput = z.object({
|
|
|
5
5
|
lat: z.number().describe("Latitude of the location, between -90 and 90"),
|
|
6
6
|
lon: z.number().describe("Longitude of the location, between -180 and 180")
|
|
7
7
|
});
|
|
8
|
-
const OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)").nullable() });
|
|
8
|
+
const OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)").nullable() }).passthrough();
|
|
9
9
|
const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({
|
|
10
10
|
co: z.number().describe("CO concentration, μg/m3").nullable(),
|
|
11
11
|
no: z.number().describe("Nitric oxide concentration, μg/m3").nullable(),
|
|
@@ -15,16 +15,16 @@ const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({
|
|
|
15
15
|
so2: z.number().describe("Sulphur dioxide concentration, μg/m3").nullable(),
|
|
16
16
|
pm10: z.number().describe("Particulate matter <10 μm, μg/m3").nullable(),
|
|
17
17
|
pm2_5: z.number().describe("Particulate matter <2.5 μm, μg/m3").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({
|
|
20
20
|
dt: z.number().int().describe("Time of data calculation, UNIX UTC timestamp").nullable(),
|
|
21
21
|
main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),
|
|
22
22
|
components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({
|
|
25
25
|
lat: z.number().describe("Latitude of the location").nullable(),
|
|
26
26
|
lon: z.number().describe("Longitude of the location").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const openweatherApiGetAirPollutionCurrent = action("OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT", {
|
|
29
29
|
slug: "openweather_api-get-air-pollution-current",
|
|
30
30
|
name: "Get Current Air Pollution Data",
|
|
@@ -33,7 +33,7 @@ const openweatherApiGetAirPollutionCurrent = action("OPENWEATHER_API_GET_AIR_POL
|
|
|
33
33
|
output: z.object({
|
|
34
34
|
list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe("Array of air quality measurements"),
|
|
35
35
|
coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable()
|
|
36
|
-
})
|
|
36
|
+
}).passthrough()
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { openweatherApiGetAirPollutionCurrent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-current.mjs","names":[],"sources":["../../src/actions/get-air-pollution-current.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionCurrentInput = z.object({\n lat: z.number().describe(\"Latitude of the location, between -90 and 90\"),\n lon: z.number().describe(\"Longitude of the location, between -180 and 180\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\").nullable(),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration, μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\").nullable(),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\").nullable(),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n});\nexport const OpenweatherApiGetAirPollutionCurrentOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe(\"Array of air quality measurements\"),\n coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable(),\n});\n\nexport const openweatherApiGetAirPollutionCurrent = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT\", {\n slug: \"openweather_api-get-air-pollution-current\",\n name: \"Get Current Air Pollution Data\",\n description: \"Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.\",\n input: OpenweatherApiGetAirPollutionCurrentInput,\n output: OpenweatherApiGetAirPollutionCurrentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AAC5E,CAAC;AACD,MAAM,kDAAkD,EAAE,OAAO,EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-air-pollution-current.mjs","names":[],"sources":["../../src/actions/get-air-pollution-current.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionCurrentInput = z.object({\n lat: z.number().describe(\"Latitude of the location, between -90 and 90\"),\n lon: z.number().describe(\"Longitude of the location, between -180 and 180\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\").nullable(),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration, μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\").nullable(),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\").nullable(),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionCurrentOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe(\"Array of air quality measurements\"),\n coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable(),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionCurrent = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT\", {\n slug: \"openweather_api-get-air-pollution-current\",\n name: \"Get Current Air Pollution Data\",\n description: \"Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.\",\n input: OpenweatherApiGetAirPollutionCurrentInput,\n output: OpenweatherApiGetAirPollutionCurrentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CA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CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,MAAM,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,mCAAmC;EAChH,OAAO,iDAAiD,SAAS;CACnE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const OpenweatherApiGetAirPollutionForecastInput = zod.z.object({
|
|
|
5
5
|
lat: zod.z.number().describe("Geographical latitude in decimal degrees (range -90 to 90)"),
|
|
6
6
|
lon: zod.z.number().describe("Geographical longitude in decimal degrees (range -180 to 180)")
|
|
7
7
|
});
|
|
8
|
-
const OpenweatherApiGetAirPollutionForecast_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=good, 5=very poor)").nullable() });
|
|
8
|
+
const OpenweatherApiGetAirPollutionForecast_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=good, 5=very poor)").nullable() }).passthrough();
|
|
9
9
|
const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = zod.z.object({
|
|
10
10
|
co: zod.z.number().describe("Carbon monoxide concentration (μg/m3)").nullable(),
|
|
11
11
|
no: zod.z.number().describe("Nitrogen monoxide concentration (μg/m3)").nullable(),
|
|
@@ -15,20 +15,20 @@ const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = zod.z.object({
|
|
|
15
15
|
so2: zod.z.number().describe("Sulphur dioxide concentration (μg/m3)").nullable(),
|
|
16
16
|
pm10: zod.z.number().describe("Coarse particulate matter (μg/m3)").nullable(),
|
|
17
17
|
pm2_5: zod.z.number().describe("Fine particulate matter (μg/m3)").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = zod.z.object({
|
|
20
20
|
dt: zod.z.number().int().describe("Time of the forecasted data, Unix time, UTC").nullable(),
|
|
21
21
|
main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),
|
|
22
22
|
components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OpenweatherApiGetAirPollutionForecast_CoordSchema = zod.z.object({
|
|
25
25
|
lat: zod.z.number().describe("Latitude of the location").nullable(),
|
|
26
26
|
lon: zod.z.number().describe("Longitude of the location").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const OpenweatherApiGetAirPollutionForecastOutput = zod.z.object({
|
|
29
29
|
list: zod.z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe("Array of forecasted air pollution data"),
|
|
30
30
|
coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const openweatherApiGetAirPollutionForecast = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST", {
|
|
33
33
|
slug: "openweather_api-get-air-pollution-forecast",
|
|
34
34
|
name: "Get Air Pollution Forecast",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionForecastInput = z.object({\n lat: z.number().describe(\"Geographical latitude in decimal degrees (range -90 to 90)\"),\n lon: z.number().describe(\"Geographical longitude in decimal degrees (range -180 to 180)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\").nullable(),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\").nullable(),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n});\nexport const OpenweatherApiGetAirPollutionForecastOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe(\"Array of forecasted air pollution data\"),\n coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable(),\n});\n\nexport const openweatherApiGetAirPollutionForecast = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST\", {\n slug: \"openweather_api-get-air-pollution-forecast\",\n name: \"Get Air Pollution Forecast\",\n description: \"Tool to get forecasted air pollution data for a specific location. Use after confirming latitude and longitude. Forecast availability may be limited for remote or oceanic coordinates; verify response timestamps to confirm returned data represents a true forecast rather than a current snapshot.\",\n input: OpenweatherApiGetAirPollutionForecastInput,\n output: OpenweatherApiGetAirPollutionForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO,EAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-air-pollution-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionForecastInput = z.object({\n lat: z.number().describe(\"Geographical latitude in decimal degrees (range -90 to 90)\"),\n lon: z.number().describe(\"Geographical longitude in decimal degrees (range -180 to 180)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\").nullable(),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\").nullable(),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionForecastOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe(\"Array of forecasted air pollution data\"),\n coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable(),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionForecast = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST\", {\n slug: \"openweather_api-get-air-pollution-forecast\",\n name: \"Get Air Pollution Forecast\",\n description: \"Tool to get forecasted air pollution data for a specific location. Use after confirming latitude and longitude. Forecast availability may be limited for remote or oceanic coordinates; verify response timestamps to confirm returned data represents a true forecast rather than a current snapshot.\",\n input: OpenweatherApiGetAirPollutionForecastInput,\n output: OpenweatherApiGetAirPollutionForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO,EAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SA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ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
components: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
co: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -20,13 +20,13 @@ declare const OpenweatherApiGetAirPollutionForecastOutput: z.ZodObject<{
|
|
|
20
20
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
coord: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const openweatherApiGetAirPollutionForecast: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
lat: number;
|
|
32
32
|
lon: number;
|
|
@@ -10,7 +10,7 @@ declare const OpenweatherApiGetAirPollutionForecastOutput: z.ZodObject<{
|
|
|
10
10
|
dt: z.ZodNullable<z.ZodNumber>;
|
|
11
11
|
main: z.ZodNullable<z.ZodObject<{
|
|
12
12
|
aqi: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
components: z.ZodNullable<z.ZodObject<{
|
|
15
15
|
co: z.ZodNullable<z.ZodNumber>;
|
|
16
16
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -20,13 +20,13 @@ declare const OpenweatherApiGetAirPollutionForecastOutput: z.ZodObject<{
|
|
|
20
20
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
22
22
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
23
|
-
}, z.core.$
|
|
24
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
25
|
coord: z.ZodNullable<z.ZodObject<{
|
|
26
26
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
27
27
|
lon: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
29
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const openweatherApiGetAirPollutionForecast: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
lat: number;
|
|
32
32
|
lon: number;
|
|
@@ -5,7 +5,7 @@ const OpenweatherApiGetAirPollutionForecastInput = z.object({
|
|
|
5
5
|
lat: z.number().describe("Geographical latitude in decimal degrees (range -90 to 90)"),
|
|
6
6
|
lon: z.number().describe("Geographical longitude in decimal degrees (range -180 to 180)")
|
|
7
7
|
});
|
|
8
|
-
const OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=good, 5=very poor)").nullable() });
|
|
8
|
+
const OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=good, 5=very poor)").nullable() }).passthrough();
|
|
9
9
|
const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({
|
|
10
10
|
co: z.number().describe("Carbon monoxide concentration (μg/m3)").nullable(),
|
|
11
11
|
no: z.number().describe("Nitrogen monoxide concentration (μg/m3)").nullable(),
|
|
@@ -15,16 +15,16 @@ const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({
|
|
|
15
15
|
so2: z.number().describe("Sulphur dioxide concentration (μg/m3)").nullable(),
|
|
16
16
|
pm10: z.number().describe("Coarse particulate matter (μg/m3)").nullable(),
|
|
17
17
|
pm2_5: z.number().describe("Fine particulate matter (μg/m3)").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({
|
|
20
20
|
dt: z.number().int().describe("Time of the forecasted data, Unix time, UTC").nullable(),
|
|
21
21
|
main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),
|
|
22
22
|
components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({
|
|
25
25
|
lat: z.number().describe("Latitude of the location").nullable(),
|
|
26
26
|
lon: z.number().describe("Longitude of the location").nullable()
|
|
27
|
-
});
|
|
27
|
+
}).passthrough();
|
|
28
28
|
const openweatherApiGetAirPollutionForecast = action("OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST", {
|
|
29
29
|
slug: "openweather_api-get-air-pollution-forecast",
|
|
30
30
|
name: "Get Air Pollution Forecast",
|
|
@@ -33,7 +33,7 @@ const openweatherApiGetAirPollutionForecast = action("OPENWEATHER_API_GET_AIR_PO
|
|
|
33
33
|
output: z.object({
|
|
34
34
|
list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe("Array of forecasted air pollution data"),
|
|
35
35
|
coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable()
|
|
36
|
-
})
|
|
36
|
+
}).passthrough()
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
39
39
|
export { openweatherApiGetAirPollutionForecast };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-forecast.mjs","names":[],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionForecastInput = z.object({\n lat: z.number().describe(\"Geographical latitude in decimal degrees (range -90 to 90)\"),\n lon: z.number().describe(\"Geographical longitude in decimal degrees (range -180 to 180)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\").nullable(),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\").nullable(),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n});\nexport const OpenweatherApiGetAirPollutionForecastOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe(\"Array of forecasted air pollution data\"),\n coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable(),\n});\n\nexport const openweatherApiGetAirPollutionForecast = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST\", {\n slug: \"openweather_api-get-air-pollution-forecast\",\n name: \"Get Air Pollution Forecast\",\n description: \"Tool to get forecasted air pollution data for a specific location. Use after confirming latitude and longitude. Forecast availability may be limited for remote or oceanic coordinates; verify response timestamps to confirm returned data represents a true forecast rather than a current snapshot.\",\n input: OpenweatherApiGetAirPollutionForecastInput,\n output: OpenweatherApiGetAirPollutionForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC;
|
|
1
|
+
{"version":3,"file":"get-air-pollution-forecast.mjs","names":[],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionForecastInput = z.object({\n lat: z.number().describe(\"Geographical latitude in decimal degrees (range -90 to 90)\"),\n lon: z.number().describe(\"Geographical longitude in decimal degrees (range -180 to 180)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\").nullable(),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\").nullable(),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\").nullable(),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({\n lat: z.number().describe(\"Latitude of the location\").nullable(),\n lon: z.number().describe(\"Longitude of the location\").nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionForecastOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe(\"Array of forecasted air pollution data\"),\n coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable(),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionForecast = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST\", {\n slug: \"openweather_api-get-air-pollution-forecast\",\n name: \"Get Air Pollution Forecast\",\n description: \"Tool to get forecasted air pollution data for a specific location. Use after confirming latitude and longitude. Forecast availability may be limited for remote or oceanic coordinates; verify response timestamps to confirm returned data represents a true forecast rather than a current snapshot.\",\n input: OpenweatherApiGetAirPollutionForecastInput,\n output: OpenweatherApiGetAirPollutionForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO,EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,EACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,yDAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,2DAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACtF,MAAM,iDAAiD,SAAS;CAChE,YAAY,uDAAuD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oDAAoD,EAAE,OAAO;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,wCAAwC;EACzH,OAAO,kDAAkD,SAAS;CACpE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const OpenweatherApiGetAirPollutionHistoryInput = zod.z.object({
|
|
|
7
7
|
lon: zod.z.number().describe("Longitude of the location (range: -180 to 180)"),
|
|
8
8
|
start: zod.z.number().int().describe("Start UNIX timestamp (UTC seconds); must be <= end")
|
|
9
9
|
});
|
|
10
|
-
const OpenweatherApiGetAirPollutionHistory_MainDataSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)").nullable() });
|
|
10
|
+
const OpenweatherApiGetAirPollutionHistory_MainDataSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)").nullable() }).passthrough();
|
|
11
11
|
const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = zod.z.object({
|
|
12
12
|
co: zod.z.number().describe("Carbon monoxide concentration in μg/m3").nullable(),
|
|
13
13
|
no: zod.z.number().describe("Nitrogen monoxide concentration in μg/m3").nullable(),
|
|
@@ -17,16 +17,16 @@ const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = zod.z.
|
|
|
17
17
|
so2: zod.z.number().describe("Sulfur dioxide concentration in μg/m3").nullable(),
|
|
18
18
|
pm10: zod.z.number().describe("Coarse particulate matter (PM10) concentration in μg/m3").nullable(),
|
|
19
19
|
pm2_5: zod.z.number().describe("Fine particulate matter (PM2.5) concentration in μg/m3").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = zod.z.object({
|
|
22
22
|
dt: zod.z.number().int().describe("Data time (UNIX UTC seconds)").nullable(),
|
|
23
23
|
main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),
|
|
24
24
|
components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const OpenweatherApiGetAirPollutionHistoryOutput = zod.z.object({
|
|
27
27
|
list: zod.z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe("List of air pollution data objects"),
|
|
28
|
-
coord: zod.z.
|
|
29
|
-
});
|
|
28
|
+
coord: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Coordinates of the location")
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const openweatherApiGetAirPollutionHistory = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY", {
|
|
31
31
|
slug: "openweather_api-get-air-pollution-history",
|
|
32
32
|
name: "Get Air Pollution History",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-history.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionHistoryInput = z.object({\n end: z.number().int().describe(\"End UNIX timestamp (UTC seconds); must be >= start\"),\n lat: z.number().describe(\"Latitude of the location (range: -90 to 90)\"),\n lon: z.number().describe(\"Longitude of the location (range: -180 to 180)\"),\n start: z.number().int().describe(\"Start UNIX timestamp (UTC seconds); must be <= end\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration in μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\").nullable(),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\").nullable(),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n});\nexport const OpenweatherApiGetAirPollutionHistoryOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.
|
|
1
|
+
{"version":3,"file":"get-air-pollution-history.cjs","names":["z","action"],"sources":["../../src/actions/get-air-pollution-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionHistoryInput = z.object({\n end: z.number().int().describe(\"End UNIX timestamp (UTC seconds); must be >= start\"),\n lat: z.number().describe(\"Latitude of the location (range: -90 to 90)\"),\n lon: z.number().describe(\"Longitude of the location (range: -180 to 180)\"),\n start: z.number().int().describe(\"Start UNIX timestamp (UTC seconds); must be <= end\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration in μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\").nullable(),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\").nullable(),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionHistoryOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.record(z.string(), z.unknown()).describe(\"Coordinates of the location\"),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionHistory = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY\", {\n slug: \"openweather_api-get-air-pollution-history\",\n name: \"Get Air Pollution History\",\n description: \"Tool to retrieve historical air pollution data. Use when you need past air quality levels for a specific latitude/longitude and time range.\",\n input: OpenweatherApiGetAirPollutionHistoryInput,\n output: OpenweatherApiGetAirPollutionHistoryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CACnF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACtE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACvF,CAAC;AACD,MAAM,sDAAsDA,IAAAA,EAAE,OAAO,EACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,EAC5H,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,oEAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CA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.ZodObject<{
|
|
|
12
12
|
dt: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
main: z.ZodNullable<z.ZodObject<{
|
|
14
14
|
aqi: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
components: z.ZodNullable<z.ZodObject<{
|
|
17
17
|
co: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -22,10 +22,10 @@ declare const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodObject<{
|
|
|
22
22
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
27
|
-
coord: z.
|
|
28
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
coord: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const openweatherApiGetAirPollutionHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
end: number;
|
|
31
31
|
lat: number;
|
|
@@ -12,7 +12,7 @@ declare const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodObject<{
|
|
|
12
12
|
dt: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
main: z.ZodNullable<z.ZodObject<{
|
|
14
14
|
aqi: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
components: z.ZodNullable<z.ZodObject<{
|
|
17
17
|
co: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
no: z.ZodNullable<z.ZodNumber>;
|
|
@@ -22,10 +22,10 @@ declare const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodObject<{
|
|
|
22
22
|
so2: z.ZodNullable<z.ZodNumber>;
|
|
23
23
|
pm10: z.ZodNullable<z.ZodNumber>;
|
|
24
24
|
pm2_5: z.ZodNullable<z.ZodNumber>;
|
|
25
|
-
}, z.core.$
|
|
26
|
-
}, z.core.$
|
|
27
|
-
coord: z.
|
|
28
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
coord: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const openweatherApiGetAirPollutionHistory: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
end: number;
|
|
31
31
|
lat: number;
|
|
@@ -7,7 +7,7 @@ const OpenweatherApiGetAirPollutionHistoryInput = z.object({
|
|
|
7
7
|
lon: z.number().describe("Longitude of the location (range: -180 to 180)"),
|
|
8
8
|
start: z.number().int().describe("Start UNIX timestamp (UTC seconds); must be <= end")
|
|
9
9
|
});
|
|
10
|
-
const OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)").nullable() });
|
|
10
|
+
const OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)").nullable() }).passthrough();
|
|
11
11
|
const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({
|
|
12
12
|
co: z.number().describe("Carbon monoxide concentration in μg/m3").nullable(),
|
|
13
13
|
no: z.number().describe("Nitrogen monoxide concentration in μg/m3").nullable(),
|
|
@@ -17,12 +17,12 @@ const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.obje
|
|
|
17
17
|
so2: z.number().describe("Sulfur dioxide concentration in μg/m3").nullable(),
|
|
18
18
|
pm10: z.number().describe("Coarse particulate matter (PM10) concentration in μg/m3").nullable(),
|
|
19
19
|
pm2_5: z.number().describe("Fine particulate matter (PM2.5) concentration in μg/m3").nullable()
|
|
20
|
-
});
|
|
20
|
+
}).passthrough();
|
|
21
21
|
const OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({
|
|
22
22
|
dt: z.number().int().describe("Data time (UNIX UTC seconds)").nullable(),
|
|
23
23
|
main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),
|
|
24
24
|
components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const openweatherApiGetAirPollutionHistory = action("OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY", {
|
|
27
27
|
slug: "openweather_api-get-air-pollution-history",
|
|
28
28
|
name: "Get Air Pollution History",
|
|
@@ -30,8 +30,8 @@ const openweatherApiGetAirPollutionHistory = action("OPENWEATHER_API_GET_AIR_POL
|
|
|
30
30
|
input: OpenweatherApiGetAirPollutionHistoryInput,
|
|
31
31
|
output: z.object({
|
|
32
32
|
list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe("List of air pollution data objects"),
|
|
33
|
-
coord: z.
|
|
34
|
-
})
|
|
33
|
+
coord: z.record(z.string(), z.unknown()).describe("Coordinates of the location")
|
|
34
|
+
}).passthrough()
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { openweatherApiGetAirPollutionHistory };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-air-pollution-history.mjs","names":[],"sources":["../../src/actions/get-air-pollution-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionHistoryInput = z.object({\n end: z.number().int().describe(\"End UNIX timestamp (UTC seconds); must be >= start\"),\n lat: z.number().describe(\"Latitude of the location (range: -90 to 90)\"),\n lon: z.number().describe(\"Longitude of the location (range: -180 to 180)\"),\n start: z.number().int().describe(\"Start UNIX timestamp (UTC seconds); must be <= end\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration in μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\").nullable(),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\").nullable(),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\").nullable(),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n});\nexport const OpenweatherApiGetAirPollutionHistoryOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.
|
|
1
|
+
{"version":3,"file":"get-air-pollution-history.mjs","names":[],"sources":["../../src/actions/get-air-pollution-history.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetAirPollutionHistoryInput = z.object({\n end: z.number().int().describe(\"End UNIX timestamp (UTC seconds); must be >= start\"),\n lat: z.number().describe(\"Latitude of the location (range: -90 to 90)\"),\n lon: z.number().describe(\"Longitude of the location (range: -180 to 180)\"),\n start: z.number().int().describe(\"Start UNIX timestamp (UTC seconds); must be <= end\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_MainDataSchema = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (0=No data, 1=Good, 2=Fair, 3=Moderate, 4=Poor, 5=Very Poor)\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\").nullable(),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\").nullable(),\n o3: z.number().describe(\"Ozone concentration in μg/m3\").nullable(),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\").nullable(),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\").nullable(),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\").nullable(),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\").nullable(),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\").nullable(),\n}).passthrough();\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\").nullable(),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n}).passthrough();\nexport const OpenweatherApiGetAirPollutionHistoryOutput = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.record(z.string(), z.unknown()).describe(\"Coordinates of the location\"),\n}).passthrough();\n\nexport const openweatherApiGetAirPollutionHistory = action(\"OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY\", {\n slug: \"openweather_api-get-air-pollution-history\",\n name: \"Get Air Pollution History\",\n description: \"Tool to retrieve historical air pollution data. Use when you need past air quality levels for a specific latitude/longitude and time range.\",\n input: OpenweatherApiGetAirPollutionHist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