@keystrokehq/opencage 0.1.2 → 0.1.3
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 +11 -11
- package/dist/actions/geocode-forward.d.mts +11 -11
- 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 +23 -23
- package/dist/actions/geocode-geojson.d.mts +23 -23
- 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 +1 -1
- package/dist/actions/geocode-geojsonp.d.mts +1 -1
- 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 +11 -11
- package/dist/actions/geocode-google-v3-json.d.mts +11 -11
- 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 +7 -7
- package/dist/actions/geocode-reverse.d.mts +7 -7
- 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 +1 -1
- package/dist/actions/geocode-xml.d.mts +1 -1
- 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 +1 -1
- package/dist/actions/ping-opencage.d.mts +1 -1
- package/dist/actions/ping-opencage.mjs +1 -1
- package/dist/actions/ping-opencage.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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 disc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;CACnI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,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;CACv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CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;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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AK,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,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACxH,UAAU,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9J,WAAW,EAAE,MAAM,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC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C,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,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,CA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AAS;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: OpencageGe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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;
|
|
@@ -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;
|
|
@@ -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 };
|
|
@@ -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});\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,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,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,oCAAoC,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;AAC7F,CAAC;
|
|
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;C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AS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,4CAA4C,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,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"}
|
|
@@ -18,7 +18,7 @@ const OpencageGeocodeXmlOutput = zod.z.object({
|
|
|
18
18
|
xml: zod.z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata").nullable(),
|
|
19
19
|
status_code: zod.z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
|
|
20
20
|
total_results: zod.z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
|
|
21
|
-
}).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.");
|
|
21
|
+
}).passthrough().describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.");
|
|
22
22
|
const opencageGeocodeXml = require_action.action("OPENCAGE_GEOCODE_XML", {
|
|
23
23
|
slug: "opencage-geocode-xml",
|
|
24
24
|
name: "Geocode XML",
|
|
@@ -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}).describe(\"Response model for OpenCage GEOCODE_XML action.\\nReturns geocoding results in XML format.\");\n\nexport const opencageGeocodeXml = action(\"OPENCAGE_GEOCODE_XML\", {\n slug: \"opencage-geocode-xml\",\n name: \"Geocode XML\",\n description: \"Geocode a location query and return results in XML format. Supports both forward geocoding (address to coordinates) and reverse geocoding (coordinates to address). Use this when you need XML-formatted output instead of JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC3I,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE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ml.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 JSON.\",\n input: OpencageGeocodeXmlInput,\n output: OpencageGeocodeXmlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CAC3I,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACzH,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAClJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAChJ,WAAWA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACpJ,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACtK,gBAAgBA,IAAAA,EAAE,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"}
|
|
@@ -18,7 +18,7 @@ declare const OpencageGeocodeXmlOutput: z.ZodObject<{
|
|
|
18
18
|
xml: z.ZodNullable<z.ZodString>;
|
|
19
19
|
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
q: string;
|
|
24
24
|
abbrv?: 0 | 1 | undefined;
|
|
@@ -18,7 +18,7 @@ declare const OpencageGeocodeXmlOutput: z.ZodObject<{
|
|
|
18
18
|
xml: z.ZodNullable<z.ZodString>;
|
|
19
19
|
status_code: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
20
|
total_results: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const opencageGeocodeXml: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
q: string;
|
|
24
24
|
abbrv?: 0 | 1 | undefined;
|
|
@@ -21,7 +21,7 @@ const opencageGeocodeXml = action("OPENCAGE_GEOCODE_XML", {
|
|
|
21
21
|
xml: z.string().describe("Complete XML response from the OpenCage API containing geocoding results, status, rate limits, and metadata").nullable(),
|
|
22
22
|
status_code: z.number().int().describe("API status code (200 for success, extracted from XML for convenience)").nullable().optional(),
|
|
23
23
|
total_results: z.number().int().describe("Number of geocoding results found (extracted from XML for convenience)").nullable().optional()
|
|
24
|
-
}).describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.")
|
|
24
|
+
}).passthrough().describe("Response model for OpenCage GEOCODE_XML action.\nReturns geocoding results in XML format.")
|
|
25
25
|
});
|
|
26
26
|
//#endregion
|
|
27
27
|
export { opencageGeocodeXml };
|