@keystrokehq/openweather_api 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/delete-weather-station.cjs +1 -0
- package/dist/actions/delete-weather-station.cjs.map +1 -1
- package/dist/actions/delete-weather-station.d.cts +3 -15
- package/dist/actions/delete-weather-station.d.cts.map +1 -1
- package/dist/actions/delete-weather-station.d.mts +3 -15
- package/dist/actions/delete-weather-station.d.mts.map +1 -1
- package/dist/actions/delete-weather-station.mjs +1 -0
- package/dist/actions/delete-weather-station.mjs.map +1 -1
- package/dist/actions/get-air-pollution-current.cjs +1 -0
- package/dist/actions/get-air-pollution-current.cjs.map +1 -1
- package/dist/actions/get-air-pollution-current.d.cts +3 -16
- package/dist/actions/get-air-pollution-current.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-current.d.mts +3 -16
- package/dist/actions/get-air-pollution-current.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-current.mjs +1 -0
- package/dist/actions/get-air-pollution-current.mjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.cjs +1 -0
- package/dist/actions/get-air-pollution-forecast.cjs.map +1 -1
- package/dist/actions/get-air-pollution-forecast.d.cts +3 -16
- package/dist/actions/get-air-pollution-forecast.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-forecast.d.mts +3 -16
- package/dist/actions/get-air-pollution-forecast.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-forecast.mjs +1 -0
- package/dist/actions/get-air-pollution-forecast.mjs.map +1 -1
- package/dist/actions/get-air-pollution-history.cjs +1 -0
- package/dist/actions/get-air-pollution-history.cjs.map +1 -1
- package/dist/actions/get-air-pollution-history.d.cts +3 -18
- package/dist/actions/get-air-pollution-history.d.cts.map +1 -1
- package/dist/actions/get-air-pollution-history.d.mts +3 -18
- package/dist/actions/get-air-pollution-history.d.mts.map +1 -1
- package/dist/actions/get-air-pollution-history.mjs +1 -0
- package/dist/actions/get-air-pollution-history.mjs.map +1 -1
- package/dist/actions/get-circle-city-weather.cjs +1 -0
- package/dist/actions/get-circle-city-weather.cjs.map +1 -1
- package/dist/actions/get-circle-city-weather.d.cts +3 -20
- package/dist/actions/get-circle-city-weather.d.cts.map +1 -1
- package/dist/actions/get-circle-city-weather.d.mts +3 -20
- package/dist/actions/get-circle-city-weather.d.mts.map +1 -1
- package/dist/actions/get-circle-city-weather.mjs +1 -0
- package/dist/actions/get-circle-city-weather.mjs.map +1 -1
- package/dist/actions/get-current-weather.cjs +1 -0
- package/dist/actions/get-current-weather.cjs.map +1 -1
- package/dist/actions/get-current-weather.d.cts +3 -21
- package/dist/actions/get-current-weather.d.cts.map +1 -1
- package/dist/actions/get-current-weather.d.mts +3 -21
- package/dist/actions/get-current-weather.d.mts.map +1 -1
- package/dist/actions/get-current-weather.mjs +1 -0
- package/dist/actions/get-current-weather.mjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.cjs +1 -0
- package/dist/actions/get-geocoding-by-zip.cjs.map +1 -1
- package/dist/actions/get-geocoding-by-zip.d.cts +3 -15
- package/dist/actions/get-geocoding-by-zip.d.cts.map +1 -1
- package/dist/actions/get-geocoding-by-zip.d.mts +3 -15
- package/dist/actions/get-geocoding-by-zip.d.mts.map +1 -1
- package/dist/actions/get-geocoding-by-zip.mjs +1 -0
- package/dist/actions/get-geocoding-by-zip.mjs.map +1 -1
- package/dist/actions/get-geocoding-direct.cjs +1 -0
- package/dist/actions/get-geocoding-direct.cjs.map +1 -1
- package/dist/actions/get-geocoding-direct.d.cts +3 -16
- package/dist/actions/get-geocoding-direct.d.cts.map +1 -1
- package/dist/actions/get-geocoding-direct.d.mts +3 -16
- package/dist/actions/get-geocoding-direct.d.mts.map +1 -1
- package/dist/actions/get-geocoding-direct.mjs +1 -0
- package/dist/actions/get-geocoding-direct.mjs.map +1 -1
- package/dist/actions/get-geocoding-reverse.cjs +1 -0
- package/dist/actions/get-geocoding-reverse.cjs.map +1 -1
- package/dist/actions/get-geocoding-reverse.d.cts +3 -17
- package/dist/actions/get-geocoding-reverse.d.cts.map +1 -1
- package/dist/actions/get-geocoding-reverse.d.mts +3 -17
- package/dist/actions/get-geocoding-reverse.d.mts.map +1 -1
- package/dist/actions/get-geocoding-reverse.mjs +1 -0
- package/dist/actions/get-geocoding-reverse.mjs.map +1 -1
- package/dist/actions/get-station-measurements.cjs +1 -0
- package/dist/actions/get-station-measurements.cjs.map +1 -1
- package/dist/actions/get-station-measurements.d.cts +3 -19
- package/dist/actions/get-station-measurements.d.cts.map +1 -1
- package/dist/actions/get-station-measurements.d.mts +3 -19
- package/dist/actions/get-station-measurements.d.mts.map +1 -1
- package/dist/actions/get-station-measurements.mjs +1 -0
- package/dist/actions/get-station-measurements.mjs.map +1 -1
- package/dist/actions/get-uv-index-forecast.cjs +1 -0
- package/dist/actions/get-uv-index-forecast.cjs.map +1 -1
- package/dist/actions/get-uv-index-forecast.d.cts +3 -17
- package/dist/actions/get-uv-index-forecast.d.cts.map +1 -1
- package/dist/actions/get-uv-index-forecast.d.mts +3 -17
- package/dist/actions/get-uv-index-forecast.d.mts.map +1 -1
- package/dist/actions/get-uv-index-forecast.mjs +1 -0
- package/dist/actions/get-uv-index-forecast.mjs.map +1 -1
- package/dist/actions/get-uv-index-history.cjs +1 -0
- package/dist/actions/get-uv-index-history.cjs.map +1 -1
- package/dist/actions/get-uv-index-history.d.cts +3 -18
- package/dist/actions/get-uv-index-history.d.cts.map +1 -1
- package/dist/actions/get-uv-index-history.d.mts +3 -18
- package/dist/actions/get-uv-index-history.d.mts.map +1 -1
- package/dist/actions/get-uv-index-history.mjs +1 -0
- package/dist/actions/get-uv-index-history.mjs.map +1 -1
- package/dist/actions/get-uv-index.cjs +1 -0
- package/dist/actions/get-uv-index.cjs.map +1 -1
- package/dist/actions/get-uv-index.d.cts +3 -16
- package/dist/actions/get-uv-index.d.cts.map +1 -1
- package/dist/actions/get-uv-index.d.mts +3 -16
- package/dist/actions/get-uv-index.d.mts.map +1 -1
- package/dist/actions/get-uv-index.mjs +1 -0
- package/dist/actions/get-uv-index.mjs.map +1 -1
- package/dist/actions/get-weather-map-tile.cjs +1 -0
- package/dist/actions/get-weather-map-tile.cjs.map +1 -1
- package/dist/actions/get-weather-map-tile.d.cts +3 -25
- package/dist/actions/get-weather-map-tile.d.cts.map +1 -1
- package/dist/actions/get-weather-map-tile.d.mts +3 -25
- package/dist/actions/get-weather-map-tile.d.mts.map +1 -1
- package/dist/actions/get-weather-map-tile.mjs +1 -0
- package/dist/actions/get-weather-map-tile.mjs.map +1 -1
- package/dist/actions/get-weather-station.cjs +1 -0
- package/dist/actions/get-weather-station.cjs.map +1 -1
- package/dist/actions/get-weather-station.d.cts +3 -15
- package/dist/actions/get-weather-station.d.cts.map +1 -1
- package/dist/actions/get-weather-station.d.mts +3 -15
- package/dist/actions/get-weather-station.d.mts.map +1 -1
- package/dist/actions/get-weather-station.mjs +1 -0
- package/dist/actions/get-weather-station.mjs.map +1 -1
- package/dist/actions/get-weather-stations.cjs +1 -0
- package/dist/actions/get-weather-stations.cjs.map +1 -1
- package/dist/actions/get-weather-stations.d.cts +3 -13
- package/dist/actions/get-weather-stations.d.cts.map +1 -1
- package/dist/actions/get-weather-stations.d.mts +3 -13
- package/dist/actions/get-weather-stations.d.mts.map +1 -1
- package/dist/actions/get-weather-stations.mjs +1 -0
- package/dist/actions/get-weather-stations.mjs.map +1 -1
- package/dist/actions/get-weather-triggers.cjs +1 -0
- package/dist/actions/get-weather-triggers.cjs.map +1 -1
- package/dist/actions/get-weather-triggers.d.cts +3 -24
- package/dist/actions/get-weather-triggers.d.cts.map +1 -1
- package/dist/actions/get-weather-triggers.d.mts +3 -24
- package/dist/actions/get-weather-triggers.d.mts.map +1 -1
- package/dist/actions/get-weather-triggers.mjs +1 -0
- package/dist/actions/get-weather-triggers.mjs.map +1 -1
- package/dist/actions/get5-day-forecast.cjs +1 -0
- package/dist/actions/get5-day-forecast.cjs.map +1 -1
- package/dist/actions/get5-day-forecast.d.cts +3 -22
- package/dist/actions/get5-day-forecast.d.cts.map +1 -1
- package/dist/actions/get5-day-forecast.d.mts +3 -22
- package/dist/actions/get5-day-forecast.d.mts.map +1 -1
- package/dist/actions/get5-day-forecast.mjs +1 -0
- package/dist/actions/get5-day-forecast.mjs.map +1 -1
- package/dist/actions/post-add-weather-station.cjs +1 -0
- package/dist/actions/post-add-weather-station.cjs.map +1 -1
- package/dist/actions/post-add-weather-station.d.cts +3 -19
- package/dist/actions/post-add-weather-station.d.cts.map +1 -1
- package/dist/actions/post-add-weather-station.d.mts +3 -19
- package/dist/actions/post-add-weather-station.d.mts.map +1 -1
- package/dist/actions/post-add-weather-station.mjs +1 -0
- package/dist/actions/post-add-weather-station.mjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.cjs +1 -0
- package/dist/actions/post-submit-station-measurements.cjs.map +1 -1
- package/dist/actions/post-submit-station-measurements.d.cts +3 -26
- package/dist/actions/post-submit-station-measurements.d.cts.map +1 -1
- package/dist/actions/post-submit-station-measurements.d.mts +3 -26
- package/dist/actions/post-submit-station-measurements.d.mts.map +1 -1
- package/dist/actions/post-submit-station-measurements.mjs +1 -0
- package/dist/actions/post-submit-station-measurements.mjs.map +1 -1
- package/dist/actions/update-weather-station.cjs +1 -0
- package/dist/actions/update-weather-station.cjs.map +1 -1
- package/dist/actions/update-weather-station.d.cts +3 -20
- package/dist/actions/update-weather-station.d.cts.map +1 -1
- package/dist/actions/update-weather-station.d.mts +3 -20
- package/dist/actions/update-weather-station.d.mts.map +1 -1
- package/dist/actions/update-weather-station.mjs +1 -0
- package/dist/actions/update-weather-station.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-map-tile.d.ts
|
|
@@ -28,31 +30,7 @@ declare const OpenweatherApiGetWeatherMapTileInput: z.ZodObject<{
|
|
|
28
30
|
declare const OpenweatherApiGetWeatherMapTileOutput: z.ZodObject<{
|
|
29
31
|
tile: z.ZodNullable<z.ZodString>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const openweatherApiGetWeatherMapTile:
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
z: number;
|
|
35
|
-
layer: "temp" | "pressure" | "wind" | "clouds" | "precipitation" | "clouds_new" | "precipitation_new" | "pressure_new" | "wind_new" | "temp_new";
|
|
36
|
-
fill?: string | undefined;
|
|
37
|
-
color?: string | undefined;
|
|
38
|
-
scale?: 1 | 2 | undefined;
|
|
39
|
-
format?: string | undefined;
|
|
40
|
-
opacity?: number | undefined;
|
|
41
|
-
palette?: string | undefined;
|
|
42
|
-
fill_bound?: boolean | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const openweatherApiGetWeatherMapTile: AppAction<typeof OpenweatherApiGetWeatherMapTileInput, typeof OpenweatherApiGetWeatherMapTileOutput, typeof openweatherApi.credential>;
|
|
56
34
|
//#endregion
|
|
57
35
|
export { openweatherApiGetWeatherMapTile };
|
|
58
36
|
//# sourceMappingURL=get-weather-map-tile.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-map-tile.d.cts","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-map-tile.d.cts","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAapC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-map-tile.d.ts
|
|
@@ -28,31 +30,7 @@ declare const OpenweatherApiGetWeatherMapTileInput: z.ZodObject<{
|
|
|
28
30
|
declare const OpenweatherApiGetWeatherMapTileOutput: z.ZodObject<{
|
|
29
31
|
tile: z.ZodNullable<z.ZodString>;
|
|
30
32
|
}, z.core.$loose>;
|
|
31
|
-
declare const openweatherApiGetWeatherMapTile:
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
z: number;
|
|
35
|
-
layer: "temp" | "pressure" | "wind" | "clouds" | "precipitation" | "clouds_new" | "precipitation_new" | "pressure_new" | "wind_new" | "temp_new";
|
|
36
|
-
fill?: string | undefined;
|
|
37
|
-
color?: string | undefined;
|
|
38
|
-
scale?: 1 | 2 | undefined;
|
|
39
|
-
format?: string | undefined;
|
|
40
|
-
opacity?: number | undefined;
|
|
41
|
-
palette?: string | undefined;
|
|
42
|
-
fill_bound?: boolean | undefined;
|
|
43
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
44
|
-
connectionId: z.ZodString;
|
|
45
|
-
entityId: z.ZodString;
|
|
46
|
-
instanceId: z.ZodString;
|
|
47
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
48
|
-
generic_api_key: z.ZodString;
|
|
49
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
50
|
-
connectionId: z.ZodString;
|
|
51
|
-
entityId: z.ZodString;
|
|
52
|
-
instanceId: z.ZodString;
|
|
53
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
54
|
-
generic_api_key: z.ZodString;
|
|
55
|
-
}, z.core.$strip>>]>;
|
|
33
|
+
declare const openweatherApiGetWeatherMapTile: AppAction<typeof OpenweatherApiGetWeatherMapTileInput, typeof OpenweatherApiGetWeatherMapTileOutput, typeof openweatherApi.credential>;
|
|
56
34
|
//#endregion
|
|
57
35
|
export { openweatherApiGetWeatherMapTile };
|
|
58
36
|
//# sourceMappingURL=get-weather-map-tile.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-map-tile.d.mts","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-map-tile.d.mts","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAapC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-map-tile.mjs","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherMapTileInput = z.object({\n x: z.number().int().describe(\"Tile X coordinate (non-negative integer).\"),\n y: z.number().int().describe(\"Tile Y coordinate (non-negative integer).\"),\n z: z.number().int().describe(\"Zoom level of the tile (non-negative integer).\"),\n fill: z.string().describe(\"Color for empty-data fill areas (hex or named).\").optional(),\n color: z.string().describe(\"Color schema of the tiles, e.g., 'original', 'black'.\").optional(),\n layer: z.enum([\"clouds\", \"clouds_new\", \"precipitation\", \"precipitation_new\", \"pressure\", \"pressure_new\", \"wind\", \"wind_new\", \"temp\", \"temp_new\"]).describe(\"Weather layer name. Options: clouds, clouds_new, precipitation, precipitation_new, pressure, pressure_new, wind, wind_new, temp, temp_new.\"),\n scale: z.union([z.literal(1), z.literal(2)]).describe(\"Tile scale factor: 1 or 2 for retina.\").optional(),\n format: z.string().describe(\"Image format; only 'png' is supported.\").optional(),\n opacity: z.number().describe(\"Tile opacity value between 0.0 and 1.0.\").optional(),\n palette: z.string().describe(\"Custom palette definition (comma-separated or JSON).\").optional(),\n fill_bound: z.boolean().describe(\"Fill tiles outside data coverage if true.\").optional(),\n}).describe(\"Request parameters for fetching advanced Weather Maps 2.0 tile.\");\nexport const OpenweatherApiGetWeatherMapTileOutput = z.object({\n tile: z.string().describe(\"Binary PNG image data of the map tile.\").nullable(),\n}).passthrough().describe(\"Raw PNG image data for the requested Weather Maps 2.0 tile.\");\n\nexport const openweatherApiGetWeatherMapTile = action(\"OPENWEATHER_API_GET_WEATHER_MAP_TILE\", {\n slug: \"openweather_api-get-weather-map-tile\",\n name: \"Get Weather Map Tile (2.0)\",\n description: \"Tool to fetch Weather Maps 2.0 tile images. Use when you need dynamic weather layers at specific zoom and coordinates with advanced styling options.\",\n input: OpenweatherApiGetWeatherMapTileInput,\n output: OpenweatherApiGetWeatherMapTileOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-map-tile.mjs","names":[],"sources":["../../src/actions/get-weather-map-tile.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherMapTileInput = z.object({\n x: z.number().int().describe(\"Tile X coordinate (non-negative integer).\"),\n y: z.number().int().describe(\"Tile Y coordinate (non-negative integer).\"),\n z: z.number().int().describe(\"Zoom level of the tile (non-negative integer).\"),\n fill: z.string().describe(\"Color for empty-data fill areas (hex or named).\").optional(),\n color: z.string().describe(\"Color schema of the tiles, e.g., 'original', 'black'.\").optional(),\n layer: z.enum([\"clouds\", \"clouds_new\", \"precipitation\", \"precipitation_new\", \"pressure\", \"pressure_new\", \"wind\", \"wind_new\", \"temp\", \"temp_new\"]).describe(\"Weather layer name. Options: clouds, clouds_new, precipitation, precipitation_new, pressure, pressure_new, wind, wind_new, temp, temp_new.\"),\n scale: z.union([z.literal(1), z.literal(2)]).describe(\"Tile scale factor: 1 or 2 for retina.\").optional(),\n format: z.string().describe(\"Image format; only 'png' is supported.\").optional(),\n opacity: z.number().describe(\"Tile opacity value between 0.0 and 1.0.\").optional(),\n palette: z.string().describe(\"Custom palette definition (comma-separated or JSON).\").optional(),\n fill_bound: z.boolean().describe(\"Fill tiles outside data coverage if true.\").optional(),\n}).describe(\"Request parameters for fetching advanced Weather Maps 2.0 tile.\");\nexport const OpenweatherApiGetWeatherMapTileOutput = z.object({\n tile: z.string().describe(\"Binary PNG image data of the map tile.\").nullable(),\n}).passthrough().describe(\"Raw PNG image data for the requested Weather Maps 2.0 tile.\");\n\nexport const openweatherApiGetWeatherMapTile: AppAction<\n typeof OpenweatherApiGetWeatherMapTileInput,\n typeof OpenweatherApiGetWeatherMapTileOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_MAP_TILE\", {\n slug: \"openweather_api-get-weather-map-tile\",\n name: \"Get Weather Map Tile (2.0)\",\n description: \"Tool to fetch Weather Maps 2.0 tile images. Use when you need dynamic weather layers at specific zoom and coordinates with advanced styling options.\",\n input: OpenweatherApiGetWeatherMapTileInput,\n output: OpenweatherApiGetWeatherMapTileOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,kCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzBkD,EAAE,OAAO;EAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EACxE,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;EACxE,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;EAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAC7F,OAAO,EAAE,KAAK;GAAC;GAAU;GAAc;GAAiB;GAAqB;GAAY;GAAgB;GAAQ;GAAY;GAAQ;EAAU,CAAC,CAAC,CAAC,SAAS,4IAA4I;EACvS,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,iEAaH;CACP,QAbmD,EAAE,OAAO,EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherStationInput = z.object({\n station_id: z.string().describe(\"Internal station ID to retrieve information for.\"),\n}).describe(\"Request schema for getting a specific weather station by ID.\");\nexport const OpenweatherApiGetWeatherStationOutput = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing weather station information.\");\n\nexport const openweatherApiGetWeatherStation = action(\"OPENWEATHER_API_GET_WEATHER_STATION\", {\n slug: \"openweather_api-get-weather-station\",\n name: \"Get Weather Station\",\n description: \"Tool to get information about a specific weather station by its ID. Use when you need details about a particular station.\",\n input: OpenweatherApiGetWeatherStationInput,\n output: OpenweatherApiGetWeatherStationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-station.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherStationInput = z.object({\n station_id: z.string().describe(\"Internal station ID to retrieve information for.\"),\n}).describe(\"Request schema for getting a specific weather station by ID.\");\nexport const OpenweatherApiGetWeatherStationOutput = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing weather station information.\");\n\nexport const openweatherApiGetWeatherStation: AppAction<\n typeof OpenweatherApiGetWeatherStationInput,\n typeof OpenweatherApiGetWeatherStationOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_STATION\", {\n slug: \"openweather_api-get-weather-station\",\n name: \"Get Weather Station\",\n description: \"Tool to get information about a specific weather station by its ID. Use when you need details about a particular station.\",\n input: OpenweatherApiGetWeatherStationInput,\n output: OpenweatherApiGetWeatherStationOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO,EAC3D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACpF,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,kCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-station.d.ts
|
|
@@ -15,21 +17,7 @@ declare const OpenweatherApiGetWeatherStationOutput: z.ZodObject<{
|
|
|
15
17
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
16
18
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openweatherApiGetWeatherStation:
|
|
19
|
-
station_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openweatherApiGetWeatherStation: AppAction<typeof OpenweatherApiGetWeatherStationInput, typeof OpenweatherApiGetWeatherStationOutput, typeof openweatherApi.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { openweatherApiGetWeatherStation };
|
|
35
23
|
//# sourceMappingURL=get-weather-station.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-station.d.cts","names":[],"sources":["../../src/actions/get-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-station.d.cts","names":[],"sources":["../../src/actions/get-weather-station.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-station.d.ts
|
|
@@ -15,21 +17,7 @@ declare const OpenweatherApiGetWeatherStationOutput: z.ZodObject<{
|
|
|
15
17
|
updated_at: z.ZodNullable<z.ZodString>;
|
|
16
18
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openweatherApiGetWeatherStation:
|
|
19
|
-
station_id: string;
|
|
20
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
generic_api_key: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
27
|
-
connectionId: z.ZodString;
|
|
28
|
-
entityId: z.ZodString;
|
|
29
|
-
instanceId: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
generic_api_key: z.ZodString;
|
|
32
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openweatherApiGetWeatherStation: AppAction<typeof OpenweatherApiGetWeatherStationInput, typeof OpenweatherApiGetWeatherStationOutput, typeof openweatherApi.credential>;
|
|
33
21
|
//#endregion
|
|
34
22
|
export { openweatherApiGetWeatherStation };
|
|
35
23
|
//# sourceMappingURL=get-weather-station.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-station.d.mts","names":[],"sources":["../../src/actions/get-weather-station.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-station.d.mts","names":[],"sources":["../../src/actions/get-weather-station.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;cAGpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-station.mjs","names":[],"sources":["../../src/actions/get-weather-station.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherStationInput = z.object({\n station_id: z.string().describe(\"Internal station ID to retrieve information for.\"),\n}).describe(\"Request schema for getting a specific weather station by ID.\");\nexport const OpenweatherApiGetWeatherStationOutput = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing weather station information.\");\n\nexport const openweatherApiGetWeatherStation = action(\"OPENWEATHER_API_GET_WEATHER_STATION\", {\n slug: \"openweather_api-get-weather-station\",\n name: \"Get Weather Station\",\n description: \"Tool to get information about a specific weather station by its ID. Use when you need details about a particular station.\",\n input: OpenweatherApiGetWeatherStationInput,\n output: OpenweatherApiGetWeatherStationOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-station.mjs","names":[],"sources":["../../src/actions/get-weather-station.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherStationInput = z.object({\n station_id: z.string().describe(\"Internal station ID to retrieve information for.\"),\n}).describe(\"Request schema for getting a specific weather station by ID.\");\nexport const OpenweatherApiGetWeatherStationOutput = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough().describe(\"Response schema containing weather station information.\");\n\nexport const openweatherApiGetWeatherStation: AppAction<\n typeof OpenweatherApiGetWeatherStationInput,\n typeof OpenweatherApiGetWeatherStationOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_STATION\", {\n slug: \"openweather_api-get-weather-station\",\n name: \"Get Weather Station\",\n description: \"Tool to get information about a specific weather station by its ID. Use when you need details about a particular station.\",\n input: OpenweatherApiGetWeatherStationInput,\n output: OpenweatherApiGetWeatherStationOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,kCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBkD,EAAE,OAAO,EAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACpF,CAAC,CAAC,CAAC,SAAS,8DAqBH;CACP,QArBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-stations.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-stations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherStationsInput = z.object({}).describe(\"Request schema for GET_WEATHER_STATIONS. No parameters are required.\");\nconst OpenweatherApiGetWeatherStations_StationSchema = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGetWeatherStationsOutput = z.object({\n stations: z.array(OpenweatherApiGetWeatherStations_StationSchema).describe(\"Array of weather station objects.\"),\n}).passthrough().describe(\"List of weather stations added to the account.\");\n\nexport const openweatherApiGetWeatherStations = action(\"OPENWEATHER_API_GET_WEATHER_STATIONS\", {\n slug: \"openweather_api-get-weather-stations\",\n name: \"Get Weather Stations\",\n description: \"Tool to list all weather stations added to your account. Use after setting up your OpenWeather API key.\",\n input: OpenweatherApiGetWeatherStationsInput,\n output: OpenweatherApiGetWeatherStationsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-stations.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-stations.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherStationsInput = z.object({}).describe(\"Request schema for GET_WEATHER_STATIONS. No parameters are required.\");\nconst OpenweatherApiGetWeatherStations_StationSchema = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGetWeatherStationsOutput = z.object({\n stations: z.array(OpenweatherApiGetWeatherStations_StationSchema).describe(\"Array of weather station objects.\"),\n}).passthrough().describe(\"List of weather stations added to the account.\");\n\nexport const openweatherApiGetWeatherStations: AppAction<\n typeof OpenweatherApiGetWeatherStationsInput,\n typeof OpenweatherApiGetWeatherStationsOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_STATIONS\", {\n slug: \"openweather_api-get-weather-stations\",\n name: \"Get Weather Stations\",\n description: \"Tool to list all weather stations added to your account. Use after setting up your OpenWeather API key.\",\n input: OpenweatherApiGetWeatherStationsInput,\n output: OpenweatherApiGetWeatherStationsOutput,\n});\n"],"mappings":";;;;AAMA,MAA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i } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-stations.d.ts
|
|
@@ -15,19 +17,7 @@ declare const OpenweatherApiGetWeatherStationsOutput: z.ZodObject<{
|
|
|
15
17
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openweatherApiGetWeatherStations:
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openweatherApiGetWeatherStations: AppAction<typeof OpenweatherApiGetWeatherStationsInput, typeof OpenweatherApiGetWeatherStationsOutput, typeof openweatherApi.credential>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { openweatherApiGetWeatherStations };
|
|
33
23
|
//# sourceMappingURL=get-weather-stations.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-stations.d.cts","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-stations.d.cts","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAYrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-stations.d.ts
|
|
@@ -15,19 +17,7 @@ declare const OpenweatherApiGetWeatherStationsOutput: z.ZodObject<{
|
|
|
15
17
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
}, z.core.$loose>;
|
|
18
|
-
declare const openweatherApiGetWeatherStations:
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>;
|
|
20
|
+
declare const openweatherApiGetWeatherStations: AppAction<typeof OpenweatherApiGetWeatherStationsInput, typeof OpenweatherApiGetWeatherStationsOutput, typeof openweatherApi.credential>;
|
|
31
21
|
//#endregion
|
|
32
22
|
export { openweatherApiGetWeatherStations };
|
|
33
23
|
//# sourceMappingURL=get-weather-stations.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-stations.d.mts","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-stations.d.mts","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAYrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-stations.mjs","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherStationsInput = z.object({}).describe(\"Request schema for GET_WEATHER_STATIONS. No parameters are required.\");\nconst OpenweatherApiGetWeatherStations_StationSchema = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGetWeatherStationsOutput = z.object({\n stations: z.array(OpenweatherApiGetWeatherStations_StationSchema).describe(\"Array of weather station objects.\"),\n}).passthrough().describe(\"List of weather stations added to the account.\");\n\nexport const openweatherApiGetWeatherStations = action(\"OPENWEATHER_API_GET_WEATHER_STATIONS\", {\n slug: \"openweather_api-get-weather-stations\",\n name: \"Get Weather Stations\",\n description: \"Tool to list all weather stations added to your account. Use after setting up your OpenWeather API key.\",\n input: OpenweatherApiGetWeatherStationsInput,\n output: OpenweatherApiGetWeatherStationsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-stations.mjs","names":[],"sources":["../../src/actions/get-weather-stations.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherStationsInput = z.object({}).describe(\"Request schema for GET_WEATHER_STATIONS. No parameters are required.\");\nconst OpenweatherApiGetWeatherStations_StationSchema = z.object({\n id: z.string().describe(\"Station identifier.\").nullable(),\n name: z.string().describe(\"Station name.\").nullable(),\n rank: z.number().int().describe(\"Station rank.\").nullable().optional(),\n altitude: z.number().describe(\"Station altitude above sea level.\").nullable().optional(),\n latitude: z.number().describe(\"Location latitude.\").nullable(),\n longitude: z.number().describe(\"Location longitude.\").nullable(),\n created_at: z.string().describe(\"ISO8601 datetime of creation.\").nullable(),\n updated_at: z.string().describe(\"ISO8601 datetime of the last update.\").nullable(),\n external_id: z.string().describe(\"User-supplied external reference ID.\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGetWeatherStationsOutput = z.object({\n stations: z.array(OpenweatherApiGetWeatherStations_StationSchema).describe(\"Array of weather station objects.\"),\n}).passthrough().describe(\"List of weather stations added to the account.\");\n\nexport const openweatherApiGetWeatherStations: AppAction<\n typeof OpenweatherApiGetWeatherStationsInput,\n typeof OpenweatherApiGetWeatherStationsOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_STATIONS\", {\n slug: \"openweather_api-get-weather-stations\",\n name: \"Get Weather Stations\",\n description: \"Tool to list all weather stations added to your account. Use after setting up your OpenWeather API key.\",\n input: OpenweatherApiGetWeatherStationsInput,\n output: OpenweatherApiGetWeatherStationsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sEAAsE;AACjJ,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,mCAAmC,EAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-triggers.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherTriggersInput = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).passthrough().describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({\n id: z.string().describe(\"Unique ID of the trigger\").nullable(),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\").nullable(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).passthrough().describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).passthrough().describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-triggers.cjs","names":["z","action"],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherTriggersInput = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).passthrough().describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({\n id: z.string().describe(\"Unique ID of the trigger\").nullable(),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\").nullable(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).passthrough().describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).passthrough().describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers: AppAction<\n typeof OpenweatherApiGetWeatherTriggersInput,\n typeof OpenweatherApiGetWeatherTriggersOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CAC3B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,UAAUA,IAAAA,EAAE,OAAO;EACnB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACvD,WAAWA,IAAAA,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,qCAAqC,EAC9H,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,oCAAoC,EAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,mCAITC,eAAAA,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-triggers.d.ts
|
|
@@ -24,30 +26,7 @@ declare const OpenweatherApiGetWeatherTriggersOutput: z.ZodObject<{
|
|
|
24
26
|
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const openweatherApiGetWeatherTriggers:
|
|
28
|
-
triggers: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
type: string;
|
|
31
|
-
value: number | number[];
|
|
32
|
-
location: {
|
|
33
|
-
lat: number;
|
|
34
|
-
lon: number;
|
|
35
|
-
};
|
|
36
|
-
condition: ">" | "<" | "=" | "between";
|
|
37
|
-
}[];
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const openweatherApiGetWeatherTriggers: AppAction<typeof OpenweatherApiGetWeatherTriggersInput, typeof OpenweatherApiGetWeatherTriggersOutput, typeof openweatherApi.credential>;
|
|
51
30
|
//#endregion
|
|
52
31
|
export { openweatherApiGetWeatherTriggers };
|
|
53
32
|
//# sourceMappingURL=get-weather-triggers.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-triggers.d.cts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-triggers.d.cts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { openweatherApi } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-weather-triggers.d.ts
|
|
@@ -24,30 +26,7 @@ declare const OpenweatherApiGetWeatherTriggersOutput: z.ZodObject<{
|
|
|
24
26
|
details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const openweatherApiGetWeatherTriggers:
|
|
28
|
-
triggers: {
|
|
29
|
-
[x: string]: unknown;
|
|
30
|
-
type: string;
|
|
31
|
-
value: number | number[];
|
|
32
|
-
location: {
|
|
33
|
-
lat: number;
|
|
34
|
-
lon: number;
|
|
35
|
-
};
|
|
36
|
-
condition: ">" | "<" | "=" | "between";
|
|
37
|
-
}[];
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
generic_api_key: z.ZodString;
|
|
50
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const openweatherApiGetWeatherTriggers: AppAction<typeof OpenweatherApiGetWeatherTriggersInput, typeof OpenweatherApiGetWeatherTriggersOutput, typeof openweatherApi.credential>;
|
|
51
30
|
//#endregion
|
|
52
31
|
export { openweatherApiGetWeatherTriggers };
|
|
53
32
|
//# sourceMappingURL=get-weather-triggers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-triggers.d.mts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-triggers.d.mts","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,cAAA,CAAe,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-weather-triggers.mjs","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGetWeatherTriggersInput = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).passthrough().describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({\n id: z.string().describe(\"Unique ID of the trigger\").nullable(),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\").nullable(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).passthrough().describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).passthrough().describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-weather-triggers.mjs","names":[],"sources":["../../src/actions/get-weather-triggers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGetWeatherTriggersInput = z.object({\n triggers: z.array(z.object({\n type: z.string().describe(\"Type of weather trigger, e.g., 'temp', 'rain', 'wind'\"),\n value: z.union([z.number(), z.array(z.number())]),\n location: z.object({\n lat: z.number().describe(\"Latitude in degrees, between -90 and 90\"),\n lon: z.number().describe(\"Longitude in degrees, between -180 and 180\"),\n}).describe(\"Location details where this trigger applies\"),\n condition: z.enum([\">\", \"<\", \"=\", \"between\"]).describe(\"Condition operator: '>', '<', '=', or 'between'\"),\n}).passthrough().describe(\"Definition of a single weather trigger condition.\")).describe(\"List of weather trigger definitions\"),\n}).describe(\"Request to manage and retrieve weather triggers. Provide a list of trigger definitions.\");\nconst OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema = z.object({\n id: z.string().describe(\"Unique ID of the trigger\").nullable(),\n status: z.string().describe(\"Trigger operation status, e.g., 'created' or 'error'\").nullable(),\n details: z.record(z.string(), z.unknown()).describe(\"Additional details or error information for the trigger\"),\n}).passthrough().describe(\"Result for a single trigger operation.\");\nexport const OpenweatherApiGetWeatherTriggersOutput = z.object({\n triggers: z.array(OpenweatherApiGetWeatherTriggers_TriggerResponseItemSchema).describe(\"Results for each trigger operation\"),\n}).passthrough().describe(\"Response schema for weather triggers retrieval.\");\n\nexport const openweatherApiGetWeatherTriggers: AppAction<\n typeof OpenweatherApiGetWeatherTriggersInput,\n typeof OpenweatherApiGetWeatherTriggersOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET_WEATHER_TRIGGERS\", {\n slug: \"openweather_api-get-weather-triggers\",\n name: \"Get Weather Triggers\",\n description: \"Tool to retrieve weather triggers for specific conditions. Use after defining trigger criteria.\",\n input: OpenweatherApiGetWeatherTriggersInput,\n output: OpenweatherApiGetWeatherTriggersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO,EAC5D,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACjF,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,UAAU,EAAE,OAAO;EACnB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,CAAC,CAAC,CAAC,SAAS,6CAA6C;CACvD,WAAW,EAAE,KAAK;EAAC;EAAK;EAAK;EAAK;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,CAAC,SAAS,qCAAqC,EAC9H,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAKlE,MAAa,mCAIT,OAAO,wCAAwC;CACjD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,0DAA0D,CAAC,CAAC,SAAS,oCAAoC,EAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get5-day-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenweatherApiGet5DayForecastInput = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).passthrough().describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n}).passthrough();\n\nexport const openweatherApiGet5DayForecast = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACzF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;CAAU,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,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CAAC,SAAS,wBAAwB;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"get5-day-forecast.cjs","names":["z","action"],"sources":["../../src/actions/get5-day-forecast.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openweatherApi } from \"../app\";\n\nexport const OpenweatherApiGet5DayForecastInput = z.object({\n q: z.string().describe(\"City name and optional country code, e.g. 'London,uk'\").optional(),\n id: z.number().int().describe(\"OpenWeatherMap city ID\").optional(),\n lat: z.number().describe(\"Latitude in degrees\").optional(),\n lon: z.number().describe(\"Longitude in degrees\").optional(),\n zip: z.string().describe(\"Zip code with country code, e.g. '94040,us'\").optional(),\n lang: z.string().describe(\"Language code (ISO 639-1)\").optional(),\n mode: z.enum([\"json\", \"xml\", \"html\"]).describe(\"Response format\").optional(),\n units: z.enum([\"standard\", \"metric\", \"imperial\"]).describe(\"Units of measurement (standard, metric, imperial)\").optional(),\n}).describe(\"Specify location and output options for 5-day, 3-hour forecast.\");\nconst OpenweatherApiGet5DayForecast_CityCoordSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lon: z.number().describe(\"Longitude\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CityInfoSchema = z.object({\n id: z.number().int().describe(\"City ID\").nullable(),\n name: z.string().describe(\"City name\").nullable(),\n coord: OpenweatherApiGet5DayForecast_CityCoordSchema.nullable(),\n sunset: z.number().int().describe(\"Sunset time (Unix UTC)\").nullable(),\n country: z.string().describe(\"Country code (ISO 3166)\").nullable(),\n sunrise: z.number().int().describe(\"Sunrise time (Unix UTC)\").nullable(),\n timezone: z.number().int().describe(\"Shift in seconds from UTC\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_SysInfoSchema = z.object({\n pod: z.enum([\"d\", \"n\"]).describe(\"Part of day: d=day, n=night\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastMainSchema = z.object({\n temp: z.number().describe(\"Temperature\").nullable(),\n temp_kf: z.number().describe(\"Temperature variance\").nullable().optional(),\n humidity: z.number().int().describe(\"Humidity percentage\").nullable(),\n pressure: z.number().int().describe(\"Atmospheric pressure (hPa)\").nullable(),\n temp_max: z.number().describe(\"Maximum temperature at the moment\").nullable(),\n temp_min: z.number().describe(\"Minimum temperature at the moment\").nullable(),\n sea_level: z.number().int().describe(\"Atmospheric pressure at sea level (hPa)\").nullable().optional(),\n feels_like: z.number().describe(\"Human perception of temperature\").nullable(),\n grnd_level: z.number().int().describe(\"Atmospheric pressure at ground level (hPa)\").nullable().optional(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema = z.object({\n \"3h\": z.number().describe(\"Volume for last 3 hours\").nullable(),\n}).passthrough().describe(\"Rain or snow volume for last 3 hours\");\nconst OpenweatherApiGet5DayForecast_WindSchema = z.object({\n deg: z.number().int().describe(\"Wind direction in degrees\").nullable(),\n gust: z.number().describe(\"Wind gust speed\").nullable().optional(),\n speed: z.number().describe(\"Wind speed\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_CloudsSchema = z.object({\n all: z.number().int().describe(\"Cloudiness percentage\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_WeatherConditionSchema = z.object({\n id: z.number().int().describe(\"Weather condition ID\").nullable(),\n icon: z.string().describe(\"Weather icon ID\").nullable(),\n main: z.string().describe(\"Group of weather parameters\").nullable(),\n description: z.string().describe(\"Weather condition within the group\").nullable(),\n}).passthrough();\nconst OpenweatherApiGet5DayForecast_ForecastItemSchema = z.object({\n dt: z.number().int().describe(\"Forecast time (Unix UTC)\").nullable(),\n pop: z.number().describe(\"Probability of precipitation\").nullable().optional(),\n sys: OpenweatherApiGet5DayForecast_SysInfoSchema.nullable(),\n main: OpenweatherApiGet5DayForecast_ForecastMainSchema.nullable(),\n rain: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n snow: OpenweatherApiGet5DayForecast_PrecipitationVolumeSchema.nullable().optional(),\n wind: OpenweatherApiGet5DayForecast_WindSchema.nullable(),\n clouds: OpenweatherApiGet5DayForecast_CloudsSchema.nullable(),\n dt_txt: z.string().describe(\"Forecast time as text\").nullable(),\n weather: z.array(OpenweatherApiGet5DayForecast_WeatherConditionSchema),\n visibility: z.number().int().describe(\"Visibility in meters\").nullable().optional(),\n}).passthrough();\nexport const OpenweatherApiGet5DayForecastOutput = z.object({\n cnt: z.number().int().describe(\"Number of timestamps returned\").nullable(),\n cod: z.string().describe(\"Internal response code\").nullable(),\n city: OpenweatherApiGet5DayForecast_CityInfoSchema.nullable(),\n list: z.array(OpenweatherApiGet5DayForecast_ForecastItemSchema).describe(\"Array of forecast data\"),\n message: z.number().describe(\"Internal parameter\").nullable(),\n}).passthrough();\n\nexport const openweatherApiGet5DayForecast: AppAction<\n typeof OpenweatherApiGet5DayForecastInput,\n typeof OpenweatherApiGet5DayForecastOutput,\n typeof openweatherApi.credential\n> = action(\"OPENWEATHER_API_GET5_DAY_FORECAST\", {\n slug: \"openweather_api-get5-day-forecast\",\n name: \"Get 5 Day Forecast\",\n description: \"Tool to get a 5-day forecast every 3 hours (up to 40 UTC timestamps). Exactly one location identifier required per call: `q`, `id`, `zip`, or `lat`+`lon` pair. Use `city.timezone` offset to convert timestamps to local time before grouping into daily summaries.\",\n input: OpenweatherApiGet5DayForecastInput,\n output: OpenweatherApiGet5DayForecastOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAA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app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get5-day-forecast.d.ts
|
|
@@ -79,28 +81,7 @@ declare const OpenweatherApiGet5DayForecastOutput: z.ZodObject<{
|
|
|
79
81
|
}, z.core.$loose>>;
|
|
80
82
|
message: z.ZodNullable<z.ZodNumber>;
|
|
81
83
|
}, z.core.$loose>;
|
|
82
|
-
declare const openweatherApiGet5DayForecast:
|
|
83
|
-
q?: string | undefined;
|
|
84
|
-
id?: number | undefined;
|
|
85
|
-
lat?: number | undefined;
|
|
86
|
-
lon?: number | undefined;
|
|
87
|
-
zip?: string | undefined;
|
|
88
|
-
lang?: string | undefined;
|
|
89
|
-
mode?: "json" | "xml" | "html" | undefined;
|
|
90
|
-
units?: "standard" | "metric" | "imperial" | undefined;
|
|
91
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
92
|
-
connectionId: z.ZodString;
|
|
93
|
-
entityId: z.ZodString;
|
|
94
|
-
instanceId: z.ZodString;
|
|
95
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
-
generic_api_key: z.ZodString;
|
|
97
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"openweather_api", z.ZodObject<{
|
|
98
|
-
connectionId: z.ZodString;
|
|
99
|
-
entityId: z.ZodString;
|
|
100
|
-
instanceId: z.ZodString;
|
|
101
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
-
generic_api_key: z.ZodString;
|
|
103
|
-
}, z.core.$strip>>]>;
|
|
84
|
+
declare const openweatherApiGet5DayForecast: AppAction<typeof OpenweatherApiGet5DayForecastInput, typeof OpenweatherApiGet5DayForecastOutput, typeof openweatherApi.credential>;
|
|
104
85
|
//#endregion
|
|
105
86
|
export { openweatherApiGet5DayForecast };
|
|
106
87
|
//# sourceMappingURL=get5-day-forecast.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get5-day-forecast.d.cts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get5-day-forecast.d.cts","names":[],"sources":["../../src/actions/get5-day-forecast.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAmElC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,cAAA,CAAe,UAAA"}
|