@keystrokehq/openweather_api 0.1.0
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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/delete-weather-station.cjs +16 -0
- package/dist/actions/delete-weather-station.cjs.map +1 -0
- package/dist/actions/delete-weather-station.d.cts +9 -0
- package/dist/actions/delete-weather-station.d.cts.map +1 -0
- package/dist/actions/delete-weather-station.d.mts +9 -0
- package/dist/actions/delete-weather-station.d.mts.map +1 -0
- package/dist/actions/delete-weather-station.mjs +13 -0
- package/dist/actions/delete-weather-station.mjs.map +1 -0
- package/dist/actions/get-air-pollution-current.cjs +42 -0
- package/dist/actions/get-air-pollution-current.cjs.map +1 -0
- package/dist/actions/get-air-pollution-current.d.cts +9 -0
- package/dist/actions/get-air-pollution-current.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-current.d.mts +9 -0
- package/dist/actions/get-air-pollution-current.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-current.mjs +41 -0
- package/dist/actions/get-air-pollution-current.mjs.map +1 -0
- package/dist/actions/get-air-pollution-forecast.cjs +42 -0
- package/dist/actions/get-air-pollution-forecast.cjs.map +1 -0
- package/dist/actions/get-air-pollution-forecast.d.cts +9 -0
- package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-forecast.d.mts +9 -0
- package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-forecast.mjs +41 -0
- package/dist/actions/get-air-pollution-forecast.mjs.map +1 -0
- package/dist/actions/get-air-pollution-history.cjs +40 -0
- package/dist/actions/get-air-pollution-history.cjs.map +1 -0
- package/dist/actions/get-air-pollution-history.d.cts +9 -0
- package/dist/actions/get-air-pollution-history.d.cts.map +1 -0
- package/dist/actions/get-air-pollution-history.d.mts +9 -0
- package/dist/actions/get-air-pollution-history.d.mts.map +1 -0
- package/dist/actions/get-air-pollution-history.mjs +39 -0
- package/dist/actions/get-air-pollution-history.mjs.map +1 -0
- package/dist/actions/get-circle-city-weather.cjs +85 -0
- package/dist/actions/get-circle-city-weather.cjs.map +1 -0
- package/dist/actions/get-circle-city-weather.d.cts +9 -0
- package/dist/actions/get-circle-city-weather.d.cts.map +1 -0
- package/dist/actions/get-circle-city-weather.d.mts +9 -0
- package/dist/actions/get-circle-city-weather.d.mts.map +1 -0
- package/dist/actions/get-circle-city-weather.mjs +84 -0
- package/dist/actions/get-circle-city-weather.mjs.map +1 -0
- package/dist/actions/get-current-weather.cjs +85 -0
- package/dist/actions/get-current-weather.cjs.map +1 -0
- package/dist/actions/get-current-weather.d.cts +9 -0
- package/dist/actions/get-current-weather.d.cts.map +1 -0
- package/dist/actions/get-current-weather.d.mts +9 -0
- package/dist/actions/get-current-weather.d.mts.map +1 -0
- package/dist/actions/get-current-weather.mjs +84 -0
- package/dist/actions/get-current-weather.mjs.map +1 -0
- package/dist/actions/get-geocoding-by-zip.cjs +22 -0
- package/dist/actions/get-geocoding-by-zip.cjs.map +1 -0
- package/dist/actions/get-geocoding-by-zip.d.cts +9 -0
- package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -0
- package/dist/actions/get-geocoding-by-zip.d.mts +9 -0
- package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -0
- package/dist/actions/get-geocoding-by-zip.mjs +19 -0
- package/dist/actions/get-geocoding-by-zip.mjs.map +1 -0
- package/dist/actions/get-geocoding-direct.cjs +19 -0
- package/dist/actions/get-geocoding-direct.cjs.map +1 -0
- package/dist/actions/get-geocoding-direct.d.cts +9 -0
- package/dist/actions/get-geocoding-direct.d.cts.map +1 -0
- package/dist/actions/get-geocoding-direct.d.mts +9 -0
- package/dist/actions/get-geocoding-direct.d.mts.map +1 -0
- package/dist/actions/get-geocoding-direct.mjs +16 -0
- package/dist/actions/get-geocoding-direct.mjs.map +1 -0
- package/dist/actions/get-geocoding-reverse.cjs +20 -0
- package/dist/actions/get-geocoding-reverse.cjs.map +1 -0
- package/dist/actions/get-geocoding-reverse.d.cts +9 -0
- package/dist/actions/get-geocoding-reverse.d.cts.map +1 -0
- package/dist/actions/get-geocoding-reverse.d.mts +9 -0
- package/dist/actions/get-geocoding-reverse.d.mts.map +1 -0
- package/dist/actions/get-geocoding-reverse.mjs +17 -0
- package/dist/actions/get-geocoding-reverse.mjs.map +1 -0
- package/dist/actions/get-station-measurements.cjs +36 -0
- package/dist/actions/get-station-measurements.cjs.map +1 -0
- package/dist/actions/get-station-measurements.d.cts +9 -0
- package/dist/actions/get-station-measurements.d.cts.map +1 -0
- package/dist/actions/get-station-measurements.d.mts +9 -0
- package/dist/actions/get-station-measurements.d.mts.map +1 -0
- package/dist/actions/get-station-measurements.mjs +35 -0
- package/dist/actions/get-station-measurements.mjs.map +1 -0
- package/dist/actions/get-uv-index-forecast.cjs +20 -0
- package/dist/actions/get-uv-index-forecast.cjs.map +1 -0
- package/dist/actions/get-uv-index-forecast.d.cts +9 -0
- package/dist/actions/get-uv-index-forecast.d.cts.map +1 -0
- package/dist/actions/get-uv-index-forecast.d.mts +9 -0
- package/dist/actions/get-uv-index-forecast.d.mts.map +1 -0
- package/dist/actions/get-uv-index-forecast.mjs +17 -0
- package/dist/actions/get-uv-index-forecast.mjs.map +1 -0
- package/dist/actions/get-uv-index-history.cjs +28 -0
- package/dist/actions/get-uv-index-history.cjs.map +1 -0
- package/dist/actions/get-uv-index-history.d.cts +9 -0
- package/dist/actions/get-uv-index-history.d.cts.map +1 -0
- package/dist/actions/get-uv-index-history.d.mts +9 -0
- package/dist/actions/get-uv-index-history.d.mts.map +1 -0
- package/dist/actions/get-uv-index-history.mjs +27 -0
- package/dist/actions/get-uv-index-history.mjs.map +1 -0
- package/dist/actions/get-uv-index.cjs +25 -0
- package/dist/actions/get-uv-index.cjs.map +1 -0
- package/dist/actions/get-uv-index.d.cts +9 -0
- package/dist/actions/get-uv-index.d.cts.map +1 -0
- package/dist/actions/get-uv-index.d.mts +9 -0
- package/dist/actions/get-uv-index.d.mts.map +1 -0
- package/dist/actions/get-uv-index.mjs +22 -0
- package/dist/actions/get-uv-index.mjs.map +1 -0
- package/dist/actions/get-weather-map-tile.cjs +39 -0
- package/dist/actions/get-weather-map-tile.cjs.map +1 -0
- package/dist/actions/get-weather-map-tile.d.cts +9 -0
- package/dist/actions/get-weather-map-tile.d.cts.map +1 -0
- package/dist/actions/get-weather-map-tile.d.mts +9 -0
- package/dist/actions/get-weather-map-tile.d.mts.map +1 -0
- package/dist/actions/get-weather-map-tile.mjs +36 -0
- package/dist/actions/get-weather-map-tile.mjs.map +1 -0
- package/dist/actions/get-weather-station.cjs +26 -0
- package/dist/actions/get-weather-station.cjs.map +1 -0
- package/dist/actions/get-weather-station.d.cts +9 -0
- package/dist/actions/get-weather-station.d.cts.map +1 -0
- package/dist/actions/get-weather-station.d.mts +9 -0
- package/dist/actions/get-weather-station.d.mts.map +1 -0
- package/dist/actions/get-weather-station.mjs +23 -0
- package/dist/actions/get-weather-station.mjs.map +1 -0
- package/dist/actions/get-weather-stations.cjs +27 -0
- package/dist/actions/get-weather-stations.cjs.map +1 -0
- package/dist/actions/get-weather-stations.d.cts +9 -0
- package/dist/actions/get-weather-stations.d.cts.map +1 -0
- package/dist/actions/get-weather-stations.d.mts +9 -0
- package/dist/actions/get-weather-stations.d.mts.map +1 -0
- package/dist/actions/get-weather-stations.mjs +26 -0
- package/dist/actions/get-weather-stations.mjs.map +1 -0
- package/dist/actions/get-weather-triggers.cjs +34 -0
- package/dist/actions/get-weather-triggers.cjs.map +1 -0
- package/dist/actions/get-weather-triggers.d.cts +9 -0
- package/dist/actions/get-weather-triggers.d.cts.map +1 -0
- package/dist/actions/get-weather-triggers.d.mts +9 -0
- package/dist/actions/get-weather-triggers.d.mts.map +1 -0
- package/dist/actions/get-weather-triggers.mjs +33 -0
- package/dist/actions/get-weather-triggers.mjs.map +1 -0
- package/dist/actions/get5-day-forecast.cjs +90 -0
- package/dist/actions/get5-day-forecast.cjs.map +1 -0
- package/dist/actions/get5-day-forecast.d.cts +9 -0
- package/dist/actions/get5-day-forecast.d.cts.map +1 -0
- package/dist/actions/get5-day-forecast.d.mts +9 -0
- package/dist/actions/get5-day-forecast.d.mts.map +1 -0
- package/dist/actions/get5-day-forecast.mjs +89 -0
- package/dist/actions/get5-day-forecast.mjs.map +1 -0
- package/dist/actions/index.cjs +43 -0
- package/dist/actions/index.d.cts +22 -0
- package/dist/actions/index.d.mts +22 -0
- package/dist/actions/index.mjs +22 -0
- package/dist/actions/post-add-weather-station.cjs +34 -0
- package/dist/actions/post-add-weather-station.cjs.map +1 -0
- package/dist/actions/post-add-weather-station.d.cts +9 -0
- package/dist/actions/post-add-weather-station.d.cts.map +1 -0
- package/dist/actions/post-add-weather-station.d.mts +9 -0
- package/dist/actions/post-add-weather-station.d.mts.map +1 -0
- package/dist/actions/post-add-weather-station.mjs +31 -0
- package/dist/actions/post-add-weather-station.mjs.map +1 -0
- package/dist/actions/post-submit-station-measurements.cjs +29 -0
- package/dist/actions/post-submit-station-measurements.cjs.map +1 -0
- package/dist/actions/post-submit-station-measurements.d.cts +9 -0
- package/dist/actions/post-submit-station-measurements.d.cts.map +1 -0
- package/dist/actions/post-submit-station-measurements.d.mts +9 -0
- package/dist/actions/post-submit-station-measurements.d.mts.map +1 -0
- package/dist/actions/post-submit-station-measurements.mjs +26 -0
- package/dist/actions/post-submit-station-measurements.mjs.map +1 -0
- package/dist/actions/update-weather-station.cjs +32 -0
- package/dist/actions/update-weather-station.cjs.map +1 -0
- package/dist/actions/update-weather-station.d.cts +9 -0
- package/dist/actions/update-weather-station.d.cts.map +1 -0
- package/dist/actions/update-weather-station.d.mts +9 -0
- package/dist/actions/update-weather-station.d.mts.map +1 -0
- package/dist/actions/update-weather-station.mjs +29 -0
- package/dist/actions/update-weather-station.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +25 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/openweather_api
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `openweather_api`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 21
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { openweatherApiDeleteWeatherStation } from "@keystrokehq/openweather_api/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "openweather_api-agent",
|
|
15
|
+
tools: [openweatherApiDeleteWeatherStation],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.openweatherApi.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeOpenweatherApiTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["openweatherApi","executeOpenweatherApiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openweatherApi } from \"./app\";\nimport { executeOpenweatherApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return openweatherApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOpenweatherApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,eAAe,OAAO;EAC3B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { openweatherApi } from "./app.mjs";
|
|
2
|
+
import { executeOpenweatherApiTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return openweatherApi.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeOpenweatherApiTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { openweatherApi } from \"./app\";\nimport { executeOpenweatherApiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return openweatherApi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeOpenweatherApiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,eAAe,OAAO;EAC3B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,0BAA0B,MAAM,KAAgC,CAAC;EACjG;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-weather-station.ts
|
|
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.") }).describe("Response schema for deleting a weather station.");
|
|
6
|
+
const openweatherApiDeleteWeatherStation = require_action.action("OPENWEATHER_API_DELETE_WEATHER_STATION", {
|
|
7
|
+
slug: "openweather_api-delete-weather-station",
|
|
8
|
+
name: "Delete Weather Station",
|
|
9
|
+
description: "Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.",
|
|
10
|
+
input: OpenweatherApiDeleteWeatherStationInput,
|
|
11
|
+
output: OpenweatherApiDeleteWeatherStationOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.openweatherApiDeleteWeatherStation = openweatherApiDeleteWeatherStation;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-weather-station.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\"),\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,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAC7E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,qCAAqCC,eAAAA,OAAO,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-weather-station.d.ts
|
|
4
|
+
declare const OpenweatherApiDeleteWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiDeleteWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiDeleteWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiDeleteWeatherStation };
|
|
9
|
+
//# sourceMappingURL=delete-weather-station.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-weather-station.d.cts","names":[],"sources":["../../src/actions/delete-weather-station.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAEK;AAAA,cAChD,wCAAA,EAA0C,CAAA,CAAE,UAEK;AAAA,cAEjD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-weather-station.d.ts
|
|
4
|
+
declare const OpenweatherApiDeleteWeatherStationInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiDeleteWeatherStationOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiDeleteWeatherStation: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiDeleteWeatherStation };
|
|
9
|
+
//# sourceMappingURL=delete-weather-station.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-weather-station.d.mts","names":[],"sources":["../../src/actions/delete-weather-station.ts"],"mappings":";;;cAIa,uCAAA,EAAyC,CAAA,CAAE,UAEK;AAAA,cAChD,wCAAA,EAA0C,CAAA,CAAE,UAEK;AAAA,cAEjD,kCAAA,gCAAkC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const openweatherApiDeleteWeatherStation = action("OPENWEATHER_API_DELETE_WEATHER_STATION", {
|
|
4
|
+
slug: "openweather_api-delete-weather-station",
|
|
5
|
+
name: "Delete Weather Station",
|
|
6
|
+
description: "Tool to delete a registered weather station. Use after identifying a station to remove. Returns confirmation message upon success.",
|
|
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.") }).describe("Response schema for deleting a weather station.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { openweatherApiDeleteWeatherStation };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-weather-station.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n message: z.string().describe(\"Confirmation message of successful deletion.\"),\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,OAXmE,EAAE,OAAO,EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,EACnF,CAAC,CAAC,CAAC,SAAS,gDASH;CACP,QAToE,EAAE,OAAO,EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,EAC7E,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-air-pollution-current.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionCurrentInput = zod.z.object({
|
|
5
|
+
lat: zod.z.number().describe("Latitude of the location, between -90 and 90"),
|
|
6
|
+
lon: zod.z.number().describe("Longitude of the location, between -180 and 180")
|
|
7
|
+
});
|
|
8
|
+
const OpenweatherApiGetAirPollutionCurrent_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)") });
|
|
9
|
+
const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = zod.z.object({
|
|
10
|
+
co: zod.z.number().describe("CO concentration, μg/m3"),
|
|
11
|
+
no: zod.z.number().describe("Nitric oxide concentration, μg/m3"),
|
|
12
|
+
o3: zod.z.number().describe("Ozone concentration, μg/m3"),
|
|
13
|
+
nh3: zod.z.number().describe("Ammonia concentration, μg/m3"),
|
|
14
|
+
no2: zod.z.number().describe("Nitrogen dioxide concentration, μg/m3"),
|
|
15
|
+
so2: zod.z.number().describe("Sulphur dioxide concentration, μg/m3"),
|
|
16
|
+
pm10: zod.z.number().describe("Particulate matter <10 μm, μg/m3"),
|
|
17
|
+
pm2_5: zod.z.number().describe("Particulate matter <2.5 μm, μg/m3")
|
|
18
|
+
});
|
|
19
|
+
const OpenweatherApiGetAirPollutionCurrent_DataPointSchema = zod.z.object({
|
|
20
|
+
dt: zod.z.number().int().describe("Time of data calculation, UNIX UTC timestamp"),
|
|
21
|
+
main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),
|
|
22
|
+
components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable()
|
|
23
|
+
});
|
|
24
|
+
const OpenweatherApiGetAirPollutionCurrent_CoordSchema = zod.z.object({
|
|
25
|
+
lat: zod.z.number().describe("Latitude of the location"),
|
|
26
|
+
lon: zod.z.number().describe("Longitude of the location")
|
|
27
|
+
});
|
|
28
|
+
const OpenweatherApiGetAirPollutionCurrentOutput = zod.z.object({
|
|
29
|
+
list: zod.z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe("Array of air quality measurements"),
|
|
30
|
+
coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable()
|
|
31
|
+
});
|
|
32
|
+
const openweatherApiGetAirPollutionCurrent = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT", {
|
|
33
|
+
slug: "openweather_api-get-air-pollution-current",
|
|
34
|
+
name: "Get Current Air Pollution Data",
|
|
35
|
+
description: "Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.",
|
|
36
|
+
input: OpenweatherApiGetAirPollutionCurrentInput,
|
|
37
|
+
output: OpenweatherApiGetAirPollutionCurrentOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.openweatherApiGetAirPollutionCurrent = openweatherApiGetAirPollutionCurrent;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=get-air-pollution-current.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\"),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\"),\n o3: z.number().describe(\"Ozone concentration, μg/m3\"),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\"),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\"),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\"),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\"),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lon: z.number().describe(\"Longitude of the location\"),\n});\nexport const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodTypeAny = 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,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AAC5E,CAAC;AACD,MAAM,kDAAgEA,IAAAA,EAAE,OAAO,EAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAChE,CAAC;AACD,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAM,gDAAgD,SAAS;CAC/D,YAAY,sDAAsD,SAAS;AAC7E,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AACD,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,MAAMA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,mCAAmC;CAChH,OAAO,iDAAiD,SAAS;AACnE,CAAC;AAED,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-current.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionCurrentInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionCurrent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionCurrent };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-current.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-current.d.cts","names":[],"sources":["../../src/actions/get-air-pollution-current.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGxD;AAAA,cAuBW,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAEW,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-current.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionCurrentInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionCurrent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionCurrent };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-current.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-current.d.mts","names":[],"sources":["../../src/actions/get-air-pollution-current.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGxD;AAAA,cAuBW,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAEW,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-air-pollution-current.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionCurrentInput = z.object({
|
|
5
|
+
lat: z.number().describe("Latitude of the location, between -90 and 90"),
|
|
6
|
+
lon: z.number().describe("Longitude of the location, between -180 and 180")
|
|
7
|
+
});
|
|
8
|
+
const OpenweatherApiGetAirPollutionCurrent_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=Good, 5=Very Poor)") });
|
|
9
|
+
const OpenweatherApiGetAirPollutionCurrent_ComponentsSchema = z.object({
|
|
10
|
+
co: z.number().describe("CO concentration, μg/m3"),
|
|
11
|
+
no: z.number().describe("Nitric oxide concentration, μg/m3"),
|
|
12
|
+
o3: z.number().describe("Ozone concentration, μg/m3"),
|
|
13
|
+
nh3: z.number().describe("Ammonia concentration, μg/m3"),
|
|
14
|
+
no2: z.number().describe("Nitrogen dioxide concentration, μg/m3"),
|
|
15
|
+
so2: z.number().describe("Sulphur dioxide concentration, μg/m3"),
|
|
16
|
+
pm10: z.number().describe("Particulate matter <10 μm, μg/m3"),
|
|
17
|
+
pm2_5: z.number().describe("Particulate matter <2.5 μm, μg/m3")
|
|
18
|
+
});
|
|
19
|
+
const OpenweatherApiGetAirPollutionCurrent_DataPointSchema = z.object({
|
|
20
|
+
dt: z.number().int().describe("Time of data calculation, UNIX UTC timestamp"),
|
|
21
|
+
main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),
|
|
22
|
+
components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable()
|
|
23
|
+
});
|
|
24
|
+
const OpenweatherApiGetAirPollutionCurrent_CoordSchema = z.object({
|
|
25
|
+
lat: z.number().describe("Latitude of the location"),
|
|
26
|
+
lon: z.number().describe("Longitude of the location")
|
|
27
|
+
});
|
|
28
|
+
const openweatherApiGetAirPollutionCurrent = action("OPENWEATHER_API_GET_AIR_POLLUTION_CURRENT", {
|
|
29
|
+
slug: "openweather_api-get-air-pollution-current",
|
|
30
|
+
name: "Get Current Air Pollution Data",
|
|
31
|
+
description: "Tool to fetch current air pollution data for a location. Use when you need real-time air quality details by latitude and longitude.",
|
|
32
|
+
input: OpenweatherApiGetAirPollutionCurrentInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
list: z.array(OpenweatherApiGetAirPollutionCurrent_DataPointSchema).describe("Array of air quality measurements"),
|
|
35
|
+
coord: OpenweatherApiGetAirPollutionCurrent_CoordSchema.nullable()
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { openweatherApiGetAirPollutionCurrent };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=get-air-pollution-current.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=Good, 5=Very Poor)\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_ComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"CO concentration, μg/m3\"),\n no: z.number().describe(\"Nitric oxide concentration, μg/m3\"),\n o3: z.number().describe(\"Ozone concentration, μg/m3\"),\n nh3: z.number().describe(\"Ammonia concentration, μg/m3\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration, μg/m3\"),\n so2: z.number().describe(\"Sulphur dioxide concentration, μg/m3\"),\n pm10: z.number().describe(\"Particulate matter <10 μm, μg/m3\"),\n pm2_5: z.number().describe(\"Particulate matter <2.5 μm, μg/m3\"),\n});\nconst OpenweatherApiGetAirPollutionCurrent_DataPointSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of data calculation, UNIX UTC timestamp\"),\n main: OpenweatherApiGetAirPollutionCurrent_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionCurrent_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionCurrent_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lon: z.number().describe(\"Longitude of the location\"),\n});\nexport const OpenweatherApiGetAirPollutionCurrentOutput: z.ZodTypeAny = 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,4CAA0D,EAAE,OAAO;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;AAC5E,CAAC;AACD,MAAM,kDAAgE,EAAE,OAAO,EAC7E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,wDAAsE,EAAE,OAAO;CACnF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AAChE,CAAC;AACD,MAAM,uDAAqE,EAAE,OAAO;CAClF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C;CAC5E,MAAM,gDAAgD,SAAS;CAC/D,YAAY,sDAAsD,SAAS;AAC7E,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AAMD,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsE,EAAE,OAAO;EAC/E,MAAM,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,mCAAmC;EAChH,OAAO,iDAAiD,SAAS;CACnE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-air-pollution-forecast.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionForecastInput = zod.z.object({
|
|
5
|
+
lat: zod.z.number().describe("Geographical latitude in decimal degrees (range -90 to 90)"),
|
|
6
|
+
lon: zod.z.number().describe("Geographical longitude in decimal degrees (range -180 to 180)")
|
|
7
|
+
});
|
|
8
|
+
const OpenweatherApiGetAirPollutionForecast_MainSchema = zod.z.object({ aqi: zod.z.number().int().describe("Air Quality Index (1=good, 5=very poor)") });
|
|
9
|
+
const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = zod.z.object({
|
|
10
|
+
co: zod.z.number().describe("Carbon monoxide concentration (μg/m3)"),
|
|
11
|
+
no: zod.z.number().describe("Nitrogen monoxide concentration (μg/m3)"),
|
|
12
|
+
o3: zod.z.number().describe("Ozone concentration (μg/m3)"),
|
|
13
|
+
nh3: zod.z.number().describe("Ammonia concentration (μg/m3)"),
|
|
14
|
+
no2: zod.z.number().describe("Nitrogen dioxide concentration (μg/m3)"),
|
|
15
|
+
so2: zod.z.number().describe("Sulphur dioxide concentration (μg/m3)"),
|
|
16
|
+
pm10: zod.z.number().describe("Coarse particulate matter (μg/m3)"),
|
|
17
|
+
pm2_5: zod.z.number().describe("Fine particulate matter (μg/m3)")
|
|
18
|
+
});
|
|
19
|
+
const OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = zod.z.object({
|
|
20
|
+
dt: zod.z.number().int().describe("Time of the forecasted data, Unix time, UTC"),
|
|
21
|
+
main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),
|
|
22
|
+
components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable()
|
|
23
|
+
});
|
|
24
|
+
const OpenweatherApiGetAirPollutionForecast_CoordSchema = zod.z.object({
|
|
25
|
+
lat: zod.z.number().describe("Latitude of the location"),
|
|
26
|
+
lon: zod.z.number().describe("Longitude of the location")
|
|
27
|
+
});
|
|
28
|
+
const OpenweatherApiGetAirPollutionForecastOutput = zod.z.object({
|
|
29
|
+
list: zod.z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe("Array of forecasted air pollution data"),
|
|
30
|
+
coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable()
|
|
31
|
+
});
|
|
32
|
+
const openweatherApiGetAirPollutionForecast = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST", {
|
|
33
|
+
slug: "openweather_api-get-air-pollution-forecast",
|
|
34
|
+
name: "Get Air Pollution Forecast",
|
|
35
|
+
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.",
|
|
36
|
+
input: OpenweatherApiGetAirPollutionForecastInput,
|
|
37
|
+
output: OpenweatherApiGetAirPollutionForecastOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.openweatherApiGetAirPollutionForecast = openweatherApiGetAirPollutionForecast;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=get-air-pollution-forecast.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\"),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\"),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\"),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\"),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\"),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\"),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\"),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lon: z.number().describe(\"Longitude of the location\"),\n});\nexport const OpenweatherApiGetAirPollutionForecastOutput: z.ZodTypeAny = 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,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO,EAC9E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,yDAAuEA,IAAAA,EAAE,OAAO;CACpF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC9D,CAAC;AACD,MAAM,2DAAyEA,IAAAA,EAAE,OAAO;CACtF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC3E,MAAM,iDAAiD,SAAS;CAChE,YAAY,uDAAuD,SAAS;AAC9E,CAAC;AACD,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AACD,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,wCAAwC;CACzH,OAAO,kDAAkD,SAAS;AACpE,CAAC;AAED,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-forecast.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionForecastInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionForecastOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionForecast: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionForecast };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-forecast.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-forecast.d.cts","names":[],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAuBW,2CAAA,EAA6C,CAAA,CAAE,UAG1D;AAAA,cAEW,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-forecast.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionForecastInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionForecastOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionForecast: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionForecast };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-forecast.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-forecast.d.mts","names":[],"sources":["../../src/actions/get-air-pollution-forecast.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAuBW,2CAAA,EAA6C,CAAA,CAAE,UAG1D;AAAA,cAEW,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-air-pollution-forecast.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionForecastInput = z.object({
|
|
5
|
+
lat: z.number().describe("Geographical latitude in decimal degrees (range -90 to 90)"),
|
|
6
|
+
lon: z.number().describe("Geographical longitude in decimal degrees (range -180 to 180)")
|
|
7
|
+
});
|
|
8
|
+
const OpenweatherApiGetAirPollutionForecast_MainSchema = z.object({ aqi: z.number().int().describe("Air Quality Index (1=good, 5=very poor)") });
|
|
9
|
+
const OpenweatherApiGetAirPollutionForecast_ComponentsSchema = z.object({
|
|
10
|
+
co: z.number().describe("Carbon monoxide concentration (μg/m3)"),
|
|
11
|
+
no: z.number().describe("Nitrogen monoxide concentration (μg/m3)"),
|
|
12
|
+
o3: z.number().describe("Ozone concentration (μg/m3)"),
|
|
13
|
+
nh3: z.number().describe("Ammonia concentration (μg/m3)"),
|
|
14
|
+
no2: z.number().describe("Nitrogen dioxide concentration (μg/m3)"),
|
|
15
|
+
so2: z.number().describe("Sulphur dioxide concentration (μg/m3)"),
|
|
16
|
+
pm10: z.number().describe("Coarse particulate matter (μg/m3)"),
|
|
17
|
+
pm2_5: z.number().describe("Fine particulate matter (μg/m3)")
|
|
18
|
+
});
|
|
19
|
+
const OpenweatherApiGetAirPollutionForecast_ForecastItemSchema = z.object({
|
|
20
|
+
dt: z.number().int().describe("Time of the forecasted data, Unix time, UTC"),
|
|
21
|
+
main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),
|
|
22
|
+
components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable()
|
|
23
|
+
});
|
|
24
|
+
const OpenweatherApiGetAirPollutionForecast_CoordSchema = z.object({
|
|
25
|
+
lat: z.number().describe("Latitude of the location"),
|
|
26
|
+
lon: z.number().describe("Longitude of the location")
|
|
27
|
+
});
|
|
28
|
+
const openweatherApiGetAirPollutionForecast = action("OPENWEATHER_API_GET_AIR_POLLUTION_FORECAST", {
|
|
29
|
+
slug: "openweather_api-get-air-pollution-forecast",
|
|
30
|
+
name: "Get Air Pollution Forecast",
|
|
31
|
+
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.",
|
|
32
|
+
input: OpenweatherApiGetAirPollutionForecastInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
list: z.array(OpenweatherApiGetAirPollutionForecast_ForecastItemSchema).describe("Array of forecasted air pollution data"),
|
|
35
|
+
coord: OpenweatherApiGetAirPollutionForecast_CoordSchema.nullable()
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { openweatherApiGetAirPollutionForecast };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=get-air-pollution-forecast.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n aqi: z.number().int().describe(\"Air Quality Index (1=good, 5=very poor)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_ComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"Carbon monoxide concentration (μg/m3)\"),\n no: z.number().describe(\"Nitrogen monoxide concentration (μg/m3)\"),\n o3: z.number().describe(\"Ozone concentration (μg/m3)\"),\n nh3: z.number().describe(\"Ammonia concentration (μg/m3)\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration (μg/m3)\"),\n so2: z.number().describe(\"Sulphur dioxide concentration (μg/m3)\"),\n pm10: z.number().describe(\"Coarse particulate matter (μg/m3)\"),\n pm2_5: z.number().describe(\"Fine particulate matter (μg/m3)\"),\n});\nconst OpenweatherApiGetAirPollutionForecast_ForecastItemSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Time of the forecasted data, Unix time, UTC\"),\n main: OpenweatherApiGetAirPollutionForecast_MainSchema.nullable(),\n components: OpenweatherApiGetAirPollutionForecast_ComponentsSchema.nullable(),\n});\nconst OpenweatherApiGetAirPollutionForecast_CoordSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the location\"),\n lon: z.number().describe(\"Longitude of the location\"),\n});\nexport const OpenweatherApiGetAirPollutionForecastOutput: z.ZodTypeAny = 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,6CAA2D,EAAE,OAAO;CAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AAC1F,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO,EAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,EAC1E,CAAC;AACD,MAAM,yDAAuE,EAAE,OAAO;CACpF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC9D,CAAC;AACD,MAAM,2DAAyE,EAAE,OAAO;CACtF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CAC3E,MAAM,iDAAiD,SAAS;CAChE,YAAY,uDAAuD,SAAS;AAC9E,CAAC;AACD,MAAM,oDAAkE,EAAE,OAAO;CAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;AACtD,CAAC;AAMD,MAAa,wCAAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuE,EAAE,OAAO;EAChF,MAAM,EAAE,MAAM,wDAAwD,CAAC,CAAC,SAAS,wCAAwC;EACzH,OAAO,kDAAkD,SAAS;CACpE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-air-pollution-history.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionHistoryInput = zod.z.object({
|
|
5
|
+
end: zod.z.number().int().describe("End UNIX timestamp (UTC seconds); must be >= start"),
|
|
6
|
+
lat: zod.z.number().describe("Latitude of the location (range: -90 to 90)"),
|
|
7
|
+
lon: zod.z.number().describe("Longitude of the location (range: -180 to 180)"),
|
|
8
|
+
start: zod.z.number().int().describe("Start UNIX timestamp (UTC seconds); must be <= end")
|
|
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)") });
|
|
11
|
+
const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = zod.z.object({
|
|
12
|
+
co: zod.z.number().describe("Carbon monoxide concentration in μg/m3"),
|
|
13
|
+
no: zod.z.number().describe("Nitrogen monoxide concentration in μg/m3"),
|
|
14
|
+
o3: zod.z.number().describe("Ozone concentration in μg/m3"),
|
|
15
|
+
nh3: zod.z.number().describe("Ammonia concentration in μg/m3"),
|
|
16
|
+
no2: zod.z.number().describe("Nitrogen dioxide concentration in μg/m3"),
|
|
17
|
+
so2: zod.z.number().describe("Sulfur dioxide concentration in μg/m3"),
|
|
18
|
+
pm10: zod.z.number().describe("Coarse particulate matter (PM10) concentration in μg/m3"),
|
|
19
|
+
pm2_5: zod.z.number().describe("Fine particulate matter (PM2.5) concentration in μg/m3")
|
|
20
|
+
});
|
|
21
|
+
const OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = zod.z.object({
|
|
22
|
+
dt: zod.z.number().int().describe("Data time (UNIX UTC seconds)"),
|
|
23
|
+
main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),
|
|
24
|
+
components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable()
|
|
25
|
+
});
|
|
26
|
+
const OpenweatherApiGetAirPollutionHistoryOutput = zod.z.object({
|
|
27
|
+
list: zod.z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe("List of air pollution data objects"),
|
|
28
|
+
coord: zod.z.object({}).describe("Coordinates of the location")
|
|
29
|
+
});
|
|
30
|
+
const openweatherApiGetAirPollutionHistory = require_action.action("OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY", {
|
|
31
|
+
slug: "openweather_api-get-air-pollution-history",
|
|
32
|
+
name: "Get Air Pollution History",
|
|
33
|
+
description: "Tool to retrieve historical air pollution data. Use when you need past air quality levels for a specific latitude/longitude and time range.",
|
|
34
|
+
input: OpenweatherApiGetAirPollutionHistoryInput,
|
|
35
|
+
output: OpenweatherApiGetAirPollutionHistoryOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.openweatherApiGetAirPollutionHistory = openweatherApiGetAirPollutionHistory;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=get-air-pollution-history.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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)\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\"),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\"),\n o3: z.number().describe(\"Ozone concentration in μg/m3\"),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\"),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\"),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\"),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\"),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n});\nexport const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodTypeAny = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.object({}).describe(\"Coordinates of the location\"),\n});\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,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,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,sDAAoEA,IAAAA,EAAE,OAAO,EACjF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,EACjH,CAAC;AACD,MAAM,oEAAkFA,IAAAA,EAAE,OAAO;CAC/F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AACrF,CAAC;AACD,MAAM,gEAA8EA,IAAAA,EAAE,OAAO;CAC3F,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC5D,MAAM,oDAAoD,SAAS;CACnE,YAAY,kEAAkE,SAAS;AACzF,CAAC;AACD,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,MAAMA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,oCAAoC;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6BAA6B;AAC5D,CAAC;AAED,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-history.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionHistoryInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionHistory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionHistory };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-history.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-history.d.cts","names":[],"sources":["../../src/actions/get-air-pollution-history.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAKxD;AAAA,cAmBW,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAEW,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-air-pollution-history.d.ts
|
|
4
|
+
declare const OpenweatherApiGetAirPollutionHistoryInput: z.ZodTypeAny;
|
|
5
|
+
declare const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodTypeAny;
|
|
6
|
+
declare const openweatherApiGetAirPollutionHistory: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { openweatherApiGetAirPollutionHistory };
|
|
9
|
+
//# sourceMappingURL=get-air-pollution-history.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-air-pollution-history.d.mts","names":[],"sources":["../../src/actions/get-air-pollution-history.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAKxD;AAAA,cAmBW,0CAAA,EAA4C,CAAA,CAAE,UAGzD;AAAA,cAEW,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-air-pollution-history.ts
|
|
4
|
+
const OpenweatherApiGetAirPollutionHistoryInput = z.object({
|
|
5
|
+
end: z.number().int().describe("End UNIX timestamp (UTC seconds); must be >= start"),
|
|
6
|
+
lat: z.number().describe("Latitude of the location (range: -90 to 90)"),
|
|
7
|
+
lon: z.number().describe("Longitude of the location (range: -180 to 180)"),
|
|
8
|
+
start: z.number().int().describe("Start UNIX timestamp (UTC seconds); must be <= end")
|
|
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)") });
|
|
11
|
+
const OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema = z.object({
|
|
12
|
+
co: z.number().describe("Carbon monoxide concentration in μg/m3"),
|
|
13
|
+
no: z.number().describe("Nitrogen monoxide concentration in μg/m3"),
|
|
14
|
+
o3: z.number().describe("Ozone concentration in μg/m3"),
|
|
15
|
+
nh3: z.number().describe("Ammonia concentration in μg/m3"),
|
|
16
|
+
no2: z.number().describe("Nitrogen dioxide concentration in μg/m3"),
|
|
17
|
+
so2: z.number().describe("Sulfur dioxide concentration in μg/m3"),
|
|
18
|
+
pm10: z.number().describe("Coarse particulate matter (PM10) concentration in μg/m3"),
|
|
19
|
+
pm2_5: z.number().describe("Fine particulate matter (PM2.5) concentration in μg/m3")
|
|
20
|
+
});
|
|
21
|
+
const OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema = z.object({
|
|
22
|
+
dt: z.number().int().describe("Data time (UNIX UTC seconds)"),
|
|
23
|
+
main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),
|
|
24
|
+
components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable()
|
|
25
|
+
});
|
|
26
|
+
const openweatherApiGetAirPollutionHistory = action("OPENWEATHER_API_GET_AIR_POLLUTION_HISTORY", {
|
|
27
|
+
slug: "openweather_api-get-air-pollution-history",
|
|
28
|
+
name: "Get Air Pollution History",
|
|
29
|
+
description: "Tool to retrieve historical air pollution data. Use when you need past air quality levels for a specific latitude/longitude and time range.",
|
|
30
|
+
input: OpenweatherApiGetAirPollutionHistoryInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe("List of air pollution data objects"),
|
|
33
|
+
coord: z.object({}).describe("Coordinates of the location")
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { openweatherApiGetAirPollutionHistory };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-air-pollution-history.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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)\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema: z.ZodTypeAny = z.object({\n co: z.number().describe(\"Carbon monoxide concentration in μg/m3\"),\n no: z.number().describe(\"Nitrogen monoxide concentration in μg/m3\"),\n o3: z.number().describe(\"Ozone concentration in μg/m3\"),\n nh3: z.number().describe(\"Ammonia concentration in μg/m3\"),\n no2: z.number().describe(\"Nitrogen dioxide concentration in μg/m3\"),\n so2: z.number().describe(\"Sulfur dioxide concentration in μg/m3\"),\n pm10: z.number().describe(\"Coarse particulate matter (PM10) concentration in μg/m3\"),\n pm2_5: z.number().describe(\"Fine particulate matter (PM2.5) concentration in μg/m3\"),\n});\nconst OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema: z.ZodTypeAny = z.object({\n dt: z.number().int().describe(\"Data time (UNIX UTC seconds)\"),\n main: OpenweatherApiGetAirPollutionHistory_MainDataSchema.nullable(),\n components: OpenweatherApiGetAirPollutionHistory_AirPollutionComponentsSchema.nullable(),\n});\nexport const OpenweatherApiGetAirPollutionHistoryOutput: z.ZodTypeAny = z.object({\n list: z.array(OpenweatherApiGetAirPollutionHistory_AirPollutionRecordSchema).describe(\"List of air pollution data objects\"),\n coord: z.object({}).describe(\"Coordinates of the location\"),\n});\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,4CAA0D,EAAE,OAAO;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD;AACvF,CAAC;AACD,MAAM,sDAAoE,EAAE,OAAO,EACjF,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,EACjH,CAAC;AACD,MAAM,oEAAkF,EAAE,OAAO;CAC/F,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AACrF,CAAC;AACD,MAAM,gEAA8E,EAAE,OAAO;CAC3F,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B;CAC5D,MAAM,oDAAoD,SAAS;CACnE,YAAY,kEAAkE,SAAS;AACzF,CAAC;AAMD,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVsE,EAAE,OAAO;EAC/E,MAAM,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,oCAAoC;EAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6BAA6B;CAC5D,CAOU;AACV,CAAC"}
|