@keystrokehq/opencage 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.
Files changed (90) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/geocode-forward.cjs +80 -0
  7. package/dist/actions/geocode-forward.cjs.map +1 -0
  8. package/dist/actions/geocode-forward.d.cts +9 -0
  9. package/dist/actions/geocode-forward.d.cts.map +1 -0
  10. package/dist/actions/geocode-forward.d.mts +9 -0
  11. package/dist/actions/geocode-forward.d.mts.map +1 -0
  12. package/dist/actions/geocode-forward.mjs +79 -0
  13. package/dist/actions/geocode-forward.mjs.map +1 -0
  14. package/dist/actions/geocode-geojson.cjs +151 -0
  15. package/dist/actions/geocode-geojson.cjs.map +1 -0
  16. package/dist/actions/geocode-geojson.d.cts +9 -0
  17. package/dist/actions/geocode-geojson.d.cts.map +1 -0
  18. package/dist/actions/geocode-geojson.d.mts +9 -0
  19. package/dist/actions/geocode-geojson.d.mts.map +1 -0
  20. package/dist/actions/geocode-geojson.mjs +150 -0
  21. package/dist/actions/geocode-geojson.mjs.map +1 -0
  22. package/dist/actions/geocode-geojsonp.cjs +31 -0
  23. package/dist/actions/geocode-geojsonp.cjs.map +1 -0
  24. package/dist/actions/geocode-geojsonp.d.cts +9 -0
  25. package/dist/actions/geocode-geojsonp.d.cts.map +1 -0
  26. package/dist/actions/geocode-geojsonp.d.mts +9 -0
  27. package/dist/actions/geocode-geojsonp.d.mts.map +1 -0
  28. package/dist/actions/geocode-geojsonp.mjs +28 -0
  29. package/dist/actions/geocode-geojsonp.mjs.map +1 -0
  30. package/dist/actions/geocode-google-v3-json.cjs +60 -0
  31. package/dist/actions/geocode-google-v3-json.cjs.map +1 -0
  32. package/dist/actions/geocode-google-v3-json.d.cts +9 -0
  33. package/dist/actions/geocode-google-v3-json.d.cts.map +1 -0
  34. package/dist/actions/geocode-google-v3-json.d.mts +9 -0
  35. package/dist/actions/geocode-google-v3-json.d.mts.map +1 -0
  36. package/dist/actions/geocode-google-v3-json.mjs +59 -0
  37. package/dist/actions/geocode-google-v3-json.mjs.map +1 -0
  38. package/dist/actions/geocode-reverse.cjs +68 -0
  39. package/dist/actions/geocode-reverse.cjs.map +1 -0
  40. package/dist/actions/geocode-reverse.d.cts +9 -0
  41. package/dist/actions/geocode-reverse.d.cts.map +1 -0
  42. package/dist/actions/geocode-reverse.d.mts +9 -0
  43. package/dist/actions/geocode-reverse.d.mts.map +1 -0
  44. package/dist/actions/geocode-reverse.mjs +67 -0
  45. package/dist/actions/geocode-reverse.mjs.map +1 -0
  46. package/dist/actions/geocode-xml.cjs +32 -0
  47. package/dist/actions/geocode-xml.cjs.map +1 -0
  48. package/dist/actions/geocode-xml.d.cts +9 -0
  49. package/dist/actions/geocode-xml.d.cts.map +1 -0
  50. package/dist/actions/geocode-xml.d.mts +9 -0
  51. package/dist/actions/geocode-xml.d.mts.map +1 -0
  52. package/dist/actions/geocode-xml.mjs +29 -0
  53. package/dist/actions/geocode-xml.mjs.map +1 -0
  54. package/dist/actions/index.cjs +15 -0
  55. package/dist/actions/index.d.cts +8 -0
  56. package/dist/actions/index.d.mts +8 -0
  57. package/dist/actions/index.mjs +8 -0
  58. package/dist/actions/ping-opencage.cjs +16 -0
  59. package/dist/actions/ping-opencage.cjs.map +1 -0
  60. package/dist/actions/ping-opencage.d.cts +9 -0
  61. package/dist/actions/ping-opencage.d.cts.map +1 -0
  62. package/dist/actions/ping-opencage.d.mts +9 -0
  63. package/dist/actions/ping-opencage.d.mts.map +1 -0
  64. package/dist/actions/ping-opencage.mjs +13 -0
  65. package/dist/actions/ping-opencage.mjs.map +1 -0
  66. package/dist/app.cjs +9 -0
  67. package/dist/app.cjs.map +1 -0
  68. package/dist/app.d.cts +5 -0
  69. package/dist/app.d.cts.map +1 -0
  70. package/dist/app.d.mts +5 -0
  71. package/dist/app.d.mts.map +1 -0
  72. package/dist/app.mjs +10 -0
  73. package/dist/app.mjs.map +1 -0
  74. package/dist/catalog.cjs +15 -0
  75. package/dist/catalog.cjs.map +1 -0
  76. package/dist/catalog.d.cts +14 -0
  77. package/dist/catalog.d.cts.map +1 -0
  78. package/dist/catalog.d.mts +14 -0
  79. package/dist/catalog.d.mts.map +1 -0
  80. package/dist/catalog.mjs +15 -0
  81. package/dist/catalog.mjs.map +1 -0
  82. package/dist/execute.cjs +18 -0
  83. package/dist/execute.cjs.map +1 -0
  84. package/dist/execute.mjs +18 -0
  85. package/dist/execute.mjs.map +1 -0
  86. package/dist/index.cjs +20 -0
  87. package/dist/index.d.cts +10 -0
  88. package/dist/index.d.mts +10 -0
  89. package/dist/index.mjs +11 -0
  90. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/opencage
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `opencage`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 7
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { opencageGeocodeForward } from "@keystrokehq/opencage/actions";
12
+
13
+ export default defineAgent({
14
+ key: "opencage-agent",
15
+ tools: [opencageGeocodeForward],
16
+ });
17
+ ```
@@ -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.opencage.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.executeOpencageTool(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":["opencage","executeOpencageTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { opencage } from \"./app\";\nimport { executeOpencageTool } 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 opencage.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 executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,SAAS,OAAO;EACrB,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,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { opencage } from "./app.mjs";
2
+ import { executeOpencageTool } 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 opencage.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 executeOpencageTool(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 { opencage } from \"./app\";\nimport { executeOpencageTool } 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 opencage.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 executeOpencageTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
@@ -0,0 +1,80 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/geocode-forward.ts
4
+ const OpencageGeocodeForwardInput = zod.z.object({
5
+ q: zod.z.string().describe("The address or free-form query to geocode"),
6
+ abbrv: zod.z.number().int().describe("Return abbreviated results (0=false,1=true)").optional(),
7
+ limit: zod.z.number().int().describe("Maximum number of results (1-100)").optional(),
8
+ bounds: zod.z.string().describe("Bias results to bounding box: west,south,east,north").optional(),
9
+ pretty: zod.z.boolean().default(false).describe("Format the JSON response for readability").optional(),
10
+ language: zod.z.string().describe("Preferred language for results (ISO 639-1 code)").optional(),
11
+ proximity: zod.z.string().describe("Bias results near a point: latitude,longitude").optional(),
12
+ add_request: zod.z.number().int().describe("Include original request in response (0=false,1=true)").optional(),
13
+ countrycode: zod.z.string().describe("Restrict to country codes (comma-separated ISO 3166-1 alpha-2)").optional(),
14
+ min_confidence: zod.z.number().int().describe("Minimum confidence score (1-10)").optional(),
15
+ no_annotations: zod.z.boolean().default(false).describe("Exclude supplementary information in results").optional()
16
+ }).describe("Request parameters for forward geocoding.");
17
+ const OpencageGeocodeForward_RateSchema = zod.z.object({
18
+ limit: zod.z.number().int().describe("Maximum number of requests"),
19
+ reset: zod.z.number().int().describe("Reset timestamp (UNIX)"),
20
+ remaining: zod.z.number().int().describe("Remaining requests")
21
+ });
22
+ const OpencageGeocodeForward_StatusSchema = zod.z.object({
23
+ code: zod.z.number().int().describe("Status code"),
24
+ message: zod.z.string().describe("Status message")
25
+ });
26
+ const OpencageGeocodeForward_BoundsSideSchema = zod.z.object({
27
+ lat: zod.z.number().describe("Latitude"),
28
+ lng: zod.z.number().describe("Longitude")
29
+ });
30
+ const OpencageGeocodeForward_BoundsSchema = zod.z.object({
31
+ northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),
32
+ southwest: OpencageGeocodeForward_BoundsSideSchema.nullable()
33
+ });
34
+ const OpencageGeocodeForward_GeometrySchema = zod.z.object({
35
+ lat: zod.z.number().describe("Latitude of result"),
36
+ lng: zod.z.number().describe("Longitude of result")
37
+ });
38
+ const OpencageGeocodeForward_ResultSchema = zod.z.object({
39
+ bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),
40
+ geometry: OpencageGeocodeForward_GeometrySchema.nullable(),
41
+ formatted: zod.z.string().describe("Formatted address string"),
42
+ components: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Address component breakdown"),
43
+ confidence: zod.z.number().int().describe("Confidence score"),
44
+ annotations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Supplementary annotations (excluded when no_annotations=true)").nullable().optional()
45
+ });
46
+ const OpencageGeocodeForward_LicenseSchema = zod.z.object({
47
+ url: zod.z.string().describe("License URL"),
48
+ name: zod.z.string().describe("License name")
49
+ });
50
+ const OpencageGeocodeForward_TimestampSchema = zod.z.object({
51
+ created_http: zod.z.string().describe("Creation time (HTTP format)"),
52
+ created_unix: zod.z.number().int().describe("Creation time (UNIX timestamp)")
53
+ });
54
+ const OpencageGeocodeForward_StayInformedSchema = zod.z.object({
55
+ blog: zod.z.string().describe("Blog URL").nullable().optional(),
56
+ twitter: zod.z.string().describe("Twitter URL").nullable().optional(),
57
+ mastodon: zod.z.string().describe("Mastodon URL").nullable().optional()
58
+ });
59
+ const OpencageGeocodeForwardOutput = zod.z.object({
60
+ rate: OpencageGeocodeForward_RateSchema.nullable(),
61
+ status: OpencageGeocodeForward_StatusSchema.nullable(),
62
+ thanks: zod.z.string().describe("Thank you message"),
63
+ results: zod.z.array(OpencageGeocodeForward_ResultSchema).describe("List of geocoding results"),
64
+ licenses: zod.z.array(OpencageGeocodeForward_LicenseSchema).describe("List of data licenses"),
65
+ timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),
66
+ documentation: zod.z.string().describe("Link to API documentation"),
67
+ stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),
68
+ total_results: zod.z.number().int().describe("Total number of results returned")
69
+ });
70
+ const opencageGeocodeForward = require_action.action("OPENCAGE_GEOCODE_FORWARD", {
71
+ slug: "opencage-geocode-forward",
72
+ name: "Forward Geocode Address",
73
+ description: "Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.",
74
+ input: OpencageGeocodeForwardInput,
75
+ output: OpencageGeocodeForwardOutput
76
+ });
77
+ //#endregion
78
+ exports.opencageGeocodeForward = opencageGeocodeForward;
79
+
80
+ //# sourceMappingURL=geocode-forward.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-forward.cjs","names":["z","action"],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeForwardInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\"),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\"),\n remaining: z.number().int().describe(\"Remaining requests\"),\n});\nconst OpencageGeocodeForward_StatusSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code\"),\n message: z.string().describe(\"Status message\"),\n});\nconst OpencageGeocodeForward_BoundsSideSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lng: z.number().describe(\"Longitude\"),\n});\nconst OpencageGeocodeForward_BoundsSchema: z.ZodTypeAny = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n});\nconst OpencageGeocodeForward_GeometrySchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of result\"),\n lng: z.number().describe(\"Longitude of result\"),\n});\nconst OpencageGeocodeForward_ResultSchema: z.ZodTypeAny = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\"),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\"),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n});\nconst OpencageGeocodeForward_LicenseSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"License URL\"),\n name: z.string().describe(\"License name\"),\n});\nconst OpencageGeocodeForward_TimestampSchema: z.ZodTypeAny = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\"),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\"),\n});\nconst OpencageGeocodeForward_StayInformedSchema: z.ZodTypeAny = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n});\nexport const OpencageGeocodeForwardOutput: z.ZodTypeAny = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\"),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\"),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\"),\n});\n\nexport const opencageGeocodeForward = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACzF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CA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CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAM,kCAAkC,SAAS;CACjD,QAAQ,oCAAoC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC/C,SAASA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;CAC1F,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,uBAAuB;CACxF,WAAW,uCAAuC,SAAS;CAC3D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC9D,eAAe,0CAA0C,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;AAC7E,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,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/geocode-forward.d.ts
4
+ declare const OpencageGeocodeForwardInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeForwardOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeForward: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeForward };
9
+ //# sourceMappingURL=geocode-forward.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-forward.d.cts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAYY;AAAA,cA2C3C,4BAAA,EAA8B,CAAA,CAAE,UAU3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/geocode-forward.d.ts
4
+ declare const OpencageGeocodeForwardInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeForwardOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeForward: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeForward };
9
+ //# sourceMappingURL=geocode-forward.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-forward.d.mts","names":[],"sources":["../../src/actions/geocode-forward.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAYY;AAAA,cA2C3C,4BAAA,EAA8B,CAAA,CAAE,UAU3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,79 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/geocode-forward.ts
4
+ const OpencageGeocodeForwardInput = z.object({
5
+ q: z.string().describe("The address or free-form query to geocode"),
6
+ abbrv: z.number().int().describe("Return abbreviated results (0=false,1=true)").optional(),
7
+ limit: z.number().int().describe("Maximum number of results (1-100)").optional(),
8
+ bounds: z.string().describe("Bias results to bounding box: west,south,east,north").optional(),
9
+ pretty: z.boolean().default(false).describe("Format the JSON response for readability").optional(),
10
+ language: z.string().describe("Preferred language for results (ISO 639-1 code)").optional(),
11
+ proximity: z.string().describe("Bias results near a point: latitude,longitude").optional(),
12
+ add_request: z.number().int().describe("Include original request in response (0=false,1=true)").optional(),
13
+ countrycode: z.string().describe("Restrict to country codes (comma-separated ISO 3166-1 alpha-2)").optional(),
14
+ min_confidence: z.number().int().describe("Minimum confidence score (1-10)").optional(),
15
+ no_annotations: z.boolean().default(false).describe("Exclude supplementary information in results").optional()
16
+ }).describe("Request parameters for forward geocoding.");
17
+ const OpencageGeocodeForward_RateSchema = z.object({
18
+ limit: z.number().int().describe("Maximum number of requests"),
19
+ reset: z.number().int().describe("Reset timestamp (UNIX)"),
20
+ remaining: z.number().int().describe("Remaining requests")
21
+ });
22
+ const OpencageGeocodeForward_StatusSchema = z.object({
23
+ code: z.number().int().describe("Status code"),
24
+ message: z.string().describe("Status message")
25
+ });
26
+ const OpencageGeocodeForward_BoundsSideSchema = z.object({
27
+ lat: z.number().describe("Latitude"),
28
+ lng: z.number().describe("Longitude")
29
+ });
30
+ const OpencageGeocodeForward_BoundsSchema = z.object({
31
+ northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),
32
+ southwest: OpencageGeocodeForward_BoundsSideSchema.nullable()
33
+ });
34
+ const OpencageGeocodeForward_GeometrySchema = z.object({
35
+ lat: z.number().describe("Latitude of result"),
36
+ lng: z.number().describe("Longitude of result")
37
+ });
38
+ const OpencageGeocodeForward_ResultSchema = z.object({
39
+ bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),
40
+ geometry: OpencageGeocodeForward_GeometrySchema.nullable(),
41
+ formatted: z.string().describe("Formatted address string"),
42
+ components: z.record(z.string(), z.unknown()).describe("Address component breakdown"),
43
+ confidence: z.number().int().describe("Confidence score"),
44
+ annotations: z.record(z.string(), z.unknown()).describe("Supplementary annotations (excluded when no_annotations=true)").nullable().optional()
45
+ });
46
+ const OpencageGeocodeForward_LicenseSchema = z.object({
47
+ url: z.string().describe("License URL"),
48
+ name: z.string().describe("License name")
49
+ });
50
+ const OpencageGeocodeForward_TimestampSchema = z.object({
51
+ created_http: z.string().describe("Creation time (HTTP format)"),
52
+ created_unix: z.number().int().describe("Creation time (UNIX timestamp)")
53
+ });
54
+ const OpencageGeocodeForward_StayInformedSchema = z.object({
55
+ blog: z.string().describe("Blog URL").nullable().optional(),
56
+ twitter: z.string().describe("Twitter URL").nullable().optional(),
57
+ mastodon: z.string().describe("Mastodon URL").nullable().optional()
58
+ });
59
+ const opencageGeocodeForward = action("OPENCAGE_GEOCODE_FORWARD", {
60
+ slug: "opencage-geocode-forward",
61
+ name: "Forward Geocode Address",
62
+ description: "Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.",
63
+ input: OpencageGeocodeForwardInput,
64
+ output: z.object({
65
+ rate: OpencageGeocodeForward_RateSchema.nullable(),
66
+ status: OpencageGeocodeForward_StatusSchema.nullable(),
67
+ thanks: z.string().describe("Thank you message"),
68
+ results: z.array(OpencageGeocodeForward_ResultSchema).describe("List of geocoding results"),
69
+ licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe("List of data licenses"),
70
+ timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),
71
+ documentation: z.string().describe("Link to API documentation"),
72
+ stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),
73
+ total_results: z.number().int().describe("Total number of results returned")
74
+ })
75
+ });
76
+ //#endregion
77
+ export { opencageGeocodeForward };
78
+
79
+ //# sourceMappingURL=geocode-forward.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-forward.mjs","names":[],"sources":["../../src/actions/geocode-forward.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeForwardInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"The address or free-form query to geocode\"),\n abbrv: z.number().int().describe(\"Return abbreviated results (0=false,1=true)\").optional(),\n limit: z.number().int().describe(\"Maximum number of results (1-100)\").optional(),\n bounds: z.string().describe(\"Bias results to bounding box: west,south,east,north\").optional(),\n pretty: z.boolean().default(false).describe(\"Format the JSON response for readability\").optional(),\n language: z.string().describe(\"Preferred language for results (ISO 639-1 code)\").optional(),\n proximity: z.string().describe(\"Bias results near a point: latitude,longitude\").optional(),\n add_request: z.number().int().describe(\"Include original request in response (0=false,1=true)\").optional(),\n countrycode: z.string().describe(\"Restrict to country codes (comma-separated ISO 3166-1 alpha-2)\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (1-10)\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude supplementary information in results\").optional(),\n}).describe(\"Request parameters for forward geocoding.\");\nconst OpencageGeocodeForward_RateSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of requests\"),\n reset: z.number().int().describe(\"Reset timestamp (UNIX)\"),\n remaining: z.number().int().describe(\"Remaining requests\"),\n});\nconst OpencageGeocodeForward_StatusSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code\"),\n message: z.string().describe(\"Status message\"),\n});\nconst OpencageGeocodeForward_BoundsSideSchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude\"),\n lng: z.number().describe(\"Longitude\"),\n});\nconst OpencageGeocodeForward_BoundsSchema: z.ZodTypeAny = z.object({\n northeast: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n southwest: OpencageGeocodeForward_BoundsSideSchema.nullable(),\n});\nconst OpencageGeocodeForward_GeometrySchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of result\"),\n lng: z.number().describe(\"Longitude of result\"),\n});\nconst OpencageGeocodeForward_ResultSchema: z.ZodTypeAny = z.object({\n bounds: OpencageGeocodeForward_BoundsSchema.nullable().optional(),\n geometry: OpencageGeocodeForward_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Formatted address string\"),\n components: z.record(z.string(), z.unknown()).describe(\"Address component breakdown\"),\n confidence: z.number().int().describe(\"Confidence score\"),\n annotations: z.record(z.string(), z.unknown()).describe(\"Supplementary annotations (excluded when no_annotations=true)\").nullable().optional(),\n});\nconst OpencageGeocodeForward_LicenseSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"License URL\"),\n name: z.string().describe(\"License name\"),\n});\nconst OpencageGeocodeForward_TimestampSchema: z.ZodTypeAny = z.object({\n created_http: z.string().describe(\"Creation time (HTTP format)\"),\n created_unix: z.number().int().describe(\"Creation time (UNIX timestamp)\"),\n});\nconst OpencageGeocodeForward_StayInformedSchema: z.ZodTypeAny = z.object({\n blog: z.string().describe(\"Blog URL\").nullable().optional(),\n twitter: z.string().describe(\"Twitter URL\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon URL\").nullable().optional(),\n});\nexport const OpencageGeocodeForwardOutput: z.ZodTypeAny = z.object({\n rate: OpencageGeocodeForward_RateSchema.nullable(),\n status: OpencageGeocodeForward_StatusSchema.nullable(),\n thanks: z.string().describe(\"Thank you message\"),\n results: z.array(OpencageGeocodeForward_ResultSchema).describe(\"List of geocoding results\"),\n licenses: z.array(OpencageGeocodeForward_LicenseSchema).describe(\"List of data licenses\"),\n timestamp: OpencageGeocodeForward_TimestampSchema.nullable(),\n documentation: z.string().describe(\"Link to API documentation\"),\n stay_informed: OpencageGeocodeForward_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results returned\"),\n});\n\nexport const opencageGeocodeForward = action(\"OPENCAGE_GEOCODE_FORWARD\", {\n slug: \"opencage-geocode-forward\",\n name: \"Forward Geocode Address\",\n description: \"Tool to convert a human-readable address into geographic coordinates. Use when you need to retrieve latitude and longitude from an address.\",\n input: OpencageGeocodeForwardInput,\n output: OpencageGeocodeForwardOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SA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AAC,SAAS;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC;AAaD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBwD,EAAE,OAAO;EACjE,MAAM,kCAAkC,SAAS;EACjD,QAAQ,oCAAoC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAC/C,SAAS,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,2BAA2B;EAC1F,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,uBAAuB;EACxF,WAAW,uCAAuC,SAAS;EAC3D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC9D,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAC7E,CAOU;AACV,CAAC"}
@@ -0,0 +1,151 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/geocode-geojson.ts
4
+ const OpencageGeocodeGeojsonInput = zod.z.object({
5
+ q: zod.z.string().describe("Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding."),
6
+ abbrv: zod.z.number().int().describe("Use abbreviated address fields: 1 to enable, 0 to disable.").optional(),
7
+ limit: zod.z.number().int().describe("Maximum number of results to return (1-100). Default is 10.").optional(),
8
+ bounds: zod.z.string().describe("Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.").optional(),
9
+ pretty: zod.z.boolean().default(false).describe("Pretty-print the JSON response for readability.").optional(),
10
+ language: zod.z.string().describe("Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').").optional(),
11
+ roadinfo: zod.z.boolean().default(false).describe("Include detailed road/driving information in annotations.").optional(),
12
+ proximity: zod.z.string().describe("Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').").optional(),
13
+ add_request: zod.z.boolean().default(false).describe("Include original request parameters in the response.").optional(),
14
+ countrycode: zod.z.string().describe("Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').").optional(),
15
+ address_only: zod.z.boolean().default(false).describe("Return only address-type results (exclude POIs, landmarks).").optional(),
16
+ min_confidence: zod.z.number().int().describe("Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.").optional(),
17
+ no_annotations: zod.z.boolean().default(false).describe("Exclude detailed annotations (timezone, currency, sun times, etc.) from response.").optional()
18
+ }).describe("Request parameters for geocoding to GeoJSON format.\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).");
19
+ const OpencageGeocodeGeojson_RateSchema = zod.z.object({
20
+ limit: zod.z.number().int().describe("Maximum requests allowed per day."),
21
+ reset: zod.z.number().int().describe("UNIX timestamp when limit resets."),
22
+ remaining: zod.z.number().int().describe("Remaining requests today.")
23
+ }).describe("API rate limit information.");
24
+ const OpencageGeocodeGeojson_StatusSchema = zod.z.object({
25
+ code: zod.z.number().int().describe("HTTP-like status code (200=OK, 400=invalid, etc.)."),
26
+ message: zod.z.string().describe("Status message.")
27
+ }).describe("API response status.");
28
+ const OpencageGeocodeGeojson_GeometrySchema = zod.z.object({
29
+ type: zod.z.string().describe("GeoJSON geometry type, always 'Point' for geocoding results."),
30
+ coordinates: zod.z.array(zod.z.number()).describe("Coordinates as [longitude, latitude].")
31
+ }).describe("GeoJSON Point geometry.");
32
+ const OpencageGeocodeGeojson_BoundsSchema = zod.z.object({
33
+ northeast: zod.z.object({}).describe("Northeast corner with 'lat' and 'lng'."),
34
+ southwest: zod.z.object({}).describe("Southwest corner with 'lat' and 'lng'.")
35
+ }).describe("Geographic bounding box.");
36
+ const OpencageGeocodeGeojson_AnnotationDMSSchema = zod.z.object({
37
+ lat: zod.z.string().describe("Latitude in DMS format (e.g., \"52° 31' 2.59860'' N\")."),
38
+ lng: zod.z.string().describe("Longitude in DMS format (e.g., \"13° 23' 42.47124'' E\").")
39
+ }).describe("Coordinates in Degrees Minutes Seconds format.");
40
+ const OpencageGeocodeGeojson_AnnotationOSMSchema = zod.z.object({
41
+ url: zod.z.string().describe("URL to view this location on OpenStreetMap.").nullable().optional(),
42
+ edit_url: zod.z.string().describe("URL to edit this location on OpenStreetMap.").nullable().optional(),
43
+ note_url: zod.z.string().describe("URL to add a note at this location.").nullable().optional()
44
+ }).describe("OpenStreetMap links.");
45
+ const OpencageGeocodeGeojson_SunTimesSchema = zod.z.object({
46
+ civil: zod.z.number().int().describe("Civil twilight time (UNIX timestamp)."),
47
+ apparent: zod.z.number().int().describe("Apparent sunrise/sunset time (UNIX timestamp)."),
48
+ nautical: zod.z.number().int().describe("Nautical twilight time (UNIX timestamp)."),
49
+ astronomical: zod.z.number().int().describe("Astronomical twilight time (UNIX timestamp).")
50
+ }).describe("Sun timing information with different twilight types.");
51
+ const OpencageGeocodeGeojson_AnnotationSunSchema = zod.z.object({
52
+ set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),
53
+ rise: OpencageGeocodeGeojson_SunTimesSchema.nullable()
54
+ }).describe("Sunrise and sunset times for the location.");
55
+ const OpencageGeocodeGeojson_AnnotationMercatorSchema = zod.z.object({
56
+ x: zod.z.number().describe("Mercator x-coordinate (easting)."),
57
+ y: zod.z.number().describe("Mercator y-coordinate (northing).")
58
+ }).describe("Coordinates in Web Mercator projection (EPSG:3857).");
59
+ const OpencageGeocodeGeojson_AnnotationCurrencySchema = zod.z.object({
60
+ name: zod.z.string().describe("Currency name (e.g., 'Euro')."),
61
+ symbol: zod.z.string().describe("Currency symbol (e.g., '€')."),
62
+ subunit: zod.z.string().describe("Name of the subunit (e.g., 'Cent').").nullable().optional(),
63
+ iso_code: zod.z.string().describe("ISO 4217 currency code (e.g., 'EUR')."),
64
+ html_entity: zod.z.string().describe("HTML entity for the currency symbol.").nullable().optional(),
65
+ iso_numeric: zod.z.string().describe("ISO 4217 numeric code.").nullable().optional(),
66
+ decimal_mark: zod.z.string().describe("Decimal separator character.").nullable().optional(),
67
+ symbol_first: zod.z.number().int().describe("Whether symbol appears before amount (1) or after (0).").nullable().optional(),
68
+ subunit_to_unit: zod.z.number().int().describe("Number of subunits in one unit.").nullable().optional(),
69
+ alternate_symbols: zod.z.array(zod.z.string()).describe("Alternative currency symbols.").nullable().optional(),
70
+ thousands_separator: zod.z.string().describe("Thousands separator character.").nullable().optional(),
71
+ smallest_denomination: zod.z.number().int().describe("Smallest physical denomination.").nullable().optional()
72
+ }).describe("Currency information for the location's country.");
73
+ const OpencageGeocodeGeojson_AnnotationRoadInfoSchema = zod.z.object({
74
+ road: zod.z.string().describe("Road name if available.").nullable().optional(),
75
+ drive_on: zod.z.string().describe("Side of road for driving ('left' or 'right')."),
76
+ speed_in: zod.z.string().describe("Speed unit used ('km/h' or 'mph')."),
77
+ road_type: zod.z.string().describe("Type of road.").nullable().optional()
78
+ }).describe("Road and driving information.");
79
+ const OpencageGeocodeGeojson_AnnotationTimezoneSchema = zod.z.object({
80
+ name: zod.z.string().describe("IANA timezone name (e.g., 'Europe/Berlin')."),
81
+ now_in_dst: zod.z.number().int().describe("Whether currently in DST (1) or not (0)."),
82
+ offset_sec: zod.z.number().int().describe("UTC offset in seconds."),
83
+ short_name: zod.z.string().describe("Timezone abbreviation (e.g., 'CET')."),
84
+ offset_string: zod.z.string().describe("UTC offset as string (e.g., '+0100').")
85
+ }).describe("Timezone information.");
86
+ const OpencageGeocodeGeojson_AnnotationsSchema = zod.z.object({
87
+ DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),
88
+ OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),
89
+ sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),
90
+ MGRS: zod.z.string().describe("Military Grid Reference System coordinate.").nullable().optional(),
91
+ NUTS: zod.z.record(zod.z.string(), zod.z.unknown()).describe("EU NUTS region codes.").nullable().optional(),
92
+ flag: zod.z.string().describe("Country flag emoji.").nullable().optional(),
93
+ qibla: zod.z.number().describe("Direction to Mecca in degrees.").nullable().optional(),
94
+ UN_M49: zod.z.record(zod.z.string(), zod.z.unknown()).describe("UN M49 region codes.").nullable().optional(),
95
+ geohash: zod.z.string().describe("Geohash of the location.").nullable().optional(),
96
+ Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),
97
+ currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),
98
+ roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),
99
+ timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),
100
+ wikidata: zod.z.string().describe("Wikidata identifier.").nullable().optional(),
101
+ Maidenhead: zod.z.string().describe("Maidenhead (amateur radio) grid locator.").nullable().optional(),
102
+ what3words: zod.z.object({}).describe("What3Words address.").nullable().optional(),
103
+ callingcode: zod.z.number().int().describe("International calling code.").nullable().optional()
104
+ }).describe("Additional geographic annotations for a result. All fields are optional as they depend on API parameters.");
105
+ const OpencageGeocodeGeojson_FeaturePropertiesSchema = zod.z.object({
106
+ bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),
107
+ formatted: zod.z.string().describe("Fully formatted address string."),
108
+ components: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structured address components (country, city, street, etc.)."),
109
+ confidence: zod.z.number().int().describe("Confidence score (1-10) for this result."),
110
+ annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional()
111
+ }).describe("Properties of a GeoJSON feature from geocoding.");
112
+ const OpencageGeocodeGeojson_FeatureSchema = zod.z.object({
113
+ type: zod.z.string().describe("GeoJSON type, always 'Feature'."),
114
+ geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),
115
+ properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable()
116
+ }).describe("GeoJSON Feature representing a geocoding result.");
117
+ const OpencageGeocodeGeojson_LicenseSchema = zod.z.object({
118
+ url: zod.z.string().describe("URL to license details."),
119
+ name: zod.z.string().describe("License name.")
120
+ }).describe("Data license information.");
121
+ const OpencageGeocodeGeojson_TimestampSchema = zod.z.object({
122
+ created_http: zod.z.string().describe("Timestamp in HTTP date format."),
123
+ created_unix: zod.z.number().int().describe("Timestamp as UNIX epoch seconds.")
124
+ }).describe("Response timestamp.");
125
+ const OpencageGeocodeGeojson_StayInformedSchema = zod.z.object({
126
+ blog: zod.z.string().describe("Blog URL.").nullable().optional(),
127
+ mastodon: zod.z.string().describe("Mastodon profile URL.").nullable().optional()
128
+ }).describe("Links to stay informed about the API.");
129
+ const OpencageGeocodeGeojsonOutput = zod.z.object({
130
+ rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),
131
+ type: zod.z.string().describe("GeoJSON type, always 'FeatureCollection'."),
132
+ status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),
133
+ thanks: zod.z.string().describe("Thank you message from API.").nullable().optional(),
134
+ features: zod.z.array(OpencageGeocodeGeojson_FeatureSchema).describe("List of geocoding results as GeoJSON features."),
135
+ licenses: zod.z.array(OpencageGeocodeGeojson_LicenseSchema).describe("Data license information."),
136
+ timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),
137
+ documentation: zod.z.string().describe("Link to API documentation.").nullable().optional(),
138
+ stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),
139
+ total_results: zod.z.number().int().describe("Total number of results returned.").nullable().optional()
140
+ }).describe("GeoJSON FeatureCollection response from OpenCage geocoding API.\nContains geocoding results as GeoJSON features with rich metadata.");
141
+ const opencageGeocodeGeojson = require_action.action("OPENCAGE_GEOCODE_GEOJSON", {
142
+ slug: "opencage-geocode-geojson",
143
+ name: "Geocode to GeoJSON",
144
+ description: "Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.",
145
+ input: OpencageGeocodeGeojsonInput,
146
+ output: OpencageGeocodeGeojsonOutput
147
+ });
148
+ //#endregion
149
+ exports.opencageGeocodeGeojson = opencageGeocodeGeojson;
150
+
151
+ //# sourceMappingURL=geocode-geojson.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-geojson.cjs","names":["z","action"],"sources":["../../src/actions/geocode-geojson.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGeojsonInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Query string: either an address/placename for forward geocoding, or 'lat,lng' coordinates for reverse geocoding.\"),\n abbrv: z.number().int().describe(\"Use abbreviated address fields: 1 to enable, 0 to disable.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10.\").optional(),\n bounds: z.string().describe(\"Restrict results to bounding box as 'min_lng,min_lat,max_lng,max_lat'.\").optional(),\n pretty: z.boolean().default(false).describe(\"Pretty-print the JSON response for readability.\").optional(),\n language: z.string().describe(\"Preferred response language as IETF language tag (e.g., 'en', 'de', 'fr').\").optional(),\n roadinfo: z.boolean().default(false).describe(\"Include detailed road/driving information in annotations.\").optional(),\n proximity: z.string().describe(\"Bias results toward a location as 'lat,lng' (e.g., '52.5200,13.4050').\").optional(),\n add_request: z.boolean().default(false).describe(\"Include original request parameters in the response.\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries. Comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us', 'de,fr').\").optional(),\n address_only: z.boolean().default(false).describe(\"Return only address-type results (exclude POIs, landmarks).\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level for results (1-10). Only results with confidence >= this value are returned.\").optional(),\n no_annotations: z.boolean().default(false).describe(\"Exclude detailed annotations (timezone, currency, sun times, etc.) from response.\").optional(),\n}).describe(\"Request parameters for geocoding to GeoJSON format.\\nSupports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address).\");\nconst OpencageGeocodeGeojson_RateSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum requests allowed per day.\"),\n reset: z.number().int().describe(\"UNIX timestamp when limit resets.\"),\n remaining: z.number().int().describe(\"Remaining requests today.\"),\n}).describe(\"API rate limit information.\");\nconst OpencageGeocodeGeojson_StatusSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"HTTP-like status code (200=OK, 400=invalid, etc.).\"),\n message: z.string().describe(\"Status message.\"),\n}).describe(\"API response status.\");\nconst OpencageGeocodeGeojson_GeometrySchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON geometry type, always 'Point' for geocoding results.\"),\n coordinates: z.array(z.number()).describe(\"Coordinates as [longitude, latitude].\"),\n}).describe(\"GeoJSON Point geometry.\");\nconst OpencageGeocodeGeojson_BoundsSchema: z.ZodTypeAny = z.object({\n northeast: z.object({}).describe(\"Northeast corner with 'lat' and 'lng'.\"),\n southwest: z.object({}).describe(\"Southwest corner with 'lat' and 'lng'.\"),\n}).describe(\"Geographic bounding box.\");\nconst OpencageGeocodeGeojson_AnnotationDMSSchema: z.ZodTypeAny = z.object({\n lat: z.string().describe(\"Latitude in DMS format (e.g., \\\"52° 31' 2.59860'' N\\\").\"),\n lng: z.string().describe(\"Longitude in DMS format (e.g., \\\"13° 23' 42.47124'' E\\\").\"),\n}).describe(\"Coordinates in Degrees Minutes Seconds format.\");\nconst OpencageGeocodeGeojson_AnnotationOSMSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to view this location on OpenStreetMap.\").nullable().optional(),\n edit_url: z.string().describe(\"URL to edit this location on OpenStreetMap.\").nullable().optional(),\n note_url: z.string().describe(\"URL to add a note at this location.\").nullable().optional(),\n}).describe(\"OpenStreetMap links.\");\nconst OpencageGeocodeGeojson_SunTimesSchema: z.ZodTypeAny = z.object({\n civil: z.number().int().describe(\"Civil twilight time (UNIX timestamp).\"),\n apparent: z.number().int().describe(\"Apparent sunrise/sunset time (UNIX timestamp).\"),\n nautical: z.number().int().describe(\"Nautical twilight time (UNIX timestamp).\"),\n astronomical: z.number().int().describe(\"Astronomical twilight time (UNIX timestamp).\"),\n}).describe(\"Sun timing information with different twilight types.\");\nconst OpencageGeocodeGeojson_AnnotationSunSchema: z.ZodTypeAny = z.object({\n set: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n rise: OpencageGeocodeGeojson_SunTimesSchema.nullable(),\n}).describe(\"Sunrise and sunset times for the location.\");\nconst OpencageGeocodeGeojson_AnnotationMercatorSchema: z.ZodTypeAny = z.object({\n x: z.number().describe(\"Mercator x-coordinate (easting).\"),\n y: z.number().describe(\"Mercator y-coordinate (northing).\"),\n}).describe(\"Coordinates in Web Mercator projection (EPSG:3857).\");\nconst OpencageGeocodeGeojson_AnnotationCurrencySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Currency name (e.g., 'Euro').\"),\n symbol: z.string().describe(\"Currency symbol (e.g., '€').\"),\n subunit: z.string().describe(\"Name of the subunit (e.g., 'Cent').\").nullable().optional(),\n iso_code: z.string().describe(\"ISO 4217 currency code (e.g., 'EUR').\"),\n html_entity: z.string().describe(\"HTML entity for the currency symbol.\").nullable().optional(),\n iso_numeric: z.string().describe(\"ISO 4217 numeric code.\").nullable().optional(),\n decimal_mark: z.string().describe(\"Decimal separator character.\").nullable().optional(),\n symbol_first: z.number().int().describe(\"Whether symbol appears before amount (1) or after (0).\").nullable().optional(),\n subunit_to_unit: z.number().int().describe(\"Number of subunits in one unit.\").nullable().optional(),\n alternate_symbols: z.array(z.string()).describe(\"Alternative currency symbols.\").nullable().optional(),\n thousands_separator: z.string().describe(\"Thousands separator character.\").nullable().optional(),\n smallest_denomination: z.number().int().describe(\"Smallest physical denomination.\").nullable().optional(),\n}).describe(\"Currency information for the location's country.\");\nconst OpencageGeocodeGeojson_AnnotationRoadInfoSchema: z.ZodTypeAny = z.object({\n road: z.string().describe(\"Road name if available.\").nullable().optional(),\n drive_on: z.string().describe(\"Side of road for driving ('left' or 'right').\"),\n speed_in: z.string().describe(\"Speed unit used ('km/h' or 'mph').\"),\n road_type: z.string().describe(\"Type of road.\").nullable().optional(),\n}).describe(\"Road and driving information.\");\nconst OpencageGeocodeGeojson_AnnotationTimezoneSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"IANA timezone name (e.g., 'Europe/Berlin').\"),\n now_in_dst: z.number().int().describe(\"Whether currently in DST (1) or not (0).\"),\n offset_sec: z.number().int().describe(\"UTC offset in seconds.\"),\n short_name: z.string().describe(\"Timezone abbreviation (e.g., 'CET').\"),\n offset_string: z.string().describe(\"UTC offset as string (e.g., '+0100').\"),\n}).describe(\"Timezone information.\");\nconst OpencageGeocodeGeojson_AnnotationsSchema: z.ZodTypeAny = z.object({\n DMS: OpencageGeocodeGeojson_AnnotationDMSSchema.nullable().optional(),\n OSM: OpencageGeocodeGeojson_AnnotationOSMSchema.nullable().optional(),\n sun: OpencageGeocodeGeojson_AnnotationSunSchema.nullable().optional(),\n MGRS: z.string().describe(\"Military Grid Reference System coordinate.\").nullable().optional(),\n NUTS: z.record(z.string(), z.unknown()).describe(\"EU NUTS region codes.\").nullable().optional(),\n flag: z.string().describe(\"Country flag emoji.\").nullable().optional(),\n qibla: z.number().describe(\"Direction to Mecca in degrees.\").nullable().optional(),\n UN_M49: z.record(z.string(), z.unknown()).describe(\"UN M49 region codes.\").nullable().optional(),\n geohash: z.string().describe(\"Geohash of the location.\").nullable().optional(),\n Mercator: OpencageGeocodeGeojson_AnnotationMercatorSchema.nullable().optional(),\n currency: OpencageGeocodeGeojson_AnnotationCurrencySchema.nullable().optional(),\n roadinfo: OpencageGeocodeGeojson_AnnotationRoadInfoSchema.nullable().optional(),\n timezone: OpencageGeocodeGeojson_AnnotationTimezoneSchema.nullable().optional(),\n wikidata: z.string().describe(\"Wikidata identifier.\").nullable().optional(),\n Maidenhead: z.string().describe(\"Maidenhead (amateur radio) grid locator.\").nullable().optional(),\n what3words: z.object({}).describe(\"What3Words address.\").nullable().optional(),\n callingcode: z.number().int().describe(\"International calling code.\").nullable().optional(),\n}).describe(\"Additional geographic annotations for a result. All fields are optional as they depend on API parameters.\");\nconst OpencageGeocodeGeojson_FeaturePropertiesSchema: z.ZodTypeAny = z.object({\n bounds: OpencageGeocodeGeojson_BoundsSchema.nullable().optional(),\n formatted: z.string().describe(\"Fully formatted address string.\"),\n components: z.record(z.string(), z.unknown()).describe(\"Structured address components (country, city, street, etc.).\"),\n confidence: z.number().int().describe(\"Confidence score (1-10) for this result.\"),\n annotations: OpencageGeocodeGeojson_AnnotationsSchema.nullable().optional(),\n}).describe(\"Properties of a GeoJSON feature from geocoding.\");\nconst OpencageGeocodeGeojson_FeatureSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"GeoJSON type, always 'Feature'.\"),\n geometry: OpencageGeocodeGeojson_GeometrySchema.nullable(),\n properties: OpencageGeocodeGeojson_FeaturePropertiesSchema.nullable(),\n}).describe(\"GeoJSON Feature representing a geocoding result.\");\nconst OpencageGeocodeGeojson_LicenseSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to license details.\"),\n name: z.string().describe(\"License name.\"),\n}).describe(\"Data license information.\");\nconst OpencageGeocodeGeojson_TimestampSchema: z.ZodTypeAny = z.object({\n created_http: z.string().describe(\"Timestamp in HTTP date format.\"),\n created_unix: z.number().int().describe(\"Timestamp as UNIX epoch seconds.\"),\n}).describe(\"Response timestamp.\");\nconst OpencageGeocodeGeojson_StayInformedSchema: z.ZodTypeAny = z.object({\n blog: z.string().describe(\"Blog URL.\").nullable().optional(),\n mastodon: z.string().describe(\"Mastodon profile URL.\").nullable().optional(),\n}).describe(\"Links to stay informed about the API.\");\nexport const OpencageGeocodeGeojsonOutput: z.ZodTypeAny = z.object({\n rate: OpencageGeocodeGeojson_RateSchema.nullable().optional(),\n type: z.string().describe(\"GeoJSON type, always 'FeatureCollection'.\"),\n status: OpencageGeocodeGeojson_StatusSchema.nullable().optional(),\n thanks: z.string().describe(\"Thank you message from API.\").nullable().optional(),\n features: z.array(OpencageGeocodeGeojson_FeatureSchema).describe(\"List of geocoding results as GeoJSON features.\"),\n licenses: z.array(OpencageGeocodeGeojson_LicenseSchema).describe(\"Data license information.\"),\n timestamp: OpencageGeocodeGeojson_TimestampSchema.nullable().optional(),\n documentation: z.string().describe(\"Link to API documentation.\").nullable().optional(),\n stay_informed: OpencageGeocodeGeojson_StayInformedSchema.nullable().optional(),\n total_results: z.number().int().describe(\"Total number of results returned.\").nullable().optional(),\n}).describe(\"GeoJSON FeatureCollection response from OpenCage geocoding API.\\nContains geocoding results as GeoJSON features with rich metadata.\");\n\nexport const opencageGeocodeGeojson = action(\"OPENCAGE_GEOCODE_GEOJSON\", {\n slug: \"opencage-geocode-geojson\",\n name: \"Geocode to GeoJSON\",\n description: \"Geocode addresses or coordinates and return results in GeoJSON FeatureCollection format. Use this tool when you need: - Geographic data in standard GeoJSON format for mapping applications - Forward geocoding: convert addresses to coordinates - Reverse geocoding: convert coordinates to addresses The response includes coordinates, formatted addresses, and optional annotations like timezone, currency, and sun times for each location.\",\n input: OpencageGeocodeGeojsonInput,\n output: OpencageGeocodeGeojsonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH;CACzI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC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SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,qIAAqI;AAEjJ,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,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/geocode-geojson.d.ts
4
+ declare const OpencageGeocodeGeojsonInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeGeojsonOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeGeojson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeGeojson };
9
+ //# sourceMappingURL=geocode-geojson.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-geojson.d.cts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAcgI;AAAA,cA+G/J,4BAAA,EAA8B,CAAA,CAAE,UAWqG;AAAA,cAErI,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/geocode-geojson.d.ts
4
+ declare const OpencageGeocodeGeojsonInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeGeojsonOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeGeojson: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeGeojson };
9
+ //# sourceMappingURL=geocode-geojson.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-geojson.d.mts","names":[],"sources":["../../src/actions/geocode-geojson.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAcgI;AAAA,cA+G/J,4BAAA,EAA8B,CAAA,CAAE,UAWqG;AAAA,cAErI,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}