@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-reverse.cjs","names":["z","action"],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeReverseInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Latitude and longitude as a comma-separated string, e.g., '51.952659,7.632473'\"),\n abbrv: z.number().int().default(0).describe(\"1 to abbreviate road and route types\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-10)\").optional(),\n pretty: z.number().int().default(0).describe(\"1 for pretty-printed JSON, 0 (default) for compact output\").optional(),\n language: z.string().describe(\"Preferred response language as ISO 639-1 code, e.g., 'en'\").optional(),\n roadinfo: z.number().int().default(0).describe(\"1 to include road information in the response\").optional(),\n add_request: z.number().int().default(0).describe(\"1 to include request parameters in the response\").optional(),\n countrycode: z.string().describe(\"Restrict results to one or more ISO 3166-1 alpha-2 country codes separated by commas\").optional(),\n normalizecity: z.number().int().default(0).describe(\"1 to normalize city names\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level (0-10) to filter results\").optional(),\n no_annotations: z.number().int().default(0).describe(\"1 to exclude annotations in the response\").optional(),\n});\nconst OpencageGeocodeReverse_RateSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Rate limit\"),\n reset: z.number().int().describe(\"Seconds until rate limit resets\"),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\"),\n});\nconst OpencageGeocodeReverse_StatusSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\"),\n message: z.string().describe(\"Status message of the request\"),\n});\nconst OpencageGeocodeReverse_GeometrySchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the result\"),\n lng: z.number().describe(\"Longitude of the result\"),\n});\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema: z.ZodTypeAny = z.object({\n bounds: z.record(z.string(), z.unknown()).describe(\"Bounding box of the result (northeast and southwest corners)\").nullable().optional(),\n geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Human-readable formatted address\"),\n components: z.record(z.string(), z.unknown()).describe(\"Address components breakdown (e.g., country, city, road, postcode)\"),\n confidence: z.number().int().describe(\"Confidence score (0-10)\"),\n annotations: z.record(z.string(), z.unknown()).describe(\"Additional annotation metadata (timezone, currency, DMS coordinates, etc.)\").nullable().optional(),\n distance_from_q: z.record(z.string(), z.unknown()).describe(\"Distance from the queried coordinates in meters\").nullable().optional(),\n});\nconst OpencageGeocodeReverse_TimestampSchema: z.ZodTypeAny = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\"),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\"),\n});\nconst OpencageGeocodeReverse_StayInformedSchema: z.ZodTypeAny = z.object({\n blog: z.string().describe(\"URL to the OpenCage blog\").nullable().optional(),\n twitter: z.string().describe(\"OpenCage Twitter/X handle\").nullable().optional(),\n facebook: z.string().describe(\"OpenCage Facebook page URL\").nullable().optional(),\n mastodon: z.string().describe(\"OpenCage Mastodon profile URL\").nullable().optional(),\n});\nexport const OpencageGeocodeReverseOutput: z.ZodTypeAny = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\"),\n results: z.array(OpencageGeocodeReverse_GeocodeReverseResultSchema).describe(\"List of reverse geocoded results\"),\n timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),\n stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results\"),\n});\n\nexport const opencageGeocodeReverse = action(\"OPENCAGE_GEOCODE_REVERSE\", {\n slug: \"opencage-geocode-reverse\",\n name: \"Reverse Geocode Coordinates\",\n description: \"Tool to convert coordinates to a human-readable address. Use when you have latitude and longitude and need a readable location.\",\n input: OpencageGeocodeReverseInput,\n output: OpencageGeocodeReverseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,C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,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAM,kCAAkC,SAAS;CACjD,QAAQ,oCAAoC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC9C,SAASA,IAAAA,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,kCAAkC;CAC/G,WAAW,uCAAuC,SAAS;CAC3D,eAAe,0CAA0C,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;AACpE,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-reverse.d.ts
4
+ declare const OpencageGeocodeReverseInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeReverseOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeReverse };
9
+ //# sourceMappingURL=geocode-reverse.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-reverse.d.cts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAY1C;AAAA,cAiCW,4BAAA,EAA8B,CAAA,CAAE,UAQ3C;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-reverse.d.ts
4
+ declare const OpencageGeocodeReverseInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeReverseOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeReverse };
9
+ //# sourceMappingURL=geocode-reverse.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-reverse.d.mts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAY1C;AAAA,cAiCW,4BAAA,EAA8B,CAAA,CAAE,UAQ3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,67 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/geocode-reverse.ts
4
+ const OpencageGeocodeReverseInput = z.object({
5
+ q: z.string().describe("Latitude and longitude as a comma-separated string, e.g., '51.952659,7.632473'"),
6
+ abbrv: z.number().int().default(0).describe("1 to abbreviate road and route types").optional(),
7
+ limit: z.number().int().default(10).describe("Maximum number of results to return (1-10)").optional(),
8
+ pretty: z.number().int().default(0).describe("1 for pretty-printed JSON, 0 (default) for compact output").optional(),
9
+ language: z.string().describe("Preferred response language as ISO 639-1 code, e.g., 'en'").optional(),
10
+ roadinfo: z.number().int().default(0).describe("1 to include road information in the response").optional(),
11
+ add_request: z.number().int().default(0).describe("1 to include request parameters in the response").optional(),
12
+ countrycode: z.string().describe("Restrict results to one or more ISO 3166-1 alpha-2 country codes separated by commas").optional(),
13
+ normalizecity: z.number().int().default(0).describe("1 to normalize city names").optional(),
14
+ min_confidence: z.number().int().describe("Minimum confidence level (0-10) to filter results").optional(),
15
+ no_annotations: z.number().int().default(0).describe("1 to exclude annotations in the response").optional()
16
+ });
17
+ const OpencageGeocodeReverse_RateSchema = z.object({
18
+ limit: z.number().int().describe("Rate limit"),
19
+ reset: z.number().int().describe("Seconds until rate limit resets"),
20
+ remaining: z.number().int().describe("Remaining requests in current rate window")
21
+ });
22
+ const OpencageGeocodeReverse_StatusSchema = z.object({
23
+ code: z.number().int().describe("Status code of the request, 200 indicates success"),
24
+ message: z.string().describe("Status message of the request")
25
+ });
26
+ const OpencageGeocodeReverse_GeometrySchema = z.object({
27
+ lat: z.number().describe("Latitude of the result"),
28
+ lng: z.number().describe("Longitude of the result")
29
+ });
30
+ const OpencageGeocodeReverse_GeocodeReverseResultSchema = z.object({
31
+ bounds: z.record(z.string(), z.unknown()).describe("Bounding box of the result (northeast and southwest corners)").nullable().optional(),
32
+ geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),
33
+ formatted: z.string().describe("Human-readable formatted address"),
34
+ components: z.record(z.string(), z.unknown()).describe("Address components breakdown (e.g., country, city, road, postcode)"),
35
+ confidence: z.number().int().describe("Confidence score (0-10)"),
36
+ annotations: z.record(z.string(), z.unknown()).describe("Additional annotation metadata (timezone, currency, DMS coordinates, etc.)").nullable().optional(),
37
+ distance_from_q: z.record(z.string(), z.unknown()).describe("Distance from the queried coordinates in meters").nullable().optional()
38
+ });
39
+ const OpencageGeocodeReverse_TimestampSchema = z.object({
40
+ created_http: z.string().describe("Timestamp when the response was created (HTTP-format)"),
41
+ created_unix: z.number().int().describe("Timestamp when the response was created (Unix time)")
42
+ });
43
+ const OpencageGeocodeReverse_StayInformedSchema = z.object({
44
+ blog: z.string().describe("URL to the OpenCage blog").nullable().optional(),
45
+ twitter: z.string().describe("OpenCage Twitter/X handle").nullable().optional(),
46
+ facebook: z.string().describe("OpenCage Facebook page URL").nullable().optional(),
47
+ mastodon: z.string().describe("OpenCage Mastodon profile URL").nullable().optional()
48
+ });
49
+ const opencageGeocodeReverse = action("OPENCAGE_GEOCODE_REVERSE", {
50
+ slug: "opencage-geocode-reverse",
51
+ name: "Reverse Geocode Coordinates",
52
+ description: "Tool to convert coordinates to a human-readable address. Use when you have latitude and longitude and need a readable location.",
53
+ input: OpencageGeocodeReverseInput,
54
+ output: z.object({
55
+ rate: OpencageGeocodeReverse_RateSchema.nullable(),
56
+ status: OpencageGeocodeReverse_StatusSchema.nullable(),
57
+ thanks: z.string().describe("Attribution text"),
58
+ results: z.array(OpencageGeocodeReverse_GeocodeReverseResultSchema).describe("List of reverse geocoded results"),
59
+ timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),
60
+ stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),
61
+ total_results: z.number().int().describe("Total number of results")
62
+ })
63
+ });
64
+ //#endregion
65
+ export { opencageGeocodeReverse };
66
+
67
+ //# sourceMappingURL=geocode-reverse.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-reverse.mjs","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeReverseInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Latitude and longitude as a comma-separated string, e.g., '51.952659,7.632473'\"),\n abbrv: z.number().int().default(0).describe(\"1 to abbreviate road and route types\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of results to return (1-10)\").optional(),\n pretty: z.number().int().default(0).describe(\"1 for pretty-printed JSON, 0 (default) for compact output\").optional(),\n language: z.string().describe(\"Preferred response language as ISO 639-1 code, e.g., 'en'\").optional(),\n roadinfo: z.number().int().default(0).describe(\"1 to include road information in the response\").optional(),\n add_request: z.number().int().default(0).describe(\"1 to include request parameters in the response\").optional(),\n countrycode: z.string().describe(\"Restrict results to one or more ISO 3166-1 alpha-2 country codes separated by commas\").optional(),\n normalizecity: z.number().int().default(0).describe(\"1 to normalize city names\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence level (0-10) to filter results\").optional(),\n no_annotations: z.number().int().default(0).describe(\"1 to exclude annotations in the response\").optional(),\n});\nconst OpencageGeocodeReverse_RateSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Rate limit\"),\n reset: z.number().int().describe(\"Seconds until rate limit resets\"),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\"),\n});\nconst OpencageGeocodeReverse_StatusSchema: z.ZodTypeAny = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\"),\n message: z.string().describe(\"Status message of the request\"),\n});\nconst OpencageGeocodeReverse_GeometrySchema: z.ZodTypeAny = z.object({\n lat: z.number().describe(\"Latitude of the result\"),\n lng: z.number().describe(\"Longitude of the result\"),\n});\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema: z.ZodTypeAny = z.object({\n bounds: z.record(z.string(), z.unknown()).describe(\"Bounding box of the result (northeast and southwest corners)\").nullable().optional(),\n geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),\n formatted: z.string().describe(\"Human-readable formatted address\"),\n components: z.record(z.string(), z.unknown()).describe(\"Address components breakdown (e.g., country, city, road, postcode)\"),\n confidence: z.number().int().describe(\"Confidence score (0-10)\"),\n annotations: z.record(z.string(), z.unknown()).describe(\"Additional annotation metadata (timezone, currency, DMS coordinates, etc.)\").nullable().optional(),\n distance_from_q: z.record(z.string(), z.unknown()).describe(\"Distance from the queried coordinates in meters\").nullable().optional(),\n});\nconst OpencageGeocodeReverse_TimestampSchema: z.ZodTypeAny = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\"),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\"),\n});\nconst OpencageGeocodeReverse_StayInformedSchema: z.ZodTypeAny = z.object({\n blog: z.string().describe(\"URL to the OpenCage blog\").nullable().optional(),\n twitter: z.string().describe(\"OpenCage Twitter/X handle\").nullable().optional(),\n facebook: z.string().describe(\"OpenCage Facebook page URL\").nullable().optional(),\n mastodon: z.string().describe(\"OpenCage Mastodon profile URL\").nullable().optional(),\n});\nexport const OpencageGeocodeReverseOutput: z.ZodTypeAny = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\"),\n results: z.array(OpencageGeocodeReverse_GeocodeReverseResultSchema).describe(\"List of reverse geocoded results\"),\n timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),\n stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),\n total_results: z.number().int().describe(\"Total number of results\"),\n});\n\nexport const opencageGeocodeReverse = action(\"OPENCAGE_GEOCODE_REVERSE\", {\n slug: \"opencage-geocode-reverse\",\n name: \"Reverse Geocode Coordinates\",\n description: \"Tool to convert coordinates to a human-readable address. Use when you have latitude and longitude and need a readable location.\",\n input: OpencageGeocodeReverseInput,\n output: OpencageGeocodeReverseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO;CAChE,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC7F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC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,uCAAuC,SAAS;EAC3D,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CACpE,CAOU;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/geocode-xml.ts
4
+ const OpencageGeocodeXmlInput = zod.z.object({
5
+ q: zod.z.string().describe("Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding"),
6
+ abbrv: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')").optional(),
7
+ limit: zod.z.number().int().describe("Maximum number of results to return (1-100). Default is 10 if not specified").optional(),
8
+ pretty: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 for human-readable formatted XML output, 0 or omit for compact output").optional(),
9
+ language: zod.z.string().describe("IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)").optional(),
10
+ roadinfo: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to include detailed road and driving information for the location").optional(),
11
+ no_dedupe: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to return all results including duplicates, 0 or omit to deduplicate").optional(),
12
+ add_request: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to include original request parameters in the response for debugging").optional(),
13
+ countrycode: zod.z.string().describe("Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)").optional(),
14
+ min_confidence: zod.z.number().int().describe("Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)").optional(),
15
+ no_annotations: zod.z.union([zod.z.literal(0), zod.z.literal(1)]).describe("Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include").optional()
16
+ }).describe("Request parameters for OpenCage GEOCODE_XML action.\nPerforms geocoding and returns results in XML format.");
17
+ const OpencageGeocodeXmlOutput = zod.z.object({
18
+ xml: zod.z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata"),
19
+ status_code: zod.z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
20
+ total_results: zod.z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
21
+ }).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.");
22
+ const opencageGeocodeXml = require_action.action("OPENCAGE_GEOCODE_XML", {
23
+ slug: "opencage-geocode-xml",
24
+ name: "Geocode XML",
25
+ description: "Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.",
26
+ input: OpencageGeocodeXmlInput,
27
+ output: OpencageGeocodeXmlOutput
28
+ });
29
+ //#endregion
30
+ exports.opencageGeocodeXml = opencageGeocodeXml;
31
+
32
+ //# sourceMappingURL=geocode-xml.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-xml.cjs","names":["z","action"],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10 if not specified\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 for human-readable formatted XML output, 0 or omit for compact output\").optional(),\n language: z.string().describe(\"IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include detailed road and driving information for the location\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return all results including duplicates, 0 or omit to deduplicate\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include original request parameters in the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)\").optional(),\n min_confidence: z.number().int().describe(\"Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include\").optional(),\n}).describe(\"Request parameters for OpenCage GEOCODE_XML action.\\nPerforms geocoding and returns results in XML format.\");\nexport const OpencageGeocodeXmlOutput: z.ZodTypeAny = z.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\"),\n status_code: z.number().int().describe(\"API status code (200 for success, extracted from XML for convenience)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of geocoding results found (extracted from XML for convenience)\").nullable().optional(),\n}).describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml = action(\"OPENCAGE_GEOCODE_XML\", {\n slug: \"opencage-geocode-xml\",\n name: \"Geocode XML\",\n description: \"Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC3I,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,OAAOA,IAAAA,EAAE,OAAO,CA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6G;CACtI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,2FAA2F;AAEvG,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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-xml.d.ts
4
+ declare const OpencageGeocodeXmlInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeXmlOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeXml };
9
+ //# sourceMappingURL=geocode-xml.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-xml.d.cts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAYiF;AAAA,cAC5G,wBAAA,EAA0B,CAAA,CAAE,UAI+D;AAAA,cAE3F,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/geocode-xml.d.ts
4
+ declare const OpencageGeocodeXmlInput: z.ZodTypeAny;
5
+ declare const OpencageGeocodeXmlOutput: z.ZodTypeAny;
6
+ declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencageGeocodeXml };
9
+ //# sourceMappingURL=geocode-xml.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAYiF;AAAA,cAC5G,wBAAA,EAA0B,CAAA,CAAE,UAI+D;AAAA,cAE3F,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,29 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const opencageGeocodeXml = action("OPENCAGE_GEOCODE_XML", {
4
+ slug: "opencage-geocode-xml",
5
+ name: "Geocode XML",
6
+ description: "Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.",
7
+ input: z.object({
8
+ q: z.string().describe("Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding"),
9
+ abbrv: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')").optional(),
10
+ limit: z.number().int().describe("Maximum number of results to return (1-100). Default is 10 if not specified").optional(),
11
+ pretty: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 for human-readable formatted XML output, 0 or omit for compact output").optional(),
12
+ language: z.string().describe("IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)").optional(),
13
+ roadinfo: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to include detailed road and driving information for the location").optional(),
14
+ no_dedupe: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to return all results including duplicates, 0 or omit to deduplicate").optional(),
15
+ add_request: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to include original request parameters in the response for debugging").optional(),
16
+ countrycode: z.string().describe("Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)").optional(),
17
+ min_confidence: z.number().int().describe("Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)").optional(),
18
+ no_annotations: z.union([z.literal(0), z.literal(1)]).describe("Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include").optional()
19
+ }).describe("Request parameters for OpenCage GEOCODE_XML action.\nPerforms geocoding and returns results in XML format."),
20
+ output: z.object({
21
+ xml: z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata"),
22
+ status_code: z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
23
+ total_results: z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
24
+ }).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.")
25
+ });
26
+ //#endregion
27
+ export { opencageGeocodeXml };
28
+
29
+ //# sourceMappingURL=geocode-xml.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geocode-xml.mjs","names":[],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeXmlInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Location query: use an address or place name for forward geocoding, or 'lat,lng' coordinates for reverse geocoding\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return abbreviated address components (e.g., 'CA' instead of 'California')\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Default is 10 if not specified\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 for human-readable formatted XML output, 0 or omit for compact output\").optional(),\n language: z.string().describe(\"IETF language tag for results (e.g., 'en' for English, 'de' for German, 'fr' for French)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include detailed road and driving information for the location\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to return all results including duplicates, 0 or omit to deduplicate\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to include original request parameters in the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict results to specific countries using comma-separated ISO 3166-1 alpha-2 codes (e.g., 'us,ca' for USA and Canada)\").optional(),\n min_confidence: z.number().int().describe(\"Filter results to only include those with confidence score at or above this value (1-10, where 10 is highest)\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"Set to 1 to exclude supplementary annotations (timezone, currency, etc.), 0 or omit to include\").optional(),\n}).describe(\"Request parameters for OpenCage GEOCODE_XML action.\\nPerforms geocoding and returns results in XML format.\");\nexport const OpencageGeocodeXmlOutput: z.ZodTypeAny = z.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\"),\n status_code: z.number().int().describe(\"API status code (200 for success, extracted from XML for convenience)\").nullable().optional(),\n total_results: z.number().int().describe(\"Number of geocoding results found (extracted from XML for convenience)\").nullable().optional(),\n}).describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml = action(\"OPENCAGE_GEOCODE_XML\", {\n slug: \"opencage-geocode-xml\",\n name: \"Geocode XML\",\n description: \"Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;AAuBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBmD,EAAE,OAAO;EAC5D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;EAC3I,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SA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AAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,SAAS,2FAOF;AACV,CAAC"}
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_geocode_forward = require("./geocode-forward.cjs");
3
+ const require_geocode_geojson = require("./geocode-geojson.cjs");
4
+ const require_geocode_geojsonp = require("./geocode-geojsonp.cjs");
5
+ const require_geocode_google_v3_json = require("./geocode-google-v3-json.cjs");
6
+ const require_geocode_reverse = require("./geocode-reverse.cjs");
7
+ const require_geocode_xml = require("./geocode-xml.cjs");
8
+ const require_ping_opencage = require("./ping-opencage.cjs");
9
+ exports.opencageGeocodeForward = require_geocode_forward.opencageGeocodeForward;
10
+ exports.opencageGeocodeGeojson = require_geocode_geojson.opencageGeocodeGeojson;
11
+ exports.opencageGeocodeGeojsonp = require_geocode_geojsonp.opencageGeocodeGeojsonp;
12
+ exports.opencageGeocodeGoogleV3Json = require_geocode_google_v3_json.opencageGeocodeGoogleV3Json;
13
+ exports.opencageGeocodeReverse = require_geocode_reverse.opencageGeocodeReverse;
14
+ exports.opencageGeocodeXml = require_geocode_xml.opencageGeocodeXml;
15
+ exports.opencagePingOpencage = require_ping_opencage.opencagePingOpencage;
@@ -0,0 +1,8 @@
1
+ import { opencageGeocodeForward } from "./geocode-forward.cjs";
2
+ import { opencageGeocodeGeojson } from "./geocode-geojson.cjs";
3
+ import { opencageGeocodeGeojsonp } from "./geocode-geojsonp.cjs";
4
+ import { opencageGeocodeGoogleV3Json } from "./geocode-google-v3-json.cjs";
5
+ import { opencageGeocodeReverse } from "./geocode-reverse.cjs";
6
+ import { opencageGeocodeXml } from "./geocode-xml.cjs";
7
+ import { opencagePingOpencage } from "./ping-opencage.cjs";
8
+ export { opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };
@@ -0,0 +1,8 @@
1
+ import { opencageGeocodeForward } from "./geocode-forward.mjs";
2
+ import { opencageGeocodeGeojson } from "./geocode-geojson.mjs";
3
+ import { opencageGeocodeGeojsonp } from "./geocode-geojsonp.mjs";
4
+ import { opencageGeocodeGoogleV3Json } from "./geocode-google-v3-json.mjs";
5
+ import { opencageGeocodeReverse } from "./geocode-reverse.mjs";
6
+ import { opencageGeocodeXml } from "./geocode-xml.mjs";
7
+ import { opencagePingOpencage } from "./ping-opencage.mjs";
8
+ export { opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };
@@ -0,0 +1,8 @@
1
+ import { opencageGeocodeForward } from "./geocode-forward.mjs";
2
+ import { opencageGeocodeGeojson } from "./geocode-geojson.mjs";
3
+ import { opencageGeocodeGeojsonp } from "./geocode-geojsonp.mjs";
4
+ import { opencageGeocodeGoogleV3Json } from "./geocode-google-v3-json.mjs";
5
+ import { opencageGeocodeReverse } from "./geocode-reverse.mjs";
6
+ import { opencageGeocodeXml } from "./geocode-xml.mjs";
7
+ import { opencagePingOpencage } from "./ping-opencage.mjs";
8
+ export { opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/ping-opencage.ts
4
+ const OpencagePingOpencageInput = zod.z.object({}).describe("Request parameters for OpenCage API ping health check.");
5
+ const OpencagePingOpencageOutput = zod.z.object({ message: zod.z.string().describe("Response message from ping endpoint, typically 'pong'") }).describe("Response from OpenCage API ping endpoint.");
6
+ const opencagePingOpencage = require_action.action("OPENCAGE_PING_OPENCAGE", {
7
+ slug: "opencage-ping-opencage",
8
+ name: "Check API Health",
9
+ description: "Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.",
10
+ input: OpencagePingOpencageInput,
11
+ output: OpencagePingOpencageOutput
12
+ });
13
+ //#endregion
14
+ exports.opencagePingOpencage = opencagePingOpencage;
15
+
16
+ //# sourceMappingURL=ping-opencage.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-opencage.cjs","names":["z","action"],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\"),\n}).describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage = action(\"OPENCAGE_PING_OPENCAGE\", {\n slug: \"opencage-ping-opencage\",\n name: \"Check API Health\",\n description: \"Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.\",\n input: OpencagePingOpencageInput,\n output: OpencagePingOpencageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACrI,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACtF,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/ping-opencage.d.ts
4
+ declare const OpencagePingOpencageInput: z.ZodTypeAny;
5
+ declare const OpencagePingOpencageOutput: z.ZodTypeAny;
6
+ declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencagePingOpencage };
9
+ //# sourceMappingURL=ping-opencage.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA4F;AAAA,cACzH,0BAAA,EAA4B,CAAA,CAAE,UAEa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/ping-opencage.d.ts
4
+ declare const OpencagePingOpencageInput: z.ZodTypeAny;
5
+ declare const OpencagePingOpencageOutput: z.ZodTypeAny;
6
+ declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { opencagePingOpencage };
9
+ //# sourceMappingURL=ping-opencage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA4F;AAAA,cACzH,0BAAA,EAA4B,CAAA,CAAE,UAEa;AAAA,cAE3C,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const opencagePingOpencage = action("OPENCAGE_PING_OPENCAGE", {
4
+ slug: "opencage-ping-opencage",
5
+ name: "Check API Health",
6
+ description: "Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.",
7
+ input: z.object({}).describe("Request parameters for OpenCage API ping health check."),
8
+ output: z.object({ message: z.string().describe("Response message from ping endpoint, typically 'pong'") }).describe("Response from OpenCage API ping endpoint.")
9
+ });
10
+ //#endregion
11
+ export { opencagePingOpencage };
12
+
13
+ //# sourceMappingURL=ping-opencage.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ping-opencage.mjs","names":[],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencagePingOpencageInput: z.ZodTypeAny = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\"),\n}).describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage = action(\"OPENCAGE_PING_OPENCAGE\", {\n slug: \"opencage-ping-opencage\",\n name: \"Check API Health\",\n description: \"Tool to check API health and connectivity. Returns 'pong' if the API is reachable. Use when you need to verify that the OpenCage API is accessible and operational.\",\n input: OpencagePingOpencageInput,\n output: OpencagePingOpencageOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDASpE;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACtF,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const opencage = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "opencage",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.opencage = opencage;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const opencage = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,YAAA,uCAAA,CAAA,CAAA,UAAA,CAAqB;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const opencage: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { opencage };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const opencage: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { opencage };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,QAAA,6BAAQ,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const opencage = defineApp({
4
+ slug: "opencage",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { opencage };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const opencage = defineApp({\n slug: \"opencage\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,WAAW,UAAU;CAChC,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const opencageCatalog = {
4
+ "slug": "opencage",
5
+ "name": "Opencage",
6
+ "description": "OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/opencage",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.opencageCatalog = opencageCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const opencageCatalog: {
4
+ readonly slug: "opencage";
5
+ readonly name: "Opencage";
6
+ readonly description: "OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/opencage";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { opencageCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const opencageCatalog: {
4
+ readonly slug: "opencage";
5
+ readonly name: "Opencage";
6
+ readonly description: "OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.";
7
+ readonly category: "Developer Tools";
8
+ readonly logo: "https://logos.composio.dev/api/opencage";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { opencageCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,eAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const opencageCatalog = {
4
+ "slug": "opencage",
5
+ "name": "Opencage",
6
+ "description": "OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.",
7
+ "category": "Developer Tools",
8
+ "logo": "https://logos.composio.dev/api/opencage",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { opencageCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const opencageCatalog = {\n \"slug\": \"opencage\",\n \"name\": \"Opencage\",\n \"description\": \"OpenCage Geocoder provides a simple API for forward and reverse geocoding using open data sources.\",\n \"category\": \"Developer Tools\",\n \"logo\": \"https://logos.composio.dev/api/opencage\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "opencage";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeOpencageTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executeOpencageTool = executeOpencageTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"opencage\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeOpencageTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "opencage";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executeOpencageTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executeOpencageTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"opencage\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executeOpencageTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,oBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,20 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_geocode_forward = require("./actions/geocode-forward.cjs");
5
+ const require_geocode_geojson = require("./actions/geocode-geojson.cjs");
6
+ const require_geocode_geojsonp = require("./actions/geocode-geojsonp.cjs");
7
+ const require_geocode_google_v3_json = require("./actions/geocode-google-v3-json.cjs");
8
+ const require_geocode_reverse = require("./actions/geocode-reverse.cjs");
9
+ const require_geocode_xml = require("./actions/geocode-xml.cjs");
10
+ const require_ping_opencage = require("./actions/ping-opencage.cjs");
11
+ require("./actions/index.cjs");
12
+ exports.opencage = require_app.opencage;
13
+ exports.opencageCatalog = require_catalog.opencageCatalog;
14
+ exports.opencageGeocodeForward = require_geocode_forward.opencageGeocodeForward;
15
+ exports.opencageGeocodeGeojson = require_geocode_geojson.opencageGeocodeGeojson;
16
+ exports.opencageGeocodeGeojsonp = require_geocode_geojsonp.opencageGeocodeGeojsonp;
17
+ exports.opencageGeocodeGoogleV3Json = require_geocode_google_v3_json.opencageGeocodeGoogleV3Json;
18
+ exports.opencageGeocodeReverse = require_geocode_reverse.opencageGeocodeReverse;
19
+ exports.opencageGeocodeXml = require_geocode_xml.opencageGeocodeXml;
20
+ exports.opencagePingOpencage = require_ping_opencage.opencagePingOpencage;
@@ -0,0 +1,10 @@
1
+ import { opencageGeocodeForward } from "./actions/geocode-forward.cjs";
2
+ import { opencageGeocodeGeojson } from "./actions/geocode-geojson.cjs";
3
+ import { opencageGeocodeGeojsonp } from "./actions/geocode-geojsonp.cjs";
4
+ import { opencageGeocodeGoogleV3Json } from "./actions/geocode-google-v3-json.cjs";
5
+ import { opencageGeocodeReverse } from "./actions/geocode-reverse.cjs";
6
+ import { opencageGeocodeXml } from "./actions/geocode-xml.cjs";
7
+ import { opencagePingOpencage } from "./actions/ping-opencage.cjs";
8
+ import { opencage } from "./app.cjs";
9
+ import { opencageCatalog } from "./catalog.cjs";
10
+ export { opencage, opencageCatalog, opencageGeocodeForward, opencageGeocodeGeojson, opencageGeocodeGeojsonp, opencageGeocodeGoogleV3Json, opencageGeocodeReverse, opencageGeocodeXml, opencagePingOpencage };