@keystrokehq/opencage 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/geocode-forward.cjs +10 -10
- package/dist/actions/geocode-forward.cjs.map +1 -1
- package/dist/actions/geocode-forward.d.cts +24 -12
- package/dist/actions/geocode-forward.d.mts +24 -12
- package/dist/actions/geocode-forward.mjs +10 -10
- package/dist/actions/geocode-forward.mjs.map +1 -1
- package/dist/actions/geocode-geojson.cjs +22 -22
- package/dist/actions/geocode-geojson.cjs.map +1 -1
- package/dist/actions/geocode-geojson.d.cts +36 -24
- package/dist/actions/geocode-geojson.d.mts +36 -24
- package/dist/actions/geocode-geojson.mjs +22 -22
- package/dist/actions/geocode-geojson.mjs.map +1 -1
- package/dist/actions/geocode-geojsonp.cjs +1 -1
- package/dist/actions/geocode-geojsonp.cjs.map +1 -1
- package/dist/actions/geocode-geojsonp.d.cts +14 -2
- package/dist/actions/geocode-geojsonp.d.mts +14 -2
- package/dist/actions/geocode-geojsonp.mjs +1 -1
- package/dist/actions/geocode-geojsonp.mjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.cjs +6 -6
- package/dist/actions/geocode-google-v3-json.cjs.map +1 -1
- package/dist/actions/geocode-google-v3-json.d.cts +24 -12
- package/dist/actions/geocode-google-v3-json.d.mts +24 -12
- package/dist/actions/geocode-google-v3-json.mjs +6 -6
- package/dist/actions/geocode-google-v3-json.mjs.map +1 -1
- package/dist/actions/geocode-reverse.cjs +7 -7
- package/dist/actions/geocode-reverse.cjs.map +1 -1
- package/dist/actions/geocode-reverse.d.cts +20 -8
- package/dist/actions/geocode-reverse.d.mts +20 -8
- package/dist/actions/geocode-reverse.mjs +7 -7
- package/dist/actions/geocode-reverse.mjs.map +1 -1
- package/dist/actions/geocode-xml.cjs +1 -1
- package/dist/actions/geocode-xml.cjs.map +1 -1
- package/dist/actions/geocode-xml.d.cts +14 -2
- package/dist/actions/geocode-xml.d.mts +14 -2
- package/dist/actions/geocode-xml.mjs +1 -1
- package/dist/actions/geocode-xml.mjs.map +1 -1
- package/dist/actions/ping-opencage.cjs +1 -1
- package/dist/actions/ping-opencage.cjs.map +1 -1
- package/dist/actions/ping-opencage.d.cts +14 -2
- package/dist/actions/ping-opencage.d.cts.map +1 -1
- package/dist/actions/ping-opencage.d.mts +14 -2
- package/dist/actions/ping-opencage.d.mts.map +1 -1
- package/dist/actions/ping-opencage.mjs +1 -1
- package/dist/actions/ping-opencage.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,7 @@ const opencageGeocodeGeojsonp = action("OPENCAGE_GEOCODE_GEOJSONP", {
|
|
|
20
20
|
min_confidence: z.number().int().describe("Minimum confidence score (0-10) for results. Higher values return more precise matches only.").optional(),
|
|
21
21
|
no_annotations: z.number().int().describe("Exclude supplementary annotations (timezone, currency, etc.) from results. Set to 1 to exclude.").optional()
|
|
22
22
|
}).describe("Request parameters for geocoding with JSONP callback wrapper."),
|
|
23
|
-
output: z.object({ jsonp: z.string().describe("JSONP-formatted response with the callback function wrapping the geocode results JSON. Example: 'myCallback({\"results\": [...], \"status\": {...}})'").nullable() }).describe("Response containing geocoding results wrapped in a JSONP callback.")
|
|
23
|
+
output: z.object({ jsonp: z.string().describe("JSONP-formatted response with the callback function wrapping the geocode results JSON. Example: 'myCallback({\"results\": [...], \"status\": {...}})'").nullable() }).passthrough().describe("Response containing geocoding results wrapped in a JSONP callback.")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { opencageGeocodeGeojsonp };
|
|
@@ -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}).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,SAAS,
|
|
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,6BAA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CAAC,CAAC,SAAS,uJAAuJ,CAAC,CAAC,SAAS,EAC/L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oEAOhB;AACV,CAAC"}
|
|
@@ -20,33 +20,33 @@ const OpencageGeocodeGoogleV3JsonInput = zod.z.object({
|
|
|
20
20
|
const OpencageGeocodeGoogleV3Json_LocationSchema = zod.z.object({
|
|
21
21
|
lat: zod.z.number().describe("Latitude").nullable(),
|
|
22
22
|
lng: zod.z.number().describe("Longitude").nullable()
|
|
23
|
-
}).describe("Geographic coordinates.");
|
|
23
|
+
}).passthrough().describe("Geographic coordinates.");
|
|
24
24
|
const OpencageGeocodeGoogleV3Json_ViewportSchema = zod.z.object({
|
|
25
25
|
northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),
|
|
26
26
|
southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable()
|
|
27
|
-
}).describe("Viewport bounding box.");
|
|
27
|
+
}).passthrough().describe("Viewport bounding box.");
|
|
28
28
|
const OpencageGeocodeGoogleV3Json_GeometrySchema = zod.z.object({
|
|
29
29
|
bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),
|
|
30
30
|
location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),
|
|
31
31
|
viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),
|
|
32
32
|
location_type: zod.z.string().describe("Type of location returned (e.g., ROOFTOP, APPROXIMATE)").nullable().optional()
|
|
33
|
-
}).describe("Geometry information for a geocoded result.");
|
|
33
|
+
}).passthrough().describe("Geometry information for a geocoded result.");
|
|
34
34
|
const OpencageGeocodeGoogleV3Json_AddressComponentSchema = zod.z.object({
|
|
35
35
|
types: zod.z.array(zod.z.string()).describe("Array indicating the type of address component"),
|
|
36
36
|
long_name: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]),
|
|
37
37
|
short_name: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())])
|
|
38
|
-
}).describe("Individual address component.");
|
|
38
|
+
}).passthrough().describe("Individual address component.");
|
|
39
39
|
const OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = zod.z.object({
|
|
40
40
|
types: zod.z.array(zod.z.string()).describe("Array indicating the type of the returned result").nullable().optional(),
|
|
41
41
|
geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),
|
|
42
42
|
place_id: zod.z.string().describe("Unique place identifier").nullable().optional(),
|
|
43
43
|
formatted_address: zod.z.string().describe("Human-readable address string").nullable(),
|
|
44
44
|
address_components: zod.z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe("Array of address components")
|
|
45
|
-
}).describe("Individual geocoding result in Google v3 format.");
|
|
45
|
+
}).passthrough().describe("Individual geocoding result in Google v3 format.");
|
|
46
46
|
const OpencageGeocodeGoogleV3JsonOutput = zod.z.object({
|
|
47
47
|
status: zod.z.string().describe("Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)").nullable(),
|
|
48
48
|
results: zod.z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe("Array of geocoding results")
|
|
49
|
-
}).describe("Response model for Google v3 compatible geocoding.");
|
|
49
|
+
}).passthrough().describe("Response model for Google v3 compatible geocoding.");
|
|
50
50
|
const opencageGeocodeGoogleV3Json = require_action.action("OPENCAGE_GEOCODE_GOOGLE_V3_JSON", {
|
|
51
51
|
slug: "opencage-geocode-google-v3-json",
|
|
52
52
|
name: "Geocode Google v3 JSON",
|
|
@@ -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}).describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).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}).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}).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}).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}).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,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,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC9J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC9J,cAAcA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/J,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC9C,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CAAC,SAAS,yBAAyB;
|
|
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,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
|
27
27
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
southwest: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
location: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
northeast: z.ZodNullable<z.ZodObject<{
|
|
41
41
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
44
|
southwest: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
46
46
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
49
|
location_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
place_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
52
|
formatted_address: z.ZodNullable<z.ZodString>;
|
|
53
53
|
address_components: z.ZodArray<z.ZodObject<{
|
|
54
54
|
types: z.ZodArray<z.ZodString>;
|
|
55
55
|
long_name: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
56
56
|
short_name: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
57
|
-
}, z.core.$
|
|
58
|
-
}, z.core.$
|
|
59
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
q: string;
|
|
62
62
|
abbrv?: 0 | 1 | undefined;
|
|
@@ -72,7 +72,19 @@ declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").Workflo
|
|
|
72
72
|
countrycode?: string | undefined;
|
|
73
73
|
address_only?: 0 | 1 | undefined;
|
|
74
74
|
no_annotations?: 0 | 1 | undefined;
|
|
75
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
75
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
76
|
+
connectionId: z.ZodString;
|
|
77
|
+
entityId: z.ZodString;
|
|
78
|
+
instanceId: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
generic_key: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
82
|
+
connectionId: z.ZodString;
|
|
83
|
+
entityId: z.ZodString;
|
|
84
|
+
instanceId: z.ZodString;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
generic_key: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>]>;
|
|
76
88
|
//#endregion
|
|
77
89
|
export { opencageGeocodeGoogleV3Json };
|
|
78
90
|
//# sourceMappingURL=geocode-google-v3-json.d.cts.map
|
|
@@ -26,37 +26,37 @@ declare const OpencageGeocodeGoogleV3JsonOutput: z.ZodObject<{
|
|
|
26
26
|
northeast: z.ZodNullable<z.ZodObject<{
|
|
27
27
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
southwest: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
location: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>>;
|
|
39
39
|
viewport: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
northeast: z.ZodNullable<z.ZodObject<{
|
|
41
41
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
44
|
southwest: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
46
46
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
49
|
location_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
51
|
place_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
52
|
formatted_address: z.ZodNullable<z.ZodString>;
|
|
53
53
|
address_components: z.ZodArray<z.ZodObject<{
|
|
54
54
|
types: z.ZodArray<z.ZodString>;
|
|
55
55
|
long_name: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
56
56
|
short_name: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>;
|
|
57
|
-
}, z.core.$
|
|
58
|
-
}, z.core.$
|
|
59
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
|
+
}, z.core.$loose>;
|
|
60
60
|
declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
61
61
|
q: string;
|
|
62
62
|
abbrv?: 0 | 1 | undefined;
|
|
@@ -72,7 +72,19 @@ declare const opencageGeocodeGoogleV3Json: import("@keystrokehq/action").Workflo
|
|
|
72
72
|
countrycode?: string | undefined;
|
|
73
73
|
address_only?: 0 | 1 | undefined;
|
|
74
74
|
no_annotations?: 0 | 1 | undefined;
|
|
75
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
75
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
76
|
+
connectionId: z.ZodString;
|
|
77
|
+
entityId: z.ZodString;
|
|
78
|
+
instanceId: z.ZodString;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
generic_key: z.ZodString;
|
|
81
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
82
|
+
connectionId: z.ZodString;
|
|
83
|
+
entityId: z.ZodString;
|
|
84
|
+
instanceId: z.ZodString;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
generic_key: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>]>;
|
|
76
88
|
//#endregion
|
|
77
89
|
export { opencageGeocodeGoogleV3Json };
|
|
78
90
|
//# sourceMappingURL=geocode-google-v3-json.d.mts.map
|
|
@@ -20,29 +20,29 @@ const OpencageGeocodeGoogleV3JsonInput = z.object({
|
|
|
20
20
|
const OpencageGeocodeGoogleV3Json_LocationSchema = z.object({
|
|
21
21
|
lat: z.number().describe("Latitude").nullable(),
|
|
22
22
|
lng: z.number().describe("Longitude").nullable()
|
|
23
|
-
}).describe("Geographic coordinates.");
|
|
23
|
+
}).passthrough().describe("Geographic coordinates.");
|
|
24
24
|
const OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({
|
|
25
25
|
northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),
|
|
26
26
|
southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable()
|
|
27
|
-
}).describe("Viewport bounding box.");
|
|
27
|
+
}).passthrough().describe("Viewport bounding box.");
|
|
28
28
|
const OpencageGeocodeGoogleV3Json_GeometrySchema = z.object({
|
|
29
29
|
bounds: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),
|
|
30
30
|
location: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),
|
|
31
31
|
viewport: OpencageGeocodeGoogleV3Json_ViewportSchema.nullable().optional(),
|
|
32
32
|
location_type: z.string().describe("Type of location returned (e.g., ROOFTOP, APPROXIMATE)").nullable().optional()
|
|
33
|
-
}).describe("Geometry information for a geocoded result.");
|
|
33
|
+
}).passthrough().describe("Geometry information for a geocoded result.");
|
|
34
34
|
const OpencageGeocodeGoogleV3Json_AddressComponentSchema = z.object({
|
|
35
35
|
types: z.array(z.string()).describe("Array indicating the type of address component"),
|
|
36
36
|
long_name: z.union([z.string(), z.array(z.string())]),
|
|
37
37
|
short_name: z.union([z.string(), z.array(z.string())])
|
|
38
|
-
}).describe("Individual address component.");
|
|
38
|
+
}).passthrough().describe("Individual address component.");
|
|
39
39
|
const OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema = z.object({
|
|
40
40
|
types: z.array(z.string()).describe("Array indicating the type of the returned result").nullable().optional(),
|
|
41
41
|
geometry: OpencageGeocodeGoogleV3Json_GeometrySchema.nullable(),
|
|
42
42
|
place_id: z.string().describe("Unique place identifier").nullable().optional(),
|
|
43
43
|
formatted_address: z.string().describe("Human-readable address string").nullable(),
|
|
44
44
|
address_components: z.array(OpencageGeocodeGoogleV3Json_AddressComponentSchema).describe("Array of address components")
|
|
45
|
-
}).describe("Individual geocoding result in Google v3 format.");
|
|
45
|
+
}).passthrough().describe("Individual geocoding result in Google v3 format.");
|
|
46
46
|
const opencageGeocodeGoogleV3Json = action("OPENCAGE_GEOCODE_GOOGLE_V3_JSON", {
|
|
47
47
|
slug: "opencage-geocode-google-v3-json",
|
|
48
48
|
name: "Geocode Google v3 JSON",
|
|
@@ -51,7 +51,7 @@ const opencageGeocodeGoogleV3Json = action("OPENCAGE_GEOCODE_GOOGLE_V3_JSON", {
|
|
|
51
51
|
output: z.object({
|
|
52
52
|
status: z.string().describe("Status of the request (OK, ZERO_RESULTS, INVALID_REQUEST, etc.)").nullable(),
|
|
53
53
|
results: z.array(OpencageGeocodeGoogleV3Json_GoogleV3ResultSchema).describe("Array of geocoding results")
|
|
54
|
-
}).describe("Response model for Google v3 compatible geocoding.")
|
|
54
|
+
}).passthrough().describe("Response model for Google v3 compatible geocoding.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { opencageGeocodeGoogleV3Json };
|
|
@@ -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}).describe(\"Geographic coordinates.\");\nconst OpencageGeocodeGoogleV3Json_ViewportSchema = z.object({\n northeast: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n southwest: OpencageGeocodeGoogleV3Json_LocationSchema.nullable(),\n}).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}).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}).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}).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}).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;CA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AC,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC/J,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,UAAU,CAAC,CAAC,SAAS;CAC9C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CAAC,SAAS,yBAAyB;
|
|
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,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACjJ,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,QAAQ,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChI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AAS,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"}
|
|
@@ -18,15 +18,15 @@ const OpencageGeocodeReverse_RateSchema = zod.z.object({
|
|
|
18
18
|
limit: zod.z.number().int().describe("Rate limit").nullable(),
|
|
19
19
|
reset: zod.z.number().int().describe("Seconds until rate limit resets").nullable(),
|
|
20
20
|
remaining: zod.z.number().int().describe("Remaining requests in current rate window").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const OpencageGeocodeReverse_StatusSchema = zod.z.object({
|
|
23
23
|
code: zod.z.number().int().describe("Status code of the request, 200 indicates success").nullable(),
|
|
24
24
|
message: zod.z.string().describe("Status message of the request").nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const OpencageGeocodeReverse_GeometrySchema = zod.z.object({
|
|
27
27
|
lat: zod.z.number().describe("Latitude of the result").nullable(),
|
|
28
28
|
lng: zod.z.number().describe("Longitude of the result").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpencageGeocodeReverse_GeocodeReverseResultSchema = zod.z.object({
|
|
31
31
|
bounds: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Bounding box of the result (northeast and southwest corners)").nullable().optional(),
|
|
32
32
|
geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),
|
|
@@ -35,17 +35,17 @@ const OpencageGeocodeReverse_GeocodeReverseResultSchema = zod.z.object({
|
|
|
35
35
|
confidence: zod.z.number().int().describe("Confidence score (0-10)").nullable(),
|
|
36
36
|
annotations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional annotation metadata (timezone, currency, DMS coordinates, etc.)").nullable().optional(),
|
|
37
37
|
distance_from_q: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Distance from the queried coordinates in meters").nullable().optional()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const OpencageGeocodeReverse_TimestampSchema = zod.z.object({
|
|
40
40
|
created_http: zod.z.string().describe("Timestamp when the response was created (HTTP-format)").nullable(),
|
|
41
41
|
created_unix: zod.z.number().int().describe("Timestamp when the response was created (Unix time)").nullable()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const OpencageGeocodeReverse_StayInformedSchema = zod.z.object({
|
|
44
44
|
blog: zod.z.string().describe("URL to the OpenCage blog").nullable().optional(),
|
|
45
45
|
twitter: zod.z.string().describe("OpenCage Twitter/X handle").nullable().optional(),
|
|
46
46
|
facebook: zod.z.string().describe("OpenCage Facebook page URL").nullable().optional(),
|
|
47
47
|
mastodon: zod.z.string().describe("OpenCage Mastodon profile URL").nullable().optional()
|
|
48
|
-
});
|
|
48
|
+
}).passthrough();
|
|
49
49
|
const OpencageGeocodeReverseOutput = zod.z.object({
|
|
50
50
|
rate: OpencageGeocodeReverse_RateSchema.nullable(),
|
|
51
51
|
status: OpencageGeocodeReverse_StatusSchema.nullable(),
|
|
@@ -54,7 +54,7 @@ const OpencageGeocodeReverseOutput = zod.z.object({
|
|
|
54
54
|
timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),
|
|
55
55
|
stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),
|
|
56
56
|
total_results: zod.z.number().int().describe("Total number of results").nullable()
|
|
57
|
-
});
|
|
57
|
+
}).passthrough();
|
|
58
58
|
const opencageGeocodeReverse = require_action.action("OPENCAGE_GEOCODE_REVERSE", {
|
|
59
59
|
slug: "opencage-geocode-reverse",
|
|
60
60
|
name: "Reverse Geocode Coordinates",
|
|
@@ -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});\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});\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});\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});\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});\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});\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});\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,E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OA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC7F,CAAC;
|
|
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,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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4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,+BAA+BA,IAAAA,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,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,36 +19,36 @@ declare const OpencageGeocodeReverseOutput: z.ZodObject<{
|
|
|
19
19
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
reset: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodObject<{
|
|
24
24
|
code: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
message: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
thanks: z.ZodNullable<z.ZodString>;
|
|
28
28
|
results: z.ZodArray<z.ZodObject<{
|
|
29
29
|
bounds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
30
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
formatted: z.ZodNullable<z.ZodString>;
|
|
35
35
|
components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
36
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
annotations: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
38
|
distance_from_q: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
40
|
timestamp: z.ZodNullable<z.ZodObject<{
|
|
41
41
|
created_http: z.ZodNullable<z.ZodString>;
|
|
42
42
|
created_unix: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
44
|
stay_informed: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
blog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
facebook: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
mastodon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
q: string;
|
|
54
54
|
abbrv?: number | undefined;
|
|
@@ -61,7 +61,19 @@ declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActi
|
|
|
61
61
|
normalizecity?: number | undefined;
|
|
62
62
|
min_confidence?: number | undefined;
|
|
63
63
|
no_annotations?: number | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
64
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
65
|
+
connectionId: z.ZodString;
|
|
66
|
+
entityId: z.ZodString;
|
|
67
|
+
instanceId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
generic_key: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
71
|
+
connectionId: z.ZodString;
|
|
72
|
+
entityId: z.ZodString;
|
|
73
|
+
instanceId: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
generic_key: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>]>;
|
|
65
77
|
//#endregion
|
|
66
78
|
export { opencageGeocodeReverse };
|
|
67
79
|
//# sourceMappingURL=geocode-reverse.d.cts.map
|
|
@@ -19,36 +19,36 @@ declare const OpencageGeocodeReverseOutput: z.ZodObject<{
|
|
|
19
19
|
limit: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
reset: z.ZodNullable<z.ZodNumber>;
|
|
21
21
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
status: z.ZodNullable<z.ZodObject<{
|
|
24
24
|
code: z.ZodNullable<z.ZodNumber>;
|
|
25
25
|
message: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
thanks: z.ZodNullable<z.ZodString>;
|
|
28
28
|
results: z.ZodArray<z.ZodObject<{
|
|
29
29
|
bounds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
30
30
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
31
31
|
lat: z.ZodNullable<z.ZodNumber>;
|
|
32
32
|
lng: z.ZodNullable<z.ZodNumber>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
formatted: z.ZodNullable<z.ZodString>;
|
|
35
35
|
components: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
36
36
|
confidence: z.ZodNullable<z.ZodNumber>;
|
|
37
37
|
annotations: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
38
38
|
distance_from_q: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
39
|
-
}, z.core.$
|
|
39
|
+
}, z.core.$loose>>;
|
|
40
40
|
timestamp: z.ZodNullable<z.ZodObject<{
|
|
41
41
|
created_http: z.ZodNullable<z.ZodString>;
|
|
42
42
|
created_unix: z.ZodNullable<z.ZodNumber>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>>;
|
|
44
44
|
stay_informed: z.ZodNullable<z.ZodObject<{
|
|
45
45
|
blog: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
46
|
twitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
facebook: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
mastodon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
total_results: z.ZodNullable<z.ZodNumber>;
|
|
51
|
-
}, z.core.$
|
|
51
|
+
}, z.core.$loose>;
|
|
52
52
|
declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
53
53
|
q: string;
|
|
54
54
|
abbrv?: number | undefined;
|
|
@@ -61,7 +61,19 @@ declare const opencageGeocodeReverse: import("@keystrokehq/action").WorkflowActi
|
|
|
61
61
|
normalizecity?: number | undefined;
|
|
62
62
|
min_confidence?: number | undefined;
|
|
63
63
|
no_annotations?: number | undefined;
|
|
64
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
64
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
65
|
+
connectionId: z.ZodString;
|
|
66
|
+
entityId: z.ZodString;
|
|
67
|
+
instanceId: z.ZodString;
|
|
68
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
69
|
+
generic_key: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"opencage", z.ZodObject<{
|
|
71
|
+
connectionId: z.ZodString;
|
|
72
|
+
entityId: z.ZodString;
|
|
73
|
+
instanceId: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
generic_key: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>]>;
|
|
65
77
|
//#endregion
|
|
66
78
|
export { opencageGeocodeReverse };
|
|
67
79
|
//# sourceMappingURL=geocode-reverse.d.mts.map
|
|
@@ -18,15 +18,15 @@ const OpencageGeocodeReverse_RateSchema = z.object({
|
|
|
18
18
|
limit: z.number().int().describe("Rate limit").nullable(),
|
|
19
19
|
reset: z.number().int().describe("Seconds until rate limit resets").nullable(),
|
|
20
20
|
remaining: z.number().int().describe("Remaining requests in current rate window").nullable()
|
|
21
|
-
});
|
|
21
|
+
}).passthrough();
|
|
22
22
|
const OpencageGeocodeReverse_StatusSchema = z.object({
|
|
23
23
|
code: z.number().int().describe("Status code of the request, 200 indicates success").nullable(),
|
|
24
24
|
message: z.string().describe("Status message of the request").nullable()
|
|
25
|
-
});
|
|
25
|
+
}).passthrough();
|
|
26
26
|
const OpencageGeocodeReverse_GeometrySchema = z.object({
|
|
27
27
|
lat: z.number().describe("Latitude of the result").nullable(),
|
|
28
28
|
lng: z.number().describe("Longitude of the result").nullable()
|
|
29
|
-
});
|
|
29
|
+
}).passthrough();
|
|
30
30
|
const OpencageGeocodeReverse_GeocodeReverseResultSchema = z.object({
|
|
31
31
|
bounds: z.record(z.string(), z.unknown()).describe("Bounding box of the result (northeast and southwest corners)").nullable().optional(),
|
|
32
32
|
geometry: OpencageGeocodeReverse_GeometrySchema.nullable(),
|
|
@@ -35,17 +35,17 @@ const OpencageGeocodeReverse_GeocodeReverseResultSchema = z.object({
|
|
|
35
35
|
confidence: z.number().int().describe("Confidence score (0-10)").nullable(),
|
|
36
36
|
annotations: z.record(z.string(), z.unknown()).describe("Additional annotation metadata (timezone, currency, DMS coordinates, etc.)").nullable().optional(),
|
|
37
37
|
distance_from_q: z.record(z.string(), z.unknown()).describe("Distance from the queried coordinates in meters").nullable().optional()
|
|
38
|
-
});
|
|
38
|
+
}).passthrough();
|
|
39
39
|
const OpencageGeocodeReverse_TimestampSchema = z.object({
|
|
40
40
|
created_http: z.string().describe("Timestamp when the response was created (HTTP-format)").nullable(),
|
|
41
41
|
created_unix: z.number().int().describe("Timestamp when the response was created (Unix time)").nullable()
|
|
42
|
-
});
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const OpencageGeocodeReverse_StayInformedSchema = z.object({
|
|
44
44
|
blog: z.string().describe("URL to the OpenCage blog").nullable().optional(),
|
|
45
45
|
twitter: z.string().describe("OpenCage Twitter/X handle").nullable().optional(),
|
|
46
46
|
facebook: z.string().describe("OpenCage Facebook page URL").nullable().optional(),
|
|
47
47
|
mastodon: z.string().describe("OpenCage Mastodon profile URL").nullable().optional()
|
|
48
|
-
});
|
|
48
|
+
}).passthrough();
|
|
49
49
|
const opencageGeocodeReverse = action("OPENCAGE_GEOCODE_REVERSE", {
|
|
50
50
|
slug: "opencage-geocode-reverse",
|
|
51
51
|
name: "Reverse Geocode Coordinates",
|
|
@@ -59,7 +59,7 @@ const opencageGeocodeReverse = action("OPENCAGE_GEOCODE_REVERSE", {
|
|
|
59
59
|
timestamp: OpencageGeocodeReverse_TimestampSchema.nullable(),
|
|
60
60
|
stay_informed: OpencageGeocodeReverse_StayInformedSchema.nullable(),
|
|
61
61
|
total_results: z.number().int().describe("Total number of results").nullable()
|
|
62
|
-
})
|
|
62
|
+
}).passthrough()
|
|
63
63
|
});
|
|
64
64
|
//#endregion
|
|
65
65
|
export { opencageGeocodeReverse };
|