@keystrokehq/opencage 0.1.3 → 0.1.5

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 (69) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/geocode-forward.cjs +1 -0
  4. package/dist/actions/geocode-forward.cjs.map +1 -1
  5. package/dist/actions/geocode-forward.d.cts +3 -13
  6. package/dist/actions/geocode-forward.d.cts.map +1 -1
  7. package/dist/actions/geocode-forward.d.mts +3 -13
  8. package/dist/actions/geocode-forward.d.mts.map +1 -1
  9. package/dist/actions/geocode-forward.mjs +1 -0
  10. package/dist/actions/geocode-forward.mjs.map +1 -1
  11. package/dist/actions/geocode-geojson.cjs +1 -0
  12. package/dist/actions/geocode-geojson.cjs.map +1 -1
  13. package/dist/actions/geocode-geojson.d.cts +3 -15
  14. package/dist/actions/geocode-geojson.d.cts.map +1 -1
  15. package/dist/actions/geocode-geojson.d.mts +3 -15
  16. package/dist/actions/geocode-geojson.d.mts.map +1 -1
  17. package/dist/actions/geocode-geojson.mjs +1 -0
  18. package/dist/actions/geocode-geojson.mjs.map +1 -1
  19. package/dist/actions/geocode-geojsonp.cjs +1 -0
  20. package/dist/actions/geocode-geojsonp.cjs.map +1 -1
  21. package/dist/actions/geocode-geojsonp.d.cts +3 -16
  22. package/dist/actions/geocode-geojsonp.d.cts.map +1 -1
  23. package/dist/actions/geocode-geojsonp.d.mts +3 -16
  24. package/dist/actions/geocode-geojsonp.d.mts.map +1 -1
  25. package/dist/actions/geocode-geojsonp.mjs +1 -0
  26. package/dist/actions/geocode-geojsonp.mjs.map +1 -1
  27. package/dist/actions/geocode-google-v3-json.cjs +1 -0
  28. package/dist/actions/geocode-google-v3-json.cjs.map +1 -1
  29. package/dist/actions/geocode-google-v3-json.d.cts +3 -16
  30. package/dist/actions/geocode-google-v3-json.d.cts.map +1 -1
  31. package/dist/actions/geocode-google-v3-json.d.mts +3 -16
  32. package/dist/actions/geocode-google-v3-json.d.mts.map +1 -1
  33. package/dist/actions/geocode-google-v3-json.mjs +1 -0
  34. package/dist/actions/geocode-google-v3-json.mjs.map +1 -1
  35. package/dist/actions/geocode-reverse.cjs +1 -0
  36. package/dist/actions/geocode-reverse.cjs.map +1 -1
  37. package/dist/actions/geocode-reverse.d.cts +3 -13
  38. package/dist/actions/geocode-reverse.d.cts.map +1 -1
  39. package/dist/actions/geocode-reverse.d.mts +3 -13
  40. package/dist/actions/geocode-reverse.d.mts.map +1 -1
  41. package/dist/actions/geocode-reverse.mjs +1 -0
  42. package/dist/actions/geocode-reverse.mjs.map +1 -1
  43. package/dist/actions/geocode-xml.cjs +1 -0
  44. package/dist/actions/geocode-xml.cjs.map +1 -1
  45. package/dist/actions/geocode-xml.d.cts +3 -13
  46. package/dist/actions/geocode-xml.d.cts.map +1 -1
  47. package/dist/actions/geocode-xml.d.mts +3 -13
  48. package/dist/actions/geocode-xml.d.mts.map +1 -1
  49. package/dist/actions/geocode-xml.mjs +1 -0
  50. package/dist/actions/geocode-xml.mjs.map +1 -1
  51. package/dist/actions/ping-opencage.cjs +1 -0
  52. package/dist/actions/ping-opencage.cjs.map +1 -1
  53. package/dist/actions/ping-opencage.d.cts +3 -1
  54. package/dist/actions/ping-opencage.d.cts.map +1 -1
  55. package/dist/actions/ping-opencage.d.mts +3 -1
  56. package/dist/actions/ping-opencage.d.mts.map +1 -1
  57. package/dist/actions/ping-opencage.mjs +1 -0
  58. package/dist/actions/ping-opencage.mjs.map +1 -1
  59. package/dist/app.cjs +5 -2
  60. package/dist/app.cjs.map +1 -1
  61. package/dist/app.d.cts +7 -1
  62. package/dist/app.d.cts.map +1 -1
  63. package/dist/app.d.mts +7 -1
  64. package/dist/app.d.mts.map +1 -1
  65. package/dist/app.mjs +3 -2
  66. package/dist/app.mjs.map +1 -1
  67. package/dist/index.d.cts +1 -1
  68. package/dist/index.d.mts +1 -1
  69. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-geojsonp.mjs","names":[],"sources":["../../src/actions/geocode-geojsonp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGeojsonpInput = z.object({\n q: z.string().describe(\"The address or location query to geocode (e.g., 'Berlin, Germany' or '1600 Pennsylvania Ave, Washington DC')\"),\n abbrv: z.number().int().describe(\"Abbreviate place names in results. Set to 1 to abbreviate (e.g., 'NYC' instead of 'New York City'), 0 for full names.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Defaults to 10 if not specified.\").optional(),\n bounds: z.string().describe(\"Restrict results to a geographic bounding box, specified as 'minLng,minLat,maxLng,maxLat' (west,south,east,north). Example: '-0.563,51.280,0.278,51.686' for Greater London.\").optional(),\n pretty: z.number().int().describe(\"Format JSON output with indentation for readability. Set to 1 to enable. For debugging only.\").optional(),\n callback: z.string().describe(\"Name of the JavaScript callback function to wrap the response (e.g., 'handleGeocode')\"),\n language: z.string().describe(\"Preferred language for results using ISO 639-1 language code (e.g., 'en' for English, 'de' for German).\").optional(),\n no_dedupe: z.number().int().describe(\"Disable automatic deduplication of results. Set to 1 to include potential duplicates.\").optional(),\n no_record: z.number().int().describe(\"Do not log this request in your account history. Set to 1 to disable logging.\").optional(),\n proximity: z.string().describe(\"Bias results towards a specific location, specified as 'lat,lng'. Example: '51.952,-1.162' for near Oxford, UK.\").optional(),\n add_request: z.number().int().describe(\"Include the original request parameters in the response. Set to 1 to include.\").optional(),\n countrycode: z.string().describe(\"Limit results to a specific country using ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'GB').\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (0-10) for results. Higher values return more precise matches only.\").optional(),\n no_annotations: z.number().int().describe(\"Exclude supplementary annotations (timezone, currency, etc.) from results. Set to 1 to exclude.\").optional(),\n}).describe(\"Request parameters for geocoding with JSONP callback wrapper.\");\nexport const OpencageGeocodeGeojsonpOutput = z.object({\n jsonp: z.string().describe(\"JSONP-formatted response with the callback function wrapping the geocode results JSON. Example: 'myCallback({\\\"results\\\": [...], \\\"status\\\": {...}})'\").nullable(),\n}).passthrough().describe(\"Response containing geocoding results wrapped in a JSONP callback.\");\n\nexport const opencageGeocodeGeojsonp = action(\"OPENCAGE_GEOCODE_GEOJSONP\", {\n slug: \"opencage-geocode-geojsonp\",\n name: \"Geocode with JSONP\",\n description: \"Geocode an address and return results wrapped in a JavaScript callback function (JSONP format). Use this tool when you need geocoding results that can be directly consumed by JavaScript through a callback function, typically for cross-domain AJAX requests in browser environments. The response wraps standard geocoding JSON with your specified callback function name. Example response: myCallback({\\\"results\\\":[{\\\"geometry\\\":{\\\"lat\\\":52.5,\\\"lng\\\":13.4},\\\"formatted\\\":\\\"Berlin, Germany\\\",...}],...})\",\n input: OpencageGeocodeGeojsonpInput,\n output: OpencageGeocodeGeojsonpOutput,\n});\n"],"mappings":";;AAwBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB0C,EAAE,OAAO;EACnD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;EACrI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EACnK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EACrN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC3I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACrH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACvI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAC3J,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACjJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACnJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,+DASH;CACP,QAT2C,EAAE,OAAO,EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-geojsonp.mjs","names":[],"sources":["../../src/actions/geocode-geojsonp.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGeojsonpInput = z.object({\n q: z.string().describe(\"The address or location query to geocode (e.g., 'Berlin, Germany' or '1600 Pennsylvania Ave, Washington DC')\"),\n abbrv: z.number().int().describe(\"Abbreviate place names in results. Set to 1 to abbreviate (e.g., 'NYC' instead of 'New York City'), 0 for full names.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-100). Defaults to 10 if not specified.\").optional(),\n bounds: z.string().describe(\"Restrict results to a geographic bounding box, specified as 'minLng,minLat,maxLng,maxLat' (west,south,east,north). Example: '-0.563,51.280,0.278,51.686' for Greater London.\").optional(),\n pretty: z.number().int().describe(\"Format JSON output with indentation for readability. Set to 1 to enable. For debugging only.\").optional(),\n callback: z.string().describe(\"Name of the JavaScript callback function to wrap the response (e.g., 'handleGeocode')\"),\n language: z.string().describe(\"Preferred language for results using ISO 639-1 language code (e.g., 'en' for English, 'de' for German).\").optional(),\n no_dedupe: z.number().int().describe(\"Disable automatic deduplication of results. Set to 1 to include potential duplicates.\").optional(),\n no_record: z.number().int().describe(\"Do not log this request in your account history. Set to 1 to disable logging.\").optional(),\n proximity: z.string().describe(\"Bias results towards a specific location, specified as 'lat,lng'. Example: '51.952,-1.162' for near Oxford, UK.\").optional(),\n add_request: z.number().int().describe(\"Include the original request parameters in the response. Set to 1 to include.\").optional(),\n countrycode: z.string().describe(\"Limit results to a specific country using ISO 3166-1 alpha-2 country code (e.g., 'US', 'DE', 'GB').\").optional(),\n min_confidence: z.number().int().describe(\"Minimum confidence score (0-10) for results. Higher values return more precise matches only.\").optional(),\n no_annotations: z.number().int().describe(\"Exclude supplementary annotations (timezone, currency, etc.) from results. Set to 1 to exclude.\").optional(),\n}).describe(\"Request parameters for geocoding with JSONP callback wrapper.\");\nexport const OpencageGeocodeGeojsonpOutput = z.object({\n jsonp: z.string().describe(\"JSONP-formatted response with the callback function wrapping the geocode results JSON. Example: 'myCallback({\\\"results\\\": [...], \\\"status\\\": {...}})'\").nullable(),\n}).passthrough().describe(\"Response containing geocoding results wrapped in a JSONP callback.\");\n\nexport const opencageGeocodeGeojsonp: AppAction<\n typeof OpencageGeocodeGeojsonpInput,\n typeof OpencageGeocodeGeojsonpOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GEOJSONP\", {\n slug: \"opencage-geocode-geojsonp\",\n name: \"Geocode with JSONP\",\n description: \"Geocode an address and return results wrapped in a JavaScript callback function (JSONP format). Use this tool when you need geocoding results that can be directly consumed by JavaScript through a callback function, typically for cross-domain AJAX requests in browser environments. The response wraps standard geocoding JSON with your specified callback function name. Example response: myCallback({\\\"results\\\":[{\\\"geometry\\\":{\\\"lat\\\":52.5,\\\"lng\\\":13.4},\\\"formatted\\\":\\\"Berlin, Germany\\\",...}],...})\",\n input: OpencageGeocodeGeojsonpInput,\n output: OpencageGeocodeGeojsonpOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,0BAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5B0C,EAAE,OAAO;EACnD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G;EACrI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EACnK,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;EACrN,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC3I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;EACrH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACvI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;EAC3J,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACjJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACnJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,+DAaH;CACP,QAb2C,EAAE,OAAO,EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/geocode-google-v3-json.ts
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-google-v3-json.cjs","names":["z","action"],"sources":["../../src/actions/geocode-google-v3-json.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGoogleV3JsonInput = z.object({\n q: z.string().describe(\"The query string to be geocoded. Either latitude,longitude for reverse geocoding or a placename/address for forward geocoding. Must be URL encoded.\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to abbreviate and shorten the formatted string returned\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. Default is 10, max is 100. Only applies to forward geocoding.\").optional(),\n bounds: z.string().describe(\"Restrict forward geocoding results to a bounding box. Format: min_lng,min_lat,max_lng,max_lat\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results are pretty printed for easier reading\").optional(),\n language: z.string().describe(\"IETF format language code (e.g., es, pt-BR) or 'native' for local language(s)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to match the nearest road and fill additional roadinfo annotation\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not be deduplicated\").optional(),\n no_record: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the query contents are not logged for privacy\").optional(),\n proximity: z.string().describe(\"Bias forward geocoding results towards a location. Format: latitude,longitude\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the various request parameters are added to the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict forward geocoding results to specific countries. ISO 3166-1 Alpha 2 codes, comma-separated for multiple\").optional(),\n address_only: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, include only the address (excluding POI names) in the formatted string\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not contain annotations\").optional(),\n}).describe(\"Request parameters for Google v3 compatible geocoding.\");\nconst OpencageGeocodeGoogleV3Json_LocationSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough().describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).passthrough().describe(\"Viewport bounding box.\");\nconst OpencageGeocodeGoogleV3Json_GeometrySchema = z.object({\n bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location_type: z.string().describe(\"Type of location returned (e.g., ROOFTOP, APPROXIMATE)\").nullable().optional(),\n}).passthrough().describe(\"Geometry information for a geocoded result.\");\nconst OpencageGeocodeGoogleV3Json_AddressComponentSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of address component\"),\n long_name: z.union([z.string(), z.array(z.string())]),\n short_name: z.union([z.string(), z.array(z.string())]),\n}).passthrough().describe(\"Individual address component.\");\nconst OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of the returned result\").nullable().optional(),\n geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),\n place_id: z.string().describe(\"Unique place identifier\").nullable().optional(),\n formatted_address: z.string().describe(\"Human-readable address string\").nullable(),\n address_components: z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe(\"Array of address components\"),\n}).passthrough().describe(\"Individual geocoding result in Google v3 format.\");\nexport const OpencageGeocodeGoogleV3JsonOutput = z.object({\n status: z.string().describe(\"Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)\").nullable(),\n results: z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe(\"Array of geocoding results\"),\n}).passthrough().describe(\"Response model for Google v3 compatible geocoding.\");\n\nexport const opencageGeocodeGoogleV3Json = action(\"OPENCAGE_GEOCODE_GOOGLE_V3_JSON\", {\n slug: \"opencage-geocode-google-v3-json\",\n name: \"Geocode Google v3 JSON\",\n description: \"Tool to perform forward geocoding and return results in Google Geocoding API v3 compatible JSON format. Use when you need Google v3 compatible output for legacy integrations. Note: This is a legacy format that may be discontinued; using the standard JSON format is recommended.\",\n input: OpencageGeocodeGoogleV3JsonInput,\n output: OpencageGeocodeGoogleV3JsonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC5K,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACjJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAA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AAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACjF,oBAAoBA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,6BAA6B;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,SAASA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,4BAA4B;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-google-v3-json.cjs","names":["z","action"],"sources":["../../src/actions/geocode-google-v3-json.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGoogleV3JsonInput = z.object({\n q: z.string().describe(\"The query string to be geocoded. Either latitude,longitude for reverse geocoding or a placename/address for forward geocoding. Must be URL encoded.\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to abbreviate and shorten the formatted string returned\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. Default is 10, max is 100. Only applies to forward geocoding.\").optional(),\n bounds: z.string().describe(\"Restrict forward geocoding results to a bounding box. Format: min_lng,min_lat,max_lng,max_lat\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results are pretty printed for easier reading\").optional(),\n language: z.string().describe(\"IETF format language code (e.g., es, pt-BR) or 'native' for local language(s)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to match the nearest road and fill additional roadinfo annotation\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not be deduplicated\").optional(),\n no_record: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the query contents are not logged for privacy\").optional(),\n proximity: z.string().describe(\"Bias forward geocoding results towards a location. Format: latitude,longitude\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the various request parameters are added to the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict forward geocoding results to specific countries. ISO 3166-1 Alpha 2 codes, comma-separated for multiple\").optional(),\n address_only: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, include only the address (excluding POI names) in the formatted string\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not contain annotations\").optional(),\n}).describe(\"Request parameters for Google v3 compatible geocoding.\");\nconst OpencageGeocodeGoogleV3Json_LocationSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough().describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).passthrough().describe(\"Viewport bounding box.\");\nconst OpencageGeocodeGoogleV3Json_GeometrySchema = z.object({\n bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location_type: z.string().describe(\"Type of location returned (e.g., ROOFTOP, APPROXIMATE)\").nullable().optional(),\n}).passthrough().describe(\"Geometry information for a geocoded result.\");\nconst OpencageGeocodeGoogleV3Json_AddressComponentSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of address component\"),\n long_name: z.union([z.string(), z.array(z.string())]),\n short_name: z.union([z.string(), z.array(z.string())]),\n}).passthrough().describe(\"Individual address component.\");\nconst OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of the returned result\").nullable().optional(),\n geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),\n place_id: z.string().describe(\"Unique place identifier\").nullable().optional(),\n formatted_address: z.string().describe(\"Human-readable address string\").nullable(),\n address_components: z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe(\"Array of address components\"),\n}).passthrough().describe(\"Individual geocoding result in Google v3 format.\");\nexport const OpencageGeocodeGoogleV3JsonOutput = z.object({\n status: z.string().describe(\"Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)\").nullable(),\n results: z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe(\"Array of geocoding results\"),\n}).passthrough().describe(\"Response model for Google v3 compatible geocoding.\");\n\nexport const opencageGeocodeGoogleV3Json: AppAction<\n typeof OpencageGeocodeGoogleV3JsonInput,\n typeof OpencageGeocodeGoogleV3JsonOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GOOGLE_V3_JSON\", {\n slug: \"opencage-geocode-google-v3-json\",\n name: \"Geocode Google v3 JSON\",\n description: \"Tool to perform forward geocoding and return results in Google Geocoding API v3 compatible JSON format. Use when you need Google v3 compatible output for legacy integrations. Note: This is a legacy format that may be discontinued; using the standard JSON format is recommended.\",\n input: OpencageGeocodeGoogleV3JsonInput,\n output: OpencageGeocodeGoog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oDAAoD;AAE9E,MAAa,8BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-google-v3-json.d.ts
@@ -57,22 +59,7 @@ declare const OpencageGeocodeGoogleV3JsonOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  }, z.core.$loose>>;
59
61
  }, z.core.$loose>;
60
- declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- abbrv?: 0 | 1 | undefined;
63
- limit?: number | undefined;
64
- bounds?: string | undefined;
65
- pretty?: 0 | 1 | undefined;
66
- language?: string | undefined;
67
- roadinfo?: 0 | 1 | undefined;
68
- no_dedupe?: 0 | 1 | undefined;
69
- no_record?: 0 | 1 | undefined;
70
- proximity?: string | undefined;
71
- add_request?: 0 | 1 | undefined;
72
- countrycode?: string | undefined;
73
- address_only?: 0 | 1 | undefined;
74
- no_annotations?: 0 | 1 | undefined;
75
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ declare const opencageGeocodeGoogleV3Json: AppAction<typeof OpencageGeocodeGoogleV3JsonInput, typeof OpencageGeocodeGoogleV3JsonOutput, typeof opencage.credential>;
76
63
  //#endregion
77
64
  export { opencageGeocodeGoogleV3Json };
78
65
  //# sourceMappingURL=geocode-google-v3-json.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-google-v3-json.d.cts","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"geocode-google-v3-json.d.cts","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-google-v3-json.d.ts
@@ -57,22 +59,7 @@ declare const OpencageGeocodeGoogleV3JsonOutput: z.ZodObject<{
57
59
  }, z.core.$loose>>;
58
60
  }, z.core.$loose>>;
59
61
  }, z.core.$loose>;
60
- declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").WorkflowActionDefinition<{
61
- q: string;
62
- abbrv?: 0 | 1 | undefined;
63
- limit?: number | undefined;
64
- bounds?: string | undefined;
65
- pretty?: 0 | 1 | undefined;
66
- language?: string | undefined;
67
- roadinfo?: 0 | 1 | undefined;
68
- no_dedupe?: 0 | 1 | undefined;
69
- no_record?: 0 | 1 | undefined;
70
- proximity?: string | undefined;
71
- add_request?: 0 | 1 | undefined;
72
- countrycode?: string | undefined;
73
- address_only?: 0 | 1 | undefined;
74
- no_annotations?: 0 | 1 | undefined;
75
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
62
+ declare const opencageGeocodeGoogleV3Json: AppAction<typeof OpencageGeocodeGoogleV3JsonInput, typeof OpencageGeocodeGoogleV3JsonOutput, typeof opencage.credential>;
76
63
  //#endregion
77
64
  export { opencageGeocodeGoogleV3Json };
78
65
  //# sourceMappingURL=geocode-google-v3-json.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-google-v3-json.d.mts","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"geocode-google-v3-json.d.mts","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cA0ChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/geocode-google-v3-json.ts
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-google-v3-json.mjs","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpencageGeocodeGoogleV3JsonInput = z.object({\n q: z.string().describe(\"The query string to be geocoded. Either latitude,longitude for reverse geocoding or a placename/address for forward geocoding. Must be URL encoded.\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to abbreviate and shorten the formatted string returned\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. Default is 10, max is 100. Only applies to forward geocoding.\").optional(),\n bounds: z.string().describe(\"Restrict forward geocoding results to a bounding box. Format: min_lng,min_lat,max_lng,max_lat\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results are pretty printed for easier reading\").optional(),\n language: z.string().describe(\"IETF format language code (e.g., es, pt-BR) or 'native' for local language(s)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to match the nearest road and fill additional roadinfo annotation\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not be deduplicated\").optional(),\n no_record: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the query contents are not logged for privacy\").optional(),\n proximity: z.string().describe(\"Bias forward geocoding results towards a location. Format: latitude,longitude\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the various request parameters are added to the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict forward geocoding results to specific countries. ISO 3166-1 Alpha 2 codes, comma-separated for multiple\").optional(),\n address_only: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, include only the address (excluding POI names) in the formatted string\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not contain annotations\").optional(),\n}).describe(\"Request parameters for Google v3 compatible geocoding.\");\nconst OpencageGeocodeGoogleV3Json_LocationSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough().describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).passthrough().describe(\"Viewport bounding box.\");\nconst OpencageGeocodeGoogleV3Json_GeometrySchema = z.object({\n bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location_type: z.string().describe(\"Type of location returned (e.g., ROOFTOP, APPROXIMATE)\").nullable().optional(),\n}).passthrough().describe(\"Geometry information for a geocoded result.\");\nconst OpencageGeocodeGoogleV3Json_AddressComponentSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of address component\"),\n long_name: z.union([z.string(), z.array(z.string())]),\n short_name: z.union([z.string(), z.array(z.string())]),\n}).passthrough().describe(\"Individual address component.\");\nconst OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of the returned result\").nullable().optional(),\n geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),\n place_id: z.string().describe(\"Unique place identifier\").nullable().optional(),\n formatted_address: z.string().describe(\"Human-readable address string\").nullable(),\n address_components: z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe(\"Array of address components\"),\n}).passthrough().describe(\"Individual geocoding result in Google v3 format.\");\nexport const OpencageGeocodeGoogleV3JsonOutput = z.object({\n status: z.string().describe(\"Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)\").nullable(),\n results: z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe(\"Array of geocoding results\"),\n}).passthrough().describe(\"Response model for Google v3 compatible geocoding.\");\n\nexport const opencageGeocodeGoogleV3Json = action(\"OPENCAGE_GEOCODE_GOOGLE_V3_JSON\", {\n slug: \"opencage-geocode-google-v3-json\",\n name: \"Geocode Google v3 JSON\",\n description: \"Tool to perform forward geocoding and return results in Google Geocoding API v3 compatible JSON format. Use when you need Google v3 compatible output for legacy integrations. Note: This is a legacy format that may be discontinued; using the standard JSON format is recommended.\",\n input: OpencageGeocodeGoogleV3JsonInput,\n output: OpencageGeocodeGoogleV3JsonOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC5K,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,C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S,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACjF,oBAAoB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,6BAA6B;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAM5E,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,4BAA4B;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-google-v3-json.mjs","names":[],"sources":["../../src/actions/geocode-google-v3-json.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeGoogleV3JsonInput = z.object({\n q: z.string().describe(\"The query string to be geocoded. Either latitude,longitude for reverse geocoding or a placename/address for forward geocoding. Must be URL encoded.\"),\n abbrv: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to abbreviate and shorten the formatted string returned\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return. Default is 10, max is 100. Only applies to forward geocoding.\").optional(),\n bounds: z.string().describe(\"Restrict forward geocoding results to a bounding box. Format: min_lng,min_lat,max_lng,max_lat\").optional(),\n pretty: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results are pretty printed for easier reading\").optional(),\n language: z.string().describe(\"IETF format language code (e.g., es, pt-BR) or 'native' for local language(s)\").optional(),\n roadinfo: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, attempt to match the nearest road and fill additional roadinfo annotation\").optional(),\n no_dedupe: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not be deduplicated\").optional(),\n no_record: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the query contents are not logged for privacy\").optional(),\n proximity: z.string().describe(\"Bias forward geocoding results towards a location. Format: latitude,longitude\").optional(),\n add_request: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, the various request parameters are added to the response for debugging\").optional(),\n countrycode: z.string().describe(\"Restrict forward geocoding results to specific countries. ISO 3166-1 Alpha 2 codes, comma-separated for multiple\").optional(),\n address_only: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, include only the address (excluding POI names) in the formatted string\").optional(),\n no_annotations: z.union([z.literal(0), z.literal(1)]).describe(\"When set to 1, results will not contain annotations\").optional(),\n}).describe(\"Request parameters for Google v3 compatible geocoding.\");\nconst OpencageGeocodeGoogleV3Json_LocationSchema = z.object({\n lat: z.number().describe(\"Latitude\").nullable(),\n lng: z.number().describe(\"Longitude\").nullable(),\n}).passthrough().describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).passthrough().describe(\"Viewport bounding box.\");\nconst OpencageGeocodeGoogleV3Json_GeometrySchema = z.object({\n bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),\n location_type: z.string().describe(\"Type of location returned (e.g., ROOFTOP, APPROXIMATE)\").nullable().optional(),\n}).passthrough().describe(\"Geometry information for a geocoded result.\");\nconst OpencageGeocodeGoogleV3Json_AddressComponentSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of address component\"),\n long_name: z.union([z.string(), z.array(z.string())]),\n short_name: z.union([z.string(), z.array(z.string())]),\n}).passthrough().describe(\"Individual address component.\");\nconst OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = z.object({\n types: z.array(z.string()).describe(\"Array indicating the type of the returned result\").nullable().optional(),\n geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),\n place_id: z.string().describe(\"Unique place identifier\").nullable().optional(),\n formatted_address: z.string().describe(\"Human-readable address string\").nullable(),\n address_components: z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe(\"Array of address components\"),\n}).passthrough().describe(\"Individual geocoding result in Google v3 format.\");\nexport const OpencageGeocodeGoogleV3JsonOutput = z.object({\n status: z.string().describe(\"Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)\").nullable(),\n results: z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe(\"Array of geocoding results\"),\n}).passthrough().describe(\"Response model for Google v3 compatible geocoding.\");\n\nexport const opencageGeocodeGoogleV3Json: AppAction<\n typeof OpencageGeocodeGoogleV3JsonInput,\n typeof OpencageGeocodeGoogleV3JsonOutput,\n typeof opencage.credential\n> = action(\"OPENCAGE_GEOCODE_GOOGLE_V3_JSON\", {\n slug: \"opencage-geocode-google-v3-json\",\n name: \"Geocode Google v3 JSON\",\n description: \"Tool to perform forward geocoding and return results in Google Geocoding API v3 compatible JSON format. Use when you need Google v3 compatible output for legacy integrations. Note: This is a legacy format that may be discontinued; using the standard JSON format is recommended.\",\n input: OpencageGeocodeGoogleV3JsonInput,\n output: OpencageGeocodeGoogleV3JsonOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC5K,OAAO,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ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AAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,UAAU,2CAA2C,SAAS;CAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACjF,oBAAoB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,6BAA6B;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAM5E,MAAa,8BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACxG,SAAS,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,4BAA4B;CAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/geocode-reverse.ts
@@ -1 +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.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.object({\n limit: z.number().int().describe(\"Rate limit\").nullable(),\n reset: z.number().int().describe(\"Seconds until rate limit resets\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\").nullable(),\n message: z.string().describe(\"Status message of the request\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of the result\").nullable(),\n lng: z.number().describe(\"Longitude of the result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema = 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\").nullable(),\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)\").nullable(),\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}).passthrough();\nconst OpencageGeocodeReverse_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StayInformedSchema = 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}).passthrough();\nexport const OpencageGeocodeReverseOutput = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\").nullable(),\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\").nullable(),\n}).passthrough();\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,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,S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s","names":["z","action"],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeReverseInput = 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.object({\n limit: z.number().int().describe(\"Rate limit\").nullable(),\n reset: z.number().int().describe(\"Seconds until rate limit resets\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\").nullable(),\n message: z.string().describe(\"Status message of the request\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of the result\").nullable(),\n lng: z.number().describe(\"Longitude of the result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema = 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\").nullable(),\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)\").nullable(),\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}).passthrough();\nconst OpencageGeocodeReverse_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StayInformedSchema = 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}).passthrough();\nexport const OpencageGeocodeReverseOutput = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\").nullable(),\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\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeReverse: AppAction<\n typeof OpencageGeocodeReverseInput,\n typeof OpencageGeocodeReverseOutput,\n typeof opencage.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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A,EAAE,OAAO;CACnD,MAAM,kCAAkC,SAAS;CACjD,QAAQ,oCAAoC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACzD,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,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-reverse.d.ts
@@ -49,19 +51,7 @@ declare const OpencageGeocodeReverseOutput: z.ZodObject<{
49
51
  }, z.core.$loose>>;
50
52
  total_results: z.ZodNullable<z.ZodNumber>;
51
53
  }, z.core.$loose>;
52
- declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<{
53
- q: string;
54
- abbrv?: number | undefined;
55
- limit?: number | undefined;
56
- pretty?: number | undefined;
57
- language?: string | undefined;
58
- roadinfo?: number | undefined;
59
- add_request?: number | undefined;
60
- countrycode?: string | undefined;
61
- normalizecity?: number | undefined;
62
- min_confidence?: number | undefined;
63
- no_annotations?: number | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
54
+ declare const opencageGeocodeReverse: AppAction<typeof OpencageGeocodeReverseInput, typeof OpencageGeocodeReverseOutput, typeof opencage.credential>;
65
55
  //#endregion
66
56
  export { opencageGeocodeReverse };
67
57
  //# sourceMappingURL=geocode-reverse.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-reverse.d.cts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"geocode-reverse.d.cts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-reverse.d.ts
@@ -49,19 +51,7 @@ declare const OpencageGeocodeReverseOutput: z.ZodObject<{
49
51
  }, z.core.$loose>>;
50
52
  total_results: z.ZodNullable<z.ZodNumber>;
51
53
  }, z.core.$loose>;
52
- declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<{
53
- q: string;
54
- abbrv?: number | undefined;
55
- limit?: number | undefined;
56
- pretty?: number | undefined;
57
- language?: string | undefined;
58
- roadinfo?: number | undefined;
59
- add_request?: number | undefined;
60
- countrycode?: string | undefined;
61
- normalizecity?: number | undefined;
62
- min_confidence?: number | undefined;
63
- no_annotations?: number | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
54
+ declare const opencageGeocodeReverse: AppAction<typeof OpencageGeocodeReverseInput, typeof OpencageGeocodeReverseOutput, typeof opencage.credential>;
65
55
  //#endregion
66
56
  export { opencageGeocodeReverse };
67
57
  //# sourceMappingURL=geocode-reverse.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-reverse.d.mts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"geocode-reverse.d.mts","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA6C3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/geocode-reverse.ts
@@ -1 +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.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.object({\n limit: z.number().int().describe(\"Rate limit\").nullable(),\n reset: z.number().int().describe(\"Seconds until rate limit resets\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\").nullable(),\n message: z.string().describe(\"Status message of the request\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of the result\").nullable(),\n lng: z.number().describe(\"Longitude of the result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema = 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\").nullable(),\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)\").nullable(),\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}).passthrough();\nconst OpencageGeocodeReverse_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StayInformedSchema = 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}).passthrough();\nexport const OpencageGeocodeReverseOutput = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\").nullable(),\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\").nullable(),\n}).passthrough();\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,8BAA8B,EAAE,OAAO;CAClD,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,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C,SAAS;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAWf,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,kCAAkC,SAAS;EACjD,QAAQ,oCAAoC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,kCAAkC;EAC/G,WAAW,uCAAuC,SAAS;EAC3D,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-reverse.mjs","names":[],"sources":["../../src/actions/geocode-reverse.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeReverseInput = 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.object({\n limit: z.number().int().describe(\"Rate limit\").nullable(),\n reset: z.number().int().describe(\"Seconds until rate limit resets\").nullable(),\n remaining: z.number().int().describe(\"Remaining requests in current rate window\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StatusSchema = z.object({\n code: z.number().int().describe(\"Status code of the request, 200 indicates success\").nullable(),\n message: z.string().describe(\"Status message of the request\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeometrySchema = z.object({\n lat: z.number().describe(\"Latitude of the result\").nullable(),\n lng: z.number().describe(\"Longitude of the result\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_GeocodeReverseResultSchema = 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\").nullable(),\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)\").nullable(),\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}).passthrough();\nconst OpencageGeocodeReverse_TimestampSchema = z.object({\n created_http: z.string().describe(\"Timestamp when the response was created (HTTP-format)\").nullable(),\n created_unix: z.number().int().describe(\"Timestamp when the response was created (Unix time)\").nullable(),\n}).passthrough();\nconst OpencageGeocodeReverse_StayInformedSchema = 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}).passthrough();\nexport const OpencageGeocodeReverseOutput = z.object({\n rate: OpencageGeocodeReverse_RateSchema.nullable(),\n status: OpencageGeocodeReverse_StatusSchema.nullable(),\n thanks: z.string().describe(\"Attribution text\").nullable(),\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\").nullable(),\n}).passthrough();\n\nexport const opencageGeocodeReverse: AppAction<\n typeof OpencageGeocodeReverseInput,\n typeof OpencageGeocodeReverseOutput,\n typeof opencage.credential\n> = 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":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,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,OA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CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AAWf,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAnB0C,EAAE,OAAO;EACnD,MAAM,kCAAkC,SAAS;EACjD,QAAQ,oCAAoC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,MAAM,iDAAiD,CAAC,CAAC,SAAS,kCAAkC;EAC/G,WAAW,uCAAuC,SAAS;EAC3D,eAAe,0CAA0C,SAAS;EAClE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/E,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/geocode-xml.ts
@@ -1 +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.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.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\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}).passthrough().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 JS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OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACpK,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACjJ,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,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-xml.cjs","names":["z","action"],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeXmlInput = 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.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\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}).passthrough().describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml: AppAction<\n typeof OpencageGeocodeXmlInput,\n typeof OpencageGeocodeXmlOutput,\n typeof opencage.credential\n> = 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":";;;;AAMA,M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AAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACjJ,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,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-xml.d.ts
@@ -19,19 +21,7 @@ declare const OpencageGeocodeXmlOutput: z.ZodObject<{
19
21
  status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  }, z.core.$loose>;
22
- declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- q: string;
24
- abbrv?: 0 | 1 | undefined;
25
- limit?: number | undefined;
26
- pretty?: 0 | 1 | undefined;
27
- language?: string | undefined;
28
- roadinfo?: 0 | 1 | undefined;
29
- no_dedupe?: 0 | 1 | undefined;
30
- add_request?: 0 | 1 | undefined;
31
- countrycode?: string | undefined;
32
- min_confidence?: number | undefined;
33
- no_annotations?: 0 | 1 | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const opencageGeocodeXml: AppAction<typeof OpencageGeocodeXmlInput, typeof OpencageGeocodeXmlOutput, typeof opencage.credential>;
35
25
  //#endregion
36
26
  export { opencageGeocodeXml };
37
27
  //# sourceMappingURL=geocode-xml.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-xml.d.cts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"geocode-xml.d.cts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/geocode-xml.d.ts
@@ -19,19 +21,7 @@ declare const OpencageGeocodeXmlOutput: z.ZodObject<{
19
21
  status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
22
  total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  }, z.core.$loose>;
22
- declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
23
- q: string;
24
- abbrv?: 0 | 1 | undefined;
25
- limit?: number | undefined;
26
- pretty?: 0 | 1 | undefined;
27
- language?: string | undefined;
28
- roadinfo?: 0 | 1 | undefined;
29
- no_dedupe?: 0 | 1 | undefined;
30
- add_request?: 0 | 1 | undefined;
31
- countrycode?: string | undefined;
32
- min_confidence?: number | undefined;
33
- no_annotations?: 0 | 1 | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
24
+ declare const opencageGeocodeXml: AppAction<typeof OpencageGeocodeXmlInput, typeof OpencageGeocodeXmlOutput, typeof opencage.credential>;
35
25
  //#endregion
36
26
  export { opencageGeocodeXml };
37
27
  //# sourceMappingURL=geocode-xml.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"geocode-xml.d.mts","names":[],"sources":["../../src/actions/geocode-xml.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const opencageGeocodeXml = action("OPENCAGE_GEOCODE_XML", {
@@ -1 +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.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.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\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}).passthrough().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 X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,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC5K,CAAC,CAAC,CAAC,SAAS,4GAWH;CACP,QAXsC,EAAE,OAAO;EAC/C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;EACjJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"geocode-xml.mjs","names":[],"sources":["../../src/actions/geocode-xml.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencageGeocodeXmlInput = 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.object({\n xml: z.string().describe(\"Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata\").nullable(),\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}).passthrough().describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml: AppAction<\n typeof OpencageGeocodeXmlInput,\n typeof OpencageGeocodeXmlOutput,\n typeof opencage.credential\n> = 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":";;;AAyBA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BqC,EAAE,OAAO;EAC9C,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,SAA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AAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/ping-opencage.ts
@@ -1 +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.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().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,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACvH,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"ping-opencage.cjs","names":["z","action"],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencagePingOpencageInput = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage: AppAction<\n typeof OpencagePingOpencageInput,\n typeof OpencagePingOpencageOutput,\n typeof opencage.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACvH,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/ping-opencage.d.ts
@@ -5,7 +7,7 @@ declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const OpencagePingOpencageOutput: z.ZodObject<{
6
8
  message: z.ZodNullable<z.ZodString>;
7
9
  }, z.core.$loose>;
8
- declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const opencagePingOpencage: AppAction<typeof OpencagePingOpencageInput, typeof OpencagePingOpencageOutput, typeof opencage.credential>;
9
11
  //#endregion
10
12
  export { opencagePingOpencage };
11
13
  //# sourceMappingURL=ping-opencage.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"ping-opencage.d.cts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { opencage } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/ping-opencage.d.ts
@@ -5,7 +7,7 @@ declare const OpencagePingOpencageInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const OpencagePingOpencageOutput: z.ZodObject<{
6
8
  message: z.ZodNullable<z.ZodString>;
7
9
  }, z.core.$loose>;
8
- declare const opencagePingOpencage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
10
+ declare const opencagePingOpencage: AppAction<typeof OpencagePingOpencageInput, typeof OpencagePingOpencageOutput, typeof opencage.credential>;
9
11
  //#endregion
10
12
  export { opencagePingOpencage };
11
13
  //# sourceMappingURL=ping-opencage.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,gCAAoB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"ping-opencage.d.mts","names":[],"sources":["../../src/actions/ping-opencage.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const opencagePingOpencage = action("OPENCAGE_PING_OPENCAGE", {
@@ -1 +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.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().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,OATuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAStD;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"ping-opencage.mjs","names":[],"sources":["../../src/actions/ping-opencage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { opencage } from \"../app\";\n\nexport const OpencagePingOpencageInput = z.object({}).describe(\"Request parameters for OpenCage API ping health check.\");\nexport const OpencagePingOpencageOutput = z.object({\n message: z.string().describe(\"Response message from ping endpoint, typically 'pong'\").nullable(),\n}).passthrough().describe(\"Response from OpenCage API ping endpoint.\");\n\nexport const opencagePingOpencage: AppAction<\n typeof OpencagePingOpencageInput,\n typeof OpencagePingOpencageOutput,\n typeof opencage.credential\n> = 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":";;;AAWA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wDAatD;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,EACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const opencage = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_key: require("zod").z.string() };
4
+ const opencage = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "opencage",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.opencage = opencage;